/* ひかりもの巣（Shiny Nest）の LP。手本はリドルインクの web/lp（手で書いた静的な HTML と CSS）。
   ゲームの見た目に合わせる：明るい昼の空・クリームの札（細い線・ぼかした影）・主の色は紺の1色・差し色は金と葉の緑。
   書体は Noto Sans JP の1つ（同梱）。やらないこと：ダークモード・太い黒縁・ずらした影・白フチの字。 */

@font-face { font-family: "SN Sans"; src: url("fonts/sn-sans.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  color-scheme: light;
  --cream: #fdf6e6; --paper: #fffaf0; --card: #fffdf7;
  --sky: #d9ecf8; --sky2: #eef6fb;
  --navy: #293d75; --navy2: #1f2f5c; --ink: #222a44; --muted: #5a6280;
  --gold: #e7b84a; --gold-t: #8a6216; --gold-s: #fbecc4;
  --leaf: #5f8a35; --leaf-s: #e6efd6; --wood: #8a5a2b;
  --line: rgba(41,61,117,.16);
  --sans: "SN Sans", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --r: 22px;
  --sh: 0 2px 4px rgba(31,47,92,.05), 0 14px 34px rgba(31,47,92,.10);
}
* { box-sizing: border-box; }
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(--cream); 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; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 800; line-height: 1.4; letter-spacing: .04em; margin: 0; color: var(--navy); }
h1:lang(ja), h2:lang(ja), h3:lang(ja) { word-break: keep-all; overflow-wrap: anywhere; }
.nb { display: inline-block; }
.latin { letter-spacing: .28em; font-weight: 700; }
.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(--navy); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }

/* 頭の帯：ゲームの上の帯と同じクリームの1枚・下に細い紺の線 */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(255,250,240,.94); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(31,47,92,.06); }
@supports (backdrop-filter: blur(6px)) { .site-head { background: rgba(255,250,240,.82); backdrop-filter: blur(10px); } }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; min-height: 48px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold-s), 0 2px 6px rgba(31,47,92,.15); }
.brand b { font-weight: 900; font-size: 20px; letter-spacing: .08em; line-height: 1.1; white-space: nowrap; }
.brand small { display: block; font-size: 11px; letter-spacing: .3em; color: var(--gold-t); line-height: 1.4; font-weight: 700; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 11px; color: var(--navy); text-decoration: none; font-size: 14px; font-weight: 700; border-radius: 99px; white-space: nowrap; }
.site-nav a:hover { background: var(--gold-s); }
@media (max-width: 900px) { .site-nav a:not(.keep) { display: none; } }

/* 最初の画面：明るい昼の空 */
.hero { background: linear-gradient(180deg, var(--sky) 0%, var(--sky2) 55%, var(--cream) 100%); padding: 48px 0 56px; position: relative; }
.hero .wrap { display: grid; gap: 30px; }
.hero-text { display: grid; gap: 8px 48px; align-items: end; }
@media (min-width: 980px) { .hero-text { grid-template-columns: auto 1fr; } .hero-text .side { padding-bottom: 10px; } .hero { padding: 60px 0 80px; } }
.kick { margin: 0 0 6px; color: var(--gold-t); font-weight: 800; font-size: 14px; display: flex; gap: 14px; align-items: center; }
.hero h1 { white-space: nowrap; font-size: clamp(50px, 13vw, 104px); font-weight: 900; letter-spacing: .06em; line-height: 1.15; color: var(--navy2); }
.tagline { font-size: clamp(22px, 4.4vw, 30px); font-weight: 800; color: var(--navy); margin: 14px 0 16px; line-height: 1.5; }
.hero .lead { font-size: 16.5px; max-width: 34em; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }
.seal { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: 99px; background: var(--paper); color: var(--navy); font-weight: 800; letter-spacing: .12em; border: 2px solid rgba(231,184,74,.75); box-shadow: var(--sh); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 99px; background: var(--navy); color: #fff; font-weight: 800; text-decoration: none; letter-spacing: .08em; box-shadow: 0 8px 20px rgba(31,47,92,.22); }
.btn:hover { background: var(--navy2); }
.hero-art { margin: 0; }
.hero-art img { width: 100%; border-radius: 28px; box-shadow: 0 4px 8px rgba(31,47,92,.08), 0 26px 60px rgba(31,47,92,.20); }
.hero-art figcaption { font-size: 12px; color: var(--muted); text-align: right; margin-top: 8px; }

/* 段の境目：枝の線と宝 */
.twig { display: flex; align-items: center; gap: 14px; max-width: 1120px; margin: 8px auto; padding: 0 18px; }
.twig::before, .twig::after { content: ""; flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, rgba(138,90,43,0), rgba(138,90,43,.45) 30%, rgba(95,138,53,.45) 70%, rgba(95,138,53,0)); }
.twig span { display: flex; gap: 6px; }

.sec { padding: 36px 0 40px; }
@media (min-width: 960px) { .sec { padding: 40px 0 48px; } }
.sec h2 { font-size: clamp(28px, 5.4vw, 42px); margin-bottom: 18px; }
.sec .lead { font-size: 16.5px; max-width: 40em; }
.folio { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; color: var(--gold-t); font-size: 14px; font-weight: 800; letter-spacing: .16em; }
.folio .no { width: 30px; height: 30px; }
.folio::after { content: ""; flex: 1; max-width: 200px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(231,184,74,.7), rgba(231,184,74,0)); }
.sec.sky { background: linear-gradient(180deg, var(--cream), var(--sky2) 30%, var(--sky2) 70%, var(--cream)); }

/* 札（ゲームのクリームの札） */
.card, .cast-card, .feature, .faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); }

/* 登場する役 */
.cast { display: grid; gap: 22px; margin-top: 28px; }
@media (min-width: 900px) { .cast { grid-template-columns: 0.9fr 1.1fr; } }
.cast-card { padding: 24px; display: grid; gap: 18px; align-content: start; }
.cast-card h3 { font-size: 26px; }
.cast-card .role { color: var(--gold-t); font-weight: 800; font-size: 14px; letter-spacing: .1em; margin: 2px 0 10px; }
.cast-card.magpie .pic { background: radial-gradient(circle at 50% 60%, var(--gold-s), rgba(251,236,196,0) 68%); border-radius: 18px; }
.cast-card.magpie .pic img { width: min(320px, 80%); margin: 0 auto; }
.faces { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.faces figure { margin: 0; text-align: center; }
.faces img { width: 100%; max-width: 170px; aspect-ratio: 1; object-fit: cover; object-position: 50% 20%; margin: 0 auto; border-radius: 50%; background: var(--leaf-s); }
.faces figcaption { font-size: 12px; word-break: keep-all; overflow-wrap: anywhere; color: var(--navy); font-weight: 700; line-height: 1.5; margin-top: 6px; }

/* 遊び方 */
.steps { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px 18px 22px; }
.phone { margin: 0 0 16px; }
.phone img { width: 100%; max-width: 300px; margin: 0 auto; border-radius: 24px; box-shadow: 0 2px 4px rgba(31,47,92,.08), 0 14px 30px rgba(31,47,92,.16); }
.step .no { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; font-size: 19px; box-shadow: 0 0 0 4px var(--gold-s); margin-bottom: 8px; }
.step h3 { font-size: 22px; margin-bottom: 8px; }
.more-shots { margin-top: 40px; }
.more-shots h3 { font-size: 20px; margin-bottom: 14px; }
.shot-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
/* 狭い画面では横に送る（次の写真の端を見せる・点の印） */
@media (max-width: 759px) {
  .shot-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68%; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -18px; padding-left: 18px; scroll-padding-left: 18px; }
  .shot-row figure { scroll-snap-align: start; }
}
.dots { display: none; }
@media (max-width: 759px) { .dots { display: flex; gap: 8px; justify-content: center; margin: 4px 0 0; } .dots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(41,61,117,.25); } }
.shot-row figure { margin: 0; }
.shot-row .phone { margin: 0 0 8px; }
.shot-row figcaption { font-size: 14px; color: var(--navy); font-weight: 700; text-align: center; line-height: 1.5; word-break: keep-all; }
.shot-cap { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* 見どころ */
.moments { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 22px; }
@media (min-width: 760px) { .moments { grid-template-columns: repeat(3, 1fr); } }
.moment { text-align: center; }
.moment .media img { width: 100%; max-width: 320px; margin: 0 auto 14px; border-radius: 26px; box-shadow: 0 0 0 3px rgba(231,184,74,.55), 0 18px 40px rgba(31,47,92,.18); }
.moment h3 { font-size: 22px; margin-bottom: 6px; }
.moment p { max-width: 22em; margin: 0 auto; }

/* 宝の11段：葉の緑の細い段の上に並べる */
.ladder { list-style: none; margin: 26px 0 0; padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; background: linear-gradient(180deg, var(--paper), var(--leaf-s)); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); counter-reset: t; }
@media (min-width: 640px) { .ladder { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 1000px) { .ladder { grid-template-columns: repeat(11, 1fr); } }
.ladder li { text-align: center; counter-increment: t; }
.ladder img { width: 100%; max-width: 92px; margin: 0 auto 4px; filter: drop-shadow(0 6px 8px rgba(31,47,92,.18)); }
.ladder span { display: block; word-break: keep-all; overflow-wrap: anywhere; font-size: 13px; font-weight: 800; color: var(--navy); line-height: 1.4; }
.ladder span::before { content: counter(t); display: block; font-size: 11px; color: var(--gold-t); letter-spacing: .1em; }
.ladder li.top span { color: var(--gold-t); }

/* 特長 */
.features { display: grid; gap: 20px; margin-top: 28px; }
@media (min-width: 820px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { padding: 18px 20px 22px; display: grid; gap: 14px; align-content: start; }
.feature .pic { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.feature .pic.wide { object-fit: contain; background: linear-gradient(180deg, var(--sky), var(--sky2)); padding: 0 8px; }
.feature h3 { font-size: 20px; }
.feature p { margin: 0; }

/* よくある質問 */
.faq { display: grid; gap: 12px; margin-top: 24px; max-width: 820px; }
.faq details { padding: 0 20px; }
.faq summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; font-weight: 800; color: var(--navy); font-size: 17px; list-style: none; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.faq details p { padding: 0 0 16px 42px; margin: 0; }

/* 締め：紺の大きな段 */
.release { background: radial-gradient(ellipse at 30% 0%, #3a5398, var(--navy) 55%, var(--navy2)); color: #fff; padding: 64px 0 72px; margin-top: 24px; overflow: hidden; }
.release .wrap { display: grid; gap: 24px; align-items: center; justify-items: center; text-align: center; }
@media (min-width: 860px) { .release .wrap { grid-template-columns: auto 1fr; justify-items: start; text-align: left; } }
.release-bird { width: min(300px, 70vw); filter: drop-shadow(0 18px 30px rgba(0,0,0,.25)); }
.release .latin { color: var(--gold); font-size: 13px; margin: 0 0 6px; }
.release h2 { color: #fff; font-size: clamp(28px, 5.4vw, 44px); margin-bottom: 14px; }
.release p { color: rgba(255,255,255,.9); }
.seal-light { background: rgba(255,250,240,.98); color: var(--navy); }

.site-foot { padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.site-foot .links { display: flex; gap: 18px; margin-bottom: 8px; }
.site-foot .links a { min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 480px) { .faces figcaption { font-size: 11px; letter-spacing: 0; } }
