:root {
  --article-max: 1080px;
  --article-body: 760px;
}

.article-header {
  background:
    linear-gradient(118deg, #ffffff 0%, #ffffff 58%, rgba(232, 247, 244, 0.78) 58.2%, #ffffff 100%),
    radial-gradient(circle at 86% 18%, rgba(0, 124, 120, 0.1), transparent 32%);
  border-bottom: 1px solid var(--line);
}

.article-hero {
  width: min(100% - 28px, var(--article-max));
  margin: 0 auto;
  padding: 32px 0 36px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.breadcrumb a,
.article-link {
  color: var(--teal-dark);
  text-decoration: underline;
  text-underline-offset: 0.22em;
  transition: color 0.22s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible,
.article-link:hover,
.article-link:focus-visible {
  color: var(--ink);
  outline: none;
}

.article-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.article-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.article-label.is-pr {
  background: #fff7dd;
  color: #8a5d00;
}

.article-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2rem, 8vw, 4.4rem);
  line-height: 1.12;
}

.article-lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  font-weight: 700;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.article-eyecatch {
  overflow: hidden;
  margin: 26px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.article-eyecatch img,
.article-figure img {
  width: 100%;
  height: auto;
}

.article-layout {
  display: grid;
  gap: 28px;
  width: min(100% - 28px, var(--article-max));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.article-main {
  min-width: 0;
}

.article-main > section,
.article-intro-box,
.article-figure,
.article-table-wrap,
.article-cta,
.article-faq {
  margin-top: 34px;
}

.article-main h2 {
  margin: 0 0 14px;
  padding-top: 4px;
  font-size: clamp(1.6rem, 6vw, 2.45rem);
  line-height: 1.25;
}

.article-main h3 {
  margin: 26px 0 10px;
  font-size: 1.24rem;
  line-height: 1.4;
}

.article-main h4 {
  margin: 18px 0 8px;
  color: var(--teal-dark);
  font-size: 1.04rem;
  line-height: 1.45;
}

.article-main p {
  margin: 0 0 16px;
  color: #344252;
  font-size: 1rem;
}

.article-main strong {
  color: var(--ink);
}

.article-summary {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(0, 124, 120, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f4fbfa, #ffffff);
}

.article-summary h2 {
  margin: 0;
  font-size: 1.25rem;
}

.article-summary ul,
.check-list,
.article-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-summary li,
.check-list li {
  position: relative;
  padding-left: 30px;
  color: #344252;
  font-weight: 800;
}

.article-summary li::before,
.check-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--teal);
}

.article-summary li::after,
.check-list li::after {
  content: "";
  position: absolute;
  top: calc(0.58em + 4px);
  left: 7px;
  width: 5px;
  height: 9px;
  border-right: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(45deg);
}

.article-toc {
  align-self: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(18, 27, 38, 0.05);
}

.article-toc strong {
  display: block;
  margin-bottom: 8px;
}

.article-toc li + li {
  margin-top: 8px;
}

.article-toc a,
.related-list a,
.article-cta a {
  color: var(--teal-dark);
  font-weight: 900;
  transition:
    color 0.22s ease,
    background-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

.article-toc a:hover,
.article-toc a:focus-visible,
.related-list a:hover,
.related-list a:focus-visible {
  color: var(--ink);
  outline: none;
}

.article-figure {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 14px 40px rgba(18, 27, 38, 0.07);
}

.article-figure figcaption {
  padding: 10px 14px;
  color: var(--muted);
  font-size: 0.88rem;
}

.h2-summary-figure {
  margin: 14px 0 22px;
}

.h2-summary-figure img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-summary .h2-summary-figure {
  margin: 10px 0 12px;
}

.criteria-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.criteria-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.criteria-item span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 900;
}

.criteria-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.criteria-item p {
  margin: 0;
  font-size: 0.94rem;
}

.deep-box,
.warning-box,
.case-card,
.flow-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.deep-box {
  border-color: rgba(0, 124, 120, 0.18);
  background: linear-gradient(135deg, #f4fbfa, #ffffff);
}

.warning-box {
  border-color: rgba(224, 167, 38, 0.38);
  background: #fffaf0;
}

.case-grid,
.flow-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.case-card h3,
.flow-card h3 {
  margin-top: 0;
}

.case-card p:last-child,
.flow-card p:last-child,
.deep-box p:last-child,
.warning-box p:last-child {
  margin-bottom: 0;
}

.score-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.score-list li {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfdfd;
}

.score-list strong {
  color: var(--ink);
}

.article-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.article-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

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

.article-table th {
  background: #f4fbfa;
  color: var(--ink);
  font-size: 0.9rem;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-note {
  padding: 16px;
  border-left: 5px solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #f4fbfa;
  color: #344252;
}

.article-cta {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
}

.article-cta h2 {
  margin: 0;
  color: var(--white);
}

.article-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.article-cta a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 7px;
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(0, 124, 120, 0.18);
}

.article-cta a:hover,
.article-cta a:focus-visible {
  background: var(--teal-dark);
  box-shadow: 0 16px 34px rgba(0, 124, 120, 0.24);
  transform: translateY(-2px);
  outline: none;
}

.article-faq details {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.article-faq summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.related-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 880px) {
  .article-layout {
    grid-template-columns: minmax(0, var(--article-body)) 280px;
    align-items: start;
  }

  .article-toc {
    position: sticky;
    top: 86px;
    order: 2;
  }

  .article-main {
    order: 1;
  }

  .criteria-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-grid,
  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .breadcrumb a,
  .article-link,
  .article-toc a,
  .related-list a,
  .article-cta a {
    transition: none;
  }
}
