/* ══════════════════════════════════════════
   article.css — コラム記事専用（エディトリアル・ライトテーマ）
   column/[記事].html で読み込む
   common.css のダークテーマをこのファイルで上書きする
   ══════════════════════════════════════════ */

/* ── PALETTE OVERRIDES ── */
:root {
  --ed-paper:      #faf7f2;
  --ed-paper-soft: #f3eee5;
  --ed-ink:        #161616;
  --ed-ink-soft:   #2a2a2a;
  --ed-body:       #2d2a25;
  --ed-muted:      #757067;
  --ed-rule:       #d9d2c4;
  --ed-rule-soft:  #ebe4d5;
  --ed-card:       #ffffff;
  --ed-shu:        #c8202c;
  --ed-shu-deep:   #9b1620;
  --ed-shu-tint:   rgba(200,32,44,0.06);
  --ed-gold:       #8c6b29;
}

body {
  background: var(--ed-paper);
  color: var(--ed-body);
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.95;
}

/* ── NAV (override common.css dark nav) ── */
body > nav {
  background: rgba(250,247,242,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ed-rule);
  padding: 14px 32px;
}
.logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--ed-ink);
}
.logo em { color: var(--ed-shu); font-style: normal; font-weight: 700; }
.nav-link {
  color: var(--ed-ink-soft); font-size: 0.83rem; font-weight: 500;
}
.nav-link:hover { color: var(--ed-shu); }
.nav-cta {
  background: var(--ed-ink); color: var(--ed-paper);
  padding: 9px 18px; border-radius: 2px;
  font-size: 0.83rem; font-weight: 700; letter-spacing: 0.04em;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--ed-shu); opacity: 1; }

@media (max-width: 620px) {
  body > nav { padding: 12px 16px; }
  .nav-toggle span { background: rgba(20,20,20,0.7); }
  .nav-right {
    background: rgba(250,247,242,0.98);
    border-bottom: 1px solid var(--ed-rule);
  }
  .nav-right .nav-link {
    color: var(--ed-ink-soft);
    border-bottom: 1px solid var(--ed-rule);
  }
}

/* ── PROGRESS BAR ── */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: var(--ed-shu);
  z-index: 200; width: 0;
  pointer-events: none;
}

/* ── ARTICLE LAYOUT ── */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 110px 28px 96px; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex; gap: 6px; align-items: center;
  font-family: 'IBM Plex Mono', 'Noto Sans JP', monospace;
  font-size: 0.74rem; color: var(--ed-muted);
  margin-bottom: 36px; flex-wrap: wrap;
  letter-spacing: 0.04em;
}
.breadcrumb a { color: var(--ed-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--ed-shu); }
.breadcrumb .sep { opacity: 0.5; }

/* ── ARTICLE HEADER ── */
.article-header {
  margin-bottom: 56px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ed-rule);
}
.article-cat {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ed-shu);
  border: 1px solid var(--ed-shu);
  padding: 5px 12px;
  margin-bottom: 22px;
}
.article-header h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  font-weight: 700; line-height: 1.55;
  letter-spacing: 0.01em;
  color: var(--ed-ink);
  margin-bottom: 22px;
}
.article-meta {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  font-family: 'IBM Plex Mono', 'Noto Sans JP', monospace;
  font-size: 0.76rem; color: var(--ed-muted);
  letter-spacing: 0.04em;
}
.article-meta .by { color: var(--ed-muted); }

/* ── ARTICLE BODY ── */
.article-body {
  font-size: 1rem; line-height: 2.1;
  color: var(--ed-body);
}
.article-body p {
  margin-bottom: 1.5em;
  color: var(--ed-body);
}
.article-body h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.45rem; font-weight: 700;
  line-height: 1.55; letter-spacing: 0.02em;
  margin: 64px 0 24px;
  padding: 16px 0 14px 18px;
  border-left: 4px solid var(--ed-shu);
  background: var(--ed-shu-tint);
  color: var(--ed-ink);
}
.article-body h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem; font-weight: 700;
  line-height: 1.55; letter-spacing: 0.02em;
  margin: 40px 0 16px;
  color: var(--ed-ink);
  display: flex; align-items: baseline; gap: 10px;
}
.article-body h3::before {
  content: '※';
  color: var(--ed-shu);
  font-family: 'Noto Serif JP', serif;
  font-size: 0.95em; flex-shrink: 0;
}
.article-body ul, .article-body ol {
  padding-left: 0; margin-bottom: 1.5em;
  list-style: none;
}
.article-body ul li,
.article-body ol li {
  position: relative;
  padding: 4px 0 4px 24px;
  color: var(--ed-body);
  line-height: 1.95;
  margin-bottom: 0.2em;
}
.article-body ul li::before {
  content: ''; position: absolute;
  left: 4px; top: 0.95em;
  width: 8px; height: 1px;
  background: var(--ed-shu);
}
.article-body ol { counter-reset: ol-num; }
.article-body ol li { counter-increment: ol-num; }
.article-body ol li::before {
  content: counter(ol-num) ".";
  position: absolute; left: 0; top: 0;
  color: var(--ed-shu); font-weight: 700;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.92em;
}
.article-body strong {
  color: var(--ed-ink);
  font-weight: 700;
  background: linear-gradient(transparent 65%, rgba(200,32,44,0.14) 65%);
  padding: 0 2px;
}
.article-body em { font-style: normal; color: var(--ed-shu); font-weight: 700; }
.article-body a {
  color: var(--ed-shu); text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s;
}
.article-body a:hover { opacity: 0.7; }

/* ── INFO BOX ── */
.info-box {
  background: var(--ed-card);
  border: 1px solid var(--ed-rule);
  border-left: 3px solid var(--ed-muted);
  border-radius: 2px;
  padding: 22px 26px;
  margin: 28px 0 32px;
}
.info-box.accent { border-left-color: var(--ed-shu); background: var(--ed-shu-tint); }
.info-box.gold   { border-left-color: var(--ed-gold); background: rgba(140,107,41,0.05); }
.info-box.blue   { border-left-color: #2d5a87; background: rgba(45,90,135,0.04); }
.info-box.green  { border-left-color: #2e7d4f; background: rgba(46,125,79,0.04); }
.info-box .ib-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--ed-muted);
}
.info-box.accent .ib-label { color: var(--ed-shu); }
.info-box.gold   .ib-label { color: var(--ed-gold); }
.info-box.blue   .ib-label { color: #2d5a87; }
.info-box.green  .ib-label { color: #2e7d4f; }
.info-box p, .info-box ul { margin-bottom: 0; }
.info-box ul { padding-left: 0; }
.info-box li {
  font-size: 0.92rem; color: var(--ed-body);
  margin-bottom: 0.45em; line-height: 1.85;
  padding-left: 20px;
}
.info-box ul li::before { top: 0.85em; }

/* ── KEY POINT ── */
.key-point {
  background: var(--ed-shu-tint);
  border: 1px solid rgba(200,32,44,0.2);
  border-left: 4px solid var(--ed-shu);
  border-radius: 2px;
  padding: 24px 28px; margin: 36px 0;
}
.key-point .kp-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em;
  color: var(--ed-shu); margin-bottom: 12px;
  text-transform: uppercase;
}
.key-point p {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.02rem; color: var(--ed-ink);
  margin-bottom: 0; line-height: 1.95; font-weight: 500;
}

/* ── TABLE ── */
.tbl-wrap {
  overflow-x: auto;
  margin: 28px 0 36px;
  border: 1px solid var(--ed-rule);
  background: var(--ed-card);
}
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.article-body th {
  padding: 14px 16px; text-align: left;
  font-family: 'Noto Serif JP', serif;
  font-weight: 700; font-size: 0.9rem;
  background: var(--ed-paper-soft);
  color: var(--ed-ink);
  border-bottom: 2px solid var(--ed-shu);
  white-space: nowrap;
}
.article-body td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ed-rule-soft);
  color: var(--ed-body); line-height: 1.8;
}
.article-body td:first-child {
  font-weight: 700; color: var(--ed-ink);
  white-space: nowrap;
}
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:hover td { background: var(--ed-paper-soft); }

/* ── CTA BLOCK ── */
.cta-block {
  background: var(--ed-ink); color: var(--ed-paper);
  border-radius: 2px;
  padding: 44px 38px;
  text-align: center;
  margin: 72px 0 0;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--ed-shu);
}
.cta-block .ct-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em;
  color: var(--ed-shu); margin-bottom: 16px;
  text-transform: uppercase;
}
.cta-block h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.4rem; font-weight: 700;
  line-height: 1.6; margin-bottom: 14px;
  color: var(--ed-paper);
  letter-spacing: 0.02em;
}
.cta-block p {
  font-size: 0.93rem; color: rgba(250,247,242,0.7);
  line-height: 1.95; margin-bottom: 32px;
}
.cta-block a.cta-btn {
  display: inline-block;
  background: var(--ed-shu); color: #fff;
  font-size: 1rem; font-weight: 700;
  padding: 16px 42px; letter-spacing: 0.04em;
  border-radius: 2px; text-decoration: none;
  transition: background 0.2s;
}
.cta-block a.cta-btn:hover { background: #fff; color: var(--ed-shu); }
.cta-block small {
  display: block; font-size: 0.76rem;
  color: rgba(250,247,242,0.55);
  margin-top: 14px;
}

/* ── RELATED ── */
.related { margin-top: 72px; }
.related h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ed-shu);
  color: var(--ed-ink);
  display: inline-block;
}
.related ul { list-style: none; padding: 0; }
.related li { padding: 10px 0; border-bottom: 1px solid var(--ed-rule-soft); }
.related li:last-child { border-bottom: none; }
.related a {
  color: var(--ed-ink-soft); text-decoration: none;
  font-size: 0.92rem; line-height: 1.65;
  display: flex; align-items: baseline; gap: 8px;
  transition: color 0.2s;
}
.related a::before { content: '→'; color: var(--ed-shu); flex-shrink: 0; }
.related a:hover { color: var(--ed-shu); }

.back-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ed-muted); text-decoration: none;
  font-size: 0.86rem; margin-top: 36px;
  transition: color 0.2s;
  border-bottom: 1px solid var(--ed-rule);
  padding-bottom: 2px;
}
.back-link:hover { color: var(--ed-shu); border-bottom-color: var(--ed-shu); }

/* ── TABLE OF CONTENTS ── */
.toc {
  background: var(--ed-card);
  border: 1px solid var(--ed-rule);
  border-top: 3px solid var(--ed-shu);
  border-radius: 2px;
  padding: 24px 28px;
  margin: 0 0 44px;
}
.toc-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em;
  color: var(--ed-shu); margin-bottom: 16px;
  text-transform: uppercase;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc-counter; }
.toc li {
  counter-increment: toc-counter;
  margin-bottom: 8px;
  padding-left: 32px;
  position: relative;
}
.toc li::before {
  content: counter(toc-counter, decimal-leading-zero);
  position: absolute; left: 0; top: 0.05em;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500; font-size: 0.78rem;
  color: var(--ed-shu);
  letter-spacing: 0.04em;
}
.toc a {
  color: var(--ed-ink-soft); text-decoration: none;
  font-size: 0.92rem; line-height: 1.65;
  transition: color 0.2s;
  border-bottom: 1px dotted transparent;
}
.toc a:hover { color: var(--ed-shu); border-bottom-color: var(--ed-shu); }

/* ── INLINE MID-ARTICLE CTA ── */
.mid-cta {
  background: var(--ed-shu-tint);
  border: 1px solid rgba(200,32,44,0.18);
  border-radius: 2px;
  padding: 22px 26px;
  margin: 36px 0 44px;
  text-align: center;
}
.mid-cta p {
  font-size: 0.92rem; color: var(--ed-ink-soft);
  margin-bottom: 14px; line-height: 1.8;
}
.mid-cta a {
  display: inline-block;
  background: var(--ed-shu); color: #fff;
  font-size: 0.88rem; font-weight: 700;
  padding: 11px 32px; letter-spacing: 0.04em;
  border-radius: 2px; text-decoration: none;
  transition: background 0.2s;
}
.mid-cta a:hover { background: var(--ed-shu-deep); opacity: 1; }
.mid-cta small {
  display: block; font-size: 0.76rem;
  color: var(--ed-muted); margin-top: 10px;
}

/* ── FLOATING BOTTOM CTA BAR ── */
.float-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  background: rgba(22,22,22,0.96);
  backdrop-filter: blur(12px);
  border-top: 3px solid var(--ed-shu);
  padding: 12px 20px;
  display: flex; align-items: center;
  justify-content: center; gap: 16px;
  transform: translateY(100%); transition: transform 0.35s ease;
}
.float-cta.visible { transform: translateY(0); }
.float-cta-text {
  font-size: 0.84rem; color: rgba(250,247,242,0.75);
  white-space: nowrap;
}
.float-cta-text b { color: var(--ed-shu); font-weight: 700; }
.float-cta a {
  display: inline-block;
  background: var(--ed-shu); color: #fff;
  font-size: 0.84rem; font-weight: 700;
  padding: 10px 26px; letter-spacing: 0.04em;
  border-radius: 2px; text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s;
}
.float-cta a:hover { background: #fff; color: var(--ed-shu); }

/* ── SERVICE LINK BELOW CTA ── */
.service-link { text-align: center; margin-top: 22px; }
.service-link a {
  color: var(--ed-muted); text-decoration: none;
  font-size: 0.84rem;
  border-bottom: 1px solid var(--ed-rule);
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}
.service-link a:hover { color: var(--ed-shu); border-bottom-color: var(--ed-shu); }

/* ── FOOTER OVERRIDE (keep dark inverse) ── */
footer {
  background: var(--ed-ink);
  color: rgba(250,247,242,0.55);
  padding: 32px 24px;
  font-size: 0.8rem;
}
footer a { color: rgba(250,247,242,0.7); }
footer a:hover { color: var(--ed-shu); }

/* ── RESPONSIVE ── */
@media (max-width: 620px) {
  .article-wrap { padding: 88px 20px 80px; }
  .article-body { font-size: 0.96rem; }
  .article-body h2 { font-size: 1.25rem; margin: 48px 0 18px; padding: 12px 0 10px 14px; }
  .article-body h3 { font-size: 1.05rem; }
  .cta-block { padding: 32px 22px; }
  .float-cta { padding: 10px 12px; gap: 10px; }
  .float-cta-text { display: none; }
  .float-cta a { font-size: 0.82rem; padding: 11px 22px; width: 100%; text-align: center; }
  .toc { padding: 20px 22px; }
  .related h2 { font-size: 1.05rem; }
}
