/* ==========================================================
   こどもサポート こもれび｜架空の療育施設デモ
   ========================================================== */

:root {
  /* 参考サイト(川口西こども園)に合わせた、茶色の文字＋パステルの多色づかい */
  --bg: #F6F4EE;
  --surface: #FFFFFF;
  --brand: #716359;       /* ボタン・リンク */
  --brand-dark: #5C4B41;
  --ink: #5C4B41;         /* 本文・見出し */
  --muted: #76665B;
  --line: #E3DED3;
  --kraft: #EFE9DE;       /* ヒーローより少し濃い温かいベージュ */

  --lime: #AFD400;  --lime-d: #627500;  --lime-pale: #F2F6DA;
  --sky: #8AC7DE;   --sky-d: #2B7593;   --sky-pale: #E8F4F9;
  --orange: #FFA029; --orange-d: #A95800; --peach: #FFF1DF;
  --pink: #F59BC0;  --pink-d: #BE3A76;  --pink-pale: #FDEBF2;

  /* セクションごとのテーマ色(初期値) */
  --theme: var(--lime);
  --theme-d: var(--lime-d);
  --theme-pale: var(--lime-pale);

  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  --font-head: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;

  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;

  --container: 1280px;       /* セクションの中身の最大幅(1440pxで左右80px) */
  --gutter: 48px;            /* ヘッダー・ヒーロー用 */
  --section-gutter: 80px;    /* 各セクションの左右余白(PC) */
  --section-y: 104px;
  --header-h: 80px;
  --radius-btn: 999px;
  --radius-photo: 24px;
}

@media (max-width: 1023px) {
  :root { --gutter: 40px; --section-gutter: 40px; --section-y: 88px; --header-h: 72px; }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; --section-gutter: 20px; --section-y: 68px; --header-h: 64px; --radius-photo: 16px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.9;
  font-weight: 500;
  letter-spacing: .02em;
  font-feature-settings: normal;
  text-spacing-trim: trim-start;
  text-autospace: normal;
  line-break: strict;
  overflow-wrap: anywhere;
  word-break: normal;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 767px) {
  body { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .03em;
  font-feature-settings: "palt";
  text-wrap: balance;
  word-break: auto-phrase;
}
p { margin: 0; text-wrap: pretty; }
/* 短い文は文節単位で折り返す */
.faq-text, .small-note, .hero-note, .contact-demo, .footer-note, .dialog-note,
.transport-steps p, .guide-steps p, .timeline p, .approach-body p, .transport-note p,
.dialog-list li { word-break: auto-phrase; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--brand); }

:focus-visible {
  outline: 3px solid var(--sky-d);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 意味のまとまりで改行させるための塊 */
.nb { display: inline-block; }
@media (max-width: 767px) { .pc-br { display: none; } }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--section-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--section-gutter);
}
.container-wide {
  width: 100%;
  max-width: calc(1184px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

main:focus, section[tabindex="-1"]:focus, header[tabindex="-1"]:focus { outline: none; }

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  border: 2px solid var(--brand);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--bg); }
.btn-sm { min-height: 48px; padding: 10px 22px; font-size: 15px; }
.btn-lg { min-height: 64px; padding: 16px 44px; font-size: 18px; }
.btn .arrow, .text-link .arrow { font-family: var(--font-body); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  transition: color .2s ease;
}
.text-link:hover { color: var(--ink); text-decoration-thickness: 2px; }

/* ---------- demo bar & header ---------- */
.demo-bar {
  margin: 0;
  padding: 8px var(--gutter);
  background: var(--lime-pale);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 238, .96);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(246, 244, 238, .88); backdrop-filter: blur(8px); }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  max-width: calc(1184px + var(--gutter) * 2);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--brand);
  text-decoration: none;
}
.brand-mark { flex: none; }
.site-header .brand { flex: none; white-space: nowrap; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; color: var(--ink); }
.brand-text small { font-size: 12px; letter-spacing: .14em; color: var(--muted); font-weight: 500; }
.brand-text strong { font-family: var(--font-head); font-size: 26px; letter-spacing: .14em; font-weight: 700; }

.global-nav { display: flex; align-items: center; gap: var(--s4); }
/* メニュー: 丸ゴシック＋項目ごとの色の葉っぱ。ホバーで淡い丸背景と葉っぱが揺れる */
.global-nav ul { display: flex; gap: 6px; }
.global-nav li:nth-child(1) { --nav: var(--orange); --nav-pale: var(--peach); }
.global-nav li:nth-child(2) { --nav: var(--lime);   --nav-pale: var(--lime-pale); }
.global-nav li:nth-child(3) { --nav: var(--sky);    --nav-pale: var(--sky-pale); }
.global-nav li:nth-child(4) { --nav: var(--pink);   --nav-pale: var(--pink-pale); }
.global-nav ul a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  transition: background-color .25s ease, transform .25s ease;
}
.global-nav ul a::before {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 0 50% 0 50%; /* 葉のかたち */
  background: var(--nav, var(--lime));
  transform-origin: 0% 100%;
}
.global-nav ul a:hover {
  background: var(--nav-pale, var(--lime-pale));
  transform: translateY(-2px);
}
.global-nav ul a:hover::before { animation: leaf-sway .7s ease-in-out; }
/* 狭めのPC(1024〜1279px)は4項目が1行に収まるよう少し詰める */
@media (min-width: 1024px) and (max-width: 1279px) {
  .global-nav { gap: var(--s2); }
  .global-nav ul { gap: 2px; }
  .global-nav ul a { padding-inline: 10px; gap: 6px; font-size: 14px; letter-spacing: .04em; white-space: nowrap; }
  .global-nav ul a::before { width: 10px; height: 10px; }
  .global-nav .btn-sm { padding-inline: 16px; font-size: 14px; white-space: nowrap; }
  .site-header .brand-text strong { font-size: 22px; }
}
@keyframes leaf-sway {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-18deg); }
  65% { transform: rotate(10deg); }
}

.menu-button { display: none; }

@media (max-width: 1023px) {
  .brand-text strong { font-size: 22px; }

  .menu-button {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 56px;
    height: 52px;
    margin-right: -8px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--pink-d);
    cursor: pointer;
    font-family: var(--font-body);
  }
  .menu-icon { position: relative; display: block; width: 24px; height: 16px; }
  .menu-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease, top .2s ease;
  }
  .menu-icon span:nth-child(1) { top: 0; }
  .menu-icon span:nth-child(2) { top: 7px; }
  .menu-icon span:nth-child(3) { top: 14px; }
  .menu-button[aria-expanded="true"] .menu-icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] .menu-icon span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] .menu-icon span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
  .menu-label { font-size: 10px; line-height: 1.2; letter-spacing: .06em; }

  .global-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    padding: var(--s2) var(--gutter) var(--s4);
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .global-nav.is-open { display: flex; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav ul li + li { border-top: 1px solid var(--line); }
  .global-nav ul a { width: 100%; min-height: 56px; padding-inline: 12px; font-size: 16px; }
  .global-nav ul a:hover { transform: none; }
  .global-nav .btn { width: 100%; min-height: 52px; font-size: 16px; }
}

/* ---------- section common ---------- */
.section { padding-block: var(--section-y); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s3);
  color: var(--theme-d);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.6;
}
.section-label-center { justify-content: center; }
.label-mark {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 0 50% 0 50%; /* 葉のかたち */
  background: var(--theme);
}

h2 {
  font-size: clamp(26px, 1vw + 22px, 36px);
  line-height: 1.5;
}
@media (max-width: 767px) { h2 { line-height: 1.55; } }

.section-lead { margin-top: var(--s3); color: var(--ink); }

.small-note { font-size: 14px; line-height: 1.8; color: var(--muted); }

/* ---------- 01 hero ---------- */
/* 参考: 横長写真・下の角だけ大きく丸める・白い縦書き・右下の丸いバッジ */
.hero { padding-top: var(--s2); padding-bottom: var(--s5); }
.hero-visual {
  position: relative;
  max-width: calc(1160px + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.hero-frame {
  position: relative;
  container-type: inline-size;
  overflow: hidden;
  border-radius: 80px; /* 上下とも同じ丸み */
  background: var(--lime-pale);
}
.hero-frame img {
  width: 100%;
  aspect-ratio: 2 / 1;
  height: auto;
  object-fit: cover;
  object-position: 50% 0%; /* 顔と両手が入る上側を残す */
}
.hero-catch {
  position: absolute;
  top: 12%;
  left: 67%;
  margin: 0;
  writing-mode: vertical-rl;
  color: #fff;
  font-size: 3.5cqw; /* 縦書きなのでcqiではなくcqw(写真の横幅基準) */
  line-height: 1.55;
  letter-spacing: .14em;
  font-feature-settings: normal;
  text-wrap: nowrap;
  text-shadow: 0 1px 3px rgba(20, 40, 30, .5), 0 2px 18px rgba(20, 40, 30, .5);
}
.hero-photo figcaption { padding-left: 8px; }

.hero-badge {
  position: absolute;
  right: calc(var(--gutter) + 40px);
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: clamp(168px, 14.5vw, 210px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface);
  color: var(--brand);
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(92, 75, 65, .16);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hero-badge:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(92, 75, 65, .2); }
.hero-badge-mark { width: 34px; height: 34px; }
.hero-badge-title {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .1em;
  line-height: 1.4;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 999px;
  background: var(--orange);
  color: #3F322B; /* オレンジの上でも読める濃い茶色 */
  font-size: 14px;
  font-weight: 700;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
  transition: background-color .2s ease;
}
.hero-badge:hover .hero-badge-pill { background: #FFB452; }

.hero-intro {
  max-width: calc(880px + var(--gutter) * 2);
  padding-inline: var(--gutter); /* ヒーローは従来の余白のまま */
  margin-top: var(--s5);
  text-align: center;
}
.hero-note { margin-top: var(--s2); font-size: 14px; line-height: 1.8; color: var(--muted); }
.hero-actions { display: flex; justify-content: center; margin-top: var(--s3); }

figcaption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

@media (max-width: 1279px) {
  .hero-badge { width: 150px; bottom: -24px; gap: 4px; }
  .hero-badge-mark { width: 28px; height: 28px; }
  .hero-badge-title { font-size: 16px; }
  .hero-badge-pill { padding: 5px 14px; font-size: 13px; }
}
@media (max-width: 1023px) {
  .hero-frame { border-radius: 56px; }
  .hero-badge { right: calc(var(--gutter) - 8px); }
}
@media (max-width: 767px) {
  .hero-frame { border-radius: 32px; }
  /* 右の緑のボケに縦書きを置くため、少し縦長にして左寄せで切る(顔と両手は残る) */
  .hero-frame img { aspect-ratio: 5 / 4; object-position: 0% 0%; }
  .hero-catch { top: 9%; left: 73%; font-size: 6cqw; line-height: 1.5; letter-spacing: .08em; }
  .hero-badge {
    right: calc(var(--gutter) - 6px);
    bottom: -66px;
    width: 116px;
    gap: 3px;
  }
  .hero-badge-mark { width: 22px; height: 22px; }
  .hero-badge-title { font-size: 14px; letter-spacing: .06em; }
  .hero-badge-pill { padding: 4px 11px; font-size: 12px; gap: 4px; }
  .hero-photo figcaption { padding-left: 4px; }
  .hero-intro { margin-top: 72px; text-align: left; }
  .hero-actions { justify-content: flex-start; }
}

/* ---------- こんなお悩みありませんか？ ---------- */
.worries { background: var(--kraft); --theme: var(--orange); --theme-d: var(--brand); --theme-pale: var(--peach); }
.worries-head { text-align: center; }
.worries-head .section-label { margin-bottom: var(--s2); }

.worries-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4) var(--s3); /* 縦は吹き出しのしっぽ分広め */
  margin-top: var(--s5);
}
/* 吹き出し型のカード */
.worries-list li {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 96px;
  padding: 20px 24px 20px 58px;
  border-radius: 24px;
  background: var(--surface);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.7;
  word-break: auto-phrase;
}
.worries-list li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 24px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 0 50% 0 50%; /* 葉のかたち */
  background: var(--dot, var(--lime));
}
.worries-list li::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 40px;
  width: 18px;
  height: 18px;
  background: var(--surface);
  border-radius: 0 0 4px 0;
  transform: rotate(45deg);
}
.worries-list li:nth-child(4n+1) { --dot: var(--lime); }
.worries-list li:nth-child(4n+2) { --dot: var(--sky); }
.worries-list li:nth-child(4n+3) { --dot: var(--orange); }
.worries-list li:nth-child(4n+4) { --dot: var(--pink); }

.worries-answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin: var(--s6) auto 0;
  padding: var(--s5) var(--s5) var(--s4);
  border-radius: 32px;
  background: var(--surface);
  text-align: center;
}
.worries-mark { width: 40px; height: 40px; }
.worries-answer h3 {
  margin-top: var(--s2);
  font-size: clamp(21px, .8vw + 16px, 26px);
  line-height: 1.6;
}
.worries-answer p { margin-top: var(--s2); word-break: auto-phrase; }
/* 蛍光ペン風のマーカー(文字の下半分) */
.marker {
  background: linear-gradient(transparent 70%, rgba(255, 160, 41, .38) 70%, rgba(255, 160, 41, .38) 90%, transparent 90%);
  padding-inline: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.worries-answer .text-link { margin-top: var(--s2); }

@media (max-width: 1199px) {
  .worries-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .worries-head { text-align: left; }
  /* スマホは吹き出しを積まず、白い1枚のカードに点線区切りで並べる */
  .worries-list {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: var(--s4);
    padding: 4px 20px;
    border-radius: 24px;
    background: var(--surface);
  }
  .worries-list li {
    min-height: 0;
    padding: 16px 0 16px 30px;
    border-radius: 0;
    background: none;
    font-size: 15px;
  }
  .worries-list li + li { border-top: 1px dashed var(--line); }
  .worries-list li::before { left: 0; width: 16px; height: 16px; margin-top: -8px; }
  .worries-list li::after { display: none; }
  .worries-answer { align-items: flex-start; margin-top: var(--s5); padding: var(--s4) var(--s3); text-align: left; border-radius: 24px; }
}

/* ---------- 02 approach ---------- */
/* 「過ごし方」と同じ形: 左に見出し、右に「写真＋文章」を縦線でつなぐ */
.approach { background: var(--surface); --theme: var(--lime); --theme-d: var(--lime-d); --theme-pale: var(--lime-pale); }
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s6);
  align-items: start;
}
.approach-head h2 { font-size: clamp(26px, 1.4vw + 20px, 40px); }

.approach-list li { position: relative; }
.approach-list li + li { margin-top: var(--s5); }
.approach-body h3 { font-size: 22px; line-height: 1.6; }
.approach-body p { margin-top: 4px; color: var(--ink); }
/* 見出しの上の「POINT 01」 */
.point-label {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 2px;
  color: var(--lime-d);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .14em;
}
.point-label span { font-size: 20px; letter-spacing: .04em; }

/* 写真を左、文章を右(大切にしていること・過ごし方 共通) */
.approach-list li, .timeline li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  column-gap: var(--s3);
  align-items: start;
}
.approach-list .item-photo, .timeline .item-photo { grid-column: 1; grid-row: 1; }
.approach-body, .timeline-text { grid-column: 2; grid-row: 1; }

/* 項目の写真: 葉っぱ形の角丸 */
.item-photo { margin: 0; }
.item-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  border-radius: 8px 32px 8px 32px;
  background: var(--theme-pale);
}

@media (max-width: 1199px) {
  .approach-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .approach-list { max-width: 760px; }
}
@media (max-width: 767px) {
  .approach-list li + li { margin-top: var(--s4); }
  .approach-body h3 { font-size: 19px; }
  /* スマホは写真を上に全幅 */
  .approach-list li, .timeline li { grid-template-columns: 1fr; row-gap: var(--s2); }
  .approach-list .item-photo, .timeline .item-photo { grid-column: 1; grid-row: 1; }
  .approach-body, .timeline-text { grid-column: 1; grid-row: 2; }
  .item-photo img { aspect-ratio: 16 / 10; }
}

/* ---------- 03 transport ---------- */
.transport { background: var(--sky-pale); --theme: var(--sky); --theme-d: var(--sky-d); --theme-pale: var(--sky-pale); }
.transport-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "photo text";
  gap: var(--s5) var(--s6);
  align-items: center;
}
.transport-photo { grid-area: photo; }
.transport-text { grid-area: text; }
.transport-photo img { width: 100%; border-radius: var(--radius-photo); }
.transport-text h2 { margin-bottom: var(--s3); }

.transport-steps-title {
  margin-top: var(--s6);
  font-size: 22px;
  line-height: 1.5;
  text-align: center;
}
.transport-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  margin-top: var(--s4);
  counter-reset: step;
}
.transport-steps li {
  position: relative;
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
}
/* ステップ同士をつなぐ線 */
.transport-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: calc(var(--s5) / -2 - 16px);
  width: 32px;
  height: 2px;
  background: var(--theme);
}
.step-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--theme);
  color: var(--theme-d);
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .04em;
}
.transport-steps h4 { font-size: 19px; line-height: 1.5; padding-top: 12px; }
.transport-steps p { margin-top: 4px; font-size: 15px; line-height: 1.8; }

.transport-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
  margin-top: var(--s5);
  padding: var(--s4) var(--s3);
  background: var(--surface);
  border-radius: 24px;
  text-align: center;
}

@media (max-width: 1023px) {
  .transport-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "photo";
    gap: var(--s4);
  }
  .transport-steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .transport-steps li { padding-bottom: var(--s3); }
  .transport-steps li:not(:last-child)::after {
    top: 60px;
    bottom: 4px;
    left: 28px;
    right: auto;
    width: 1px;
    height: auto;
  }
  .transport-steps-title { margin-top: var(--s5); }
}
@media (max-width: 767px) {
  .transport-steps-title { text-align: left; font-size: 20px; }
  .transport-steps { margin-inline: 0; }
  .transport-note { align-items: flex-start; text-align: left; padding: var(--s3); }
}

/* ---------- 04 day ---------- */
.day { background: var(--surface); --theme: var(--orange); --theme-d: var(--orange-d); --theme-pale: var(--peach); }
.timeline li:nth-child(1) { --dot: var(--lime); }
.timeline li:nth-child(2) { --dot: var(--sky); }
.timeline li:nth-child(3) { --dot: var(--orange); }
.timeline li:nth-child(4) { --dot: var(--pink); }
.day-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s6);
  align-items: start;
}
.day-head h2 { font-size: clamp(26px, 1.4vw + 20px, 40px); }

.timeline {
  position: relative;
  padding-left: 48px;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 9px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.timeline li { position: relative; }
.timeline li + li { margin-top: var(--s5); }
.timeline li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -48px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--dot, var(--orange));
  box-shadow: 0 0 0 6px var(--surface);
}
.timeline h3 { font-size: 22px; line-height: 1.6; }
.timeline p { margin-top: 4px; }
.day-flow .small-note { margin-top: var(--s5); }

@media (max-width: 1199px) {
  .day-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .timeline { max-width: 760px; }
}
@media (max-width: 767px) {
  .timeline { padding-left: 36px; }
  .timeline li::before { left: -36px; top: 8px; width: 18px; height: 18px; }
  .timeline::before { left: 8px; }
  .timeline li + li { margin-top: var(--s4); }
  .timeline h3 { font-size: 19px; }
}

/* ---------- 05 guide & FAQ ---------- */
.guide { --theme: var(--pink); --theme-d: var(--pink-d); --theme-pale: var(--pink-pale); }

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
  margin-top: var(--s5);
}
.guide-steps li {
  position: relative;
  container-type: inline-size;
}
.guide-steps .item-photo { width: 100%; }
/* ステップの間の「→」(写真の高さの真ん中) */
.guide-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(100cqw * .375 - 6px);
  right: calc(var(--s4) / -2 - 5px);
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--brand);
  border-right: 3px solid var(--brand);
  border-radius: 2px;
  transform: rotate(45deg);
}
.guide-steps li:nth-child(1) { --step-d: var(--lime-d); }
.guide-steps li:nth-child(2) { --step-d: var(--sky-d); }
.guide-steps li:nth-child(3) { --step-d: var(--orange-d); }
.guide-steps .step-label { margin: var(--s2) 0 0; max-width: none; color: var(--step-d, var(--lime-d)); font-size: 13px; line-height: 1.4; }
.guide-steps h3 { margin-top: 2px; font-size: 20px; line-height: 1.5; }
.guide-steps p { margin-top: var(--s1); font-size: 15px; line-height: 1.8; }
.guide-note { margin-top: var(--s4); text-align: left; }

.faq { margin-top: var(--s6); }
.faq-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 24px;
  line-height: 1.5;
}
.faq-title::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--pink);
}
.faq-list { margin-top: var(--s3); border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 32px;
  gap: var(--s2);
  align-items: center;
  min-height: 72px;
  padding: var(--s2) var(--s1);
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  transition: color .2s ease, background-color .2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--ink); background: var(--pink-pale); }
.faq-q, .faq-a {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--sky-d);
  line-height: 1.6;
}
.faq-a { color: var(--orange-d); }
.faq-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pink);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform .2s ease;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s2);
  padding: 0 calc(var(--s1) + 48px) var(--s3) var(--s1);
}
.faq-answer p { color: var(--ink); }

@media (max-width: 767px) {
  .guide-steps { grid-template-columns: 1fr; gap: var(--s4); }
  .guide-steps h3 { font-size: 19px; }
  .guide-steps li:not(:last-child)::after { display: none; }
  .guide-note { text-align: left; margin-top: var(--s3); }
  .faq-title { font-size: 21px; }
  .faq-item summary { grid-template-columns: auto minmax(0, 1fr) 28px; gap: 12px; padding-inline: 0; }
  .faq-icon { width: 28px; height: 28px; }
  .faq-answer { gap: 12px; padding: 0 0 var(--s3) 0; }
}

/* ---------- 06 contact ---------- */
.contact { background: var(--peach); text-align: center; --theme: var(--orange); --theme-d: var(--orange-d); --theme-pale: var(--peach); }
.contact-inner { max-width: calc(880px + var(--section-gutter) * 2); }
.contact h2 { font-size: clamp(26px, 1.4vw + 20px, 40px); }
.contact-lead { margin-top: var(--s3); }
.contact .btn-lg { margin-top: var(--s5); }
.contact-demo { margin-top: var(--s2); font-size: 14px; line-height: 1.8; color: var(--muted); }

@media (max-width: 767px) {
  .contact { text-align: left; }
  .section-label-center { justify-content: flex-start; }
  .contact .btn-lg { width: 100%; padding-inline: 20px; font-size: 17px; }
}

/* ---------- footer ---------- */
.site-footer { padding-block: var(--s5) var(--s4); }
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s4);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.brand-footer .brand-text strong { font-size: 28px; }
.facility-info { margin: 0; display: grid; gap: 4px; font-size: 14px; line-height: 1.8; }
.facility-info div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: var(--s2); }
.facility-info dt { color: var(--muted); }
.facility-info dd { margin: 0; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding-top: var(--s3);
}
.footer-note { font-size: 13px; line-height: 1.8; color: var(--muted); }
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  min-height: 44px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}
.to-top:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 6px; }

@media (max-width: 767px) {
  .footer-top { flex-direction: column; }
  .facility-info div { grid-template-columns: 1fr; gap: 0; }
  .facility-info div + div { margin-top: 8px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- floating CTA (mobile) ---------- */
.floating-cta { display: none; }
@media (max-width: 767px) {
  .floating-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 52px;
    border-radius: var(--radius-btn);
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(92, 75, 65, .2);
    transition: opacity .2s ease, visibility .2s ease;
  }
  .floating-cta.is-hidden { opacity: 0; visibility: hidden; }
}

/* ---------- dialog ---------- */
.consult-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--surface);
  color: var(--ink);
  overflow: auto;
}
.consult-dialog::backdrop { background: rgba(92, 75, 65, .45); }
.dialog-inner { padding: var(--s5) var(--s5) var(--s4); }
.consult-dialog h2 { font-size: 24px; line-height: 1.5; }
.dialog-list { margin-top: var(--s3); border-top: 1px solid var(--line); }
.dialog-list li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-list li::before {
  content: "";
  position: absolute;
  top: calc(14px + .95em - 5px);
  left: 2px;
  width: 10px;
  height: 10px;
  border-radius: 0 50% 0 50%;
  background: var(--mark, var(--lime));
}
.dialog-list li:nth-child(2) { --mark: var(--sky); }
.dialog-list li:nth-child(3) { --mark: var(--orange); }
.dialog-list li:nth-child(4) { --mark: var(--pink); }
.dialog-note { margin-top: var(--s3); font-size: 14px; line-height: 1.8; color: var(--muted); }
.consult-dialog .btn { width: 100%; margin-top: var(--s3); }
@media (max-width: 767px) {
  .dialog-inner { padding: var(--s4) var(--s3) var(--s3); }
  .consult-dialog h2 { font-size: 21px; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
