/* ── Clinic Section ── */
.clinic {
  background-color: #ffffff;
  padding: var(--space-2xl) var(--space-md) 120px;
}

.clinic__inner {
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  text-align: center;
}

.clinic__title {
  font-size: clamp(1.5rem, 5.5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: calc(var(--space-md) + 0.25rem);
}

.clinic__description {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: calc(var(--space-lg) - 0.5rem);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
  text-align: center;
}

.clinic__eyebrow {
  margin-bottom: 0.75rem;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.18em;
  color: #b8c3d7;
  text-transform: uppercase;
}

/* ── Gallery ── */
.clinic__gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 252px));
  justify-content: center;
  gap: 36px;
}

.clinic__item {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-height: 350px;
  padding: 20px 26px;
  background-color: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 30px;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.045);
  transition:
    transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.clinic__item:last-child {
  transform: scale(1.05);
  transform-origin: center;
  z-index: 1;
  margin-inline: 4px;
}

.clinic__media {
  position: relative;
  width: 100%;
  height: 180px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 30px;
  background-color: #f5f5f7;
}

.clinic__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
  /* Warm white premium clinic tone */
  filter: brightness(1.06) contrast(0.95) saturate(0.86);
  transform: scale(1);
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

@media (hover: hover) {
  .clinic__item:hover {
    transform: translateY(-10px);
    border-color: #dbeafe;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  }

  .clinic__item:last-child:hover {
    transform: translateY(-10px) scale(1.05);
  }

  .clinic__item:hover .clinic__image {
    transform: scale(1.05);
  }
}

.clinic__caption {
  text-align: center;
}

.clinic__caption-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.clinic__caption-en {
  margin-top: 0.2rem;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: #b8c3d7;
}

.clinic__caption-sub {
  margin-top: 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--color-text-secondary);
  text-align: left;
}

.clinic__caption-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 0.125rem;
  color: #9aa6ba;
}

.clinic__caption-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.clinic__caption-copy {
  display: inline-block;
}

.clinic__note {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.clinic__note-main {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: #94a3b8;
  text-align: center;
}

.clinic__note-sub {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: -0.01em;
  color: #8e99ac;
  text-align: center;
}

/* ── Tablet+ ── */
@media (min-width: 48rem) {
  .clinic {
    padding: calc(var(--space-2xl) + 1rem) var(--space-lg) 120px;
  }

  .clinic__inner {
    max-width: 56rem;
  }

  .clinic__title {
    margin-bottom: calc(var(--space-lg) + 0.25rem);
  }

  .clinic__description {
    max-width: 680px;
    font-size: 1.125rem;
    line-height: 1.85;
    margin-bottom: calc(var(--space-lg) - 0.25rem);
  }

  .clinic__gallery {
    gap: 36px;
  }

  .clinic__caption-title {
    font-size: 1rem;
  }

  .clinic__caption-sub {
    font-size: 0.875rem;
    line-height: 1.55;
  }
}

@media (min-width: 64rem) {
  .clinic__inner {
    max-width: 72rem;
  }

  .clinic__gallery {
    grid-template-columns: repeat(4, 252px);
    gap: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clinic__item,
  .clinic__image {
    transition: none;
    will-change: auto;
  }

  .clinic__item:last-child {
    transform: scale(1.05);
  }

  .clinic__item:hover,
  .clinic__item:last-child:hover {
    transform: scale(1.05);
    border-color: #f1f5f9;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.045);
  }

  .clinic__item:hover .clinic__image {
    transform: scale(1);
  }
}
