/* Santa Gabe — Heisei pop theme */
:root {
  --bg: #fff8ec;
  --dot: #f6e3c3;
  --white: #ffffff;
  --ink: #4a3428;
  --ink-dim: #7a6556;
  --red: #e8383d;
  --red-dark: #b8232a;
  --green: #2e9e5b;
  --green-dark: #1f7442;
  --yellow: #ffd93b;
  --marker: #ffe97a;
  --pink: #ff9eb5;
  --blue: #5bb8ea;
  --cream: #fdf0da;
  --line: #f0d9b5;
  --jp: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --head: "Kiwi Maru", "Zen Maru Gothic", "Hiragino Maru Gothic ProN", serif;
  --script: "Pacifico", cursive;
  --ease: cubic-bezier(.25, .1, .25, 1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { font-family: var(--jp); color: var(--ink); line-height: 1.85; font-size: 16px; overflow-x: clip;
  background: var(--bg) radial-gradient(var(--dot) 1.6px, transparent 1.8px) 0 0 / 22px 22px; }
img, video { max-width: 100%; display: block; }
a { color: var(--red-dark); }
[hidden] { display: none !important; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 18px; }
.mark { background: linear-gradient(transparent 58%, var(--marker) 58%); padding: 0 2px; }
.red { color: var(--red); }
.imgnote { font-size: .72rem; color: var(--ink-dim); }

/* gingham band */
.gingham { height: 14px; background-color: #fff;
  background-image: linear-gradient(90deg, rgba(232, 56, 61, .55) 50%, transparent 50%), linear-gradient(rgba(232, 56, 61, .55) 50%, transparent 50%);
  background-size: 14px 14px; }

/* buttons: glossy, pressable */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 14px 28px; font-weight: 900; font-size: 1rem; text-decoration: none; color: #fff; border: 2px solid rgba(0, 0, 0, .08); white-space: nowrap; transition: transform .1s, box-shadow .1s; cursor: pointer; text-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.btn::after { content: ""; position: absolute; left: 10%; right: 10%; top: 3px; height: 45%; border-radius: 999px; background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, 0)); pointer-events: none; }
.btn:active { transform: translateY(3px); }
.btn-red { background: linear-gradient(#ff6f73, var(--red) 55%, #d92e33); box-shadow: 0 4px 0 var(--red-dark), 0 8px 14px rgba(184, 35, 42, .25); }
.btn-red:active { box-shadow: 0 1px 0 var(--red-dark); }
.btn-line { background: linear-gradient(#3fdc7f, #06c755 55%, #04ad49); box-shadow: 0 4px 0 #038a3a, 0 8px 14px rgba(6, 199, 85, .25); }
.btn-white { background: #fff; color: var(--ink); text-shadow: none; border: 2px solid var(--line); box-shadow: 0 4px 0 var(--line); }
.btn-white::after { display: none; }
.btn small { font-weight: 700; font-size: .78em; opacity: .9; }

/* fade-in */
[data-fade] { opacity: 0; transform: translate3d(var(--fx, 0), var(--fy, 24px), 0); transition: opacity var(--fd, .6s) var(--ease) var(--fdelay, 0s), transform var(--fd, .6s) var(--ease) var(--fdelay, 0s); }
[data-fade].in { opacity: 1; transform: none; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 3px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 62px; }
.brand { text-decoration: none; color: var(--red); font-family: var(--head); font-weight: 500; font-size: 1.3rem; line-height: 1.1; white-space: nowrap; }
.brand small { display: block; font-family: var(--jp); font-size: .68rem; color: var(--ink-dim); font-weight: 700; letter-spacing: .04em; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { background: var(--cream); }
.lang { margin-left: 8px; border: 2px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--ink); background: #fff; }
@media (max-width: 820px) { .nav { display: none; } .lang { margin-left: auto; } }

/* ---------- hero ---------- */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; } .hero .frame-wrap { order: -1; } }
.burst { display: inline-grid; place-items: center; width: 96px; height: 96px; margin-bottom: 6px; color: #fff; font-weight: 900; font-size: .86rem; line-height: 1.25; text-align: center; transform: rotate(-10deg); background: var(--red);
  clip-path: polygon(50% 0, 61% 12%, 75% 6%, 78% 21%, 93% 21%, 89% 36%, 100% 46%, 89% 57%, 95% 72%, 80% 74%, 77% 90%, 63% 85%, 50% 100%, 38% 85%, 23% 90%, 21% 74%, 5% 72%, 11% 57%, 0 46%, 11% 36%, 7% 21%, 22% 21%, 25% 6%, 39% 12%); }
.hero h1 { font-family: var(--head); font-weight: 500; font-size: clamp(1.7rem, 4.4vw, 2.85rem); line-height: 1.45; letter-spacing: .01em; }
.hero h1 .red { display: inline-block; }
.hero .lead { margin: 14px 0 18px; font-size: clamp(.98rem, 1.6vw, 1.08rem); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-bottom: 22px; }
.chips li { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: .85rem; font-weight: 700; }
.chips li::before { content: "★ "; color: var(--yellow); -webkit-text-stroke: .6px #d6a800; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.micro { margin-top: 14px; font-size: .84rem; color: var(--ink-dim); }

/* photo frame with tape */
.frame { position: relative; background: #fff; padding: 12px 12px 34px; border-radius: 6px; box-shadow: 0 10px 24px rgba(74, 52, 40, .18); transform: rotate(1.6deg); }
.frame img { width: 100%; height: auto; border-radius: 3px; }
.frame figcaption { position: absolute; left: 14px; right: 14px; bottom: 8px; display: flex; justify-content: space-between; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--ink-dim); }
.frame::before, .frame::after { content: ""; position: absolute; width: 110px; height: 30px; background: rgba(255, 217, 59, .7); top: -12px; }
.frame::before { left: -18px; transform: rotate(-24deg); }
.frame::after { right: -18px; transform: rotate(22deg); background: rgba(91, 184, 234, .55); }
.frame.tilt-l { transform: rotate(-1.8deg); }

/* ---------- pick + marquee ---------- */
.pick-sec { padding: 8px 0 40px; }
.pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 720px) { .pick { grid-template-columns: 1fr; } }
.pick a { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 0 14px; text-decoration: none; color: var(--ink); background: #fff; border: 3px solid var(--line); border-radius: 22px; padding: 12px 16px; box-shadow: 0 5px 0 var(--line); transition: transform .15s; }
.pick a:hover { transform: translateY(-3px); }
.pick img { grid-row: span 3; width: 70px; height: 70px; object-fit: contain; }
.pick span { font-weight: 900; font-size: .95rem; }
.pick b { font-family: var(--head); font-weight: 500; font-size: 1.4rem; color: var(--red); line-height: 1.3; }
.pick small { color: var(--ink-dim); font-size: .8rem; }
.marquee-sec { padding: 10px 0 30px; overflow: hidden; }
.rows { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 12px; width: max-content; will-change: transform; }
.tile { position: relative; flex: none; width: clamp(230px, 26vw, 360px); aspect-ratio: 420 / 270; border-radius: 22px; overflow: hidden; display: flex; align-items: flex-end; padding: 14px 16px; background: var(--c, var(--red)); border: 4px solid #fff; box-shadow: 0 4px 0 rgba(74, 52, 40, .12); }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .18) 2px, transparent 2.4px) 0 0 / 18px 18px; }
.tile img { position: absolute; right: 4%; top: 50%; translate: 0 -50%; height: 100%; width: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .2)); }
.tile b { position: relative; z-index: 1; color: #fff; font-family: var(--head); font-weight: 500; font-size: clamp(1rem, 1.5vw, 1.25rem); line-height: 1.35; text-shadow: 0 2px 0 rgba(0, 0, 0, .18); max-width: 58%; }
.tile.photo img { inset: 0; translate: none; width: 100%; height: 100%; object-fit: cover; filter: none; }
.tile.photo b { background: rgba(0, 0, 0, .35); border-radius: 10px; padding: 2px 8px; }

/* ---------- sections ---------- */
.sec { padding: clamp(64px, 8vw, 100px) 0; }
.sec.white { background: #fff; border-top: 3px dashed var(--line); border-bottom: 3px dashed var(--line); }
.ttl { text-align: center; margin-bottom: clamp(30px, 5vw, 48px); }
.ttl .script { display: block; font-family: var(--script); color: var(--red); font-size: clamp(1.2rem, 2.6vw, 1.7rem); line-height: 1.2; transform: rotate(-4deg); }
.ttl h2 { display: inline-block; font-family: var(--head); font-weight: 500; font-size: clamp(1.5rem, 3.8vw, 2.4rem); line-height: 1.45; margin-top: 4px; padding: 0 1.4em; position: relative; }
.ttl h2::before, .ttl h2::after { content: "★"; position: absolute; top: 50%; translate: 0 -50%; color: var(--yellow); -webkit-text-stroke: 1px #d6a800; font-size: .7em; }
.ttl h2::before { left: 0; } .ttl h2::after { right: 0; }
.ttl .lead { max-width: 38em; margin: 10px auto 0; color: var(--ink-dim); }

/* worries */
.worries { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; max-width: 900px; margin: 0 auto; }
@media (max-width: 640px) { .worries { grid-template-columns: 1fr; } }
.worries li { position: relative; background: #fff; border: 3px solid var(--line); border-radius: 20px; padding: 14px 18px 14px 52px; font-weight: 700; }
.worries li::before { content: "?"; position: absolute; left: 14px; top: 14px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 900; font-size: .95rem; line-height: 1; }
.worries li::after { content: ""; position: absolute; left: 30px; bottom: -11px; border: 9px solid transparent; border-top-color: var(--line); border-bottom: 0; }
.answer { max-width: 36em; margin: 34px auto 0; text-align: center; font-family: var(--head); font-weight: 500; font-size: clamp(1.1rem, 2.2vw, 1.4rem); line-height: 1.6; }

/* reasons */
.reasons { list-style: none; counter-reset: r; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .reasons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reasons { grid-template-columns: 1fr; } }
.reasons li { counter-increment: r; position: relative; background: #fff; border-radius: 22px; padding: 30px 20px 22px; border: 3px solid var(--line); box-shadow: 0 5px 0 var(--line); font-size: .93rem; }
.reasons li::before { content: counter(r); position: absolute; left: 50%; top: -20px; translate: -50% 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-family: var(--head); font-size: 1.2rem; border: 3px solid #fff; box-shadow: 0 3px 0 var(--red-dark); }
.reasons b { display: block; font-family: var(--head); font-weight: 500; font-size: 1.12rem; line-height: 1.5; text-align: center; margin-bottom: 8px; color: var(--red-dark); }

/* about / profile */
.profile { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: center; max-width: 920px; margin: 0 auto; }
@media (max-width: 720px) { .profile { grid-template-columns: 1fr; } .profile .round { margin: 0 auto; } }
.round { position: relative; width: 260px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid #fff; box-shadow: 0 0 0 4px var(--red), 0 12px 24px rgba(74, 52, 40, .2); background: #0b1020; }
.round video, .round img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.profile h3 { font-family: var(--head); font-weight: 500; font-size: 1.4rem; }
.profile .role { display: inline-block; background: var(--green); color: #fff; border-radius: 999px; padding: 1px 12px; font-size: .8rem; font-weight: 700; margin-bottom: 10px; }
.profile p + p { margin-top: 10px; }
.reveal .ch { opacity: var(--o, .25); transition: opacity .1s linear; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 16px; }
.facts li { background: var(--cream); border-radius: 999px; padding: 2px 12px; font-size: .84rem; font-weight: 700; }

/* plans */
.plist { list-style: none; max-width: 1000px; margin: 0 auto; display: grid; gap: 18px; }
.pitem { display: grid; grid-template-columns: 120px 1fr; gap: 0 24px; background: #fff; border: 3px solid var(--line); border-radius: 26px; padding: clamp(20px, 3vw, 32px); box-shadow: 0 6px 0 var(--line); }
.pitem.hot { border-color: var(--red); box-shadow: 0 6px 0 var(--red-dark); }
.pnum { font-family: var(--head); font-size: clamp(2.6rem, 6vw, 4.2rem); line-height: 1; color: var(--yellow); -webkit-text-stroke: 2px #d6a800; }
.pbody h3 { font-family: var(--head); font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.45; }
.tag-hot { display: inline-block; background: var(--red); color: #fff; font-size: .75rem; font-weight: 900; border-radius: 6px; padding: 0 8px; margin-left: 6px; vertical-align: middle; }
.price { font-family: var(--head); font-weight: 500; color: var(--red); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.25; margin-top: 4px; }
.price small { font-family: var(--jp); font-size: .45em; color: var(--ink-dim); font-weight: 700; margin-left: 4px; }
.note { font-size: .88rem; color: var(--ink-dim); }
.pbody ul { margin: 10px 0 0; padding-left: 1.2em; font-size: .95rem; }
.pbody p { margin-top: 8px; font-size: .95rem; }
.pbody .btn { margin-top: 16px; }
.ptable { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .93rem; }
.ptable td { padding: 8px 0; border-bottom: 2px dotted var(--line); vertical-align: top; }
.ptable td:last-child { text-align: right; font-weight: 900; white-space: nowrap; padding-left: 12px; color: var(--green-dark); }
@media (max-width: 560px) { .pitem { grid-template-columns: 1fr; } .pnum { margin-bottom: 6px; } }

/* visits: stacking cards */
.stack { max-width: 1120px; margin: 0 auto; }
.stack-slot { height: 82vh; min-height: 600px; }
.scard { position: sticky; top: 84px; transform-origin: top center; will-change: transform; background: #fff; border: 3px solid var(--line); border-radius: 30px; padding: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 8px 0 var(--line), 0 18px 30px rgba(74, 52, 40, .1); }
@media (min-width: 768px) { .scard { top: 96px; border-radius: 40px; padding: 26px; } }
.scard-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.scard-top .pnum { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.scard-top .meta { flex: 1; min-width: 200px; }
.scard-top .meta small { display: inline-block; background: var(--green); color: #fff; border-radius: 999px; padding: 0 10px; font-weight: 700; font-size: .75rem; }
.scard-top .meta h3 { font-family: var(--head); font-weight: 500; font-size: clamp(1.1rem, 2vw, 1.5rem); line-height: 1.4; margin-top: 2px; }
.scard-top .meta p { font-size: .9rem; color: var(--ink-dim); margin-top: 4px; max-width: 48em; }
.sgrid { display: grid; grid-template-columns: 38% 1fr; gap: 12px; }
.scol { display: flex; flex-direction: column; gap: 12px; }
.panel { position: relative; overflow: hidden; border-radius: 22px; background: var(--c, var(--red)); display: flex; align-items: flex-end; padding: 12px 16px; }
.panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .18) 2px, transparent 2.4px) 0 0 / 18px 18px; }
.panel img { position: absolute; left: 50%; top: 45%; translate: -50% -50%; height: 76%; width: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .2)); }
.panel b { position: relative; z-index: 1; color: #fff; font-family: var(--head); font-weight: 500; font-size: clamp(.85rem, 1.4vw, 1.05rem); line-height: 1.35; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.panel.photo::before { display: none; }
.panel.photo img { inset: 0; translate: none; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.panel.photo b { background: rgba(0, 0, 0, .4); border-radius: 10px; padding: 2px 10px; }
.panel.a { height: clamp(110px, 13vw, 190px); }
.panel.b { height: clamp(130px, 17vw, 250px); }
.panel.c { height: 100%; min-height: 252px; }

/* gift + schools */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 860px) { .duo { grid-template-columns: 1fr; } }
.panel-card { position: relative; border-radius: 28px; padding: clamp(24px, 3.5vw, 36px); overflow: hidden; border: 3px solid var(--line); background: #fff; box-shadow: 0 6px 0 var(--line); }
.panel-card .kicker { display: inline-block; font-size: .8rem; font-weight: 900; border-radius: 999px; padding: 1px 12px; color: #fff; background: var(--green); margin-bottom: 8px; }
.panel-card h3 { font-family: var(--head); font-weight: 500; font-size: clamp(1.2rem, 2.3vw, 1.6rem); line-height: 1.45; margin-bottom: 8px; padding-right: 90px; }
.panel-card ul { list-style: none; margin: 12px 0 20px; display: grid; gap: 4px; font-size: .95rem; }
.panel-card li { padding-left: 24px; position: relative; }
.panel-card li::before { content: "✓"; position: absolute; left: 0; font-weight: 900; color: var(--green); }
.panel-card .deco-img { position: absolute; right: 8px; top: 8px; width: 96px; }
.panel-card .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.panel-card .small { font-size: .82rem; color: var(--ink-dim); margin-top: 12px; }
.gift-card { background: #fff5f6; border-color: #ffc9d3; box-shadow: 0 6px 0 #ffc9d3; }
.gift-card .kicker { background: var(--red); }
.school-photo { margin: -6px 0 14px; border-radius: 16px; overflow: hidden; }
.school-photo img { width: 100%; height: auto; }

/* flow */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; position: relative; background: #fff; border: 3px solid var(--line); border-radius: 20px; padding: 18px; font-size: .9rem; }
.steps li::before { content: "STEP " counter(s); display: inline-block; background: var(--blue); color: #fff; font-weight: 900; font-size: .75rem; letter-spacing: .06em; border-radius: 6px; padding: 0 8px; margin-bottom: 6px; }
.steps b { display: block; font-family: var(--head); font-weight: 500; font-size: 1.05rem; margin-bottom: 2px; }
@media (min-width: 901px) { .steps li:not(:last-child)::after { content: "▶"; position: absolute; right: -12px; top: 50%; translate: 0 -50%; color: var(--line); font-size: .9rem; z-index: 1; } }

/* trust */
.trust-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }
.box { background: #fff; border: 3px solid var(--line); border-radius: 24px; padding: 24px; box-shadow: 0 5px 0 var(--line); }
.box h3 { font-family: var(--head); font-weight: 500; font-size: 1.15rem; margin-bottom: 8px; }
.trust { list-style: none; display: grid; gap: 8px; }
.trust li { padding-left: 28px; position: relative; }
.trust li::before { content: "♪"; position: absolute; left: 4px; color: var(--red); font-weight: 900; }
.box table { width: 100%; border-collapse: collapse; }
.box td { padding: 8px 0; border-bottom: 2px dotted var(--line); }
.box td:last-child { text-align: right; font-weight: 900; }
.box p { margin-top: 10px; font-size: .88rem; color: var(--ink-dim); }

/* faq */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 3px solid var(--line); border-radius: 18px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 34px; font-weight: 900; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; top: 13px; font-family: var(--head); color: var(--red); font-size: 1.15rem; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 10px; font-size: 1.5rem; color: var(--red); font-weight: 900; }
.faq details[open] summary::after { content: "−"; }
.faq details p { position: relative; padding: 0 0 16px 34px; color: var(--ink-dim); }
.faq details p::before { content: "A"; position: absolute; left: 0; top: -2px; font-family: var(--head); color: var(--green); font-size: 1.15rem; }

/* booking */
.book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .book-grid { grid-template-columns: 1fr; } }
.book-grid a { position: relative; display: block; text-decoration: none; color: var(--ink); background: #fff; border: 3px solid var(--line); border-radius: 22px; padding: 18px 18px 18px 104px; min-height: 112px; box-shadow: 0 5px 0 var(--line); transition: transform .15s; }
.book-grid a:hover { transform: translateY(-3px); border-color: var(--red); }
.book-grid img { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: 80px; }
.book-grid b { display: block; font-family: var(--head); font-weight: 500; font-size: 1.1rem; }
.book-grid span { font-size: .88rem; color: var(--ink-dim); }
.book-grid em { display: block; margin-top: 4px; font-style: normal; font-weight: 900; color: var(--red); font-size: .9rem; }
.next { list-style: none; counter-reset: n; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 30px; }
@media (max-width: 760px) { .next { grid-template-columns: 1fr; } }
.next li { counter-increment: n; background: var(--cream); border-radius: 16px; padding: 14px 16px; font-size: .9rem; }
.next b { display: block; }
.next b::before { content: counter(n) ". "; color: var(--red); }
.book h3 { font-family: var(--head); font-weight: 500; font-size: 1.2rem; margin-bottom: 10px; }
.contact-row { display: flex; flex-wrap: wrap; gap: 12px; }
.pending { background: #fff; border: 3px dashed var(--line); border-radius: 16px; padding: 14px 18px; font-size: .92rem; }

/* footer */
footer { background: #fff; text-align: center; font-size: .85rem; color: var(--ink-dim); padding: 22px 18px 110px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-bottom: 8px; }
footer a { color: var(--ink); }

/* sticky mobile CTA */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; position: fixed; left: 10px; right: 10px; bottom: 12px; z-index: 50; gap: 8px; transform: translateY(170%); transition: transform .3s var(--ease); }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn-red { flex: 1; padding: 13px 10px; font-size: .95rem; }
  .mobile-cta .btn-line { padding: 13px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-fade] { opacity: 1; transform: none; transition: none; }
  .reveal .ch { opacity: 1 !important; }
}

/* phone fixes */
html, .hero { overflow-x: clip; }
@media (max-width: 767px) {
  .stack-slot { height: auto; min-height: 0; margin-bottom: 18px; }
  .scard { position: relative; top: 0 !important; transform: none !important; }
}

.panel b small { display: block; font-family: var(--jp); font-size: .68rem; font-weight: 700; opacity: .9; }

/* Japanese line breaking: only break between BudouX phrases (see tools/jp-wrap.py) */
html:lang(ja) body { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
h1, h2, h3, summary, .answer, .tile b, .panel b, .reasons b, .worries li, .pick span, .pick b, .book-grid b, .scard-top .meta h3, .panel-card h3, .burst { text-wrap: balance; }
p, li, td { text-wrap: pretty; }

@media (max-width: 400px) { .pick b { font-size: 1.2rem; } .panel b { font-size: .82rem; } }
@media (max-width: 400px) { .panel { padding: 10px; } }
.book-grid em, .pick small { white-space: nowrap; }
@media (max-width: 1000px) { .pick b { font-size: 1.15rem; } }
@media (max-width: 900px) { .book-grid { grid-template-columns: 1fr; } }

.pick b { white-space: nowrap; }
@media (max-width: 1000px) { .pick { grid-template-columns: 1fr; max-width: 560px; } }
@media (max-width: 440px) { .panel b { font-size: .76rem; } }
