/* =========================================================
   Studio page 5th — MV / Campaign / Header / Reserve
   ========================================================= */

:root {
  --studio-5th-pink: #e1b0a7;
  --studio-5th-blue: #9dbbd2;
  --studio-5th-beige: #bdad97;
  --studio-5th-gold: #9f8a6c;
  --studio-5th-cream: #f7f4ef;
  --studio-5th-gray: #666;
  --studio-5th-text: #f7f4ef;
  --studio-5th-font-sans: "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  --studio-5th-font-serif: "Shippori Mincho", serif;
}

/* =========================================================
   MV
   ========================================================= */
.studio-5th-mv {
  position: relative;
  color: var(--studio-5th-text);
  background: #111;
  min-height: 100vh;
  min-height: 100dvh;
}

.studio-5th-mv__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.studio-5th-mv__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 1;
}

.studio-5th-mv__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.studio-5th-mv__shade {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 2;
}

.studio-5th-mv__shade--top {
  top: 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 20%, rgba(0, 0, 0, 0));
}

.studio-5th-mv__shade--bottom {
  bottom: 0;
  height: 55%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 25%, rgba(0, 0, 0, 0));
}

.studio-5th-mv__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: inherit;
  box-sizing: border-box;
  padding: 120px 40px 100px;
  max-width: 1920px;
  margin: 0 auto;
}

.studio-5th-mv__top {
  width: 100%;
}

.studio-5th-mv__title {
  max-width: 670px;
}

.studio-5th-mv__label {
  margin: 10px 0 8px;
  font-family: var(--studio-5th-font-sans);
  font-weight: 700;
  font-size: clamp(15px, 2.2vw, 32px);
  letter-spacing: 0.08em;
  line-height: 1;
}

.studio-5th-mv__heading {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: baseline;
  margin: 0;
  font-family: var(--studio-5th-font-serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0.03em;
  border-bottom: white 2px solid;
  padding-bottom: 10px;
  width: fit-content;
  max-width: 100%;
}

.studio-5th-mv__brand {
  flex-shrink: 0;
  font-size: clamp(28px, 3.2vw, 48px);
  margin-right: 0.25em;
}

.studio-5th-mv__store {
  flex-shrink: 0;
  font-size: clamp(40px, 7vw, 120px);
}

/* JS: はみ出し時 → brand 下で2行（下線は長い方の行幅） */
.studio-5th-mv__heading.is-stacked {
  display: block;
}

.studio-5th-mv__heading.is-stacked .studio-5th-mv__brand {
  display: block;
  margin-right: 0;
}

.studio-5th-mv__heading.is-stacked .studio-5th-mv__store {
  display: block;
}

.studio-5th-mv__access {
  margin: 0;
  max-width: 100%;
  font-family: var(--studio-5th-font-sans);
  font-weight: 400;
  font-size: clamp(12px, 1.15vw, 16px);
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.studio-5th-mv__bottom {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  margin-top: auto;
}

.studio-5th-mv__medals {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(10px, 1.5vw, 20px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.studio-5th-mv__medal {
  flex-shrink: 0;
  width: clamp(100px, 24vw, 180px);
  margin: 0;
  padding: 0;
  line-height: 0;
}

.studio-5th-mv__medal-img {
  display: block;
  width: 100%;
  height: auto;
}

.studio-5th-mv__trainers {
  width: 100%;
  max-width: 580px;
  margin: 0;
}

.studio-5th-mv__breadcrumb {
  margin-top: auto;
  padding-top: 30px;
}

.studio-5th-mv__breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.studio-5th-mv__breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Futura", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: 0.07em;
  color: var(--studio-5th-gold);
}

.studio-5th-mv__breadcrumb-item:not(:first-child)::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 7px;
  border-right: 1.5px solid var(--studio-5th-gold);
  border-bottom: 1.5px solid var(--studio-5th-gold);
  transform: rotate(-45deg);
  opacity: 0.8;
}

.studio-5th-mv__breadcrumb-item a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.studio-5th-mv__breadcrumb-item--current {
  font-family: "Noto Sans JP", sans-serif;
  color: #ddd;
  text-decoration: none;
}

.studio-5th-mv__wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  line-height: 0;
  pointer-events: none;
}

.studio-5th-mv__wave img {
  display: block;
  width: 100%;
  height: auto;
  scale: -1 -1;
}

/* =========================================================
   Trainers（共通ピル）
   ========================================================= */
.studio-5th-trainers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.studio-5th-trainers__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
}

.studio-5th-trainers__lead {
  margin: 0;
  color: var(--studio-5th-gray);
  font-family: var(--studio-5th-font-sans);
  font-weight: 500;
  font-size: clamp(14px, 1.4vw, 20px);
  text-align: center;
  white-space: nowrap;
}

.studio-5th-trainers__pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.studio-5th-trainers__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 130px;
  height: 36px;
  padding: 0 16px;
  border-radius: 100px;
  color: #fff;
  font-family: var(--studio-5th-font-sans);
  font-weight: 700;
  font-size: clamp(14px, 1.6vw, 24px);
}

.studio-5th-trainers__pill--group {
  background: var(--studio-5th-pink);
}

.studio-5th-trainers__pill--personal {
  background: var(--studio-5th-blue);
}

.studio-5th-trainers__or {
  color: var(--studio-5th-gray);
  font-size: 14px;
}

/* MV内：暗背景用の文字色 */
.studio-5th-mv__trainers .studio-5th-trainers__lead,
.studio-5th-mv__trainers .studio-5th-trainers__or {
  color: var(--studio-5th-text);
}

/* =========================================================
   Campaign
   ========================================================= */
.studio-5th-campaign {
  background: #fff;
  padding: 60px 20px 80px;
}

.studio-5th-campaign__inner {
  max-width: 1152px;
  margin: 0 auto;
}

/* キャンペーン側トレーナーは非表示（MVに統一） */
.studio-5th-campaign__trainers {
  display: none !important;
}

.studio-5th-campaign__intro {
  text-align: center;
  margin-bottom: 40px;
}

.studio-5th-campaign__intro-main {
  margin: 0;
  color: var(--studio-5th-gray);
  font-family: var(--studio-5th-font-sans);
  font-weight: 500;
  font-size: clamp(16px, 2vw, 28px);
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.studio-5th-campaign__intro-break {
  display: none;
}

.studio-5th-campaign__benefits {
  width: 100%;
  margin-top: 40px;
}

.studio-5th-campaign--no2 .section-5th__lesson--personal,
.studio-5th-campaign--no3 .section-5th__lesson--group {
  display: none;
}

.studio-5th-campaign .section-5th__lesson {
  width: 100%;
}

/* 店舗下部 campaign-block 内に埋め込む場合：上下パディング・マージンなし */
.studio-5th-campaign.studio-5th-campaign--in-block {
  width: 100%;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 40px;
}

.studio-5th-campaign.studio-5th-campaign--in-block .studio-5th-campaign__benefits {
  margin-top: 0;
}

.studio-5th-campaign--in-block .section-5th__footnote {
  margin-top: 24px;
}

/* =========================================================
   SP MV直下CTA（ベースは非表示、SPメディアクエリで表示）
   ========================================================= */
.studio-5th-cta {
  display: none;
}

/* =========================================================
   Header（旧スタジオヘッダーの上書き）
   ========================================================= */
.studios-page.singe-studios-new .studios-cat-title,
.studios-page.singe-studios-new .studios-breadcrumb,
.studios-page.scn-retouch .studios-breadcrumb {
  display: none;
}

.studios-page.scn-retouch .header.studio-5th-header {
  background-image: none !important;
  background: transparent !important;
  min-height: 0 !important;
  height: auto !important;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: none;
}

/* 旧白マスク・波を無効化 */
.studios-page.scn-retouch .header.studio-5th-header::before,
.studios-page.scn-retouch .header.studio-5th-header::after {
  content: none !important;
  display: none !important;
}

.studios-page.scn-retouch .header.studio-5th-header .header-menu-btn,
.studios-page.scn-retouch .header.studio-5th-header .header-logo,
.studios-page.scn-retouch .header.studio-5th-header .header-logo a,
.studios-page.scn-retouch .header.studio-5th-header .ginza-title,
.studios-page.scn-retouch .header.studio-5th-header .ginza-itchome-title {
  pointer-events: auto;
}

/* 5thヘッダーでは銀座注記を出さない */
.studios-page.scn-retouch .header.studio-5th-header .ginza-title,
.studios-page.scn-retouch .header.studio-5th-header .ginza-itchome-title {
  display: none;
}

.studios-page.scn-retouch .header.studio-5th-header .header-logo {
  z-index: 30;
}

/* =========================================================
   Reserve / フローティングCTA
   ========================================================= */
.reserve .new_reserve-btn {
  display: none;
}

.studios-page.scn-retouch .reserve .innerWrapper.reserve-5th-wrap {
  pointer-events: auto;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  width: auto;
}

.studios-page.scn-retouch .reserve-5th__btn,
.studios-page.scn-retouch .reserve-5th__campaign,
.studios-page.scn-retouch .reserve .menu-icon {
  pointer-events: auto;
}

/* =========================================================
   Misc
   ========================================================= */
.section-5th__lesson-title-text,
.section-5th__ribbon {
  color: white;
}

.section-5th-notes {
  padding-bottom: 0;
}

.footer-bg-white {
  background: #f4f2f0;
}

/* =========================================================
   SP（〜768px）
   ========================================================= */
@media screen and (max-width: 768px) {
  .studio-5th-mv {
    min-height: 0;
  }

  .studio-5th-mv__inner {
    gap: 24px;
    padding: 100px 20px 32px;
  }

  /* SP: 下線は店舗名の文字幅に合わせる */
  .studio-5th-mv__heading {
    border-width: 1px;
  }

  .studio-5th-mv__label {
    margin: 12px 0 6px;
  }

  .studio-5th-mv__bottom {
    gap: 20px;
    margin-top: 24px;
  }

  .studio-5th-mv__medals {
    order: 1;
  }

  .studio-5th-mv__medal {
    width: 30%;
    max-width: 150px;
  }

  .studio-5th-mv__trainers {
    order: 2;
  }

  .studio-5th-mv__breadcrumb {
    margin-top: 0;
    padding-top: 0;
  }

  .studio-5th-campaign {
    padding: 48px 16px 64px;
  }

  .studio-5th-campaign.studio-5th-campaign--in-block {
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  /* SP: 店舗名の後で改行 */
  .studio-5th-campaign__intro-break {
    display: inline;
  }

  /* MV直下CTA */
  .studio-5th-cta {
    display: block;
    background: #fff;
    padding: 20px 20px 28px;
    box-sizing: border-box;
  }

  .studio-5th-cta__heading {
    margin: 0 0 16px;
    text-align: center;
    color: var(--studio-5th-gray);
    font-family: var(--studio-5th-font-sans);
    font-weight: 700;
    font-size: clamp(13px, 3.7vw, 16px);
    letter-spacing: 0.06em;
    line-height: 1.3;
  }

  .studio-5th-cta__btns {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 12px;
  }

  .studio-5th-cta__btn {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    line-height: 0;
    transition: opacity 0.25s ease;
  }

  .studio-5th-cta__btn:hover {
    opacity: 0.85;
  }

  .studio-5th-cta__btn img {
    display: block;
    width: 100%;
    height: auto;
  }

  /*
   * CTA/#menu-btn 非表示で .reserve が畳まれると
   * #header-nav がクリップされるため全面確保
   */
  .studios-page.scn-retouch .reserve,
  .studios-page.scn-retouch .reserve.is-visible {
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    opacity: 1 !important;
    z-index: 1001 !important;
    pointer-events: none;
    overflow: visible;
  }

  .studios-page.scn-retouch .reserve #header-nav,
  .studios-page.scn-retouch .reserve #header-nav a {
    pointer-events: auto;
  }

  /* SPフローティングCTA: studio-5th-cta 通過後にフェード＋スライド表示 */
  .studios-page.scn-retouch .reserve .innerWrapper.reserve-5th-wrap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    align-items: flex-end;
    justify-content: center;
    gap: 2vw;
    padding: 0 3vw calc(10px + env(safe-area-inset-bottom));
    box-sizing: border-box;
  }

  .studios-page.scn-retouch .reserve-5th {
    display: flex !important;
    width: calc(100% - 16vw);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px);
    transition:
      opacity 0.4s ease,
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.4s ease;
  }

  .studios-page.scn-retouch .reserve.is-after-cta .reserve-5th {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .studios-page.scn-retouch .reserve.is-after-cta .reserve-5th__btn,
  .studios-page.scn-retouch .reserve.is-after-cta .reserve-5th__campaign,
  .studios-page.scn-retouch .reserve.is-after-cta .reserve .menu-icon {
    pointer-events: auto;
  }

  /* PCヘッダーロゴはSPでは出さない（sp-header側を使用） */
  .studios-page.scn-retouch .header.studio-5th-header .header-logo.header-logo-5th {
    display: none !important;
  }

  /* メニュー内ロゴの固定高さ崩れを防ぐ */
  .studios-page.scn-retouch .sp-header .heaeder-menu-logo {
    height: auto;
    width: auto;
    margin: 0;
    text-align: left;
  }

  .studios-page.scn-retouch .sp-header .heaeder-menu-logo a {
    display: block;
    line-height: 0;
  }

  .singe-studios-new .main_wrapper,
  .studios-page .main_wrapper {
    padding-bottom: 0;
  }
}

/* =========================================================
   PC（769px〜）
   ========================================================= */
@media screen and (min-width: 769px) {
  .studio-5th-mv__inner {
    gap: 20px;
    padding: 140px 150px 7%;
  }

  .studio-5th-mv__title {
    max-width: none;
  }

  /* PC: 「女性専用〜」は一回り小さく（駅テキストよりは大きく） */
  .studio-5th-mv__label {
    font-size: clamp(14px, 1.55vw, 22px);
  }

  /* 左ピル / 右メダル */
  .studio-5th-mv__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
  }

  .studio-5th-mv__trainers {
    order: 1;
    width: fit-content;
    flex: 0 1 auto;
  }

  .studio-5th-mv__medals {
    order: 2;
    justify-content: flex-end;
    flex: 0 0 auto;
  }

  .studio-5th-mv__breadcrumb {
    margin-top: 0;
  }

  .studio-5th-mv .studio-5th-trainers__head {
    align-items: flex-start;
  }

  .studio-5th-mv .studio-5th-trainers__lead {
    text-align: left;
    font-size: clamp(16px, 1.6vw, 28px);
  }

  .studio-5th-mv .studio-5th-trainers__pills {
    justify-content: flex-start;
  }

  .studio-5th-mv .studio-5th-trainers__pill {
    min-width: 200px;
    height: 48px;
    font-size: 24px;
  }

  .studio-5th-mv .studio-5th-trainers__or {
    font-size: 18px;
  }

  .studio-5th-campaign {
    padding: 80px 40px 100px;
  }

  .studio-5th-campaign.studio-5th-campaign--in-block {
    padding-top: 0;
    padding-bottom: 0;
  }

  /* 旧CSSの display:none を打ち消し、左上固定表示 */
  .studios-page.scn-retouch .header.studio-5th-header .header-logo.header-logo-5th[data-fixed="false"],
  .studios-page.scn-retouch .header.studio-5th-header .header-logo.header-logo-5th {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    margin: 12px 0 0 clamp(16px, 3vw, 40px);
    width: min(188px, 14vw);
    height: auto;
    z-index: 1001;
  }

  .studios-page.scn-retouch .header.studio-5th-header .header-logo.header-logo-5th a {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    left: auto;
    top: auto;
  }

  .studios-page.scn-retouch .header.studio-5th-header .header-logo-5th__img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* フローティングCTAを右上に表示 */
  .studios-page.scn-retouch .reserve,
  .studios-page.scn-retouch .reserve.is-visible {
    opacity: 1 !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    left: auto !important;
    right: 5% !important;
    top: 0 !important;
    width: auto !important;
  }

  .studios-page.scn-retouch .reserve-5th {
    display: flex !important;
  }
}