/* Sinsen Games — sinsen.org
   色と余白はここの変数で調整できます。 */
:root {
  --paper: #f7f2e7;
  --paper-deep: #efe7d6;
  --card: #fffdf8;
  --ink: #14264a;
  --ink-soft: #4d5a78;
  --gold: #d99a1c;
  --gold-soft: #f4dfa9;
  --line: rgba(20, 38, 74, .14);
  --night: #121a36;
  --night-2: #1c2750;
  --lamp: #ffd36b;
  --red: #e2452f;
  --radius: 18px;
  --wrap: 1120px;
  --shadow: 0 1px 2px rgba(20, 38, 74, .06), 0 12px 32px -16px rgba(20, 38, 74, .28);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", Meiryo, system-ui, sans-serif;
  --font-round: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", Meiryo, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; letter-spacing: .01em; }
[id] { scroll-margin-top: 84px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 231, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); }
.brand span { color: var(--gold); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-right: -8px; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-soft); padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.nav a:hover { background: var(--paper-deep); color: var(--ink); }
.nav a.is-live { color: var(--red); }
.nav a.is-royal { color: #9a6a00; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.3;
  border: 2px solid var(--ink); background: var(--ink); color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -10px rgba(20, 38, 74, .7); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.lamp { background: var(--lamp); border-color: var(--lamp); color: #2a1c05; }
.btn.on-night { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn.small { min-height: 38px; padding: 6px 16px; font-size: 13.5px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 見出し ---------- */
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.section { padding: 80px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-top: 6px; }
.section-head p.lead { color: var(--ink-soft); max-width: 34em; font-size: 15px; }
.sub-head { display: flex; align-items: center; gap: 14px; margin: 44px 0 20px; font-size: 18px; font-weight: 800; }
.sub-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-head + .sub-head { margin-top: 0; }

/* ---------- ヒーロー ---------- */
.hero { padding: 44px 0 64px; }
.hero-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 32px; margin-bottom: 28px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 900; letter-spacing: -.02em; line-height: 1.3; margin-top: 8px; }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--gold-soft) 62%); }
.hero p.lead { color: var(--ink-soft); max-width: 30em; font-size: 15px; }

/* 二枚看板 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { position: relative; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; color: #fff; box-shadow: 0 30px 50px -30px rgba(20, 38, 74, .7); }
.panel.lh { background: #21140d; }
.panel.sl { background: #141c3a; }
.panel .art { overflow: hidden; }
.panel .art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.panel:hover .art img { transform: scale(1.04); }
.panel .inner { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.panel h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 900; line-height: 1.25; }
.panel h2 small { display: block; font-size: 12.5px; letter-spacing: .16em; font-weight: 700; opacity: .85; margin-bottom: 4px; }
.panel.lh h2 { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; color: #f6dc9a; }
.panel.sl h2 { font-family: var(--font-round); color: var(--lamp); }
.panel p { font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, .86); }
.panel .btns.cta { margin-top: auto; padding-top: 8px; }
.panel a.main::after { content: ""; position: absolute; inset: 0; }
.panel .btns a:not(.main) { position: relative; z-index: 1; }
.pill.dim { background: rgba(255, 255, 255, .16); }
.btn.gold { background: #e7c35f; border-color: #e7c35f; color: #2a1a05; }
.pill.gold { background: #e7c35f; color: #2a1a05; }

/* ---------- Legend Heroes 帯 ---------- */
.royal {
  background:
    radial-gradient(700px 340px at 88% 0%, rgba(231, 195, 95, .18), transparent 70%),
    radial-gradient(600px 320px at 6% 100%, rgba(150, 30, 30, .22), transparent 70%),
    linear-gradient(160deg, #1b110c, #2a1712);
  color: #f5efe2;
}
.royal .eyebrow { color: #e7c35f; }
.royal .muted { color: #cdbfa6; }
.royal .sub-head::after { background: rgba(231, 195, 95, .28); }
.royal-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: center; }
.royal-title { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; font-weight: 800; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.4; color: #f6dc9a; margin: 10px 0 16px; }
.royal .live-shot { border-color: rgba(231, 195, 95, .35); }
.royal .live-shot img { aspect-ratio: 3 / 2; }
.points { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.points li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.points li span { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #e7c35f; color: #2a1a05; font-weight: 900; font-size: 15px; font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; }
.points b { display: block; }
.points small { color: #cdbfa6; font-size: 13.5px; }
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.roadmap li { border: 1px solid rgba(231, 195, 95, .28); border-radius: 14px; padding: 16px 20px; background: rgba(255, 255, 255, .04); }
.roadmap li.now { border-color: #e7c35f; background: rgba(231, 195, 95, .12); }
.roadmap b { display: block; font-size: 17px; margin: 6px 0 2px; }
.roadmap span.when { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: #e7c35f; }
.roadmap p { font-size: 14px; color: #cdbfa6; }
.kings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.king { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid rgba(231, 195, 95, .3); isolation: isolate; }
.king img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.king div { position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 12px 12px; background: linear-gradient(180deg, transparent, rgba(20, 10, 6, .9) 38%, rgba(20, 10, 6, .97)); }
.king small { display: block; font-size: 11.5px; color: #e7c35f; font-weight: 700; letter-spacing: .06em; }
.king b { display: block; font-size: 15px; line-height: 1.4; }
.king span { display: block; font-size: 12px; line-height: 1.55; color: #cdbfa6; margin-top: 2px; }

/* ---------- Sandbox Live! 帯 ---------- */
.night {
  background:
    radial-gradient(600px 300px at 12% 0%, rgba(226, 69, 47, .28), transparent 70%),
    radial-gradient(600px 320px at 92% 100%, rgba(255, 211, 107, .16), transparent 70%),
    linear-gradient(160deg, var(--night), var(--night-2));
  color: #f4f1e8;
}
.night .eyebrow { color: var(--lamp); }
.night .muted, .night .section-head p.lead { color: #b9c0dc; }
.live-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.live-title { font-family: var(--font-round); font-weight: 900; font-size: clamp(34px, 5vw, 56px); line-height: 1.15; color: var(--lamp); letter-spacing: -.01em; margin: 8px 0 4px; }
.live-sub { font-weight: 700; font-size: 17px; margin-bottom: 18px; }
.live-shot { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); box-shadow: 0 30px 60px -30px #000; display: block; position: relative; }
.live-shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; background: var(--red); color: #fff; letter-spacing: .04em; }
.pill.soft { background: var(--gold-soft); color: #5a3d00; }
.pill.navy { background: var(--ink); }
.pill.line { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }
.steps { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; font-size: 15px; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lamp); color: #2a1c05; font-weight: 900; font-size: 15px; line-height: 1; }

/* ---------- カード ---------- */
.grid { display: grid; gap: 22px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; transition: transform .18s ease; }
.card:hover { transform: translateY(-4px); }
.card .thumb { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--paper-deep); }
.card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 19px; font-weight: 800; }
.card h3 small { display: block; font-size: 11.5px; letter-spacing: .14em; color: var(--ink-soft); font-weight: 700; }
.card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.75; }
.card .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.card .actions { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.card a.cover::after { content: ""; position: absolute; inset: 0; }
.card .actions a { position: relative; z-index: 1; }

.rows { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.row .pill { grid-column: 1; grid-row: 1; }
.row h3 { grid-column: 2; grid-row: 1; font-size: 16.5px; font-weight: 800; }
.row a.more { grid-column: 3; grid-row: 1; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.row p { grid-column: 1 / -1; grid-row: 2; font-size: 14px; color: var(--ink-soft); }

/* 動画・note */
.media { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.media .thumb { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); position: relative; box-shadow: var(--shadow); }
.media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .25s ease; }
.media:hover img { transform: scale(1.04); }
.media .play::after { content: ""; position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(18, 26, 54, .86) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 22px no-repeat; }
.media h3 { font-size: 15px; font-weight: 700; line-height: 1.6; }
.media time, .media .meta { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.night .media .thumb { border-color: rgba(255, 255, 255, .18); }
.night .media .meta { color: #b9c0dc; }
.tinted { background: var(--paper-deep); }

/* Sandbox Live! のゲーム一覧 */
.stalls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stall { position: relative; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, background .15s; }
.stall:hover { border-color: var(--lamp); background: rgba(255, 255, 255, .11); }
.stall a { color: #fff; text-decoration: none; font-weight: 800; font-size: 16.5px; line-height: 1.5; }
.stall a::after { content: ""; position: absolute; inset: 0; }
.stall .lane { align-self: flex-start; background: var(--lamp); color: #2a1c05; font-weight: 800; font-size: 12px; padding: 1px 10px; border-radius: 999px; }
.stall .meta { font-size: 12.5px; color: #b9c0dc; }

/* ステータス表 */
.status { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.status li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; font-size: 14.5px; align-items: center; }
.status b { font-weight: 800; }
.status span { color: var(--ink-soft); }

.notice { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--gold); border-radius: 12px; padding: 20px 24px; }
.notice ul { margin: 8px 0 0; padding-left: 1.3em; color: var(--ink-soft); font-size: 14.5px; }
.notice li + li { margin-top: 6px; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: start; }
.about p + p { margin-top: 1em; }
.about .text p { color: var(--ink-soft); }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 13px 18px; font-weight: 700; font-size: 15px; }
.links a:hover { border-color: var(--ink); }
.links a small { font-weight: 500; color: var(--ink-soft); font-size: 12.5px; }
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.news time { white-space: nowrap; color: var(--ink-soft); font-weight: 600; font-variant-numeric: tabular-nums; }

/* 文章ページ */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.prose h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 900; margin-bottom: 6px; }
.prose .date { color: var(--ink-soft); font-size: 14px; margin-bottom: 28px; }
.prose h2 { font-size: 19px; font-weight: 800; margin: 38px 0 10px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose p { margin-bottom: 14px; color: #2c3a5c; }
.prose a { color: #0e4fa8; }

/* ページ先頭の帯（下層ページ） */
.page-hero { padding: 56px 0 64px; }
.page-hero .live-grid { align-items: center; }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 13.5px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer a { text-decoration: none; font-weight: 600; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 960px) {
  .live-grid, .about, .royal-grid, .duo { grid-template-columns: 1fr; }
  .kings { grid-template-columns: repeat(3, 1fr); }
  .grid.c3, .stalls { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .hero { padding: 28px 0 44px; }
  .panel .inner { padding: 20px; }
  .kings { grid-template-columns: repeat(2, 1fr); }
  .roadmap { grid-template-columns: 1fr; }
  .grid.c3, .grid.c2, .stalls, .status { grid-template-columns: 1fr; }
  .site-header .wrap { flex-direction: column; align-items: stretch; gap: 0; padding-top: 10px; }
  .nav { margin: 0 -16px; padding: 4px 8px 8px; }
  [id] { scroll-margin-top: 112px; }
  .row { grid-template-columns: auto 1fr; }
  .row a.more { grid-column: 1 / -1; grid-row: 3; }
  .news li, .status li { grid-template-columns: 1fr; gap: 2px; }
  .btn { padding: 10px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
