/* 共通のmain.cssを読み込んだ後に適用する記事用の調整 */
body.classic-article {
  overflow-wrap: anywhere;
}

a {
  color: var(--indigo);
  text-underline-offset: 0.25em;
}

a:hover {
  color: var(--vermilion-dark);
}

a:focus-visible {
  outline: 3px solid var(--vermilion);
  outline-offset: 5px;
}

.reading-width {
  width: 100%;
  max-width: 860px;
  padding-right: 32px;
  padding-left: 32px;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--paper-light);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.article-hero {
  padding: 28px 0 64px;
  color: var(--paper-light);
  border-bottom: 4px solid var(--gold);
  background:
    radial-gradient(circle at 75% 25%, rgba(185, 154, 75, 0.24), transparent 32%),
    linear-gradient(135deg, #111c2d 0%, var(--indigo) 55%, #233955 100%);
}

.breadcrumb {
  margin-bottom: 44px;
  font-size: 0.85rem;
  --bs-breadcrumb-divider-color: #d8bd72;
}

.breadcrumb a,
.breadcrumb-item.active {
  color: var(--paper-light);
}

.hero-kicker {
  margin-bottom: 20px;
  color: var(--gold-light);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.5;
}

h1 span {
  display: block;
  margin-top: 14px;
  color: var(--gold-light);
  font-size: 0.57em;
  line-height: 1.8;
}

.author {
  margin-bottom: 0;
  font-size: 0.95rem;
}

.toc {
  margin: 40px 0 48px;
  padding: 28px 32px;
  border: 1px solid rgba(185, 154, 75, 0.5);
  border-radius: 18px;
  background: var(--paper-light);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--vermilion-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

h2,
h3 {
  color: var(--indigo);
  font-weight: 700;
  line-height: 1.6;
}

.toc h2 {
  font-size: 1.3rem;
}

.toc ol {
  margin: 18px 0 0;
  padding-left: 1.5em;
}

.toc li {
  padding: 5px 0 5px 4px;
}

.toc li::marker {
  color: var(--vermilion-dark);
}

.article-body {
  font-size: 1.125rem;
  line-height: 2;
}

.article-body p {
  font-size: inherit;
  margin-bottom: 1.7em;
}

.article-section {
  margin-top: 56px;
}

.article-section h2 {
  margin-bottom: 28px;
  padding: 8px 0 16px 18px;
  border-left: 4px solid var(--vermilion);
  border-bottom: 1px solid rgba(185, 154, 75, 0.5);
  font-size: clamp(1.35rem, 3.5vw, 1.8rem);
  scroll-margin-top: 24px;
}

.series-guide {
  margin-top: 60px;
  padding: 36px;
  border: 1px solid rgba(185, 154, 75, 0.5);
  border-radius: 18px;
  background: var(--paper-light);
}

.series-guide h2,
.related h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
}

.btn-primary {
  --bs-btn-color: #ffffff;
  --bs-btn-bg: var(--vermilion);
  --bs-btn-border-color: var(--vermilion);
  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: var(--vermilion-dark);
  --bs-btn-hover-border-color: var(--vermilion-dark);
  --bs-btn-active-bg: var(--vermilion-dark);
  --bs-btn-active-border-color: var(--vermilion-dark);
  padding: 15px 24px;
  border-radius: 999px;
  font-weight: 700;
}

.related {
  margin: 56px 0 40px;
}

.related .row {
  margin-top: 16px;
}

.related-card {
  padding: 24px;
  border-top: 3px solid var(--vermilion);
  background: var(--paper-light);
}

.related-card h3 {
  margin: 12px 0 0;
  font-size: 1.15rem;
}

.status {
  color: var(--muted);
  font-size: 0.85rem;
}

.back-top {
  margin: 32px 0 48px;
  text-align: right;
  font-size: 0.9rem;
}

footer {
  padding: 36px 0;
  color: #bfc5ce;
  background: #0c1522;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 575.98px) {
  .reading-width {
  width: 100%;
    padding-right: 20px;
    padding-left: 20px;
  }

  .article-hero {
    padding-bottom: 40px;
  }

  .breadcrumb {
    margin-bottom: 32px;
  }

  .toc,
  .series-guide {
    padding: 24px 20px;
  }

  .article-body {
    font-size: 1rem;
  }

  .article-section {
    margin-top: 40px;
  }

  .series-guide .btn {
    width: 100%;
  }
}

@media print {
  body {
    color: #000000;
    background: #ffffff;
  }

  .article-hero {
    color: #000000;
    background: #ffffff;
  }

  .hero-kicker,
  h1 span,
  .breadcrumb a,
  .breadcrumb-item.active {
    color: #000000;
  }

  .toc,
  .related,
  .back-top,
  .skip-link {
    display: none;
  }

  .article-section h2 {
    break-after: avoid;
  }
}

/* 共通CSSのスマートフォン用container指定より優先して本文幅を整える */
.classic-article .reading-width {
  width: 100%;
  max-width: 860px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
/* 背景画像だけを透過させ、見出しとリンクは鮮明に表示する */
.classic-article .article-hero {
  position: relative;
  isolation: isolate;
}

.classic-article .article-hero-background {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--hero-background-image, none);
  background-position: var(--hero-background-position, center);
  background-size: cover;
  background-repeat: no-repeat;
  opacity: var(--hero-background-opacity, 0.20);
}

@media print {
  .classic-article .article-hero-background {
    display: none;
  }
}
/* ヘッダー画像：文字の読みやすさを保ちながら背景に表示 */
.classic-article .article-hero {
  --hero-background-image: url("../../img/article-003/article-003-top.jpg");
  --hero-background-opacity: 0.30;
  --hero-background-position: center;
}
