/* =====================================================
   adaffi_site 共通スタイル（全ページ共通・単一CSS）
   方針: スマホ幅優先 / ダーク基調すぎない紙・本棚系の読みやすい配色
   ===================================================== */

:root {
  --bg: #faf6ef;          /* 全体の地（生成り・紙っぽい色） */
  --bg-card: #ffffff;     /* カード面 */
  --bg-shelf: #f1e8da;    /* 棚・補助面（薄い木目っぽい色） */
  --ink: #3b3530;         /* 本文（濃い焦げ茶寄り） */
  --ink-sub: #6f655c;     /* 補足テキスト */
  --accent: #b8546a;      /* アクセント（落ち着いた茜色） */
  --accent-soft: #f3dce1; /* アクセントの淡色 */
  --line: #d9cfc0;        /* 枠線 */
  --note-bg: #fdf3d8;     /* 注意書き・表記の背景（淡いクリーム） */
  --radius: 10px;
}

* { box-sizing: border-box; }

html { font-size: 16px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  line-height: 1.75;
}

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

a { color: var(--accent); }
a:hover { opacity: 0.8; }

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.site-title {
  font-size: 1.05rem;
  font-weight: bold;
  margin: 0;
}
.site-title a { color: var(--ink); text-decoration: none; }
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 0.85rem;
}
.site-nav a { color: var(--ink-sub); text-decoration: none; }
.site-nav a:hover { color: var(--accent); }

/* ---------- 見出し・セクション ---------- */
main { padding: 24px 0 40px; }

h1.page-title {
  font-size: 1.35rem;
  margin: 0 0 6px;
}
p.lead {
  color: var(--ink-sub);
  font-size: 0.95rem;
  margin: 0 0 20px;
}
h2 {
  font-size: 1.1rem;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin: 32px 0 12px;
}
h3 { font-size: 1rem; margin: 20px 0 8px; }

/* ---------- カード・棚 ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}
.card .thumb {
  background: var(--bg-shelf);
  border: 1px dashed var(--line);
  border-radius: 6px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-sub);
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.card h3 { margin: 0 0 6px; }
.card p { margin: 0 0 10px; font-size: 0.92rem; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
}
.btn:hover { opacity: 0.85; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
}
.btn-ghost:hover { color: var(--accent); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ASPリンクボタン（プレースホルダ用の仮見た目） */
.btn-placeholder {
  opacity: 0.75;
  border-style: dashed;
}

/* ---------- 注意書き・表記 ---------- */
.pr-note,
.age-note {
  background: var(--note-bg);
  border: 1px solid #e7d9ae;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--ink-sub);
  padding: 10px 12px;
  margin: 0 0 16px;
}
.age-note {
  background: var(--accent-soft);
  border-color: #e4bcc6;
}

/* ---------- 年齢確認オーバーレイ ---------- */
#age-gate {
  position: fixed;
  inset: 0;
  background: rgba(59, 53, 48, 0.85);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#age-gate.is-hidden { display: none; }
.age-gate-box {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 24px 20px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.age-gate-box h2 {
  border-left: none;
  padding-left: 0;
  margin: 0 0 10px;
}
.age-gate-box p {
  font-size: 0.9rem;
  color: var(--ink-sub);
  text-align: left;
  margin: 0 0 16px;
}
.age-gate-box .btn-row {
  flex-direction: column;
}
.age-gate-box .btn-leave {
  border-color: var(--line);
  background: transparent;
  color: var(--ink-sub);
  font-size: 0.85rem;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--bg-shelf);
  border-top: 1px solid var(--line);
  padding: 20px 0 28px;
  font-size: 0.78rem;
  color: var(--ink-sub);
}
.site-footer p { margin: 0 0 6px; }
.site-footer .footer-links {
  margin-top: 10px;
}
.site-footer .footer-links a { color: var(--ink-sub); margin-right: 14px; }

/* ---------- その他 ---------- */
.new-work-frame {
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: var(--ink-sub);
}
.placeholder {
  color: var(--accent);
  font-weight: bold;
}
.meta-small {
  font-size: 0.78rem;
  color: var(--ink-sub);
}
ul.plain { padding-left: 1.2em; }
ul.plain li { margin-bottom: 4px; }

/* ---------- 画面幅対応 ---------- */
@media (min-width: 600px) {
  h1.page-title { font-size: 1.5rem; }
  .card { padding: 20px; }
  .card .thumb { min-height: 180px; }
  .age-gate-box .btn-row { flex-direction: row; justify-content: center; }
}
