/* =========================================================
   独断と偏見　共通スタイル
   色や文字の大きさを変えたいときは、まず下の :root の中を直す
   ========================================================= */

:root {
  --bg: #ffffff;          /* 地の色 */
  --surface: #f6f5f7;     /* カードの色 */
  --ink: #23252b;         /* 文字の色 */
  --muted: #6b6d76;       /* 薄い文字の色 */
  --line: #e3e2e7;        /* 線の色 */
  --line-strong: #b9b7c0; /* 4象限マップの軸の線 */
  --accent: #8a3b4e;      /* アクセントカラー（くすんだボルドー） */
  --font-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --radius: 18px;
  --width: 640px;         /* 本文の最大幅 */
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 2;
  letter-spacing: .03em;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: .04em;
  text-wrap: balance;
}

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

/* ---------- ヘッダー・フッター ---------- */

.site-header { padding-block: 40px 8px; }
.site-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .12em;
}

.site-footer {
  margin-top: 72px;
  padding-block: 32px 56px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }
.site-footer small { font-size: 12px; }

/* ---------- 共通パーツ ---------- */

.label { font-size: 12px; letter-spacing: .2em; color: var(--muted); margin: 0; }

/* ---------- トップページ ---------- */

.hero { padding-block: 48px 24px; }
.hero h1 { font-size: clamp(30px, 8vw, 44px); margin: 0 0 20px; }
.hero p { margin: 0; color: var(--muted); }

.genre-list { padding-block: 32px 0; }
.genre-list h2 { font-size: 20px; margin: 0 0 4px; }

.cards { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}
.card-genre { font-size: 12px; letter-spacing: .2em; color: var(--accent); }
.card-title { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.5; }
.card-text { font-size: 14px; color: var(--muted); line-height: 1.8; }
a.card:hover .card-title { text-decoration: underline; text-underline-offset: 5px; }

.card.is-soon { background: transparent; border: 1px dashed var(--line); }
.card.is-soon .card-title { color: var(--muted); }

/* ---------- 記事・固定ページの本文 ---------- */

.page { padding-block: 40px 0; }
.page h1 { font-size: clamp(28px, 7vw, 40px); margin: 8px 0 28px; }
.page h2 { font-size: 24px; margin: 56px 0 16px; }
.page h3 { font-size: 18px; margin: 32px 0 8px; }
.page p { margin: 0 0 1.4em; }
.page ul { margin: 0 0 1.4em; padding-left: 1.4em; }
.page .updated { font-size: 13px; color: var(--muted); }

/* 記事の日付と書いた人 */
.page .article-meta { font-size: 13px; color: var(--muted); margin: -16px 0 32px; }
.page .article-meta a { color: var(--muted); }

/* ブランド名の見出し（記事ページ用） */
.page h2.brand { font-size: 28px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }

/* 記事末尾の注釈 */
.disclaimer { font-size: 13px; color: var(--muted); margin-top: 48px; }

/* 記事末尾の「ほかのジャンル」 */
.related { display: flex; flex-direction: column; gap: 8px; margin-top: 56px; padding: 24px; border-radius: var(--radius); background: var(--surface); }
.related a { font-family: var(--font-display); font-weight: 600; }

/* ボタン風リンク（お問い合わせ・404用） */
.button {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: .08em;
}
.button:hover { opacity: .85; }

/* ---------- 4象限マップ（記事ページ用） ----------
   ブランドの位置は、HTML側で style="left:◯%; top:◯%" と指定する
   left は 0%=左端 / 100%=右端、top は 0%=上端 / 100%=下端 */

.map { max-width: 520px; margin: 32px auto 12px; padding: 12px 12px 30px; border-radius: var(--radius); background: var(--surface); }
@media (min-width: 560px) { .map { padding: 20px 20px 36px; } }
.map-plane { position: relative; aspect-ratio: 1; max-width: 100%; margin: 28px 28px; }
.map-plane::before, .map-plane::after { content: ""; position: absolute; background: var(--line-strong); }
.map-plane::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.map-plane::after { top: 50%; left: 0; right: 0; height: 1px; }
.map-axis { position: absolute; font-size: 11px; color: var(--muted); letter-spacing: .08em; line-height: 1.4; white-space: nowrap; }
.map-axis.top { top: -26px; left: 50%; transform: translateX(-50%); }
.map-axis.bottom { bottom: -48px; left: 50%; transform: translateX(-50%); }
.map-axis.left { left: -26px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; }
.map-axis.right { right: -26px; top: 50%; transform: translateY(-50%); writing-mode: vertical-rl; }
/* ブランドの位置は点で示し、名前は点の下に置く。長いブランド名は <br> で2行にする */
.map-brand {
  position: absolute;
  transform: translate(-50%, -4.5px);
  padding-top: 13px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(11px, 2.9vw, 14px);
  line-height: 1.3;
  text-align: center;
  color: var(--ink);
  white-space: nowrap;
  text-shadow: 0 0 3px var(--surface), 0 0 3px var(--surface), 0 0 3px var(--surface);
  z-index: 1;
}
.map-brand::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateX(-50%);
}
.map-note { font-size: 13px; color: var(--muted); margin: 0; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
