
/* ゲームと同じ卓の緑と筆文字。読み物のページは本文を読みやすい幅に */
:root {
  --bg: #0f3a2d; --bg2: #164c3b; --line: #2b6a55; --card: rgba(0,0,0,.2);
  --text: #eef3ec; --muted: #b9d3c7; --gold: #e9c46a; --red: #e0563b;
  --ivory: #f4efe2; --ivory-edge: #cdbf9c; --ink: #1b2422; --sou: #1f7a4a; --man: #b4302a; --pin: #24508f;
  --f-brush: "Yuji Syuku", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --f-tile: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(120% 60% at 50% 0%, var(--bg2) 0%, var(--bg) 70%) fixed, var(--bg); color: var(--text); font-family: var(--f-body); font-weight: 500; line-height: 1.8; }
a { color: var(--gold); }
.wrap { max-width: 760px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
header.site { border-bottom: 1px solid var(--line); background: rgba(0,0,0,.18); }
header.site a.nav-play { background: var(--red); color: #fff; border-radius: 999px; padding: 4px 14px; font-weight: 700; text-decoration: none; box-shadow: 0 2px 0 #8f2d1c; }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding-block: 10px; }
.brand { font-family: var(--f-brush); font-size: 26px; color: var(--gold); text-decoration: none; line-height: 1.2; }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; }
nav.main a { color: var(--text); text-decoration: none; padding: 2px 0; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--gold); }
main { padding-block: 28px 48px; }
h1, h2, h3 { font-family: var(--f-brush); font-weight: 400; line-height: 1.35; text-wrap: balance; }
h1 { font-size: 34px; color: var(--gold); margin: 0 0 12px; }
h2 { font-size: 24px; color: var(--gold); margin: 36px 0 10px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
h3 { font-size: 19px; margin: 22px 0 6px; }
p, li { font-size: 16px; }
.lead { font-size: 17px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: 13px; }
td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl { overflow-x: auto; }
.btn-play { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 34px; border-radius: 999px; background: var(--red); color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; box-shadow: 0 4px 0 #8f2d1c; }
.btn-play:active { transform: translateY(3px); box-shadow: 0 1px 0 #8f2d1c; }
.hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-block: 18px 8px; }
.hero .logo { font-family: var(--f-brush); font-size: clamp(64px, 18vw, 110px); line-height: 1; color: var(--gold); text-shadow: 0 3px 0 #7a5a12; }
.hero .catch { font-family: var(--f-brush); font-size: clamp(18px, 4.6vw, 24px); color: var(--gold); margin: 0; }
.hero .sub { color: var(--muted); font-size: 14px; margin: 0; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
.shots figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.card h3 { margin: 0 0 4px; color: var(--gold); }
.card p { margin: 0; font-size: 15px; }
footer.site { border-top: 1px solid var(--line); padding-block: 18px 28px; font-size: 13px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
footer.site a { color: var(--muted); }
.ad { margin: 24px 0; min-height: 0; }
form.contact { display: grid; gap: 12px; max-width: 520px; }
form.contact label { display: grid; gap: 4px; font-size: 14px; color: var(--muted); }
form.contact input, form.contact textarea { font: inherit; font-size: 16px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0,0,0,.25); color: var(--text); }
form.contact textarea { min-height: 160px; resize: vertical; }
form.contact button { justify-self: start; font: inherit; font-weight: 700; padding: 10px 28px; border-radius: 999px; border: 0; background: var(--red); color: #fff; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* 牌(ゲームと同じ絵柄) */
.tile { --w: 22px; position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: var(--w); height: calc(var(--w) * 1.36); background: linear-gradient(180deg, #fffdf6 0%, var(--ivory) 70%); border-radius: calc(var(--w) * 0.14); box-shadow: 0 calc(var(--w) * 0.09) 0 var(--ivory-edge); color: var(--ink); font-family: var(--f-tile); font-weight: 800; line-height: 1; flex: none; }
.tile .n { font-size: calc(var(--w) * 0.5); line-height: .92; }
.tile .n.ichi { transform: scaleY(1.35); line-height: .7; font-size: calc(var(--w) * 0.58); }
.tile .s.man { color: var(--man); font-size: calc(var(--w) * 0.5); }
.tile .h { font-size: calc(var(--w) * 0.7); }
.tile .hatsu { color: var(--sou); } .tile .chun { color: var(--man); } .tile .wind { color: var(--ink); }
.tile .art { width: 86%; height: 86%; display: block; }
.tile.back { background: linear-gradient(180deg, #f0ac43 0%, #d9932a 80%); box-shadow: 0 calc(var(--w) * 0.09) 0 #a96a12; }
.tile.win { outline: 2px solid var(--red); outline-offset: 1px; }
.tile.yoko { width: calc(var(--w) * 1.36); height: var(--w); }
.tile.yoko .rot { width: var(--w); height: calc(var(--w) * 1.36); display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(-90deg); flex: none; }
.hand { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1px; margin: 6px 0 4px; }
.hand .sp { width: 6px; } .hand .meld { display: inline-flex; align-items: flex-end; gap: 1px; margin-left: 6px; }
.yk { padding: 12px 0; border-bottom: 1px solid var(--line); }
.yk-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.yk-h b { font-family: var(--f-brush); font-weight: 400; font-size: 21px; }
.yk-h .pt { font-variant-numeric: tabular-nums; color: var(--gold); white-space: nowrap; }
.dbl { font-size: 11px; padding: 1px 6px; border-radius: 4px; background: var(--red); color: #fff; margin-left: 6px; vertical-align: 3px; font-family: var(--f-body); }
.yk p { margin: 2px 0; font-size: 15px; }
@media (max-width: 420px) { .tile { --w: 19px; } h1 { font-size: 28px; } }
/* ハブ(ゲームをまとめるサイト) */
.brand-wrap { display: flex; flex-direction: column; line-height: 1.1; }
.brand-wrap .crumb { font-size: 11px; color: var(--muted); text-decoration: none; letter-spacing: .04em; }
.brand-wrap .crumb::before { content: "‹ "; }
.brand-wrap .crumb:hover { color: var(--gold); }
.brand.hub { font-size: 22px; }
.hub-hero { padding-block: 28px 4px; }
.hub-logo { font-family: var(--f-brush); font-size: clamp(38px, 10vw, 60px); line-height: 1.15; color: var(--gold); text-shadow: 0 3px 0 #7a5a12; }
.hub-en { margin: 0; color: var(--muted); letter-spacing: .18em; font-size: 13px; }
.hub-hero .sub { max-width: 34em; margin-top: 8px; font-size: 15px; }
.games { display: grid; gap: 14px; }
.game-card { display: flex; gap: 16px; align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.gc-img { flex: none; width: 110px; }
.gc-img img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); display: block; height: auto; }
.gc-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.gc-body h3 { margin: 0; font-size: 24px; }
.gc-body h3 a { color: var(--gold); text-decoration: none; }
.gc-body h3 small { font-family: var(--f-body); font-size: 12px; color: var(--muted); margin-left: 4px; }
.gc-body p { margin: 0; font-size: 15px; }
.gc-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; padding-top: 4px; }
.btn-play.sm { padding: 9px 22px; font-size: 16px; }
.btn-sub { display: inline-flex; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 15px; }
.btn-sub:hover { border-color: var(--gold); color: var(--gold); }
.game-card.soon { border-style: dashed; background: transparent; }
.game-card.soon h3 { color: var(--muted); font-size: 19px; }
.game-card.soon p { color: var(--muted); font-size: 14px; }
@media (max-width: 420px) { .gc-img { width: 84px; } .gc-body h3 { font-size: 21px; } .game-card { gap: 12px; padding: 12px; } }
/* ハブ: 白基調・普通の文字(ゲームのページは卓の緑のまま) */
body.hub { color-scheme: light; --bg: #f6f6f3; --line: #e4e4de; --card: #ffffff; --text: #1d2125; --muted: #5d646c; --gold: #2b5fd9; --red: #2b5fd9;
  background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif; font-weight: 400; }
body.hub a { color: var(--gold); }
body.hub header.site { background: #fff; }
body.hub .brand { font-family: inherit; font-weight: 700; color: var(--text); font-size: 18px; letter-spacing: .02em; }
body.hub nav.main a { color: var(--text); }
body.hub nav.main a:hover, body.hub nav.main a[aria-current="page"] { border-bottom-color: var(--gold); }
body.hub h1, body.hub h2, body.hub h3 { font-family: inherit; font-weight: 700; color: var(--text); }
body.hub h1 { font-size: 28px; }
body.hub h2 { font-size: 20px; }
body.hub .hub-logo { font-family: inherit; font-weight: 800; color: var(--text); text-shadow: none; font-size: clamp(28px, 7vw, 44px); letter-spacing: .02em; }
body.hub .hub-en { color: var(--muted); }
body.hub .hub-hero .sub { color: var(--muted); }
body.hub .game-card { box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.04); }
body.hub .game-card.soon { box-shadow: none; background: transparent; border-color: #cfcfc8; }
body.hub .gc-body h3 a { color: var(--text); }
body.hub .gc-img img { border-color: var(--line); }
body.hub a.btn-play { background: var(--gold); color: #fff; box-shadow: none; }
body.hub .btn-play:active { transform: none; opacity: .85; box-shadow: none; }
body.hub .btn-sub { color: var(--text); border-color: #cfcfc8; background: #fff; }
body.hub .btn-sub:hover { color: var(--gold); border-color: var(--gold); }
body.hub .news-g { color: var(--gold); border-color: rgba(43,95,217,.45); }
body.hub footer.site { background: #fff; }
body.hub footer.site a { color: var(--muted); }
body.hub form.contact input, body.hub form.contact textarea { background: #fff; color: var(--text); border-color: #cfcfc8; }
body.hub form.contact button { background: var(--gold); }
body.hub th { color: var(--muted); white-space: nowrap; }
body.hub :focus-visible { outline-color: var(--gold); }
.btn-yt { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; }
.btn-yt svg { color: #e62117; }
body.hub a.btn-yt { color: var(--text); background: #fff; border-color: #cfcfc8; }
body.hub a.btn-yt:hover { border-color: #e62117; }
/* お知らせ */
ul.news { list-style: none; padding: 0; margin: 8px 0; }
ul.news li { padding: 12px 0; border-bottom: 1px solid var(--line); }
ul.news li:first-child { padding-top: 4px; }
.news-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.news-g { font-size: 11px; font-weight: 700; padding: 0 8px; border-radius: 999px; border: 1px solid rgba(233,196,106,.6); color: var(--gold); }
ul.news b { display: block; font-size: 16px; margin-top: 2px; }
ul.news p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
