/* ============================================
   Hero / Main Visual
   ============================================ */
.hero {
  position: relative;
  background-color: var(--color-white);
  overflow: hidden;
  margin-top: -36px;
  z-index: 0;
}

.hero__inner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: flex-start;
  min-height: 750px;
  padding-left: 0;
}

/* ---- Text Area (Left) ---- */
.hero__text-area {
  position: relative;
  z-index: 2;
  width: 40%;
  padding: 150px 0 80px 0;
}

/* ---- Badges ---- */
.hero__badges {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding-left: 35px;
}

.badge-circle--green,
.badge-circle--yellow,
.badge-circle--blue {
  width: 130px;
  height: 130px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.badge-circle__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 0;
  pointer-events: none;
}

.badge-circle__sub {
  font-size: 14px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

.badge-circle__main {
  font-size: 22px;
  line-height: 1.2;
  position: relative;
  z-index: 1;
}

/* ---- Headline ---- */
.hero__copy {
  margin-bottom: 20px;
}

.hero__headline {
  margin-bottom: 0;
}

.hero__headline--text {
  font-size: 52px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.14em;
  padding-left: 70px;
  white-space: nowrap;
}

.hero__headline-svg {
  width: 100%;
  max-width: 580px;
  height: auto;
  display: block;
  padding-left: 35px;
}

.hero__headline-svg--sp {
  display: none;
}

/* ---- Clinic Hero ---- */
.hero--clinic {
  overflow: visible;
  margin-top: -30px;
  z-index: 0;
}

.hero--clinic .hero__inner {
  min-height: 500px;
  align-items: center;
}

.hero--clinic .hero__text-area {
  padding: 0 0 120px 0;
}

.hero--clinic .hero__image-area {
  width: 1080px;
  height: 422px;
  position: absolute;
  right: 0;
  top: 0;
}

.hero--clinic .hero__image {
  width: 1100px;
  height: 422px;
  object-fit: cover;
}

.hero--clinic .hero__image--sp {
  display: none;
}

/* ---- Image Area (Right) ---- */
.hero__image-area {
  position: absolute;
  right: 0;
  top: 20px;
  width: 75%;
  height: 100%;
}

.hero__image-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
}

.hero__image-wrapper--placeholder {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary-pale) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__image-wrapper--placeholder::after {
  content: "HERO IMAGE";
  color: var(--color-primary);
  font-size: 24px;
  font-weight: var(--font-weight-bold);
  opacity: 0.5;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-top-left-radius: 40px;
  border-bottom-left-radius: 40px;
}

/* ---- Slideshow ---- */
.hero__slideshow {
  position: relative;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero__slide--active {
  opacity: 1;
}

.hero__slide:first-child {
  position: relative;
}

/* ---- Sub copy ---- */
.hero__sub-copy {
  display: inline-block;
  padding: 10px 32px;
  font-size: clamp(17px, 1.8vw, 24px);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  letter-spacing: 0.1em;
  white-space: nowrap;
  background: rgba(58, 30, 8, 0.85);
  border-radius: 0 999px 999px 0;
  margin-top: 16px;
}

.hero__address {
  display: none;
}

/* ============================================
   Thumbnails – infinite marquee
   ============================================ */
.hero__thumbnails {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 4;
  overflow: hidden;
  width: 100%;
  padding: 12px 0;
}

.hero__thumbnails-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: hero-marquee 30s linear infinite;
}

.hero__thumb {
  flex: 0 0 270px;
}

.hero__thumb-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 16px;
}

.hero__thumb--placeholder {
  background: linear-gradient(135deg, #e8f5ee, #d4edda);
  border-radius: 16px;
  aspect-ratio: 5 / 4;
}

@keyframes hero-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    /* 1セット分（5枚 × 270px + 5gaps × 16px = 1430px）スライド */
    transform: translateX(calc(-1 * (270px * 5 + 16px * 5)));
  }
}

/* ============================================
   Responsive
   ============================================ */
/* ---- Mobile ---- */
@media (max-width: 768px) {
  .hero {
    margin-top: 0;
  }

  .hero__inner {
    flex-direction: column;
    min-height: auto;
  }

  .hero__image-area {
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
    order: 1;
  }

  .hero__image-wrapper {
    border-radius: 30px 0 0 30px;
    overflow: hidden;
  }

  .hero__image {
    object-fit: cover;
    border-radius: 0;
    aspect-ratio: 1009 / 722;
    height: auto;
  }

  .hero__text-area {
    width: 100%;
    padding: 36px 0 0;
    order: 3;
    margin-top: -70px;
    position: relative;
    z-index: 6;
    text-align: center;
  }

  .hero__thumbnails {
    position: relative;
    order: 2;
    margin-top: -80px;
    z-index: 5;
    padding: 8px 0;
  }

  .hero__badges {
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-left: 0;
  }

  .badge-circle--green,
  .badge-circle--yellow,
  .badge-circle--blue {
    width: 85px;
    height: 85px;
    background-color: var(--color-white);
    border-radius: 50%;
    box-shadow: 0 0 0 5px var(--color-white);
  }

  .page-template-page-clinic .badge-circle--green,
  .page-template-page-clinic .badge-circle--yellow,
  .page-template-page-clinic .badge-circle--blue {
    background-color: transparent;
    box-shadow: none;
  }

  .badge-circle__sub { font-size: 10px; }
  .badge-circle__main { font-size: 15px; }

  .hero__headline {
    text-align: center;
  }

  .hero__headline-svg {
    max-width: 90%;
    margin: 0 auto;
    padding-left: 0;
  }

  .hero__headline-svg--pc {
    display: none;
  }

  .hero__headline-svg--sp {
    display: block;
  }

  .hero__sub-copy {
    font-size: 13px;
    padding: 8px 20px;
    border-radius: 999px;
    text-align: center;
    margin: 8px auto 0;
  }

  .hero__address {
    display: block;
    font-size: 20px;
    color: var(--color-text);
    margin: 30px 0;
    text-align: center;
  }

  .hero--clinic .hero__address {
    display: none;
  }

  .hero__headline--text {
    font-size: 24px;
    text-align: left;
    padding-left: 20px;
    white-space: nowrap;
    overflow: visible;
  }

  .hero--clinic .hero__inner {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0 10px;
  }

  .hero--clinic .hero__text-area {
    padding: 0;
    width: 10em;
    flex-shrink: 0;
    order: 1;
    z-index: 2;
    position: relative;
  }

  .hero--clinic .hero__image-area {
    position: relative;
    width: 100%;
    height: auto;
    order: 2;
    margin-left: 0;
    margin-right: 0;
  }

  .hero--clinic .hero__image--pc {
    display: none;
  }

  .hero--clinic .hero__image-wrapper {
    border-radius: 30px 0 0 30px;
    overflow: hidden;
  }

  .hero--clinic .hero__image--sp {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    aspect-ratio: 251 / 181;
    object-fit: cover;
  }

  .hero__thumb {
    flex: 0 0 160px;
  }

  @keyframes hero-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-1 * (160px * 5 + 16px * 5))); }
  }
}
