/*
  dazebora.com のトップと作品紹介ページの共通スタイル（2026-10-19 案C「生成り」）。
  色は TETNUM の布地（生成り）とブロックの紺、アクセントは X アイコンのカッティングマットの緑。
  ゲーム本体のページ（各作品の play/）は各ゲームの書き出しシェルが持つので、ここには含めない。
*/
:root {
  --bg: #f3f1ed;
  --surface: #ffffff;
  --text: #23344a;
  --muted: #6d7684;
  --line: #e2ded7;
  --accent: #1f6f6a;
  --shadow: 0 2px 10px rgba(35, 52, 74, .06);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', 'Yu Gothic UI', Meiryo, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 24px; }

/* ヘッダー */
.site-header .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { font-weight: 800; letter-spacing: .16em; text-decoration: none; color: var(--text); }
.site-header nav { display: flex; gap: 6px; font-size: .85rem; }
.site-header nav a { text-decoration: none; color: var(--muted); padding: 4px 12px; border-radius: 999px; }
.site-header nav a:hover { background: var(--surface); color: var(--text); }

/* トップのヒーロー */
.hero { text-align: center; padding: 64px 0 56px; }
.hero .avatar { width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--surface); box-shadow: 0 6px 20px rgba(35, 52, 74, .12); }
.hero h1 { font-size: clamp(1.6rem, 4.6vw, 2.4rem); line-height: 1.45; margin: 20px 0 10px; }
.hero p { color: var(--muted); margin: 0; }

/* 見出し */
section { padding: 40px 0; }
h2 { font-size: 1.2rem; margin: 0 0 20px; }
h2 small { font-size: .75rem; color: var(--muted); font-weight: 400; margin-left: 10px; letter-spacing: .1em; }

/* カード・ボタン・タグ */
.card { background: var(--surface); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.tags span { font-size: .72rem; background: var(--bg); color: var(--muted); border-radius: 999px; padding: 1px 10px; }
.work-hero .tags span { background: var(--surface); }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { display: inline-block; font-size: .85rem; padding: 8px 18px; border-radius: 999px; text-decoration: none; line-height: 1.6; }
.btn.primary { background: var(--accent); color: #fff; font-weight: 700; }
.btn.ghost { background: var(--bg); color: var(--text); }
.btn:hover { filter: brightness(1.08); }

/* トップのゲーム一覧 */
.games { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.game { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.game > a img { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.game-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.game h3 { margin: 0 0 6px; font-size: 1.12rem; }
.game h3 a { color: inherit; text-decoration: none; }
.game p { margin: 0 0 16px; font-size: .9rem; }
.game .btns { margin-top: auto; }

/* お知らせ */
.news { list-style: none; margin: 0; padding: 0; }
.news li { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 8px 0; font-size: .92rem; }
.news li + li { border-top: 1px dashed var(--line); }
.news time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* About / Contact */
.two { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; }
.two .card p { margin: 0 0 10px; font-size: .94rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.chips span { font-size: .75rem; background: var(--bg); border-radius: 999px; padding: 1px 10px; color: var(--muted); }

/* 作品紹介ページ */
.crumbs { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.crumbs a { color: var(--muted); }
.work-hero { padding: 24px 0 8px; }
.work-hero .key { display: block; width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.work-title { display: flex; align-items: center; gap: 16px; margin: 24px 0 8px; }
.work-title img { width: 64px; height: 64px; border-radius: 14px; box-shadow: var(--shadow); }
.work-title h1 { margin: 0; font-size: clamp(1.5rem, 4.4vw, 2rem); line-height: 1.3; }
.lead { margin: 0 0 16px; font-size: 1.02rem; }
.prose p { margin: 0 0 12px; font-size: .94rem; }
.prose p:last-child { margin-bottom: 0; }
.howto { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.howto li { position: relative; padding: 0 0 12px 40px; font-size: .94rem; counter-increment: step; }
.howto li:last-child { padding-bottom: 0; }
.howto li::before { content: counter(step); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.note { color: var(--muted); font-size: .85rem; margin: 14px 0 0; }
.problems { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.problems a { display: block; background: var(--bg); border-radius: 14px; padding: 14px 18px; text-decoration: none; color: var(--text); }
.problems a:hover { filter: brightness(.97); }
.problems strong { display: block; font-size: 1rem; }
.problems span { font-size: .8rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: 7em 1fr; gap: 6px 16px; margin: 0; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* フッター */
.site-footer { padding: 32px 0 48px; font-size: .8rem; color: var(--muted); text-align: center; }
.site-footer nav { display: flex; gap: 6px 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.site-footer a { color: var(--muted); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .site-header nav { gap: 0; }
  .site-header nav a { padding: 4px 8px; }
  .hero { padding: 40px 0 32px; }
  .games, .two { grid-template-columns: 1fr; }
  .news li { grid-template-columns: 1fr; gap: 0; }
  .card { padding: 20px; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts dd { margin-bottom: 8px; }
}
