:root {
  --bg: #fffaf2;
  --surface: #ffffff;
  --text: #2b2420;
  --muted: #7a6f66;
  --line: #eadfce;
  --primary: #ff6b3d;
  --primary-ink: #ffffff;
  --accent: #2bb3a3;
  --star: #f5a623;
  --error: #c62828;
  --radius: 16px;
  --ink: #1b1340;
  --shadow: 0 1px 2px rgba(60, 30, 10, 0.06), 0 8px 24px -8px rgba(60, 30, 10, 0.16);
  --shadow-lg: 0 2px 4px rgba(60, 30, 10, 0.08), 0 20px 40px -12px rgba(60, 30, 10, 0.28);
  --grad: linear-gradient(120deg, #ff9a3d 0%, #ff5e7e 52%, #8f5bff 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1814;
    --surface: #26211c;
    --text: #f3ece4;
    --muted: #a99d91;
    --line: #3a332c;
    --primary: #ff7d52;
    --accent: #3cc9b8;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.5), 0 20px 40px -12px rgba(0, 0, 0, 0.7);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c", "Yu Gothic", "Meiryo", sans-serif;
  font-weight: 500;
  line-height: 1.75;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 24px; padding-bottom: 64px; min-height: 70vh; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.site-header { background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.3rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo-mark { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; font-size: 1.15rem; font-weight: 900; box-shadow: 0 4px 12px -2px rgba(255, 94, 126, 0.55); }
.nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.95rem; }
.nav a:not(.btn) { color: var(--text); }
.me { display: flex; align-items: center; gap: 6px; }
.pt { background: var(--accent); color: #fff; border-radius: 99px; padding: 0 8px; font-size: 0.8rem; font-weight: 700; }

.btn { display: inline-block; border: 2px solid var(--line); background: var(--surface); color: var(--text); border-radius: 99px; padding: 10px 22px; font-weight: 700; cursor: pointer; font: inherit; font-weight: 700; }
.btn:hover { text-decoration: none; filter: brightness(0.97); }
.btn-primary { background: var(--grad); border-color: transparent; color: var(--primary-ink); box-shadow: 0 6px 16px -4px rgba(255, 94, 126, 0.55); transition: transform 0.15s, box-shadow 0.15s; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -6px rgba(255, 94, 126, 0.7); filter: none; }
.btn-sm { padding: 4px 14px; font-size: 0.9rem; }

/* ヒーロー */
section.hero { margin-top: 0; }
.hero { position: relative; overflow: hidden; color: #fff; padding: 72px 0 96px; background: radial-gradient(1200px 520px at 85% -10%, #3a1f86 0%, transparent 60%), radial-gradient(900px 480px at 0% 110%, #5b1d6e 0%, transparent 55%), var(--ink); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; background: var(--bg); clip-path: ellipse(60% 100% at 50% 100%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; pointer-events: none; }
.hero-glow-a { width: 380px; height: 380px; right: 6%; top: -80px; background: #ff5e7e; }
.hero-glow-b { width: 340px; height: 340px; left: -80px; bottom: -120px; background: #8f5bff; }
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
.hero-eyebrow { display: inline-block; margin: 0 0 18px; padding: 4px 14px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 99px; background: rgba(255, 255, 255, 0.08); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3.3rem); line-height: 1.3; margin: 0 0 20px; font-weight: 900; letter-spacing: 0.01em; }
.hero h1 .ln { display: block; white-space: nowrap; }
.grad-text { background: linear-gradient(100deg, #ffc46b, #ff7a9a 55%, #b79bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { max-width: 560px; color: rgba(255, 255, 255, 0.86); font-size: 1.05rem; margin: 0; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.btn-hero { background: var(--grad); border-color: transparent; color: #fff; padding: 14px 32px; font-size: 1.05rem; box-shadow: 0 10px 28px -6px rgba(255, 94, 126, 0.75); transition: transform 0.15s, box-shadow 0.15s; }
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -8px rgba(255, 94, 126, 0.9); filter: none; text-decoration: none; }
.btn-ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); color: #fff; padding: 14px 28px; font-size: 1.05rem; backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); filter: none; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 28px 0 0; }
.chips li { padding: 3px 14px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.85rem; font-weight: 700; }





@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ホームの各セクション */
.eyebrow { margin: 0 0 6px; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.18em; color: var(--primary); }
.sec-head.center { display: block; text-align: center; margin-bottom: 28px; }
.sec-head.center h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.steps-sec { margin-top: 24px; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; margin: 0; }
.steps li { position: relative; counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px 24px 26px; box-shadow: var(--shadow); text-align: center; }
.steps li::before { content: counter(step); position: absolute; top: 14px; left: 18px; font-size: 1.6rem; font-weight: 900; color: var(--line); }
.steps h3 { margin: 14px 0 8px; font-size: 1.2rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.first-sec { margin-top: 48px; }
.first-card { text-align: center; padding: 48px 24px; border: 2px dashed var(--line); border-radius: 24px; background: linear-gradient(180deg, var(--surface), transparent); }
.first-card h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3.4vw, 2rem); }
.first-card p { max-width: 520px; margin: 0 auto 20px; color: var(--muted); }
.points-sec { margin-top: 56px; }
.points-card { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 36px 40px; border-radius: 26px; color: #fff; background: radial-gradient(500px 260px at 100% 0%, rgba(255, 255, 255, 0.18), transparent 70%), linear-gradient(120deg, #2bb3a3, #2a8fd0 60%, #6a5bff); box-shadow: var(--shadow-lg); }
.points-card > div:first-child { flex: 1 1 340px; }
.points-card .eyebrow { color: rgba(255, 255, 255, 0.85); }
.points-card h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.points-card p { margin: 0; color: rgba(255, 255, 255, 0.92); }
.points-art { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pt.big { background: #fff; color: #2a8fd0; font-size: 1.15rem; padding: 4px 18px; box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.3); }
.points-art .pt:nth-child(2) { margin-left: 28px; }
.points-art .pt:nth-child(3) { margin-left: 8px; }
.cta-sec { margin-top: 56px; }
.cta-band { text-align: center; padding: 56px 24px; border-radius: 28px; color: #fff; background: radial-gradient(600px 300px at 15% 0%, rgba(255, 255, 255, 0.16), transparent 70%), var(--ink); box-shadow: var(--shadow-lg); }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3.6vw, 2.2rem); }
.cta-band p { margin: 0 0 24px; color: rgba(255, 255, 255, 0.82); }

section { margin-top: 40px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; font-size: 0.9rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; color: var(--text); display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform 0.18s, box-shadow 0.18s; }
.card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--line); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .thumb img { transform: scale(1.04); }
.thumb-blank { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 14px; text-align: center; color: #fff; font-weight: 900; font-size: 1.15rem; line-height: 1.35; overflow: hidden;
  background: linear-gradient(135deg, hsl(var(--h1) 78% 58%), hsl(var(--h2) 72% 46%)); }
.thumb-blank::before { content: ""; position: absolute; inset: 0; opacity: 0.22;
  background-image: radial-gradient(circle at 20% 25%, #fff 0 3px, transparent 4px), radial-gradient(circle at 78% 70%, #fff 0 5px, transparent 6px), linear-gradient(45deg, transparent 46%, #fff 47% 53%, transparent 54%);
  background-size: 46px 46px, 70px 70px, 34px 34px; }
.thumb-blank[style*="--p:1"]::before { background-image: linear-gradient(90deg, #fff 1px, transparent 1px), linear-gradient(#fff 1px, transparent 1px); background-size: 26px 26px; opacity: 0.16; }
.thumb-blank[style*="--p:2"]::before { background-image: radial-gradient(#fff 2px, transparent 3px); background-size: 22px 22px; opacity: 0.3; }
.thumb-blank[style*="--p:3"]::before { background-image: repeating-linear-gradient(135deg, #fff 0 2px, transparent 2px 18px); opacity: 0.18; }
.thumb-blank span { position: relative; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.badge { position: absolute; left: 8px; top: 8px; background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700; border-radius: 99px; padding: 2px 10px; }
.card-body { padding: 12px 14px 14px; }
.card-body h3 { margin: 0 0 4px; font-size: 1.05rem; }
.summary { margin: 0; font-size: 0.88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 0.82rem; color: var(--muted); margin: 8px 0 0; }

.tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { padding: 6px 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--text); }
.tab.on { background: var(--text); color: var(--bg); }

.game h1 { margin: 0 0 4px; }
.game .meta { justify-content: flex-start; gap: 12px; }
.tag { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 0 10px; }
.player { margin-top: 16px; aspect-ratio: 16 / 10; background: #000; border-radius: var(--radius); overflow: hidden; }
.player iframe { width: 100%; height: 100%; border: 0; }
.player-link { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.player-link img { margin: 0 auto 16px; border-radius: 10px; max-height: 360px; }
.summary-lg { font-size: 1.1rem; font-weight: 700; margin-top: 20px; }
.desc { white-space: pre-wrap; }
.stats { color: var(--muted); }

.reviews h2 { margin-bottom: 12px; }
.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-top: 12px; }
.review-head { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 0 0 8px; }
.stars { color: var(--star); letter-spacing: 1px; }
.review dl { margin: 0; display: grid; grid-template-columns: 8.5em 1fr; gap: 4px 12px; }
.review dt { color: var(--muted); font-size: 0.88rem; }
.review dd { margin: 0; white-space: pre-wrap; }
@media (max-width: 560px) { .review dl { grid-template-columns: 1fr; } .review dd { margin-bottom: 6px; } }

.form { display: grid; gap: 16px; max-width: 680px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.form label { display: grid; gap: 4px; font-weight: 700; font-size: 0.95rem; }
.form input[type="text"], .form input[type="url"], .form textarea, .report input[type="text"] {
  width: 100%; font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text);
}
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0; display: grid; gap: 10px; }
.form legend { font-weight: 700; padding: 0 4px; }
.radio-row, .check-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.radio-row label, .check-row label, .agree { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.agree { align-items: flex-start; }
.or { margin: 0; color: var(--muted); font-size: 0.9rem; }
.error { color: var(--error); font-weight: 700; }
.notice { background: var(--surface); border: 1px dashed var(--line); border-radius: 10px; padding: 12px 16px; }
.report { display: flex; gap: 8px; margin-top: 24px; max-width: 560px; }
.report input { padding: 6px 10px !important; font-size: 0.85rem; }

.profile { display: flex; gap: 20px; align-items: flex-start; }
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; flex: none; }
.avatar.blank { display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 2rem; font-weight: 800; }
.profile h1 { margin: 0; }
.profile p { margin: 4px 0; }
.plain { list-style: none; padding: 0; }
.plain li { padding: 6px 0; border-bottom: 1px solid var(--line); }

.narrow { max-width: 720px; }
.prose h2 { margin-top: 28px; font-size: 1.2rem; }
.dev { margin-top: 24px; max-width: 360px; }
.table { width: 100%; border-collapse: collapse; }
.table td { padding: 8px; border-bottom: 1px solid var(--line); }

.site-footer { margin-top: 24px; padding: 48px 0 20px; font-size: 0.92rem; color: rgba(255, 255, 255, 0.78); background: var(--ink); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 320px; }
.footer-brand .logo { color: #fff; }
.footer-brand p { margin: 12px 0 0; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-cols h4 { margin: 0 0 10px; color: #fff; font-size: 0.9rem; letter-spacing: 0.08em; }
.footer-cols a { display: block; padding: 3px 0; color: rgba(255, 255, 255, 0.72); }
.footer-cols a:hover { color: #fff; }
.footer-copy { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

/* スマホ */
@media (max-width: 640px) {
  .site-header { position: static; }
  .header-inner { min-height: 0; padding-top: 8px; padding-bottom: 8px; row-gap: 6px; }
  .logo { font-size: 1.15rem; }
  .logo-mark { width: 30px; height: 30px; }
  .nav { gap: 10px; font-size: 0.85rem; width: 100%; }
  .nav .me { margin-left: auto; }
  .hero { padding: 40px 0 72px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .hero-lead { font-size: 0.95rem; }
  .hero-art { max-width: 340px; margin: 8px auto 0; }
  .btn-hero, .btn-ghost { padding: 12px 22px; font-size: 1rem; }
  .steps { grid-template-columns: 1fr; }
  .points-card { padding: 28px 22px; }
  .points-art { flex-direction: row; flex-wrap: wrap; }
  .points-art .pt:nth-child(n) { margin-left: 0; }
  .cta-band { padding: 40px 18px; }
  .footer-cols { gap: 32px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 8px 10px 10px; }
  .card-body h3 { font-size: 0.92rem; }
  .summary { font-size: 0.78rem; }
  .meta { font-size: 0.72rem; }

  section { margin-top: 32px; }
  .report { flex-direction: column; }
}

/* ジャム */
.jam-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; background: var(--accent); color: #fff; border-radius: var(--radius); padding: 12px 16px; margin-top: 8px; }
.jam-banner:hover { text-decoration: none; filter: brightness(1.05); }
.jam-banner .jam-phase { background: #fff; color: var(--accent); }
.jam-phase { display: inline-block; background: var(--accent); color: #fff; border-radius: 99px; padding: 0 10px; font-size: 0.8rem; font-weight: 700; margin: 0; }
.jam-head h1 { margin: 8px 0 12px; }
.jam-theme { display: flex; align-items: baseline; gap: 12px; background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 16px; }
.jam-theme strong { font-size: 1.4rem; }
.jam-schedule { max-width: 480px; margin-bottom: 16px; }
.jam-tag { border-color: var(--accent); color: var(--accent); }
.jam-join { background: var(--bg); border: 1px dashed var(--accent); border-radius: 10px; padding: 10px 12px; }
.ranking { padding-left: 1.4em; }
.ranking li { padding: 4px 0; }

/* 記事 */
.article-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.article-list a { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: var(--text); }
.article-list a:hover { text-decoration: none; border-color: var(--primary); }
.article { max-width: 760px; }
.crumbs { margin: 0 0 8px; color: var(--muted); }
.article-body h2 { margin-top: 36px; padding-bottom: 6px; border-bottom: 2px solid var(--line); font-size: 1.3rem; }
.article-body h3 { margin-top: 24px; font-size: 1.1rem; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.article-body th { background: var(--surface); }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.article-body figure { margin: 20px 0; }
.article-body figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }
.article-body .point { background: var(--surface); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 8px; }
.article-cta { margin-top: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.form input[type="email"] { width: 100%; font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); }
.table-wrap table { min-width: 760px; }
.article-body td:first-child { white-space: nowrap; }

/* 内側のページ */
.main > h1, .main > .narrow > h1, .main > article > h1, .game h1, .jam-head h1 { font-weight: 900; font-size: clamp(1.6rem, 3.6vw, 2.1rem); line-height: 1.35; }
.main > h1::after, .narrow > h1::after, .article > h1::after { content: ""; display: block; width: 56px; height: 5px; border-radius: 3px; margin-top: 10px; background: var(--grad); }
.prose h2 { padding-left: 12px; border-left: 5px solid var(--primary); }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px 28px 24px; box-shadow: var(--shadow); }
.tab { transition: background 0.15s; font-weight: 700; }
.tab.on { background: var(--grad); color: #fff; border-color: transparent; }
.review, .form, .player-link, .notice, .article-cta, .article-list a { box-shadow: var(--shadow); }
.article-list a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.player { box-shadow: var(--shadow-lg); }
.muted.empty { padding: 32px; text-align: center; border: 2px dashed var(--line); border-radius: 18px; }
@media (max-width: 640px) { .prose { padding: 4px 18px 18px; } }

/* Codex の画像素材 */
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.35)); animation: float 7s ease-in-out infinite; }
.step-img { width: 120px; height: 120px; margin: -6px auto 0; filter: drop-shadow(0 14px 18px rgba(255, 94, 126, 0.28)); transition: transform 0.25s; }
.steps li:hover .step-img { transform: translateY(-4px) scale(1.05); }
.first-img { width: min(380px, 80%); height: auto; margin: 0 auto 8px; filter: drop-shadow(0 18px 24px rgba(120, 60, 20, 0.18)); }
.cta-band { background: url("/img/site/cta.webp") center / cover no-repeat, radial-gradient(600px 300px at 15% 0%, rgba(255, 255, 255, 0.16), transparent 70%), var(--ink); position: relative; overflow: hidden; }
@media (max-width: 640px) {
  .cta-band { background-size: 220% auto, auto, auto; background-position: center top, 0 0, 0 0; }
  .step-img { width: 104px; height: 104px; }
}
@media (prefers-reduced-motion: reduce) { .hero-art img { animation: none; } }
@media (min-width: 900px) { .hero-art { margin: -24px -28px -24px 0; } }

/* 記事の図: 本文幅を広げ、狭い画面では横にスクロールして読めるようにする */
.article { max-width: 860px; }
.article-body figure { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; }
.article-body figure img { width: 100%; min-width: 720px; border-radius: 14px; box-shadow: var(--shadow); }
@media (max-width: 760px) { .article-body figure::after { content: "図は横にスクロールできます"; display: block; margin-top: 4px; font-size: 0.78rem; color: var(--muted); } }

/* スマホ: 指で押しやすい大きさ、入力時に画面が拡大されない文字サイズ */
@media (max-width: 640px) {
  .nav { gap: 2px 14px; }
  .nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; }
  .nav .me { min-height: 44px; }
  .btn-sm { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; }
  .form input[type="text"], .form input[type="url"], .form input[type="email"], .form textarea, .form select, .report input[type="text"] { font-size: 16px; }
  .tab { padding: 10px 18px; }
  .footer-cols a { padding: 9px 0; }
  .article-list a, .article-cta a { min-height: 44px; }
  .btn { min-height: 44px; }
}
a, button { -webkit-tap-highlight-color: rgba(255, 94, 126, 0.18); }

/* スマホのヘッダー: 1段目にロゴと主ボタン、2段目にメニューとユーザー */
@media (max-width: 640px) {
  .header-inner { row-gap: 0; padding-top: 6px; padding-bottom: 2px; align-items: center; }
  .nav { display: contents; }
  .logo { order: 1; flex: 1 1 62%; }
  .nav .btn { order: 2; margin-left: auto; }
  .nav a:not(.btn):not(.me) { order: 3; margin-right: 14px; font-size: 0.9rem; }
  .nav .me { order: 4; margin-left: auto; font-size: 0.88rem; }
  .header-inner::after { content: none; }
}
@media (max-width: 640px) {
  .header-inner { justify-content: flex-start; }
  .nav a:not(.btn):not(.me) { margin-right: 10px; font-size: 0.86rem; }
  .nav .me { font-size: 0.82rem; gap: 4px; }
}
@media (max-width: 640px) {
  .me-name { max-width: 6em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 400px) { .me-name { display: none; } .nav .me .pt { padding: 4px 12px; } }
.thumb-blank { padding-top: 34px; }
@media (max-width: 640px) {
  .thumb-blank { font-size: 1rem; padding: 34px 10px 10px; line-height: 1.3; }
  .badge { left: 6px; top: 6px; font-size: 0.7rem; padding: 1px 8px; }
}

/* 選択肢（ラジオ・チェック）を指で押しやすく */
.form input[type="radio"], .form input[type="checkbox"] { width: 22px; height: 22px; flex: none; accent-color: var(--primary); }
.radio-row label, .check-row label, .agree { min-height: 44px; padding-right: 6px; }
@media (max-width: 640px) {
  .radio-row, .check-row { gap: 0 14px; }
  .form legend { font-size: 0.95rem; padding: 0 6px; }
  .form { padding: 16px; }
}
@media (max-width: 640px) { .logo { min-height: 44px; } .footer-brand .logo { min-height: 0; } }

/* 見出しの折り返しを整える（1文字だけ残らないように） */
h1, h2, h3, .hero-lead, .cta-band p, .points-card p, .first-card p { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* ジャムのページ */
.jam-head { position: relative; overflow: hidden; color: #fff; padding: 32px 28px 28px; border-radius: 26px; background: radial-gradient(520px 260px at 100% 0%, rgba(255, 94, 126, 0.45), transparent 70%), radial-gradient(420px 240px at 0% 100%, rgba(143, 91, 255, 0.5), transparent 70%), var(--ink); box-shadow: var(--shadow-lg); }
.jam-head h1 { margin: 10px 0 16px; color: #fff; }
.jam-head h1::after { display: none; }
.jam-head p { color: rgba(255, 255, 255, 0.9); }
.jam-head .jam-phase { background: #fff; color: var(--ink); font-weight: 900; padding: 2px 14px; }
.jam-head .jam-theme { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); }
.jam-head .jam-theme .muted { color: rgba(255, 255, 255, 0.75); }
.jam-head .jam-theme strong { color: #fff; font-size: 1.5rem; }
.jam-head .table td { border-bottom-color: rgba(255, 255, 255, 0.2); color: #fff; }
.jam-head .btn-primary { margin-top: 8px; }
.jam-banner { background: linear-gradient(110deg, #2bb3a3, #2a8fd0 55%, #6a5bff); box-shadow: var(--shadow); border-radius: 18px; padding: 14px 20px; }
@media (max-width: 640px) { .jam-head { padding: 24px 18px 20px; border-radius: 20px; } .jam-head .jam-theme strong { font-size: 1.25rem; } }
@media (max-width: 640px) { .jam-head h1 { font-size: 1.35rem; } .jam-schedule td:first-child { font-size: 0.88rem; } }

.report .btn { white-space: nowrap; flex: none; padding: 6px 18px; font-size: 0.85rem; min-height: 0; }
.report input { flex: 1; min-width: 0; }
.few-note { margin-top: 14px; font-size: 0.9rem; }

/* 作品ページ */
.game-head h1 { margin: 0 0 6px; }
.game-head .meta { margin: 0 0 18px; }
.game-head .by { font-weight: 700; }
.game-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stage { position: relative; border-radius: 20px; overflow: hidden; background: #0f0a26; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 9; }
.stage-view { position: absolute; inset: 0; }
.stage-img { width: 100%; height: 100%; object-fit: cover; }
.stage-blank { width: 100%; height: 100%; display: flex; justify-content: center; padding-top: 7%; background: radial-gradient(600px 300px at 80% 0%, rgba(255, 94, 126, 0.55), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(143, 91, 255, 0.6), transparent 70%), var(--ink); }
.stage-blank img { width: min(34%, 190px); height: auto; align-self: flex-start; filter: drop-shadow(0 12px 18px rgba(0,0,0,.4)); }
.play-big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 12px; padding: 16px 34px; border: 0; border-radius: 99px; background: var(--grad); color: #fff; font: inherit; font-weight: 900; font-size: 1.2rem; cursor: pointer; box-shadow: 0 14px 34px -8px rgba(255, 94, 126, 0.85); transition: transform 0.15s; min-height: 56px; }
.play-big:hover { transform: translate(-50%, -52%) scale(1.04); }
.play-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); font-size: 0.85rem; padding-left: 2px; }
.stage.playing { aspect-ratio: 16 / 10; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.shots { list-style: none; display: flex; gap: 10px; padding: 0; margin: 12px 0 0; overflow-x: auto; }
.shot { padding: 0; border: 3px solid transparent; border-radius: 12px; overflow: hidden; background: none; cursor: pointer; opacity: 0.75; }
.shot.on, .shot:hover { border-color: var(--primary); opacity: 1; }
.shot img { width: 120px; height: 68px; object-fit: cover; }
.game-info { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); }
.game-info .summary-lg { margin: 0 0 12px; font-size: 1.15rem; line-height: 1.6; }
.score-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.big-score { font-size: 1.7rem; font-weight: 900; color: var(--star); }
.info-actions { display: flex; flex-direction: column; gap: 10px; }
.info-actions .btn { text-align: center; }
.share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.share-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--text); font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.share-btn:hover { border-color: var(--primary); text-decoration: none; }
.owner-bar { margin: 14px 0 0; }
.about-game { margin-top: 36px; }
.about-game h2 { padding-left: 12px; border-left: 5px solid var(--primary); }
.edit-shots { display: flex; flex-wrap: wrap; gap: 14px; }
.edit-shot { display: grid; gap: 6px; font-weight: 400; }
.edit-shot img { width: 160px; height: 90px; object-fit: cover; border-radius: 10px; }
.check-inline { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }
.crumbs a { color: var(--muted); }
@media (max-width: 860px) {
  .game-grid { grid-template-columns: 1fr; gap: 18px; }
  .play-big { padding: 14px 26px; font-size: 1.05rem; }
  .game-info { padding: 18px; }
  .shot img { width: 96px; height: 54px; }
}
.play-big { white-space: nowrap; width: max-content; max-width: 90%; }
@media (max-width: 860px) { .play-big { padding: 10px 22px; min-height: 48px; font-size: 1rem; gap: 8px; } .play-icon { width: 26px; height: 26px; } }

/* ゲストの感想、削除 */
.guest-name { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.guest-badge { background: var(--line); color: var(--muted); border-radius: 99px; padding: 0 8px; font-size: 0.7rem; font-weight: 700; }
.danger-zone { margin-top: 48px; padding: 20px; border: 1px solid #e8b4b4; border-radius: 16px; background: color-mix(in srgb, #c62828 6%, var(--surface)); }
.danger-zone h2 { margin: 0 0 6px; font-size: 1.05rem; }
.btn-danger { background: #c62828; border-color: #c62828; color: #fff; }

/* 画像は枠に全体を収め、余白にはその画像をぼかした背景を敷く（縦長のスマホ画面でも見切れない） */
.stage-view::before, .thumb.has-img::before { content: ""; position: absolute; inset: -24px; background: var(--bg) center / cover no-repeat; filter: blur(22px) saturate(1.25); opacity: 0.8; }
.stage-img, .thumb.has-img img { position: relative; object-fit: contain; }
.thumb.has-img { background: #0f0a26; }
.thumb.has-img img { transform: none; }
.card:hover .thumb.has-img img { transform: scale(1.02); }
.play-big { top: auto; bottom: 18px; transform: translateX(-50%); box-shadow: 0 10px 26px -6px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(255, 255, 255, 0.35); }
.play-big:hover { transform: translateX(-50%) scale(1.05); }
.stage-blank + .play-big, .stage-view:not(:has(.stage-img)) .play-big { bottom: 14%; }

/* 遊んでいる間の枠。スマホでは縦に大きく */
.fs-btn { position: absolute; right: 10px; top: 10px; z-index: 2; min-height: 40px; padding: 0 16px; border: 0; border-radius: 99px; background: rgba(15, 10, 38, 0.78); color: #fff; font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; backdrop-filter: blur(4px); }
.fs-btn:hover { background: rgba(15, 10, 38, 0.92); }
@media (max-width: 860px) { .stage.playing { aspect-ratio: auto; height: min(80vh, 680px); } }
.fs-btn { top: auto; bottom: 10px; right: 10px; }
.tab-note { margin: -4px 0 16px; }

.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.review .admin-actions { margin-top: 6px; }

/* 検索・絞り込み */
.search { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.search input[type="search"] { flex: 1 1 220px; min-width: 0; font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--text); }
.tool-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.tool-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--text); font-size: 0.85rem; font-weight: 700; }
.tool-chip:hover { text-decoration: none; border-color: var(--primary); }
.tool-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
a.tag { color: inherit; }
a.tag:hover { text-decoration: none; border-color: var(--primary); }
.tag-pick { background: var(--grad); color: #fff; border-color: transparent; font-weight: 700; }
.badge-pick { background: var(--grad); }
.badge-right { left: auto; right: 8px; }

/* トップ: 投稿すると、最近の感想 */
.perks-sec { margin-top: 56px; }
.perks { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0; margin: 0; }
.perks li { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; box-shadow: var(--shadow); border-top: 4px solid var(--primary); }
.perks li:nth-child(2) { border-top-color: var(--accent); }
.perks li:nth-child(3) { border-top-color: #8f5bff; }
.perks li:nth-child(4) { border-top-color: var(--star); }
.perks h3 { margin: 0 0 8px; font-size: 1.05rem; }
.perks p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.perks-cta { text-align: center; margin: 24px 0 0; }
.recent-sec { margin-top: 48px; }
.recent { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; padding: 0; margin: 0; }
.recent a { display: grid; gap: 6px; height: 100%; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); color: var(--text); transition: transform 0.15s; }
.recent a:hover { text-decoration: none; transform: translateY(-2px); }
.recent .stars { font-size: 0.95rem; }
.recent-text { font-weight: 500; line-height: 1.6; }
.recent-meta { color: var(--muted); font-size: 0.82rem; }
.my-stats { margin-top: 24px; }
@media (max-width: 860px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } .search .btn { flex: 1; text-align: center; justify-content: center; } }
@media (max-width: 640px) {
  .tool-filter { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tool-filter::-webkit-scrollbar { display: none; }
  .tool-filter > * { flex: none; white-space: nowrap; }
  .tabs { margin-bottom: 10px; }
}

.stats-table { width: 100%; }
.stats-table th { text-align: left; font-size: 0.8rem; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.stats-table td { vertical-align: top; }
.stats-table td:not(:first-child) { white-space: nowrap; }
.stats-sub { display: block; margin-top: 2px; }

/* ランキング */
.rk-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: #fff; padding: 28px 36px; border-radius: 28px; background: radial-gradient(520px 260px at 100% 0%, rgba(255, 94, 126, 0.5), transparent 70%), radial-gradient(420px 240px at 0% 100%, rgba(143, 91, 255, 0.55), transparent 70%), var(--ink); box-shadow: var(--shadow-lg); }
.rk-hero h1 { margin: 4px 0 8px; font-size: clamp(1.7rem, 4vw, 2.6rem); color: #fff; }
.rk-hero h1::after { display: none; }
.rk-hero p { margin: 0; color: rgba(255, 255, 255, 0.88); max-width: 460px; }
.rk-hero .eyebrow { color: #ffd166; }
.rk-hero-img { width: min(300px, 38%); height: auto; filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.4)); animation: float 7s ease-in-out infinite; }
.rk-tabs { margin-top: 22px; }
.rk-period { margin-top: -6px; }
.podium { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; padding: 0; margin: 28px 0 24px; }
.podium-1 { grid-template-columns: minmax(0, 360px); justify-content: center; }
.podium-2 { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; }
.podium-item { position: relative; }
.podium-item.rank-1 { order: 2; }
.podium-item.rank-2 { order: 1; }
.podium-item.rank-3 { order: 3; }
.podium-card { position: relative; display: block; background: var(--surface); border: 2px solid var(--line); border-radius: 24px; padding: 14px 14px 18px; color: var(--text); box-shadow: var(--shadow); transition: transform 0.18s, box-shadow 0.18s; }
.podium-card:hover { text-decoration: none; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.rank-1 .podium-card { padding-bottom: 28px; border-color: #f5b83d; background: linear-gradient(180deg, color-mix(in srgb, #f5b83d 14%, var(--surface)), var(--surface) 55%); box-shadow: 0 18px 44px -12px rgba(245, 184, 61, 0.55); }
.rank-2 .podium-card { border-color: #b8c0cc; background: linear-gradient(180deg, color-mix(in srgb, #b8c0cc 16%, var(--surface)), var(--surface) 55%); }
.rank-3 .podium-card { border-color: #d18f56; background: linear-gradient(180deg, color-mix(in srgb, #d18f56 14%, var(--surface)), var(--surface) 55%); }
.medal { position: absolute; left: 50%; top: -34px; z-index: 2; width: 84px; height: 84px; transform: translateX(-50%); filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3)); }
.rank-1 .medal { width: 104px; height: 104px; top: -46px; }
.rk-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; margin-top: 36px; background: #0f0a26; }
.rank-1 .rk-thumb { margin-top: 48px; }
.rk-thumb img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.rk-thumb.has-img::before { content: ""; position: absolute; inset: -24px; background: var(--bg) center / cover no-repeat; filter: blur(22px) saturate(1.25); opacity: 0.8; }
.rk-thumb .thumb-blank { font-size: 1rem; padding-top: 14px; }
.podium-body { text-align: center; padding: 14px 6px 0; }
.podium-body h3 { margin: 2px 0 2px; font-size: 1.15rem; word-break: break-word; }
.rank-1 .podium-body h3 { font-size: 1.3rem; }
.rk-rank { margin: 0; font-weight: 900; letter-spacing: 0.12em; font-size: 0.85rem; color: var(--muted); }
.rank-1 .rk-rank { color: #c98a0a; }
.rk-by { margin: 0; color: var(--muted); font-size: 0.88rem; }
.rk-stat { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; margin: 8px 0 0; font-size: 0.85rem; color: var(--muted); }
.rk-main { font-size: 1.2rem; color: var(--text); }
.rank-1 .rk-main { font-size: 1.45rem; background: linear-gradient(100deg, #f5a623, #ff5e7e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rk-list { list-style: none; display: grid; gap: 10px; padding: 0; margin: 8px 0 0; }
.rk-row { display: grid; grid-template-columns: 44px 112px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 16px 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; color: var(--text); box-shadow: var(--shadow); transition: transform 0.15s; }
.rk-row:hover { text-decoration: none; transform: translateX(3px); border-color: var(--primary); }
.rk-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); font-weight: 900; }
.rk-thumb-sm { margin-top: 0; border-radius: 12px; }
.rk-info { display: grid; gap: 2px; min-width: 0; }
.rk-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-row .rk-stat { margin: 0; justify-content: flex-end; flex-wrap: nowrap; white-space: nowrap; }
.rk-row .rk-main { font-size: 1.05rem; }
.rk-row-person { grid-template-columns: 44px 44px minmax(0, 1fr) auto; }
.person-avatar { display: inline-grid; place-items: center; width: 84px; height: 84px; margin: 36px auto 0; border-radius: 50%; background: var(--grad); color: #fff; font-size: 2rem; font-weight: 900; box-shadow: 0 10px 22px -8px rgba(255, 94, 126, 0.7); }
.person-avatar.sm { width: 40px; height: 40px; margin: 0; font-size: 1.1rem; }
.podium-card.person { text-align: center; }
.rank-1 .podium-card.person .person-avatar { margin-top: 48px; width: 96px; height: 96px; }
.rk-empty { margin-top: 24px; }
@media (max-width: 760px) {
  .rk-hero { padding: 22px 20px; border-radius: 22px; }
  .rk-hero-img { width: 34%; }
  .podium { grid-template-columns: 1fr; gap: 40px; margin-top: 44px; }
  .podium-item.rank-1, .podium-item.rank-2, .podium-item.rank-3 { order: 0; }
  .rk-row { grid-template-columns: 34px 84px minmax(0, 1fr); gap: 10px; }
  .rk-row .rk-stat { grid-column: 3; justify-content: flex-start; flex-wrap: wrap; }
  .rk-num { width: 32px; height: 32px; font-size: 0.9rem; }
  .rk-row-person { grid-template-columns: 34px 40px minmax(0, 1fr); }
  .rk-row-person .rk-stat { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .rk-hero-img { animation: none; } }
@media (max-width: 760px) {
  .nav a[href="/about"] { display: none; }
  .rk-hero { flex-direction: column-reverse; text-align: center; gap: 4px; padding: 18px 18px 22px; }
  .rk-hero-img { width: 150px; }
  .rk-hero h1 { font-size: 1.6rem; }
}

/* 管理画面 */
.adm-title { margin-bottom: 8px; }
.adm-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.adm-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--text); font-weight: 700; font-size: 0.92rem; }
.adm-tab:hover { text-decoration: none; border-color: var(--primary); }
.adm-tab.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.adm-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: #e5384f; color: #fff; font-size: 0.75rem; font-weight: 900; }
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 8px; }
.adm-tile { display: grid; gap: 2px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); color: var(--text); }
a.adm-tile:hover { text-decoration: none; border-color: var(--primary); }
.adm-tile.alert { border-color: #e5384f; background: color-mix(in srgb, #e5384f 8%, var(--surface)); }
.adm-tile-value { font-size: 1.7rem; font-weight: 900; line-height: 1.2; }
.adm-tile.alert .adm-tile-value { color: #e5384f; }
.adm-tile-label { font-size: 0.82rem; color: var(--muted); }
.adm-sec { margin-top: 30px; }
.adm-sec h2 { font-size: 1.15rem; }
.adm-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--text); }
.adm-line:hover { text-decoration: none; border-color: var(--primary); }
.adm-line > span:nth-child(2) { flex: 1 1 240px; min-width: 0; }
.adm-filter { display: flex; gap: 8px; margin-bottom: 16px; }
.adm-item { padding: 16px 18px; margin-bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--primary); border-radius: 14px; box-shadow: var(--shadow); }
.adm-item.done { border-left-color: var(--line); opacity: 0.8; }
.adm-item header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.adm-item .desc { margin: 4px 0; word-break: break-word; }
.adm-item .admin-actions { margin-top: 12px; }
.chip { display: inline-block; padding: 0 10px; border-radius: 99px; background: var(--line); color: var(--text); font-size: 0.75rem; font-weight: 700; }
.chip-ok { background: color-mix(in srgb, var(--accent) 25%, var(--surface)); color: var(--text); }
.nav-admin { font-weight: 700; color: var(--primary) !important; }
.adm-form { margin-top: 28px; max-width: 680px; }
@media (max-width: 640px) { .adm-tab { padding: 0 12px; min-height: 44px; } .adm-item { padding: 14px; } }

@media (max-width: 640px) { .nav:has(.nav-admin) .nav-articles { display: none; } }

/* いいね、作者の返信、投稿直後の案内 */
.like-row { margin: 0 0 14px; }
.like-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 2px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; transition: transform 0.12s, border-color 0.12s, background 0.12s; }
.like-btn:hover { border-color: #ff5e7e; }
.like-btn:active { transform: scale(0.96); }
.like-heart { color: var(--muted); font-size: 1.15rem; transition: color 0.12s, transform 0.2s; }
.like-btn.on { border-color: #ff5e7e; background: color-mix(in srgb, #ff5e7e 12%, var(--bg)); }
.like-btn.on .like-heart { color: #ff3d6e; transform: scale(1.18); }
.like-label { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.like-btn.static { cursor: default; border-style: dashed; color: var(--muted); }
.reply { margin-top: 12px; padding: 10px 14px; border-left: 4px solid var(--primary); background: color-mix(in srgb, var(--primary) 7%, var(--surface)); border-radius: 0 12px 12px 0; }
.reply p { margin: 0; white-space: pre-wrap; }
.reply-head { font-size: 0.78rem; font-weight: 800; color: var(--primary); margin-bottom: 2px !important; }
.reply-form { margin-top: 10px; }
.reply-form summary { cursor: pointer; font-size: 0.88rem; font-weight: 700; color: var(--primary); min-height: 32px; display: flex; align-items: center; }
.reply-form textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); margin: 8px 0; }
.owner-panel { margin-bottom: 22px; padding: 18px 20px; border: 1px dashed var(--line); border-radius: 18px; background: var(--surface); }
.owner-panel.posted { border: 2px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; box-shadow: var(--shadow); }
.owner-panel h2 { margin: 0 0 4px; font-size: 1.25rem; }
.owner-panel p { margin: 0 0 12px; }
.owner-share { display: flex; flex-wrap: wrap; gap: 10px; }
.owner-tips { margin-top: 14px; }
.owner-panel.posted .owner-tips { border-top: 1px solid var(--line); padding-top: 14px; }
.owner-tips h3 { margin: 0 0 6px; font-size: 1rem; }
.owner-tips ul { margin: 0 0 10px; padding-left: 1.3em; }

/* ガイド（記事）への入口 */
.guide-sec { margin-top: 48px; }
.guide-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; padding: 0; margin: 0; }
.guide-cards a { display: grid; gap: 6px; height: 100%; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); color: var(--text); transition: transform 0.15s; }
.guide-cards a:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--primary); }
.preview-note { border-style: solid; border-color: var(--primary); }

.article pre { background: #f6f3ea; border-radius: 8px; padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; font-size: 0.95em; line-height: 1.7; }
.article pre code { font-family: inherit; }

.more-filter { margin: 0 0 10px; }
.more-filter summary { cursor: pointer; font-size: 0.85rem; font-weight: 700; color: var(--muted, #6b6b78); padding: 6px 0; }
.mood-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.ai-parts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; }

.update-note { margin: 8px 0 0; padding: 8px 12px; background: var(--surface, #fff); border: 1px solid var(--line, #e6e0d4); border-radius: 10px; }
[data-later].on { border-color: var(--primary, #ff7a3d); }

@media (max-width: 640px) {
  .tabs { gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs .tab { padding: 6px 12px; font-size: 0.9rem; flex: none; white-space: nowrap; }
  .search .btn { flex: 1 1 auto; text-align: center; }
  .more-filter summary { font-size: 0.82rem; }
}

@media (max-width: 640px) {
  .badge { font-size: 0.78rem; }
  .tag, .by, .card .meta span { font-size: 0.8rem; }
  .sec-head a, .sec-more a, .head-link { display: inline-block; padding: 8px 4px; min-height: 40px; }
}
@media (max-width: 760px) {
  .table-wrap::after { content: "表は横にスクロールできます"; display: block; position: sticky; left: 0; margin-top: 4px; font-size: 0.78rem; color: var(--muted); }
}

.records { margin: 28px 0; }
.record-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.record-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 14px; background: var(--surface, #fff); border: 1px solid var(--line, #e6e0d4); border-radius: 12px; }
.rec-rank { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 800; font-size: 0.85rem; }
.record-list li:nth-child(1) .rec-rank { background: #e8b923; color: #fff; }
.rec-val { margin-left: auto; font-size: 1.05rem; }
.rec-note { flex-basis: 100%; padding-left: 40px; }
.record-list form { margin: 0; }
.record-form { margin-top: 12px; }

.record-banner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 10px 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line, #e6e0d4); background: var(--surface, #fff); color: var(--text); text-decoration: none; }
.record-banner strong { font-size: 1.15rem; }
.record-banner .rec-go { margin-left: auto; color: var(--primary, #ff7a3d); font-weight: 700; }
.record-cta { margin: 10px 0 0; font-weight: 700; }
.card-record { margin: 4px 0 0; }
.my-record-list { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.my-record-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }

.record-live { margin: 10px 0; padding: 12px 14px; border-radius: 12px; background: var(--surface, #fff); border: 2px solid var(--primary, #ff7a3d); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.record-live p { margin: 0; font-weight: 700; }
.record-howto { margin: 6px 0 14px; }
.record-howto summary { cursor: pointer; font-weight: 700; }
.record-howto pre { overflow-x: auto; }
.record-live[hidden] { display: none; }

.rec-shot { flex-basis: 100%; padding-left: 40px; }
.rec-shot img { display: block; max-width: 220px; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line, #e6e0d4); }
.rec-shot-field { border: 0; padding: 0; margin: 0 0 12px; }
.rec-shot-field legend { font-weight: 700; padding: 0; margin-bottom: 6px; }

.record-capture { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0; }
.record-capture[hidden] { display: none; }
.capture-preview { max-width: 160px; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line, #e6e0d4); }
.capture-preview[hidden] { display: none; }

.cropper { margin: 8px 0; }
.cropper[hidden] { display: none; }
.cropper canvas { display: block; max-width: 100%; max-height: 320px; width: auto; height: auto; border-radius: 8px; border: 1px solid var(--line, #e6e0d4); margin-bottom: 8px; }
.cropper label { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.cropper input[type=range] { flex: 1; }
.rec-shot img { width: auto; max-width: 220px; max-height: 220px; object-fit: contain; }

/* 作品ページ: 右の情報の枠を、左のゲーム画面と高さがつり合うように詰める */
.info-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.info-actions .btn { padding: 9px 10px; font-size: 0.9rem; }
.info-actions .btn-primary { grid-column: 1 / -1; padding: 12px 14px; font-size: 1rem; }
.game-info .like-row { margin: 8px 0; }
.game-info .record-banner { margin: 8px 0; padding: 8px 12px; }
.game-info .summary-lg { font-size: 1.05rem; margin-bottom: 8px; }

/* 最高記録: 横いっぱいの白い枠をやめ、カードを並べる */
.record-list { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-items: start; }
.record-list li { align-content: start; }
.rec-shot { padding-left: 0; }
.rec-note { padding-left: 0; }
@media (max-width: 640px) {
  .info-actions .btn { font-size: 0.85rem; }
  .record-list { grid-template-columns: 1fr; }
}

.info-actions .btn { min-height: 38px; padding: 6px 8px; line-height: 1.3; }
.info-actions .btn-primary { min-height: 44px; }
.game-info { padding: 18px; }
.game-info .record-banner { gap: 2px 8px; padding: 6px 12px; }
.game-info .record-banner strong { font-size: 1.05rem; }
.game-info .record-banner .rec-go { margin-left: 0; flex-basis: 100%; font-size: 0.8rem; }
.game-info > .muted.small { margin: 6px 0; font-size: 0.78rem; line-height: 1.5; }
.sec-note { margin: -6px 0 12px; }

.stat-strip { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 18px; padding: 0; }
.stat-strip li { display: flex; flex-direction: column; align-items: center; padding: 12px 8px; background: var(--surface, #fff); border: 1px solid var(--line, #e6e0d4); border-radius: 14px; }
.stat-strip strong { font-size: 1.5rem; line-height: 1.2; }
.stat-strip span { font-size: 0.8rem; color: var(--muted, #6b6b78); }
.phrase-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -6px 0 6px; }
.phrase-row .tool-chip { min-height: 32px; padding: 0 10px; font-size: 0.8rem; cursor: pointer; font-family: inherit; }
.review-cta { margin: 8px 0 0; font-weight: 700; }
.check-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 4px; }
.check-list .done { color: var(--muted, #6b6b78); }
.check-list .todo { font-weight: 700; }
.submit-tips { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--line, #e6e0d4); }
.submit-tips h2 { margin: 0 0 6px; font-size: 1rem; }
.submit-tips ol { margin: 0 0 6px; padding-left: 20px; }
.pending-replies { margin: 18px 0; padding: 14px 16px; border-radius: 14px; border: 2px solid var(--primary, #ff7a3d); background: var(--surface, #fff); }
.pending-replies h2 { margin: 0 0 4px; font-size: 1.05rem; }
.pending-replies ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
@media (max-width: 640px) { .stat-strip strong { font-size: 1.25rem; } }

/* 全画面で遊ぶ（できない端末では画面いっぱいに広げる） */
.player { position: relative; }
.fs-fake { position: fixed !important; inset: 0 !important; z-index: 9999; width: 100vw !important; height: 100vh !important; height: 100dvh !important; margin: 0 !important; aspect-ratio: auto !important; border-radius: 0 !important; box-shadow: none !important; background: #000; }
.fs-fake iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.fs-close { position: absolute; right: 10px; top: 10px; z-index: 3; min-height: 44px; padding: 0 16px; border: 0; border-radius: 99px; background: rgba(15, 10, 38, 0.82); color: #fff; font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
html.fs-lock, html.fs-lock body { overflow: hidden; }
.player .fs-btn { top: auto; bottom: 10px; }

.stat-note { margin: -6px 0 14px; text-align: center; }

.rec-nick { min-height: 36px; margin-right: 8px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; max-width: 100%; }

.article-body table.wrap-first td:first-child { white-space: normal; min-width: 8em; }

.more-articles { margin: 36px 0 8px; }
.more-articles h2 { font-size: 1.1rem; padding-left: 12px; border-left: 5px solid var(--primary); }
.more-articles ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.more-articles a { display: block; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-weight: 700; }

.check-one { display: flex; gap: 8px; align-items: flex-start; line-height: 1.6; }
.check-one input { margin-top: 0.35em; }
.tag-stream { background: #e8f6ee; color: #1d6b3f; border-color: #bfe3cd; font-weight: 700; }
.tab-toggle { margin-left: auto; }
.chip-count { opacity: 0.6; font-size: 0.85em; margin-left: 2px; }
.pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin: 22px 0; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.history li { padding-left: 2px; }

/* アップデート履歴 */
.changelog { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 14px; }
.changelog li { border-left: 3px solid var(--line); padding: 2px 0 2px 14px; }
.cl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cl-ver { font-size: 1.05rem; }
.cl-kind { font-size: .78rem; }
.cl-note { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.cl-edit { margin-left: auto; }
.cl-del { margin: 0; }
.update-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sub-h { margin-top: 32px; }
@media (max-width: 640px) { .update-form .row-2 { grid-template-columns: 1fr; } }

/* トップ：アップデートされた作品 */
.update-cards { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.update-card { display: flex; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; height: 100%; box-sizing: border-box; }
.update-card:hover { border-color: var(--primary, #ff7a3d); }
.uc-thumb { flex: 0 0 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--line); display: grid; place-items: center; font-size: .8rem; font-weight: 700; text-align: center; }
.uc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uc-body { min-width: 0; flex: 1; }
.uc-head { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.uc-title { overflow-wrap: anywhere; }
.uc-ver { font-weight: 700; color: var(--primary, #ff7a3d); }
.uc-note { margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 640px) { .update-cards { grid-template-columns: 1fr; } }

/* まとめページ（/play/...） */
.col-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }
.col-stats { margin: 16px 0; }

/* 作品ページ: 紹介・作品データ・遊んだ人の声 */
.game-intro p { margin: 8px 0; line-height: 1.8; }
.facts { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .94rem; }
.facts th, .facts td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.facts th { width: 9.5em; color: var(--muted, #666); font-weight: 600; white-space: nowrap; }
.voices h3 { font-size: 1rem; margin: 16px 0 6px; }
.voice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 28px; }
.fun-bars, .und-list, .voice-quotes { list-style: none; padding: 0; margin: 0; }
.fun-bars li { display: grid; grid-template-columns: 2.6em 1fr 3em; align-items: center; gap: 8px; font-size: .9rem; margin: 3px 0; }
.fb-bar { display: block; height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.fb-bar span { display: block; height: 100%; background: var(--primary); }
.fb-n { text-align: right; }
.und-list li { margin: 4px 0; }
.voice-quotes li { border-left: 3px solid var(--line); padding: 4px 0 4px 12px; margin: 8px 0; line-height: 1.7; }
@media (max-width: 480px) { .facts th { width: 7.5em; white-space: normal; } }
