/* サイト共通。色は shared/tokens.json の青墨・白・金・朱に合わせる。 */
:root {
  color-scheme: dark;
  --bg: #050506; --surface: #0b0c0e; --ink: #f4f5f6; --ink2: #c6cbd0;
  --ink3: #8c939b; --hair: #32363b; --accent: #c9a96a; --accent-soft: #c9a96a12;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #fafbfc; --surface: #ffffff; --ink: #15171a; --ink2: #3c434a;
  --ink3: #6a727b; --hair: #e0e4e8; --accent: #c0402a; --accent-soft: #c0402a0a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 15px/1.9 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-underline-offset: 5px; }
button { color: inherit; }
img { max-width: 100%; height: auto; }
button, summary { cursor: pointer; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.on-paper { display: none !important; }
html[data-theme="light"] .on-paper { display: block !important; }
html[data-theme="light"] .on-ink { display: none !important; }
.skip-link { position: absolute; top: -80px; left: 20px; z-index: 10; padding: 12px 20px; background: var(--ink); color: var(--bg); }
.skip-link:focus { top: 12px; }
.top { position: relative; z-index: 2; max-width: 1248px; margin: auto; padding: 28px 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.top .wordmark img { width: 144px; height: 48px; object-fit: contain; }
.lang { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .04em; color: var(--ink3); }
.lang a, .lang span { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.lang span, .lang a:hover { color: var(--ink); }
.lang span { position: relative; }
.lang span::after { content: ""; position: absolute; bottom: 6px; left: 0; right: 0; height: 1px; background: var(--accent); }
.foot { position: relative; max-width: 1168px; margin: 96px auto 0; padding: 32px 0 40px; border-top: 1px solid var(--hair); font-size: 11px; color: var(--ink3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { margin: 12px 0 0; letter-spacing: .04em; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 28px; min-height: 54px; padding: 12px 26px; border: 1px solid transparent; border-radius: 3px; font: 500 13px/1.5 var(--sans); letter-spacing: .05em; text-decoration: none; transition: opacity .2s, background .2s; }
.button:hover { opacity: .8; }
.button.primary { background: var(--ink); color: var(--bg); }
.button.quiet { border-color: var(--hair); background: transparent; color: var(--ink); }
.button svg { width: 17px; height: 17px; }
.eyebrow { margin: 0 0 20px; color: var(--accent); font-size: 10px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; }
.note { color: var(--ink3); font-size: 12px; }
/* 規約・サポートは読みやすい幅と同じ書体で揃える。 */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 0; }
.doc h1 { font: 400 clamp(26px, 5vw, 38px)/1.5 var(--serif); letter-spacing: .06em; margin: 0 0 12px; }
.doc .dates { color: var(--ink3); font-size: 12px; margin: 0 0 40px; }
.doc h2 { font-size: 17px; font-weight: 500; margin: 44px 0 14px; }
.doc h3 { font-size: 15px; font-weight: 500; margin: 28px 0 10px; }
.doc p, .doc li { color: var(--ink2); }
.doc ol, .doc ul { padding-left: 1.4em; }
.doc li { margin: 8px 0; }
.doc .summary { padding: 20px 24px; margin: 32px 0; border-left: 1px solid var(--accent); background: var(--accent-soft); }
.doc .summary ul { margin: 12px 0 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 18px 12px; border-bottom: 1px solid var(--hair); color: var(--ink2); font-size: 14px; overflow-wrap: anywhere; }
.doc th { width: 32%; color: var(--ink); font-weight: 500; }
.todo { background: #ffe35c; color: #15171a; padding: 0 4px; border-radius: 4px; font-weight: 600; }
@media (max-width: 1248px) { .foot { margin-left: 40px; margin-right: 40px; } }
@media (max-width: 600px) {
  .top { padding: 18px 24px; gap: 16px; }
  .top .wordmark img { width: 120px; height: 40px; }
  .foot { margin: 64px 24px 0; padding-bottom: 28px; }
  .foot nav { gap: 0 20px; }
  .doc { padding-top: 40px; }
  .doc th, .doc td { display: block; width: 100%; padding: 8px 0; border: none; }
  .doc th { padding-top: 20px; }
  .doc td { padding-bottom: 20px; border-bottom: 1px solid var(--hair); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
