/* 共通の導入・おすすめ・ボタン・治療の流れ・料金表・予約案内。 */

.intro {
  display: flex;
  flex-direction: column;
  gap: var(--content-gap);
}

.intro__heading {
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
  text-align: center;
}

.intro__photo {
  width: 100%;
  height: auto;
}

.intro__copy,
.intro__visual {
  min-width: 0;
}

.recommend {
  padding: var(--space-5) var(--space-3);
  background: #fff url(../images/recommend-panel.jpg) center / cover;
  box-shadow: var(--shadow-panel);
}

.recommend__heading {
  font-size: var(--text-7xl);
  line-height: 1.111112;
  text-align: center;
  color: transparent;
  background: var(--gold-text-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.recommend__subheading {
  margin-top: var(--space-2);
  padding: var(--space-1);
  background: var(--gold-gradient);
  text-align: center;
  font-family: var(--font-serif);
}

.recommend__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  padding: 0;
  margin: var(--space-4) 0 0;
}

.recommend__list li {
  flex: 0 0 100%;
  padding-left: 1.4em;
  position: relative;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: var(--leading-card);
}

.recommend__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1em;
  height: 1em;
  background: url(../images/recommend-check.png) center / contain no-repeat;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  min-height: 3.5rem;
  width: 18rem;
  max-width: 100%;
  padding: var(--space-2) var(--space-5);
  border: 1px solid transparent;
  font: var(--text-base)/1.5 var(--font-serif);
  background:
    var(--gold-gradient) padding-box,
    var(--gold-stroke) border-box;
  position: relative;
}

.button__arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.8rem;
  height: 0.35rem;
  background: url(../images/button-arrow.png) center / contain no-repeat;
}

.button--outline {
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--gold-stroke) border-box;
}

.button--round {
  width: 7rem;
  min-height: 7rem;
  border-radius: 50%;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-3);
  font-size: var(--text-md);
  background: var(--gold-gradient-vertical);
  border: 0;
}

.button--round::before {
  content: "";
  position: absolute;
  inset: 0.3rem;
  border: 1px solid #1e1e1e;
  border-radius: 50%;
  pointer-events: none;
}

.button--round .button__arrow {
  position: static;
  transform: none;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: var(--space-2);
  padding: 0;
  margin: 0;
}

.flow li {
  flex: 1 1 calc((100% - var(--space-2) * 2) / 3);
  border: 1px solid #b3b3b3;
  background: white;
  min-width: 6.25rem;
  text-align: center;
  overflow-wrap: anywhere;
  position: relative;
}

.flow li::after {
  content: "";
  position: absolute;
  width: 0.5rem;
  height: 1rem;
  right: -0.625rem;
  top: calc(50% - 0.5rem);
  background: url(../images/flow-arrow.png) center / contain no-repeat;
}

.flow li:nth-child(3n)::after {
  display: none;
}

.flow__number {
  display: block;
  background: #c0b676;
  color: white;
  font: var(--text-xl)/1.333334 var(--font-serif);
}

.flow__label {
  display: block;
  padding: var(--space-3) 0.2rem;
  letter-spacing: 0;
  line-height: 1.428572;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: var(--shadow-panel);
}

.price-table th,
.price-table td {
  padding: var(--space-2);
  border: 1px solid var(--color-line);
  font-weight: 400;
  line-height: 1.428572;
  overflow-wrap: anywhere;
}

.price-table th {
  width: 70%;
  text-align: left;
  background: var(--price-label-gradient);
  overflow-wrap: anywhere;
}

.price-table td {
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cta {
  text-align: center;
}

.cta__heading {
  font-size: var(--text-lg);
  line-height: var(--leading-card);
}

.cta .copy {
  font-family: var(--font-sans);
}

.cta__divider {
  height: 2rem;
  width: 1px;
  background: var(--color-gold-line);
  margin: var(--space-4) auto;
}

.cta__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding-inline: 1.25rem;
}

.reservation {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 5.5rem;
  padding: 0 1.25rem;
  font-family: var(--font-serif);
  line-height: 1.5;
  border: 0;
}

.reservation small {
  font-size: var(--text-sm);
  line-height: 1.428572;
}

.reservation strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  font-size: var(--text-xl);
  line-height: 1.333334;
  font-weight: 400;
}

.reservation strong img {
  width: 1.25rem;
  height: 1.25rem;
  object-fit: contain;
}

.reservation--line img {
  filter: brightness(0) invert(1);
}

.reservation--social,
:is(.home-reservations, .opening-hours) .reservation--phone {
  color: white;
  background: var(--dark-gradient);
}

:is(.home-reservations, .opening-hours) .reservation--phone strong {
  gap: 0.25em;
  white-space: nowrap;
}

:is(.home-reservations, .opening-hours) .reservation--phone strong img {
  width: 0.8em;
  height: 0.8em;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-1);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
}

.social-links img {
  width: 1.5rem;
  height: 1.5rem;
}

.reservation--web {
  background: var(--gold-gradient-vertical);
}

.reservation--line {
  color: white;
  background: var(--line-gradient);
}

.feature-cards {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}

.feature-card,
.plan-card {
  flex: 1 1 100%;
  min-width: 0;
}

.feature-card > img {
  width: 100%;
  aspect-ratio: 1.5;
  object-fit: cover;
}

.feature-card h3 {
  text-align: center;
  font-size: var(--text-lg);
  margin-block: var(--space-4);
}

.feature-card .copy {
  font-family: var(--font-sans);
}

.plan-card {
  background: white;
  box-shadow: var(--shadow-panel);
  padding: var(--space-5);
  text-align: center;
}

.plan-card h3,
.plan-card h4 {
  margin: 0 0 var(--space-4);
  font-size: var(--text-lg);
  font-weight: 400;
}

.plan-card h4 {
  font-size: var(--text-sm);
  color: white;
  background: #050505;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .intro__heading {
    font-size: var(--text-5xl);
  }

  .recommend__heading {
    font-size: var(--text-9xl);
  }

  .cta__heading {
    font-size: var(--text-5xl);
  }

  .intro {
    flex-direction: row;
    align-items: center;
  }

  .intro__copy {
    flex: 1 1 55%;
  }

  .intro__heading {
    text-align: left;
  }

  .intro__visual {
    flex: 1 1 45%;
  }

  .recommend {
    padding: var(--space-6);
  }

  .recommend__heading {
    line-height: 1;
  }

  .recommend__list li {
    flex-basis: calc((100% - var(--space-3) * 2) / 3);
  }

  .button--round {
    width: 10rem;
    min-height: 10rem;
    font-size: var(--text-lg);
  }

  .flow__label {
    line-height: 1.5;
  }

  .price-table th,
  .price-table td {
    padding: var(--space-3);
    line-height: 1.5;
  }

  .cta__buttons {
    gap: 1.25rem;
  }

  .cta__buttons .reservation {
    flex: 1 1 14rem;
  }

  .feature-card h3 {
    font-size: var(--text-4xl);
  }

  .plan-card h3,
  .plan-card h4 {
    font-size: var(--text-4xl);
  }

  .plan-card h4 {
    font-size: var(--text-base);
  }

  .feature-card,
  .plan-card {
    flex-basis: calc((100% - var(--space-5) * 2) / 3);
  }

  .intro--photo-first .intro__visual {
    order: -1;
  }
}

@media (min-width: 1024px) {
  .flow li {
    flex-basis: calc((100% - var(--space-2) * 5) / 6);
  }

  .flow li:nth-child(3n)::after {
    display: block;
  }

  .flow li:last-child::after {
    display: none;
  }
}

@media (max-width: 359px) {
  .flow li:nth-child(3n)::after {
    display: block;
  }

  .flow li:nth-child(2n)::after {
    display: none;
  }
}

.clinic-gallery-section,
.clinic-video-section {
  background: #fff url(../images/marble-clinic.jpg) center / cover;
}

.section.clinic-video-section {
  padding-block: var(--section-space);
}

.clinic-video {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 768px) {
  .clinic-gallery-section,
  .clinic-video-section {
    background: #eef0f3 url(../images/clinic-gallery-background.jpg) center / cover;
  }

  .clinic-gallery,
  .clinic-video-section .container {
    width: 66.4%;
    max-width: 80rem;
  }
}
