/* ミケロンゲームズ 公式サイト 共通スタイル
   色・幅・文字はこの冒頭の変数だけ直せば全ページに効く。 */
:root {
  --bg: #fbf8f2;        /* 紙色の背景 */
  --paper: #ffffff;     /* カードの白 */
  --ink: #1f2a44;       /* 文字（濃い紺） */
  --muted: #5f6b85;     /* 薄い文字 */
  --line: #e3dccd;      /* 罫線 */
  --accent: #c8102e;    /* 旗の赤 */
  --accent-soft: #fde8ec;
  --gold: #f2c14e;
  --max: 1000px;
  --radius: 12px;
  --font: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* 見出しの上の英語ラベル（お手本サイトの NEW RELEASE / PRODUCTS の役） */
.eyebrow {
  display: block;
  font-size: .8rem;
  letter-spacing: .18em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: .25em;
}

/* ヘッダー */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 60px; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.2rem; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.brand small { font-weight: 400; font-size: .7rem; color: var(--muted); letter-spacing: .15em; }
.nav { display: flex; align-items: center; gap: 4px 18px; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--ink); padding: 6px 0; }
.nav a:hover { color: var(--accent); text-decoration: none; }

/* セクション */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--line); }
.hero {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
  padding: 48px 0 56px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-size: 2.4rem; }
.lead { font-size: 1.1rem; }
.badge {
  display: inline-block; background: var(--accent); color: #fff;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em;
  padding: 2px 10px; border-radius: 999px; margin-bottom: 8px;
}

/* 人数・時間・年齢 */
.spec { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .95rem; margin: 0 0 1em; padding: 0; list-style: none; }
.spec li::before { content: "● "; color: var(--gold); font-size: .6rem; vertical-align: middle; }

/* ボタン */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 700;
  border: 2px solid var(--accent);
}
.btn:hover { background: #a60d26; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn + .btn { margin-left: 8px; }

/* 作品の一覧 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(31,42,68,.12); }
.card a { color: inherit; display: flex; flex-direction: column; height: 100%; }
.card a:hover { text-decoration: none; }
.card .thumb { background: #efe9dc; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.card .thumb img { max-height: 100%; width: auto; }
.card .body { padding: 16px 18px 18px; }
.card .genre { font-size: .8rem; color: var(--muted); }
.card h3 { margin: .2em 0 .3em; }
.card .spec { margin: 0; font-size: .85rem; }

/* お知らせ */
.news { list-style: none; padding: 0; margin: 0; }
.news li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.news time { color: var(--muted); font-size: .9rem; }

/* 2 列の情報ブロック（購入方法など） */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }

/* 作品ページ */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { border-radius: 8px; box-shadow: 0 4px 14px rgba(31,42,68,.15); }
.gallery figcaption { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 4px; }
.contents { padding-left: 1.2em; }
.downloads { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.downloads a { display: inline-block; padding: 8px 16px; border: 1px solid var(--accent); border-radius: 8px; background: var(--paper); }
.downloads a:hover { background: var(--accent-soft); text-decoration: none; }
.note { font-size: .9rem; color: var(--muted); }

/* 出典ページ（Markdown から生成）*/
.prose { max-width: 820px; }
.prose h2 { margin-top: 2em; padding-bottom: .3em; border-bottom: 2px solid var(--accent); }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: .5em; }
.prose code { font-size: .9em; background: #f0ece3; padding: 1px 5px; border-radius: 4px; }
.prose table { border-collapse: collapse; font-size: .9rem; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 4px 10px; text-align: left; vertical-align: top; }
.prose th { background: #f0ece3; }

/* 未記入の印。中身を書いたら <span class="todo"> を外す */
.todo { background: #fff3b0; padding: 0 4px; border-radius: 3px; }

/* パンくず */
.breadcrumb { font-size: .85rem; color: var(--muted); margin: 18px 0 0; }
.breadcrumb a { color: var(--muted); }

/* フッター */
.site-footer { background: var(--ink); color: #d7dbe6; padding: 36px 0; font-size: .9rem; margin-top: 48px; }
.site-footer a { color: #fff; }
.site-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .news li { grid-template-columns: 1fr; gap: 2px; }
  section { padding: 40px 0; }
}

/* 画像の拡大表示（js/lightbox.js）。a.zoom で包んだ画像をクリックすると画面いっぱいに */
a.zoom { cursor: zoom-in; display: block; }
a.zoom img { transition: transform .15s; }
a.zoom:hover img { transform: scale(1.02); }
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(31,42,68,.88);
  display: none; align-items: center; justify-content: center; flex-direction: column;
  padding: 24px; cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 96vw; max-height: 88vh; width: auto; height: auto; background: var(--bg); box-shadow: 0 20px 60px rgba(0,0,0,.5); border-radius: 6px; cursor: default; }
.lightbox-caption { color: #fff; font-size: .9rem; margin: 12px 0 0; }
.lightbox-close {
  position: absolute; top: 12px; right: 16px; font-size: 2rem; line-height: 1;
  background: none; border: 0; color: #fff; cursor: pointer; padding: 8px;
}

/* 言語の切り替え（ヘッダー右端） */
.nav a.lang { display: inline-flex; align-items: center; justify-content: center; line-height: 1; padding: 7px 14px; margin-left: 6px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: #fff; background: var(--ink); border: 1px solid var(--ink); }
.nav a.lang:hover { background: #33415f; border-color: #33415f; color: #fff; text-decoration: none; }

/* 遊び方の 3 ステップ */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.steps li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 16px; position: relative; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 8px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; font-size: .95rem; }
.callout { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 18px 0 0; font-size: .95rem; }
.callout p { margin: 0; }

/* 国旗カードの例：オモテ・ウラの 2 枚で 1 組。1 行に 2 組（狭い画面では 1 組） */
.pairs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 28px; margin-bottom: 22px; }
.pair { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair img { border-radius: 8px; box-shadow: 0 4px 14px rgba(31,42,68,.15); }
.pair figcaption { grid-column: 1 / -1; font-size: .85rem; color: var(--muted); text-align: center; margin-top: 2px; }
.topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.topics figure { margin: 0; }
.topics img { border-radius: 8px; box-shadow: 0 4px 14px rgba(31,42,68,.15); }
.topics figcaption { font-size: .85rem; color: var(--muted); text-align: center; margin-top: 4px; }
.refs { padding-left: 1.4em; }
.refs li { margin-bottom: .6em; overflow-wrap: anywhere; }
.lic { color: var(--muted); font-size: .85em; }
@media (max-width: 720px) {
  .pairs { grid-template-columns: 1fr; }
  .topics { grid-template-columns: repeat(2, 1fr); }
}


/* 遊び方：絵つきの 3 ステップ。スマホでも PC でも 1 列・同じ横幅で上から下へ。絵は最大 380px */
.howto { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 20px; counter-reset: step; }
.howto li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px; counter-increment: step; }
.howto figure { margin: 0 auto 12px; max-width: 380px; }
.howto svg { width: 100%; height: auto; display: block; font-family: var(--font); }
.howto h3 { margin: .2em 0 .3em; }
.howto h3::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .95rem; margin-right: 8px; vertical-align: middle; }
.howto p { margin: 0; }
.stack { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }

/* 遊び方：K の横長の絵。1 枚目は枠いっぱい、2・3 枚目は横幅半分（スマホでは全幅） */
.howto figure.wide { max-width: 100%; margin: 12px 0 0; }
.howto figure.wide.half { max-width: 50%; }
.howto figure.wide img { border-radius: 6px; }
.howto figure:not(.wide) { margin: 12px auto 0; }
@media (max-width: 720px) { .howto figure.wide.half { max-width: 100%; } }

/* サークルについての目標の箇条書き */
.aims { margin: 0 0 1em; padding-left: 1.4em; }
.aims li { margin-bottom: .3em; }
