/* ligacu journal styles — v2.0
 * デザイン方向性: BAKUNE インスパイア
 * ネイビー基調 / 余白 / 静かな上質感 / リカバリーを想起させるトーン
 */

:root {
  /* ── Color ── */
  --navy:        #1B2B4D;   /* ブランドネイビー（見出し・CTA・フッター） */
  --navy-deep:   #15213B;   /* 最も濃いネイビー（フッター背景・大見出し） */
  --navy-soft:   #3C4E73;   /* やや明るいネイビー（サブ見出し・リンク） */
  --gold:        #B8995A;   /* 控えめな金（カテゴリラベル等の差し色のみ） */
  --bg:          #FFFFFF;
  --bg-tint:     #F4F6FA;   /* 淡いブルーグレー（ヒーロー・CTAブロック背景） */
  --bg-soft:     #FAFBFD;
  --text:        #2C3142;   /* 本文（ネイビー寄りのチャコール） */
  --muted:       #6E768A;   /* 補足テキスト */
  --line:        #E3E7EF;   /* 罫線 */
  --line-soft:   #EEF1F6;

  --container:      720px;
  --container-wide: 1040px;
  --radius:         10px;
  --font-jp: 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-jp), -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.95;
  font-weight: 400;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); text-decoration: none; transition: opacity 0.2s, color 0.2s; }
a:hover { opacity: 0.75; }

.container {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Site header ─────────────────────── */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  letter-spacing: 0.15em;
  font-size: 18px;
  color: var(--navy);
}
.site-logo img {
  height: 28px;
  width: auto;
  display: block;
}
.site-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.site-nav a {
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
}
.site-nav .cta {
  background: var(--navy);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 600;
}
.site-nav .cta:hover { opacity: 1; background: var(--navy-soft); }
.site-nav .active { color: var(--navy); position: relative; }
.site-nav .active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ─── Breadcrumbs ─────────────────────── */
.breadcrumbs {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 12px;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.03em;
}
.breadcrumbs li + li::before {
  content: '/';
  color: var(--line);
}
.breadcrumbs a {
  color: var(--muted);
}
.breadcrumbs a:hover {
  color: var(--navy);
  opacity: 1;
}
.breadcrumbs [aria-current="page"] {
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* ─── Article page ────────────────────── */
.article-page { padding: 0 0 96px; }
.article {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* 記事ヘッダー：淡いネイビーグレーの帯で「リカバリー」感を出す */
.article-header {
  max-width: var(--container);
  margin: 0 auto 56px;
  padding: 64px 24px 48px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.article-category {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 20px;
}
.article-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.03em;
  color: var(--navy);
}

/* 公開日・更新日・読了時間 */
.article-meta-bar {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.05em;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.article-meta-bar .dot {
  opacity: 0.4;
}

/* ─── 目次（Table of Contents）──────────── */
.article-toc {
  background: var(--bg-tint);
  border-left: 3px solid var(--navy);
  padding: 26px 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 8px 0 56px;
}
.article-toc .toc-title {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.article-toc ol {
  list-style: none;
  counter-reset: toc;
}
.article-toc li {
  counter-increment: toc;
  margin: 10px 0;
  padding-left: 36px;
  position: relative;
  font-size: 14px;
  line-height: 1.7;
}
.article-toc li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.article-toc a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}
.article-toc a:hover {
  color: var(--navy);
  opacity: 1;
}

/* ─── Article body ────────────────────── */
.article-body { font-size: 16.5px; line-height: 2.05; color: var(--text); }
.article-body h1 {
  font-size: 27px; margin: 64px 0 22px; font-weight: 700;
  line-height: 1.6; color: var(--navy);
}
.article-body h2 {
  font-size: 23px;
  margin: 64px 0 20px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--navy);
  padding-left: 16px;
  border-left: 4px solid var(--navy);
}
.article-body h3 {
  font-size: 18.5px; margin: 40px 0 14px; font-weight: 700; color: var(--navy-soft);
}
.article-body h4 {
  font-size: 16px; margin: 28px 0 10px; font-weight: 700; color: var(--navy-soft);
}
.article-body p { margin: 18px 0; }
.article-body ul, .article-body ol { margin: 18px 0 18px 26px; }
.article-body li { margin: 10px 0; line-height: 1.95; }
.article-body li::marker { color: var(--navy-soft); }
.article-body a {
  color: var(--navy-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
}
.article-body a:hover { text-decoration-color: var(--navy-soft); opacity: 1; }
.article-body strong { font-weight: 700; color: var(--navy); }
.article-body em { font-style: normal; font-weight: 600; }
.article-body blockquote {
  border-left: 3px solid var(--gold);
  background: var(--bg-tint);
  padding: 16px 22px;
  margin: 28px 0;
  color: var(--muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 56px 0;
}
.article-body code {
  background: var(--bg-tint);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Menlo', 'Consolas', monospace;
  color: var(--navy);
}
.article-body pre {
  background: var(--navy-deep);
  color: #E8ECF4;
  padding: 22px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 28px 0;
}
.article-body pre code { background: none; padding: 0; color: inherit; }

/* ─── 著者プロフィールBOX（E-E-A-T）───── */
.author-box {
  background: var(--bg-tint);
  border-radius: var(--radius);
  padding: 30px 34px;
  margin: 64px 0 0;
  border-top: 3px solid var(--navy);
}
.author-box-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--navy);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.author-box-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.author-box-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  font-size: 13.5px;
  align-items: baseline;
}
.author-box-key {
  color: var(--muted);
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 600;
}
.author-box-val {
  color: var(--text);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.author-box-row--supervisor .author-box-val {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.author-box-supervisor-name {
  font-weight: 700;
  color: var(--navy);
  font-size: 14.5px;
  letter-spacing: 0.04em;
}
.author-box-supervisor-cred {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.75;
  letter-spacing: 0.02em;
}
.author-box-supervisor-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-decoration: none;
  font-weight: 600;
}
.author-box-supervisor-link:hover {
  text-decoration: underline;
  opacity: 1;
}

/* 著者BOX：監修者写真サムネ（円形） */
.author-box-supervisor {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 16px;
  align-items: start;
}
.author-box-supervisor-photo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line);
}
.author-box-supervisor-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

/* ─── 監修者プロフィールページ専用 ─── */
.supervisor-page .article-header {
  text-align: center;
}
.supervisor-photo-hero {
  display: block;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 28px;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px rgba(27, 43, 77, 0.12);
}
.author-box-bio {
  font-size: 12.5px;
  line-height: 1.95;
  color: var(--muted);
  padding-top: 18px;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ─── Article CTA footer ──────────────── */
.article-footer { margin-top: 56px; }
.cta-block {
  background: var(--navy);
  color: #fff;
  padding: 56px 40px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* 上部に金の細いアクセント */
.cta-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.cta-block h2 {
  font-size: 21px;
  margin-bottom: 16px;
  border: none;
  padding: 0;
  font-weight: 700;
  color: #fff;
  line-height: 1.6;
}
.cta-block p {
  font-size: 14px;
  color: #C5CCDA;
  margin-bottom: 30px;
  line-height: 2;
}
.cta-button {
  display: inline-block;
  background: #fff;
  color: var(--navy) !important;
  padding: 15px 44px;
  border-radius: 999px;
  font-size: 14.5px;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.2s;
}
.cta-button:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

/* ─── Journal index ───────────────────── */
.journal-index { padding: 0 0 96px; }
.journal-header {
  max-width: var(--container-wide);
  margin: 0 auto 64px;
  padding: 80px 24px 56px;
  text-align: center;
  background: var(--bg-tint);
  border-radius: 0 0 24px 24px;
}
.journal-header h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 22px;
  color: var(--navy);
}
.journal-header p {
  color: var(--muted);
  font-size: 15px;
  line-height: 2;
}
.journal-header .count {
  display: inline-block;
  margin-top: 20px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  font-weight: 700;
}
.article-list {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.article-list li {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.18s, box-shadow 0.22s, border-color 0.2s;
}
.article-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(27, 43, 77, 0.1);
  border-color: var(--navy-soft);
}
.article-list a {
  display: block;
  padding: 30px 28px;
  height: 100%;
}
.article-list a:hover { opacity: 1; }
.article-list .article-category {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 700;
}
.article-list h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.65;
  color: var(--navy);
}
.article-list .article-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
  margin: 0;
}

/* ─── Site footer ─────────────────────── */
.site-footer {
  background: var(--navy-deep);
  padding: 56px 0;
  margin-top: 0;
}
.site-footer .container { text-align: center; }
.footer-brand {
  font-weight: 700;
  margin-bottom: 10px;
  font-size: 14px;
  color: #fff;
  letter-spacing: 0.06em;
}
.footer-meta {
  color: #8A93A8;
  font-size: 12px;
  letter-spacing: 0.04em;
}

/* ─── Mobile ──────────────────────────── */
@media (max-width: 720px) {
  .article-header { padding: 44px 20px 36px; margin-bottom: 40px; }
  .article-title { font-size: 23px; }
  .article-meta-bar { font-size: 11px; gap: 6px; }
  .article-body { font-size: 15.5px; }
  .article-body h2 { font-size: 20px; margin: 48px 0 16px; }
  .article-body h3 { font-size: 17px; }
  .journal-header { padding: 56px 20px 44px; }
  .journal-header h1 { font-size: 26px; }
  .article-list { grid-template-columns: 1fr; gap: 18px; }
  .cta-block { padding: 44px 24px; }
  .container { padding: 0 18px; }
  .article { padding: 0 20px; }
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 13px; }
  .article-toc { padding: 22px 22px; margin: 8px 0 44px; }
  .article-toc li { padding-left: 32px; font-size: 13.5px; }
  .author-box { padding: 24px 22px; }
  .author-box-row { grid-template-columns: 60px 1fr; font-size: 13px; }
  .breadcrumbs { font-size: 11px; }
  .author-box-supervisor { grid-template-columns: 52px 1fr; gap: 14px; }
  .author-box-supervisor-photo { width: 52px; height: 52px; }
  .supervisor-photo-hero { width: 104px; height: 104px; margin-bottom: 22px; }
}
