@charset "UTF-8";

/* ==========================================================================
   release.css — 開院前限定スタイル
   --------------------------------------------------------------------------
   このファイルは「開院前の先行公開」専用の調整のみを記述します。
   開院後はこのファイル（および head.php からの読み込み行）を削除するだけで、
   通常運用の見た目に戻る想定です。

   ルール:
   - 【開院前】と指定された改修のみ、ここに追加する
   - 通常の改修・恒久的な調整は style.css に書く
   - 既存セレクタを必要に応じて上書きする（style.css の後で読み込まれる）
   ========================================================================== */


/* ==========================================================================
   [開院前] 予約導線を「〇〇準備中」表示にする
   --------------------------------------------------------------------------
   対象: Web予約 / 電話 の各CTA
   除外: 採用ページ（.page-recruit）の応募導線 と 全LINEボタン
   ========================================================================== */

/* --- クリック不可化 --- */
.header-tel,
.float-orange,
.float-tel,
.mv-cta > .btn-orange,
body:not(.page-recruit) .bottom-cta .btn-orange,
body:not(.page-recruit) .bottom-cta .bcta-tel,
.flow-cta-tel,
.access-tel,
body:not(.page-recruit) .prose dd > a[href^="tel:"] {
  position: relative;
  pointer-events: none !important;
  cursor: not-allowed !important;
  isolation: isolate;
}

/* --- access-tel / prose 内 tel はインライン要素のため inline-block 化 --- */
.access-tel,
body:not(.page-recruit) .prose dd > a[href^="tel:"] {
  display: inline-block;
}

/* --- 「準備中」オーバーレイ共通スタイル（暗背景 + 白文字） --- */
.header-tel::after,
.float-orange::after,
.float-tel::after,
.mv-cta > .btn-orange::after,
body:not(.page-recruit) .bottom-cta .btn-orange::after,
body:not(.page-recruit) .bottom-cta .bcta-tel::after,
.flow-cta-tel::after,
.access-tel::after,
body:not(.page-recruit) .prose dd > a[href^="tel:"]::after {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 22, 28, 0.72);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: inherit;
  z-index: 5;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  padding: 4px 6px;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.2;
}

/* --- ラベル: Web予約準備中 --- */
.float-orange::after,
.mv-cta > .btn-orange::after,
body:not(.page-recruit) .bottom-cta .btn-orange::after {
  content: 'Web予約 準備中';
}

/* --- ラベル: 電話受付準備中 --- */
.float-tel::after,
body:not(.page-recruit) .bottom-cta .bcta-tel::after,
.flow-cta-tel::after,
.access-tel::after,
body:not(.page-recruit) .prose dd > a[href^="tel:"]::after {
  content: '電話受付 準備中';
}

/* --- ヘッダー電話 (アイコンボタン: 狭いので短縮 + 小サイズ) --- */
.header-tel::after {
  content: '準備中';
  font-size: 9px;
  letter-spacing: 0;
  padding: 0;
  border-radius: 8px;
}


/* ==========================================================================
   [開院前] LINEボタンの文言を「LINE登録はこちらから」に切り替え
   --------------------------------------------------------------------------
   HTML側に default / pre-release の2系統 span を仕込み、こちらで表示切替。
   開院後は release.css 削除で自動的に既定の「LINEで相談する」へ戻る。
   ========================================================================== */
.lbl-default { display: none !important; }
.lbl-pre-release { display: inline !important; }


/* ==========================================================================
   [開院前] LINEボタンに「事前登録受付中」吹き出しを追加
   --------------------------------------------------------------------------
   対象:
     - 追従CTA   .float-line
     - ヘッダー  .header-line
     - 通常CTA   .btn-line  (bottom-cta / 採用ページ等)
   構造: ::before = 吹き出し本体 / ::after = 下向き三角
   ========================================================================== */

.float-line,
.header-line,
.btn-line {
  position: relative;
  overflow: visible;
}

/* 吹き出し本体（角丸ピル） ※ 採用ページの応募LINE（page-recruit）は除外 */
.float-line::before,
.header-line::before,
body:not(.page-recruit) .btn-line::before {
  content: '事前登録受付中';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  padding: 6px 14px;
  background: var(--orange, #ff6f00);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.04em;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
  z-index: 100;
  pointer-events: none;
  animation: line-bubble-pop 1.8s ease-in-out infinite;
}

/* 下向き三角（CSS三角） ※ 採用ページの応募LINE（page-recruit）は除外 */
.float-line::after,
.header-line::after,
body:not(.page-recruit) .btn-line::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--orange, #ff6f00);
  z-index: 100;
  pointer-events: none;
  animation: line-bubble-pop 1.8s ease-in-out infinite;
}

/* やさしく上下に揺らして注目させる */
@keyframes line-bubble-pop {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -3px); }
}

/* --- ヘッダー LINE はアイコンが小さいため、吹き出しを縮小 --- */
.header-line::before {
  font-size: 10px;
  padding: 4px 10px;
  bottom: calc(100% + 8px);
}
.header-line::after {
  border-left-width: 5px;
  border-right-width: 5px;
  border-top-width: 5px;
  bottom: calc(100% + 3px);
}

/* ==========================================================================
   [開院前] 追従CTAは PC/SP ともに LINE のみ表示
   --------------------------------------------------------------------------
   - 旧:「Web予約 / 電話」 すべて非表示
   - LINEボタン + 「事前登録受付中」吹き出しだけが残る
   - PC では追従CTAコンテナごと右下に固定
   ========================================================================== */
.float-cta .bubble,
.float-cta .float-orange,
.float-cta .float-tel {
  display: none !important;
}
.float-line {
  display: inline-flex !important;
  margin-top: 0;
}

/* PC: 追従CTA を右下に固定（既存の top:150px / right:18px を上書き） */
@media (min-width: 768px) {
  .float-cta {
    top: auto !important;
    bottom: 20px !important;
    right: 20px !important;
  }
}


/* ==========================================================================
   [開院前] MV CTA を「LINEで相談する」1ボタンに置換
   --------------------------------------------------------------------------
   - 旧の `btn-orange`（Web予約）は非表示
   - HTMLに `style="display:none"` 付きで仕込んだ LINE ボタンを表示
   ========================================================================== */
.mv-cta > .btn-orange {
  display: none !important;
}
.mv-cta-line {
  display: inline-flex !important;
}


/* ==========================================================================
   [開院前] SP（モバイル）追加調整
   --------------------------------------------------------------------------
   - ヘッダー右の 電話 / LINE アイコンを非表示（PCは元通り表示）
   ========================================================================== */
@media (max-width: 767px) {
  /* SP の float-line は親が flex-row になるため全幅化 */
  .float-line {
    flex: 1 1 auto;
  }
}
