/* ヒビキダマ（HIBIKI DROP）の LP の見た目。手本はリドルインクの web/lp/site.css（形と段の組み方）。
   色と形はゲームと同じ：クリームの紙（#fbf3e2・#fff8ea）・焦げ茶の字（#4a2c1c）・深紅の幕（#b8243a・#7a1426）・細い金の線（#c9a25a）。
   ゲームの形：器の上の「金の点線」を段の境目に、玉の縁の輪と鋲を番号に、幕の裾を最初と締めの段に。
   書体は 2 つ（見出し＝Zen Maru Gothic Bold、本文＝Noto Sans JP）。どちらも同梱（fonts/）。
   やらないこと：ダークモード・ネオン・太い黒縁・ずれた影・お金や賭けを思わせる見た目。 */

@font-face { font-family: "OT Maru"; src: url("fonts/ZenMaruGothic-Bold-sub.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "OT Sans"; src: url("fonts/NotoSansJP-Regular-sub.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "OT Sans"; src: url("fonts/NotoSansJP-Medium-sub.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #fbf3e2; --paper2: #f3e6c9; --sheet: #fff8ea; --edge: #e6d3ac;
  --ink: #4a2c1c; --muted: #7a5a44; --rule: #e0cda6;
  --red: #b8243a; --red-t: #9e1c30; --curtain: #8e1a2e; --curtain2: #6e1222;
  --gold: #c9a25a; --gold-l: #ffd98a; --gold-t: #8a6420;
  --maru: "OT Maru", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  --sans: "OT Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --r: 16px;
  --sh: 0 1px 2px rgba(74,44,28,.06), 0 12px 30px rgba(74,44,28,.10);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-weight: 400; font-size: 16px; line-height: 1.9; letter-spacing: .02em;
  background-color: var(--paper);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.6), rgba(255,255,255,0) 60%);
  overflow-x: clip;
}
p { text-wrap: pretty; margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-t); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--maru); font-weight: 700; line-height: 1.45; letter-spacing: .04em; margin: 0; }
h1, h2, h3, .catch, .finale-logo { word-break: keep-all; overflow-wrap: anywhere; }
.nb { display: inline-block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; position: relative; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* 頭の帯 */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(251,243,226,.94); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(6px)) { .site-head { background: rgba(251,243,226,.82); backdrop-filter: blur(8px); } }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 48px; }
.brand img { width: 36px; height: 36px; }
.brand b { font-family: var(--maru); font-size: 21px; letter-spacing: .12em; line-height: 1.1; white-space: nowrap; }
.brand small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .3em; color: var(--muted); line-height: 1.3; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.site-nav a:hover { color: var(--red-t); }
@media (max-width: 860px) { .site-nav a:not(.keep) { display: none; } .site-nav a[href="#play"] { display: inline-flex; } }

/* 幕の裾（最初の画面と締めの段）。深紅の布に金の縁 */
.curtain { position: absolute; left: 0; right: 0; top: 0; height: 44px; pointer-events: none;
  background:
    radial-gradient(circle at 50% 0, var(--curtain) 0 30px, transparent 31px) 0 0 / 64px 44px repeat-x,
    linear-gradient(var(--curtain), var(--curtain)) 0 0 / 100% 14px no-repeat;
  filter: drop-shadow(0 3px 0 var(--gold)) drop-shadow(0 6px 8px rgba(74,44,28,.18)); }

/* 器の上の線（段の境目）：ゲームの「ここを越えたら終わり」の金の点線 */
.limit { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.limit span { display: block; height: 0; border-top: 3px dashed var(--gold); opacity: .8; }

/* 番号：玉の縁の輪と鋲 */
.folio { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--muted); font-size: 14px; font-weight: 500; letter-spacing: .14em; }
.folio .no, .step .no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none;
  font-family: var(--maru); font-size: 18px; letter-spacing: 0; color: var(--sheet);
  background: radial-gradient(circle at 35% 30%, #d8455a, var(--red) 60%, var(--curtain2));
  box-shadow: inset 0 0 0 3px var(--curtain2), inset 0 0 0 5px var(--gold-l), 0 2px 6px rgba(74,44,28,.25); }
.folio::after { content: ""; flex: 1; max-width: 220px; border-top: 2px dashed var(--gold); }
.sec { padding: 72px 0; }
@media (min-width: 960px) { .sec { padding: 96px 0; } }
.sec + .sec { padding-top: 0; }
.sec h2 { font-size: clamp(26px, 5.4vw, 40px); margin-bottom: 18px; }
.sec .lead { font-size: 16.5px; max-width: 40em; }

/* ボタンと札 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 99px; font: 700 15px/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 0; }
.btn-main { background: var(--red); color: var(--sheet); box-shadow: 0 6px 16px rgba(184,36,58,.28); }
.btn-main:hover { background: var(--red-t); color: var(--sheet); }
.btn-line { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--gold); }
.btn-line:hover { box-shadow: inset 0 0 0 2px var(--gold); }
.btn .tri { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.btn[aria-pressed="true"] .tri { width: 9px; height: 10px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.seal { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border: 1.5px solid var(--gold); color: var(--gold-t); border-radius: 99px; font-weight: 700; font-size: 14px; background: var(--sheet); letter-spacing: .1em; }
.seal::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.seal.light { color: var(--sheet); background: rgba(255,248,234,.12); border-color: var(--gold-l); }
.seal.light::before { background: var(--gold-l); }

/* 最初の画面 */
.hero { position: relative; padding: 76px 0 56px; }
.hero .wrap { display: grid; gap: 8px 48px; align-items: end; }
.hero-art { margin-top: 22px; }
/* 題字が 5 字になり、2 列だと 900〜1150 幅で右の文に重なった（11/29）。1180 幅までは 1 列に積む */
@media (min-width: 900px) { .hero { padding: 92px 0 72px; } }
@media (min-width: 1180px) { .hero .logo { font-size: min(104px, calc((min(100vw, 1120px) - 112px) / 2 / 5.8)); } .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hero-art { grid-column: 1 / -1; margin-top: 30px; } }
.kick { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: .1em; margin: 0 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kick .latin { letter-spacing: .3em; font-size: 12px; color: var(--red-t); font-weight: 700; }
.logo { font-size: clamp(50px, 14vw, 104px); line-height: 1.1; letter-spacing: .04em; white-space: nowrap; color: var(--red); margin: 0 0 10px;
  text-shadow: 0 3px 0 var(--sheet), 0 6px 14px rgba(142,26,46,.18); }
.catch { font-family: var(--maru); font-size: clamp(22px, 4.6vw, 30px); line-height: 1.5; margin: 0 0 16px; }
.hero .lead { font-size: 16px; max-width: 32em; }
.catch { margin-bottom: 4px; }
.hero-meta { margin: 6px 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.listen-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.hero-art { margin-left: 0; margin-right: 0; margin-bottom: 0; }
.hero-art .frame { border-radius: 20px; overflow: hidden; background: var(--paper2); box-shadow: var(--sh), 0 0 0 1px var(--gold), 0 0 0 6px var(--sheet), 0 0 0 7px var(--rule); }
.hero-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-art figcaption { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: right; }

/* 舞台の 2 人 */
.cast { display: grid; gap: 22px; margin-top: 34px; }
@media (min-width: 820px) { .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }
.cast-card { background: var(--sheet); border-radius: var(--r); box-shadow: var(--sh), 0 0 0 1px var(--rule); padding: 22px 22px 24px; }
.cast-card .pics { display: flex; justify-content: center; align-items: flex-end; gap: 8px; height: 210px; margin: 0 -6px 14px; border-radius: 12px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,217,138,.55), rgba(255,217,138,0) 70%), linear-gradient(#f6ead0, #efdcb6); padding-top: 12px; }
.cast-card .pics img { height: 180px; width: auto; filter: drop-shadow(0 6px 6px rgba(74,44,28,.18)); }
.cast-card h3 { font-size: 24px; }
.cast-card .role { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.cast-card p:last-child { margin: 0; font-size: 15px; }

/* 画面（端末の枠） */
.phone { margin: 0; border-radius: 24px; padding: 6px; background: #3a2418; box-shadow: var(--sh); }
.phone img { border-radius: 19px; width: 100%; aspect-ratio: 540 / 1170; object-fit: cover; background: var(--paper2); }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 44px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 36px; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
.step { display: grid; gap: 18px; align-content: start; }
.step .phone { width: 100%; max-width: 230px; margin: 0 auto; }
@media (max-width: 719px) { .step > div { max-width: 34em; margin: 0 auto; width: 100%; } }
@media (min-width: 720px) { .step .phone { max-width: 250px; margin: 0; } }
.step .no { width: 34px; height: 34px; font-size: 16px; margin-bottom: 8px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { font-size: 15px; margin: 0; }
.shot-cap { font-size: 13px; color: var(--muted); margin-top: 18px; line-height: 1.6; }

/* 11 段の音 */
.ladder-sec .wrap { background: var(--sheet); border-radius: 24px; box-shadow: var(--sh), 0 0 0 1px var(--rule); padding-top: 40px; padding-bottom: 34px; }
@media (max-width: 1150px) { .ladder-sec .wrap { margin: 0 16px; } }
.ladder { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; align-items: end; }
@media (min-width: 640px) { .ladder { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 980px) { .ladder { grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; } }
.ladder li { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; text-align: center; line-height: 1.35; }
.ladder li img { filter: drop-shadow(0 4px 5px rgba(74,44,28,.2)); }
.ladder li:nth-child(1) img { width: 44%; } .ladder li:nth-child(2) img { width: 50%; } .ladder li:nth-child(3) img { width: 56%; }
.ladder li:nth-child(4) img { width: 62%; } .ladder li:nth-child(5) img { width: 68%; } .ladder li:nth-child(6) img { width: 74%; }
.ladder li:nth-child(7) img { width: 80%; } .ladder li:nth-child(8) img { width: 86%; } .ladder li:nth-child(9) img { width: 92%; }
.ladder li:nth-child(10) img { width: 97%; } .ladder li:nth-child(11) img { width: 100%; }
.ladder li.top span { color: var(--red-t); font-weight: 700; }
.ladder span { word-break: keep-all; }

/* 山場 */
.moments { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 40px; }
.moment { width: 100%; }
.moment .media { max-width: 230px; margin: 0 auto; }
@media (min-width: 860px) { .moment .media { max-width: none; } }
@media (min-width: 860px) { .moments { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 980px; } .moment { max-width: none; } }
.moment .media { border-radius: 18px; overflow: hidden; aspect-ratio: 540 / 1170; background: var(--paper2); box-shadow: var(--sh), 0 0 0 1px var(--gold); }
.moment .media img { width: 100%; height: 100%; object-fit: cover; }
.moment h3 { font-size: 19px; margin: 14px 0 6px; }
.moment p { font-size: 14.5px; margin: 0; }

/* 特長 */
.features { display: grid; gap: 20px; margin-top: 34px; }
@media (min-width: 860px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.feature { background: var(--sheet); border-radius: var(--r); padding: 22px 22px 24px; box-shadow: var(--sh), 0 0 0 1px var(--rule); border-top: 3px solid var(--red); }
.feature:nth-child(2n) { border-top-color: var(--gold); }
.feature .pic { height: 200px; margin: 0 -6px 16px; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,217,138,.5), rgba(255,217,138,0) 70%), linear-gradient(#f6ead0, #efdcb6); }
.feature .pic.balls img { width: 30%; max-width: 120px; filter: drop-shadow(0 5px 5px rgba(74,44,28,.2)); }
.feature .pic.chars { align-items: flex-end; padding-top: 14px; }
.feature .pic.chars img { height: 170px; max-width: 31%; object-fit: contain; width: auto; filter: drop-shadow(0 6px 6px rgba(74,44,28,.18)); }
.feature .pic .arrow { align-self: center; width: 0; height: 0; border-left: 12px solid var(--gold); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
/* ゲームの画面の一部（止めた時の板・図鑑の知らせ）を切り出した写真：全体が入るように */
.feature .pic.shot { height: 300px; padding: 10px; background: #3a2418; }
/* PC は 2 列の札の高さをそろえる（写真の札に合わせて、絵の札も同じ高さに） */
@media (min-width: 860px) { .feature .pic, .feature .pic.shot { height: 360px; } .feature .pic.balls img { max-width: 150px; } .feature .pic.chars img { height: 280px; } }
.feature .pic.shot img { width: 100%; height: 100%; object-fit: contain; display: block; }
.feature h3 { font-size: 21px; margin-bottom: 10px; }
.feature p { font-size: 15px; margin: 0; }

/* よくある質問と対応 */
.qa { margin: 28px 0 0; display: grid; gap: 12px; }
.qa > div { background: var(--sheet); border-radius: 14px; padding: 16px 20px; box-shadow: 0 0 0 1px var(--rule); }
.qa dt { font-weight: 700; display: flex; gap: 10px; }
.qa dt::before { content: "Q"; font-family: var(--maru); color: var(--red); }
.qa dd { margin: 4px 0 0; padding-left: 22px; font-size: 15px; }
.spec { display: grid; margin: 34px 0 0; border-top: 2px dashed var(--gold); }
.spec > div { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .spec > div { grid-template-columns: 200px 1fr; gap: 24px; } }
.spec dt { font-family: var(--maru); font-weight: 700; }
.spec dd { margin: 0; font-size: 15.5px; }

/* 締めの段：深紅の幕の前で開演 */
.finale { position: relative; margin-top: 24px; padding: 92px 0 72px; text-align: center; color: var(--sheet);
  background: radial-gradient(ellipse at 50% 30%, rgba(255,217,138,.22), rgba(255,217,138,0) 60%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 2px, rgba(0,0,0,0) 2px 34px, rgba(255,255,255,.05) 34px 36px, rgba(0,0,0,0) 36px 68px),
    linear-gradient(var(--red), var(--curtain2)); }
.finale .curtain { background:
    radial-gradient(circle at 50% 0, var(--paper) 0 30px, transparent 31px) 0 0 / 64px 44px repeat-x,
    linear-gradient(var(--paper), var(--paper)) 0 0 / 100% 14px no-repeat; }
.finale-cast { display: flex; justify-content: center; align-items: flex-end; gap: 4px; margin: 0 auto 10px; max-width: 520px; }
.finale-cast img { height: 150px; width: auto; filter: drop-shadow(0 8px 8px rgba(0,0,0,.25)); }
.finale-cast img.big { height: 130px; margin: 0 6px 10px; }
.logo .dama { color: #b8761a; }
.finale-logo { font-family: var(--maru); font-size: clamp(44px, 11vw, 76px); line-height: 1.1; letter-spacing: .06em; white-space: nowrap; margin: 0 0 8px; color: var(--gold-l); text-shadow: 0 4px 14px rgba(0,0,0,.25); }
.finale h2 { font-size: clamp(22px, 4.6vw, 32px); margin: 0 0 20px; color: var(--sheet); }

/* 足 */
.site-foot { padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.site-foot .links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 500; font-size: 14px; }
.site-foot p { margin: 0; }
