/* リトルハウス / Little House — 紹介サイト
   色はアプリの画面（生成りの紙・くるみ色の文字・テラコッタの購入ボタン・セージの選択色）からとっている。
   変数の名前は元にしたサイトのまま（orange = テラコッタ、green = セージ）。 */

:root {
  --cream: #f7efe2;
  --cream-deep: #efe2cc;
  --paper: #fffaf2;
  --ink: #3b2a20;
  --ink-soft: #6b5546;
  --line: #e6d5bb;
  --orange: #d9875f;
  --orange-deep: #b9603d;
  --green: #5f8a5c;
  --blue: #6c8db5;
  --purple: #9479b3;
  --red: #b9483a;
  --rail: #8d7a66;
  --sleeper: #5c3d2b;
  --radius: 22px;
  --shadow: 0 10px 0 rgba(59, 42, 32, 0.07), 0 24px 48px rgba(59, 42, 32, 0.12);
  --font-round: "Hiragino Maru Gothic ProN", "Zen Maru Gothic", "Arial Rounded MT Bold", "Yu Gothic UI", "Yu Gothic", "Meiryo", sans-serif;
  --font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--orange-deep); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 10px;
}
.skip:focus { left: 8px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-round); line-height: 1.3; margin: 0; font-weight: 700; word-break: auto-phrase; text-wrap: balance; line-break: strict; }
/* 文節の途中で折り返さないためのかたまり */
.nb { display: inline-block; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.6rem); letter-spacing: 0.02em; text-wrap: balance; }
h3 { font-size: 1.2rem; }
p { margin: 0; line-break: strict; }
summary { word-break: auto-phrase; line-break: strict; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-round); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em;
  color: var(--orange-deep);
  margin-bottom: 10px;
}

/* ---------- ヘッダー ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 246, 230, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 3px 0 rgba(43, 49, 71, 0.15); }
.brand b { font-family: var(--font-round); font-size: 1.15rem; letter-spacing: 0.04em; }
.brand small { display: block; font-size: 0.68rem; color: var(--ink-soft); letter-spacing: 0.12em; line-height: 1.1; }
.nav { display: flex; gap: 4px; }
.nav a {
  font-family: var(--font-round); font-weight: 700; font-size: 0.92rem;
  color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 12px;
}
.nav a:hover { background: var(--cream-deep); }
@media (max-width: 820px) { .nav { display: none; } }

.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  font-family: var(--font-round); font-weight: 700; font-size: 0.82rem; line-height: 1;
  color: var(--ink); background: var(--paper); text-decoration: none;
  border: 2px solid var(--line); border-radius: 12px; padding: 8px 11px;
  box-shadow: 0 3px 0 var(--line);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.lang-switch:hover {
  color: var(--ink); border-color: var(--orange);
  transform: translateY(-1px); box-shadow: 0 4px 0 var(--line);
}
.lang-switch:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
@media (max-width: 480px) {
  .site-header .wrap { gap: 8px; }
  .brand { gap: 8px; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .brand b { font-size: 1rem; }
  .brand small { font-size: 0.62rem; }
  .lang-switch { font-size: 0.76rem; padding: 7px 9px; }
  .site-header .btn-small { font-size: 0.82rem; padding: 8px 12px; }
}

/* ---------- ボタン ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-round); font-weight: 700; font-size: 1.02rem;
  padding: 14px 26px; border-radius: 18px; border: 0; cursor: pointer;
  text-decoration: none; color: #fff; background: var(--ink);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 7px 0 rgba(0, 0, 0, 0.22); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22); }
.btn-go { background: var(--green); }
.btn-orange { background: var(--orange); }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: 0 5px 0 var(--line); }
.btn-ghost:hover { color: var(--ink); box-shadow: 0 7px 0 var(--line); }
.btn-small { font-size: 0.9rem; padding: 9px 16px; border-radius: 14px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22); }
.btn[aria-disabled="true"] { cursor: default; }
.btn .play { width: 0; height: 0; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }

/* ---------- ヒーロー ---------- */

.hero { padding: 24px 0 0; position: relative; }
.hero-copy { text-align: center; }
.hero-copy .eyebrow { font-size: 0.8rem; margin-bottom: 4px; }
.hero-logo { width: min(520px, 78%); margin: 0 auto -6px; filter: drop-shadow(0 10px 14px rgba(43, 49, 71, 0.25)); }
.hero h1 { font-size: clamp(2.4rem, 7.6vw, 3.9rem); line-height: 1.14; letter-spacing: 0.06em; }
.hero h1 span { color: var(--orange-deep); }
.tagline {
  font-family: var(--font-round); font-weight: 700;
  font-size: clamp(0.98rem, 2.4vw, 1.24rem); line-height: 1.4; letter-spacing: 0.12em; margin-top: 4px;
}
.tagline i { font-style: normal; display: inline-block; }
.tagline i:nth-child(1) { color: var(--orange-deep); }
.tagline i:nth-child(2) { color: var(--green); }
.tagline i:nth-child(3) { color: var(--blue); }
.tagline i:nth-child(4) { color: var(--purple); }
.hero-lead { max-width: 740px; margin: 8px auto 0; font-size: clamp(0.86rem, 1.3vw, 0.95rem); line-height: 1.65; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 14px; }
.hero-cta .btn { padding: 10px 22px; font-size: 0.94rem; border-radius: 15px; box-shadow: 0 4px 0 rgba(0, 0, 0, 0.22); }
.hero-cta .btn-ghost { box-shadow: 0 4px 0 var(--line); }
.hero-cta .btn:hover { box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22); }
.hero-cta .btn-ghost:hover { box-shadow: 0 6px 0 var(--line); }
.hero-cta .btn .play { border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; }
.hero-note { font-size: 0.78rem; line-height: 1.5; color: var(--ink-soft); margin-top: 8px; }

/* 横向きの iPhone の枠。動画とスクリーンショットをこの中に入れる */
.device {
  background: #1b2030; border-radius: clamp(18px, 3.4vw, 40px);
  padding: clamp(6px, 1.1vw, 13px);
  box-shadow: var(--shadow);
  position: relative;
}
.device > img, .device > video {
  width: 100%; height: auto; border-radius: clamp(12px, 2.4vw, 28px); background: #10131c;
}
.hero-screen { width: min(920px, 100% - 28px); margin: 18px auto 0; }
.hero-screen .device { border-radius: clamp(18px, 2.6vw, 32px); padding: clamp(6px, 0.8vw, 10px); }
.hero-screen .device > video { border-radius: clamp(12px, 1.9vw, 23px); }
.hero-screen .caption { margin-top: 6px; font-size: 0.78rem; line-height: 1.45; }
.hero .track { height: 48px; margin-top: 8px; }
.video-wrap { position: relative; }
.video-toggle {
  position: absolute; right: 14px; bottom: 14px;
  font-family: var(--font-round); font-weight: 700; font-size: 0.8rem;
  background: rgba(27, 32, 48, 0.78); color: #fff; border: 0; border-radius: 12px; padding: 7px 12px; cursor: pointer;
}
.caption { text-align: center; font-size: 0.82rem; color: var(--ink-soft); margin-top: 14px; }

@media (min-width: 720px) {
  .hero {
    padding: clamp(12px, 1.8svh, 24px) 0 0;
    min-height: min(calc(100svh - 58px), 920px);
    display: flex;
    flex-direction: column;
  }
  .hero-screen {
    width: clamp(540px, min(920px, calc((100svh - 416px) * 1.89)), calc(100% - 40px));
    margin: clamp(12px, 1.8svh, 20px) auto 0;
  }
  .hero .track {
    margin-top: auto;
  }
}

/* ---------- 線路の仕切り（小さな電車が走る） ---------- */

.track { position: relative; height: 54px; margin-top: 34px; overflow: hidden; }
.track::before {
  /* まくらぎ */
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 16px;
  background: repeating-linear-gradient(90deg, var(--sleeper) 0 8px, transparent 8px 26px);
  opacity: 0.85;
}
.track::after {
  /* レール 2 本 */
  content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 10px;
  border-top: 3px solid var(--rail); border-bottom: 3px solid var(--rail);
}
.toy-train {
  position: absolute; bottom: 19px; left: 0; display: flex; gap: 3px; z-index: 1;
  animation: run 22s linear infinite;
}
.toy-train b {
  display: block; width: 58px; height: 24px; border-radius: 6px 6px 3px 3px;
  background:
    linear-gradient(var(--band, #f4ecd6), var(--band, #f4ecd6)) 0 14px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, var(--glass, #1b2030) 0 9px, transparent 9px 14px) 6px 5px / 46px 7px no-repeat,
    var(--c, var(--green));
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25);
}
.toy-train b:last-child { border-radius: 6px 12px 3px 3px; }

/* 気動車：オレンジとクリームの 2 両 */
.t-diesel b { --c: #e8742a; --band: #f6e7c4; width: 62px; }
/* 高速列車：白い車体に青い帯、長い鼻。速い */
.t-bullet { animation-duration: 9s; }
.t-bullet b { --c: #f4f6f8; --band: #2b6fd6; width: 66px; height: 21px; box-shadow: inset 0 -3px 0 rgba(43, 111, 214, 0.35); }
.t-bullet b:last-child { border-radius: 6px 46px 4px 3px; width: 78px; }
.t-bullet b:first-child { border-radius: 46px 6px 3px 4px; width: 78px; }
/* 貨物列車：青い機関車とコンテナ */
.t-freight { animation-duration: 30s; }
.t-freight b { background: var(--c); width: 50px; height: 20px; border-radius: 3px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), inset 16px 0 0 -14px rgba(0, 0, 0, 0.2); }
.t-freight b:nth-child(1) { --c: #c8442f; }
.t-freight b:nth-child(2) { --c: #2e7d4f; }
.t-freight b:nth-child(3) { --c: #d98a1f; }
.t-freight b:nth-child(4) { --c: #5a6078; }
.t-freight b:last-child {
  width: 60px; height: 26px; border-radius: 5px 10px 3px 3px;
  background:
    linear-gradient(#f4ecd6, #f4ecd6) 0 16px / 100% 2px no-repeat,
    linear-gradient(#1b2030, #1b2030) 38px 5px / 14px 8px no-repeat,
    #2458b8;
}
/* 蒸気機関車：黒い機関車とえんじ色の客車。煙がのぼる */
.t-steam { animation-duration: 26s; }
.t-steam b { --c: #8e2430; --band: #e6b84a; --glass: #f6e7c4; }
.t-steam b:last-child {
  position: relative; width: 64px; height: 20px; align-self: flex-end; border-radius: 4px 12px 3px 3px;
  background:
    linear-gradient(#1e1f22, #1e1f22) 0 -8px / 22px 100% no-repeat,
    radial-gradient(circle at 50% 50%, #c8442f 0 3px, transparent 4px) 26px 12px / 12px 12px repeat-x,
    #1e1f22;
  box-shadow: none; overflow: visible;
}
.t-steam b:last-child::before {
  /* 運転室と煙突 */
  content: ""; position: absolute; left: 0; bottom: 100%; width: 22px; height: 9px; background: #1e1f22; border-radius: 4px 4px 0 0;
  box-shadow: 34px 3px 0 -1px #1e1f22, 46px 5px 0 -2px #e6b84a;
}
.t-steam b:last-child::after {
  /* 煙 */
  content: ""; position: absolute; left: 30px; bottom: 30px; width: 12px; height: 12px; border-radius: 50%;
  background: rgba(120, 124, 140, 0.55);
  box-shadow: -14px -8px 0 3px rgba(120, 124, 140, 0.38), -34px -14px 0 6px rgba(120, 124, 140, 0.22);
  animation: puff 1.6s ease-in-out infinite;
}
@keyframes puff { 50% { transform: translate(-4px, -4px) scale(1.15); opacity: 0.7; } }

/* 右から左へ走る */
.toy-train.rev { animation-name: run-rev; flex-direction: row-reverse; }
.toy-train.rev b:last-child { border-radius: 12px 6px 3px 3px; }
.t-bullet.rev b:last-child { border-radius: 46px 6px 3px 4px; }
.t-bullet.rev b:first-child { border-radius: 6px 46px 4px 3px; }
@keyframes run-rev { from { transform: translateX(100vw); } to { transform: translateX(-340px); } }
.track.tall { height: 84px; }
.track.in-band { margin-top: 56px; margin-bottom: -84px; }
@keyframes run { from { transform: translateX(-340px); } to { transform: translateX(100vw); } }

/* ---------- セクション ---------- */

section { padding: 84px 0; }
section[id], h2[id] { scroll-margin-top: 58px; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); max-width: 640px; margin: 14px auto 0; }
.band { background: var(--paper); border-block: 2px solid var(--line); }
.band-ink { background: var(--ink); color: #fff; }
.band-ink .eyebrow { color: #ffc27d; }
.band-ink .section-head p { color: #c6cbe0; }

/* 4 つの遊び */
.play-row { display: grid; gap: 28px; align-items: center; margin-bottom: 72px; }
.play-row:last-child { margin-bottom: 0; }
@media (min-width: 860px) {
  .play-row { grid-template-columns: 5fr 7fr; gap: 56px; }
  .play-row.flip .play-text { order: 2; }
}
.play-num {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-round); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.1em;
  color: #fff; padding: 6px 16px 6px 8px; border-radius: 999px; margin-bottom: 14px;
}
.play-num em {
  font-style: normal; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #fff; font-size: 1rem;
}
.c-orange { background: var(--orange); } .c-orange em { color: var(--orange-deep); }
.c-green { background: var(--green); } .c-green em { color: var(--green); }
.c-blue { background: var(--blue); } .c-blue em { color: var(--blue); }
.c-purple { background: var(--purple); } .c-purple em { color: var(--purple); }
.play-text h3 { font-size: clamp(1.5rem, 3.6vw, 2rem); margin-bottom: 12px; }
.play-text p { color: var(--ink-soft); }
.play-text ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.play-text li {
  font-family: var(--font-round); font-weight: 700; font-size: 0.85rem;
  background: var(--cream-deep); border-radius: 999px; padding: 4px 14px;
}

/* 動画の帯 */
.movie { width: min(900px, 100%); margin-inline: auto; }
.view-pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.view-pill {
  font-family: var(--font-round); font-weight: 700; font-size: 1rem; cursor: pointer;
  padding: 11px 24px; border-radius: 16px; border: 0; color: #fff; background: var(--blue);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.3); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.view-pill:hover { transform: translateY(-2px); box-shadow: 0 7px 0 rgba(0, 0, 0, 0.3); }
.view-pill:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3); }
.view-pill[aria-pressed="true"] { background: var(--orange); }
.caption.on-dark { color: #c6cbe0; }

/* 画像の見出しつきの枠・縦にならべる */
figure { margin: 0; }
figure.device figcaption {
  position: absolute; left: clamp(14px, 2.2vw, 26px); bottom: clamp(14px, 2.2vw, 26px);
  font-family: var(--font-round); font-weight: 700; font-size: 0.8rem; color: #fff;
  background: rgba(27, 32, 48, 0.78); border-radius: 999px; padding: 4px 14px;
}
.stack { display: grid; gap: 22px; }
.shot-note { text-align: center; font-size: 0.85rem; color: var(--ink-soft); margin-top: 8px; }
.bg-gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 22px; }
.bg-gallery .device { margin: 0; box-shadow: none; }
.bg-gallery .device:first-child { grid-column: 1 / -1; }

/* 部屋と AR */
.duo { display: grid; gap: 24px; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 6px 0 var(--line);
}
.card h3 { margin-bottom: 10px; font-size: 1.35rem; }
.card p { color: var(--ink-soft); }
.card .device { margin-bottom: 22px; box-shadow: none; }
/* 車両の一覧（横に流す） */
.train-strip {
  display: flex; gap: 18px; overflow-x: auto; padding: 8px 20px 28px;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
  scroll-padding-inline: 20px;
}
.train-card {
  flex: 0 0 min(340px, 80vw); scroll-snap-align: start; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 6px 0 var(--line); position: relative;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.train-card:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--line); }
.train-card img { width: 100%; aspect-ratio: 900 / 506; object-fit: cover; background: #fffde9; }
.train-card .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 14px; }
.train-card b { font-family: var(--font-round); font-size: 1rem; line-height: 1.4; }
.train-card .spin {
  position: absolute; top: 10px; right: 10px; font-family: var(--font-round); font-weight: 700; font-size: 0.74rem;
  background: rgba(43, 49, 71, 0.82); color: #fff; border-radius: 999px; padding: 3px 11px;
}
.tag {
  flex: none; font-family: var(--font-round); font-weight: 700; font-size: 0.78rem;
  border-radius: 999px; padding: 3px 12px; background: var(--cream-deep); color: var(--ink);
}
.tag-free { background: var(--green); color: #fff; }
.strip-hint { text-align: center; font-size: 0.82rem; color: var(--ink-soft); }

/* 料金 */
.free-box {
  background: var(--green); color: #fff; border-radius: var(--radius); padding: 32px;
  box-shadow: 0 8px 0 #238a50; margin-bottom: 36px;
}
.free-box h3 { font-size: 1.6rem; margin-bottom: 8px; }
.free-box ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px 24px; }
@media (min-width: 700px) { .free-box ul { grid-template-columns: 1fr 1fr; } }
.free-box li { padding-left: 30px; position: relative; font-weight: 600; }
.free-box li::before {
  content: ""; position: absolute; left: 4px; top: 0.55em; width: 14px; height: 8px;
  border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg);
}
.price-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .price-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .price-grid { grid-template-columns: 1fr 1fr 1fr; } }
.price-card {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.price-card .kind { font-family: var(--font-round); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--orange-deep); }
.price-card h3 { font-size: 1.12rem; }
.price-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.price-card .yen { font-family: var(--font-round); font-weight: 700; font-size: 1.5rem; }
.price-card .yen small { font-size: 0.8rem; color: var(--ink-soft); font-weight: 600; margin-right: 6px; }
.price-card.wide { grid-column: 1 / -1; background: var(--ink); color: #fff; border-color: var(--ink); }
.price-card.wide .kind { color: #ffc27d; }
.price-card.wide p { color: #c6cbe0; }
.price-card.wide .yen small { color: #c6cbe0; }
.price-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 22px; }
.price-note li { margin-bottom: 4px; }

/* 安心 */
.safe-grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .safe-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .safe-grid { grid-template-columns: repeat(3, 1fr); } }
.safe {
  background: rgba(255, 255, 255, 0.07); border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius); padding: 24px;
}
.safe h3 { color: #ffc27d; margin-bottom: 8px; }
.safe p { color: #dfe3f2; font-size: 0.95rem; }

/* よくある質問 */
.faq details {
  background: var(--paper); border: 2px solid var(--line); border-radius: 18px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; position: relative;
  font-family: var(--font-round); font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%;
  font-size: 1.5rem; color: var(--orange-deep); line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 22px 20px; color: var(--ink-soft); }

/* 最後のよびかけ */
.final { text-align: center; }
.final img { width: 120px; height: 120px; border-radius: 28px; margin: 0 auto 22px; box-shadow: var(--shadow); }
.final p { color: var(--ink-soft); margin: 12px auto 26px; max-width: 520px; }

/* ---------- フッター ---------- */

.site-footer { background: var(--ink); color: #c6cbe0; padding: 52px 0 36px; font-size: 0.9rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--font-round); color: #ffc27d; font-size: 0.85rem; letter-spacing: 0.12em; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-brand b { font-family: var(--font-round); color: #fff; font-size: 1.2rem; }
.fine { border-top: 1px solid rgba(255, 255, 255, 0.16); margin-top: 32px; padding-top: 20px; font-size: 0.78rem; line-height: 1.8; }

/* ---------- 文書のページ（プライバシー・特商法・規約・サポート） ---------- */

.doc { padding: 56px 0 84px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: 8px; }
.doc .lead { color: var(--ink-soft); margin-bottom: 36px; }
.doc h2 {
  font-size: 1.3rem; margin: 44px 0 12px; padding-left: 14px; border-left: 6px solid var(--orange);
}
.doc h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc .updated { color: var(--ink-soft); font-size: 0.9rem; margin-top: 48px; }
.sheet { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 5vw, 44px); }

.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 2px solid var(--line); }
.table th { width: 30%; font-family: var(--font-round); white-space: nowrap; }
.table td.num { text-align: right; white-space: nowrap; font-family: var(--font-round); font-weight: 700; }
@media (max-width: 600px) {
  .table.stack th, .table.stack td { display: block; width: 100%; }
  .table.stack th { border-bottom: 0; padding-bottom: 0; color: var(--orange-deep); }
}

/* 問い合わせフォーム */
.form { display: grid; gap: 18px; margin-top: 20px; }
.form label { font-family: var(--font-round); font-weight: 700; display: block; }
/* 欄の説明（クラスのない span） */
.form label:not(.topic):not(.agree) > span:not([class]) { display: block; font-weight: 400; font-size: 0.82rem; color: var(--ink-soft); font-family: var(--font-body); }
.form label > input, .form label > select, .form label > textarea { margin-top: 6px; display: block; }
.form label .err, .form label .count { display: block; }
.form input, .form select, .form textarea {
  font: inherit; font-family: var(--font-body); font-weight: 400; color: var(--ink);
  padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; width: 100%;
}
.form textarea { min-height: 170px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--blue); outline: none; }
.form .hp { position: absolute; left: -9999px; }
.form .agree { display: flex; gap: 10px; align-items: flex-start; font-family: var(--font-body); font-weight: 400; }
.form > .err { color: var(--red); font-weight: 700; font-size: 0.82rem; margin-top: -12px; }
.form .agree input { width: 20px; height: 20px; margin-top: 5px; flex: none; }
.form-status { font-family: var(--font-round); font-weight: 700; min-height: 1.6em; }
.form-status.ok { color: var(--green); }
.form-status.ng { color: var(--red); }
.mail-box {
  background: var(--cream-deep); border-radius: 16px; padding: 16px 20px; margin-top: 18px;
  font-family: var(--font-round); font-weight: 700; word-break: break-all;
}

/* 404 */
.lost { text-align: center; padding: 96px 0; }
.lost h1 { font-size: clamp(3rem, 14vw, 6rem); color: var(--orange-deep); }
.lost h2 { border-left: 0; padding-left: 0; margin: 16px 0 12px; }

/* ---------- 車両の 360 度ビュー ---------- */

.viewer {
  border: 0; padding: 0; border-radius: 26px; background: var(--paper); color: var(--ink);
  width: min(880px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.viewer::backdrop { background: rgba(27, 32, 48, 0.72); }
.viewer-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px 22px; }
.viewer-head h3 { font-size: 1.3rem; margin-right: auto; }
.viewer-close {
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: var(--ink); color: #fff; font-size: 1.4rem; line-height: 1; font-family: var(--font-round);
}
.viewer-stage {
  aspect-ratio: 16 / 9; background-color: #fffde9; background-repeat: no-repeat; background-size: 600% 600%;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; position: relative;
}
.viewer-stage.dragging { cursor: grabbing; }
.viewer-stage.loading::after {
  content: "よみこみ中…"; position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-round); font-weight: 700; color: var(--ink-soft); background: rgba(255, 253, 233, 0.7);
}
:lang(en) .viewer-stage.loading::after { content: "Loading…"; }
.viewer-foot { padding: 14px 22px 20px; display: grid; gap: 10px; }
.viewer-foot input[type="range"] { width: 100%; accent-color: var(--orange); height: 28px; }
.viewer-ctrl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.viewer-ctrl p { font-size: 0.85rem; color: var(--ink-soft); margin-right: auto; }

/* ---------- AR のイメージ ---------- */

.ar-scene { position: relative; margin-bottom: 22px; border-radius: 18px; overflow: hidden; aspect-ratio: 3 / 2; background: #cfc2ae; }
.ar-scene > img { width: 100%; height: 100%; object-fit: cover; }
.ar-note { position: absolute; left: 10px; bottom: 8px; font-size: 0.7rem; color: #fff; background: rgba(27, 32, 48, 0.6); padding: 2px 9px; border-radius: 999px; }

/* ---------- ホームへもどる丸いボタン（文書のページ） ---------- */

.home-fab {
  position: fixed; left: max(16px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--orange); color: #fff; text-decoration: none;
  box-shadow: 0 5px 0 var(--orange-deep), 0 12px 24px rgba(43, 49, 71, 0.28);
  transition: transform 0.12s ease;
}
.home-fab:hover { transform: translateY(-2px); color: #fff; }
.home-fab svg { width: 30px; height: 30px; }
.home-fab span { position: absolute; left: -9999px; }

/* ---------- お問い合わせフォーム（拡充） ---------- */

.steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-family: var(--font-round); font-weight: 700; font-size: 0.85rem; }
.steps li { flex: 1; text-align: center; padding: 8px 4px; border-radius: 12px; background: var(--cream-deep); color: var(--ink-soft); margin: 0; }
.steps li[aria-current="step"] { background: var(--orange); color: #fff; }
/* 種類のカード：どれも同じ幅・同じ高さにそろえる（スマホは 2 列、広い画面は 3 列） */
.topic-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; border: 0; padding: 0; margin: 0; }
@media (min-width: 600px) { .topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.topic-grid legend { font-family: var(--font-round); font-weight: 700; padding: 0; margin-bottom: 8px; }
.topic { position: relative; display: block; height: 100%; }
.topic input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.topic span {
  display: flex; flex-direction: column; justify-content: center; height: 100%; min-height: 78px; word-break: auto-phrase; padding: 14px 12px; border-radius: 16px; border: 2px solid var(--line); background: #fff;
  font-family: var(--font-round); font-weight: 700; text-align: center; line-height: 1.4;
}
@media (max-width: 599px) { .topic span { padding: 12px 6px; font-size: 0.95rem; } .topic small { font-size: 0.7rem; } }
.topic small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.74rem; color: var(--ink-soft); }
.topic input:checked + span { border-color: var(--orange); background: #fff3e2; box-shadow: 0 4px 0 var(--orange); }
.topic input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.hint-box { background: #eef5ff; border: 2px solid #cfe0fb; border-radius: 16px; padding: 14px 18px; font-size: 0.92rem; }
.hint-box p { margin: 0; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.req { font-family: var(--font-round); font-size: 0.7rem; color: #fff; background: var(--red); border-radius: 6px; padding: 1px 7px; margin-left: 8px; font-weight: 700; }
.opt { font-family: var(--font-round); font-size: 0.7rem; color: var(--ink-soft); background: var(--cream-deep); border-radius: 6px; padding: 1px 7px; margin-left: 8px; font-weight: 700; }
.form label .err { color: var(--red); font-weight: 700; font-size: 0.82rem; min-height: 0; }
.form [aria-invalid="true"] { border-color: var(--red); }
.count { text-align: right; font-size: 0.8rem; color: var(--ink-soft); font-family: var(--font-body); font-weight: 400; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.confirm dl { display: grid; gap: 4px 16px; margin: 0 0 20px; }
@media (min-width: 640px) { .confirm dl { grid-template-columns: 11em 1fr; } }
.confirm dt { font-family: var(--font-round); font-weight: 700; color: var(--orange-deep); }
.confirm dd { margin: 0 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.done-box { text-align: center; padding: 20px 0; }
.done-box h3 { font-size: 1.5rem; color: var(--green); margin-bottom: 10px; }
[hidden] { display: none !important; }

/* ---------- 言語切替の案内（ブラウザーの言語と異なるときだけ） ---------- */

.lang-hint {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 8px 6px 16px;
  box-shadow: 0 10px 28px rgba(43, 49, 71, 0.32);
  font-family: var(--font-round); font-weight: 700; font-size: 0.85rem; line-height: 1.2;
}
.lang-hint a { color: #ffc27d; text-decoration: none; white-space: nowrap; }
.lang-hint a:hover { color: #fff; text-decoration: underline; }
.lang-hint button {
  width: 28px; height: 28px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1rem; line-height: 1;
  display: grid; place-items: center;
}
.lang-hint button:hover { background: rgba(255, 255, 255, 0.25); }

/* ---------- 英語版（lang="en"）の組版調整 ---------- */

html[lang="en"] {
  --font-round: "ui-rounded", "SF Pro Rounded", "Arial Rounded MT Bold", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}
html[lang="en"] body { line-height: 1.68; }
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] p,
html[lang="en"] summary { word-break: normal; line-break: auto; }
html[lang="en"] h2 { letter-spacing: -0.015em; }
html[lang="en"] .hero h1 { letter-spacing: -0.02em; }
html[lang="en"] .brand b { letter-spacing: 0.01em; }
html[lang="en"] .brand small { letter-spacing: 0.08em; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem; }
html[lang="en"] .tagline { letter-spacing: 0.03em; }
html[lang="en"] .play-num { letter-spacing: 0.03em; }
html[lang="en"] .price-card .kind { text-transform: uppercase; letter-spacing: 0.08em; }
html[lang="en"] .price-card .yen small { margin-right: 0; margin-left: 8px; }
html[lang="en"] .site-footer h4 { text-transform: uppercase; letter-spacing: 0.08em; }
html[lang="en"] .table th { white-space: normal; }
html[lang="en"] .topic span { word-break: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toy-train { animation: none; left: 12%; }
  .toy-train.rev { left: auto; right: 12%; }
  .t-steam b:last-child::after { animation: none; }
  .btn, .lang-switch { transition: none; }
}

/* =====================================================================
   かわいさの層（2026-12-06）
   手芸とドールハウスの手ざわり：水玉とギンガムの布、ステッチ、スカラップの縁、
   アプリの人形たちが小道を歩く。おうち鉄道のサイトとは別の顔にする。
   ===================================================================== */

:root {
  --pink: #f2b5a7;
  --pink-soft: #fbe3dc;
  --mint: #d6e8cc;
  --butter: #f7dfa0;
  --sky: #d7e7f1;
  --grass: #8fbf73;
  --grass-deep: #6fa25a;
  --path: #ead6b2;
  --stitch: rgba(185, 96, 61, 0.38);
}

/* 生成りの布に、うすい水玉 */
body {
  background-color: var(--cream);
  background-image: radial-gradient(rgba(217, 135, 95, 0.11) 2.2px, transparent 2.8px);
  background-size: 28px 28px;
}

/* ヘッダーの下に、お店の日よけのようなスカラップ */
.site-header { border-bottom: 0; box-shadow: 0 2px 0 var(--line); }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; pointer-events: none;
  background:
    radial-gradient(circle at 10px 0, rgba(255, 246, 230, 0.96) 9px, var(--line) 9.5px 10.5px, transparent 11px) 0 0 / 20px 10px repeat-x;
}

/* リボンの札 */
.eyebrow {
  position: relative; color: #fff; background: var(--orange); padding: 3px 22px;
  border-radius: 6px; letter-spacing: 0.1em; box-shadow: 0 3px 0 var(--orange-deep);
}
.eyebrow::before, .eyebrow::after {
  content: ""; position: absolute; top: 50%; width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.75); transform: translateY(-50%);
}
.eyebrow::before { left: 8px; }
.eyebrow::after { right: 8px; }
.hero-copy .eyebrow { background: var(--green); box-shadow: 0 3px 0 #4a7048; }
.band-ink .eyebrow { color: var(--ink); background: var(--butter); box-shadow: 0 3px 0 #d4b468; }

/* 見出しの文字に、ふんわりした影 */
.hero h1 { text-shadow: 0 4px 0 #fff, 0 7px 0 rgba(59, 42, 32, 0.08); }
.hero h1 span { color: var(--orange); }
.hero h1 .bounce { display: inline-block; font-style: normal; animation: title-bounce 3.6s ease-in-out infinite; }
.hero h1 .b1 { animation-delay: 0.12s; } .hero h1 .b2 { animation-delay: 0.24s; } .hero h1 .b3 { animation-delay: 0.36s; }
.hero h1 .b4 { animation-delay: 0.48s; } .hero h1 .b5 { animation-delay: 0.6s; }
.hero h1 span .bounce { animation-name: title-bounce-late; }
@keyframes title-bounce-late {
  0%, 52%, 100% { transform: translateY(0) rotate(0); }
  56% { transform: translateY(-8px) rotate(-3deg); }
  61% { transform: translateY(0) rotate(2deg); }
  65% { transform: translateY(-3px) rotate(0); }
}
@keyframes title-bounce {
  0%, 82%, 100% { transform: translateY(0) rotate(0); }
  86% { transform: translateY(-8px) rotate(-3deg); }
  91% { transform: translateY(0) rotate(2deg); }
  95% { transform: translateY(-3px) rotate(0); }
}

/* 布の帯：ギンガム。上下の縁はスカラップ */
.band, .band-ink { position: relative; border-block: 0; }
.band {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(242, 181, 167, 0.16) 0 14px, transparent 14px 28px),
    repeating-linear-gradient(90deg, rgba(242, 181, 167, 0.16) 0 14px, transparent 14px 28px);
}
.band-ink { background: #4d6b4a; }
.band-ink .section-head p { color: #e4eedb; }
.band::before, .band::after, .band-ink::before, .band-ink::after {
  content: ""; position: absolute; left: 0; right: 0; height: 14px; pointer-events: none;
  --c: var(--paper);
  background: radial-gradient(circle at 14px 14px, var(--c) 13.5px, transparent 14px) 0 0 / 28px 14px repeat-x;
}
.band-ink::before, .band-ink::after { --c: #4d6b4a; }
.band::before, .band-ink::before { top: -13px; }
.band::after, .band-ink::after { bottom: -13px; transform: scaleY(-1); }

/* ステッチ（ぬい目）の縁どり */
.card, .safe, .price-card, .free-box, .faq details {
  position: relative;
  outline: 2px dashed var(--stitch); outline-offset: -9px;
}
.band-ink .card, .band-ink .safe, .free-box { outline-color: rgba(255, 255, 255, 0.45); }
.safe h3::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: 1px;
  border-radius: 50%; background: var(--pink);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.55);
}
.safe:nth-child(3n + 2) h3::before { background: var(--butter); }
.safe:nth-child(3n) h3::before { background: var(--mint); }

/* スクリーンショットの枠を、すこしやわらかく */
.device { box-shadow: 0 12px 0 rgba(59, 42, 32, 0.08), 0 26px 50px rgba(59, 42, 32, 0.16); }
.hero-screen .device { transform: rotate(-0.6deg); }
.play-row .device { transition: transform 0.3s ease; }
.play-row .device:hover { transform: rotate(-0.8deg) translateY(-3px); }

/* 花びらが、ゆっくり舞う（ヒーロー） */
.hero { overflow: hidden; }
.petals { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-copy, .hero-screen { position: relative; z-index: 1; }
.petals i {
  position: absolute; top: -20px; width: 12px; height: 9px; border-radius: 60% 0 60% 0;
  background: var(--pink); opacity: 0.75; animation: petal-fall linear infinite;
}
.petals i:nth-child(1) { left: 6%; animation-duration: 14s; animation-delay: -2s; }
.petals i:nth-child(2) { left: 18%; animation-duration: 18s; animation-delay: -9s; background: var(--butter); }
.petals i:nth-child(3) { left: 31%; animation-duration: 16s; animation-delay: -5s; }
.petals i:nth-child(4) { left: 64%; animation-duration: 19s; animation-delay: -12s; background: var(--mint); }
.petals i:nth-child(5) { left: 77%; animation-duration: 15s; animation-delay: -7s; }
.petals i:nth-child(6) { left: 89%; animation-duration: 17s; animation-delay: -1s; background: var(--butter); }
.petals i:nth-child(7) { left: 47%; animation-duration: 21s; animation-delay: -15s; }
@keyframes petal-fall {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(24px, 25vh) rotate(90deg); }
  50% { transform: translate(-12px, 50vh) rotate(200deg); }
  75% { transform: translate(18px, 75vh) rotate(290deg); }
  100% { transform: translate(-6px, 105vh) rotate(380deg); }
}

/* ---------- 人形たちの小道・原っぱ ---------- */

.parade { position: relative; overflow-x: clip; overflow-y: visible; -webkit-tap-highlight-color: transparent; }
/* ヒーローの下の小道：土の道に、草のふち */
.path-lane { height: 120px; margin-top: -40px; }
@media (max-width: 720px) { .path-lane { margin-top: 0; } }
.path-lane::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 30px; border-radius: 999px;
  background:
    radial-gradient(ellipse 9px 4px at 30% 55%, rgba(120, 90, 60, 0.18) 98%, transparent) 0 0 / 74px 30px repeat-x,
    var(--path);
  box-shadow: 0 -5px 0 var(--grass), 0 4px 0 var(--grass-deep);
}
/* ページの終わりの原っぱ：丘と花。下はフッターへつながる */
.meadow { height: 150px; margin-top: 8px; }
.meadow::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58px;
  background:
    radial-gradient(ellipse 72px 26px at 50% 100%, var(--grass) 98%, transparent 100%) -30px 0 / 130px 30px repeat-x,
    radial-gradient(ellipse 95px 34px at 50% 100%, #a3cd87 98%, transparent 100%) 20px 0 / 190px 40px repeat-x,
    linear-gradient(transparent 28px, var(--grass) 28px);
}
.meadow::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 30px; pointer-events: none; z-index: 20;
  background:
    radial-gradient(circle, #fff 2.5px, transparent 3px) 12px 6px / 90px 30px repeat-x,
    radial-gradient(circle, var(--pink) 3px, transparent 3.5px) 44px 16px / 110px 30px repeat-x,
    radial-gradient(circle, var(--butter) 3px, transparent 3.5px) 70px 4px / 130px 30px repeat-x;
}
.meadow + .site-footer { margin-top: 0; }

.walker {
  position: absolute; bottom: 0; left: 0; width: 92px; height: 115px; cursor: pointer;
  will-change: transform;
}
.path-lane .walker { bottom: 0; }
.meadow .walker { bottom: 6px; }
.walker .sprite {
  position: absolute; inset: 0; background-repeat: no-repeat; background-size: 400% 100%;
  animation: walk-frames 0.56s steps(4) infinite;
}
.walker.rev .sprite { transform: scaleX(-1); }
.walker .shadow {
  position: absolute; left: 30%; right: 30%; bottom: 6px; height: 7px; border-radius: 50%;
  background: rgba(59, 42, 32, 0.16); z-index: -1;
}
.walker.still .sprite { animation: none; }
.parade.paused .sprite { animation-play-state: paused; }
@keyframes walk-frames { from { background-position: 0 0; } to { background-position: 133.333% 0; } }

/* 顔を出す人形（見出しや箱のふち） */
.peek {
  position: absolute; z-index: 3; cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: sway 4.2s ease-in-out infinite; transform-origin: 50% 100%;
}
.peek img { width: 100%; height: auto; display: block; filter: drop-shadow(0 6px 6px rgba(59, 42, 32, 0.18)); }
@keyframes sway { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
.section-head { position: relative; }
.head-peek { width: 50px; top: -46px; }
.head-peek.l { left: calc(50% - 150px); }
.head-peek.r { right: calc(50% - 150px); animation-delay: -2s; }
html[lang="en"] .head-peek.l { left: calc(50% - 170px); }
html[lang="en"] .head-peek.r { right: calc(50% - 170px); }
.section-head { padding-top: 8px; }

.free-box .peek { width: 58px; right: 22px; top: -70px; }
.final .peek { width: 70px; bottom: 26px; }
.final .peek.l { left: max(8px, calc(50% - 330px)); }
.final .peek.r { right: max(8px, calc(50% - 330px)); animation-delay: -1.4s; }
.final .wrap { position: relative; }
@media (max-width: 560px) { .final .peek { width: 52px; bottom: auto; top: -8px; } }

/* タップでぴょん。名前の吹き出し */
.hop .sprite, .peek.hop img { animation: walk-frames 0.56s steps(4) infinite, hop 0.55s ease-out; }
.peek.hop img { animation: hop 0.55s ease-out; }
@keyframes hop {
  0%, 100% { translate: 0 0; }
  35% { translate: 0 -22px; }
  60% { translate: 0 0; }
  75% { translate: 0 -6px; }
}
.doll-bubble {
  position: absolute; left: 50%; bottom: calc(100% - 4px); z-index: 30;
  transform: translateX(-50%); white-space: nowrap; pointer-events: none;
  font-family: var(--font-round); font-size: 0.78rem; line-height: 1.3; text-align: center; color: var(--ink);
  background: #fff; border-radius: 14px; padding: 6px 12px;
  box-shadow: 0 3px 0 var(--line), 0 8px 18px rgba(59, 42, 32, 0.14);
  animation: bubble-in 2.2s ease both;
}
.doll-bubble::after {
  content: ""; position: absolute; left: 50%; top: 100%; margin-left: -7px;
  border: 7px solid transparent; border-top-color: #fff;
}
.doll-bubble b { display: block; font-size: 0.68rem; color: var(--orange-deep); }
.doll-bubble span { white-space: nowrap; }
@keyframes bubble-in {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(0.8); }
  12%, 82% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -6px) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .petals { display: none; }
  .peek, .hero h1 .bounce { animation: none; }
  .hero-screen .device { transform: none; }
}

/* 料金のカード：パックの中身の写真（アプリの「お店」のカードと同じく、5 枚まで） */
.pack-pics { display: flex; gap: 6px; margin: 0 0 12px; }
.pack-pics img {
  flex: 1 1 0; min-width: 0; aspect-ratio: 1; object-fit: cover; border-radius: 12px;
  background: #fff7ec; box-shadow: inset 0 0 0 2px var(--line);
}
.price-card.wide .pack-pics { max-width: 560px; }
.price-card.wide .pack-pics img { background: #fff7ec; }
