/*
 * 熊本大人案内所 - Editorial Magazine Theme (Castle-Town Green)
 * Layered on top of Cocoon child theme
 */

:root {
  --ed-bg: #f5efe4;          /* parchment ivory */
  --ed-bg-2: #fffdf5;        /* off-white card bg */
  --ed-text: #1a2c20;        /* dark green-tinted text */
  --ed-text-2: #4a5a4e;
  --ed-muted: #6e7d72;
  --ed-line: #d8d3c4;
  --ed-accent: #2d5a3a;      /* deep forest green (primary) */
  --ed-rose: #4a7c5a;        /* medium green (secondary accent) */
  --ed-gold: #b39433;        /* antique gold / yamabuki */
  --ed-black: #0a1912;       /* very dark green */
  --ed-header-grad: linear-gradient(135deg, #0a1912 0%, #1a3324 30%, #2d5a3a 70%, #4a7c5a 100%);
}

/* グローバル */
body.editorial-theme {
  background: var(--ed-bg);
  color: var(--ed-text);
  font-family: "Noto Serif JP", "Yu Mincho", "ヒラギノ明朝 ProN", serif;
  font-size: 16px;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
}
body.editorial-theme a { color: inherit; text-decoration: none; }
body.editorial-theme img { max-width: 100%; height: auto; display: block; }
body.editorial-theme .ed-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
body.editorial-theme #main, body.editorial-theme #content, body.editorial-theme .main { background: transparent; }

/* Cocoonの装飾を抑制 */
body.editorial-theme #header,
body.editorial-theme #footer,
body.editorial-theme .header-container,
body.editorial-theme .footer-bottom,
body.editorial-theme .navi-footer,
body.editorial-theme .pankuzu,
body.editorial-theme .go-to-top { display: none !important; }
body.editorial-theme #sidebar { display: none !important; }
body.editorial-theme .main { width: 100% !important; }
body.editorial-theme .inner-wrap { display: block !important; }

/* マストヘッド — 色付き（ボルドーグラデ） */
.ed-masthead {
  background: var(--ed-header-grad);
  border-bottom: 3px solid var(--ed-gold);
  padding: 24px 0 8px;
  color: #fdf9e8;
  position: relative;
}
.ed-masthead::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 1px;
  background: rgba(255,255,255,0.15);
}
.ed-masthead-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(253,244,241,0.8);
  margin-bottom: 8px;
  letter-spacing: 0.15em;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
}
.ed-brand-jp {
  text-align: center;
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0.3em;
  padding: 8px 0 16px;
  color: #fdf9e8;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.ed-brand-jp a { color: inherit; }
.ed-brand-tagline {
  text-align: center;
  font-style: italic;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 18px;
  color: var(--ed-gold);
  letter-spacing: 0.18em;
  margin-bottom: 16px;
}
.ed-nav {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 16px 0 4px;
  border-top: 1px solid rgba(253,244,241,0.2);
  font-size: 13px;
  letter-spacing: 0.15em;
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  flex-wrap: wrap;
}
.ed-nav a { color: #fdf9e8; transition: color 0.2s; }
.ed-nav a:hover { color: var(--ed-gold); }

/* ヒーロー */
.ed-hero {
  padding: 56px 0 24px;
  text-align: center;
}
.ed-hero-cover-label {
  font-size: 11px;
  letter-spacing: 0.4em;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  color: var(--ed-rose);
  margin-bottom: 16px;
}
.ed-hero-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.2em;
  margin: 16px 0 12px;
  color: var(--ed-text);
}
.ed-hero-tagline {
  font-size: 19px;
  color: var(--ed-text-2);
  margin-bottom: 32px;
  line-height: 1.9;
}
.ed-hero-tagline .ed-accent { color: var(--ed-accent); font-weight: 700; }
.ed-hero-tagline .ed-rose-accent { color: var(--ed-rose); font-weight: 700; }
a.ed-hero-cta,
.ed-hero .ed-hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--ed-accent);
  color: #fff;
  border: 1.5px solid var(--ed-accent);
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(107,31,46,0.25);
}
a.ed-hero-cta:hover,
.ed-hero .ed-hero-cta:hover {
  background: var(--ed-rose);
  border-color: var(--ed-rose);
  color: #fff;
  transform: translateY(-1px);
}

.ed-cover-h {
  font-size: 38px;
  line-height: 1.5;
  font-weight: 900;
  margin: 0 0 32px;
  color: var(--ed-text);
}
.ed-cover-h a { color: inherit; }

/* カバー記事 */
.ed-cover {
  padding: 32px 0 64px;
}
.ed-cover-label {
  font-size: 11px;
  letter-spacing: 0.4em;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  color: var(--ed-accent);
  font-weight: 700;
  margin-bottom: 16px;
}
.ed-cover-image {
  position: relative;
  margin: 0 auto 48px;
  max-width: 960px;
}
.ed-cover-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(107,31,46,0.15);
}
.ed-cover-text {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  padding: 0 24px;
}
.ed-cover-text .ed-issue {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ed-gold);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}
.ed-cover-text h1, .ed-cover-text .ed-cover-h {
  font-size: 38px;
  line-height: 1.55;
  font-weight: 900;
  margin-bottom: 32px;
}
.ed-cover-text h1 .ed-accent, .ed-cover-text .ed-cover-h .ed-accent { color: var(--ed-accent); }
.ed-cover-text .ed-lead {
  font-size: 17px;
  color: var(--ed-text-2);
  margin-bottom: 32px;
  line-height: 2;
}
.ed-cover-text .ed-byline {
  font-size: 13px;
  color: var(--ed-muted);
  margin-bottom: 24px;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  letter-spacing: 0.1em;
}
.ed-read-more {
  display: inline-block;
  padding: 14px 32px;
  border: 2px solid var(--ed-accent);
  color: var(--ed-accent);
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border-radius: 999px;
  background: transparent;
}
.ed-read-more:hover { background: var(--ed-accent); color: #fff; }

/* セクション */
.ed-section { padding: 56px 0 64px; }
.ed-section-rule { border-top: 1px solid var(--ed-line); padding-top: 32px; }
.ed-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.ed-section-head-left { display: flex; align-items: baseline; gap: 24px; }
.ed-section-num {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 64px;
  font-weight: 700;
  font-style: italic;
  color: var(--ed-rose);
  line-height: 1;
}
.ed-section-title-wrap .ed-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ed-muted);
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-weight: 700;
  font-style: italic;
}
.ed-section-title-wrap h2 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.02em;
  margin-top: 4px;
  color: var(--ed-text);
}
.ed-section-link {
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ed-accent);
}
.ed-section-link:hover { color: var(--ed-rose); }

/* セクション末尾のすべて見るリンク */
.ed-section-footer-link {
  text-align: center;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--ed-line);
}
.ed-section-footer-link a {
  display: inline-block;
  padding: 14px 36px;
  border: 1.5px solid var(--ed-accent);
  font-size: 14px;
  letter-spacing: 0.15em;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--ed-accent);
  background: transparent;
  transition: background 0.2s, color 0.2s;
  border-radius: 999px;
}
.ed-section-footer-link a:hover {
  background: var(--ed-accent);
  color: #fff;
}

/* マグカード（3カラム） */
.ed-mag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
}
.ed-mag-card { color: var(--ed-text); }
.ed-mag-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 12px;
  transition: transform 0.3s;
}
.ed-mag-card:hover img { transform: translateY(-2px); }
.ed-mag-cat {
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--ed-accent);
  font-weight: 900;
  font-family: "Noto Sans JP", sans-serif;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.ed-mag-card h3 {
  font-size: 22px;
  line-height: 1.6;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--ed-text);
  letter-spacing: 0.01em;
}
.ed-mag-card:hover h3 { color: var(--ed-accent); }
.ed-mag-card .ed-desc {
  font-size: 14px;
  color: var(--ed-text-2);
  line-height: 1.85;
  margin-bottom: 12px;
}
.ed-mag-card .ed-byline {
  font-size: 11px;
  color: var(--ed-muted);
  letter-spacing: 0.15em;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
}

/* 2カラム横レイアウト（sparseカテゴリ用） */
.ed-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.ed-story-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
  color: var(--ed-text);
}
.ed-story-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 12px; }
.ed-story-card h3 {
  font-size: 20px;
  line-height: 1.6;
  font-weight: 900;
  margin-bottom: 10px;
  color: var(--ed-text);
}
.ed-story-card:hover h3 { color: var(--ed-accent); }
.ed-story-card .ed-desc {
  font-size: 13px;
  color: var(--ed-text-2);
  line-height: 1.8;
  margin: 6px 0 10px;
}
.ed-story-card .ed-byline {
  font-size: 11px;
  color: var(--ed-muted);
  letter-spacing: 0.15em;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
}

/* CTAバナー */
.ed-cta-banner {
  margin: 80px 0 0;
  padding: 100px 64px;
  background: var(--ed-header-grad);
  color: #fff;
  text-align: center;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}
.ed-cta-banner::before {
  content: "";
  position: absolute;
  top: 24px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 1px;
  background: var(--ed-gold);
}
.ed-cta-banner .ed-label {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.4em;
  color: var(--ed-gold);
  margin-top: 24px;
  margin-bottom: 24px;
  display: block;
}
.ed-cta-banner h3 {
  font-size: 44px;
  line-height: 1.5;
  margin-bottom: 24px;
  color: #fff;
}
.ed-cta-banner h3 .ed-accent { color: var(--ed-gold); }
.ed-cta-banner p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  margin-bottom: 40px;
}
.ed-cta-banner .ed-read-more {
  border-color: var(--ed-gold);
  color: var(--ed-gold);
  background: transparent;
}
.ed-cta-banner .ed-read-more:hover { background: var(--ed-gold); color: var(--ed-black); border-color: var(--ed-gold); }

/* フッター */
.ed-footer {
  margin-top: 100px;
  padding: 80px 0 32px;
  background: var(--ed-black);
  color: #e0d6b8;
  border-top: 3px solid var(--ed-gold);
}
.ed-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.ed-footer-brand .ed-brand-jp {
  font-size: 28px;
  text-align: left;
  padding: 0;
  margin-bottom: 8px;
  letter-spacing: 0.15em;
  color: #fdf9e8;
  text-shadow: none;
}
.ed-footer-brand p { font-size: 13px; color: rgba(232,212,207,0.8); line-height: 1.85; }
.ed-footer-col h4 {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
  color: var(--ed-gold);
}
.ed-footer-col a { display: block; font-size: 14px; margin-bottom: 10px; color: #e0d6b8; transition: color 0.2s; }
.ed-footer-col a:hover { color: var(--ed-rose); }
.ed-footer-meta {
  padding-top: 24px;
  border-top: 1px solid rgba(232,212,207,0.15);
  font-size: 11px;
  color: rgba(232,212,207,0.6);
  text-align: center;
  letter-spacing: 0.2em;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
}

/* シングル記事ページ */
.ed-article {
  background: var(--ed-bg-2);
  padding: 64px 0 120px;
}
.ed-article-inner { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.ed-article-hero { max-width: 1000px; margin: 0 auto 48px; padding: 0 24px; }
.ed-article-cat {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ed-accent);
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  text-align: center;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.ed-article-issue {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--ed-gold);
  text-align: center;
  margin-bottom: 12px;
}
.ed-article-title {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 32px;
  color: var(--ed-text);
}
.ed-article-byline {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ed-muted);
  letter-spacing: 0.15em;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--ed-line);
}
.ed-article-thumb {
  width: 100%;
  margin-bottom: 48px;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(107,31,46,0.12);
}
.ed-article-body { font-size: 17px; line-height: 2.1; color: var(--ed-text); }
.ed-article-body h2 {
  font-size: 28px;
  font-weight: 900;
  margin: 64px 0 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ed-accent);
  letter-spacing: 0.02em;
  color: var(--ed-text);
}
.ed-article-body h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 48px 0 16px;
  padding-left: 16px;
  border-left: 4px solid var(--ed-rose);
}
.ed-article-body p { margin-bottom: 24px; }
.ed-article-body a { color: var(--ed-accent); border-bottom: 1px solid currentColor; }
.ed-article-body a:hover { color: var(--ed-rose); }
.ed-article-body strong { color: var(--ed-text); font-weight: 700; }
.ed-article-body ul, .ed-article-body ol { margin: 16px 0 24px 24px; }
.ed-article-body li { margin-bottom: 8px; }
.ed-article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.ed-article-body th, .ed-article-body td {
  padding: 12px 16px;
  border: 1px solid var(--ed-line);
  text-align: left;
}
.ed-article-body th {
  background: var(--ed-bg);
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: var(--ed-accent);
}
.ed-article-body figure.wp-block-table { margin: 24px 0; }
.ed-article-body blockquote {
  border-left: 4px solid var(--ed-rose);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--ed-bg);
  font-style: italic;
  color: var(--ed-text-2);
  border-radius: 0 8px 8px 0;
}

/* 前後の記事ナビ */
.ed-post-nav {
  padding: 56px 0 24px;
  background: var(--ed-bg-2);
}
.ed-post-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.ed-post-nav-item {
  display: block;
  padding: 24px 28px;
  border: 1px solid var(--ed-line);
  color: var(--ed-text);
  transition: border-color 0.2s, background 0.2s;
  min-height: 100px;
  border-radius: 12px;
}
.ed-post-nav-item:hover {
  border-color: var(--ed-accent);
  background: var(--ed-bg);
}
.ed-post-nav-next { text-align: right; }
.ed-post-nav-label {
  font-size: 12px;
  color: var(--ed-muted);
  letter-spacing: 0.2em;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  margin-bottom: 10px;
}
.ed-post-nav-item:hover .ed-post-nav-label { color: var(--ed-accent); }
.ed-post-nav-title {
  font-size: 15px;
  line-height: 1.65;
  font-weight: 700;
}

/* 記事末尾タグ */
.ed-article-tags {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--ed-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ed-article-tags-label {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ed-muted);
  letter-spacing: 0.2em;
  margin-right: 8px;
}
.ed-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--ed-bg);
  border: 1px solid var(--ed-line);
  font-size: 13px;
  color: var(--ed-text-2);
  border-radius: 99px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.ed-tag:hover {
  background: var(--ed-accent);
  color: #fff;
  border-color: var(--ed-accent);
}

/* 年齢確認ページ専用レイアウト */
.ed-article-age { padding-top: 24px !important; }
.ed-article-age .ed-article-age-issue {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ed-gold);
  letter-spacing: 0.3em;
  text-align: center;
  margin-bottom: 12px;
}
.ed-article-age .ed-article-age-h1 {
  font-size: 36px;
  font-weight: 900;
  text-align: center;
  margin: 0 auto 32px;
  padding: 0 24px;
  max-width: 760px;
  letter-spacing: 0.08em;
  color: var(--ed-text);
}
.ed-article-age .ed-article-body > h2:first-child { display: none; }

/* 年齢確認ページ カードデザイン */
.ed-article-body .age-gate-wrap {
  max-width: 680px;
  margin: 24px auto 40px;
  padding: 0;
  background: var(--ed-bg);
  border: 1px solid var(--ed-line);
  border-radius: 16px;
  overflow: hidden;
  font-family: "Noto Serif JP", "Yu Mincho", serif;
  box-shadow: 0 8px 32px rgba(107,31,46,0.12);
  position: relative;
}
.ed-article-body .age-gate-wrap::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--ed-accent), var(--ed-rose), var(--ed-gold), var(--ed-rose), var(--ed-accent));
}
.ed-article-body .age-gate-wrap h2 {
  margin: 0 !important;
  background: var(--ed-accent);
  color: #fdf9e8 !important;
  font-family: "Noto Serif JP", serif !important;
  font-size: 28px !important;
  font-weight: 900;
  text-align: center;
  padding: 32px 24px 28px !important;
  border: none !important;
  letter-spacing: 0.15em;
  position: relative;
}
.ed-article-body .age-gate-wrap h2::before,
.ed-article-body .age-gate-wrap h2::after {
  content: "❖";
  color: var(--ed-gold);
  font-size: 14px;
  margin: 0 16px;
  vertical-align: middle;
}
.ed-article-body .age-gate-wrap p {
  color: var(--ed-text) !important;
  text-align: center;
  padding: 0 40px;
  font-size: 15px !important;
  line-height: 2 !important;
  margin: 16px 0 !important;
  font-family: "Noto Serif JP", serif;
}
.ed-article-body .age-gate-wrap p:first-of-type {
  padding-top: 36px;
  color: var(--ed-text-2) !important;
}
.ed-article-body .age-gate-wrap p strong {
  color: var(--ed-accent) !important;
  font-weight: 700;
  font-size: 17px;
  display: inline-block;
  padding-top: 4px;
}
.ed-article-body .age-gate-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 20px 40px 36px;
  flex-wrap: wrap;
}
.ed-article-body .age-gate-btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 999px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.15em;
  border-bottom: none !important;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  min-width: 200px;
  text-align: center;
  font-family: "Noto Sans JP", sans-serif;
}
.ed-article-body .age-gate-btn-enter {
  background: var(--ed-accent) !important;
  color: #fff !important;
  border: 1.5px solid var(--ed-accent) !important;
}
.ed-article-body .age-gate-btn-enter:hover {
  background: var(--ed-rose) !important;
  border-color: var(--ed-rose) !important;
  color: #fff !important;
}
.ed-article-body .age-gate-btn-exit {
  background: transparent !important;
  color: var(--ed-text-2) !important;
  border: 1.5px solid var(--ed-line) !important;
}
.ed-article-body .age-gate-btn-exit:hover {
  background: var(--ed-bg-2) !important;
  border-color: var(--ed-text-2) !important;
  color: var(--ed-text) !important;
}
.ed-article-body .age-gate-notice {
  margin: 0 40px;
  padding: 24px 0 32px;
  border-top: 1px solid var(--ed-line);
  font-size: 12px;
  color: var(--ed-muted);
  text-align: center;
  line-height: 1.85;
  font-family: "Noto Serif JP", serif;
  font-style: italic;
}

/* 関連記事 */
.ed-related {
  background: var(--ed-bg);
  padding: 80px 0;
}
.ed-related h2 {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 32px;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--ed-text);
}
.ed-related .ed-label {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--ed-accent);
  text-align: center;
  margin-bottom: 8px;
  display: block;
}

/* アーカイブ */
.ed-archive { padding: 64px 0 80px; }
.ed-archive-head { text-align: center; margin-bottom: 64px; }
.ed-archive-issue {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--ed-gold);
  letter-spacing: 0.25em;
  margin-bottom: 16px;
}
.ed-archive-title {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: var(--ed-text);
}
.ed-archive-desc {
  color: var(--ed-text-2);
  max-width: 680px;
  margin: 0 auto;
}

/* ページネーション */
.ed-pagination {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 64px 0 40px;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
}
.ed-pagination a, .ed-pagination span {
  padding: 8px 16px;
  border: 1px solid var(--ed-line);
  color: var(--ed-text);
  font-size: 14px;
  letter-spacing: 0.1em;
  border-radius: 8px;
}
.ed-pagination .current,
.ed-pagination a:hover { background: var(--ed-accent); color: #fff; border-color: var(--ed-accent); }

/* TOPへ戻るボタン */
.ed-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 64px;
  height: 64px;
  border: 1.5px solid var(--ed-gold);
  background: rgba(26, 13, 16, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: var(--ed-gold);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  letter-spacing: 0.15em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 100;
  padding: 0;
  border-radius: 50%;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}
.ed-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.ed-to-top:hover {
  background: var(--ed-gold);
  color: var(--ed-black);
  border-color: var(--ed-gold);
  text-shadow: none;
}
.ed-to-top-arrow {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 2px;
}
.ed-to-top-label {
  font-size: 11px;
  font-style: italic;
  font-weight: 700;
}

/* レスポンシブ */
@media (max-width: 960px) {
  .ed-cover { padding: 24px 0 48px; }
  .ed-cover-text h1 { font-size: 32px; }
  .ed-mag-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ed-two-col { grid-template-columns: 1fr; gap: 32px; }
  .ed-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ed-cta-banner { padding: 64px 24px; }
  .ed-cta-banner h3 { font-size: 28px; }
  .ed-brand-jp { font-size: 36px; letter-spacing: 0.2em; }
  .ed-article-title { font-size: 28px; }
  .ed-article-body { font-size: 16px; line-height: 2; }
  .ed-section-num { font-size: 48px; }
  .ed-section-title-wrap h2 { font-size: 24px; }
  .ed-archive-title { font-size: 32px; }
  .ed-nav { gap: 24px; font-size: 12px; }
}
@media (max-width: 600px) {
  body.editorial-theme .ed-container { padding: 0 20px; }
  .ed-mag-grid { grid-template-columns: 1fr; }
  .ed-story-card { grid-template-columns: 1fr; }
  .ed-footer-grid { grid-template-columns: 1fr; }
  .ed-cover-text h1 { font-size: 26px; }
  .ed-brand-jp { font-size: 28px; }
  .ed-brand-tagline { font-size: 14px; }
  .ed-masthead-top { font-size: 10px; }
  .ed-post-nav-grid { grid-template-columns: 1fr; }
  .ed-post-nav-next { text-align: left; }
}

/* === ed-breadcrumb (子テーマ パンくず) 2026-05-26 === */
.ed-breadcrumb {
  background: rgba(0,0,0,0.02);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding: 8px 0;
  font-size: 12px;
}
.ed-breadcrumb .ed-container { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ed-breadcrumb a { color: #888; text-decoration: none; }
.ed-breadcrumb a:hover { color: #333; }
.ed-breadcrumb span[aria-current] { color: #333; }
.ed-breadcrumb .ed-sep { color: #ccc; margin: 0 4px; }


/* ed-brand-sub-jp (h1サブタイトル、フロントページのみ) 2026-05-27 */
.ed-brand-sub-jp {
    font-size: 16px;
    color: var(--ed-accent, #888);
    margin-top: 8px;
    font-family: "Shippori Mincho", "Noto Serif JP", serif;
    letter-spacing: 0.05em;
    text-align: center;
    opacity: 0.85;
}
@media (max-width: 768px) {
    .ed-brand-sub-jp { font-size: 14px; }
}

/* ed-brand-sub-jp as inline display (block when inside h1, tagline-style) 2026-05-27 */
.ed-brand-jp .ed-brand-sub-jp {
    display: block;
    font-size: 15px;
    font-weight: normal;
    margin-top: 6px;
    color: var(--ed-accent, #888);
    letter-spacing: 0.05em;
    opacity: 0.85;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .ed-brand-jp .ed-brand-sub-jp { font-size: 13px; }
}

/* ed-cta-h: h2 にしたが視覚的には h3 並みのサイズに保つ (2026-05-27) */
.ed-cta-banner .ed-cta-h{font-size:24px;line-height:1.5;margin:.5em 0}
@media (max-width:680px){.ed-cta-banner .ed-cta-h{font-size:20px}}

/* ed-footer-h: footer の見出しを p に降格 (h階層スキップ回避) 2026-05-27 */
.ed-footer-h{font-size:13px;font-weight:700;letter-spacing:.05em;margin:0 0 10px;color:inherit;opacity:.9}

/* author-bio (inline style から集約) 2026-05-27 */
.author-bio{margin-top:40px;padding:24px;background:#f8f8f8;border-left:4px solid #d4af37;display:flex;gap:20px;align-items:flex-start;flex-wrap:wrap}
.author-bio .author-avatar{width:90px;height:90px;border-radius:50%;flex-shrink:0;border:2px solid #d4af37}

/* author-bio 子要素 CSS (Phase8) 2026-05-27 */
.author-bio-body{flex:1;min-width:200px}
.author-bio-title{margin:0 0 8px;font-size:15px;font-weight:700;color:#d4af37}
.author-bio-name{font-weight:700;margin:0 0 8px;font-size:18px}
.author-bio-text{margin:0;line-height:1.7}
.author-bio-updated{margin-top:20px;color:#888;font-size:14px;text-align:right}

/* D author-bio Castle-Town Green palette override 2026-05-27 */
.author-bio .author-bio-name{color:#fff}
.author-bio .author-bio-text{color:#cbb98a;line-height:1.75}

/* author-bio-avatar (Phase9) 2026-05-27 */
.author-bio-avatar{width:90px;height:90px;border-radius:50%;flex-shrink:0;border:2px solid #d4a83f}

/* D サブタイトル コントラスト改善 (Phase9 fix) 2026-05-27 */
.ed-brand-jp .ed-brand-sub-jp{color:#f0d683 !important;opacity:1 !important;font-weight:500 !important;text-shadow:0 1px 2px rgba(0,0,0,.4)}

/* D author-bio コントラスト改善 (背景暗緑系に対して文字を明るく) */
.author-bio .author-bio-title{color:#f0d683 !important;font-weight:700}
.author-bio .author-bio-name{color:#ffffff !important;font-weight:700}
.author-bio .author-bio-text{color:#d6c8a5 !important;line-height:1.75}

/* D author-bio 背景を Castle-Town Green に統一 (Phase9 contrast fix v2) 2026-05-27 */
.author-bio{background:#1a3a2e !important;border-left:4px solid #d4a83f !important;color:#e8e0c8}
.author-bio .author-bio-avatar{border:2px solid #d4a83f}
.author-bio .author-bio-title{color:#d4a83f !important;font-weight:700}
.author-bio .author-bio-name{color:#ffffff !important;font-weight:700;font-size:18px}
.author-bio .author-bio-text{color:#e8e0c8 !important;line-height:1.75}
.author-bio .author-bio-updated{color:#a8a890 !important}
