/* ========================================================================
   Kusunavi Column — 医師監修コラム
   LP (webpage/index.html) のデザイントークンを継承
   ======================================================================== */

:root {
  --primary: #B0654A;
  --primary-dark: #9A5740;
  --accent: #E8837C;
  --accent-light: #FADCD9;
  --secondary: #5EAE62;
  --secondary-light: #E8F5E9;
  --bg: #FAF5F0;
  --surface: #FFFFFF;
  --text: #2C2220;
  --text-light: #5C504A;
  --text-muted: #9B8E8E;
  --border: #E8DDD5;
  --divider: #F0E8E2;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-xs: 0 1px 2px rgba(44,34,32,0.04);
  --shadow-sm: 0 2px 8px rgba(44,34,32,0.06);
  --shadow-md: 0 8px 24px rgba(176,101,74,0.08);
  --shadow-lg: 0 16px 48px rgba(176,101,74,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.skip-link { position: absolute; top: -100%; left: 16px; padding: 12px 24px; background: var(--primary); color: #fff; border-radius: 0 0 8px 8px; font-weight: 600; z-index: 200; transition: top .2s; }
.skip-link:focus { top: 0; }

/* ========== Site header (LP と同じトーン) ========== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 245, 240, 0.92);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--divider);
}
.nav {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; color: var(--text); }
.logo:hover { text-decoration: none; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-light); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-links a.is-active { color: var(--primary); }
.nav-cta {
  background: var(--primary); color: #fff !important; padding: 9px 18px; border-radius: 999px;
  font-size: 14px !important; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--primary-dark); }
@media (max-width: 720px) {
  .nav-links { gap: 14px; }
  .nav-links li:nth-child(-n+2) { display: none; } /* 機能 / デモ をモバイルで隠す */
  .nav-links a { font-size: 14px; }
}

/* ========== Breadcrumb ========== */
.breadcrumb {
  max-width: 1180px; margin: 0 auto; padding: 24px;
  font-size: 13px; color: var(--text-muted);
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb-sep { margin: 0 8px; color: var(--text-muted); }
.breadcrumb-current { color: var(--text); font-weight: 600; }

/* ========== Badges ========== */
.badge {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  letter-spacing: 0.02em;
}
.badge-urgent      { background: var(--accent-light); color: var(--accent); }
.badge-preparation { background: var(--secondary-light); color: var(--secondary); }
.badge-pillar      { background: linear-gradient(135deg, #FFE4D6, #FCD0BD); color: var(--primary); }

/* ========================================================================
   Column Index (/column/) — Editorial List
   ======================================================================== */

.column-index { max-width: 920px; margin: 0 auto; padding: 0 24px 80px; }

.mobile-only { display: none; }
@media (max-width: 640px) { .mobile-only { display: inline; } }

.column-index-header { padding: 24px 0 48px; }
.column-index-eyebrow {
  font-size: 13px; font-weight: 700; color: var(--primary);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.column-index-header h1 {
  font-size: 36px; font-weight: 800; color: var(--text);
  margin-bottom: 18px; letter-spacing: -0.01em; line-height: 1.4;
}
@media (max-width: 640px) { .column-index-header h1 { font-size: 26px; } }
.column-index-intro {
  font-size: 15px; color: var(--text-light); line-height: 1.95;
  max-width: 720px;
}

/* ========== Pillar Banner (top hero) ========== */
.column-pillar-section { margin-bottom: 64px; }
.pillar-banner {
  display: grid; grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--border); border-radius: 28px;
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform .3s var(--ease-expo), box-shadow .3s var(--ease-expo);
  color: var(--text);
}
.pillar-banner:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.pillar-banner-thumb {
  aspect-ratio: 21/9;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pillar-banner-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pillar-banner-body { padding: 36px 40px 38px; }
.pillar-banner-body .badge { margin-bottom: 16px; }
.pillar-banner-title {
  font-size: 28px; font-weight: 800; line-height: 1.45;
  color: var(--text); margin-bottom: 14px; letter-spacing: -0.005em;
}
.pillar-banner-desc {
  font-size: 15.5px; color: var(--text-light); line-height: 1.85;
  margin-bottom: 20px;
}
.pillar-banner-meta {
  font-size: 13px; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-bottom: 18px;
}
.pillar-banner-meta .meta-sep { color: var(--border); }
.pillar-banner-cta {
  font-weight: 700; color: var(--primary); font-size: 15px;
  display: inline-flex; align-items: center; gap: 6px;
}
@media (max-width: 640px) {
  .pillar-banner-thumb { aspect-ratio: 16/9; }
  .pillar-banner-body { padding: 24px 22px 28px; }
  .pillar-banner-title { font-size: 22px; }
}

/* ========== Series Section ========== */
.column-section { margin-bottom: 56px; }
.column-section-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--divider);
}
.column-section-badge { font-size: 12px; padding: 5px 12px; }
.column-section-heading {
  font-size: 20px; font-weight: 800; color: var(--text);
  flex: 1;
}
.column-section-count {
  font-size: 13px; color: var(--text-muted); font-weight: 600;
}

/* ========== Article Row ========== */
.column-rows { display: flex; flex-direction: column; gap: 4px; }
.article-row {
  display: grid; grid-template-columns: 220px 1fr 32px;
  gap: 28px; align-items: center;
  padding: 22px 22px;
  border-radius: 16px;
  transition: background .2s var(--ease-expo), transform .2s var(--ease-expo);
  color: var(--text);
}
.article-row:hover {
  background: var(--surface);
  transform: translateX(2px);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
.article-row + .article-row {
  border-top: 1px solid var(--divider);
  border-radius: 0;
}
.article-row + .article-row:hover { border-radius: 16px; border-top-color: transparent; }

.article-row-thumb {
  aspect-ratio: 3/2; border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
}
.article-row-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-row-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.article-row-title {
  font-size: 17px; font-weight: 700; line-height: 1.55;
  color: var(--text);
}
.article-row-desc {
  font-size: 13.5px; color: var(--text-light); line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-row-meta {
  font-size: 12px; color: var(--text-muted);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin-top: 4px;
}
.article-row-meta .meta-sep { color: var(--border); }

.article-row-arrow {
  font-size: 20px; color: var(--text-muted);
  transition: transform .2s var(--ease-expo), color .2s;
  text-align: center;
}
.article-row:hover .article-row-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

/* Solemn variant (記事 5) */
.article-row-solemn .article-row-title { color: var(--text-light); }

@media (max-width: 720px) {
  .article-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 14px;
  }
  .article-row-thumb { aspect-ratio: 16/9; }
  .article-row-arrow { display: none; }
  .article-row-title { font-size: 16px; }
  .article-row + .article-row { border-radius: 0; }
}

/* Eyecatch background variants */
.eyecatch-urgent      { background: linear-gradient(135deg, #FFF0EE 0%, #FADCD9 100%); }
.eyecatch-preparation { background: linear-gradient(135deg, #F0F7F1 0%, #E8F5E9 100%); }
.eyecatch-pillar      { background: linear-gradient(135deg, #FFF7F0 0%, #FCE4D6 100%); }
.eyecatch-solemn      { background: var(--surface); border: 1px solid var(--divider); }

/* CTA at bottom of index */
.column-cta {
  background: linear-gradient(135deg, #FFF7F0 0%, #FCE4D6 100%);
  border-radius: 24px; padding: 40px 32px; text-align: center;
  margin-top: 48px;
}
.column-cta h2 { font-size: 24px; font-weight: 800; margin-bottom: 12px; }
.column-cta p { font-size: 15px; color: var(--text-light); margin-bottom: 24px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-badges { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-badges img { height: 50px; }

/* ========================================================================
   Article (/column/<slug>.html)
   ======================================================================== */

.article-page { max-width: 1180px; margin: 0 auto; padding: 0 24px 64px; }

.article {
  max-width: 760px; margin: 0 auto;
  background: var(--surface); border-radius: 24px;
  padding: 48px;
  box-shadow: var(--shadow-md);
}
@media (max-width: 720px) { .article { padding: 28px 20px; border-radius: 16px; } }

/* Article header */
.article-header { margin-bottom: 32px; }
.article-header .badge { margin-bottom: 16px; }
.article-title {
  font-size: 32px; font-weight: 800; line-height: 1.4; letter-spacing: -0.005em;
  color: var(--text); margin-bottom: 18px;
}
@media (max-width: 720px) { .article-title { font-size: 24px; } }

.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-muted); margin-bottom: 28px;
}
.meta-monitored { color: var(--primary); font-weight: 700; }
.meta-sep { color: var(--border); }
.article-eyecatch {
  border-radius: 16px; aspect-ratio: 16/9;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.article-eyecatch img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* TOC */
.article-toc {
  background: var(--bg); border: 1px solid var(--divider); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 36px;
}
.article-toc summary {
  font-weight: 700; cursor: pointer; padding: 4px 0;
  color: var(--text); font-size: 14px;
}
.article-toc ol { margin-top: 12px; padding-left: 24px; font-size: 14px; }
.article-toc li { margin-bottom: 6px; }
.article-toc a { color: var(--text-light); }
.article-toc a:hover { color: var(--primary); }

/* Article body typography */
.article-body { font-size: 17px; line-height: 1.85; color: var(--text); }
.article-body > * + * { margin-top: 24px; }
.article-body h2 {
  font-size: 26px; font-weight: 800; line-height: 1.45;
  margin-top: 56px; margin-bottom: 16px;
  padding-left: 14px; border-left: 4px solid var(--primary);
  scroll-margin-top: 80px;
}
.article-body h3 {
  font-size: 19px; font-weight: 700; line-height: 1.5;
  margin-top: 36px; margin-bottom: 8px;
  color: var(--text);
}
.article-body p { line-height: 1.85; }
.article-body strong { color: var(--primary); font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 1.6em; }
.article-body li { margin-bottom: 8px; line-height: 1.8; }
.article-body li::marker { color: var(--primary); }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  background: rgba(250, 220, 217, 0.25);
  padding: 14px 20px; border-radius: 0 8px 8px 0;
  font-size: 16px; color: var(--text-light);
}
.article-body hr {
  border: none; border-top: 1px solid var(--divider);
  margin: 40px 0;
}
.article-body a {
  color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.article-body code {
  background: var(--bg); padding: 2px 6px; border-radius: 4px;
  font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 14px;
}
.article-body table {
  width: 100%; border-collapse: collapse; margin: 16px 0;
  font-size: 15px;
}
.article-body th, .article-body td {
  border: 1px solid var(--border); padding: 10px 14px;
  text-align: left;
}
.article-body th { background: var(--bg); font-weight: 700; }

/* Tone: solemn (記事 5) — 装飾抑制 */
[data-tone="solemn"] .article-title { color: var(--text); }
[data-tone="solemn"] .article-body strong { color: var(--text); }
[data-tone="solemn"] .article-body h2 { border-left-color: var(--text-light); }
[data-tone="solemn"] .article-body li::marker { color: var(--text-light); }
[data-tone="solemn"] .article-toc summary { color: var(--text-light); }

/* Article footer */
.article-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--divider); }
.article-monitored-note {
  font-size: 13px; color: var(--text-muted); line-height: 1.8;
  background: var(--bg); padding: 14px 18px; border-radius: 10px;
}

/* Related */
.related-section { max-width: 760px; margin: 48px auto 0; }
.related-title { font-size: 18px; font-weight: 800; margin-bottom: 18px; color: var(--text); }
.related-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.related-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px;
  transition: transform .2s var(--ease-expo), box-shadow .2s var(--ease-expo);
  color: var(--text);
}
.related-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.related-card .badge { font-size: 11px; padding: 3px 10px; margin-bottom: 8px; }
.related-card h4 { font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--text); margin-bottom: 10px; }
.related-card-cta { font-size: 12px; color: var(--primary); font-weight: 700; }
.related-back { margin-top: 24px; font-size: 14px; }

/* CTA at bottom of article */
.article-cta {
  max-width: 760px; margin: 56px auto 0;
  background: linear-gradient(135deg, #FFF7F0 0%, #FCE4D6 100%);
  border-radius: 20px; padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.article-cta h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.article-cta p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }

.article-cta-solemn {
  max-width: 760px; margin: 48px auto 0;
  text-align: center; padding: 20px;
  border-top: 1px solid var(--divider);
}
.article-cta-solemn p {
  font-size: 14px; color: var(--text-muted); font-style: italic;
}

/* ========================================================================
   Site footer
   ======================================================================== */
.site-footer {
  background: var(--text); color: #fff;
  padding: 48px 24px;
  margin-top: 80px;
}
.site-footer-inner { max-width: 1180px; margin: 0 auto; }
.site-footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin-bottom: 8px; }
.site-footer-tagline { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 16px; }
.site-footer-links a { color: rgba(255,255,255,0.85); font-size: 14px; }
.site-footer-links a:hover { color: #fff; }
.site-footer-copyright { font-size: 12px; color: rgba(255,255,255,0.5); }
