/* NaoTsu Production ブログ 共通スタイル
   デザイントークンはトップ/プロフィールを踏襲（ダーク×ゴールド／Serif見出し）。
   記事HTMLはこのCSSに依存し、本文セマンティクスだけを持つ（量産・自動生成しやすくするため）。 */

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

:root {
  --bg: #0a0f1c;
  --bg-card: #1a1f2e;
  --bg-elev: #131826;
  --border: #2a2f3e;
  --border-strong: rgba(201,148,62,.4);
  --text: #e8e6e1;
  --text-muted: #8a8d96;
  --gold: #c9943e;
  --gold-bright: #ecd49a;
  --serif: 'Noto Serif JP', serif;
  --sans: 'Noto Sans JP', sans-serif;
  --max-w: 720px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--gold); text-decoration: none; transition: opacity .2s; }
a:hover { opacity: .8; }

/* ===== Header ===== */
.header {
  border-bottom: 1px solid var(--border);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,15,28,0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.header a.logo {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.header .logo .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); margin-right: 8px; vertical-align: middle;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  max-width: var(--max-w); margin: 0 auto; padding: 20px 24px 0;
  font-size: .74rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); opacity: 1; }
.breadcrumb span { margin: 0 6px; }

/* ===== Main ===== */
.main { max-width: var(--max-w); margin: 0 auto; padding: 28px 24px 80px; }

.page-label {
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}

/* ===== Article header ===== */
.article-head { margin-bottom: 36px; }
.cat-tag {
  display: inline-block; font-size: .72rem; font-weight: 600;
  color: var(--gold); border: 1px solid var(--border-strong, rgba(201,148,62,.4));
  border-radius: 999px; padding: 3px 12px; margin-bottom: 14px;
  background: rgba(201,148,62,.08);
}
h1.article-title {
  font-family: var(--serif); font-size: 1.72rem; font-weight: 700;
  line-height: 1.5; margin-bottom: 16px; word-break: auto-phrase;
}
.article-meta { font-size: .78rem; color: var(--text-muted); display: flex; gap: 16px; flex-wrap: wrap; }
.article-lead {
  font-size: .95rem; color: var(--text-muted); line-height: 2;
  margin: 22px 0 0; padding: 18px 20px;
  background: var(--bg-elev); border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0;
}

/* ===== Table of contents ===== */
.toc {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 24px; margin: 32px 0;
}
.toc-title { font-family: var(--serif); font-size: .95rem; font-weight: 700; color: var(--gold); margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: toc; }
.toc li { counter-increment: toc; font-size: .86rem; padding: 5px 0; padding-left: 30px; position: relative; }
.toc li::before {
  content: counter(toc); position: absolute; left: 0; top: 5px;
  width: 20px; height: 20px; border-radius: 50%; background: rgba(201,148,62,.14);
  color: var(--gold); font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.toc a { color: var(--text); }
.toc a:hover { color: var(--gold); opacity: 1; }

/* ===== Article body ===== */
.article-body { font-size: .92rem; }
.article-body h2 {
  font-family: var(--serif); font-size: 1.28rem; font-weight: 700; color: var(--text);
  margin: 52px 0 18px; padding-bottom: 12px; border-bottom: 2px solid var(--border);
  scroll-margin-top: 80px; word-break: auto-phrase;
}
.article-body h2 .num { color: var(--gold); margin-right: 10px; }
.article-body h3 {
  font-family: var(--serif); font-size: 1.08rem; font-weight: 700; color: var(--gold);
  margin: 34px 0 12px; scroll-margin-top: 80px;
}
.article-body p { margin-bottom: 18px; line-height: 2.05; }
.article-body strong { color: var(--gold-bright); font-weight: 700; }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 1.4em; }
.article-body li { margin-bottom: 10px; line-height: 1.95; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }

/* callout / point box */
.callout {
  background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0; padding: 20px 22px; margin: 26px 0;
}
.callout .callout-label { font-size: .74rem; font-weight: 700; color: var(--gold); letter-spacing: .06em; margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }

/* table */
.article-body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .84rem; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 12px 14px; text-align: left; vertical-align: top; line-height: 1.8; }
.article-body th { background: var(--bg-elev); color: var(--gold); font-weight: 600; white-space: nowrap; }

/* blockquote */
.article-body blockquote {
  margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--gold);
  background: var(--bg-elev); color: var(--text-muted); font-style: italic; border-radius: 0 8px 8px 0;
}

/* ===== FAQ ===== */
.faq { margin: 44px 0; }
.faq h2 { font-family: var(--serif); font-size: 1.28rem; font-weight: 700; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.faq-item { border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; margin-bottom: 12px; background: var(--bg-card); }
.faq-q { font-weight: 700; color: var(--text); margin-bottom: 8px; font-size: .9rem; }
.faq-q::before { content: "Q. "; color: var(--gold); font-family: var(--serif); }
.faq-a { font-size: .86rem; color: var(--text-muted); line-height: 1.95; }
.faq-a::before { content: "A. "; color: var(--gold); font-weight: 700; }

/* ===== CTA ===== */
.cta {
  margin: 52px 0 0; padding: 36px 28px; text-align: center;
  background: linear-gradient(150deg, #131826 0%, #1c2233 100%);
  border: 1px solid var(--border-strong, rgba(201,148,62,.35)); border-radius: 16px;
}
.cta h2 { font-family: var(--serif); font-size: 1.24rem; font-weight: 700; margin-bottom: 12px; border: none; padding: 0; }
.cta p { font-size: .88rem; color: var(--text-muted); margin-bottom: 22px; line-height: 1.9; }
.cta-btn {
  display: inline-block; font-weight: 700; font-size: .92rem; color: #0a0f1c !important;
  background: linear-gradient(120deg, #b8893f 0%, #ecd49a 55%, #c9943e 100%);
  padding: 14px 38px; border-radius: 999px; opacity: 1;
}
.cta-btn:hover { opacity: .9; }

/* ===== Related ===== */
.related { margin: 56px 0 0; }
.related-title { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--gold); margin-bottom: 16px; }
.related-list { display: grid; gap: 12px; }
.related-list a {
  display: block; padding: 16px 18px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: .88rem; font-weight: 500; line-height: 1.6; opacity: 1;
}
.related-list a:hover { border-color: var(--gold); opacity: 1; }

/* ===== Back link ===== */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--text-muted); margin-top: 44px; }
.back-link:hover { color: var(--gold); opacity: 1; }

/* ===== Blog index ===== */
.index-hero { text-align: center; margin-bottom: 44px; }
.index-hero h1 { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; margin-bottom: 12px; }
.index-hero p { font-size: .9rem; color: var(--text-muted); }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 40px; }
.cat-filter button {
  font-family: var(--sans); font-size: .78rem; font-weight: 600; color: var(--text-muted);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; padding: 7px 16px; cursor: pointer; transition: all .2s;
}
.cat-filter button.active, .cat-filter button:hover { color: var(--gold); border-color: var(--gold); }
.post-list { display: grid; gap: 16px; }
.post-card {
  display: block; padding: 22px 24px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; color: var(--text); opacity: 1; transition: border-color .2s, transform .2s;
}
.post-card:hover { border-color: var(--gold); opacity: 1; transform: translateY(-2px); }
.post-card .pc-cat { font-size: .7rem; font-weight: 600; color: var(--gold); }
.post-card .pc-title { font-family: var(--serif); font-size: 1.08rem; font-weight: 700; line-height: 1.5; margin: 8px 0 8px; }
.post-card .pc-desc { font-size: .82rem; color: var(--text-muted); line-height: 1.8; }
.post-card .pc-date { font-size: .72rem; color: var(--text-muted); margin-top: 12px; }
.empty { text-align: center; color: var(--text-muted); font-size: .86rem; padding: 40px 0; }

/* ===== Footer ===== */
.footer { text-align: center; padding: 28px 24px; font-size: .72rem; color: var(--text-muted); border-top: 1px solid var(--border); }
.footer a { color: var(--text-muted); }
.footer .footer-links { margin-bottom: 8px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 600px) {
  h1.article-title { font-size: 1.44rem; }
  .article-body h2 { font-size: 1.16rem; }
  .index-hero h1 { font-size: 1.5rem; }
  .main { padding: 22px 20px 64px; }
}
