/* ============================================================
   clinic-new-patient (Pillar Article)
   ============================================================ */

.article-hero {
  background: var(--white);
  padding-block: 28px 20px;
}
.article-hero-inner {
  max-width: 640px;
  margin-inline: auto;
}
.article-hero-label {
  display: inline-block;
  color: #00CFE8;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.article-heading-h1,
.article-hero-title {
  position: relative;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 900;
  line-height: 1.48;
  color: var(--color-text-primary);
  margin-bottom: 0;
  letter-spacing: 0;
}
.article-heading-h1::after,
.article-hero-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 5px;
  margin-top: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00CFE8 0%, #66E6F2 100%);
}
.article-hero-visual {
  max-width: 640px;
  margin: 28px auto 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-hero-visual img {
  width: 100%;
  height: auto;
  display: block;
}
.article-hero-subtitle {
  margin-top: 18px;
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text-light);
}

/* ============================================================
   注釈ボックス（読み方の前置き等）
   - 本文より一段下げた目立たない見せ方
   - 薄いグレー背景＋小さめフォント＋斜体なし（日本語に斜体は不向き）
   ============================================================ */
.article-disclaimer {
  display: block;
  margin: 0 auto 2em;
  padding: 16px 20px;
  max-width: 640px;
  background: #F5F7FA;
  border-radius: 4px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-light);
  font-style: normal;
}
.article-disclaimer strong {
  color: var(--color-text-primary);
  background: linear-gradient(transparent 65%, rgba(255, 230, 0, 0.45) 65%);
  font-weight: 700;
  padding: 0 2px;
}

.article-body {
  padding-block: 24px 64px;
}
.article-body-inner {
  max-width: 640px;
  margin-inline: auto;
}
.article-body p {
  margin-bottom: 1.5em;
  font-size: 1rem;
  line-height: 1.95;
}
.article-body p strong {
  background: linear-gradient(transparent 65%, rgba(27, 184, 206, 0.18) 65%);
  font-weight: 700;
  padding: 0 2px;
}

/* ============================================================
   外部リンク（出典・引用元への誠実な明示）
   - 本文中の target="_blank" リンクにアンダーラインを常時表示
   - マウスオーバー時は黄色マーカーで強調 ＋ 外部リンクアイコン
   ============================================================ */
.article-body a[target="_blank"],
.article-body blockquote a[target="_blank"],
.article-body li a[target="_blank"] {
  color: var(--color-text-primary);
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  padding: 0 2px;
  border-radius: 2px;
  transition: background-color 0.15s ease, color 0.15s ease, text-decoration-color 0.15s ease;
}
.article-body a[target="_blank"]::after {
  content: " ↗";
  font-size: 0.85em;
  color: var(--primary);
  vertical-align: super;
  margin-left: 1px;
}
.article-body a[target="_blank"]:hover,
.article-body a[target="_blank"]:focus-visible {
  background-color: #FFF176;
  color: var(--navy);
  text-decoration-color: var(--navy);
  text-decoration-thickness: 2px;
  outline: none;
}
.article-body a[target="_blank"]:hover::after,
.article-body a[target="_blank"]:focus-visible::after {
  color: var(--navy);
}
.article-heading-h2,
.article-body h2 {
  position: relative;
  margin-top: 3.4em;
  margin-bottom: 1.15em;
  padding: 0 0 18px 28px;
  border-bottom: 1px solid #D1EAF0;
  color: var(--color-text-primary);
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: 0;
  scroll-margin-top: calc(var(--header-h, 80px) + 12px);
}
.article-heading-h2::before,
.article-body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 8px;
  height: 1.25em;
  border-radius: 999px;
  background: #00CFE8;
  box-shadow: 12px 0 0 rgba(0, 207, 232, 0.18);
}
.article-heading-h2::after,
.article-body h2::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  width: 120px;
  height: 1px;
  background: #00CFE8;
}
@media (max-width: 768px) {
  .article-heading-h2,
  .article-body h2 {
    padding: 0 0 14px 22px;
  }
}
.article-heading-h3,
.article-body h3 {
  position: relative;
  margin-top: 2.7em;
  margin-bottom: 1em;
  padding: 0 0 12px;
  border-bottom: 1px solid #D1EAF0;
  font-size: clamp(1.15rem, 2.4vw, 1.38rem);
  font-weight: 900;
  line-height: 1.55;
  color: var(--color-text-primary);
  letter-spacing: 0;
  scroll-margin-top: calc(var(--header-h, 80px) + 12px);
}
.article-heading-h3::before,
.article-body h3::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  border-radius: 999px;
  background: #00CFE8;
}
@media (max-width: 768px) {
  .article-heading-h3,
  .article-body h3 {
    padding-bottom: 10px;
  }
}
.article-heading-h4,
.article-body h4 {
  position: relative;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  padding-left: 18px;
  color: var(--color-text-primary);
  font-size: clamp(1.02rem, 2vw, 1.12rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
  scroll-margin-top: calc(var(--header-h, 80px) + 12px);
}
.article-heading-h4::before,
.article-body h4::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00CFE8;
  box-shadow: 0 0 0 6px rgba(0, 207, 232, 0.14);
}
.article-body ul {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
  list-style: disc;
}
.article-body ul li {
  margin-bottom: 0.5em;
  line-height: 1.85;
}
.article-body blockquote {
  position: relative;
  margin: 2em 0;
  padding: 42px 34px 30px;
  background: var(--white);
  border: 1px solid #E5EEF2;
  border-radius: 12px;
  color: var(--color-text-primary);
  font-style: normal;
  box-shadow: 0 10px 30px rgba(27, 45, 79, 0.06);
}
.article-body blockquote::before {
  content: "\201C";
  position: absolute;
  top: 16px;
  left: 28px;
  color: #00CFE8;
  font-family: Arial, sans-serif;
  font-size: 4.25rem;
  font-weight: 900;
  line-height: 0.8;
}
.article-body blockquote p {
  margin-bottom: 0;
  padding-top: 18px;
  font-weight: 700;
  line-height: 1.9;
  color: #374151;
}
@media (max-width: 768px) {
  .article-body blockquote {
    margin: 1.7em 0;
    padding: 36px 24px 24px;
    border-radius: 10px;
  }
  .article-body blockquote::before {
    top: 14px;
    left: 22px;
    font-size: 3.5rem;
  }
  .article-body blockquote p {
    padding-top: 14px;
  }
}
.article-body hr {
  margin: 3em 0;
  border: none;
  border-top: 1px solid var(--color-border-subtle);
}

/* Lead paragraph */
.article-lead {
  margin-bottom: 2em;
}
.article-lead p {
  font-size: 1.05rem;
}

/* TOC */
.article-toc {
  margin: 2.5em 0;
  padding: 24px 28px;
  background: var(--bg-light);
  border-radius: var(--radius);
}
.article-toc-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
}
.article-toc-list,
.article-toc-sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.article-toc-list > li {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.article-toc-list > li > a {
  flex: 1;
  min-width: 0;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-text-primary);
  line-height: 1.6;
  padding-top: 4px;
  text-decoration: none;
}
.article-toc-list > li > a:hover {
  color: #4FCBDC;
  opacity: 1;
}
.article-toc-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: #4FCBDC;
  color: var(--white);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
}
.article-toc-sublist {
  flex-basis: 100%;
  margin-top: 8px;
  margin-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-toc-sublist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.article-toc-sublist a {
  flex: 1;
  min-width: 0;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.6;
  padding-top: 3px;
  text-decoration: none;
}
.article-toc-sublist a:hover {
  color: #4FCBDC;
  opacity: 1;
}
.article-toc-subnum {
  flex-shrink: 0;
  min-width: 36px;
  height: 26px;
  padding: 0 8px;
  background: #4FCBDC;
  color: var(--white);
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.72rem;
  line-height: 1;
}
.article-toc-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-light);
}
@media (max-width: 768px) {
  .article-toc {
    padding: 20px 18px;
  }
  .article-toc-num {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  .article-toc-subnum {
    min-width: 32px;
    height: 22px;
    font-size: 0.68rem;
  }
  .article-toc-sublist {
    margin-left: 14px;
  }
}

/* Mid-article CTA */
.article-mid-cta {
  position: relative;
  overflow: hidden;
  width: min(100%, 720px);
  margin: 3em auto;
  padding: 34px 38px 36px;
  background: linear-gradient(180deg, rgba(0, 207, 232, 0.045), rgba(255, 255, 255, 0) 52%), var(--white);
  border: 1px solid #D6F3F7;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 14px 36px rgba(27, 45, 79, 0.07);
}
.article-mid-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(0, 207, 232, 0.16) 1.4px, transparent 1.5px) calc(50% - 270px) 78px / 13px 13px no-repeat,
    radial-gradient(circle, rgba(0, 207, 232, 0.16) 1.4px, transparent 1.5px) calc(50% + 176px) 78px / 13px 13px no-repeat;
  opacity: 0.45;
  pointer-events: none;
}
.article-mid-cta::after {
  content: none;
}
.article-mid-cta-label {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  padding: 7px 16px;
  color: #00BED6;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(27, 45, 79, 0.06);
}
.article-mid-cta-label svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.article-mid-cta-content,
.article-mid-cta-button {
  position: relative;
  z-index: 1;
}
.article-mid-cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.article-mid-cta-content::after {
  content: none;
}
.article-mid-cta .article-mid-cta-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 11px auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #00CFE8, #66E6F2);
}
.article-mid-cta .article-mid-cta-title {
  order: 1;
  max-width: 600px;
  margin: 18px auto 0;
  font-size: clamp(1.14rem, 2.3vw, 1.42rem);
  font-weight: 900;
  line-height: 1.62;
  color: var(--color-text-primary);
}
.article-mid-cta-content > p:not(.article-mid-cta-title) {
  order: 2;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.9;
  color: #374151;
}
.article-mid-cta-button {
  min-width: 0;
  margin-top: 24px;
  box-shadow: 0 10px 24px rgba(27, 184, 206, 0.18);
}

/* End CTA */
.article-end-cta {
  margin-top: 3em;
  padding: 34px 38px 36px;
  background: linear-gradient(180deg, rgba(0, 207, 232, 0.045), rgba(255, 255, 255, 0) 52%), var(--white);
  border: 1px solid #D6F3F7;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 14px 36px rgba(27, 45, 79, 0.07);
}
.article-end-cta-label {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  padding: 7px 16px;
  color: #00BED6;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.4;
  box-shadow: 0 8px 20px rgba(27, 45, 79, 0.06);
}
.article-end-cta-label svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.article-body .article-end-cta .article-end-cta-title {
  max-width: 600px;
  margin: 18px auto 0;
  font-size: clamp(1.14rem, 2.3vw, 1.42rem);
  font-weight: 900;
  line-height: 1.62;
  color: var(--color-text-primary);
}
.article-body .article-end-cta .article-end-cta-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin: 11px auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #00CFE8, #66E6F2);
}
.article-end-cta > p:not(.article-end-cta-title):not(.article-end-cta-sublinks) {
  max-width: 560px;
  margin: 0 auto;
  font-size: 0.96rem;
  line-height: 1.9;
  color: #374151;
}
.article-end-cta-button {
  min-width: 0;
  margin-top: 24px;
  box-shadow: 0 10px 24px rgba(27, 184, 206, 0.18);
}
.article-end-cta-sublinks {
  max-width: 560px;
  margin: 1.5em auto 0;
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text-light);
}
.article-end-cta-sublinks a {
  color: #4FCBDC;
  text-decoration: underline;
}
.article-end-cta-sublinks a:hover {
  opacity: 0.75;
}

@media (max-width: 768px) {
  .article-hero {
    padding-block: 18px 14px;
  }
  .article-body {
    padding-block: 16px 48px;
  }
  .article-body p {
    font-size: 0.96rem;
    line-height: 1.9;
  }
  .article-toc,
  .article-mid-cta,
  .article-end-cta {
    padding: 20px 22px;
  }
  .article-mid-cta {
    width: 100%;
    margin: 2.8em 0;
    padding: 26px 20px 28px;
  }
  .article-mid-cta::before {
    background:
      radial-gradient(circle, rgba(0, 207, 232, 0.14) 1.2px, transparent 1.3px) right 18px top 18px / 11px 11px no-repeat;
  }
  .article-mid-cta::after {
    display: none;
  }
  .article-mid-cta-label {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  .article-mid-cta-content::after {
    content: none;
  }
  .article-mid-cta .article-mid-cta-title::after {
    content: "";
    display: block;
    width: 56px;
    height: 3px;
    margin: 10px auto;
  }
  .article-mid-cta-label svg {
    width: 22px;
    height: 22px;
  }
  .article-mid-cta .article-mid-cta-title {
    font-size: 1.16rem;
    line-height: 1.65;
  }
  .article-mid-cta-content > p:not(.article-mid-cta-title) {
    font-size: 0.95rem;
    line-height: 1.9;
  }
  .article-mid-cta-button {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.98rem;
    white-space: normal;
    line-height: 1.45;
  }
  .article-end-cta-label {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
  .article-end-cta-label svg {
    width: 22px;
    height: 22px;
  }
  .article-body .article-end-cta .article-end-cta-title {
    font-size: 1.16rem;
    line-height: 1.65;
  }
  .article-body .article-end-cta .article-end-cta-title::after {
    width: 56px;
    height: 3px;
    margin: 10px auto;
  }
  .article-end-cta > p:not(.article-end-cta-title):not(.article-end-cta-sublinks) {
    font-size: 0.95rem;
    line-height: 1.9;
  }
  .article-end-cta-button {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.98rem;
    white-space: normal;
    line-height: 1.45;
  }
}
