:root {
  --bg: #fbf7ef;
  --paper: #ffffff;
  --ink: #23313a;
  --sub: #5b6b74;
  --line: #ece4d6;
  --accent: #e07a5f;
  --sea: #4fb0d8;
  --green: #8cc56b;
  --radius: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #172026; --paper: #1f2a31; --ink: #ecf1f3; --sub: #a3b3bc; --line: #2c3a43;
  }
}
:root[data-theme="dark"] { --bg: #172026; --paper: #1f2a31; --ink: #ecf1f3; --sub: #a3b3bc; --line: #2c3a43; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Noto Sans JP", system-ui, sans-serif; line-height: 1.85; font-size: 16px;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3, .logo { font-family: "Zen Maru Gothic", "Noto Sans JP", sans-serif; letter-spacing: .02em; }

.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px max(16px, calc((100vw - 1100px) / 2)); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.logo { color: var(--ink); text-decoration: none; font-weight: 900; font-size: 18px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.logo small { font-family: "Noto Sans JP"; font-weight: 700; font-size: 11px; color: var(--sub); letter-spacing: .15em; }
.paw { font-size: 18px; }
nav { display: flex; gap: 4px; }
nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; }
nav a.on, nav a:hover { background: var(--ink); color: var(--bg); }

main { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
section { margin-top: 56px; }
h2 { font-size: 26px; margin: 0 0 18px; }
h1.page { font-size: 34px; margin: 8px 0 20px; }

.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; margin-top: 40px; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .1em; margin: 0; font-size: 14px; }
.hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.2; margin: 8px 0 16px; font-weight: 900; }
.hl { white-space: nowrap; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--green) 55%, transparent) 62%); }
.lead { color: var(--sub); font-size: 17px; margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 20px; border-radius: 999px; }
.btn.ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.hero-video { width: 100%; max-width: 340px; justify-self: center; border-radius: 28px; box-shadow: 0 20px 50px rgba(35, 49, 58, .25); aspect-ratio: 9 / 16; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.stats b { display: block; font-family: "Zen Maru Gothic"; font-size: 34px; color: var(--accent); line-height: 1.2; }
.stats span { color: var(--sub); font-size: 13px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(35, 49, 58, .12); }
.card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card > div { padding: 14px 18px 18px; }
.card h3 { margin: 6px 0; font-size: 18px; line-height: 1.5; }
.card p { margin: 0; color: var(--sub); font-size: 14px; }
.card time { color: var(--sub); font-size: 13px; }
.pill { display: inline-block; background: color-mix(in srgb, var(--sea) 18%, transparent); color: var(--ink); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

.post { max-width: 760px; margin: 40px auto 0; }
.post h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.45; margin: 4px 0 28px; }
.post h2 { margin-top: 48px; padding-left: 14px; border-left: 6px solid var(--accent); font-size: 24px; }
.post h3 { margin-top: 32px; }
.post img, .post video { border-radius: 14px; margin: 18px auto; }
.post video { max-height: 640px; }
.post blockquote { margin: 18px 0; padding: 12px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.post table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; display: block; overflow-x: auto; }
.post th, .post td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post code { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.meta { color: var(--sub); font-size: 14px; margin: 0; }
.back { margin-top: 40px; }

footer { border-top: 1px solid var(--line); padding: 24px 16px 40px; text-align: center; color: var(--sub); font-size: 13px; }
footer p { margin: 4px 0; }
.tag { color: var(--accent); font-weight: 700; }
.credit { font-size: 12px; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: 1fr; }
  .paw { display: none; }
  .logo { font-size: 16px; }
  nav a { font-size: 13px; padding: 5px 10px; white-space: nowrap; }
}

/* ---------- YMgames ---------- */
.mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 900; letter-spacing: 0; margin-right: 4px; }
.logo { align-items: center; font-size: 20px; }
.top nav { overflow-x: auto; scrollbar-width: none; }
.intro { color: var(--sub); margin: -8px 0 24px; }
.more { margin: 14px 0 0; font-weight: 700; }
.more a { text-decoration: none; }
.btn.small { padding: 8px 16px; font-size: 14px; display: inline-block; margin-top: 12px; }

.cmeta { display: flex; align-items: center; gap: 8px; margin: 0; flex-wrap: wrap; }
.status { color: var(--sub); font-size: 13px; font-weight: 500; }
.pill.game { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.pill.web { background: color-mix(in srgb, var(--sea) 22%, transparent); }
.pill.app { background: color-mix(in srgb, var(--green) 30%, transparent); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.news { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.news li { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.news li:last-child { border-bottom: 0; }
.news time { color: var(--sub); font-size: 13px; padding-top: 2px; font-variant-numeric: tabular-nums; }
.news a { color: var(--ink); text-decoration: none; }
.news a:hover { color: var(--accent); }
.feature { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 52px; }
.feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature > div { padding: 16px 20px 20px; }
.feature h3 { margin: 2px 0 6px; font-size: 22px; }
.feature p { margin: 0; color: var(--sub); font-size: 15px; }
.feature .eyebrow { font-size: 12px; }

.game { margin-top: 28px; }
.crumb { color: var(--sub); font-size: 14px; margin: 0 0 12px; }
.crumb a { color: var(--sub); }
.ghero { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; }
.ghero h1 { font-size: clamp(34px, 5vw, 54px); margin: 6px 0 12px; line-height: 1.25; }
.gvideo, .gcover { width: 100%; border-radius: 24px; box-shadow: 0 20px 50px rgba(35, 49, 58, .22); }
.gvideo { aspect-ratio: 9 / 16; object-fit: cover; max-height: 600px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 36px 0 8px; }
.facts div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-align: center; }
.facts b { display: block; font-family: "Zen Maru Gothic"; font-size: 13px; color: var(--sub); font-weight: 700; }
.facts span { font-family: "Zen Maru Gothic"; font-size: 24px; font-weight: 900; color: var(--accent); }
.game h2 { margin-top: 44px; }
.feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.feats li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--sub); font-size: 15px; line-height: 1.7; }
.feats b { display: block; color: var(--ink); font-family: "Zen Maru Gothic"; font-size: 18px; margin-bottom: 4px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.shots figure { margin: 0; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.shots figcaption { color: var(--sub); font-size: 13px; margin-top: 6px; line-height: 1.5; }
.game .credit { color: var(--sub); margin-top: 32px; }

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 48px; }
.pn a { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.5; }
.pn a:hover { border-color: var(--accent); }
.pn small { display: block; color: var(--sub); font-size: 12px; margin-bottom: 2px; }
.pn .next { text-align: right; }
.post .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.prof { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.avatar { width: 120px; height: 120px; border-radius: 32px; background: var(--accent); color: #fff; display: grid; place-items: center; font-family: "Zen Maru Gothic"; font-size: 40px; font-weight: 900; }
.prof h2 { margin: 0; }
.who { color: var(--sub); margin: 0 0 8px; font-weight: 700; }
.about h2 { margin-top: 40px; }
.plain { padding-left: 20px; }
.contact { font-size: 20px; font-weight: 700; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 12px 0; word-break: break-all; }
.note { color: var(--sub); font-size: 14px; }

.fnav { justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.fnav a { font-size: 13px; }

@media (max-width: 760px) {
  .split, .ghero { grid-template-columns: 1fr; }
  .feature { margin-top: 0; }
  .ghero .gvideo { max-width: 320px; justify-self: center; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .news li { grid-template-columns: 1fr; gap: 0; }
  .prof { grid-template-columns: 1fr; }
  .avatar { width: 80px; height: 80px; border-radius: 22px; font-size: 28px; }
  .pn { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .logo .mark { display: inline-grid; }
}
.hero-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 50%; border-radius: 28px; box-shadow: 0 20px 50px rgba(35, 49, 58, .25); }
@media (max-width: 760px) { .hero-img { aspect-ratio: 16 / 10; } }
.gcover { aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 760px) { .gcover { aspect-ratio: 16 / 10; } }
.logo { white-space: nowrap; flex-wrap: nowrap; }
@media (max-width: 760px) {
  .top { flex-wrap: wrap; row-gap: 8px; padding-top: 10px; padding-bottom: 8px; }
  .top nav { width: 100%; justify-content: space-between; }
  .top nav a { padding: 4px 7px; font-size: 12.5px; }
  .logo .mark { width: 30px; height: 30px; font-size: 13px; }
}

/* ---------- コメント ---------- */
.comments { margin-top: 56px; padding-top: 8px; border-top: 1px solid var(--line); }
.comments h2 { border-left: 0; padding-left: 0; margin-top: 24px; }
.c-count { color: var(--sub); font-size: 16px; font-weight: 500; }
.c-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.c-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; }
.c-list li.fresh { border-color: var(--accent); }
.c-head { margin: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.c-head b { font-size: 15px; }
.c-head time { color: var(--sub); font-size: 12px; }
.c-body { margin: 4px 0 0; white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.75; }
.c-empty { color: var(--sub); font-size: 14px; }
.comments form { display: grid; gap: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.comments label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.comments input, .comments textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.comments input:focus, .comments textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); border-color: var(--accent); }
.comments .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comments .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.comments .btn:disabled { opacity: .6; cursor: default; }
.c-note { color: var(--sub); font-size: 13px; margin: 0; }
.c-msg { margin: 0; font-size: 14px; min-height: 1.5em; }
.c-msg.ok { color: #2f9e44; }
.c-msg.ng { color: #d13438; }

/* ブログのゲーム別タブ */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; }
.tabs button { font: inherit; font-weight: 700; font-size: 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.card[hidden] { display: none; }
.xprof { margin: 0 0 12px; }
.xprof a { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.xprof small { opacity: .7; font-weight: 500; }
.xicon { font-size: 16px; }
.xlink { color: var(--sub); }

/* X */
.xnav { font-size: 16px !important; padding: 6px 11px !important; }
.xfollow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 28px 0 0; }
.xfollow .xicon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 20px; flex: none; }
.xfollow p { margin: 0; flex: 1 1 220px; color: var(--sub); font-size: 14px; line-height: 1.6; }
.xfollow .btn.small { margin-top: 0; background: var(--ink); }
.post .xfollow { margin-top: 48px; }
.xtop { display: none; }
@media (max-width: 760px) {
  .xnav { display: none; }
  .xtop { display: grid; place-items: center; margin-left: auto; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--bg); text-decoration: none; font-size: 16px; }
}

/* ================= 落ち着いたテーマ (2026-11-21) =================
   白地・グレーの文字・英字の見出し・細い線・広めの余白。
   元に戻すときは theme_before_calm/ の build.py と style.css を戻す。 */
:root {
  --bg: #ffffff; --paper: #ffffff; --ink: #3c3c3c; --sub: #808080; --line: #e6e6e6;
  --soft: #f6f5f3; --accent: #e07a5f; --radius: 14px;
  --en: "Josefin Sans", "Noto Sans JP", sans-serif;
  --shadow: 0 2px 16px rgba(0, 0, 0, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #1b1c1e; --paper: #242528; --ink: #e8e8e8; --sub: #9a9a9a; --line: #34363a; --soft: #222326; --shadow: none; }
}
:root[data-theme="dark"] { --bg: #1b1c1e; --paper: #242528; --ink: #e8e8e8; --sub: #9a9a9a; --line: #34363a; --soft: #222326; --shadow: none; }

body { letter-spacing: .03em; }
h1, h2, h3 { font-family: "Noto Sans JP", sans-serif; font-weight: 700; letter-spacing: .05em; }

/* ヘッダー */
.top { background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 0; box-shadow: 0 1px 0 var(--line); padding-top: 16px; padding-bottom: 16px; }
.logo { font-family: var(--en); font-weight: 700; font-size: 22px; letter-spacing: .02em; }
.mark { border-radius: 8px; font-family: var(--en); font-weight: 700; padding-top: 3px; }
nav { gap: 6px; }
nav a { font-family: var(--en); font-weight: 600; font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--sub); border-radius: 0; padding: 6px 10px; position: relative; }
nav a.on, nav a:hover { background: none; color: var(--ink); }
nav a.on::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.xnav { color: var(--ink) !important; }

/* 見出し: 英字を大きく、日本語を小さく添える */
.sec::before { content: attr(data-en); display: block; font-family: var(--en); font-weight: 700; font-size: 34px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); line-height: 1.2; margin-bottom: 2px; }
h2.sec, h1.sec { font-size: 13px; font-weight: 500; color: var(--sub); letter-spacing: .2em; margin-bottom: 28px; }
h1.page.sec { margin-top: 24px; }
h1.page.sec::before { font-size: 44px; }
main > section > h2.sec { text-align: center; }
section { margin-top: 96px; }

/* ヒーロー */
.hero { margin-top: 64px; gap: 56px; }
.eyebrow { font-family: var(--en); font-weight: 600; letter-spacing: .25em; text-transform: uppercase; font-size: 13px; color: var(--accent); }
.hero h1 { font-weight: 700; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.45; letter-spacing: .08em; color: var(--ink); }
.lead { font-size: 15.5px; line-height: 2.1; }
.hero-img { border-radius: 16px; box-shadow: var(--shadow); }

/* ボタン */
.btn { font-weight: 700; font-size: 14px; letter-spacing: .08em; padding: 13px 28px; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 28%, transparent); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.ghost { border: 1px solid var(--line); color: var(--ink); box-shadow: none; background: var(--paper); }
.btn.small { padding: 8px 20px; font-size: 13px; }
.more { text-align: center; font-weight: 500; }
.more a { font-family: var(--en); letter-spacing: .1em; color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* カード */
.card, .feature, .xfollow, .prof, .feats li, .facts div, .pn a, .comments form, .c-list li { border: 0 !important; box-shadow: var(--shadow); border-radius: var(--radius); }
.card { transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0, 0, 0, .09); }
.card h3 { font-size: 16.5px; letter-spacing: .04em; }
.card time, .news time { font-family: var(--en); letter-spacing: .08em; font-size: 13.5px; }
.pill { background: var(--soft); color: var(--sub); font-weight: 500; letter-spacing: .06em; border-radius: 4px; padding: 2px 10px; }
.pill.game, .pill.web, .pill.app { background: var(--soft); }

/* お知らせ: 線だけの一覧 */
.news { background: none; border: 0; border-radius: 0; border-top: 1px solid var(--line); }
.news li { padding: 18px 4px; grid-template-columns: 112px 1fr; }
.split { gap: 48px; }
.feature { margin-top: 58px; }

/* 数字・特徴 */
.facts span { font-family: var(--en); font-weight: 700; font-size: 26px; color: var(--ink); }
.facts b, .feats b { font-family: "Noto Sans JP", sans-serif; }
.feats b { font-size: 16px; }
.stats b { font-family: var(--en); }

/* 記事 */
.post h1 { font-weight: 700; letter-spacing: .05em; line-height: 1.6; }
.post h2 { border-left: 0; padding: 0 0 10px; border-bottom: 1px solid var(--line); font-size: 21px; position: relative; }
.post h2::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 2px; background: var(--accent); }
.comments h2 { border-bottom: 0; }
.comments h2::after { display: none; }
.avatar { border-radius: 50%; font-family: var(--en); font-weight: 700; padding-top: 6px; }
.comments input, .comments textarea { background: var(--soft); border-color: transparent; }

/* X */
.xfollow .xicon, .xtop, .xprof a { border-radius: 50%; }
.xfollow .btn.small { box-shadow: none; }

/* フッター */
footer { background: var(--soft); border-top: 0; margin-top: 80px; padding: 40px 16px 48px; }
.fnav a { font-size: 13px; }
.tabs button { border-radius: 4px; font-weight: 500; }

@media (max-width: 760px) {
  section { margin-top: 64px; }
  .hero { margin-top: 32px; gap: 28px; }
  .sec::before { font-size: 28px; }
  h1.page.sec::before { font-size: 32px; }
  .top { padding-top: 10px; padding-bottom: 6px; }
  .top nav a { font-size: 12.5px; letter-spacing: .08em; padding: 4px 6px; }
  .news li { grid-template-columns: 1fr; }
  .feature { margin-top: 0; }
}
.nw { white-space: nowrap; }
.hero h1, .lead, .intro, .about p { word-break: auto-phrase; }
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(24px, 7.6vw, 34px); letter-spacing: .04em; }
  .top nav a { letter-spacing: .05em; padding: 4px 4px; }
}
