/* トップビュー */
:root {
  --header-h: 0px;
}

.fade-container {
  position: relative;
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
  aspect-ratio: 16 / 6;
  margin-top: var(--header-h);
}

.fade-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.fade-img.active {
  opacity: 1;
  z-index: 2;
}

@media (max-width: 600px) {
  .fade-container {
    aspect-ratio: 16 / 8;
  }
}

/* お悩み */
.uix-worry {
  background: #fff;
  text-align: center;
  font-family: "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}

.uix-worry__title {
  font-size: clamp(14px, 5vw, 20px);
  font-weight: bold;
  padding: 20px;
  white-space: nowrap;
}

.uix-worry__highlight {
  color: #6baa75;
  font-weight: bold;
}

.uix-worry-arch {
  position: relative;
  width: 100%;
  max-width: 700px;
  aspect-ratio: 700 / 300;
  height: auto;
  margin: 0 auto 60px;
  transform-origin: center top;
  overflow: visible;
  --ball: 150px;
  --top-offset: 13.333%;
  --c2: 36%;
  --c3: 61%;
}

.uix-worry-ball {
  position: absolute;
  width: var(--ball);
  height: var(--ball);
  background: #fff;
  border: 2px solid #f8f8f8;
  border-radius: 50%;
  font-size: clamp(12px, 1.7vw, 13px);
  line-height: 1.4;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  z-index: 1;
}

.uix-worry-ball.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.uix-worry-ball--1 {
  top: var(--top-offset);
  left: 0;
}

.uix-worry-ball--4 {
  top: var(--top-offset);
  right: 0;
}

.uix-worry-ball--2 {
  top: 0;
  left: calc(var(--c2) - (var(--ball) / 2));
  right: auto;
}

.uix-worry-ball--3 {
  top: 0;
  left: calc(var(--c3) - (var(--ball) / 2));
  right: auto;
}

.uix-worry-visual {
  position: absolute;
  width: 35%;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.uix-worry-visual img {
  width: 100%;
  height: auto;
  display: block;
}

.uix-worry-solution {
  background-color: #6baa75;
  color: #ffffff;
  text-align: center;
  padding: 20px 10px;
  position: relative;
  width: 100%;
  margin-top: 40px;
}

.uix-worry-solution__inner {
  font-size: 18px;
  font-weight: bold;
  display: inline-block;
  margin: 0 auto;
}

.uix-worry-solution::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-width: 10px 10px 0 10px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
  z-index: 1;
}

/* SP レスポンシブ */

@media (max-width: 650px) {
  .uix-worry-arch {
    --ball: clamp(60px, 24vw, 200px);
    --c2: 36%;
    --c3: 60%;
  }

  .uix-worry-ball--1 {
    left: 2.5vw;
  }

  .uix-worry-ball--4 {
    right: 2.5vw;
  }

  .uix-worry-visual {
    bottom: -18%;
  }
}

@media (max-width: 645px) {
  .uix-worry-arch br {
    display: none;
  }
}

@media (max-width: 480px) {
  .uix-worry-arch {
    --c2: 37%;
    --c3: 62%;
  }
}

@media (max-width: 380px) {
  .uix-worry-arch {
    --ball: clamp(56px, 25vw, 100px);
    --c2: 36%;
    --c3: 60%;
  }

  .uix-worry-visual {
    bottom: -36%;
  }
}

/* 当院の特徴 */
:root {
  --brand-blue: #3f5bd9;
  --brand-red: #e75b5b;
  --text: #222;
  --muted: #697386;
  --card-bg: #fff;
  --card-bd: #eef1f6;
  --wrap: max(280px, min(900px, 92vw));
  --radius: 16px;
  --shadow: 0 10px 24px rgba(25, 30, 50, 0.08);
}

.reasons {
  background: #fff;
  padding: 60px 16px 30px;
  position: relative;
  overflow: hidden;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .reasons {
    overflow-x: hidden;
  }
}

.reasons__wrap {
  container-type: inline-size;
  max-width: var(--wrap);
  width: 100%;
  margin: 0 auto;
}

.reasons__head {
  position: relative;
  margin-bottom: 26px;
}

.reasons__eyebrow {
  margin: 0 0 4px;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #bcd0ff;
}

.reasons__title {
  margin: 0;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.4;
  color: var(--text);
  font-weight: 600;
  text-align: center;
}

.reasons__title span {
  color: #80bc00;
}

.reasons__decor {
  position: absolute;
  right: 0;
  top: -18px;
  width: min(22vw, 180px);
  height: auto;
  opacity: 0.2;
  pointer-events: none;
}

.reasons__grid {
  list-style: none;
  margin: 24px 0 20px;
  padding: 0;
  --card-min: 280px;
  --grid-gap: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}

.reasons__grid > * {
  min-width: 0;
}

@container (max-width: calc(3 * var(--card-min) + 2 * var(--grid-gap))) {
  .reasons__grid {
    grid-template-columns: 1fr;
  }

  .reasons__decor {
    width: 120px;
    top: -10px;
  }
}

@supports not (container-type: inline-size) {
  @media (max-width: 900px) {
    .reasons__grid {
      grid-template-columns: 1fr;
    }

    .reasons__decor {
      width: 120px;
      top: -10px;
    }
  }
}

.reason-card {
  background: var(--card-bg);
  border: 1px solid var(--card-bd);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.reason-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(25, 30, 50, 0.12);
}

.reason-card__title {
  order: 1;
  margin: 6px 0 4px;
  text-align: center;
  font-size: 0;
}

.reason-card__jp {
  display: block;
  font-size: clamp(20px, 1.8vw, 16px);
  color: rgb(255 105 0);
  text-align: center;
}

.reason-card__media {
  order: 2;
  align-self: center;
  margin-top: 6px;
}

.reason-card__media img {
  display: block;
  margin: 0 auto;
  width: 225px;
  height: auto;
  object-fit: contain;
}

.reason-card__text {
  order: 3;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 14px);
  line-height: 1.9;
}

.reasons img,
.reasons svg {
  max-width: 100%;
  height: auto;
}

.reasons,
.reasons * {
  box-sizing: border-box;
}

@media (max-width: 580px) {
  .reasons__grid {
    grid-template-columns: 1fr !important;
    gap: 14px;
  }

  .reason-card {
    padding: 20px 14px;
    margin-bottom: 30px;
  }

  .reason-card__media img {
    width: 235px;
  }

  .reasons__decor {
    width: 100px;
    top: -6px;
    opacity: 0.18;
  }

  .reasons {
    overflow-x: clip;
  }

  .reason-card__text {
    font-size: 18px;
  }

  @supports not (overflow: clip) {
    .reasons {
      overflow-x: hidden;
    }
  }
}

/* ボタン */
.cta-wrap {
  text-align: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: transparent;
  color: #78b41e;
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 9999px;
  border: 2px solid #78b41e;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  transition: all 0.2s ease;
  margin-bottom: 25px;
}

.cta-btn::after {
  content: "▶";
  font-size: 12px;
  display: inline-block;
  line-height: 1;
  margin-left: 4px;
  color: inherit;
}

.cta-btn:hover {
  background-color: #78b41e;
  color: #fff !important;
}

@media (max-width: 580px) {
  .cta-wrap {
    margin-top: -20px;
  }
}

/* 症状一覧 */
body.home {
  background: #fff7ec;
}

.symptom-section {
  padding: 40px 20px 0px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.symptom-section h2 {
  font-size: 28px;
  margin-bottom: 40px;
  letter-spacing: 0.08em;
}

.symptom-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 60px;
  margin-bottom: 50px;
}

.symptom-item {
  text-align: center;
}

.symptom-thumb {
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  background: #fff;
}

.symptom-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.symptom-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: -7px;
}

.symptom-text {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .symptom-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .symptom-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 10px;
  }

  .symptom-item {
    width: 100%;
    max-width: 160px;
    margin: 0 auto;
  }

  .symptom-thumb {
    width: 100px;
    height: 100px;
    margin: 0 auto 10px;
  }

  .symptom-section h2 {
    font-size: 20px;
  }

  .symptom-title {
    font-size: 14px;
  }

  .symptom-text {
    font-size: 12px;
    white-space: normal;
    line-height: 1.4;
  }
}

/* ==========================================
   ボタン
========================================== */
.symptom-btn-wrap {
  text-align: center;
}

.symptom-btn {
  display: inline-block;
  padding: 12px 34px;
  border-radius: 999px;
  border: 1px solid #80bc00;
  background: #fff;
  color: #80bc00;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: all 0.2s ease;
}

.symptom-btn:hover {
  background: #80bc00;
  color: #fff;
}

/* 患者様の声 */
:root {
  --accent: #80bc00;
  --text: #32373c;
  --muted: #6b7280;
  --surface: #f4f8f6;
  --card-bg: #ffffff;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.testimonials {
  background: #fff;
}

.testimonials__title {
  margin: 0 0 28px;
  text-align: center;
  color: #32373c;
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 24px);
  letter-spacing: 0.02em;
}

.testimonial-list {
  list-style: none;
  margin: 0;
  padding: 0px 0 0px;
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
}

.testimonial {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: start;
  column-gap: 16px;
}

.testimonial__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.testimonial__avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.testimonial__id {
  font-size: 12.5px;
  color: #707070;
}

.testimonial__bubble {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02);
  padding: 16px 18px;
  border: 1px solid #e8eee9;
}

.testimonial__quote {
  margin: 0 0 10px;
  line-height: 1.9;
  font-size: 14.5px;
}

.emph {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 520px) {
  .testimonial-list {
    grid-template-columns: 1fr;
  }

  .testimonial {
    grid-template-columns: 82px 1fr;
  }

  .testimonial__avatar {
    width: 72px;
    height: 72px;
  }

  .testimonial__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    line-height: 1.5;
    margin-top: 6px;
  }

  .testimonial__meta span + span {
    margin-left: 0;
  }
}

/* blog */
.home-blog {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.home-blog-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  border-left: 6px solid #80bc00;
  padding-left: 12px;
}

.home-blog-list {
  list-style: none;
  margin: 0;
  padding: 0;
  margin-bottom: 44px;
}

.home-blog-item {
  padding: 14px 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: 18px;
}

.home-blog-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #333;
}

.home-blog-date {
  color: #666;
  font-size: 14px;
  white-space: nowrap;
}

.home-blog-cat {
  background: #78b41e;
  color: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
}

.home-blog-title-text {
  font-size: 15px;
  line-height: 1.4;
}
