.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep);
  background: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(127, 198, 204, 0.7);
  background: #ffffff;
}

.btn--primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--deep), var(--deep-2));
  border-color: transparent;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.62);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card--pad {
  padding: 26px;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(127, 198, 204, 0.08), transparent 42%),
    radial-gradient(circle at 86% 10%, rgba(111, 143, 168, 0.1), transparent 30%);
}

.card > * {
  position: relative;
}

.glass {
  border: 1px solid rgba(216, 227, 234, 0.86);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-carousel {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  padding: 28px 0 46px;
  display: grid;
  align-items: center;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 250, 252, 0.3), rgba(247, 250, 252, 0.12), rgba(247, 250, 252, 0.18)),
    repeating-linear-gradient(90deg, rgba(111, 143, 168, 0.05) 0 1px, transparent 1px 72px);
  z-index: 1;
}

.hero-carousel.is-dragging {
  cursor: grabbing;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 800ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.98) brightness(1.02);
}

.hero-slide__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 250, 252, 0.88) 0%, rgba(247, 250, 252, 0.54) 42%, rgba(247, 250, 252, 0.08) 100%),
    linear-gradient(180deg, rgba(247, 250, 252, 0.08), rgba(247, 250, 252, 0.2));
}

.hero-carousel__content {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 720px;
  padding: 34px;
  border-radius: var(--radius-lg);
}

.hero-copy h1 {
  margin-bottom: 16px;
}

.hero-copy__subtitle {
  color: var(--title-soft);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
}

.hero-copy__text {
  max-width: 620px;
  color: var(--text);
  font-size: 17px;
}

.hero-pills,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 22px;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--brand-2);
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
}

.carousel-controls {
  position: absolute;
  left: max(18px, calc((100vw - var(--container)) / 2));
  bottom: 28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-btn,
.dot {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  color: var(--deep);
  cursor: pointer;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  line-height: 1;
}

.carousel-btn--prev {
  left: max(18px, calc((100vw - var(--container)) / 2));
}

.carousel-btn--next {
  right: max(18px, calc((100vw - var(--container)) / 2));
}

.carousel-dots,
.dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 8px;
  padding: 0 8px;
  transform: translateX(-50%);
}

.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
}

.dot.is-active {
  width: 28px;
  border-radius: 999px;
  background: var(--accent);
}

.advantage-grid .card {
  min-height: 190px;
}

.brand-story {
  position: relative;
  padding: 34px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 250, 0.78)),
    radial-gradient(circle at 88% 18%, rgba(127, 198, 204, 0.22), transparent 26%);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.brand-story::after,
.section--tech::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(95, 130, 160, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 130, 160, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}

.brand-story .section-head {
  position: relative;
  margin-bottom: 0;
}

.brand-story mark {
  padding: 1px 5px;
  border-radius: 8px;
  color: var(--deep);
  background: rgba(127, 198, 204, 0.22);
}

.advantage-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--deep);
  background: var(--section);
  border: 1px solid var(--line);
}

.timeline-wrap {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
}

.timeline-nav {
  display: grid;
  gap: 12px;
}

.timeline-tab {
  text-align: left;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
}

.timeline-tab.is-active {
  color: var(--title);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.timeline-panel {
  min-height: 420px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  align-items: stretch;
}

.timeline-panel img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 22px;
}

.doctor-card {
  display: grid;
  grid-template-rows: 280px auto;
}

.doctor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background: linear-gradient(180deg, #f8fbfd, #eaf2f7);
}

.doctor-body {
  padding: 24px;
}

.doctor-body h3,
.service-card h3,
.equipment-card h3,
.environment-card h3 {
  margin-bottom: 8px;
}

.doctor-title,
.service-meta,
.equipment-meta {
  color: var(--title-soft);
  font-weight: 700;
}

.media-card {
  display: grid;
  grid-template-rows: 210px auto;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.media-card:hover img {
  transform: scale(1.03);
}

.equipment-feature,
.doctor-card {
  color: inherit;
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  color: var(--brand-2);
  font-weight: 800;
}

.text-link::after {
  content: "›";
  margin-left: 6px;
  font-size: 18px;
}

.media-card__body {
  padding: 22px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: stretch;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.qr-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
}

.qr-card img {
  width: 138px;
  height: 138px;
  object-fit: contain;
  margin: 0 auto 8px;
}

.article-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 16px;
}

.article-card img {
  width: 140px;
  height: 116px;
  border-radius: 16px;
  object-fit: cover;
}

.article-meta {
  display: flex;
  gap: 12px;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 700;
}

.notice {
  margin-top: 22px;
}

.section--tech {
  position: relative;
  background:
    radial-gradient(circle at 12% 12%, rgba(127, 198, 204, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(247, 250, 252, 0.98), rgba(236, 244, 249, 0.72));
  overflow: hidden;
}

.section--tech > * {
  position: relative;
}

.home-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, #eef6fa);
  box-shadow: var(--shadow);
}

.home-cta h2 {
  margin-bottom: 14px;
}

.home-cta__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--title-soft);
  font-weight: 700;
}

.home-cta__qr {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  text-align: center;
}

.home-cta__qr img {
  width: 138px;
  height: 138px;
  object-fit: contain;
}

.home-cta__qr span {
  color: var(--muted);
  font-size: 13px;
}

.floating-appointment {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
}

.floating-appointment__button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--deep), var(--brand-2));
  box-shadow: var(--shadow);
  font-weight: 800;
  cursor: pointer;
}

.floating-appointment__panel {
  position: absolute;
  right: 0;
  bottom: 60px;
  width: min(320px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.floating-appointment__panel h3 {
  margin-bottom: 12px;
}

.floating-appointment__panel img {
  width: 146px;
  height: 146px;
  object-fit: contain;
  margin: 10px auto 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.floating-appointment__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--deep);
  cursor: pointer;
}

.detail-page {
  background:
    radial-gradient(circle at 88% 12%, rgba(127, 198, 204, 0.15), transparent 30%),
    linear-gradient(180deg, var(--bg), #ffffff);
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--brand-2);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 24px;
  align-items: start;
}

.detail-grid--equipment {
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.detail-photo-card img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: top center;
  background: var(--section);
}

.detail-grid--equipment .detail-photo-card img {
  min-height: 420px;
  object-position: center;
}

.detail-panel h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 64px);
}

.detail-title {
  color: var(--title-soft);
  font-size: 18px;
  font-weight: 800;
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 24px 0;
}

.detail-list {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(247, 250, 252, 0.76);
}

.detail-list h3 {
  margin-bottom: 10px;
}

.detail-list ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.detail-list li {
  color: var(--text);
}

.detail-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.case-placeholder {
  padding: 20px;
  margin: 24px 0;
  border: 1px dashed rgba(95, 130, 160, 0.42);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
}

.detail-quote {
  margin: 24px 0 0;
  padding: 22px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  background: rgba(127, 198, 204, 0.12);
  color: var(--title-soft);
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.35;
}

.contact-note {
  margin-top: 16px;
}

.page-hero {
  padding: 86px 0 46px;
}

.page-hero .card {
  padding: 34px;
}

@media (max-width: 900px) {
  .hero-carousel {
    min-height: 680px;
  }

  .hero-copy {
    padding: 24px;
  }

  .timeline-wrap,
  .timeline-panel,
  .contact-panel,
  .detail-grid,
  .detail-grid--equipment,
  .home-cta,
  .detail-columns {
    grid-template-columns: 1fr;
  }

  .timeline-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .hero-carousel {
    min-height: 620px;
    padding-top: 16px;
  }

  .hero-copy {
    padding: 20px;
  }

  .carousel-btn {
    width: 38px;
    height: 38px;
  }

  .carousel-btn--prev {
    left: 12px;
  }

  .carousel-btn--next {
    right: 12px;
  }

  .timeline-nav,
  .qr-grid,
  .article-card {
    grid-template-columns: 1fr;
  }

  .article-card img {
    width: 100%;
    height: 180px;
  }

  .doctor-card {
    grid-template-rows: 250px auto;
  }

  .floating-appointment {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }

  .floating-appointment__button {
    width: 100%;
  }

  .floating-appointment__panel {
    left: 0;
    right: 0;
    bottom: 58px;
    width: auto;
  }

  .detail-photo-card img,
  .detail-grid--equipment .detail-photo-card img {
    min-height: 360px;
  }
}
