/* nakanix.com 共通のスタイル（SAKIN の画面と同じ配色） */
:root {
  --paper: #eef0e2; --paper2: #e1e5cf; --card: #f7f8ef; --ink: #1d3530; --ink-soft: #52675e;
  --rule: #c2c9ad; --tape: #f2b62b; --tape-ink: #2a2208; --water: #2f7fa8; --pin: #d9406f;
  --link: #1f6a8f;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131f1c; --paper2: #1a2925; --card: #1d2d29; --ink: #e6eadb; --ink-soft: #a7b5ab;
    --rule: #34463f; --tape-ink: #2a2208; --link: #7cc3e6;
  }
}
:root[data-theme="dark"] {
  --paper: #131f1c; --paper2: #1a2925; --card: #1d2d29; --ink: #e6eadb; --ink-soft: #a7b5ab;
  --rule: #34463f; --tape-ink: #2a2208; --link: #7cc3e6;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  font-size: 16px; line-height: 1.8; overflow-wrap: anywhere;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

.site-header { border-bottom: 1px solid var(--rule); background: var(--paper2); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 800; letter-spacing: .08em; color: var(--ink); text-decoration: none; font-size: 18px; }
.brand:has(.brand-icon) { display: inline-flex; align-items: center; gap: 10px; }
.brand-icon { display: block; width: 40px; height: 40px; }   /* まばたきする ネコ（brand-cat.gif 96px。60 秒ごとに 2 回。動きを 減らす 設定では brand-cat.png） */
.brand small { font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); margin-left: 6px; font-size: 13px; }
.nav { display: flex; gap: 16px; font-size: 14px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

main { padding: 28px 0 48px; }
h1 { font-size: clamp(26px, 6vw, 36px); line-height: 1.3; margin: 8px 0 8px; letter-spacing: .02em; }
h2 { font-size: 20px; line-height: 1.4; margin: 0 0 10px; }
h3 { font-size: 16px; margin: 18px 0 4px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 1.4em; }
li { margin: 4px 0; }
.lead { font-size: 17px; color: var(--ink-soft); margin-bottom: 20px; }
.muted { color: var(--ink-soft); font-size: 14px; }

.tape {
  display: inline-block; background: var(--tape); color: var(--tape-ink); font-weight: 700; font-size: 13px;
  padding: 2px 10px; border-radius: 3px; letter-spacing: .05em; transform: rotate(-1.5deg);
}
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 20px; margin: 0 0 16px; }
.card > :last-child { margin-bottom: 0; }

.product { display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit; }
.product .icon { width: 44px; height: 44px; margin-top: 2px; }   /* トップの カードは 小さめ（サポートページの 見出しは 64px のまま） */
.product:hover h2 { text-decoration: underline; }
.icon { flex: none; width: 64px; height: 64px; border-radius: 22.5%; display: block; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.app-title { display: flex; align-items: center; gap: 14px; margin: 8px 0 8px; }
.app-title h1 { margin: 0; }

.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 24px; }
.button {
  display: inline-block; padding: 10px 18px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: var(--ink); color: var(--paper); text-decoration: none;
}
.button.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.button:hover { opacity: .88; }

dl { margin: 0; }
dt { font-weight: 700; margin-top: 14px; }
dt:first-child { margin-top: 0; }
dd { margin: 2px 0 0; color: var(--ink); }
dd p { margin-bottom: 6px; }
.path { font-weight: 600; }
kbd, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--paper2); padding: 1px 6px; border-radius: 4px; }
.contact { font-size: 18px; font-weight: 700; }

.toc { columns: 2; column-gap: 24px; font-size: 14px; padding-left: 1.2em; }
@media (max-width: 520px) { .toc { columns: 1; } }

.site-footer { border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 13px; padding: 18px 0 28px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); }

/* ゲーム画面の写真 */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 20px; padding: 0; list-style: none; }
@media (max-width: 640px) { .shots { grid-template-columns: repeat(2, 1fr); } }
.shots li { margin: 0; }
.shots img { width: 100%; height: auto; display: block; border-radius: 18px; border: 1px solid var(--rule); background: var(--paper2); }
.shots span { display: block; font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 6px; line-height: 1.5; }

/* よくある質問の操作の図 */
.steps { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 4px; padding: 0; list-style: none; counter-reset: step; }
.steps li { margin: 0; flex: 1 1 220px; max-width: 320px; }
.steps img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--rule); background: #f2f2f6; }
.steps span { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 4px; line-height: 1.5; }
.steps.numbered li { counter-increment: step; }
.steps.numbered span::before { content: counter(step) ". "; font-weight: 700; color: var(--ink); }

/* 画面写真を押すと大きく表示（HTML の popover。JavaScript なし。× か画像の外を押すと閉じる。Esc でも閉じる） */
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 18px; }
.zoom:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; }
.lightbox { padding: 0; border: 0; background: transparent; overflow: visible; max-width: 94vw; max-height: 92dvh; }
.lightbox::backdrop { background: rgba(10, 18, 16, .82); }
.lightbox img { display: block; width: auto; height: auto; max-width: 94vw; max-height: 92dvh; border-radius: 22px; box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.lightbox .close {
  position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7);
  background: rgba(20, 33, 30, .85); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
.lightbox .close:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }

/* 製品カードのバッジ（対応機種・対象年齢・ジャンル） */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; padding: 0; list-style: none; }
.badge {
  display: inline-flex; align-items: center; gap: 3px; margin: 0;
  padding: 2px 10px; border-radius: 999px; border: 1.5px solid var(--rule);
  font-size: 12.5px; font-weight: 700; line-height: 1.6; color: var(--ink); background: var(--paper);
}
.badge svg { width: 11px; height: 11px; flex: none; }   /* 字より 大きく 見えないように */
.badge.age { background: var(--tape); border-color: var(--tape); color: var(--tape-ink); }
.badge.genre { border-color: var(--water); color: var(--water); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.genre { color: #8fc7e6; border-color: #5a9cc0; } }
:root[data-theme="dark"] .badge.genre { color: #8fc7e6; border-color: #5a9cc0; }
.product h2 { margin-bottom: 6px; }
