/* RoomMC 共通の見た目（2026-12-05）: 書体・色・角丸。全ページの <head> の最後に読み込む。
   ここを直したら npm run build（scripts/media.mjs がハッシュ付きで site/assets/shared/ へ置く）。
   アイコンは scripts/icons.mjs（Lucide）。クリスマス仕様は --xm-* を使うので影響しない。 */
:root{
  --bg:#fffdfa;--soft:#f6f3ed;--ink:#24312c;--sub:#53615b;--mute:#6c7872;
  --line:#e8e3d9;--line-strong:#d6d0c3;--accent:#2c7560;--accent-strong:#215c4b;--accent-soft:#e7f1ec;
  --radius:14px;
  --font:"Zen Maru Gothic","Hiragino Maru Gothic ProN","Yu Gothic UI",system-ui,sans-serif;
  --font-sans:var(--font);
  --paper:#fffdfa;--surface:#fffdfa;--surface-2:#f6f3ed;--paper-deep:#f6f3ed;--color-page:#fffdfa;--color-card:#fffdfa;
  --muted:#53615b;--faint:#6c7872;--ink-soft:#34433d;--accent-dark:#215c4b;--accent-ink:#215c4b;
  --accent-solid:#2c7560;--accent-solid-hover:#215c4b;
  /* アイコン・札の淡い色分け */
  --tint-leaf:#2c7560;--tint-leaf-bg:#e7f1ec;--tint-sky:#2e6b8f;--tint-sky-bg:#e6f0f6;
  --tint-sun:#94590f;--tint-sun-bg:#fbefdc;--tint-berry:#9d4257;--tint-berry-bg:#f9e9ec;
}
html[data-theme="dark"]:root{
  --bg:#111513;--soft:#1a201d;--ink:#e8ede9;--sub:#abb7b1;--mute:#8a968f;
  --line:#29322d;--line-strong:#3b4740;--accent:#6fc6a8;--accent-strong:#8bd6bc;--accent-soft:#1c3129;
  --tint-leaf:#7fd0b2;--tint-leaf-bg:#1c3129;--tint-sky:#93c5e3;--tint-sky-bg:#1b2b37;
  --tint-sun:#e8bd7a;--tint-sun-bg:#342a1a;--tint-berry:#eca3b3;--tint-berry-bg:#37222a;
}

/* ---- 書体 ---- */
html body{font-family:var(--font);letter-spacing:.015em}
button,input,select,textarea{font-family:inherit}
html body :is(h1,h2,h3){letter-spacing:.005em;line-height:1.4}
html body .hero h1{letter-spacing:0;line-height:1.25}
html body .eyebrow{color:var(--accent);letter-spacing:.12em}
html body .hero .eyebrow{color:rgba(255,255,255,.82)}

/* ---- ヘッダー ---- */
html:root body header.header.header{--h-ink:#24312c;--h-sub:#53615b;--h-line:#e8e3d9;--h-soft:#f4f1ea;--h-accent:#2c7560}
html[data-theme="dark"]:root body header.header.header{--h-ink:#e8ede9;--h-sub:#abb7b1;--h-line:#29322d;--h-soft:#1f2723;--h-accent:#6fc6a8}
html[data-theme="dark"] body header.header.header{background:rgba(17,21,19,.88)}
html[data-theme="dark"] body header.header.header.is-scrolled{background:rgba(17,21,19,.96)}
html[data-theme="dark"]:root body header.header.header .nav-apps-menu,
html[data-theme="dark"]:root :is(.search-panel,.to-top,.mk-card,.mk-dialog,.mk-chip,.mk-search,.mk-select,.mk-input,.vt-card,.sch-month,.sch-item,.cs-machine,.cs-reel,.cs-sound){background:var(--soft)}
html[data-theme="dark"]:root :is(input,select,textarea):not(.gd-search-input){background:var(--soft)}
html[data-theme="dark"]:root code{background:#212a25}
html[data-theme="dark"]:root .address code{background:none}
@media (max-width:860px){html[data-theme="dark"]:root body header.header.header .nav{background:var(--soft)}}

/* ---- 主ボタン: 黒 → 深い緑 ---- */
html body :is(.button:not(.ghost),.mk-btn,.mk-chip[aria-pressed="true"],.flow-num,.cs-spin,.vt-button,.brew-chip[aria-pressed="true"]),
html:root body header.header.header .nav>a.join{background:var(--accent);color:#fff}
html body :is(.button:not(.ghost),.mk-btn,.vt-button):hover:not(:disabled),
html:root body header.header.header .nav>a.join:hover{background:var(--accent-strong);color:#fff}
html[data-theme="dark"]:root body :is(.button:not(.ghost),.mk-btn,.mk-chip[aria-pressed="true"],.flow-num,.cs-spin,.vt-button),
html[data-theme="dark"]:root body header.header.header .nav>a.join{color:#0f1a15!important}
html body .hero .button:not(.ghost){background:#fffdfa}
html body:not(.xmas) .hero .button:not(.ghost){color:#215c4b}
html body.xmas .hero .button:not(.ghost){color:#a3242c}
html body .hero .button.hero-join:hover{background:#eef6f2}
html body .step-link,html body .row:hover .row-arrow{color:var(--accent)}

/* ---- 丸み ---- */
html body :is(.live-card,.step,.mk-card,.vt-card,.sch-month){border-radius:var(--radius)}
html body .nav>a,html body .nav-apps-toggle{border-radius:999px}
