とと
/* =====================================================================
   Ripples 共通パーツ CSS（ヘッダー / フッター / 固定バー）
   - マスターはこのファイル（HP/assets/common.css）。ページ個別CSSに依存しないよう
     すべて「rp-」で始まる専用クラスで定義しています（既存CSSとの干渉防止）。
   - HTMLは 共通パーツ/build_common.py が全ページへ書き出します。
   ===================================================================== */

html {
  scroll-padding-top: 56px;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box;
}

/* 全ページ共通：横スクロール・画面外はみ出し完全防止ガードレール */
body {
  padding-bottom: calc(58px + env(safe-area-inset-bottom)) !important;
  overflow-x: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 単語保護・文節折り返し共通ユーティリティ */
.u-nowrap {
  white-space: nowrap !important;
}

.u-keep {
  display: inline-block !important;
}

/* 症状別ページ共通：「初めての方へ」誘導ボタンの泣き別れ防止 */
.btn-flow-primary {
  white-space: nowrap !important;
  max-width: 92% !important;
}

/* ---------- ヘッダー ----------
   スマホ：ロゴ行(46px)はスクロールで流れ、ナビ行だけが上に固定される
   PC    ：ロゴ＋ナビが1行(68px)で固定される */
.rp-header {
  position: sticky;
  top: -46px;
  z-index: 1000;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid rgba(197, 160, 89, 0.28);
  box-shadow: 0 2px 12px rgba(26, 43, 76, 0.05);
}

.rp-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 12px;
  box-sizing: border-box;
  text-decoration: none;
}

.rp-brand-logo {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.rp-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rp-brand-sub {
  font-size: 0.64rem;
  font-weight: 700;
  color: #9b7b38;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.rp-brand-name {
  font-size: 0.76rem;
  font-weight: 800;
  color: #1a2b4c;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 5px 6px;
  box-sizing: border-box;
  background: #ffffff;
  border-top: 1px solid #ece7de;
}

.rp-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 3px 1px;
  box-sizing: border-box;
  font-size: clamp(0.60rem, 2.7vw, 0.76rem);
  letter-spacing: -0.04em;
  white-space: nowrap;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  word-break: keep-all;
  color: #f26522;
  background: #ffffff;
  border: 1px solid rgba(242, 101, 34, 0.45);
  border-radius: 8px;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.rp-tab[aria-current="page"] {
  background: #f26522;
  color: #ffffff;
  border-color: #f26522;
}

@media (hover: hover) {
  .rp-tab:hover {
    background: #fff5ef;
  }

  .rp-tab[aria-current="page"]:hover {
    background: #f26522;
  }
}

@media (min-width: 768px) {
  .rp-header {
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 68px;
    padding: 0 max(24px, calc((100% - 1120px) / 2));
  }

  .rp-brand {
    height: 68px;
    padding: 0;
  }

  .rp-brand-logo {
    height: 44px;
    width: 44px;
  }

  .rp-brand-sub {
    font-size: 0.7rem;
  }

  .rp-brand-name {
    font-size: 1rem;
  }

  .rp-nav {
    display: flex;
    gap: 8px;
    padding: 0;
    background: transparent;
    border-top: 0;
  }

  .rp-tab {
    min-height: 0;
    padding: 8px 14px;
    font-size: 0.88rem;
    white-space: nowrap;
  }

  html {
    scroll-padding-top: 80px;
  }
}

/* ---------- フッター（全ページ共通・1種類） ---------- */
.rp-footer {
  background: #1a2b4c;
  color: #ffffff;
  padding: 32px 16px 28px;
  margin-top: 48px;
  text-align: center;
  box-sizing: border-box;
}

.rp-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.rp-footer-logo {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.rp-footer-name {
  white-space: nowrap;
  font-size: clamp(0.95rem, 4.2vw, 1.15rem);
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.rp-footer-addr {
  margin: 0 0 18px;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #b2bccb;
}

/* スマホ：3列×2段で固定（折り返しが毎回同じ形になる） */
.rp-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 420px;
  margin: 0 auto 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.rp-footer-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.rp-footer-copy {
  margin: 0;
  font-size: 0.72rem;
  color: #8c99ad;
}

@media (min-width: 768px) {
  .rp-footer-nav {
    grid-template-columns: repeat(6, auto);
    justify-content: center;
    max-width: none;
    gap: 10px 14px;
  }

  .rp-footer-nav a {
    padding: 0 18px;
  }
}

/* ---------- 固定バー（全ページ共通：LINE予約 + Instagram） ---------- */
.rp-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(26, 43, 76, 0.97);
  border-top: 2px solid #c5a059;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
}

.rp-bar-inner {
  max-width: 1120px;
  height: 56px;
  margin: 0 auto;
  padding: 0 10px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .rp-bar-inner {
    max-width: 500px;
    justify-content: center;
  }
}

.rp-bar-logo {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.rp-bar-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.rp-bar-line {
  flex: 1.4;
  background: #06c755;
  box-shadow: 0 2px 8px rgba(6, 199, 85, 0.3);
}

.rp-bar-insta {
  background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888);
}

.rp-bar-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .rp-bar-btn {
    flex: 0 1 220px;
  }

  .rp-bar-line {
    flex: 0 1 260px;
  }

  .rp-bar-inner {
    justify-content: center;
  }
}


/* レスポンシブ改行ユーティリティ */
.sp-only {
  display: inline;
}

.pc-only {
  display: none;
}

@media (min-width: 768px) {
  .sp-only {
    display: none;
  }

  .pc-only {
    display: inline;
  }
}


/* ==========================================================================
   ★ 黄金テンプレート共通ルール（スマホ文字落ち防止・レスポンシブタイポグラフィ）
   ========================================================================== */
h1,
h2,
h3,
.sec-block-title,
.flow-hero-title,
.step-card-name {
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
}

.u-nowrap {
  white-space: nowrap !important;
}

.u-keep {
  display: inline-block !important;
}

/* プロフィールカード（縦並び・完全文字落ち防止） */
.profile-card-vertical {
  background: #FAF8F5;
  border-radius: 16px;
  padding: 24px 18px;
  margin-bottom: 28px;
  border: 1.5px solid #ECE7DE;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 2px 12px rgba(26, 43, 76, 0.04);
}

.profile-card-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-gold-dark);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.profile-card-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-navy);
  margin: 0 0 16px;
}

.profile-card-img-wrap {
  margin: 0 auto 16px;
  width: 110px;
  height: 110px;
}

.profile-card-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(26, 43, 76, 0.12);
  border: 3px solid #FFFFFF;
  display: block;
}

.profile-card-bio {
  max-width: 460px;
  margin: 0 auto;
  font-size: 0.86rem;
  line-height: 1.8;
  color: var(--color-text-sub);
  text-align: center;
}

.profile-card-bio p {
  margin: 0 0 4px;
}

.profile-card-bio p:last-child {
  margin-bottom: 0;
}

/* スマホCTAボタンの文字溢れ防止 */
@media (max-width: 767px) {

  .btn-flow-primary,
  .flow-cta-btn,
  .purpose-btn-story {
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 0.9rem !important;
    box-sizing: border-box !important;
  }
  .flow-title {
    font-size: clamp(0.90rem, 3.6vw, 1.05rem) !important;
    letter-spacing: -0.04em !important;
    white-space: nowrap !important;
  }
}

/* 2周年キャンペーン：セッション名＋（約60分）全ページ1行細字統一 */
.anniversary-menu-name {
  display: flex !important;
  align-items: baseline !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  font-size: clamp(0.84rem, 3.6vw, 1.02rem) !important;
  font-weight: 500 !important;
  color: var(--color-gold-light) !important;
  white-space: nowrap !important;
}
.anniversary-sub-duration {
  font-size: 0.80em !important;
  font-weight: 500 !important;
  color: var(--color-gold-light) !important;
  white-space: nowrap !important;
}