/* ハヤトキ（Outsolve）のウェブの見た目。ゲームの画面と同じ決まり：
   生成りの地・紺 1 色＋金の差し色・朱は「ハヤトキ」の点だけ。数字の札（生成りの角丸に紺の数字）を飾りにする。
   線は細く、影は柔らかく。ネオン・つや・光の筋・太い縁は使わない。ダークモードは作らない（利用者 11/26）。
   書体は 2 つ（明朝＝Noto Serif JP、本文＝Noto Sans JP）。どちらも LP の字だけに絞って同梱（fonts/・tools/lp/lp_fonts.py）。 */

@font-face { font-family: "SK Serif"; src: url("fonts/sk-serif.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "SK Sans"; src: url("fonts/sk-sans.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f4ecdc; --paper2: #ece1cb; --sheet: #fbf7ef; --tile: #f7f3ea; --tile-on: #cfe0f4;
  --ink: #232a40; --muted: #5e5c6e; --rule: rgba(35,42,64,.14);
  --navy: #2b3766; --navy-d: #1f2a52; --navy-s: #e7ebf6; --gold: #c8941e; --gold-t: #8a6410; --gold-s: #f6ead0; --shu: #d9584c;
  --serif: "SK Serif", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "SK Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --r: 16px;
  --sh: 0 1px 2px rgba(35,42,64,.06), 0 10px 28px rgba(35,42,64,.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: var(--paper);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.6), rgba(255,255,255,0) 55%);
  overflow-x: clip;
}
p { text-wrap: pretty; margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.45; letter-spacing: .04em; margin: 0; }
h1, h2, h3 { word-break: keep-all; overflow-wrap: anywhere; }
.nb { display: inline-block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
@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; }
.dot { display: inline-block; width: .24em; height: .24em; border-radius: 50%; background: var(--shu); vertical-align: top; margin: .12em 0 0 .08em; }

/* 頭の帯 */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(244,236,220,.92); border-bottom: 1px solid var(--rule); }
@supports (backdrop-filter: blur(6px)) { .site-head { background: rgba(244,236,220,.8); 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; border-radius: 9px; box-shadow: 0 0 0 1px var(--rule); }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: .12em; white-space: nowrap; }
.brand small { font-size: 10px; letter-spacing: .4em; color: var(--gold-t); font-weight: 600; margin-top: 3px; }
.site-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-head .lang { flex: none; color: var(--navy); text-decoration: none; font-size: 13px; font-weight: 700; padding: 10px 12px; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid var(--rule); border-radius: 999px; white-space: nowrap; }
.site-head .lang:hover { background: var(--navy-s); }
.site-head .brand { flex: none; }
.site-head .site-nav { margin-left: auto; flex: 0 1 auto; min-width: 0; }
@media (max-width: 620px) { .site-nav a:nth-child(n+6) { display: none; } }
@media (max-width: 820px) { body.en .site-nav a:nth-child(n+5) { display: none; } }
@media (max-width: 560px) { body.en .site-nav a:nth-child(n+3) { display: none; } }
@media (max-width: 400px) { .site-head .lang ~ * , .site-head .site-nav:has(~ .lang) { display: none; } }
body.en .catch, body.en h1, body.en h2, body.en h3 { word-break: normal; letter-spacing: .01em; }
body.en .brand b { letter-spacing: .04em; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; padding: 12px 10px; min-height: 44px; white-space: nowrap; border-radius: 8px; }
.site-nav a:hover { background: var(--navy-s); color: var(--navy); }
@media (max-width: 560px) { .site-nav a:nth-child(n+4) { display: none; } .site-nav a { padding: 12px 8px; } }

/* 最初の画面：上に題字と文、下に盤2つのキービジュアルを大きく */
.hero { padding: 36px 0 16px; }
.hero .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .hero { padding: 56px 0 24px; } .hero-text { display: grid; grid-template-columns: auto 1fr; gap: 0 56px; align-items: end; } .hero-text .kick { grid-column: 1 / -1; justify-self: start; } .hero-text .logo { grid-row: 2 / span 2; } .hero-text .get, .hero-text .hero-meta { grid-column: 1 / -1; } }
.kick { display: table; font-size: 14px; font-weight: 700; color: var(--navy); background: var(--navy-s); border-radius: 999px; padding: 4px 14px; margin-bottom: 18px; letter-spacing: .06em; }
.logo { white-space: nowrap; font-size: clamp(60px, 12vw, 128px); line-height: 1; letter-spacing: .08em; color: var(--ink); font-weight: 700; position: relative; display: block; width: fit-content; }
.logo .dot { width: .2em; height: .2em; margin-top: .04em; }
.catch { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 4.4vw, 34px); line-height: 1.5; margin: 22px 0 12px; color: var(--navy); word-break: keep-all; }
@media (min-width: 900px) { .catch { margin-top: 0; } }
.hero .lead { color: var(--muted); max-width: 34em; }
/* ストアのバッジ（公式の絵・変えない。App Store 40px・Google Play の PNG は余白入りなので 58px で並べる） */
.get { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 18px 0 4px; }
.tray { display: inline-flex; align-items: center; gap: 14px; background: #fbfaf4; border-radius: 14px; padding: 2px 12px; }
.tray a { display: block; padding: 6px 0; }
.tray img { display: block; max-width: none; height: 58px; width: auto; }
.tray img.as { height: 40px; margin: 9px 0; }
.release .get { margin: 16px 0 6px; }
@media (max-width: 359px) { .tray { flex-direction: column; align-items: flex-start; gap: 0; padding: 4px 12px; } .tray a { padding: 0; } }   /* 320 では2つが1行に入らない（12/2 jan-quest） */
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.rule-chip { font-size: 14px; color: var(--muted); }
.rule-chip b { font-family: var(--serif); font-size: 22px; color: var(--ink); margin: 0 2px; }
.hero-art { margin: 0; }
.hero-art .frame { border-radius: 24px; overflow: hidden; box-shadow: var(--sh); background: var(--sheet); aspect-ratio: 16 / 9; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art figcaption { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* 数字の札の飾り（段の境目） */
.tiles-orn { display: flex; justify-content: center; gap: 8px; margin: 28px 0 8px; }
.tiles-orn span { width: 40px; height: 40px; border-radius: 9px; background: var(--tile); box-shadow: 0 0 0 1px var(--rule), 0 3px 8px rgba(35,42,64,.08); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--navy); }
.tiles-orn span.on { background: var(--tile-on); }

/* 段 */
.sec { padding: 48px 0 32px; }
@media (min-width: 900px) { .sec { padding: 64px 0 40px; } }
/* 段の境目：一つおきに少し濃い地の帯にし、上の端に数字の札の目盛りを置く */
#puzzles, #features, #faq { background: var(--paper2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.folio { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); font-size: 14px; letter-spacing: .12em; margin-bottom: 14px; }
.folio .no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: var(--navy); color: #fff; font-family: var(--serif); font-size: 18px; letter-spacing: 0; }
.sec h2 { font-size: clamp(28px, 5vw, 42px); margin-bottom: 16px; }
.sec .lead { color: var(--muted); max-width: 40em; margin-bottom: 28px; }

/* 写真（電話の枠） */
.phone { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule), var(--sh); background: var(--sheet); }
.phone img { width: 100%; }

/* 遊び方の段：写真を上、文を下に。PC は4つ並び */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 22px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step .phone { max-width: 260px; margin: 0 auto 16px; }
@media (min-width: 600px) { .step .phone { max-width: none; } }
.step .no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 9px; background: var(--tile-on); color: var(--navy); font-family: var(--serif); font-weight: 700; font-size: 20px; box-shadow: 0 0 0 1px var(--rule); margin-bottom: 8px; }
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* 写真を横に並べる段（狭い画面では横に送る） */
.shot-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; }
.shot-row figure { margin: 0; scroll-snap-align: start; }
.shot-row figcaption { font-size: 14px; margin-top: 10px; color: var(--ink); }
.shot-row figcaption b { display: block; font-family: var(--serif); font-size: 18px; margin-bottom: 2px; }
@media (max-width: 719px) { .shot-row { grid-auto-columns: 72%; } }

/* 相手役 */
.rival { display: grid; gap: 24px; align-items: center; }
@media (min-width: 820px) { .rival { grid-template-columns: 340px 1fr; gap: 44px; } }
.rival-main { margin: 0 auto; border-radius: 26px; overflow: hidden; box-shadow: var(--sh); max-width: 300px; }
.faces { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.faces li { text-align: center; font-size: 13px; color: var(--muted); }
.faces img { border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); margin-bottom: 4px; }
@media (max-width: 560px) { .faces { gap: 6px; } .faces li { font-size: 11px; } .faces img { border-radius: 10px; } }
.say { display: inline-block; background: var(--navy-s); border-radius: 14px; padding: 10px 18px; font-weight: 600; color: var(--navy); }

/* 特長 */
.features { display: grid; gap: 20px; }
@media (min-width: 820px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { background: var(--sheet); border-radius: var(--r); box-shadow: 0 0 0 1px var(--rule), var(--sh); padding: 22px; display: grid; gap: 16px; grid-template-columns: 120px 1fr; align-items: start; }
.feature .phone { border-radius: 14px; }
.feature h3 { font-size: 21px; margin-bottom: 6px; color: var(--navy); }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 560px) { .feature { grid-template-columns: 1fr; padding: 18px; } .feature .phone { max-width: 170px; } }

/* よくある質問 */
.faq { margin: 0; display: grid; gap: 12px; max-width: 820px; }
.faq div { background: var(--sheet); border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); padding: 16px 20px; }
.faq dt { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.faq dt::before { content: "Q"; font-family: var(--serif); color: var(--gold); margin-right: .6em; }
.faq dd { margin: 0; color: var(--muted); text-wrap: pretty; word-break: auto-phrase; }

/* 締め */
.release { margin-top: 0; background: var(--navy); color: #fff; padding: 64px 0; }
.release-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 40px; text-align: left; }
.rel-ck { width: 200px; border-radius: 28px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.release h2 { font-size: clamp(28px, 5vw, 44px); margin: 14px 0 10px; color: #fff; }
.release p { color: #d7dcee; margin: 0; }

.site-foot { background: var(--navy-d); color: #b9c0da; font-size: 12px; padding: 22px 0 28px; }
.site-foot a { color: #fff; }
.site-foot p { margin: 0; }

.nw { white-space: nowrap; }
/* 対応 */
.spec { margin: 0; display: grid; gap: 0; max-width: 820px; background: var(--sheet); border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); }
.spec div { display: grid; grid-template-columns: 5em 1fr; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--rule); }
.spec div:first-child { border-top: 0; }
.spec dt { font-weight: 700; color: var(--navy); }
.spec dd { margin: 0; color: var(--ink); }
/* 締めの表情の並び */
.rel-faces { list-style: none; display: flex; gap: 10px; padding: 0; margin: 18px 0 0; }
.rel-faces img { width: 76px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.release { padding: 80px 0; }
@media (max-width: 600px) { .hero-art .frame { aspect-ratio: 2 / 3; max-width: 420px; margin: 0 auto; } .hero-art figcaption { text-align: center; } }
.hero-art picture { display: block; width: 100%; height: 100%; }
/* プライバシー・サポートのページ */
.doc { padding: 36px 0 56px; }
.doc .wrap { max-width: 820px; }
.doc-h { font-size: clamp(26px, 5vw, 36px); margin-bottom: 18px; }
.doc-card { background: var(--sheet); border-radius: 14px; box-shadow: 0 0 0 1px var(--rule); padding: 18px 22px; margin-bottom: 14px; }
.doc-card h2 { font-size: 20px; color: var(--navy); margin-bottom: 8px; }
.doc-card p, .doc-card li { color: var(--ink); font-size: 15px; text-wrap: pretty; }
.doc-card ul { margin: 0; padding-left: 1.2em; }
.doc-card p:last-child { margin-bottom: 0; }
.doc .faq { margin-bottom: 14px; }
.doc-date { color: var(--muted); font-size: 13px; text-align: right; }
.faq dt { word-break: keep-all; overflow-wrap: anywhere; }
.foot-links { margin-bottom: 6px !important; }
