/* ============================================
   s-hero-01 - Hero (トップヒーロー)
   wp:cover ブロック構造対応
   ============================================ */
.s-hero-01.wp-block-cover,
.s-hero-01 {
  position: relative;
  height: 100vh;
  min-height: var(--layout-xl);
  overflow: hidden;
  padding: 0;
  font-family: var(--font-family-jp);
}

:is(.s-hero-01 *) {
  margin: 0;
}

/* WPレイアウトシステムリセット（スケジュール以外） */
.s-hero-01 .wp-block-cover__inner-container > *,
.s-hero-01__inner,
.s-hero-01__text,
.s-hero-01__text > *,
.s-hero-01__phone-bar,
.s-hero-01__phone-bar *,
.s-hero-01 .wp-block-buttons,
.s-hero-01 .wp-block-button {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* wp:cover の背景画像 */
.s-hero-01 .wp-block-cover__image-background {
  object-position: center top;
  object-fit: cover;
}

/* 背景画像に黒オーバーレイ */
.s-hero-01::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 1;
  pointer-events: none;
}

/* MVスライダー: 左下の黒透過グラデーション（左のキャッチ・サブ白文字の視認性確保。
   右上のモデル写真は暗くしないよう to top right でフェード）。
   content層(z-index:2)の中の z-index:-1 に置くことで、スライド画像より前・テキストより後ろに確実に重ねる。 */
.jjb-mv-slider__content {
  position: relative;
}
.jjb-mv-slider__content::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to top right,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0.28) 32%,
    rgba(0, 0, 0, 0) 58%
  );
}

/* wp:cover 内部コンテナ */
.s-hero-01 .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
}

.s-hero-01__text {
  flex: 1;
  min-width: 0;
  max-width: var(--content-width-md);
  color: var(--color-white);
  text-align: left;
}

.s-hero-01 .s-hero-01__catch,
.s-hero-01__catch {
  font-family: var(--font-family-jp);
  font-size: var(--font-size-9-xl);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-compact);
  font-weight: var(--font-weight-normal);
  margin-bottom: var(--space-xl);
  letter-spacing: var(--letter-spacing-wider);
  color: var(--color-white);
}

.s-hero-01 .s-hero-01__sub,
.s-hero-01__sub {
  font-size: var(--font-size-4-xl);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-2-xl);
  color: var(--color-white);
}

.s-hero-01__desc {
  font-size: var(--font-size-md);
  line-height: var(--line-height-loose);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--space-5-xl);
}

.s-hero-01 .wp-block-buttons,
.wp-block-buttons.s-hero-01__btns.is-layout-flex {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  flex-flow: row nowrap;
  justify-content: flex-start;
}

/* TOP MVのページネーションは本文・電話案内から離し、右中央に縦配置する。 */
.jjb-mv-slider:has(.s-hero-01__inner) .jjb-mv-slider__counter {
  top: 50%;
  right: var(--space-lg);
  bottom: auto;
  flex-direction: column;
  transform: translateY(-50%);
}

/* --- 内部レイアウト: 左テキスト + 右スケジュール --- */
.s-hero-01__inner {
  display: flex;
  align-items: flex-end;
  max-width: var(--width-inner);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  padding-bottom: var(--space-3-xl);
  justify-content: space-between;
  gap: var(--space-5-xl);
  width: 100%;
}

/* --- 診療時間テーブル（MV内右下） --- */
.s-hero-01__schedule.wp-block-group,
.s-hero-01__schedule {
  background: rgba(202, 109, 128, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: var(--space-xl) var(--space-2-xl);
  border-radius: var(--radius-md);
  color: var(--color-white);
  flex-shrink: 0;
  max-width: var(--card-max);
  opacity:0.8;
  overflow: hidden;
}
.s-hero-01__schedule thead{
  border:none;
}
.s-hero-01__schedule .wp-block-table {
  margin: 0;
}

.s-hero-01__schedule table,
.s-hero-01__schedule .wp-block-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  border: none !important;
}

.s-hero-01__schedule th,
.s-hero-01__schedule td,
.s-hero-01__schedule .wp-block-table th,
.s-hero-01__schedule .wp-block-table td {
  padding: var(--space-sm);
  text-align: center;
  border: none !important;
  line-height:1;
}

.s-hero-01__schedule thead th {
  font-weight: var(--font-weight-normal);
  color: rgba(255, 255, 255, 0.85);
  padding-bottom: var(--space-lg);
  letter-spacing: var(--letter-spacing-wide);
}

.s-hero-01__schedule tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent !important;
}

.s-hero-01__schedule td:first-child,
.s-hero-01__schedule th:first-child {
  text-align: left;
  white-space: nowrap;
  font-size: var(--font-size-xs);
  width: 10rem;
  padding-right: var(--space-2-xl);
}

/* 赤帯パネル内の注記（受付時間・▲通し診療）— 小さい白文字 */
.s-hero-01__schedule .s-hero-01__schedule-note,
.s-hero-01__schedule-note {
  margin-block: var(--space-md) 0;
  color: var(--color-white);
  font-size: var(--font-size-3-xs);
  line-height: var(--line-height-normal);
}

/* --- 電話番号セクション（cover内 最下部バー） --- */
.s-hero-01__phone-bar {
  width: 100%;
  font-family: var(--font-family-jp);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: var(--space-2-xl) 0;
  color: var(--color-white);
  flex-shrink: 0;
}

.s-hero-01__phone-inner {
  max-width: var(--width-inner);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.s-hero-01__phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-5-xl);
  height: var(--space-5-xl);
  flex: 0 0 var(--space-5-xl);
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

.s-hero-01__phone-icon::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: url('../../images/icon/icon--sp-white.svg') center / contain no-repeat;
}

.s-hero-01__phone-icon img {
  display: none;
}

.s-hero-01 .s-hero-01__phone-number,
.s-hero-01__phone-number {
  font-size: var(--font-size-4-xl);
  color: var(--color-white);
  letter-spacing: var(--letter-spacing-wide);
  text-decoration: none;
  line-height:1.4;
}

.s-hero-01__phone-number a {
  color: var(--color-white);
  text-decoration: none;
}

.s-hero-01__phone-note {
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.7);
}

/* === SP === */
@media (max-width: 767px) {
  .s-hero-01,
  .s-hero-01__image {
    min-height: auto;
  }

  .s-hero-01 .wp-block-cover__inner-container {
    padding-bottom: var(--space-7-xl);
  }

  .s-hero-01__text {
    padding: var(--space-6-xl) 0 0;
  }

  .s-hero-01__catch {
    font-family: var(--font-family-jp);
    font-size: var(--font-size-5-xl);
  }

  .s-hero-01__sub {
    font-size: var(--font-size-2-xl);
  }

  .s-hero-01__decor {
    width: 60%;
  }

  .s-hero-01__img {
    min-height: var(--card-lg);
  }

  .s-hero-01__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .s-hero-01__btns {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--space-md);
  }

  .s-hero-01__cta {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    text-align: center;
    margin-top: var(--space-3-xl);
  }

  .s-hero-01__schedule {
    min-width: 0;
    width: 100%;
    padding: var(--space-md) var(--space-lg);
  }

  .s-hero-01__schedule-table {
    font-size: var(--font-size-sm);
  }

  .s-hero-01__schedule-table th,
  .s-hero-01__schedule-table td {
    padding: var(--space-3-xs) var(--space-2-xs);
  }

  .s-hero-01__phone-number {
    font-size: var(--font-size-3-xl);
  }
}

/* === SP Small === */
@media (max-width: 480px) {
  .s-hero-01__catch {
    font-size: var(--font-size-4-xl);
  }
}

/* ── 電話は美容診療・保険診療の2系統。番号を横に並べ、注記は次行へ落とす ── */
.s-hero-01__phone-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2-xs) var(--space-2-xl);
}

.s-hero-01__phone-copy .s-hero-01__phone-number {
  margin: 0;
}

.s-hero-01__phone-copy .s-hero-01__phone-note {
  flex-basis: 100%;
  margin: 0;
}

.s-hero-01__phone-label {
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-normal);
  margin-inline-start: var(--space-3-xs);
}

@media (max-width: 767px) {
  .s-hero-01__phone-copy {
    flex-direction: column;
    gap: var(--space-2-xs);
  }
}
