:root {
  --ink: #2c343a;
  --heading: #2d455d;
  --muted: #647482;
  --label: #7f93a3;
  --link: #247c74;
  --link-dark: #175f59;
  --green: #168d40;
  --green-bright: #19b24b;
  --green-dark: #0f7032;
  --line: #e5ebef;
  --line-strong: #ccd8e0;
  --pale: #f8fbfd;
  --white: #ffffff;
  --font-sans: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", YuMincho, serif;
  --content-width: 800px;
  --wide-width: 1100px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.85;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:visited {
  color: #416d76;
}

a:hover {
  color: var(--link-dark);
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--green-bright);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none;
}

p,
li,
h1,
h2,
h3,
a {
  overflow-wrap: anywhere;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: var(--heading);
  color: var(--white);
  transform: translateY(-160%);
}

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

.wide-container {
  width: min(calc(100% - 40px), var(--wide-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  width: min(calc(100% - 40px), var(--wide-width));
  min-height: 72px;
  margin-inline: auto;
}

.site-logo,
.guide-name,
.header-diagnosis {
  text-decoration: none;
}

.site-logo {
  display: block;
  width: 170px;
  height: 72px;
  overflow: visible;
}

.site-logo img {
  width: 170px;
  height: 85px;
  margin-top: -6px;
  object-fit: contain;
}

.guide-name,
.guide-name:visited {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(1rem, 2.5vw, 1.8rem);
  border-left: 1px solid var(--line);
  color: var(--heading);
  line-height: 1.4;
}

.guide-name span {
  color: var(--label);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.guide-name strong {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.07em;
}

.header-diagnosis,
.header-diagnosis:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--heading);
  border-radius: 999px;
  color: var(--heading);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.header-diagnosis:hover {
  border-color: var(--green);
  background: var(--pale);
  color: var(--green-dark);
}

.eyebrow,
.section-label,
.article-kicker {
  margin: 0;
  color: var(--label);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  line-height: 1.7;
}

.hub-intro {
  padding: clamp(3.8rem, 8vw, 6.5rem) 0 clamp(3.4rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.hub-intro h1 {
  max-width: 22em;
  margin: 1rem 0 0;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4.2vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.55;
}

.hub-lead {
  max-width: 760px;
  margin: 1.35rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.95;
}

.hub-hero {
  margin: clamp(2.2rem, 5vw, 3.6rem) 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pale);
}

.hub-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hub-support-visual {
  margin-block: clamp(2.8rem, 6vw, 4.8rem);
}

.hub-support-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
}

.hub-support-confidence {
  margin-top: clamp(3.2rem, 7vw, 5.5rem);
}

.topic-shortcuts {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding-block: 1.45rem;
  border-bottom: 1px solid var(--line);
}

.topic-shortcuts > p {
  flex: none;
  margin: 0.1rem 0 0;
  color: var(--heading);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.topic-shortcuts ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topic-shortcuts a {
  color: var(--link);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
}

.topic-shortcuts a:hover {
  text-decoration: underline;
}

.category-list {
  padding-block: clamp(3.8rem, 8vw, 7rem);
}

.category-section {
  scroll-margin-top: 6rem;
}

.category-section + .category-section {
  margin-top: clamp(4.5rem, 9vw, 7rem);
}

.category-header {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(280px, 1fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 1.6rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-strong);
}

.category-header h2 {
  margin: 0.35rem 0 0;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3.3vw, 2.15rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.category-header > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.8;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-bottom: 1.3rem;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.card-visual {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.card-visual img,
.card-visual .image-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 260ms ease;
}

.article-card:hover .card-visual img {
  transform: scale(1.015);
}

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 0.25rem;
  overflow: hidden;
  padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid var(--line);
  background: var(--pale);
  color: var(--heading);
}

.image-placeholder span {
  color: var(--label);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.image-placeholder strong {
  max-width: 18em;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 400;
  line-height: 1.55;
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.15rem 0 0;
}

.category-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.category-label span {
  color: var(--label);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
}

.card-content h3 {
  margin: 0.65rem 0 0;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.65;
}

.card-content h3 a,
.card-content h3 a:visited,
.related-card h3 a,
.related-card h3 a:visited {
  color: inherit;
  text-decoration: none;
}

.card-content h3 a:hover,
.related-card h3 a:hover {
  color: var(--link);
  text-decoration: underline;
}

.card-content > p:not(.category-label) {
  margin: 0.8rem 0 1.15rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.8;
}

.read-link {
  margin-top: auto;
  color: var(--link);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.read-link:hover {
  text-decoration: underline;
}

.empty-category {
  margin: 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.featured-content,
.guide-cta,
.article-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
  padding: clamp(1.8rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--pale);
}

.featured-content {
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  margin-bottom: 2rem;
}

.featured-content img {
  border-radius: 8px;
}

.featured-content h2,
.guide-cta h2,
.article-cta h2 {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.55;
}

.featured-content p,
.guide-cta p,
.article-cta p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.guide-cta {
  margin-bottom: clamp(4rem, 8vw, 6rem);
}

.primary-button,
.primary-button:visited,
.text-button,
.text-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0.65rem 1.55rem;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.primary-button:hover,
.text-button:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: var(--white);
}

.article-shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
  padding: 1.4rem 0 clamp(4.5rem, 9vw, 7rem);
}

.breadcrumbs {
  margin-bottom: 2.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.7;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline;
}

.breadcrumbs li:not(:last-child)::after {
  margin-left: 0.5rem;
  color: #a9b5bd;
  content: ">";
}

.breadcrumbs li:last-child {
  color: var(--muted);
}

.article-kicker span {
  padding-inline: 0.3rem;
  color: var(--line-strong);
}

.article-header h1 {
  margin: 0.9rem 0 0;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.6vw, 2.75rem);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.55;
}

.article-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 1.05rem 0 0;
  color: var(--label);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
}

figure.article-hero {
  margin: 2.4rem 0;
}

.article-hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

div.article-hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 2.4rem 0;
}

.article-hero.image-placeholder {
  padding: clamp(1.5rem, 6vw, 3.5rem);
}

.article-hero.image-placeholder strong {
  font-size: clamp(1.25rem, 4vw, 2rem);
}

.article-content {
  font-size: 1.03rem;
  letter-spacing: 0.025em;
  line-height: 1.92;
}

.article-content p {
  margin: 1.2em 0;
}

.article-illustration {
  margin: 2.5rem 0;
}

.article-illustration img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  object-fit: cover;
}

.article-intro {
  margin-bottom: 2.5rem;
  font-size: 1.04em;
}

.article-body h2 {
  position: relative;
  scroll-margin-top: 6rem;
  margin: 3.7rem 0 1.45rem;
  padding: 1.05rem 0 0.8rem;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.4vw, 1.72rem);
  font-weight: 400;
  letter-spacing: 0.055em;
  line-height: 1.6;
}

.article-body h2::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 52px;
  height: 3px;
  background: var(--link);
  content: "";
}

.article-body h3 {
  scroll-margin-top: 6rem;
  margin: 2.65rem 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 3vw, 1.32rem);
  font-weight: 400;
  letter-spacing: 0.045em;
  line-height: 1.6;
}

.article-content ul,
.article-content ol {
  margin: 1.15rem 0;
  padding-left: 1.6rem;
}

.article-content li + li {
  margin-top: 0.5rem;
}

.article-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--link);
  background: var(--pale);
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: 1.02em;
}

.article-content blockquote p {
  margin: 0.3rem 0;
}

.article-content strong {
  color: var(--heading);
  font-weight: 600;
}

.article-content hr {
  margin: 2.8rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.article-content table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.9em;
}

.article-content th,
.article-content td {
  padding: 0.7rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.article-content th {
  background: var(--pale);
  color: var(--heading);
}

.table-of-contents {
  margin: 2.5rem 0 3rem;
  padding: 1.35rem 1.5rem;
  border-top: 1px solid var(--heading);
  border-bottom: 1px solid var(--line);
  background: var(--pale);
  font-size: 0.86rem;
}

.toc-title {
  margin: 0 0 0.8rem !important;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.table-of-contents .toc > ul {
  margin: 0;
  padding-left: 1.25rem;
}

.table-of-contents ul ul {
  margin-top: 0.4rem;
  padding-left: 1.25rem;
}

.table-of-contents li + li {
  margin-top: 0.4rem;
}

.article-author {
  margin-top: 4rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--pale);
}

.article-author h2 {
  margin: 0;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.055em;
}

.article-author-role {
  margin: 0.7rem 0 0;
  color: var(--heading);
  font-size: 0.88rem;
  font-weight: 600;
}

.article-author-description {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.8;
}

.related-section {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-strong);
}

.related-section > h2 {
  margin: 0 0 1.4rem;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.related-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
}

.related-card h3 {
  margin: 0.55rem 0 0;
  color: var(--heading);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.related-card > p:not(.category-label) {
  margin: 0.75rem 0 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.75;
}

.back-to-guide {
  margin: 3rem 0 0;
  font-size: 0.86rem;
}

.article-cta {
  margin-top: 2.8rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--pale);
  color: var(--ink);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
  gap: 2.5rem 4rem;
  width: min(calc(100% - 40px), var(--wide-width));
  margin-inline: auto;
  padding: 3rem 0 1.5rem;
}

.footer-brand a {
  display: block;
  width: 170px;
}

.footer-brand img {
  width: 170px;
  height: 85px;
  object-fit: contain;
}

.footer-brand p {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 0.45rem 1.6rem;
  padding-top: 0.7rem;
}

.footer-nav a,
.footer-nav a:visited {
  padding-block: 0.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.76rem;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--link);
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--label);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    gap: 1rem;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 5rem;
  }

  body {
    font-size: 16px;
    letter-spacing: 0.03em;
    line-height: 1.85;
  }

  .wide-container,
  .header-inner,
  .footer-inner,
  .article-shell {
    width: min(calc(100% - 32px), var(--wide-width));
  }

  .header-inner {
    gap: 0.55rem;
    min-height: 60px;
  }

  .site-logo {
    width: 122px;
    height: 60px;
  }

  .site-logo img {
    width: 122px;
    height: 61px;
    margin-top: 0;
  }

  .guide-name {
    overflow: hidden;
    padding-left: 0.65rem;
  }

  .guide-name span {
    display: none;
  }

  .guide-name strong {
    overflow: hidden;
    margin: 0;
    font-size: 0.66rem;
    letter-spacing: 0.03em;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-diagnosis {
    min-height: 36px;
    padding: 0.35rem 0.65rem;
    font-size: 0.7rem;
  }

  .hub-intro {
    padding-block: 3.5rem;
  }

  .hub-intro h1 {
    margin-top: 0.8rem;
    font-size: 1.6rem;
    letter-spacing: 0.055em;
  }

  .hub-lead {
    font-size: 0.94rem;
  }

  .hub-hero {
    margin-top: 2rem;
  }

  .topic-shortcuts {
    display: block;
  }

  .topic-shortcuts > p {
    margin: 0 0 0.55rem;
  }

  .topic-shortcuts ul {
    gap: 0.4rem 1rem;
  }

  .category-header {
    display: block;
  }

  .category-header > p {
    margin-top: 0.85rem;
  }

  .article-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .featured-content,
  .guide-cta,
  .article-cta {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .primary-button,
  .text-button {
    width: 100%;
  }

  .article-shell {
    padding-top: 1rem;
  }

  .breadcrumbs {
    margin-bottom: 1.8rem;
  }

  .article-header h1 {
    margin-top: 0.75rem;
    font-size: clamp(1.7rem, 7.2vw, 2.1rem);
    letter-spacing: 0.035em;
    line-height: 1.5;
  }

  figure.article-hero,
  div.article-hero {
    margin: 1.8rem 0;
  }

  .article-content {
    font-size: 1rem;
    line-height: 1.9;
  }

  .article-body h2 {
    scroll-margin-top: 5rem;
    margin-top: 3.2rem;
    padding-top: 0.9rem;
  }

  .article-body h3 {
    scroll-margin-top: 5rem;
  }

  .table-of-contents {
    padding: 1.1rem 1.2rem;
  }

  .article-author {
    margin-top: 3.2rem;
    padding: 1.1rem 1rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (max-width: 420px) {
  .site-logo,
  .site-logo img {
    width: 108px;
  }

  .guide-name strong {
    max-width: 7.8rem;
  }

  .header-diagnosis {
    padding-inline: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .table-of-contents,
  .related-section,
  .article-cta,
  .back-to-guide {
    display: none !important;
  }

  .article-shell {
    width: 100%;
    max-width: none;
  }

  a {
    color: inherit;
  }
}
