/* ══════════════════════════════════════════
   コラム記事 共通スタイル
   （個別ページの <style> では :root と page-hero のみ定義）
   ══════════════════════════════════════════ */

:root {
  --ink: #0d0f14;
  --paper: #f5f2ed;
  --accent: #2d1b6e;
  --purple: #9b59b6;
  --purple-mid: #7b3fa0;
  --purple-light: #f0e8f8;
  --mid: #5a6070;
  --rule: #d4cfc7;
  --hero-dark: #1a1035;
  --hero-mid: #2d1b6e;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

/* ── HERO ── */
.page-hero {
  background: linear-gradient(145deg, var(--hero-dark), var(--hero-mid));
  padding: 120px 40px 52px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg, transparent, transparent 38px,
    rgba(155,89,182,0.04) 38px, rgba(155,89,182,0.04) 39px
  );
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), #c89de0, var(--purple));
}
.page-hero-inner {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.page-eyebrow {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-hero h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.08em;
  line-height: 1.55;
  margin-bottom: 14px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 11.5px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.06em;
}
.article-meta .series-tag {
  display: inline-block;
  border: 1px solid rgba(155,89,182,0.55);
  color: #c89de0;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  padding: 3px 12px;
}

/* ── MAIN ── */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 40px 100px;
  opacity: 0;
  animation: fadeUp 0.6s ease 0.1s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 記事本文 ── */
.article-lead {
  font-size: 15.5px;
  color: #2e2a25;
  line-height: 2.2;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
  font-weight: 300;
  letter-spacing: 0.03em;
}

.article-body h2 {
  font-family: 'Noto Serif JP', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin: 56px 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin: 36px 0 12px;
  padding-left: 12px;
  border-left: 3px solid var(--purple-mid);
}
.article-body p {
  font-size: 14px;
  color: #3a3530;
  margin-bottom: 18px;
  font-weight: 300;
}
.article-body strong { font-weight: 500; color: var(--ink); }
.article-body a { color: var(--purple-mid); }

/* 箇条書き */
.article-body ul {
  list-style: none;
  margin: 0 0 18px;
}
.article-body ul li {
  padding: 5px 0 5px 0;
  font-size: 13.5px;
  color: #3a3530;
  font-weight: 300;
  display: flex;
  gap: 10px;
}
.article-body ul li::before {
  content: '›';
  color: var(--purple-mid);
  flex-shrink: 0;
}
.article-body ol {
  margin: 0 0 18px 1.4em;
  font-size: 13.5px;
  color: #3a3530;
  font-weight: 300;
}
.article-body ol li { padding: 4px 0; }

/* ポイント（枠ではなくアクセント線で示す） */
.point-box {
  border-left: 2px solid var(--purple-mid);
  padding: 6px 0 6px 24px;
  margin: 30px 0;
}
.point-box-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 8px;
}
.point-box p:last-child, .point-box ul:last-child { margin-bottom: 0; }

/* テーブル */
.table-wrap { overflow-x: auto; margin: 24px 0; }
.article-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 13px;
  min-width: 560px;
}
.article-table th {
  background: #faf8f5;
  color: var(--accent);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  white-space: nowrap;
}
.article-table td {
  padding: 12px 16px;
  border: 1px solid var(--rule);
  color: #3a3530;
  font-weight: 300;
  vertical-align: top;
}

/* 注記・出典 */
.article-note {
  font-size: 11.5px;
  color: var(--mid);
  line-height: 1.9;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  margin: 28px 0;
}
.article-note a { color: var(--purple-mid); }

/* ── CTA ── */
.cta-box {
  margin-top: 64px;
  background: linear-gradient(145deg, var(--hero-dark), var(--hero-mid));
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}
.cta-box::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), #c89de0, var(--purple));
}
.cta-label {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 12px;
}
.cta-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 300;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1.6;
  margin-bottom: 10px;
}
.cta-text {
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 22px;
}
.cta-btn {
  display: inline-block;
  padding: 14px 44px;
  background: linear-gradient(135deg, #9b59b6, #7b3fa0);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.cta-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ── 記事フッターナビ ── */
.article-footer-nav {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.article-footer-nav a {
  font-size: 12.5px;
  color: var(--purple-mid);
  text-decoration: none;
  letter-spacing: 0.06em;
}
.article-footer-nav a:hover { text-decoration: underline; }

/* ── コラム一覧ページ（目次スタイル：枠ではなく罫線と余白で区切る） ── */
.column-series { margin-bottom: 76px; }
.column-series:last-child { margin-bottom: 0; }
.column-series-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}
.column-series-no {
  font-family: 'DM Serif Display', serif;
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--purple-mid);
  white-space: nowrap;
}
.column-series-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 21px;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.08em;
}
.column-series-desc {
  font-size: 13px;
  color: var(--mid);
  font-weight: 300;
  margin-bottom: 28px;
  max-width: 40em;
}
.column-list { border-top: 1px solid var(--rule); }
.column-item {
  display: grid;
  grid-template-columns: 64px 1fr 40px;
  gap: 22px;
  align-items: center;
  padding: 26px 6px;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  position: relative;
}
.column-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: -1px;
  width: 2px;
  background: var(--purple-mid);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.column-item:hover::before { transform: scaleY(1); }
.ci-num {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  opacity: 0.22;
  text-align: center;
  transition: opacity 0.3s, color 0.3s;
}
.column-item:hover .ci-num { opacity: 1; color: var(--purple-mid); }
.ci-theme {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--purple-mid);
  margin-bottom: 6px;
}
.ci-title {
  display: block;
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.04em;
  line-height: 1.65;
  transition: color 0.25s;
}
.column-item:hover .ci-title { color: var(--purple-mid); }
.ci-desc {
  display: block;
  font-size: 13px;
  color: var(--mid);
  font-weight: 300;
  line-height: 1.9;
  margin-top: 7px;
}
.ci-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 14px;
  color: var(--mid);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.column-item:hover .ci-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateX(4px);
}
/* 記事本文へのリンクを明示する導線（全項目に自動付与） */
.column-item > span:nth-child(2)::after {
  content: '記事を読む →';
  display: inline-block;
  margin-top: 14px;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--purple-mid);
  border-bottom: 1px solid rgba(123, 63, 160, 0.3);
  padding-bottom: 3px;
  transition: border-color 0.25s ease, transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.column-item:hover > span:nth-child(2)::after {
  border-bottom-color: var(--purple-mid);
  transform: translateX(4px);
}

@media (max-width: 640px) {
  .page-hero { padding: 110px 20px 40px; }
  main { padding: 36px 16px 72px; }
  .cta-box { padding: 28px 22px; }
  .column-item {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 22px 2px;
  }
  .ci-num { display: none; }
  .ci-arrow { display: none; }
  .ci-theme::before {
    content: attr(data-no) ' — ';
    font-family: 'DM Serif Display', serif;
    letter-spacing: 0.1em;
  }
  .ci-title { font-size: 16px; }
  .ci-desc { font-size: 12.5px; }
  .column-item > span:nth-child(2)::after { margin-top: 12px; font-size: 12px; }
  .column-series-head { flex-direction: column; gap: 4px; }
}
