:root {
  --paper: #f7f6f2;
  --surface: #fffefa;
  --soft: #ebeee9;
  --ink: #213330;
  --secondary: #425550;
  --muted: #596b65;
  --accent: #a6483b;
  --line: #cbd4cd;
  --night: #203b42;
  --light: #fffaf0;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.8 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { background: #dcb2a8; color: #142522; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.site-shell { overflow: clip; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; color: white; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { max-width: 1360px; height: 76px; margin: auto; padding: 0 clamp(22px, 4vw, 56px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 19px/1.3 var(--serif); white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; flex: none; color: var(--accent); }
.brand-em { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 2.7vw, 40px); font-size: 14px; font-weight: 500; }
.main-nav > a { min-height: 44px; display: inline-flex; align-items: center; border-bottom: 1px solid transparent; transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.main-nav > a:hover { color: var(--accent); border-color: currentColor; }
.nav-x { gap: 7px; }
.nav-x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; }

.hero { max-width: 1360px; min-height: 650px; margin: auto; padding: 0 clamp(22px, 4vw, 56px); display: grid; grid-template-columns: 1fr .96fr; gap: clamp(32px, 5vw, 72px); }
.hero-copy { min-width: 0; padding: 112px 0 44px; display: flex; flex-direction: column; align-items: flex-start; animation: hero-reveal 450ms var(--ease) both; }
.hero h1 { margin: 0; font: 500 clamp(48px, 4.7vw, 69px)/1.34 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.hero h1 span { color: var(--accent); }
.hero-lede { max-width: 520px; margin: 30px 0 0; color: var(--secondary); font-size: 17px; line-height: 2; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 36px; }
.button { min-height: 50px; padding: 11px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid transparent; font-size: 14px; font-weight: 600; line-height: 1.5; transition: background 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease); }
.button:active { transform: scale(.98); }
.button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.button-dark { color: white; background: var(--ink); }
.button-dark:hover { background: #34504b; }
.button-dark svg { fill: currentColor; stroke: none; }
.button-light { color: var(--ink); background: var(--light); }
.button-light:hover { background: #e8e9e2; }
.text-button { min-height: 44px; display: inline-flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 600; transition: color 160ms var(--ease), border-color 160ms var(--ease); }
.text-button:hover { color: var(--accent); border-color: var(--accent); }
.text-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-byline { width: 100%; margin: auto 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.hero-byline span { margin: 0 6px; color: var(--accent); }
.hero-art { min-width: 0; margin: 32px 0; padding: 24px; display: flex; flex-direction: column; background: var(--soft); animation: hero-reveal 500ms 70ms var(--ease) both; }
.preview-meta, .preview-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--secondary); font-size: 12px; line-height: 1.5; }
.preview-meta { margin-bottom: 16px; font-weight: 600; }
.preview-meta span:last-child { font-variant-numeric: tabular-nums; }
.preview-frame { min-height: 0; flex: 1; position: relative; display: block; overflow: hidden; background: var(--night); box-shadow: 0 10px 24px rgba(24, 47, 48, .15); }
.preview-frame:focus-visible { outline-offset: 5px; }
.preview-bar { min-height: 48px; padding: 12px 16px; position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #1c343b; color: #f8f4e9; font-size: 12px; }
.preview-bar-title { font-weight: 600; }
.preview-scene { position: absolute; inset: 48px 0 0; width: 100%; height: calc(100% - 48px); }
.preview-overlay { position: absolute; inset: 48px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: rgba(25, 47, 51, .22); color: var(--light); text-align: center; }
.preview-overlay strong { font: 500 clamp(25px, 2.5vw, 38px)/1.4 var(--serif); }
.preview-overlay > span:nth-child(2) { margin-top: 12px; font-size: 13px; }
.preview-open { min-height: 44px; margin-top: 22px; padding: 9px 14px; display: inline-flex; align-items: center; gap: 12px; background: var(--light); color: var(--ink); font-size: 13px; font-weight: 600; transition: background 160ms var(--ease), transform 160ms var(--ease); }
.preview-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.preview-frame:hover .preview-open { background: #e9e7dd; transform: translateX(3px); }
.preview-caption { margin-top: 16px; }

.section-pad { max-width: 1360px; margin: auto; padding: 112px clamp(22px, 4vw, 56px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading h2, .note-side h2 { margin: 0; font: 500 clamp(36px, 3.7vw, 52px)/1.35 var(--serif); letter-spacing: -.03em; }
.section-heading p, .note-side p { max-width: 410px; margin: 0 0 5px; color: var(--secondary); font-size: 15px; }
.games-section { border-top: 1px solid var(--line); }
.game-list { display: grid; grid-template-columns: 1fr; gap: 20px; }
.game-card { min-width: 0; }
.game-card-link { height: 100%; min-height: 368px; display: grid; grid-template-columns: 1.15fr .85fr; background: var(--surface); border: 1px solid var(--line); transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.game-card-link:hover { border-color: #9db0a5; box-shadow: 0 8px 24px rgba(26, 47, 44, .08); }
.card-art { min-height: 100%; position: relative; overflow: hidden; background: var(--night); }
.card-art > svg { width: 100%; height: 100%; position: absolute; inset: 0; }
.card-art > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.card-play { position: absolute; right: 20px; bottom: 20px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--light); color: var(--ink); }
.card-play svg { width: 19px; height: 19px; fill: currentColor; margin-left: 2px; }
.card-body { min-width: 0; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; }
.card-meta { width: 100%; display: flex; justify-content: space-between; gap: 12px; color: var(--accent); font-size: 12px; font-weight: 600; }
.card-meta span { color: var(--muted); }
.card-body h3 { margin: auto 0 12px; font: 500 clamp(25px, 2.4vw, 34px)/1.4 var(--serif); letter-spacing: -.025em; }
.card-body p { margin: 0 0 24px; color: var(--secondary); font-size: 14px; line-height: 1.9; }
.card-link { min-height: 38px; display: inline-flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 600; }
.card-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms var(--ease); }
.game-card-link:hover .card-link svg { transform: translateX(3px); }
.shelf-next { min-height: 368px; padding: 32px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); background: var(--soft); }
.shelf-lines { width: 88px; display: grid; gap: 6px; }
.shelf-lines span { height: 1px; background: #80918a; }
.shelf-lines span:nth-child(2) { width: 72%; }
.shelf-lines span:nth-child(3) { width: 45%; }
.shelf-next h3 { margin: auto 0 12px; font: 500 clamp(24px, 2.3vw, 31px)/1.5 var(--serif); letter-spacing: -.025em; }
.shelf-next p { margin: 0; color: var(--secondary); font-size: 14px; line-height: 1.9; }

.note-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 48px; border-top: 1px solid var(--line); }
.note-side p { margin-top: 14px; }
.note-entry { min-height: 180px; padding: 24px 0; display: grid; grid-template-columns: 128px 1fr 24px; align-items: start; gap: 24px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); transition: color 160ms var(--ease); }
.note-entry:hover { color: var(--accent); }
.note-date { margin-top: 5px; color: var(--muted); font-size: 12px; }
.note-entry h3 { margin: 0 0 10px; font: 500 clamp(21px, 2vw, 28px)/1.5 var(--serif); letter-spacing: -.02em; }
.note-entry p { margin: 0; color: var(--secondary); font-size: 14px; line-height: 1.9; }
.note-entry > svg { width: 22px; height: 22px; margin-top: 5px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 160ms var(--ease); }
.note-entry:hover > svg { transform: translateX(3px); }
.closing { min-height: 320px; padding: 64px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--night); color: var(--light); text-align: center; }
.closing p { margin: 0 0 10px; color: #d4e0db; font-size: 14px; }
.closing h2 { margin: 0 0 28px; font: 500 clamp(29px, 3.1vw, 43px)/1.45 var(--serif); letter-spacing: -.025em; }

.site-footer { max-width: 1360px; margin: auto; padding: 72px clamp(22px, 4vw, 56px) 24px; }
.footer-main { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 64px; }
.footer-main p { margin: 0; color: var(--secondary); font-size: 13px; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-bottom: 72px; }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-links span { margin-bottom: 8px; color: var(--ink); font-size: 13px; font-weight: 600; }
.footer-links a { color: var(--secondary); font-size: 13px; transition: color 160ms var(--ease); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-bottom a:hover { color: var(--accent); }

.legal-hero { max-width: 1360px; margin: auto; padding: 96px clamp(22px, 4vw, 56px) 72px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin: 0 0 18px; font: 500 clamp(38px, 4.4vw, 62px)/1.35 var(--serif); letter-spacing: -.03em; }
.legal-hero p { max-width: 640px; margin: 0; color: var(--secondary); font-size: 16px; line-height: 2; }
.legal-layout { max-width: 1360px; margin: auto; padding: 72px clamp(22px, 4vw, 56px) 112px; display: grid; grid-template-columns: 220px minmax(0, 760px); gap: clamp(48px, 7vw, 112px); }
.legal-aside { position: sticky; top: 24px; align-self: start; padding-top: 16px; border-top: 1px solid var(--ink); }
.legal-aside > span { color: var(--ink); font-size: 13px; font-weight: 600; }
.legal-aside nav { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.legal-aside a { color: var(--secondary); font-size: 13px; }
.legal-aside a:hover { color: var(--accent); }
.legal-copy { color: var(--secondary); font-size: 15px; line-height: 2.1; }
.legal-copy > p:first-child { margin-top: 0; }
.legal-copy h2 { margin: 48px 0 14px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink); font: 500 24px/1.5 var(--serif); letter-spacing: -.02em; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy h3 { margin: 28px 0 8px; color: var(--ink); font: 500 18px/1.5 var(--serif); }
.legal-copy p, .legal-copy ul { margin: 0 0 16px; }
.legal-copy ul { padding-left: 1.5em; }
.legal-copy li { padding-left: 4px; margin: 6px 0; }
.legal-copy a:not(.button) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-updated { margin-bottom: 28px !important; color: var(--muted); font-size: 13px; }
.about-feature { margin: 32px 0; padding: 24px; background: var(--soft); }
.about-feature strong { color: var(--ink); font: 500 21px/1.5 var(--serif); }
.about-feature p { margin: 8px 0 0; }
.legal-back { min-height: 44px; margin-top: 40px; display: inline-flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--ink); color: var(--ink) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.legal-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

@keyframes hero-reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 980px) {
  .hero { gap: 28px; min-height: 600px; }
  .hero-copy { padding-top: 90px; }
  .hero h1 { font-size: clamp(43px, 4.9vw, 58px); }
  .hero-lede { font-size: 15px; }
  .game-card-link { grid-template-columns: 1fr; }
  .card-art { min-height: 0; aspect-ratio: 16 / 9; }
  .card-body { padding: 24px; }
  .card-body h3 { margin-top: 24px; }
}
@media (max-width: 760px) {
  .site-header { height: 68px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; }
  .menu-toggle { width: 44px; height: 44px; padding: 11px; display: flex; flex-direction: column; justify-content: center; gap: 6px; border: 1px solid var(--line); background: transparent; }
  .menu-toggle span { height: 1px; width: 100%; display: block; background: var(--ink); transition: transform 160ms var(--ease); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; padding: 16px 22px 24px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(25, 46, 42, .08); }
  .main-nav.open { display: flex; }
  .main-nav > a { min-height: 48px; }
  .hero { display: flex; flex-direction: column; gap: 0; padding: 0; }
  .hero-copy { min-height: 470px; padding: 72px 22px 28px; }
  .hero h1 { font-size: clamp(42px, 7vw, 58px); }
  .hero-lede { max-width: 540px; }
  .hero-byline { padding-top: 16px; }
  .hero-art { height: 470px; margin: 0 22px 32px; padding: 20px; }
  .section-pad { padding-top: 80px; padding-bottom: 80px; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .game-list { grid-template-columns: 1fr; }
  .game-card-link { grid-template-columns: 1fr; min-height: 0; }
  .shelf-next { min-height: 200px; }
  .note-section { grid-template-columns: 1fr; gap: 28px; }
  .legal-hero { padding-top: 76px; padding-bottom: 64px; }
  .legal-layout { padding-top: 48px; padding-bottom: 80px; grid-template-columns: 1fr; gap: 32px; }
  .legal-aside { position: static; }
  .legal-aside nav { flex-direction: row; flex-wrap: wrap; column-gap: 20px; row-gap: 8px; }
}
@media (max-width: 560px) {
  .hero-copy { min-height: 460px; padding-top: 64px; }
  .hero h1 { font-size: clamp(37px, 9.4vw, 47px); }
  .hero-lede { margin-top: 24px; font-size: 15px; }
  .hero-actions { margin-top: 28px; gap: 12px; }
  .button { min-height: 48px; }
  .hero-art { height: 410px; }
  .preview-overlay strong { font-size: 25px; }
  .preview-overlay > span:nth-child(2) { font-size: 12px; }
  .preview-bar { padding: 0 10px; font-size: 11px; }
  .preview-caption { font-size: 12px; }
  .section-heading h2, .note-side h2 { font-size: 36px; }
  .game-card-link { grid-template-columns: 1fr; }
  .card-art { min-height: 0; }
  .card-body { min-height: 220px; }
  .card-body h3 { margin-top: 24px; }
  .shelf-next { min-height: 220px; }
  .note-entry { grid-template-columns: 1fr 22px; gap: 12px; }
  .note-date { grid-column: 1 / -1; }
  .note-entry > div { grid-column: 1; }
  .note-entry > svg { grid-column: 2; grid-row: 2; }
  .footer-main { display: block; margin-bottom: 48px; }
  .footer-main p { margin-top: 16px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; padding-bottom: 56px; }
  .site-footer { padding-top: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
