/* ヒーローを画面上端から開始 */
.hero-section {
  margin-top: 0;
}

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}

/* 全身評価図の接続線 */
.diagram-connectors {
  z-index: -1;
}

.hero-highlight {
  display: inline;
  line-height: 1;
  text-decoration-line: underline;
  text-decoration-color: #af101a;
  text-decoration-thickness: 4px;
  text-underline-offset: 0.1em;
  text-decoration-skip-ink: none;
}

/* 症状カードアイコン */
.condition-card__icon {
  font-size: 28px;
  color: #af101a;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.group:hover .condition-card__icon {
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

/* 院長紹介 */
.director-section__underline {
  width: 4rem;
  height: 3px;
  margin: 1rem auto 0;
  background-color: #af101a;
  border-radius: 2px;
}

.director-profile__figure {
  margin: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 0.125rem;
  overflow: hidden;
}

.director-profile__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.director-quote {
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  background-color: #fff5f3;
  border-left: 4px solid #af101a;
  border-radius: 0 0.125rem 0.125rem 0;
}

.director-quote__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 700;
  color: #af101a;
}

.director-achievements {
  padding: 1.5rem;
  background-color: #f4f4f4;
  border-radius: 0.5rem;
}

.director-achievements__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.director-achievements__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #1b1c1c;
}

.director-achievements__icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  color: #af101a;
  font-variation-settings: "FILL" 1, "wght" 600, "GRAD" 0, "opsz" 24;
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .diagram-label {
    position: static;
    display: inline-block;
    margin-top: 0.25rem;
    margin-left: 0.25rem;
  }

  .diagram-symptom-label {
    left: -0.5rem;
    font-size: 11px;
    line-height: 1.3;
  }
}

/* iPhone標準幅（375px）: タイポグラフィを1段階縮小 */
@media (max-width: 375px) {
  body .text-headline-lg-mobile {
    font-size: 24px;
    line-height: 32px;
  }

  body .text-headline-md {
    font-size: 20px;
    line-height: 28px;
  }

  body .text-body-lg {
    font-size: 16px;
    line-height: 24px;
  }

  body .text-body-md {
    font-size: 15px;
    line-height: 22px;
  }

  body .text-label-bold {
    font-size: 13px;
    line-height: 18px;
  }

  body .text-label-sm {
    font-size: 11px;
    line-height: 15px;
  }

  body .text-\[40px\] {
    font-size: 32px;
    line-height: 1;
  }

  body .text-\[22px\] {
    font-size: 20px;
    line-height: 28px;
  }

  body .text-\[20px\] {
    font-size: 18px;
    line-height: 26px;
  }

  body .text-lg {
    font-size: 16px;
    line-height: 24px;
  }

  body .text-sm {
    font-size: 13px;
    line-height: 18px;
  }

  body .text-\[20px\].material-symbols-outlined {
    font-size: 18px;
  }

  /* ヒーロー見出しの下線付き強調 */
  body h1 .hero-highlight {
    padding-bottom: 0;
  }

  /* カード・原因ブロックの余白を少し詰める */
  body .bg-surface.border.border-outline-variant.p-8 {
    padding: 1.5rem;
  }

  body .bg-surface-container-lowest.p-6 {
    padding: 1.25rem;
  }

  .director-quote__text {
    font-size: 15px;
    line-height: 1.65;
  }

  .director-achievements {
    padding: 1.25rem;
  }

  .director-achievements__item {
    font-size: 15px;
  }

  .director-profile__name {
    font-size: 24px;
  }
}