/* ===== 色と基本（チラシの空の青・オレンジ・黄・紺・生成り） ===== */
:root {
  --blue: #1e73c8;
  --orange: #f47a12;
  --orange-dark: #b65508;
  --yellow: #fbe04a;
  --navy: #12305a;
  --cream: #f7f3ea;
  --line: #c9d6e8;
  --red: #b3261e; /* 【要確認】の印 */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif; font-size: 16px; line-height: 1.8; color: var(--navy); background: var(--cream); padding-bottom: 80px; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, dd, dt, summary, li, a, span { word-break: auto-phrase; }
.tbd { color: var(--red); font-weight: 700; font-size: 14px; }
.ai-note { font-size: 12px; color: #5a6475; }

/* 関係者確認用の表示（本番公開の時は index.html の行と一緒に消す） */
.review-note { background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 26px; letter-spacing: .05em; }

/* ===== 1. ファーストビュー（Aの写真コラージュ） ===== */
.hero { background: var(--blue); overflow: hidden; }
.hero__inner { position: relative; max-width: 760px; margin-inline: auto; padding: 22px 16px 20px; font-family: "Zen Kaku Gothic New", sans-serif; }
.hero__tag { display: inline-block; background: #fff; padding: 4px 10px; font-weight: 900; font-size: 15px; transform: rotate(-4deg); box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.hero__title { margin-top: 4px; position: relative; z-index: 2; }
.hero__title span { display: table; font-weight: 900; }
.t1 { background: var(--yellow); padding: 2px 10px; font-size: 34px; line-height: 1.25; transform: rotate(-2deg); }
.t2 { margin-top: 8px; background: #fff; padding: 2px 10px; font-size: 22px; line-height: 1.5; }
.t3 { font-family: "Dela Gothic One", sans-serif; font-weight: 400 !important; font-size: 84px; line-height: 1.05; color: var(--orange); -webkit-text-stroke: 6px #fff; paint-order: stroke fill; text-shadow: 0 5px 0 rgba(0,0,0,.18); margin-top: 6px; letter-spacing: -.02em; }
.t4 { background: #fff; padding: 2px 10px; font-size: 24px; line-height: 1.5; margin-top: 2px; }
.pc { position: absolute; border: 5px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.25); z-index: 1; object-fit: cover; }
.pc1 { right: 10px; top: 18px; width: 104px; height: 86px; transform: rotate(6deg); }
.pc2 { right: 18px; top: 150px; width: 92px; height: 74px; transform: rotate(-5deg); }
.pc3 { display: none; }
.hero__kids { width: 100%; height: 200px; object-fit: cover; object-position: center 30%; }

/* ===== 2. チケット ===== */
main { max-width: 760px; margin-inline: auto; }
.ticket { position: relative; z-index: 3; margin: -48px 14px 0; background: #fff; border-radius: 14px; box-shadow: 0 6px 18px rgba(18,48,90,.18); overflow: hidden; }
.ticket__head { background: var(--blue); color: #fff; padding: 10px 16px; display: flex; justify-content: space-between; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .06em; }
.ticket__body { padding: 14px 16px 18px; }
.ticket__lead { font-weight: 900; font-size: 18px; line-height: 1.5; }
.ticket__cut { border-top: 2px dashed var(--line); margin: 14px -16px; position: relative; }
.ticket__cut::before, .ticket__cut::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); }
.ticket__cut::before { left: -10px; } .ticket__cut::after { right: -10px; }
.ticket__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.ticket__grid dt { font-size: 13px; font-weight: 700; color: var(--blue); }
.ticket__grid dd { font-size: 18px; font-weight: 900; line-height: 1.35; }
.ticket__grid div:first-child { grid-column: 1 / -1; } /* 日付は1行で見せる */
.ticket__grid dd small { display: block; font-size: 13px; font-weight: 700; color: #4a5a73; margin-top: 2px; }

/* ボタン */
.cta-wrap { padding: 18px 14px 0; }
.btn { display: block; min-height: 56px; padding: 14px 16px; background: var(--orange); color: #fff; text-align: center; font-weight: 900; font-size: 19px; line-height: 1.4; text-decoration: none; border-radius: 999px; box-shadow: 0 4px 0 var(--orange-dark); }
.btn small { display: block; font-size: 12px; font-weight: 700; }
.btn:hover { background: #e06c08; }
.btn:focus-visible, .fixed-cta:focus-visible, summary:focus-visible, .contact a:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.cta-wrap .ai-note { margin-top: 10px; }

/* ===== 共通セクション ===== */
.sec { padding: 48px 18px 0; scroll-margin-top: 16px; }
.sec__title { font-weight: 900; font-size: 24px; line-height: 1.4; margin-bottom: 6px; }

/* ===== 3. 旅のルート ===== */
.route { position: relative; }
.stamp { position: absolute; right: 16px; top: 30px; width: 92px; height: 92px; border: 3px solid var(--blue); border-radius: 50%; color: var(--blue); display: grid; place-items: center; font-family: "Zen Kaku Gothic New", sans-serif; font-weight: 900; font-size: 13px; text-align: center; line-height: 1.2; transform: rotate(-14deg); opacity: .85; pointer-events: none; }
.route__list { list-style: none; margin-top: 18px; padding-left: 20px; margin-left: 6px; } /* 縦の点線は「旅の道」に任せる */
.route__list li { position: relative; padding: 4px 0 18px; }
.route__list li::before { content: ""; position: absolute; left: -29px; top: 8px; width: 15px; height: 15px; border-radius: 50%; background: var(--orange); border: 3px solid var(--cream); }
.route__list time { display: block; font-size: 15px; font-weight: 900; color: var(--orange-dark); letter-spacing: .03em; line-height: 1.4; }
.route__list b { display: block; font-size: 18px; font-weight: 900; line-height: 1.5; }
.route__list span { display: block; font-size: 16px; color: #33496b; }

/* ===== 4. 旅のしおり ===== */
.guide__list { margin-top: 14px; background: #fff; border-radius: 14px; padding: 6px 16px; box-shadow: 0 2px 8px rgba(18,48,90,.08); }
.guide__list div { display: grid; grid-template-columns: 6.2em 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.guide__list div:last-child { border-bottom: 0; }
.guide__list dt { font-weight: 900; color: var(--blue); }
.guide__list strong { color: var(--orange-dark); }

/* ===== 5. 保護者の方へ ===== */
.faq { display: grid; gap: 10px; margin-top: 14px; }
.faq details { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(18,48,90,.06); }
.faq summary { cursor: pointer; list-style: none; min-height: 48px; padding: 12px 44px 12px 16px; font-weight: 700; line-height: 1.6; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--orange); font-weight: 900; margin-right: 8px; }
.faq summary::after { content: "＋"; position: absolute; right: 16px; top: 12px; color: var(--blue); font-weight: 900; }
.faq details[open] summary::after { content: "－"; }
.faq details p { padding: 0 16px 14px 36px; }

/* ===== 6. 申込・7. 問い合わせ ===== */
.apply__deadline { font-size: 17px; font-weight: 700; margin: 10px 0 16px; }
.apply__deadline strong { font-size: 22px; color: var(--orange-dark); }
.apply__note { font-size: 16px; font-weight: 700; margin: -6px 0 16px; padding: 10px 14px; background: #fff; border-left: 5px solid var(--orange); border-radius: 0 8px 8px 0; }
.faq a, .guide__list a { color: var(--blue); word-break: break-all; }
.btn--big { font-size: 20px; padding-block: 18px; }
.contact { text-align: center; }
.contact p { font-size: 17px; font-weight: 700; }
.contact a { display: inline-block; min-height: 44px; line-height: 44px; word-break: break-all; color: var(--blue); }

/* ===== 「モノランゲージ」を押すと開く小窓 ===== */
.term { font: inherit; color: var(--blue); font-weight: 700; background: none; border: 0; padding: 8px 2px; margin: -8px 0; cursor: pointer; text-decoration: underline dotted 2px; text-underline-offset: 4px; }
.term::after { content: "?"; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 3px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; font-weight: 900; text-decoration: none; vertical-align: 2px; }
.term:hover { color: var(--navy); }
.term:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.dialog { border: 0; padding: 0; background: transparent; max-width: min(520px, calc(100vw - 32px)); width: 100%; margin: auto; color: var(--navy); }
.dialog::backdrop { background: rgba(18, 48, 90, .55); }
.dialog__box { position: relative; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.3); max-height: calc(100dvh - 48px); overflow-y: auto; }
.dialog__photo { width: 100%; aspect-ratio: 900 / 620; object-fit: cover; }
.dialog__body { padding: 18px 20px 20px; }
.dialog__title { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.dialog__body p { font-size: 16px; line-height: 1.8; }
.dialog__body .tbd { margin-top: 6px; }
.dialog__close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy); font-size: 26px; line-height: 1; font-weight: 700; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.dialog__close:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.quiz { margin-top: 14px; background: var(--cream); border-radius: 12px; }
.quiz summary { list-style: none; cursor: pointer; min-height: 48px; padding: 12px 14px; font-weight: 900; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.quiz summary::-webkit-details-marker { display: none; }
.quiz summary span { font-size: 14px; color: #fff; background: var(--orange); border-radius: 999px; padding: 4px 12px; }
.quiz[open] summary span { background: var(--blue); }
.quiz p { padding: 0 14px 14px; font-weight: 700; }
.dialog__credit { margin-top: 12px; font-size: 12px !important; color: #5a6475; }
/* 小窓がふわっと浮かび上がる（開いた時だけ） */
.dialog[open] .dialog__box { animation: dlgIn .35s cubic-bezier(.2, .8, .3, 1.1); }
.dialog[open]::backdrop { animation: dlgFade .3s ease-out; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dlgFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dialog[open] .dialog__box, .dialog[open]::backdrop { animation: none; } }

/* ===== フッター ===== */
.footer { max-width: 760px; margin: 48px auto 0; padding: 24px 18px 28px; border-top: 2px solid var(--line); font-size: 14px; font-weight: 700; }
.footer__org { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 20px; }
.footer .ai-note { margin-top: 4px; font-weight: 500; }

/* ===== 画面下の固定ボタン（スマホ） ===== */
.fixed-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 10; min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--orange); color: #fff; font-weight: 900; font-size: 18px; text-decoration: none; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.fixed-cta small { font-size: 12px; font-weight: 700; }

/* ===== 動き（script.js が .is-ready を付けた時だけ） ===== */
.js .hero.play .pc1 { animation: paste1 .45s .2s cubic-bezier(.2,.8,.3,1.25) both; }
.js .hero.play .pc2 { animation: paste2 .45s .45s cubic-bezier(.2,.8,.3,1.25) both; }
.js .hero.play .pc3 { animation: paste3 .45s .6s cubic-bezier(.2,.8,.3,1.25) both; }
.js .hero.play .t3 { animation: pop .6s .7s cubic-bezier(.2,.8,.3,1.35) both; }
@keyframes paste1 { from { opacity: 0; transform: rotate(18deg) scale(1.4); } to { opacity: 1; transform: rotate(6deg) scale(1); } }
@keyframes paste2 { from { opacity: 0; transform: rotate(-18deg) scale(1.4); } to { opacity: 1; transform: rotate(-5deg) scale(1); } }
@keyframes paste3 { from { opacity: 0; transform: rotate(16deg) scale(1.4); } to { opacity: 1; transform: rotate(4deg) scale(1); } }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.85); } to { opacity: 1; transform: none; } }
.js .route__list li { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s ease-out; }
.js .route.in .route__list li { opacity: 1; transform: none; }
.js .route.in .route__list li:nth-child(2) { transition-delay: .15s; }
.js .route.in .route__list li:nth-child(3) { transition-delay: .3s; }
.js .route.in .route__list li:nth-child(4) { transition-delay: .45s; }
.js .route.in .route__list li:nth-child(5) { transition-delay: .6s; }
.js .route.in .route__list li:nth-child(6) { transition-delay: .75s; }
.js .stamp { opacity: 0; }
.js .route.in .stamp { animation: stamp .5s 1.05s cubic-bezier(.2,.8,.3,1.2) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(-14deg) scale(1.8); } to { opacity: .85; transform: rotate(-14deg) scale(1); } }

/* ===== 旅の道（足跡・軌跡）：スクロールに合わせて上から下へ伸びる ===== */
html, body { overflow-x: clip; } /* 道が画面の外へはみ出しても横スクロールさせない */
.journey { position: relative; }
.journey > .sec { position: relative; z-index: 1; } /* 本文は道より前に出す */
.trail { position: absolute; top: 0; left: 0; pointer-events: none; overflow: visible; z-index: 0; }
.trail__path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-dasharray: 1 10; stroke-linecap: round; opacity: .35; }
.trail__steps { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.step { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--orange); opacity: 0; transform: scale(.3); transition: opacity .35s ease-out, transform .35s ease-out; }
.step.on { opacity: .9; transform: scale(1); }
/* 足跡（images/footprint.svg）。右足は左足を左右反転して使う */
.step.foot { width: 12px; height: 22px; margin: -11px 0 0 -6px; border-radius: 0; background: url(images/footprint.svg) center / contain no-repeat; transform: rotate(var(--r, 180deg)) scale(var(--flip, 1), 1) scale(.3); }
.step.foot.on { opacity: .32; transform: rotate(var(--r, 180deg)) scale(var(--flip, 1), 1); }
.goal { display: inline-block; margin-left: 10px; padding: 2px 12px; background: var(--yellow); border-radius: 999px; font-size: 14px; vertical-align: 4px; }

/* ===== アンダーライン：大事な所に、オレンジの線を左から引く ===== */
.ul { background-image: linear-gradient(var(--orange), var(--orange)); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 3px; padding-bottom: 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.js .ul { background-size: 0% 3px; transition: background-size .6s cubic-bezier(.33, 1, .68, 1); }
.js .ul.on { background-size: 100% 3px; }

@media (prefers-reduced-motion: reduce) {
  .js .ul { background-size: 100% 3px; transition: none; }
  .step { opacity: .9; transition: none; transform: none; }
  .step.foot { opacity: .32; }
  .step.foot { transform: rotate(var(--r, 180deg)) scale(var(--flip, 1), 1); }
  .js .hero.play .pc1, .js .hero.play .pc2, .js .hero.play .pc3, .js .hero.play .t3, .js .route.in .stamp { animation: none; }
  .js .route__list li { opacity: 1; transform: none; transition: none; }
  .js .stamp { opacity: .85; }
}

/* ===== PC（広い画面） ===== */
@media (min-width: 768px) {
  body { font-size: 17px; padding-bottom: 0; }
  .hero__inner { padding: 44px 40px 36px; min-height: 520px; }
  .hero__tag { font-size: 18px; }
  .t1 { font-size: 56px; }
  .t2 { font-size: 34px; }
  .t3 { font-size: 150px; -webkit-text-stroke-width: 9px; }
  .t4 { font-size: 38px; }
  .pc1 { right: 40px; top: 30px; width: 200px; height: 165px; border-width: 7px; }
  .pc2 { right: 70px; top: 230px; width: 170px; height: 137px; border-width: 7px; }
  .pc3 { display: block; right: 150px; top: 385px; width: 120px; height: 126px; transform: rotate(4deg); border-width: 6px; }
  .hero__kids { max-width: 1100px; height: 360px; margin-inline: auto; }
  .ticket { margin: -80px 0 0; }
  .ticket__body { padding: 20px 28px 24px; }
  .ticket__lead { font-size: 22px; }
  .ticket__cut { margin-inline: -28px; }
  .ticket__grid { grid-template-columns: repeat(3, 1fr); gap: 18px 20px; }
  .ticket__grid div:first-child { grid-column: auto; }
  .ticket__grid dd { font-size: 21px; }
  .cta-wrap { padding: 24px 0 0; max-width: 520px; margin-inline: auto; text-align: center; }
  .sec { padding: 64px 0 0; }
  .sec__title { font-size: 30px; }
  .route__list { columns: 1; }
  .stamp { width: 120px; height: 120px; font-size: 17px; right: 10px; }
  .apply .btn { max-width: 520px; margin-inline: auto; }
  .fixed-cta { display: none; }
  .step { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
  .step.foot { width: 16px; height: 30px; margin: -15px 0 0 -8px; }
}
