﻿/* ============================================================
   サンプル介護タクシー — メインスタイルシート
   ============================================================ */

/* ------------------------------------------------------------
   ブレークポイント（全案件共通・厳守）

     スマホ      〜640px      ← 基底スタイル（メディアクエリを書かない）
     タブレット  641〜1024px    @media (min-width: 641px)
     PC          1025px〜       @media (min-width: 1025px)

   - この3値以外のブレークポイントを追加しない（768px/767px は2026-08-26に廃止）
   - 基底はスマホ。min-width で上書きしていく（max-width の多用禁止）
   - max-width を使うときは min-width 側より必ず1px小さい値にする
   - 定義の正本：skills/care-taxi-site/design-system/components.md
   ------------------------------------------------------------ */

/* ----- CSS変数 ----- */
:root {
  --color-primary:       #2E9E5F;
  --color-primary-dark:  #1E7A47;
  --color-accent:        #E8752A;
  --color-accent-light:  #F5A46B;
  --color-accent-dark:   #C45A16;
  --color-sub:           #1A6FA8;
  --color-text:          #333333;
  --color-text-secondary:#666666;
  --color-text-muted:    #999999;
  --color-bg:            #FFFFFF;
  --color-bg-light:      #F2FAF5;
  --color-bg-warm:       #FDF6EE;
  --color-border:        #DCEAE1;
  --color-primary-pale:  #E2F1E9;
  --color-accent-pale:   #FCECE1;
  --color-sub-pale:      #DFEBF3;
  --color-on-dark:       #FFF2CE;

  --font-sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", 'Noto Sans JP', sans-serif;
  --font-phone: 'Oswald', 'Noto Sans JP', sans-serif;
  --font-heading: 'Zen Maru Gothic', var(--font-sans);

  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-lg:   18px;
  --text-xl:   22px;
  --text-2xl:  28px;
  --text-3xl:  36px;
  --text-phone: 38px;

  --leading-tight:  1.4;
  --leading-normal: 1.75;

  --radius: 6px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ----- Material Symbols ----- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
}
.btn .material-symbols-outlined { font-size: 22px; }
.cta-bar-btn .material-symbols-outlined { font-size: 22px; }
.header-phone .material-symbols-outlined { font-size: 18px; }
/* 単体表示アイコン（カード見出し等）を大きく。font-sizeで拡大するので縦横比は1:1のまま。
   ※ Google FontsのCDNが .material-symbols-outlined に font-size:24px を直指定するため、
   親のfont-sizeでは効かない。複合セレクタ（.material-symbols-outlined.icon-xl）で確実に上書きする */
.material-symbols-outlined.icon-xl { font-size: 48px; font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48; }

/* ----- リセット・ベース ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--text-base); scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  line-height: var(--leading-normal);
  letter-spacing: -0.01em;
  background: var(--color-bg);
}

h1, h2 { font-family: var(--font-heading); letter-spacing: -0.03em; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }

/* ----- レイアウト ----- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-alt { background: var(--color-bg-light); }
.section-warm { background: var(--color-bg-warm); }

/* ----- 波型セクション区切り ----- */
.section.has-wave,
.cta-banner.has-wave { position: relative; }
.section.has-wave { padding-top: 112px; }
.cta-banner.has-wave { padding-top: 100px; }
.section-wave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  transform: rotate(180deg);
  pointer-events: none;
}
.section-wave svg {
  position: relative;
  display: block;
  width: calc(132% + 1.3px);
  height: 72px;
}
.section-wave--white .shape-fill { fill: #FFFFFF; }
.section-wave--light .shape-fill { fill: var(--color-bg-light); }
.section-wave--warm  .shape-fill { fill: var(--color-bg-warm); }

.section-title {
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 8px;
  line-height: var(--leading-tight);
}
.section-subtitle {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  font-size: var(--text-sm);
}

/* ----- ヘッダー ----- */
.site-header {
  background: var(--color-primary-dark);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  max-width: 1100px;
  margin: 0 auto;
  gap: 16px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-lg);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}
.site-logo-typo {
  height: 36px;
  width: auto;
}

.header-phone {
  display: none; /* モバイルでは非表示。ヒーローに大きな電話番号があるため */
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  line-height: 1.3;
}
.header-phone-label { font-size: var(--text-xs); opacity: 0.85; }
.header-phone-num { font-family: var(--font-phone); font-size: 22px; letter-spacing: 0.05em; color: var(--color-on-dark); }
.header-phone-hour { font-size: var(--text-xs); opacity: 0.75; }

.site-nav { display: none; }
.site-nav ul { display: flex; gap: 4px; }
.site-nav a {
  display: block;
  padding: 6px 12px;
  color: rgba(255,255,255,0.9);
  font-size: var(--text-sm);
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s;
}
.site-nav a:hover, .site-nav a.active {
  background: rgba(255,255,255,0.15);
  text-decoration: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-primary);
  padding: 8px 0 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 12px 24px;
  color: #fff;
  font-size: var(--text-base);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.mobile-nav a:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
}
.nav-backdrop.open { display: block; }

/* ----- ボタン ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: var(--text-lg);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
  min-width: 200px;
  cursor: pointer;
  border: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }

.btn-tel {
  background-color: var(--color-accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232,117,42,0.4), 4px 4px 3px rgba(0,0,0,0.3);
}
.btn-tel:hover { background-color: var(--color-accent-dark); color: #fff; }

.btn-line {
  background-color: #06C755;
  color: #fff;
  box-shadow: 0 4px 14px rgba(6,199,85,0.35), 4px 4px 3px rgba(0,0,0,0.3);
}
.btn-line:hover { background-color: #05a547; color: #fff; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ----- ヒーロー ----- */
.hero {
  position: relative;
  color: #fff;
  padding: 340px 0 56px;
  text-align: center;
  overflow: hidden;
  background: var(--color-primary-dark);
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 560px;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0) 65%, var(--color-primary-dark) 100%),
    linear-gradient(to bottom, rgba(40,40,40,0) 0%, rgba(40,40,40,0.3) 100%),
    url('../img/hero.webp') center/cover no-repeat;
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}
.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero-title em { color: var(--color-on-dark); font-style: normal; }
.hero-sub {
  font-size: var(--text-lg);
  opacity: 0.9;
  margin-bottom: 32px;
}
/* 電話番号の特大表示（typography.md 準拠）。高齢者の視認性のため大きく出し、
   スマホ幅では32pxに落とす。ヒーロー等の「読ませる電話番号」に付けるクラス。
   ヘッダー内の小さい電話番号は .header-phone-num（22px）で別物。 */
.phone-number {
  font-family: var(--font-phone);
  font-size: var(--text-phone);
  letter-spacing: -0.01em;   /* Oswald は詰め気味が締まって見える */
  text-decoration: none;
}
@media (max-width: 640px) {
  .phone-number { font-size: 32px; }
}

/* ヒーロー文脈の色・レイアウトのみ。字形とサイズは .phone-number 側が持つ */
.hero-phone {
  color: var(--color-on-dark);
  display: block;
  margin-bottom: 4px;
}
.hero-phone:hover { color: #fff; text-decoration: none; }
.hero-phone-label {
  font-size: var(--text-base);
  opacity: 0.8;
  display: block;
  margin-bottom: 24px;
}
.hero-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-top: 28px;
  font-size: var(--text-base);
}
.hero-checks li::before { content: '✓ '; color: var(--color-primary); font-weight: 700; }

/* ----- 特徴カード ----- */
/* 段数は帯ごとに明示（タブレット2列・PC3列は下部のレスポンシブ節） */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.feature-card {
  background: var(--color-bg);
  border-radius: 10px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon { margin-bottom: 12px; }
.feature-icon .material-symbols-outlined { font-size: 38px; } /* 実測で縦32px相当（Google FontsのCDN側で font-size:24px が直指定されているため、子孫セレクタで明示的に上書きする必要がある） */
.feature-icon img { width: 38px; height: 38px; display: inline-block; vertical-align: middle; }
.feature-title { font-size: var(--text-xl); font-weight: 700; color: var(--color-primary); margin-bottom: 8px; }
.feature-text { font-size: var(--text-base); color: var(--color-text-secondary); line-height: 1.65; }

/* ----- ステップ ----- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  position: relative;
}
.step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.step::after {
  content: '›';
  display: none;
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  color: var(--color-border);
}
.step:last-child::after { display: none; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-lg);
  margin-bottom: 12px;
}
.step-title { font-weight: 700; color: var(--color-text); margin-bottom: 6px; }
.step-text { font-size: var(--text-base); color: var(--color-text-secondary); }

/* ----- CTAバナー ----- */
.cta-banner {
  /* 手前にキーカラー（グリーン）の半透明フィルター、奥に写真 */
  background:
    linear-gradient(135deg, rgba(30,122,71,0.72), rgba(46,158,95,0.66)),
    url('../img/cta.webp') center/cover no-repeat;
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.cta-title { font-size: var(--text-2xl); font-weight: 500; margin-bottom: 8px; }
.cta-sub { opacity: 0.85; margin-bottom: 28px; }
.cta-phone {
  font-family: var(--font-phone);
  font-size: var(--text-phone);
  color: var(--color-on-dark);
  letter-spacing: 0;
  display: block;
  margin-bottom: 4px;
  text-decoration: none;
}
.cta-phone:hover { color: #fff; text-decoration: none; }
.cta-hour { font-size: var(--text-base); opacity: 0.75; margin-bottom: 24px; }

/* ----- テーブル ----- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.price-table th, .price-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}
.price-table th {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}
.price-table tr:last-child td { border-bottom: none; }
.price-table tr:nth-child(even) td { background: var(--color-bg-light); }
.price-table .price-amount { font-weight: 700; color: var(--color-accent); font-size: var(--text-lg); }

/* 料金表：狭い画面では横スクロールで見せ、項目名・金額の途中改行を防ぐ（説明文の最終列のみ自然折り返し） */
/* table-layout:fixed＋列幅指定で、複数の料金表どうしの列幅を統一する */
.price-table { min-width: 500px; table-layout: fixed; }
.price-table th, .price-table td { white-space: nowrap; vertical-align: middle; }
.price-table th:nth-child(1), .price-table td:nth-child(1) { width: 34%; white-space: normal; }
.price-table th:nth-child(2), .price-table td:nth-child(2) { width: 24%; }
.price-table th:last-child, .price-table td:last-child { width: 42%; white-space: normal; }

/* 料金の目安（参考）テーブル：狭い画面では横スクロールで見せ、金額・ラベルの途中改行を防ぐ */
.fare-guide { min-width: 460px; }
.fare-guide th, .fare-guide td { white-space: nowrap; vertical-align: middle; }

/* ----- 料金構造の図解（運賃 + 介助料・機材使用料 = ご利用料金） ----- */
.price-structure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.price-structure-item {
  width: 100%;
  max-width: 320px;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.price-structure-icon { font-size: 40px; color: var(--color-primary); margin-bottom: 8px; }
.price-structure-label { font-weight: 700; font-size: var(--text-lg); color: var(--color-text); margin-bottom: 4px; }
.price-structure-desc { font-size: var(--text-sm); color: var(--color-text-secondary); }
.price-structure-op {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  transform: rotate(90deg);
}
.price-structure-item.price-structure-total { background: var(--color-primary); border-color: var(--color-primary); }
.price-structure-item.price-structure-total .price-structure-icon,
.price-structure-item.price-structure-total .price-structure-label,
.price-structure-item.price-structure-total .price-structure-desc { color: #fff; }

@media (min-width: 641px) {
  .price-structure { flex-direction: row; justify-content: center; align-items: stretch; gap: 20px; }
  .price-structure-item { display: flex; flex-direction: column; justify-content: center; }
  .price-structure-op { transform: none; }
}

/* ----- FAQ アコーディオン ----- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 0;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: var(--text-base);
  font-family: var(--font-sans);
  color: var(--color-text);
  font-weight: 700;
  line-height: var(--leading-normal);
}
.faq-question:hover { color: var(--color-primary); }
.faq-q-label {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  margin-top: 2px;
}
.faq-q-text { flex: 1; }
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--color-text-muted);
  transition: transform 0.25s;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 0 20px 40px;
  color: var(--color-text-secondary);
  line-height: var(--leading-normal);
}
.faq-answer.open { display: block; }
.faq-a-label {
  display: inline-block;
  font-weight: 700;
  color: var(--color-sub);
  margin-bottom: 4px;
}

/* ----- パンくず ----- */
.breadcrumb {
  padding: 12px 0;
  font-size: var(--text-sm);
  color: #fff;
  opacity: 0.85;
}
.breadcrumb a { color: #fff; text-decoration: underline; }
.breadcrumb span + span::before { content: ' › '; }

/* ----- ページヘッダー ----- */
.page-hero {
  position: relative;
  color: #fff;
  padding: 40px 0 36px;
  overflow: hidden;
  background: url('../img/hero.webp') center/cover no-repeat;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 70%, rgba(46,158,95,0.75) 100%);
  opacity: 0.65;
}
.page-hero .container { position: relative; }
.page-hero-title {
  /* 375px幅で「プライバシーポリシー」の最後の「ー」だけが2行目に落ちるため、
     狭い画面では縮める。PCは36px（--text-3xl）のまま */
  font-size: clamp(28px, 7.4vw, var(--text-3xl));
  font-weight: 700;
  margin-bottom: 8px;
}
.page-hero-sub { opacity: 0.85; font-size: var(--text-base); }

/* ----- プロフィール写真 ----- */
.profile-photo {
  flex-shrink: 0;
  width: 160px;
  margin: 0 auto;
}
.profile-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 4px solid var(--color-bg-light);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 運営者情報：サービス風景の2枚組 */
.about-photos { display: grid; grid-template-columns: 1fr; gap: 16px; }
.about-photos img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); display: block; }
@media (min-width: 641px) { .about-photos { grid-template-columns: 1fr 1fr; } }

/* ----- バッジ ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: var(--text-sm);
  font-weight: 700;
}
/* 淡背景＋--color-text で統一（design-system/components.md「バッジ・チップ」参照）。
   クラス名は既存HTMLとの互換のため据え置き：green=資格 / blue=対応エリア / orange=補足 */
.badge-green { background: var(--color-primary-pale); color: var(--color-text); }
.badge-blue  { background: var(--color-sub-pale);     color: var(--color-text); }
.badge-orange{ background: var(--color-accent-pale);  color: var(--color-text); }

.badge-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* ----- 概要テーブル ----- */
.info-table {
  width: 100%;
  border-collapse: collapse;
}
.info-table th, .info-table td {
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  vertical-align: top;
  font-size: var(--text-base);
}
.info-table th {
  background: var(--color-bg-light);
  font-weight: 700;
  width: 30%;
  /* スマホ幅では white-space: nowrap を掛けないこと。掛けると「国土交通省許可番号」等の
     9文字ラベルで th が176pxまで伸び、td の最小幅と合わせて375px幅でページ幅を超える
     （実測 テーブル355px > 表示領域335px）。折り返しを許可すれば th は30%に収まる。
     横幅に余裕のあるタブレット以上では下の @media で nowrap を復活させる。 */
}
/* メールアドレス・登録番号など折り返し不可の英数字列がはみ出すのを防ぐ */
.info-table td { overflow-wrap: anywhere; }

/* ----- カード ----- */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow);
}
/* 既定はPCで3列。枚数が3の倍数でないセクションはモディファイアで段数を合わせる
   （4枚を3列にすると最終行が1枚だけ残って間延びするため） */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* ----- 機材・装備カード（画像プレースホルダー） ----- */
.equipment-photo {
  aspect-ratio: 4 / 3;
  background: var(--color-bg-light);
  border: 1px dashed var(--color-border);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}
.equipment-photo .material-symbols-outlined { font-size: 48px; }
.equipment-photo-label { font-size: var(--text-xs); }
/* 実写真が入った枠：プレースホルダーの点線を細実線に変え、透過画像を余白付きで収める。
   機材写真は背景透過のため object-fit は cover ではなく contain（切ると機材が伝わらない） */
.equipment-photo.has-photo {
  border: 1px solid var(--color-border);
  padding: 8px;
}
.equipment-photo.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* 車両写真（横長）：本来の比率で表示 */
.vehicle-photo { width: 100%; height: auto; border-radius: 8px; display: block; margin-bottom: 14px; }
.equipment-name { font-size: var(--text-xl); font-weight: 700; color: var(--color-primary); margin-bottom: 6px; }
.equipment-desc { font-size: var(--text-base); color: var(--color-text-secondary); }

/* ----- 区切り装飾 ----- */
.section-divider {
  text-align: center;
  margin-bottom: 40px;
}
.section-divider::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--color-accent);
  margin: 12px auto 0;
}

/* ----- フッター ----- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 40px 0 20px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-info { flex: 1; min-width: 220px; }
.footer-name { font-size: var(--text-lg); font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-info p { font-size: var(--text-sm); margin-bottom: 4px; }
.footer-info a { color: rgba(255,255,255,0.85); }
.footer-nav { flex: 1; min-width: 200px; }
.footer-nav-title { font-size: var(--text-sm); font-weight: 700; color: rgba(255,255,255,0.6); margin-bottom: 10px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 4px 0; flex-direction: column; }
.footer-nav a { font-size: var(--text-sm); color: rgba(255,255,255,0.75); padding: 3px 0; display: block; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-align: center;
}
.footer-copy a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.footer-copy a:hover { color: #fff; }

/* ----- プライバシーポリシー ----- */
/* 折り返し不可の長いURL（例 https://privacy.microsoft.com/privacystatement は幅373px）が
   375px幅のビューポートからはみ出し、ページ全体に横スクロールが発生するのを防ぐ。
   横スクロールが出ると position:sticky のヘッダーが横方向にずれて見える。 */
.policy-article a { overflow-wrap: anywhere; }
.policy-intro { margin-bottom: 28px; line-height: var(--leading-normal); }
.policy-article { margin-bottom: 28px; }
.policy-article:last-child { margin-bottom: 0; }
.policy-article h2 {
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-border);
}
.policy-article p { line-height: var(--leading-normal); margin-bottom: 10px; }
.policy-article p:last-child { margin-bottom: 0; }
.policy-list { margin: 8px 0 0; }
.policy-list li { position: relative; padding: 4px 0 4px 1.2em; line-height: var(--leading-normal); }
.policy-list li::before { content: '・'; position: absolute; left: 0; color: var(--color-primary); }
.policy-date { margin-top: 32px; text-align: right; color: var(--color-text-muted); font-size: var(--text-sm); }

/* ----- 注意書き ----- */
.note {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  padding-left: 1em;
  text-indent: -1em;
}
.note::before { content: '※ '; }
.note-box {
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 16px;
}
.note-box .note { padding-left: 0; text-indent: 0; }
.note-box .note::before { content: ''; }
.note-box li { font-size: var(--text-base); color: var(--color-text-secondary); padding: 3px 0 3px 1.2em; position: relative; }
.note-box li::before { content: '・'; position: absolute; left: 0; }

/* ----- シーンカード ----- */
.scene-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.scene-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
  background-color: var(--color-bg-light);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  padding: 64px 20px 24px;
  text-align: center;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.scene-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55));
  z-index: -1;
}
.scene-card--hospital { background-image: url('../img/scene_01.webp'); }
.scene-card--carehouse { background-image: url('../img/scene_02.webp'); }
.scene-card--bride { background-image: url('../img/scene_03.webp'); }
.scene-card--airport { background-image: url('../img/scene_04.webp'); }
.scene-card--shop { background-image: url('../img/scene_05.webp'); }
.scene-card--rehab { background-image: url('../img/scene_06.webp'); }
.scene-title { font-weight: 700; font-size: var(--text-base); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }

/* ----- モバイル固定CTAバー ----- */
.mobile-cta-bar {
  display: block;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 10px 16px max(16px, env(safe-area-inset-bottom));
  box-shadow: 0 -3px 16px rgba(0,0,0,0.12);
  z-index: 200;
  text-align: center;
}
.cta-bar-label {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.cta-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--color-accent);
  color: #fff;
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(232,117,42,0.35), 4px 4px 3px rgba(0,0,0,0.3);
  transition: background-color 0.2s;
}
.cta-bar-btn:hover { background: var(--color-accent-dark); color: #fff; text-decoration: none; }

/* タブレットでは横一杯のボタンが間延びするため幅を絞って中央寄せ */
@media (min-width: 641px) {
  .cta-bar-btn { max-width: 480px; margin: 0 auto; }
}

/* 固定バー分のコンテンツ余白（スマホ・タブレット）。
   --cta-bar-h は js/main.js がバーの実高さを実測してセットする。固定値は使わないこと
   （ラベルの折り返し行数で高さが変わるため、どの固定値でもどこかの幅でズレる）。 */
@media (max-width: 1024px) {
  body { padding-bottom: var(--cta-bar-h, calc(140px + env(safe-area-inset-bottom))); }
  /* 固定CTAバーを置かないページ（privacy等）は余白を戻す */
  body.no-cta-bar { padding-bottom: 0; }
}

/* ============================================================
   タブレット（641〜1024px）
   ナビはハンバーガーのまま。段組み・余白・ヒーローだけ広い版に切り替える
   ============================================================ */
@media (min-width: 641px) {
  .site-logo-icon { width: 48px; height: 48px; }
  .site-logo-typo { height: 48px; }
  .steps { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .step::after { display: block; }
  .step:last-child::after { display: none; }
  .header-phone { display: flex; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .scene-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }
  .section-wave svg { height: 110px; }
  .section.has-wave { padding-top: 158px; }
  .cta-banner.has-wave { padding-top: 142px; }
  .hero {
    padding: 80px 0 72px;
    text-align: left;
    background: url('../img/hero.webp') center/cover no-repeat;
  }
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    height: auto;
    background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.7) 32%, rgba(255,255,255,0) 50%);
  }
  .hero-inner {
    display: grid;
    /* テキスト側を広めに取る。均等(1fr 1fr)だと1025px時点で列が453pxしか無く見出しが3行に割れ、
       タブレット(1024px=2行)より狭くなる逆転が起きる */
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: center;
    color: var(--color-text);
  }
  .hero-title { text-shadow: none; }
  .hero-title em { color: var(--color-primary-dark); }
  .hero-sub { color: var(--color-text-secondary); opacity: 1; }
  .hero-phone { color: var(--color-accent); }
  .hero-phone:hover { color: var(--color-accent-dark); }
  .hero-phone-label { color: var(--color-text-muted); opacity: 1; }
  .hero-checks { justify-content: flex-start; }
  .hero .btn-group { justify-content: flex-start; }
  .info-table th { width: 220px; white-space: nowrap; }
}

/* タブレット帯のヒーロー：PC型の2カラムのままだとテキスト列が269〜460pxしか取れず
   見出しが3行に割れるため、テキスト側を広げ白グラデも合わせて右へ伸ばす（641〜1024pxで2行に収まる） */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1.9fr 1fr; }
  .hero::before {
    background: linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 46%, rgba(255,255,255,0) 72%);
  }
}

/* ============================================================
   PC（1025px〜）
   ここで初めてナビが横並びになり、固定CTAバーが消える
   ============================================================ */
@media (min-width: 1025px) {
  .site-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-cta-bar { display: none; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .scene-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .container { padding: 0 32px; }
  .section { padding: 80px 0; }
}
