@charset "utf-8";

@font-face {
  font-family: 'Klee One';
  src: url('/fonts/KleeOne-Regular.ttf') format('woff2'), url('/fonts/KleeOne-SemiBold.ttf') format('woff');
  font-display: swap;
}

:root {
  --color-bg: #f5f2eb;
  --color-surface: rgba(255, 255, 255, 0.94);
  --color-text: #1b1b1b;
  --color-text-secondary: #555;
  --color-accent: #b63a2f;
  --color-accent-deep: #6f1f1a;
  --color-border: #ddd6ca;
  --color-border-strong: #cfc5b5;
  --color-highlight-bg: #fff7db;
  --color-highlight-border: #e1b546;
  --color-real-bg: #fdf1f0;
  --color-real-border: #c0392b;
  --color-conclusion-bg: #1c1d2d;
  --color-conclusion-text: #ebe7e0;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-card: 0 12px 35px rgba(30, 25, 22, 0.08);
  --font-heading: "Noto Serif JP", "Yu Mincho", serif;
  --font-body: "Klee One", "Noto Sans JP", "Yu Gothic", sans-serif;
  --content-width: 860px;
  --max-width: 1120px;
  --spacing-section: 3.5rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2.0em;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--color-text);
  background:
    linear-gradient(rgba(245, 242, 235, 0.9), rgba(245, 242, 235, 0.95)),
    url("background-image.png") center/cover fixed no-repeat;
  -webkit-font-smoothing: antialiased;
  text-align: justify;
  text-justify: distribute;
}

.article-header {
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, #171826 0%, #1c1d2d 72%, #242741 100%);
  color: var(--color-conclusion-text);
  padding: 5.2rem 1.5rem 3.2rem;
  text-align: center;
  box-shadow: inset 0 -40px 80px rgba(0, 0, 0, 0.18);
}

.article-header .category-tag,
.inline-category-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(5, 42%, 61%);
  background: rgba(214, 90, 79, 0.12);
  border: 1px solid rgba(214, 90, 79, 0.55);
  border-radius: 999px;
  padding: 0.42em 0.95em;
  margin-bottom: 1.2rem;
}

.article-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 4.2vw, 2.65rem);
  line-height: 1.5;
  max-width: 980px;
  margin: 0 auto 1.15rem;
  text-wrap: balance;
}

.article-header .subtitle {
  font-size: 1rem;
  line-height: 1.85;
  max-width: 760px;
  margin: 0 auto;
  opacity: 0.88;
}

.article-meta {
  margin-top: 1.6rem;
  font-size: 0.84rem;
  opacity: 0.68;
}

.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.breadcrumb {
  background: transparent;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.15rem 1.25rem 0;
  font-size: 0.84rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--color-text-secondary);
}

.breadcrumb a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.breadcrumb .current {
  color: var(--color-text);
  font-weight: 700;
}

.article-body {
  max-width: var(--content-width);
  margin: 1.25rem auto 0;
  padding: 2rem clamp(1rem, 2.8vw, 2.75rem) 4rem;
  background: var(--color-surface);
  /* border: 1px solid rgba(207, 197, 181, 0.65); */
  /* border-radius: 0 0 18px 18px; */
  box-shadow: var(--shadow-soft);
}

.reading-intro,
.toc-box,
.section-card,
.disclaimer,
.notice-box,
.quote-block,
.conclusion-box,
#references,
#source-index {
  border-radius: 0px;
}

.reading-intro,
.toc-box,
.section-card,
#references,
#source-index,
.disclaimer,
.notice-box {
  box-shadow: var(--shadow-card);
}

.reading-intro {
  display: grid;
  gap: 1rem;
  background: linear-gradient(180deg, #fffdfa 0%, #f8f4ed 100%);
  border: 1px solid var(--color-border);
  padding: 1.25rem 1.3rem;
  margin-bottom: 1.4rem;
}

.reading-intro h2,
.toc-box h2 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.08rem;
  color: var(--color-accent-deep);
}

.reading-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.reading-chip {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.reading-chip strong {
  display: block;
  margin-bottom: 0.32rem;
  color: var(--color-accent-deep);
  font-size: 0.9rem;
}

.reading-chip span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--color-text-secondary);
}

.toc-box {
  background: linear-gradient(180deg, #fff 0%, #faf7f1 100%);
  border: 1px solid var(--color-border);
  padding: 1.15rem 1.25rem;
  margin-bottom: 2rem;
}

.toc-box h2 {
  margin-bottom: 0.9rem;
}

.toc-box ol {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.42rem;
}

.toc-box a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(182, 58, 47, 0.35);
}

.disclaimer,
.notice-box {
  padding: 1.15rem 1.3rem;
  margin-bottom: 1.6rem;
  font-size: 0.94rem;
  line-height: 1.8;
}

.disclaimer {
  background: var(--color-real-bg);
  border: 1px solid rgba(192, 57, 43, 0.22);
  border-left: 5px solid var(--color-real-border);
}

.notice-box {
  background: var(--color-highlight-bg);
  /* border: 1px solid rgba(225, 181, 70, 0.28); */
  border-left: 5px solid var(--color-highlight-border);
}

.article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.42rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid rgba(182, 58, 47, 0.78);
  scroll-margin-top: 1.2rem;
}

.article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.16rem;
  margin-top: 2.3rem;
  margin-bottom: 0.8rem;
  scroll-margin-top: 1.2rem;
}

.article-body p {
  margin-bottom: 1.2rem;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.2rem;
  padding-left: 1.45rem;
}

.article-body li {
  margin-bottom: 0.55rem;
}

.section-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 246, 241, 0.96) 100%);
  /* border: 1px solid rgba(207, 197, 181, 0.7); */
  padding: 1.5rem 1.4rem;
  margin: 1.4rem 0 0;
}

.section-card>h2:first-child,
.section-card>h3:first-child {
  margin-top: 0;
}

.quote-block {
  background: linear-gradient(180deg, #f9f8f5 0%, #f2f0ea 100%);
  /* border: 1px solid var(--color-border); */
  border-left: 5px solid #8f8b84;
  padding: 1rem 1.15rem;
  margin: 1.4rem 0;
  font-size: 0.93rem;
  color: var(--color-text-secondary);
}

.quote-block__label {
  font-weight: 800;
  font-size: 0.78rem;
  color: #666;
  margin-bottom: 0.45rem;
}

.conclusion-box {
  background: linear-gradient(180deg, #1d2031 0%, #242842 100%);
  color: var(--color-conclusion-text);
  padding: 2rem 1.6rem;
  margin-top: var(--spacing-section);
  box-shadow: 0 18px 40px rgba(24, 23, 38, 0.2);
}

.conclusion-box h2 {
  color: var(--color-conclusion-text);
  border-bottom-color: rgba(214, 90, 79, 0.8);
  margin-top: 0;
}

.section-divider {
  border: none;
  border-top: 2px solid var(--color-border-strong);
  margin: 3.6rem 0 2rem;
}

strong {
  font-weight: 800;
}

em {
  font-style: normal;
  font-weight: 700;
  background: linear-gradient(transparent 58%, rgba(252, 230, 138, 0.58) 58%);
  padding: 0 2px;
}

.term {
  font-weight: 800;
  color: var(--color-accent);
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#references,
#source-index {
  margin-top: var(--spacing-section);
  padding: 1.5rem 1.3rem 0;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.74);
}

#references h2,
#source-index h3 {
  margin-top: 0;
}

.source-index-table-wrap {
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.source-index-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.62;
}

.source-index-table th,
.source-index-table td {
  padding: 0.78rem 0.84rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.source-index-table td a {
  font-weight: 700;
  word-break: break-word;
}

.source-index-table th {
  background: #f6f2eb;
  font-weight: 800;
}

.source-index-table tr:last-child td {
  border-bottom: none;
}

.source-index-note {
  margin-top: 0.85rem;
  font-size: 0.84rem;
  color: var(--color-text-secondary);
}

.site-footer {
  background: linear-gradient(180deg, #1a1b2a 0%, #141522 100%);
  color: var(--color-conclusion-text);
  text-align: center;
  padding: 2.7rem 1.5rem;
  margin-top: var(--spacing-section);
  font-size: 0.85rem;
}

.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.5rem;
  margin-bottom: 1.2rem;
}

.site-footer nav a {
  color: rgba(232, 230, 225, 0.78);
  text-decoration: none;
}

.site-footer .copyright {
  opacity: 0.52;
  margin-top: 1rem;
}

img {
  width: 100%;
  margin-top: 0.67em;
}

@media (max-width: 820px) {
  .reading-intro-grid {
    grid-template-columns: 1fr;
  }

  .article-header {
    padding-top: 4.3rem;
  }

  .article-body {
    padding-top: 1.35rem;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15.5px;
  }

  .article-header {
    padding: 3.6rem 1rem 2.4rem;
  }

  .article-body {
    margin-top: 0.9rem;
    padding: 1rem 0.95rem 3rem;
  }

  .conclusion-box,
  .section-card,
  .disclaimer,
  .notice-box,
  #references,
  #source-index,
  .toc-box,
  .reading-intro {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .article-body h2 {
    font-size: 1.26rem;
  }

  .article-body h3 {
    font-size: 1.08rem;
  }
}


.note-ref {
  position: relative;
  display: inline-block;
  vertical-align: super;
  font-size: 0.78em;
  line-height: 1;
  margin-left: 0.12em;
  isolation: isolate;
}

.note-ref a {
  touch-action: manipulation;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  padding: 0.16em 0.42em;
  border-radius: 999px;
  border: 1px solid rgba(182, 58, 47, 0.28);
  background: rgba(182, 58, 47, 0.08);
  color: var(--color-accent-deep);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.note-ref a:hover,
.note-ref a:focus-visible,
.note-ref.is-open>a {
  background: rgba(182, 58, 47, 0.14);
  border-color: rgba(182, 58, 47, 0.5);
  box-shadow: 0 4px 14px rgba(111, 31, 26, 0.12);
  transform: translateY(-1px);
  text-decoration: none;
  outline: none;
}

.reference-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%) translateY(8px);
  width: min(42rem, calc(100vw - 2rem));
  min-width: min(22rem, calc(100vw - 2rem));
  max-width: calc(100vw - 2rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 120;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.reference-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 9px 8px 0;
  border-style: solid;
  border-color: rgba(28, 29, 45, 0.96) transparent transparent transparent;
}

.reference-tooltip.is-align-left {
  left: 0;
  transform: translateX(0) translateY(8px);
}

.reference-tooltip.is-align-left::after {
  left: 1.2rem;
  transform: none;
}

.reference-tooltip.is-align-right {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(8px);
}

.reference-tooltip.is-align-right::after {
  left: auto;
  right: 1.2rem;
  transform: none;
}

.reference-tooltip.is-below {
  bottom: auto;
  top: calc(100% + 0.45rem);
}

.reference-tooltip.is-below::after {
  top: auto;
  bottom: 100%;
  border-width: 0 8px 9px;
  border-color: transparent transparent rgba(28, 29, 45, 0.96) transparent;
}

.note-ref.is-open .reference-tooltip,
.note-ref:hover .reference-tooltip,
.note-ref:focus-within .reference-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.note-ref.is-open .reference-tooltip:not(.is-align-left):not(.is-align-right),
.note-ref:hover .reference-tooltip:not(.is-align-left):not(.is-align-right),
.note-ref:focus-within .reference-tooltip:not(.is-align-left):not(.is-align-right) {
  transform: translateX(-50%) translateY(0);
}

.note-ref.is-open .reference-tooltip.is-align-left,
.note-ref.is-open .reference-tooltip.is-align-right,
.note-ref:hover .reference-tooltip.is-align-left,
.note-ref:hover .reference-tooltip.is-align-right,
.note-ref:focus-within .reference-tooltip.is-align-left,
.note-ref:focus-within .reference-tooltip.is-align-right {
  transform: translateX(0) translateY(0);
}

.reference-tooltip__inner {
  display: block;
  background: rgba(28, 29, 45, 0.96);
  color: #f4efe8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(16, 18, 28, 0.28);
  overflow: hidden;
}

.reference-tooltip__label {
  display: block;
  padding: 0.72rem 0.95rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.72);
}

.reference-tooltip__body {
  display: block;
  padding: 0 0.95rem 0.92rem;
  font-size: 0.84rem;
  line-height: 1.72;
  color: #f4efe8;
}

.reference-tooltip__body a {
  color: #ffd6aa;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.reference-tooltip__body li,
.reference-tooltip__body p,
.reference-tooltip__body a,
.reference-tooltip__body span,
.reference-tooltip__body em,
.reference-tooltip__body strong {
  font-size: inherit;
  line-height: inherit;
}

.references-intro {
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
}

body.reference-modal-open {
  overflow: hidden;
}

.reference-modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
  background: rgba(14, 16, 24, 0.58);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.reference-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.reference-modal {
  width: min(44rem, 100%);
  max-height: min(80vh, 46rem);
  display: flex;
  flex-direction: column;
  background: rgba(28, 29, 45, 0.985);
  color: #f4efe8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 22px 48px rgba(9, 11, 18, 0.34);
  overflow: hidden;
  transform: translateY(20px);
  transition: transform 0.22s ease;
}

.reference-modal-overlay.is-open .reference-modal {
  transform: translateY(0);
}

.reference-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reference-modal__eyebrow {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.68);
}

.reference-modal__title {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 800;
  color: #f4efe8;
}

.reference-modal__close {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f4efe8;
  border-radius: 999px;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.7rem;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.reference-modal__close:hover,
.reference-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
  outline: none;
}

.reference-modal__body {
  padding: 0.95rem 1rem 1.15rem;
  overflow: auto;
  font-size: 0.93rem;
  line-height: 1.78;
  color: #f4efe8;
}

.reference-modal__body a {
  color: #ffd6aa;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.reference-modal__body small {
  color: rgba(244, 239, 232, 0.76);
}

.reference-modal__body li,
.reference-modal__body p,
.reference-modal__body a,
.reference-modal__body span,
.reference-modal__body em,
.reference-modal__body strong {
  font-size: inherit;
  line-height: inherit;
}


.article-body {
  backdrop-filter: blur(1.5px);
}

.section-card {
  position: relative;
  overflow: visible;
}

.section-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(182, 58, 47, 0.92) 0%, rgba(225, 181, 70, 0.88) 100%);
  opacity: 0.92;
}

.section-card>*:last-child,
.chapter-card>*:last-child,
.conclusion-box>*:last-child,
.quote-block>*:last-child,
.notice-box>*:last-child,
.disclaimer>*:last-child {
  margin-bottom: 0;
}

.figure-card {
  margin: 1.4rem 0 1.5rem;
  padding: 0.7rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 243, 236, 0.96) 100%);
  border: 1px solid rgba(207, 197, 181, 0.72);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.figure-card img {
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(207, 197, 181, 0.55);
}

.section-card--guide {
  /* padding: 1.65rem 1.45rem 1.55rem; */
  padding: 0rem;
  background:
    radial-gradient(circle at top right, rgba(182, 58, 47, 0.055), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(247, 243, 236, 0.97) 100%);
}

.section-card__title {
  font-size: clamp(1.5rem, 3vw, 1.9rem) !important;
  margin-top: 0.45rem !important;
  margin-bottom: 0.75rem !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
  line-height: 1.48;
  text-wrap: balance;
}

.section-lede {
  margin-bottom: 1.8rem;
  font-size: 0.98rem;
  line-height: 1.86;
  color: var(--color-text-secondary);
  max-width: 44rem;
}

.chapter-nav {
  display: grid;
  gap: 0.85rem;
  margin: 1.2rem 0 2rem;
  padding: 1rem 1.05rem 1.05rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(251, 248, 242, 0.96) 100%);
  /* border: 1px solid rgba(207, 197, 181, 0.74); */
  /* border-radius: 12px; */
  box-shadow: var(--shadow-card);
}

.chapter-nav__title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-accent-deep);
}

.chapter-nav__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.chapter-nav__link {
  display: flex;
  align-items: center;
  min-height: 100%;
  padding: 0.85rem 0.95rem;
  /* border-radius: 10px; */
  border: 1px solid rgba(207, 197, 181, 0.78);
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-text);
  font-size: 0.92rem;
  line-height: 1.55;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.chapter-nav__link:hover,
.chapter-nav__link:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(182, 58, 47, 0.38);
  box-shadow: 0 10px 22px rgba(30, 25, 22, 0.08);
  background: rgba(255, 251, 245, 0.96);
  outline: none;
}

.chapter-card {
  position: relative;
  margin-top: 1.35rem;
  padding: 1.35rem 2.2rem 1.15rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(250, 247, 241, 0.975) 100%);
  /* border: 1px solid rgba(207, 197, 181, 0.74); */
  /* border-radius: 14px; */
  box-shadow: var(--shadow-card);
}

.chapter-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  /* border-radius: 14px 0 0 14px; */
  background: linear-gradient(180deg, rgba(182, 58, 47, 0.95) 0%, rgba(225, 181, 70, 0.88) 100%);
}

.chapter-card__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  padding: 0.26rem 0.72rem;
  border-radius: 999px;
  background: rgba(182, 58, 47, 0.08);
  border: 1px solid rgba(182, 58, 47, 0.18);
  color: var(--color-accent-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.chapter-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(207, 197, 181, 0.9);
  font-size: 1.22rem;
  line-height: 1.6;
}

.chapter-card p+ul,
.chapter-card p+ol {
  margin-top: -0.2rem;
}

.chapter-card ul,
.chapter-card ol {
  padding-left: 1.25rem;
}

.chapter-card li {
  margin-bottom: 0.75rem;
  padding-left: 0.15rem;
}

.chapter-card--intro {
  background:
    radial-gradient(circle at top right, rgba(225, 181, 70, 0.14), transparent 35%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(252, 248, 239, 0.975) 100%);
}

.chapter-card--checklist li {
  margin-bottom: 0.95rem;
}

.chapter-card--checklist ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.8rem;
}

.chapter-card--checklist li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 3rem;
  border: 1px solid rgba(207, 197, 181, 0.74);
  /* border-radius: 12px; */
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 16px rgba(30, 25, 22, 0.05);
}

.chapter-card--checklist li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 1.02rem;
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(182, 58, 47, 0.1);
  color: var(--color-accent-deep);
  font-size: 0.82rem;
  font-weight: 900;
}

.chapter-card .quote-block {
  margin: 1.2rem 0 1.25rem;
}

@media (max-width: 820px) {
  .chapter-nav__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section-card--guide {
    padding: 1.25rem 1rem 0rem;
  }

  .chapter-card {
    padding: 1.15rem 0.95rem 1rem;
  }

  .chapter-card h3 {
    font-size: 1.12rem;
  }

  .chapter-card--checklist li {
    padding-left: 2.8rem;
  }
}

@media (max-width: 700px),
(hover: none),
(pointer: coarse) {
  .reference-tooltip {
    display: none !important;
  }

  .reference-modal-overlay {
    padding: 0.75rem;
  }

  .reference-modal {
    width: 100%;
    max-height: 85dvh;
    border-radius: 18px 18px 0 0;
  }

  .reference-modal__header {
    padding: 0.95rem 0.95rem 0.8rem;
  }

  .reference-modal__body {
    padding: 0.9rem 0.95rem 1.05rem;
    font-size: 0.91rem;
  }
}


/* Unified popover override: keep enhanced card styling, replace tooltip/modal behavior */
.reference-tooltip {
  display: none !important;
}

.reference-popover {
  --popover-arrow-left: 50%;
  position: fixed;
  left: 0;
  top: 0;
  width: min(42rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.5rem);
  max-height: min(70vh, 42rem);
  display: flex;
  flex-direction: column;
  background: rgba(28, 29, 45, 0.985);
  color: #f4efe8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 22px 48px rgba(9, 11, 18, 0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 9999;
  overflow: hidden;
}

.reference-popover.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.reference-popover[data-side="bottom"] {
  transform: translateY(-8px);
}

.reference-popover.is-open[data-side="bottom"] {
  transform: translateY(0);
}

.reference-popover__arrow {
  position: absolute;
  left: var(--popover-arrow-left);
  width: 16px;
  height: 16px;
  background: rgba(28, 29, 45, 0.985);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateX(-50%) rotate(45deg);
  pointer-events: none;
}

.reference-popover[data-side="top"] .reference-popover__arrow {
  bottom: -8px;
  border-left: none;
  border-top: none;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.reference-popover[data-side="bottom"] .reference-popover__arrow {
  top: -8px;
}

.reference-popover__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reference-popover__eyebrow {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.68);
}

.reference-popover__title {
  display: block;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 800;
  color: #f4efe8;
}

.reference-popover__close {
  flex: 0 0 auto;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #f4efe8;
  border-radius: 999px;
  min-width: 2.3rem;
  height: 2.3rem;
  padding: 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.reference-popover__close:hover,
.reference-popover__close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  transform: translateY(-1px);
  outline: none;
}

.reference-popover__body {
  padding: 0.95rem 1rem 1.1rem;
  overflow: auto;
  font-size: 0.93rem;
  line-height: 1.78;
  color: #f4efe8;
}

.reference-popover__body a {
  color: #ffd6aa;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.reference-popover__body small {
  color: rgba(244, 239, 232, 0.76);
}

.reference-popover__body li,
.reference-popover__body p,
.reference-popover__body a,
.reference-popover__body span,
.reference-popover__body em,
.reference-popover__body strong {
  font-size: inherit;
  line-height: inherit;
}

.breadcrumb .separator {
  color: rgba(85, 85, 85, 0.72);
}

.dialogue {
  display: grid;
  gap: 1rem;
  margin: 1.6rem 0;
}

.dialogue-turn {
  padding: 1.2rem 1.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(249, 246, 240, 0.965) 100%);
  border: 1px solid rgba(207, 197, 181, 0.74);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(30, 25, 22, 0.05);
}

.dialogue-turn--interviewer {
  border-left: 4px solid var(--color-accent);
}

.dialogue-turn--user {
  border-left: 4px solid #3a6ea5;
}

.dialogue-speaker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.72rem;
  font-family: "Source Code Pro", "Courier New", monospace;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dialogue-speaker--interviewer {
  color: var(--color-accent-deep);
}

.dialogue-speaker--user {
  color: #2f5d86;
}

.dialogue-content {
  font-size: 0.96rem;
  line-height: 1.84;
}

.dialogue-content p {
  margin-bottom: 0.85rem;
}

.dialogue-content p:last-child {
  margin-bottom: 0;
}

.phrase-card {
  margin: 2rem 0 2.4rem;
  border: 1px solid rgba(207, 197, 181, 0.76);
  /* border-radius: 18px; */
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.985) 0%, rgba(248, 244, 238, 0.96) 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.phrase-card__number {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.9rem 0 0 1rem;
  padding: 0.34rem 0.68rem;
  /* border-radius: 999px; */
  /* border: 1px solid rgba(255, 255, 255, 0.14); */
  background: rgba(27, 32, 48, 0.93);
  color: rgba(241, 236, 227, 0.92);
  font-family: "Source Code Pro", "Courier New", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.phrase-card__title {
  margin: 0.72rem 1rem 0.45rem;
  padding: 0 0 0.78rem;
  border-bottom: 1px solid rgba(207, 197, 181, 0.82);
  color: #2a221c;
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 1.9vw, 1.28rem);
  line-height: 1.55;
  text-wrap: balance;
}

.phrase-card__source,
.phrase-card__pr,
.phrase-card__real,
.phrase-card__analysis {
  margin-left: 1rem;
  margin-right: 1rem;
  /* border-radius: 14px; */
  font-size: 0.93rem;
  line-height: 1.8;
}

.phrase-card__source {
  margin-top: 0.85rem;
  margin-bottom: 0.8rem;
  padding: 0.85rem 1rem;
  /* border: 1px solid rgba(154, 145, 131, 0.34); */
  border-left: 4px solid #8f8b84;
  background: linear-gradient(180deg, #f8f7f3 0%, #efede7 100%);
  color: #5e5449;
}

.phrase-card__source::before {
  content: "公式ブログより（要約）";
  display: block;
  margin-bottom: 0.34rem;
  color: #6c6358;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phrase-card__pr {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.88rem 1rem;
  /* border: 1px solid rgba(106, 170, 100, 0.32); */
  border-left: 4px solid #6aaa64;
  background: linear-gradient(180deg, #f1f8ef 0%, #ebf5e9 100%);
}

.phrase-card__pr::before {
  content: "アピールポイント";
  display: block;
  margin-bottom: 0.35rem;
  color: #4c8150;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phrase-card__real {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.88rem 1rem;
  /* border: 1px solid rgba(191, 74, 57, 0.3); */
  border-left: 4px solid #bf4a39;
  background: linear-gradient(180deg, #fdf3f0 0%, #fbebea 100%);
}

.phrase-card__real::before {
  content: "実際の意味";
  display: block;
  margin-bottom: 0.35rem;
  color: #a3382c;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phrase-card__analysis {
  margin-top: 0.85rem;
  margin-bottom: 1.05rem;
  padding: 0.95rem 1rem;
  /* border: 1px dashed rgba(125, 45, 34, 0.3); */
  background: rgba(255, 252, 247, 0.68);
  color: #4e453c;
}

.phrase-card strong {
  color: var(--color-accent-deep);
}

.video-embed {
  margin: 1.6rem 0;
  overflow: hidden;
  border: 1px solid rgba(207, 197, 181, 0.74);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.video-embed iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.video-embed__caption {
  padding: 0.85rem 1rem 1rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 244, 237, 0.92) 100%);
}

.structure-summary {
  margin: var(--spacing-section) 0;
  padding: 1.6rem 1.4rem;
  border: 1px solid rgba(28, 29, 45, 0.14);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(214, 90, 79, 0.18), transparent 32%),
    linear-gradient(180deg, #1c1d2d 0%, #161824 100%);
  box-shadow: var(--shadow-card);
  color: var(--color-conclusion-text);
}

.structure-summary h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  color: inherit;
  font-family: var(--font-heading);
  font-size: 1.12rem;
}

.structure-layer {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.94rem;
  line-height: 1.78;
  color: rgba(235, 231, 224, 0.94);
}

.structure-layer:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.structure-layer__label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-family: "Source Code Pro", "Courier New", monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f6c9a4;
}

.endnote-box {
  margin-top: var(--spacing-section);
  padding: 1.35rem 1.3rem;
  border-left: 4px solid var(--color-highlight-border);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(180deg, #fff8e5 0%, #f9f0d7 100%);
  box-shadow: var(--shadow-card);
}

.endnote-box h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  padding-bottom: 0;
  border-bottom: none;
  color: var(--color-accent-deep);
  font-size: 1.12rem;
}

.endnote-box p {
  font-size: 0.95rem;
  line-height: 1.78;
}

.endnote-box p:last-child {
  margin-bottom: 0;
}

@media (max-width: 820px) {

  .dialogue-turn,
  .structure-summary,
  .endnote-box {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 640px) {
  .dialogue-turn {
    padding: 1rem 0.95rem;
  }

  .phrase-card {
    margin: 1.35rem 0 1.8rem;
  }

  .phrase-card__number {
    margin-left: 0.8rem;
  }

  .phrase-card__title,
  .phrase-card__source,
  .phrase-card__pr,
  .phrase-card__real,
  .phrase-card__analysis {
    margin-left: 0.8rem;
    margin-right: 0.8rem;
  }

  .phrase-card__source,
  .phrase-card__pr,
  .phrase-card__real,
  .phrase-card__analysis {
    padding-left: 0.85rem;
    padding-right: 0.85rem;
  }

  .dialogue-speaker {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }

  .structure-summary {
    padding-top: 1.3rem;
    padding-bottom: 1.3rem;
  }
}