/* 100 Games Lab
 *
 * ブランド案B3の配色。「100本の枠が埋まっていく」ことを中心に据えたレイアウト。
 * 汎用のカード並べではなく、進捗そのものが主役になるようにしている。 */

:root {
  /* 採用案: ライトグレー。白いカードを敷き詰めるプロダクト風。
   * 100本に増えても一覧性が落ちないことを重視して選んだ。
   * 他の案は /_themes/*.css に残してあり、/preview/ で見比べられる。 */
  --bg: #F4F5F7;
  --bg-raised: #FFFFFF;
  --surface: #E8EAEE;
  --line: #E1E4E9;
  --text: #14161A;
  --muted: #6B7280;
  --accent: #2563EB;
  --slot-empty: #C3C8D0;

  --wrap: 880px;
  --radius-slot: 24%;
  --radius-card: 14px;
  --radius-pill: 999px;
  --card-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.04);
  --card-border: 1px solid var(--line);
  --header-bg: rgba(244, 245, 247, 0.9);
  --title-weight: 800;
  --title-tracking: -0.025em;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Noto Sans JP", sans-serif;
  line-height: 1.75;
  font-size: 15px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- ヘッダー ---------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(12px);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 1.4px;
}
.logo img { border-radius: 8px; display: block; }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 4px; }
.nav-link {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
}
.nav-link:hover { color: var(--text); text-decoration: none; }
.nav-link.is-current { color: var(--text); background: var(--surface); }

/* ---- 見出し ------------------------------------------------------------ */

.hero { padding: 56px 0 44px; }
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.2px;
  color: var(--muted);
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(28px, 6vw, 44px);
  font-weight: var(--title-weight);
  letter-spacing: var(--title-tracking);
  line-height: 1.25;
  margin: 0;
}
.lede { color: var(--muted); margin: 16px 0 0; max-width: 46em; }

h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 52px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
h3 { font-size: 16px; font-weight: 800; margin: 30px 0 8px; }

p, li { font-size: 15px; }
ul { padding-left: 20px; }
li { margin-bottom: 6px; }

/* ---- 100本の枠 --------------------------------------------------------- */

.progress-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.progress-count {
  font-size: 46px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.progress-count .of { color: var(--muted); font-size: 24px; }
.progress-note { color: var(--muted); font-size: 13px; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.slot {
  aspect-ratio: 1;
  border-radius: var(--radius-slot);
  background: var(--bg-raised);
  border: var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--slot-empty);
  overflow: hidden;
}
.slot img { width: 100%; height: 100%; display: block; }
.slot.is-next {
  border-color: var(--accent);
  color: var(--accent);
}

@media (max-width: 560px) {
  .slot-grid { grid-template-columns: repeat(10, 1fr); gap: 4px; }
  .slot { border-radius: 24%; font-size: 8px; }
}

/* ---- ゲームのカード ---------------------------------------------------- */

.game-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.game-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--bg-raised);
  border: var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
}
.game-card img { width: 56px; height: 56px; border-radius: 14px; display: block; }
.game-card h3 { margin: 0; font-size: 16px; }
.game-card p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* ---- SNS --------------------------------------------------------------- */

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 15px;
  background: var(--bg-raised);
  border: var(--card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
}
.social:hover { border-color: var(--surface); text-decoration: none; }
.social svg { flex: none; width: 20px; height: 20px; fill: currentColor; }
.social .handle { color: var(--muted); font-size: 12px; font-weight: 600; }
.social span { display: block; line-height: 1.35; }

/* ---- フォーム ---------------------------------------------------------- */

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}
.field .hint { color: var(--muted); font-size: 12px; font-weight: 600; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-raised);
  border: var(--card-border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
}
textarea { min-height: 160px; resize: vertical; }
button {
  padding: 13px 26px;
  background: var(--accent);
  color: var(--bg);
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}
button:hover { opacity: 0.9; }
.honeypot { position: absolute; left: -9999px; }

.notice {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 24px;
  font-size: 14px;
}
.notice.ok { background: rgba(53, 208, 127, 0.12); border: 1px solid #35D07F; }
.notice.ng { background: rgba(255, 77, 46, 0.12); border: 1px solid var(--accent); }

/* ---- 文書ページ -------------------------------------------------------- */

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
  display: block;
  overflow-x: auto;
}
.doc th, .doc td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.doc th { color: var(--muted); font-weight: 700; white-space: nowrap; }
.doc .meta { color: var(--muted); font-size: 13px; }
.doc .lang { margin-top: 64px; padding-top: 40px; border-top: 2px solid var(--line); }

/* ---- フッター ---------------------------------------------------------- */

.site-footer {
  margin-top: 80px;
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text);
  font-size: 12px;
}
.footer-brand img { border-radius: 7px; display: block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0 0; }
.footer-nav a { color: var(--muted); }
.copyright { margin: 20px 0 0; }


/* 採用案（ライトグレー）の細部 */
.slot { background: var(--bg-raised); box-shadow: var(--card-shadow); }
.slot.is-next { background: #EFF4FF; }
