:root {
  --primary: #10b981;
  --secondary: #0f172a;
  --text-main: #1e293b;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.8;
  color: var(--text-main);
}

[x-cloak] {
  display: none !important;
}

/* Section Spacing */
section {
  padding-top: clamp(4rem, 8vw, 8rem);
  padding-bottom: clamp(4rem, 8vw, 8rem);
}

/* Material Symbols Adjustments */
.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 400,
    'GRAD' 0,
    'opsz' 24;
  vertical-align: middle;
}

/* Subhero Base (about / recruit / service / contact / privacy で共通利用) */
.subhero {
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: -webkit-image-set(
    url('/img/subhero-bg.webp') type('image/webp'),
    url('/img/subhero-bg.jpg') type('image/jpeg')
  );
  background-image: image-set(
    url('/img/subhero-bg.webp') type('image/webp'),
    url('/img/subhero-bg.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center;
  position: relative;
  color: white;
}

@media (max-width: 768px) {
  .subhero {
    background-image: -webkit-image-set(
      url('/img/subhero-bg@1200.webp') type('image/webp'),
      url('/img/subhero-bg@1200.jpg') type('image/jpeg')
    );
    background-image: image-set(
      url('/img/subhero-bg@1200.webp') type('image/webp'),
      url('/img/subhero-bg@1200.jpg') type('image/jpeg')
    );
  }
}

.subhero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.6));
  z-index: 0;
}

.subhero > .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.subhero .heading-accent {
  color: #10b981;
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.subhero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.subhero .accent-line {
  width: 3rem;
  height: 4px;
  background-color: #10b981;
  margin: 0 auto;
}

/* Custom Utilities for Hierarchy */
.heading-accent {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

/* Extracted from Templates */
/* From ./parts/about-message.html */

.about-message {
  position: relative;
  background-color: #ffffff;
}
.about-message .message-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-message .message-grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
  }
}
.about-message .image-container {
  position: relative;
  padding-bottom: 125%; /* 4:5 Aspect Ratio */
  overflow: hidden;
  border-radius: 2px;
}
.about-message .image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-message .accent-box {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 160px;
  height: 160px;
  background-color: #10b981;
  z-index: -1;
  opacity: 0.2;
}
.about-message .text-content {
  display: flex;
  flex-direction: column;
}
.about-message .title-group {
  margin-bottom: 2.5rem;
}
.about-message .quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1;
  color: #10b981;
  opacity: 0.3;
  margin-bottom: -1rem;
}
.about-message .main-copy {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.about-message .message-body {
  color: #64748b;
  margin-bottom: 3rem;
}
.about-message .message-body p {
  margin-bottom: 1.5rem;
}
.about-message .signature {
  border-top: 1px solid #e2e8f0;
  padding-top: 2rem;
}
.about-message .signature .role {
  font-size: 0.875rem;
  color: #10b981;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  display: block;
}
.about-message .signature .name {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}
/* 署名SVG。fill="currentColor" なので本文色をそのまま継承させる。
   幅は160〜200pxの範囲で可変させ、375px幅でも収まるようにする */
.about-message .signature__mark {
  display: block;
  width: clamp(160px, 55%, 200px);
  max-width: 100%;
  margin-bottom: 0.75rem;
}
.about-message .signature__mark svg {
  display: block;
  width: 100%;
  height: auto;
}

/* From ./parts/about-profile.html */

.profile-section {
  background-color: #f8fafc;
}

.profile-section__container {
  max-width: 1000px;
  margin: 0 auto;
}

.profile-section__table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.profile-section__table tr {
  border-bottom: 1px solid #e2e8f0;
}

.profile-section__table tr:last-child {
  border-bottom: none;
}

.profile-section__table th {
  width: 30%;
  padding: 1.5rem 2rem;
  background-color: #f1f5f9;
  color: #0f172a;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

@media (max-width: 640px) {
  .profile-section__table th {
    width: 100%;
    display: block;
    padding: 1rem 1.5rem 0.5rem;
  }
}

.profile-section__table td {
  padding: 1.5rem 2rem;
  color: #1e293b;
  font-size: 1rem;
}

@media (max-width: 640px) {
  .profile-section__table td {
    width: 100%;
    display: block;
    padding: 0.5rem 1.5rem 1rem;
  }
}

/* From ./parts/contact-form.html */

.contact-form-section {
  background-color: #ffffff;
}

.contact-form-section .form-container {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form-section .info-card {
  background-color: #f8fafc;
  border-left: 4px solid #10b981;
  padding: 3rem;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-form-section .info-card .info-title {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
}

.contact-form-section .info-card .tel-number {
  display: block;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.2;
  margin: 1rem 0;
  transition: color 0.3s ease;
}

.contact-form-section .info-card .tel-number:hover {
  color: #10b981;
}

/* From ./parts/index-hero.html */

.index-hero {
  position: relative;
  min-height: 100vh; /* svh未対応ブラウザ向けフォールバック */
  min-height: 100svh; /* モバイルはアドレスバーを除いた実高さで確保 */
  height: auto;
  /* ヘッダー高さ（py-5時の約5rem）+ 余白。中身が伸びてもヘッダーに潜らない */
  padding-top: calc(5rem + 2rem);
  padding-bottom: 4rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: #0f172a;
}

.index-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: -webkit-image-set(
    url('/img/index-hero-bg.webp') type('image/webp'),
    url('/img/index-hero-bg.jpg') type('image/jpeg')
  );
  background-image: image-set(
    url('/img/index-hero-bg.webp') type('image/webp'),
    url('/img/index-hero-bg.jpg') type('image/jpeg')
  );
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .index-hero__bg {
    background-image: -webkit-image-set(
      url('/img/index-hero-bg@1200.webp') type('image/webp'),
      url('/img/index-hero-bg@1200.jpg') type('image/jpeg')
    );
    background-image: image-set(
      url('/img/index-hero-bg@1200.webp') type('image/webp'),
      url('/img/index-hero-bg@1200.jpg') type('image/jpeg')
    );
  }
}

.index-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.25) 0%, rgba(15, 23, 42, 0.75) 100%);
}

.index-hero__content {
  position: relative;
  z-index: 10;
  color: white;
  padding-bottom: clamp(4rem, 12vh, 8rem);
}

.index-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid #10b981;
  backdrop-filter: blur(4px);
  margin-bottom: 2rem;
}

.index-hero__title {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.index-hero__title span {
  display: block;
}

.index-hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: white;
  opacity: 0.6;
}

.index-hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, #10b981, transparent);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* From ./parts/index-overview.html */

.index-overview {
  background-color: #ffffff;
}

.index-overview .overview-card {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.index-overview .overview-card:hover {
  transform: translateY(-5px);
}

.index-overview .accent-line {
  width: 3rem;
  height: 2px;
  background-color: #10b981;
  margin: 1.5rem 0;
}

.index-overview .num-badge {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: rgba(16, 185, 129, 0.1);
  line-height: 1;
}

/* From ./parts/index-info.html */

.index-info {
  background-color: #ffffff;
}

.index-info__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .index-info__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.index-info__table {
  width: 100%;
  border-collapse: collapse;
}

.index-info__table tr {
  border-bottom: 1px solid #f1f5f9;
}

.index-info__table tr:last-child {
  border-bottom: none;
}

.index-info__table th {
  width: 30%;
  padding: 1.5rem 0;
  text-align: left;
  font-size: 0.875rem;
  font-weight: 700;
  color: #64748b;
  vertical-align: top;
}

.index-info__table td {
  padding: 1.5rem 0;
  font-size: 1rem;
  color: #1e293b;
}

/* From ./parts/recruit-details.html */

.recruit-details {
  background-color: #ffffff;
}

.recruit-details__intro {
  background-color: #f0fdf4;
  border-left: 4px solid #10b981;
}

.recruit-details__table {
  width: 100%;
  border-collapse: collapse;
}

.recruit-details__table th {
  width: 25%;
  padding: 1.5rem;
  background-color: #f8fafc;
  color: #0f172a;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .recruit-details__table th {
    display: block;
    width: 100%;
  }
}

.recruit-details__table td {
  padding: 1.5rem;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
  .recruit-details__table td {
    display: block;
    width: 100%;
    padding-top: 0.5rem;
  }
}

.recruit-details .highlight-card {
  background: #0f172a;
  color: white;
  padding: 2.5rem;
  border-radius: 2px;
}

/* From ./parts/service-fleet.html */

.fleet-section {
  background-color: #f8fafc; /* accent color */
}

/* 2カラム構成。PCで間延びしないよう最大幅を設けて中央寄せする */
.fleet-section .fleet-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  max-width: 56rem;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .fleet-section .fleet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.fleet-section .fleet-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-bottom: 4px solid #10b981;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* 説明文が未支給の車種があっても本文エリアがカード下端まで伸び、
   同じ行のカードで画像位置・下線位置が揃うようにする */
.fleet-section .fleet-card__body {
  flex: 1 1 auto;
}

.fleet-section .fleet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.fleet-section .fleet-image-wrapper {
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #e2e8f0;
}

.fleet-section .fleet-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.fleet-section .fleet-card:hover .fleet-image-wrapper img {
  transform: scale(1.05);
}

/* From ./parts/about-history.html */

.history-section {
  background-color: #f8fafc;
}

.history-timeline {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2rem;
  border-left: 2px solid #e2e8f0;
}

.history-timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}

.history-timeline__item:last-child {
  padding-bottom: 0;
}

.history-timeline__item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #10b981;
}

.history-timeline__year {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.history-timeline__year span {
  font-size: 0.875rem;
  font-weight: 400;
  color: #64748b;
  margin-left: 0.5rem;
}

.history-timeline__body p {
  color: #475569;
  font-size: 0.9375rem;
  line-height: 1.8;
}

.history-timeline__body p + p {
  margin-top: 0.25rem;
}

.history-timeline__item--highlight::before {
  background-color: #0f172a;
  width: 16px;
  height: 16px;
  left: calc(-2.5rem - 2px);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

.history-timeline__item--highlight .history-timeline__year {
  color: #10b981;
}

.history-timeline__item--highlight .history-timeline__body strong {
  color: #0f172a;
  font-size: 1.125rem;
}

/* From ./parts/index-hero.html (周年バッジ) */

.index-hero__anniversary {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.375rem 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 9999px;
  backdrop-filter: blur(4px);
  margin-bottom: 1.5rem;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.index-hero__anniversary-phrase {
  display: inline-block;
}

.index-hero__anniversary .material-symbols-outlined {
  color: #10b981;
  font-size: 1.125rem;
}


/* From ./parts/map-embed.html（index / about 共通のGoogleマップ埋め込み） */

.map-embed {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.125rem;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.1);
}

.map-embed iframe {
  display: block;
}

/* From ./parts/header.html（ロゴマーク。fill="currentColor" のSVGをインライン埋め込み） */

.header-logo svg {
  display: block;
  height: 100%;
  width: auto;
}
