/* ====== TOP PAGE SPECIFIC STYLES ====== */

/* ---------- Hero ---------- */
.top-hero {
  position: relative;
  margin-top: var(--header-height);
  width: 100%;
  overflow: hidden;
  background: url('../img/common/hero-bg.jpg') center / cover no-repeat;
}
.top-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  z-index: 1;
}

.top-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  height: calc(100vh - var(--header-height) - 100px);
  min-height: 480px;
  max-height: 640px;
}

/* --- Left: Content --- */
.top-hero__content {
  width: 46%;
  flex-shrink: 0;
  padding: 32px var(--space-2xl) 24px;
  padding-left: max(var(--space-2xl), calc((100vw - var(--container-max)) / 2));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.top-hero__catch {
  margin-bottom: var(--space-lg);
}

.top-hero__label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 0.12em;
  margin-bottom: var(--space-md);
}

.top-hero__heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.9;
  color: #fc7d27;
  margin-bottom: var(--space-lg);
}

.top-hero__sub {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
}

.top-hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  padding: 14px 36px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity var(--transition);
}

.top-hero__btn:hover {
  opacity: 0.85;
}

/* --- Wave divider (mobile slider mask) --- */
.top-hero__wave {
  display: none;
}

/* --- Wave divider between hero and philosophy --- */
.top-hero-wave-divider {
  margin-top: -50px;
  position: relative;
  z-index: 3;
}
.top-hero-wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
}

/* --- 2x3 Nav Card Grid --- */
.top-hero__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: var(--space-lg);
}

.top-hero__nav-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-text);
  transition: background-color var(--transition), box-shadow var(--transition);
}

.top-hero__nav-card:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-sm);
}

.top-hero__nav-label {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.top-hero__nav-arrow {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-hero__nav-arrow svg {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

/* ---------- Trust Badges ---------- */
.top-trust {
  background: var(--color-bg);
  padding: 60px 0 0;
}

.top-trust__list {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.top-trust__item {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
}

.top-trust__number {
  font-family: 'Inter', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 8px;
}

.top-trust__number span {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
}

.top-trust__label {
  font-size: 14px;
  color: #666;
  letter-spacing: 0.06em;
}

/* --- Right: Hero Slider --- */
.top-hero__visual {
  flex: 1;
  min-width: 0;
  position: relative;
}

.top-hero__slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.top-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  z-index: 1;
}

.top-hero__slide.is-active {
  opacity: 1;
  z-index: 2;
}

.top-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}

.top-hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition);
}

.top-hero__dot.is-active {
  background: #fff;
}

.top-hero__dot:hover {
  background: rgba(255,255,255,0.6);
}

/* ---------- About section ---------- */
.top-about {
  position: relative;
  background: var(--color-bg);
}

.top-about__content {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 100px var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.top-about__text {
  font-size: 28px;
  font-weight: 700;
  line-height: 2.2;
  color: var(--color-text);
  letter-spacing: 0.12em;
}

.top-about__text span {
  color: var(--color-primary);
}

.top-about__image {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/5;
}

.top-about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-about__btn {
  margin-top: var(--space-2xl);
}

.top-about__btn .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.top-about__btn .btn:hover {
  opacity: 0.85;
}

/* ---------- Clinic philosophy section ---------- */
.top-philosophy {
  position: relative;
  background: var(--color-bg);
  padding: 100px 0 120px;
  overflow: hidden;
}

.top-philosophy__inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  text-align: center;
  position: relative;
  z-index: 2;
}

.top-philosophy__tagline {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #b08a4a;
  letter-spacing: 0.16em;
  text-decoration: underline;
  text-underline-offset: 6px;
  margin-bottom: var(--space-xl);
}

.top-philosophy__subtitle {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-2xl);
}

.top-philosophy__heading {
  font-family: 'Noto Serif JP', serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.8;
  color: var(--color-primary);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2xl);
}

.top-philosophy__body {
  font-size: 15px;
  line-height: 2.4;
  color: #444;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3xl);
}

.top-philosophy__body p + p {
  margin-top: var(--space-lg);
}

.top-philosophy__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  padding: 20px 80px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.top-philosophy__cta:hover {
  opacity: 0.85;
}

/* Decorative photos */
.top-philosophy__deco {
  position: absolute;
  z-index: 1;
}

.top-philosophy__deco img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.top-philosophy__deco--left {
  width: 200px;
  height: 200px;
  left: calc(50% - 560px);
  top: 50%;
  transform: translateY(-50%);
}

.top-philosophy__deco--right-top {
  width: 240px;
  height: 280px;
  right: calc(50% - 580px);
  top: 80px;
}

.top-philosophy__deco--right-bottom {
  width: 240px;
  height: 240px;
  right: calc(50% - 560px);
  bottom: 40px;
}

/* ---------- Services section ---------- */
.top-services {
  background: #fff;
  position: relative;
  z-index: 1;
  padding: var(--space-4xl) 0;
}

.top-services > .container {
  padding: 0 var(--space-xl);
}

.top-services__header {
  margin-bottom: var(--space-3xl);
}

.top-services__title {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.24em;
  line-height: 2;
  margin-bottom: var(--space-sm);
}

.top-services__desc {
  font-size: var(--font-size-base);
  line-height: 2.5;
  color: var(--color-text);
}

/* ---------- News section ---------- */
.top-news__more {
  text-align: right;
  margin-top: var(--space-2xl);
}

.top-news__more-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.top-news__more-link:hover {
  opacity: 0.7;
}

.top-news__more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #fc7d27;
  color: #fff;
  border-radius: 50%;
  font-size: 10px;
}

.top-news {
  padding: var(--space-4xl) 0;
  background: var(--color-bg);
}

/* ---------- Recruit ---------- */
.top-recruit {
  position: relative;
  overflow: hidden;
  background: url('../img/common/hero-bg.jpg') center / cover no-repeat;
}
.top-recruit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 0;
}

/* ---------- Bottom CTA ---------- */
.top-bottom-cta {
  background: var(--color-primary);
  padding: 60px 0;
}

.top-bottom-cta__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  text-align: center;
}

.top-bottom-cta__heading {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.top-bottom-cta__sub {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-2xl);
}

.top-bottom-cta__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.top-bottom-cta__phone {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.top-bottom-cta__phone-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-bottom-cta__phone-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.top-bottom-cta__phone-number {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.top-bottom-cta__phone-hours {
  font-size: 12px;
  opacity: 0.85;
}

.top-bottom-cta__divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.3);
}

.top-bottom-cta__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--color-primary);
  border-radius: 999px;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.top-bottom-cta__contact-btn:hover {
  opacity: 0.85;
}

/* ---------- Responsive overrides ---------- */
@media (max-width: 960px) {
  .top-hero__inner { flex-direction: column-reverse; min-height: auto; height: auto; max-height: none; }
  .top-hero__visual {
    width: 100%;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1000' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,920 C1200,1000 960,850 720,930 C480,1000 240,860 0,950 Z' fill='white'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 1000' preserveAspectRatio='none'%3E%3Cpath d='M0,0 L1440,0 L1440,920 C1200,1000 960,850 720,930 C480,1000 240,860 0,950 Z' fill='white'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  .top-hero__slider { height: 70vw; }
  .top-hero__heading { font-size: 24px; }
  .top-hero__content { width: 100%; max-width: none; padding: var(--space-2xl) var(--space-xl); text-align: center; }
  .top-hero__sub { text-align: center; }
  .top-trust__list { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
  .top-trust__item { padding: 24px 16px; }
  .top-trust__number { font-size: 32px; }
  .top-about__content { grid-template-columns: 1fr; text-align: center; padding: 60px var(--space-xl); }
  .top-about__text { font-size: 22px; }
  .top-about__image { max-width: 400px; margin: 0 auto; }
  .top-services__title { font-size: 28px; }
  .top-services > .container { padding: 0 var(--space-xl); }
  .facility-grid { gap: 40px 32px; }
  .top-philosophy { padding: 60px 0 80px; }
  .top-philosophy__heading { font-size: 24px; }
  .top-philosophy__deco { display: none; }
  .top-bottom-cta__actions { flex-direction: column; }
  .top-bottom-cta__divider { width: 48px; height: 1px; }
}

@media (max-width: 600px) {
  .top-hero__content { padding: var(--space-xl) 20px; }
  .top-hero__heading { font-size: 20px; line-height: 1.8; }
  .top-hero__sub { font-size: 13px; }
  .top-hero__nav { gap: 8px; }
  .top-hero__nav-card { padding: 10px 8px; gap: 8px; }
  .top-hero__nav-label { font-size: 12px; }
  .top-trust { padding: 40px 0 0; }
  .top-trust__list { gap: var(--space-sm); }
  .top-trust__item { padding: 20px 12px; }
  .top-trust__number { font-size: 24px; }
  .top-trust__label { font-size: 12px; }
  .top-about__text { font-size: 18px; }
  .top-about__content { padding: 48px 20px; }
  .top-services > .container { padding: 0 20px; }
  .top-services__title { font-size: 22px; letter-spacing: 0.1em; line-height: 1.6; }
  .top-hero__nav { grid-template-columns: 1fr 1fr; }
  .top-philosophy__inner { text-align: left; }
  .top-philosophy__subtitle { font-size: 14px; }
  .top-philosophy__heading { font-size: 18px; }
  .top-philosophy__body { font-size: 14px; line-height: 2; }
  .top-philosophy__body br { display: none; }
  .top-philosophy__body p + p { margin-top: var(--space-md); }
  .top-philosophy__cta { padding: 16px 48px; font-size: 14px; }
  .top-bottom-cta { padding: 40px 0; }
  .top-bottom-cta__phone-number { font-size: 24px; }
}
