/*
Theme Name: RE:WHITE
Description: 歯科ホワイトニングクリニックオリジナルテーマ
Version: 1.0.0
Author: Your Name
*/

@charset "UTF-8";

/* ==============================================
   Variables (フォント定義など)
============================================== */
:root {
  /* ▼ 一番最初にあなたが書かれていた、Mediumを強制的に呼び出すこの順番が最強です */
  --font-base: "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "Hiragino Sans", sans-serif;
  --font-heading: 'Shippori Mincho', serif;
  --font-en-title: Didot, "Didot LT STD", "Hoefler Text", Garamond, "Times New Roman", serif;
}

/* ==============================================
   Reset & Base (全体共通の基本スタイル)
============================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  /* font-weight: 500; は悪さをするので削除しました */
  color: #333;
  overflow-x: hidden;
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-top: 0;
}

.section-title-en {
  font-family: var(--font-en-title);
  color: #f0b9c3;
  font-size: 2rem;
  font-weight: normal;
  text-align: center;
  letter-spacing: 0.05em;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ==============================================
   Base Layout (PC基本 1440px想定)
============================================== */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
  max-width: 1080px;
}

/* ------------------------------
   Header
------------------------------ */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  pointer-events: none;
  padding-top: 20px; /* 横の4%を削除し、上の余白だけ残す */
}

/* 追加：ヘッダー内の要素を左右に振り分ける */
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-logo {
  pointer-events: auto;
  width: 200px;
}

.hamburger {
  display: none; 
}

/* ------------------------------
   First View (KV)
------------------------------ */
.kv {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.kv-bg-picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.kv-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.kv-container {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 1;
}

.kv-woman {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 95%;
  width: auto;
  z-index: -1;
  pointer-events: none;
}

.kv-content {
  width: 100%;
  /* 45vwをやめて、最大幅をピクセルで固定します */
  max-width: 650px; 
  padding: 20px 0;
  border-radius: 8px;
  margin-top: 10%;
}

.kv-text-image {
  margin: 0 0 10px 0; 
  padding: 0;
  width: 100%;
  max-width: 100%; 
}

/* ------------------------------
   CTA Button
------------------------------ */
.kv-cta-wrap {
  display: flex;
  justify-content: flex-start; /* center から flex-start に変更 */
}

.cta-btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 480px;
  padding: 18px 20px;
  font-family: var(--font-heading); 
  background: linear-gradient(to bottom, #6cd47e 0%, #6cd47e 50%, #44c05b 50%, #44c05b 100%);
  color: #fff;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  font-weight: 700;
  border: 4px solid #fff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ------------------------------
   Global Navigation
------------------------------ */
.global-nav {
  background-color: #efafbe;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.nav-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-list li {
  flex: 1;
}

.nav-list a {
  font-family: var(--font-en-title);
  display: block;
  text-align: center;
  padding: 20px 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
  transition: opacity 0.3s;
}

.nav-list a:hover {
  opacity: 0.7;
}

/* ==============================================
   Trouble Section (こんなお悩みはありませんか？)
============================================== */
.trouble {
  position: relative;
  background: linear-gradient(to bottom, #f9fafa 50%, #efafbe 100%);
  padding: 100px 0 80px;
  z-index: 2;
}

.trouble::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background-color: #ee869a;
  clip-path: polygon(0 0, 100% 0, 100% 3px, 50% 100%, 0 3px);
  transform: translateY(100%);
  z-index: 9;
}

.trouble::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background-color: #efafbe;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform: translateY(100%);
  z-index: 10;
}

.trouble-title {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 50px;
  font-weight: 500;
  color: #685856;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.trouble-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 50px;
  margin-bottom: 70px;
}

.trouble-media {
  position: relative;
  top: 40px;
  left: 40px;
  width: 460px;
  height: 460px;
  flex-shrink: 0;
  z-index: 3;
}

.trouble-media-frame {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 360px;
  height: 360px;
  background-color: #efafbe;
  z-index: 0;
}

.trouble-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.trouble-card-wrap {
  position: relative;
  width: 100%;
  max-width: 660px;
  margin-left: -20px;
  margin-top: 100px;
  z-index: 1;
}

.trouble-card {
  position: relative;
  z-index: 1;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  width: 100%;
  padding: 75px 50px 65px 90px;
}

.trouble-card-dashed {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 100%; 
  height: 100%;
  border: 1px dashed #c4b6b4;
  z-index: 2;
  pointer-events: none;
}

.trouble-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%; 
}

.trouble-list li {
  position: relative;
  font-family: var(--font-heading);
  padding-left: 50px;
  padding-bottom: 15px;
  font-size: 25px;
  color: #685856;
  line-height: 1.3;
  letter-spacing: 0.05em;
  width: 100%;
  display: block; 
  border-bottom: 2px dotted #efafbe;
}

.trouble-list li::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 6px;
  width: 16px;
  height: 28px;
  border-bottom: 4px solid #efafbe;
  border-right: 4px solid #efafbe;
  transform: rotate(45deg);
}

.trouble-note {
  font-family: var(--font-heading);
  text-align: center;
  font-size: 70px;
  color: #ffffff;
  letter-spacing: 0.01em;
  margin: 0;
  font-weight: 700;
}

/* ==============================================
   Feature Section (ABOUT / 1つ目のブロック専用設計)
============================================== */
.feature {
  /* background-color: #fff;  ← 元の背景色は削除するかコメントアウトします */
  padding: 170px 0 100px;
  position: relative;
  z-index: 1;

  /* ▼ 追加：背景画像の設定 ▼ */
  background-image: url("img/rewhite_feature_back.jpg"); /* ※実際のファイルパスに合わせてください */
  background-position: center center; /* 画像の中央を基準に配置 */
  background-size: cover;             /* セクションの縦横幅に合わせて隙間なく拡大縮小 */
  background-attachment: fixed;       /* スクロール時に画像を固定（動かさない） */
  background-repeat: no-repeat;       /* 画像の繰り返しを防ぐ */
}

.feature-block {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 130px;
}

.feature-block:last-child {
  margin-bottom: 0; /* ★追加：一番最後のブロックの下には余白を作らない */
}

.feature-content {
  width: 100%;
  max-width: 600px;
  position: relative;
  z-index: 2;
  margin-right: -40px;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: #685856;
  line-height: 1.5;
  margin-bottom: 25px; 
  padding-left: 20px;
  position: relative;
  letter-spacing: 0.05em;
}

.feature-title::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 8px;
  background-color: #efafbe;
}

.feature-card-wrap {
  position: relative;
  width: 100%;
}

.feature-card {
  position: relative;
  z-index: 1;
  background-color: #fff9fa;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 50px 60px;
  
  /* ▼ 変更点：100%から数値を減らすと右側が縮みます */
  width: 95%; /* ※お好みに合わせて 85% 〜 95% あたりで調整してください */
}

.feature-card-dashed {
  position: absolute;
  top: 15px;
  left: 15px;
  
  /* ▼ 変更点：白ボックスと同じ幅にします */
  width: 95%; 
  
  height: 100%;
  border: 1px dashed #c4b6b4;
  z-index: 2;
  pointer-events: none;
}

.feature-text {
  font-family: var(--font-base);
  font-size: 1.05rem;
  color: #685856;
  line-height: 1.8;
  letter-spacing: 0.03em;
  margin: 0;
  width: 95%;
}

.feature-media {
  position: relative;
  width: 460px;
  height: 460px;
  top: 10px;
  right: 40px;
  flex-shrink: 0;
  z-index: 3;
}

.feature-media-frame {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 360px;
  height: 360px;
  background-color: #efafbe;
  z-index: 0;
}

.feature-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* ==============================================
   Feature Section (Type-2: 反転レイアウト専用)
============================================== */
.feature-block-type2 {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 150px;
}

.feature-block-type2:last-child {
  margin-bottom: 0;
}

/* --- 画像エリア（左側に配置） --- */
.feature-media-type2 {
  position: relative;
  width: 460px;
  height: 460px;
  top: 45px;
  left: 40px; /* 右から左へ変更 */
  flex-shrink: 0;
  z-index: 3;
}

.feature-media-frame-type2 {
  position: absolute;
  top: -40px;
  left: -40px; /* ピンクの背景を左上に */
  width: 360px;
  height: 360px;
  background-color: #efafbe;
  z-index: 0;
}

.feature-image-type2 {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

/* --- テキストエリア（右側に配置） --- */
.feature-content-type2 {
  width: 100%;
  max-width: 600px;
  position: relative;
  z-index: 2;
  margin-left: -10px; /* 画像に被せるマージンを左に変更 */
}

/* タイトルを右揃えにし、ピンクの線を右端に */
.feature-title-type2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  color: #685856;
  line-height: 1.5;
  margin-bottom: 25px; 
  padding-right: 0;   /* 右余白を削除 */
  padding-left: 20px; /* 左余白を追加（ピンク線用） */
  text-align: left;   /* 左揃えに変更 */
  position: relative;
  letter-spacing: 0.05em;
  
  /* ▼ 下の白ボックスが左側から10%縮むため、タイトルも10%右にズラして左端をピッタリ合わせます */
  margin-left: 15%; 
}

.feature-title-type2::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  right: auto; /* 右配置を解除 */
  left: 0;     /* ピンク線を左端へ */
  width: 8px;
  background-color: #efafbe;
}

.feature-card-wrap-type2 {
  position: relative;
  width: 100%;
}

.feature-card-type2 {
  position: relative;
  z-index: 1;
  background-color: #fff9fa;
  border-radius: 4px;
  margin-right: -20px; /* 白ボックスを左にズラす（元の逆） */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 50px 60px;
  width: 100%;
}

.feature-card-dashed-type2 {
  position: absolute;
  top: 15px;
  right: 15px; /* 破線を右基準に */
  width: 100%;
  height: 100%;
  margin-right: 0; /* 破線のズレも反転 */
  border: 1px dashed #c4b6b4;
  z-index: 2;
  pointer-events: none;
}

.feature-text-type2 {
  font-family: var(--font-base);
  font-size: 1.05rem;
  color: #685856;
  line-height: 1.8;
  letter-spacing: 0.03em;
  
  /* ▼ 変更点：margin: 0; をやめて、左側に余白を作って右へ押し出します */
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 30px; /* ※ここを 20px 〜 40px など増やして位置を合わせます */
  
  /* ▼ 変更点：右に押し出した分、右端が窮屈になる場合は幅を少し縮めます */
  width: 95%; /* 以前の 95% から少し減らしています */
}

/* ==============================================
   ABOUT Section (1カラム重なりレイアウト用)
============================================== */

/* セクション全体の背景設定 */
.about-section {
  /* 淡いピンク〜アイボリー系の背景画像を設定 */
  background-image: url('img/rewhite_about_back.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 120px;
  position: relative;
  padding-bottom: 120px;
  z-index: 1;
}

/* --- セクション見出し --- */
.about-head {
  text-align: center;
  margin-bottom: 70px;
}
.about-title-en {
  font-family: var(--font-en-title);
  color: #eb8b9a; /* 上品なピンク */
  font-size: 5rem;
  font-weight: 500;
  margin-bottom: -20px;
  letter-spacing: 0.05em;
}
.about-subtitle {
  font-family: var(--font-heading);
  color: #685856;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

/* --- 1カラムブロック全体 --- */
.about-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1080px;
  /* ▼ 変更：130pxあった下の余白を削除し、左右中央寄せのみにする */
  margin: 0 auto; 
}

/* --- タイトルグループ（見出し＆数字） --- */
.about-heading-group {
  position: relative;
  width: 100%;
  max-width: 700px; /* 画像の幅に合わせる */
  text-align: center;
  z-index: 3;
  margin-bottom: -15px; /* 画像に少し被せるためのネガティブマージン */
}
.about-number {
  position: absolute;
  top: -78px;
  left: 70px; /* 画像の左上付近を起点に */
  font-family: var(--font-en-title);
  font-size: 150px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  z-index: 1; /* 見出しの背後に配置 */
  pointer-events: none;
}
.about-title {
  position: relative;
  font-family: var(--font-heading);
  color: #685856;
  font-size: 1.6rem;
  font-weight: 500;
  z-index: 2; /* 数字の手前、画像の上に配置 */
  letter-spacing: 0.05em;
  top: -20px;
}

/* --- 中央画像エリア --- */
.about-visual {
  position: relative;
  width: 75%;
  max-width: 600px;
  z-index: 4; /* 白帯の奥に配置 */
}
.about-main-img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

/* --- 白帯テキストボックス --- */
.about-panel {
  position: relative;
  
  /* ▼ 変更：親の幅を無視して画面幅いっぱいに広げる */
  width: 100vw;
  max-width: 100vw;
  flex-shrink: 0; /* Flexbox内で縮んでしまうのを防ぐ */

  margin-top: -60px; /* 画像の下部に被せる設定はキープ */
  z-index: 1; 
}
.about-panel-dashed {
  position: absolute;
  top: 15px;     /* 白帯より下にずらす */
  bottom: -15px; /* 上下サイズを同一にするため下にも伸ばす */
  left: 15px;      /* 左右幅を白帯より少し短くする */
  right: 15px;
  border: 1px dashed #c4b6b4; /* 上品なグレーピンクの破線 */
  z-index: 4;    /* 白ボックスの背面に配置 */
  pointer-events: none;
}
.about-panel-inner {
  position: relative;
  background-color: #ffffff;
  /* ▼ 変更：左右の余白を0にし、テキスト側で制御する */
  padding: 60px 0; 
  z-index: 2; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}
.about-text {
  font-family: var(--font-base);
  color: #685856;
  font-size: 1rem;
  line-height: 2;
  letter-spacing: 0.05em;
  text-align: left;
  
  /* ▼ 変更：.containerと全く同じ幅・余白設定にする */
  width: 100%;
  max-width: 1080px;  /* .containerのベース最大幅 */
  padding: 0 50px;    /* .containerと同じ左右余白 */
  margin: 40px auto 0;
  box-sizing: border-box;
}
  
.about-inner + .about-inner {
  margin-top: 130px; 
}

/* ==============================================
   PLAN Section
============================================== */
.plan-section {
  /* 背景画像は実際のパスに合わせて適宜変更してください */
  background-image: url('img/rewhite_plan_back.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

/* --- タイトル周り --- */
.plan-head {
  text-align: center;
  margin-bottom: 70px;
}

.plan-title-en {
  font-family: var(--font-en-title);
  color: #eb8b9a;
  font-size: 5rem;
  font-weight: 500;
  margin-bottom: -15px;
  letter-spacing: 0.05em;
}

.plan-subtitle {
  font-family: var(--font-heading);
  color: #685856;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

/* --- カードラッパー（横並び） --- */
.plan-cards {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 30px;
  width: 100%;
}

/* --- 個別カード（白い独立ボックス） --- */
.plan-card {
  flex: 1;
  background-color: #ffffff;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  padding: 25px 20px;
}

/* カード内側の破線 */
.plan-card-dashed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px dashed #c4b6b4; /* 上品なグレーブラウン */
  border-radius: 12px; /* 親の .plan-card と同じ角丸の数値にする */
  pointer-events: none;
  z-index: 1;
  margin: 0;
}

/* カード内部コンテンツ（破線の上に配置） */
.plan-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* --- カードヘッダー（ピンク帯） --- */
.plan-card-head {
  text-align: center;
  padding: 15px 10px;
  margin-bottom: 25px;
}

/* カンプに合わせて右へ行くほどピンクを少し濃くする演出 */
.head-trial    { background-color: #f3c6ce; }
.head-standard { background-color: #eeaab6; }
.head-special  { background-color: #e58296; }

.plan-card-label {
  display: block;
  font-family: var(--font-en-title);
  color: #ffffff;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  margin-bottom: 5px;
  opacity: 0.9;
}

.plan-card-title {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0.05em;
}

/* --- 価格エリア --- */
.plan-card-price-wrap {
  text-align: center;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: baseline;
}

.plan-card-price-unit {
  font-family: var(--font-en-title);
  color: #685856;
  font-size: 1.8rem;
  margin-right: 8px;
}

.plan-card-price {
  font-family: var(--font-en-title);
  color: #e38295;
  font-size: 3.8rem;
  line-height: 1;
}

/* --- リストエリア --- */
.plan-card-list {
  margin: 0;
  padding: 0;
  flex-grow: 1; /* 余白を埋めて高さを揃える */
}

.plan-card-list li {
  font-family: var(--font-base);
  font-size: 0.95rem;
  color: #685856;
  padding: 14px 0 14px 28px;
  border-bottom: 1px dotted #cccccc;
  position: relative;
  line-height: 1.5;
}

.plan-card-list li:first-child {
  border-top: 1px dotted #cccccc;
}

/* チェックマーク */
.plan-card-list li::before {
  content: '✓';
  position: absolute;
  left: 6px;
  top: 14px;
  color: #685856;
  font-weight: bold;
}

/* --- 注記エリア --- */
.plan-note-wrap {
  text-align: center;
  margin-top: 60px;
}

.plan-note {
  margin: 0;
}

.plan-note-marker {
  display: inline;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #685856;
  background: linear-gradient(transparent 60%, #f7d5db 60%);
  padding: 0 5px;
  line-height: 1.6;
  font-weight: 500;
}

.keep-word {
  display: inline-block;
}

/* ==============================================
   BEFORE/AFTER Section
============================================== */
.before-after-section {
  background-image: url('img/rewhite_ba_back.jpg'); /* 背景画像パスを合わせてください */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

/* --- タイトル周り --- */
.before-after-head {
  text-align: center;
  margin-bottom: 60px;
}

.before-after-title-en {
  font-family: var(--font-en-title);
  color: #eb8b9a;
  font-size: 5rem;
  font-weight: 500;
  margin-bottom: -15px;
  letter-spacing: 0.05em;
}

.before-after-subtitle {
  font-family: var(--font-heading);
  color: #685856;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

/* --- アコーディオンリスト --- */
.ba-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 900px; /* カンプのバランスに合わせ最大幅を制限 */
  margin: 0 auto;
}

/* --- 各アコーディオンアイテム --- */
.ba-item {
  position: relative;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

/* 内側の破線枠 */
.ba-item-dashed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px dashed #c4b6b4; /* 上品なグレーブラウン */
  border-radius: 12px; /* 親の .ba-item と同じ角丸(12px)に合わせる */
  pointer-events: none; /* クリックの妨げにならないように */
  z-index: 1;
  margin: 0;
}

/* --- ヘッダー（クリック領域） --- */
.ba-item-header {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.ba-item-title {
  font-family: var(--font-heading);
  color: #685856;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  padding-right: 20px;
}

/* 開閉アイコン（＋/－） */
.ba-item-toggle {
  position: relative;
  width: 24px;  /* ←小さくしました */
  height: 24px; /* ←小さくしました */
  border-radius: 50%;
  background-color: #f3c6ce; 
  flex-shrink: 0;
  transition: background-color 0.3s;
}

.ba-item-toggle::before,
.ba-item-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #ffffff;
  transform: translate(-50%, -50%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

/* 水平線（常に表示、マイナス記号の役割） */
.ba-item-toggle::before {
  width: 12px; /* ←線の長さを調整 */
  height: 2px;
}

/* 垂直線（閉じている時だけ表示してプラス記号にする） */
.ba-item-toggle::after {
  width: 2px;
  height: 12px; /* ←線の長さを調整 */
}

/* 開いている時は垂直線を消してマイナス記号にする */
.ba-item.is-open .ba-item-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* --- ボディ（開閉する中身） --- */
.ba-item-body {
  position: relative;
  z-index: 2;
  overflow: hidden;
  /* JavaScriptでmax-heightを制御するため、ここではtransitionのみ設定 */
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ba-item-content {
  padding: 0 40px 40px;
}

/* テキストエリア */
.ba-item-text {
  font-family: var(--font-base);
  color: rgba(104, 88, 86, 0.85); /* 685856を少し淡くして本文のトーンに */
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 30px;
  padding-right: 40px;
}

.ba-item-text p {
  margin: 0;
}

/* 画像エリア */
.ba-images {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.ba-image-block {
  flex: 1;
  text-align: center;
}

.ba-image-label {
  font-family: var(--font-heading);
  color: #685856;
  font-size: 0.95rem;
  margin: 0 0 15px 0;
  letter-spacing: 0.05em;
}

.ba-image-block img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.ba-br {
  display: none;
}

/* ==============================================
   FLOW Section
============================================== */
.flow-section {
  background-image: url('img/rewhite_flow_back.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

.flow-head {
  text-align: center;
  margin-bottom: 80px;
}

.flow-title-en {
  font-family: var(--font-en-title);
  color: #eb8b9a;
  font-size: 5rem;
  font-weight: 500;
  margin-bottom: -15px;
  letter-spacing: 0.05em;
}

.flow-subtitle {
  font-family: var(--font-heading);
  color: #685856;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 120px 40px; /* 縦の余白を多めにとり、タイトルのスペースを確保 */
}

.flow-item {
  display: flex;
  flex-direction: column;
}

/* タイトルグループ（Aboutと同一の構造） */
.flow-heading-group {
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 3;
  margin-bottom: 20px; /* 被らないように正の余白を設定 */
}

.flow-number {
  position: absolute;
  top: -68px;
  
  /* ▼ 変更：左端からのピクセル指定をやめ、中央(50%)を基準にする */
  left: 50%; 
  transform: translateX(-50%); /* 自身の幅の半分戻して完全中央に配置 */
  
  font-family: var(--font-en-title);
  font-size: 150px;
  font-weight: 700;
  color: #fadbe0;
  line-height: 1;
  z-index: 1;
  pointer-events: none;
}

.flow-item-title {
  position: relative;
  font-family: var(--font-heading);
  color: #685856;
  font-size: 1.6rem; /* Feature / About と共通サイズ */
  font-weight: 500;
  z-index: 2;
  letter-spacing: 0.05em;
  margin: 0;
}

.flow-image-wrap {
  width: 100%;
  margin-bottom: 0;
  line-height: 0;
  z-index: 4;
}

.flow-image {
  width: 100%;
  height: auto;
  display: block;
}

/* 白ボックス (.feature準拠) */
.flow-card-wrap {
  position: relative;
  width: 100%;
  margin-top: 15px; /* 画像との隙間を埋める */
  
  /* ▼ 追加：親要素の中で余った高さをすべて埋める */
  flex-grow: 1; 
  display: flex;
  flex-direction: column;
}

.flow-card {
  position: relative;
  z-index: 1;
  background-color: #fff9fa;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 40px 30px;
  
  /* ▼ 追加：wrapの高さに合わせてボックス自体を伸ばす */
  flex-grow: 1; 
}

.flow-card-dashed {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;  /* 白ボックスと同じ幅 */
  height: 100%; /* 白ボックスと同じ高さ */
  border: 1px dashed #c4b6b4;
  z-index: 2;
  pointer-events: none;
}

.flow-text {
  font-family: var(--font-base);
  font-size: 1rem;
  color: #685856;
  line-height: 1.8;
  letter-spacing: 0.05em;
  margin-top: 15px;
  margin-left: 15px;
    
    /* ※右にずらした分、右端が詰まるのを防ぐために幅を少し狭めておきます */
  width: calc(100% - 15px);
}

/* ==============================================
   Q&A Section
============================================== */
.qa-section {
  background-image: url('img/rewhite_qa_back.jpg'); /* 背景画像パス（ご用意いただいた画像名に合わせてください） */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fcecf0; /* 画像がない場合のフォールバック */
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

/* --- タイトル周り --- */
.qa-head {
  text-align: center;
  margin-bottom: 60px;
}

.qa-title-en {
  font-family: var(--font-en-title);
  color: #eb8b9a;
  font-size: 5rem;
  font-weight: 500;
  margin-bottom: -15px;
  letter-spacing: 0.05em;
}

.qa-subtitle {
  font-family: var(--font-heading);
  color: #685856;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

/* --- アコーディオンリスト --- */
.qa-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* --- 各アコーディオンアイテム (Before/After共通数値) --- */
.qa-item {
  position: relative;
  background-color: #ffffff;
  border-radius: 12px; /* Before/After共通 */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04); /* Before/After共通 */
  overflow: hidden; /* 角の背景はみ出し防止 */
}

/* 内側の破線枠 (Before/After共通) */
.qa-item-dashed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px dashed #c4b6b4; /* Before/After共通色 */
  border-radius: 12px;
  pointer-events: none;
  z-index: 1;
  margin: 0;
}

/* --- ヘッダー（クリック領域） --- */
.qa-item-header {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}

.qa-item-title {
  font-family: var(--font-heading);
  color: #685856;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  padding-right: 20px;
  line-height: 1.5;
}

/* 開閉アイコン（＋/－） ※Before/Afterと同じ挙動とデザイン */
.qa-item-toggle {
  position: relative;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #f3c6ce; 
  flex-shrink: 0;
  transition: background-color 0.3s;
}

.qa-item-toggle::before,
.qa-item-toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: #ffffff;
  transform: translate(-50%, -50%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.qa-item-toggle::before {
  width: 12px;
  height: 2px;
}

.qa-item-toggle::after {
  width: 2px;
  height: 12px;
}

.qa-item.is-open .qa-item-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

/* --- ボディ（開閉する中身） --- */
.qa-item-body {
  position: relative;
  z-index: 2;
  overflow: hidden;
  max-height: 0; /* 初期状態は閉じる */
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.qa-item-content {
  padding: 0 50px 40px;
}

.qa-item-text {
  font-family: var(--font-base);
  color: rgba(104, 88, 86, 0.9); 
  font-size: 0.95rem;
  line-height: 2;
  margin: 0;
}


/* ==============================================
   CTA Section
============================================== */
.cta-section {
  /* 背景画像は実際のパスに合わせて適宜変更してください */
  background-image: url('img/rewhite_feature_back.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

/* 中央のピンクボックス */
.cta-box {
  background: linear-gradient(to bottom, #ffd8df 0%, #eeaab6 100%);
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 70px 40px;
  text-align: center;
  border-radius: 2px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  
  /* ▼ 追加：枠線の指定 */
  border: 10px solid #f3c6ce; 
}

.cta-lead {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: -10px;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.cta-catch {
  font-family: var(--font-base);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 30px;
  letter-spacing: 0.05em;
}

.cta-note {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: 0.05em;
}

.cta-tel {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: #ffffff;
  margin-bottom: 45px;
  font-weight: 700;
  font-family: var(--font-en-title); /* フォントをDidotに変更 */
}

.cta-tel-label {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-right: 15px;
  letter-spacing: 0.05em;
}

.cta-tel-number {
  font-family: var(--font-en-title);
  font-size: 4.2rem;
  line-height: 1;
  letter-spacing: 0.05em;
}

/* 既存の .cta-btn を中央に配置するためのラッパー */
.cta-button-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* ==============================================
   Footer Section
============================================== */
.footer {
  background-color: #f3c6ce;
  padding-top: 80px;
  position: relative;
  z-index: 1;
}

.footer-container {
  padding-bottom: 70px;
}

/* 追加：左右カラムレイアウト用ラッパー */
.footer-columns {
  display: flex;
  justify-content: space-between;
  align-items: stretch; /* 左右の高さを強制的に揃える */
  gap: 60px;
}

/* 左右カラム */
.footer-left {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.footer-right {
  width: 45%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* ロゴ */
.footer-logo {
  margin-bottom: 40px; /* 下のスケジュールやマップとの余白 */
}

.footer-logo img {
  width: 280px;
  height: auto;
}

/* 診療時間テーブル ラッパー (左端に合わせるよう修正) */
.footer-schedule-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
  margin-left: 0;
  z-index: 1;
}

/* 診療時間テーブル 白ボックス (幅を100%に) */
.footer-schedule-card {
  position: relative;
  z-index: 2;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
  width: 100%;
  padding: 30px 20px;
}

/* 診療時間テーブル 破線 (位置を右下へずらす装飾に変更) */
.footer-schedule-dashed {
  position: absolute;
  top: 15px;  
  left: 15px; 
  width: 100%; 
  height: 100%;
  border: 1px dashed #c4b6b4;
  z-index: 2;
  pointer-events: none;
}

/* 診療時間テーブル 本体 */
.footer-schedule {
  width: 90%;
  border-collapse: collapse;
  margin-left: 30px;
}

.footer-schedule th,
.footer-schedule td {
  font-family: var(--font-base);
  color: #685856;
  text-align: center;
  padding: 15px 5px;
  border-bottom: 5px solid #f4afbf;
  font-weight: 700;
  font-size: 1rem;
}

.footer-schedule th {
  padding-bottom: 12px;
}

.footer-schedule th:first-child,
.footer-schedule td:first-child {
  text-align: left;
  padding-left: 0;
}

.footer-schedule td.time {
  font-family: var(--font-en-title);
  letter-spacing: 0.1em;
}

/* 補足文 */
.footer-notes {
  margin-bottom: 45px;
}

.footer-notes p {
  font-family: var(--font-base);
  color: #685856;
  font-size: 0.95rem;
  line-height: 1.8;
  margin: 0;
}

/* 電話番号・住所エリア */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-tel {
  display: flex;
  align-items: baseline;
}

.footer-tel-label {
  font-family: var(--font-en-title);
  color: #685856;
  font-size: 1.5rem;
  margin-right: 15px;
  letter-spacing: 0.05em;
}

.footer-tel-number {
  font-family: var(--font-en-title);
  color: #685856;
  font-size: 3.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.footer-address {
  display: flex;
  align-items: center;
}

.footer-address-label {
  display: inline-block;
  border: 1px solid #685856;
  color: #685856;
  font-family: var(--font-base);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 10px;
  margin-right: 15px;
}

.footer-address-text {
  color: #685856;
  font-family: var(--font-base);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* Google Map */
.footer-map {
  width: 100%;
  flex-grow: 1;      /* 余白をすべて埋めるように高さを伸ばす */
  min-height: 250px; /* 極端にコンテンツが少ない場合の最低限の高さ */
  background-color: #e8e8e8;
  position: relative;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 0;
  left: 0;
}

.footer-map-dummy {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #888888;
  font-family: var(--font-base);
  letter-spacing: 0.05em;
}

/* アクセス案内 */
.footer-access-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 25px 20px;
  position: relative;
  text-align: center;
  color: #685856;
  font-family: var(--font-base);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

/* 内側の破線 */
.footer-access-box::before {
  content: "";
  position: absolute;
  top: 0;      /* 6pxから0に変更：上下左右を外枠に合わせる */
  left: 0;     /* 6pxから0に変更 */
  right: 0;    /* 6pxから0に変更 */
  bottom: 0;   /* 6pxから0に変更 */
  border: 1px dashed #c4b6b4;
  border-radius: 12px; /* 親要素の.footer-access-boxと同じ12pxに設定 */
  pointer-events: none;
}

/* コピーライト */
.footer-copy {
  background-color: #ee869a;
  color: #ffffff;
  text-align: center;
  padding: 20px 15px;
  font-family: var(--font-base);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* アクセス案内のテキストを塊で扱う */
.footer-access-text {
  display: inline-block;
  white-space: nowrap; /* 塊の中で意図しない改行を防ぐ */
}

/* 既存の .footer-access-box も少し調整するとより綺麗です */
.footer-access-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 20px 15px; /* スマホで窮屈にならないよう少し調整 */
  position: relative;
  text-align: center;
  color: #685856;
  font-family: var(--font-base);
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 1.6; /* 改行した時の行間を確保 */
}

/* ==============================================
   Page Top Button (トップへ戻るボタン)
============================================== */
.page-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 60px;
  height: 60px;
  background-color: #efafbe; /* 画像に近い落ち着いたダスティピンク */
  border: none;
  cursor: pointer;
  z-index: 90;
  
  /* 初期状態は非表示（透明） */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px); /* 少し下からふわっと上がる演出用 */
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

/* 表示用のクラス（JSで付与） */
.page-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ホバー時のアクション */
.page-top:hover {
  opacity: 0.8;
  transform: translateY(-5px);
}

/* 内側の白い枠線 */
.page-top::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border: 1px solid #ffffff;
  pointer-events: none;
}

/* 矢印を囲う要素 */
.page-top-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%); /* 少し上寄りに配置 */
  width: 16px;
  height: 24px;
  pointer-events: none;
}

/* 矢印の縦線 */
.page-top-arrow::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 25px;
  background-color: #ffffff;
}

/* 矢印の傘 (^) */
.page-top-arrow::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  border-top: 2px solid #ffffff;
  border-left: 2px solid #ffffff;
}

/* ------------------------------
   スクロールで出現する浮遊ボタン
------------------------------ */
.floating-cta {
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 1000;
  
  /* 初期状態は非表示 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

/* スクロール後に付与する表示用クラス */
.floating-cta.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-cta-btn {
  position: relative; /* 内側の枠線の基準位置 */
  display: inline-flex;
  align-items: center;
  background: linear-gradient(to bottom, #6cd47e 0%, #6cd47e 50%, #44c05b 50%, #44c05b 100%); /* FVと共通のグラデーション */
  color: #fff;
  font-weight: 700;
  padding: 14px 24px;
  border: 4px solid #fff; /* 白い太枠 */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* FVと共通の影 */
  font-family: var(--font-heading);
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* 内側の二重線（FVと共通） */
.floating-cta-btn::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

/* 矢印（>）のデザイン */
.floating-cta-btn::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg);
  margin-left: 12px;
}

/* ホバー時の効果（FVと共通） */
.floating-cta-btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


/* ==============================================
   Media Queries (各ブレークポイントの調整)
============================================== */

/* ------------------------------------
   【大型ディスプレイ】 2560px以上
------------------------------------ */
@media (min-width: 2560px) {
  .container { max-width: 1200px; }
  .kv { aspect-ratio: 32 / 9; }

  .kv-content {
    width: 100%;
    /* 45vwをやめて、最大幅をピクセルで固定します */
    max-width: 750px; 
    padding: 20px 0;
    border-radius: 8px;
    margin-top: 10%;
  }
  .kv-woman { height: 130%; bottom: -20%; }

  .about-inner { max-width: 1400px; }
  .about-title-en { font-size: 6rem; margin-bottom: -10px; }
  .about-number { font-size: 220px; top: -110px; left: 100px; }
  .about-title { font-size: 2rem; top: -30px; }
  .about-visual { max-width: 700px; }
  .about-text { max-width: 1200px; font-size: 1.15rem; }

  .before-after-title-en { font-size: 6rem; margin-bottom: -10px; }

  .flow-grid { gap: 150px 30px; }
  .flow-number { font-size: 130px; top: -50px; }
  .flow-item-title { font-size: 1.2rem; }
  .flow-card { padding: 35px 25px; }

}


/* ------------------------------------
   【一般的なデスクトップ】 1920px以上
------------------------------------ */
@media (min-width: 1920px) {
  .container { max-width: 1200px; }
  .kv { aspect-ratio: 32 / 9; }
  .kv-woman { height: 140%; bottom: -20%; }
   .kv-content {
    width: 100%;
    /* 45vwをやめて、最大幅をピクセルで固定します */
    max-width: 700px; 
    padding: 20px 0;
    border-radius: 8px;
    margin-top: 10%;
  }

  .about-inner { max-width: 1200px; }
  .about-title-en { font-size: 5.5rem; margin-bottom: -15px; }
  .about-number { font-size: 180px; top: -90px; left: 80px; }
  .about-title { font-size: 1.8rem; top: -25px; }
  .about-visual { max-width: 600px; }
  .about-text { max-width: 1200px; font-size: 1.05rem; }

  .before-after-title-en { font-size: 5.5rem; margin-bottom: -15px; }

  .flow-number { font-size: 180px; top: -90px; }
  .flow-item-title { font-size: 1.4rem; }

}


/* ------------------------------------
   【標準PC】 1440px以下
------------------------------------ */
@media (max-width: 1919px) {
  .container { max-width: 1080px; }
}

/* ------------------------------------
   【小型PC / タブレット横】 1024px以下
------------------------------------ */
@media (max-width: 1024px) {
  .container { max-width: 950px; }

  .kv-woman { height: 140%; bottom: -20%; }
   .kv-content {
    width: 100%;
    /* 45vwをやめて、最大幅をピクセルで固定します */
    max-width: 450px; 
    padding: 20px 0;
    border-radius: 8px;
    margin-top: 10%;
  }
  
  /* Trouble Section */
  .trouble-title { font-size: 35px; }
  .trouble-note { font-size: 50px; font-weight: 700; }
  .trouble-list li { font-size: 18px; }
  .trouble-media { width: 350px; height: 350px; left: 30px; }
  .trouble-media-frame { width: 280px; height: 280px; top: -30px; left: -30px; }
  .trouble-card-wrap { max-width: 500px; margin-left: -10px; }
  .trouble-card { padding: 50px 40px 50px 80px; }

  /* Feature Section */
  .feature{ padding: 170px 0 100px; }
  .feature-number { font-size: 140px; top: -60px; }
  .feature-title { font-size: 1.4rem; }
  .feature-text { font-size: 1rem; }
  .feature-block { display: flex; align-items: flex-start; justify-content: center; }
  .feature-content { width: 100%; max-width: 500px; margin-right: -30px; }
  .feature-card { padding: 40px 50px; }
  .feature-media { width: 350px; height: 350px; top: 40px; right: 30px; flex-shrink: 0; }
  .feature-media-frame { width: 280px; height: 280px; top: -30px; right: -30px; }

  .feature-block-type2 { align-items: flex-start; }
  .feature-media-type2 { width: 350px; height: 350px; top: 40px; left: 30px; }
  .feature-media-frame-type2 { width: 280px; height: 280px; top: -30px; left: -30px; }
  .feature-content-type2 { max-width: 500px; margin-left: -30px; }
  .feature-card-type2 { padding: 40px 50px; }
  .feature-text-type2 { margin-left: 30px; /* ※ここを 20px 〜 40px など増やして位置を合わせます */ font-size: 1rem;}
  .feature-title-type2 { margin-left: 90px; font-size: 1.4rem; }

  .about-inner { max-width: 900px; }
  .about-title-en { font-size: 4rem; }
  .about-number { font-size: 130px; top: -65px; left: 110px; }
  .about-title { font-size: 1.4rem; top: -15px; }
  .about-visual { width: 85%; }
  .about-panel-inner { padding: 50px 0; }
  .about-text { max-width: 950px; font-size: 1rem; margin-top: 30px; padding: 0 50px;}

  .plan-cards { gap: 15px; }
  .plan-card { padding: 20px 15px; }
  .plan-title-en { font-size: 4rem; }
  .plan-card-title { font-size: 1.1rem; }
  .plan-card-price { font-size: 3rem; }
  .plan-card-price-unit { font-size: 1.4rem; }
  .plan-card-list li { font-size: 0.85rem; padding-left: 22px; }
  .plan-card-list li::before { left: 4px; }

  .before-after-title-en { font-size: 4rem; }
  .ba-item-title { font-size: 1.15rem; }
  .ba-item-text { font-size: 0.95rem; }
  .ba-image-label { font-size: 0.9rem; }

  .flow-number { 
    font-size: 130px; 
    top: -50px; 
    left: 50%; 
    transform: translateX(-50%); 
  }

  .qa-title-en { font-size: 4rem; }
  .qa-item-header { padding: 25px 30px; }
  .qa-item-title { font-size: 1.15rem; }
  .qa-item-content { padding: 0 30px 30px; }
  .qa-item-text { font-size: 0.95rem; }

  .cta-section { padding: 100px 0; }
  .cta-box { padding: 60px 30px; }
  .cta-lead { font-size: 2.4rem; }
  .cta-tel-number { font-size: 3.5rem; }

  .footer-columns { gap: 40px; }
  .footer-left { width: 55%; }
  .footer-right { width: 40%; }
  .footer-tel-number { font-size: 2.8rem; }
  .footer-logo img { width: 240px; }
  
}


/* ------------------------------------
   【タブレット・スマホ】 768px以下
------------------------------------ */
@media (max-width: 768px) {
  .z { max-width: 708px; }
  
  /* Header & Navigation */
  .header { 
    position: absolute; /* fixed から absolute へ変更し、追従を解除 */
    background: transparent; 
    padding: 0; 
    box-shadow: none; 
    z-index: 1000;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    width: 100%;
  }

  .header-logo { width: 140px; }
  .hamburger { 
    pointer-events: auto; 
    display: block;       
    width: 50px; 
    height: 50px; 
    background-color: #efafbe; /* page-topと同じピンク背景 */
    border: none; 
    cursor: pointer; 
    position: relative; 
    z-index: 1000; 
    transition: background-color 0.3s ease;
  }

  .hamburger::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid #ffffff; /* 白い枠線 */
    transition: opacity 0.3s ease;
  }

  /* 白い3本線のマーク */
  .hamburger span { 
    display: block; 
    position: absolute;
    left: 13px; /* 枠のサイズに合わせて中央寄せ */
    width: 24px; 
    height: 2px; 
    background-color: #ffffff; /* 線を白に */
    transition: all 0.3s ease; 
  }

  .hamburger span:nth-child(1) { top: 16px; }
  .hamburger span:nth-child(2) { top: 24px; }
  .hamburger span:nth-child(3) { top: 32px; }

  /* ------------------------------------
     メニュー展開時（ピンクの×ボタン）
  ------------------------------------ */
  .hamburger.is-active {
    background-color: transparent; /* ピンクの背景を消す */
  }
  .hamburger.is-active::before {
    opacity: 0; /* 内側の白い枠線も消す */
  }
  .hamburger.is-active span {
    background-color: #efafbe; /* 線の色をピンクに変更 */
  }
  
  /* 3本線を×に変形 */
  .hamburger.is-active span:nth-child(1) { 
    top: 24px; /* 中央に移動して回転 */
    transform: rotate(45deg); 
  }
  .hamburger.is-active span:nth-child(2) { 
    opacity: 0; /* 真ん中の線は消す */
  }
  .hamburger.is-active span:nth-child(3) { 
    top: 24px; /* 中央に移動して逆回転 */
    transform: rotate(-45deg); 
  }
  
  .global-nav { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(255, 255, 255, 0.98); z-index: 999; opacity: 0; visibility: hidden; transition: all 0.3s ease; display: flex; justify-content: center; align-items: center; }
  .global-nav.is-active { opacity: 1; visibility: visible; }
  .nav-list { flex-direction: column; width: 100%; }
  .nav-list a { color: #d88191; font-size: 1.2rem; padding: 15px; border-bottom: 1px solid #f9e1e5; }

  /* KV */
  .kv { margin-top: 0; aspect-ratio: 1 / 1; }
  .kv-woman { top: -5%; right: -5%; bottom: auto; transform: none; height: 100%; }
  .kv-image { object-position: center top; }
  .kv-overlay { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,245,247,0.7) 50%, rgba(255,245,247,0.95) 100%); }
  .kv-container { justify-content: center; align-items: flex-end; padding-bottom: 30px; }
  .kv-content { text-align: center; padding: 10px; margin-top: 0; max-width: 100%; width: 100%; }
  .kv-text-image { max-width: 90%; margin: 0 auto 15px auto; }
  .kv-cta-wrap {
    justify-content: center;
  }

  /* Trouble Section */
  .trouble { padding: 60px 0 1px; }
  .trouble-title { font-size: 30px; margin-bottom: 50px; }
  .trouble-layout { flex-direction: column; align-items: center; margin-top: 0; margin-bottom: 60px; }
  .trouble-media { top: 0; left: 0; width: 85%; max-width: 360px; height: auto; z-index: 3; }
  .trouble-media-frame { width: 80%; height: 80%; top: -20px; left: -20px; }
  
  .trouble-card-wrap { width: 100%; max-width: 500px; margin-left: 0; margin-top: -60px; padding-right: 0; }
  .trouble-card { width: 100%; padding: 100px 50px 40px 50px; }
  .trouble-card-dashed { top: 15px; left: 15px; width: calc(100% - 30px); height: 100%; margin: 0; }
  
  .trouble-list li { font-size: 20px; padding-left: 35px; }
  .trouble-list li::before { top: -5px; left: 6px; width: 13px; height: 25px; border-bottom: 4px solid #efafbe; border-right: 4px solid #efafbe; transform: rotate(45deg); }
  .trouble-note { font-size: 37px; font-weight: 700; }

  /* Feature Section */
  .feature { padding: 150px 0 80px; }
  .feature-block { flex-direction: column-reverse; align-items: center; margin-bottom: 110px; }
  .feature-number { font-size: 120px; top: -50px; left: 50%; transform: translateX(-50%); }
  
  .feature-media { width: 85%; max-width: 360px; height: auto; aspect-ratio: 1 / 1; top: 0; right: 0; z-index: 3; }
  .feature-media-frame { width: 80%; height: 80%; top: -20px; left: -20px; right: auto; }
  
  .feature-content { display: flex; flex-direction: column; margin-right: 0; margin-top: 30px; width: 100%; max-width: 500px; padding-right: 0; }
  .feature-title { width: 100%; font-size: 25px; margin-bottom: 20px; padding-left: 15px; text-shadow: none; }
  .feature-card-wrap { width: 100%; }
  .feature-card { padding: 40px 40px; width: 100%; margin-left: 0; }
  .feature-card-dashed { top: 15px; left: 15px; width: calc(100% - 30px); height: 100%; margin: 0; }
  .feature-text { width: 100%; }

  .feature-block-type2 { flex-direction: column; align-items: center; } /* 縦並び */
  .feature-media-type2 { width: 85%; max-width: 360px; height: auto; aspect-ratio: 1 / 1; top: 0; left: 0; }
  .feature-media-frame-type2 { width: 80%; height: 80%; top: -20px; left: -20px; }
  .feature-content-type2 { margin-left: 0; margin-top: 30px; width: 100%; max-width: 500px; }
  .feature-title-type2 { 
    margin-left: 0; 
    padding-left: 15px; 
  }
.feature-card-dashed-type2 { 
    width: calc(100% - 30px); 
  }
  .feature-card-dashed-type2 { top: 15px; right: 15px; width: calc(100% - 30px); margin-right: 0; }
  .feature-text-type2 { width: 100%; margin-left: 0; }

  .about-section { padding: 80px 0 80px; }
  .about-head { margin-bottom: 40px; }
  
  /* デザインカンプに合わせ「ABOUT」を大文字化 */
  .about-title-en { 
    font-size: 3.5rem; 
    margin-bottom: -15px;  
  }
  .about-subtitle { font-size: 0.95rem; }

  .about-inner { 
    margin-bottom: 0; 
  }
  
  .about-heading-group { max-width: 90%; margin-bottom: 15px; }
  .about-number { font-size: 110px; top: -28px; right: 250px; }
  .about-title { font-size: 1.25rem; top:10px; }
  
  /* スマホ版は画像を画面幅いっぱいに近くする */
  .about-visual { width: 70%; }
  
  /* ★重要：スマホ版カンプに合わせ、画像との被り（マイナスマージン）をなくす */
 .about-panel { 
    width: 100%; 
    max-width: none; 
    margin-top: -60px; /* PC版と同様に上に引き上げて画像と重ねる */
  }

  /* ★重要：破線をずらさず、白帯の内側に綺麗に収める（インセット） */
  .about-panel-dashed { 
    top: 15px; 
    bottom: -15px; /* ★ 15px を -15px に変更し、下へ少しはみ出させる */
    left: 15px; 
    right: 15px; 
    width: auto; 
    height: auto; 
    margin: 0; 
  }
  
  .about-panel-inner { padding: 40px 0; }

  .about-text { 
    width: 100%; 
    max-width: 100%; 
    padding: 0 50px; 
    font-size: 0.95rem; 
    margin-top: 70px; /* 重なり分(60px)＋余白分で調整 */
  }

  .about-inner + .about-inner {
    margin-top: 100px; /* スマホ時のブロック間の隙間 */
  }

  .plan-section { padding: 80px 0; }
  .plan-head { margin-bottom: 50px; }
  .plan-title-en { font-size: 3.5rem; margin-bottom: -10px; }
  .plan-subtitle { font-size: 0.95rem; }
  
  .plan-cards {
    flex-direction: column;
    gap: 40px; /* 縦積み時のカード間隔 */
    align-items: center;
  }
  
  .plan-card {
    width: 100%;
    max-width: 480px; /* スマホ時に広がりすぎないように制限 */
    padding: 30px 20px;
  }
  
  .plan-card-price { font-size: 3.5rem; }
  .plan-card-list li { font-size: 0.95rem; padding-left: 28px; }
  
  .plan-note-wrap { margin-top: 50px; }
  .plan-note-marker { font-size: 1.5rem; }

  /* BEFORE/AFTER スマホ対応 */
  .before-after-section { padding: 80px 0; }
  .before-after-head { margin-bottom: 40px; }
  .before-after-title-en { font-size: 3.5rem; margin-bottom: -10px; }
  .before-after-subtitle { font-size: 0.95rem; }

  .ba-list { gap: 15px; }
  
  .ba-item-header { padding: 15px 20px; } /* 上下の余白を少し縮小 */
  .ba-item-title { font-size: 1.05rem; padding-right: 15px; line-height: 1.4; }

  .ba-item-toggle { width: 22px; height: 22px; }
  .ba-item-toggle::before { width: 10px; }
  .ba-item-toggle::after { height: 10px; }
  
  .ba-item-content { padding: 0 20px 25px; }
  .ba-item-text { padding-right: 0; font-size: 0.9rem; line-height: 1.7; margin-bottom: 25px; }
  .ba-image-label { font-size: 0.85rem; margin-bottom: 10px; }
  
  /* スマホでは画像を縦並びに変更 */
  .ba-images { flex-direction: column; gap: 25px; }

  .flow-section { padding: 80px 0; }
  .flow-head { margin-bottom: 60px; }
  .flow-title-en { font-size: 3.5rem; margin-bottom: -10px; }
  .flow-subtitle { font-size: 0.95rem; }
  
  .flow-grid {
    grid-template-columns: 1fr; /* スマホで1列にする */
    gap: 70px;
  }
  
  .flow-number { font-size: 110px; top: -43px; }
  .flow-item-title { font-size: 1.25rem; }
  .flow-card { padding: 40px 30px; }

  .flow-card-dashed {
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: 100%;
    margin: 0;
  }

  .flow-text {
    width: 90%; /* ← ここの数値を 95% や 85% などに変更して調整してください */
    margin: 0 auto; /* 狭めたテキストをボックスの中央に配置します */
  }

  .flow-image-wrap {
    width: 70%;
    margin: 0 auto;
  }

  .qa-section { padding: 80px 0; }
  .qa-head { margin-bottom: 40px; }
  .qa-title-en { font-size: 3.5rem; margin-bottom: -10px; }
  .qa-subtitle { font-size: 0.95rem; }
  
  .qa-list { gap: 15px; }
  .qa-item-header { padding: 20px 25px; }
  .qa-item-title { font-size: 1.05rem; padding-right: 15px; }
  
  .qa-item-toggle { width: 22px; height: 22px; }
  .qa-item-toggle::before { width: 10px; }
  .qa-item-toggle::after { height: 10px; }
  
  .qa-item-content { padding: 0 25px 25px; }
  .qa-item-text { font-size: 0.9rem; line-height: 1.8; }

  .cta-section { padding: 80px 0; }
  .cta-box { padding: 50px 20px 45px; }
  .cta-lead { font-size: 1.8rem; margin-bottom: 10px; }
  .cta-catch { font-size: 0.95rem; margin-bottom: 25px; }
  .cta-note { font-size: 1.15rem; margin-bottom: 15px; }
  .cta-tel { margin-bottom: 35px; }
  .cta-tel-label { font-size: 1.1rem; margin-right: 10px; }
  .cta-tel-number { font-size: 2.8rem; }

  .footer { padding-top: 60px; }
  .footer-container { padding-bottom: 60px; }
  
  .footer-columns {
    flex-direction: column;
    gap: 50px;
  }
  
  .footer-left,
  .footer-right {
    width: 100%;
  }
  
  .footer-logo {
    text-align: center;
    margin-bottom: 35px;
  }
  
  .footer-logo img {
    width: 220px;
  }

  .footer-schedule-wrap {
    margin-left: 0;
    width: calc(100% - 15px);
  }

  .footer-schedule-card {
    width: 100%;
    padding: 30px 15px;
  }
  
  .footer-schedule-dashed {
    width: 100%;
  }
  
  .footer-contact {
    align-items: center;
    text-align: center;
    gap: 15px;
  }
  
  .footer-tel {
    justify-content: center;
  }

  .footer-address {
    justify-content: center;
  }

  .footer-address-label {
    display: none;
  }
  
  .footer-map {
    aspect-ratio: 4 / 3; /* スマホ版では自動で伸びないように固定比率を復活 */
    flex-grow: 0;
  }

  .page-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .floating-cta {
    bottom: 15px;
    left: 15px;
  }
  .floating-cta-btn {
    font-size: 13px;
    padding: 10px 18px;
  }

  .floating-cta {
  bottom: 20px;
  left: 20px;
}

}

/* ------------------------------------
   【大きめスマホ】 500px以下
------------------------------------ */
@media (max-width: 500px) {
  .container { max-width: 440px; }

  .kv-text-image { max-width: 100%; margin: 0 auto 15px auto; }
  
  /* Trouble Section */
  .trouble { padding: 50px 0 1px; }
  .trouble-title { font-size: 25px; }
  .trouble-layout { margin-bottom: 30px; }
  .trouble-card-wrap { margin-top: -30px; margin-left: 0; width: 100%; padding-right: 0; }
  .trouble-card { padding: 70px 40px 30px 40px; width: 100%; }
  .trouble-card-dashed { top: 12px; left: 12px; width: calc(100% - 24px); height: 100%; margin: 0; }
  
  .trouble-list { gap: 20px; }
  .trouble-list li { font-size: 16px; padding-left: 30px; }
  .trouble-list li::before { top: -3px; left: 6px; width: 10px; height: 20px; border-bottom: 4px solid #efafbe; border-right: 4px solid #efafbe; transform: rotate(45deg); }
  .trouble-note { font-size: 28px; font-weight: 700; }

  /* Feature Section */
  .feature { padding: 120px 0 80px; }
  .feature-number { font-size: 100px; top: -40px; }
  .feature-media { width: 90%; }
  .feature-media-frame { top: -15px; left: -15px; }
  .feature-content { margin-top: 25px; padding-right: 0; }
  .feature-title { font-size: 1.25rem; margin-bottom: 15px; }
  .feature-card { padding: 35px 35px; }
  .feature-card-dashed { top: 12px; left: 12px; width: calc(100% - 24px); height: 100%; margin: 0; }
  .feature-text { font-size: 0.95rem; line-height: 1.7; width: 100%; }

  .feature-media-type2 { width: 90%; }
  .feature-content-type2 { margin-top: 25px; }
  .feature-title-type2 { font-size: 1.25rem; margin-bottom: 15px; }
  .feature-card-type2 { padding: 35px; }
  .feature-card-dashed-type2 { top: 12px; right: 12px; width: calc(100% - 24px); }

  .about-section { padding: 80px 0 80px; }
  .about-title-en { font-size: 3rem; }
  .about-number { font-size: 100px; top: -23px; left: 50px; }
  .about-title { font-size: 1.15rem; }
  .about-visual { width: 70%; }
  .about-panel { width: 100%; }
  .about-panel-dashed { top: 10px; left: 10px; width: calc(100% - 20px); height: 100%; margin: 0;  }
  .about-panel-inner { padding: 35px 0; }
  .about-text { max-width: 440px; padding: 0 30px; font-size: 0.95rem; }

  .plan-title-en { font-size: 3rem; }
  .plan-subtitle { font-size: 0.85rem; }
  .plan-card-price { font-size: 3.2rem; }
  .plan-note-marker { font-size: 1.3rem; }

  .before-after-title-en { font-size: 3rem; }

  .ba-item-header { padding: 15px 15px; }
  .ba-item-title { font-size: 0.95rem; padding-right: 10px; }
  .ba-item-content { padding: 0 15px 20px; }
  .ba-item-text { font-size: 0.85rem; }
  .ba-image-label { font-size: 0.8rem; }
  .ba-images { gap: 20px; }

  .flow-number { font-size: 100px; top: -34px; }
  .flow-card { padding: 35px 25px; }

  .flow-card-dashed {
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: 100%;
    margin: 0;
  }

  .qa-item-header { padding: 15px 20px; }
  .qa-item-title { font-size: 0.95rem; }
  .qa-item-content { padding: 0 20px 20px; }
  .qa-item-text { font-size: 0.85rem; }

  .cta-section { padding: 60px 0; }
  .cta-box { padding: 40px 15px 35px; }
  .cta-lead { font-size: 1.55rem; }
  .cta-catch { font-size: 0.85rem; margin-bottom: 20px; }
  .cta-note { font-size: 1.05rem; margin-bottom: 10px; }
  .cta-tel { margin-bottom: 30px; }
  .cta-tel-label { font-size: 0.95rem; margin-right: 8px; }
  .cta-tel-number { font-size: 2.2rem; }

  .footer-schedule-card {
    padding: 25px 10px;
  }
  
  .footer-schedule-dashed {
    top: 10px;
    right: auto;
    left: 10px;
    width: calc(100% - 20px);
    height: 100%;
  }

  .footer-schedule { 
    width: 88%;
    margin-left: 20px;
  }

  .footer-schedule th,
  .footer-schedule td {
    padding: 12px 3px;
    font-size: 0.9rem;
  }
  
  .footer-schedule td.time {
    font-size: 0.85rem;
  }
  
  .footer-notes p {
    font-size: 0.85rem;
  }
  
  .footer-tel-label {
    font-size: 1.2rem;
    margin-right: 10px;
  }
  
  .footer-tel-number {
    font-size: 2.6rem;
  }
  
  .footer-address-text {
    font-size: 0.9rem;
  }

}

/* ------------------------------------
   【小型スマホ / カンプ基準】 375px以下
------------------------------------ */
@media (max-width: 375px) {
  .container { max-width: 355px; }
  .kv { aspect-ratio: 4 / 5; }

  .cta-btn {
  font-size: 1rem;
}

  /* Trouble Section */
  .trouble { padding: 40px 0 1px; }
  .trouble-title { font-size: 23px; }
  .trouble-card-wrap { margin-top: -20px; margin-left: 0; width: 100%; padding-right: 0; }
  .trouble-card { padding: 60px 40px 35px 40px; }
  .trouble-card-dashed { top: 10px; left: 10px; width: calc(100% - 20px); height: 100%; margin: 0; }
  .trouble-list li { font-size: 16px; line-height: 1.5; }
  .trouble-list li::before { top: 1px; left: 3px; width: 10px; height: 20px; }
  .trouble-note { font-size: 23px; font-weight: 700; }

  /* Feature Section */
  .feature { padding: 150px 0 60px; }
  .feature-content { padding-right: 0; margin-top: 20px; }
  .feature-title { font-size: 16px; }
  .feature-card { padding: 30px 30px; }
  .feature-card-dashed { top: 10px; left: 10px; width: calc(100% - 20px); height: 100%; margin: 0; }

  .feature-content-type2 { margin-top: 20px; }
  .feature-title-type2 { font-size: 16px; }
  .feature-card-type2 { padding: 30px; }
  .feature-card-dashed-type2 { top: 10px; right: 10px; width: calc(100% - 20px); }

  .about-section { padding: 60px 0 60px; }
  .about-title-en { font-size: 2.8rem; }
  .about-number { font-size: 100px; top: -26px; left: 20px; }
  .about-title { font-size: 1.05rem; }
  .about-visual { width: 80%; }
  .about-panel { width: 100%; }
  .about-panel-dashed { top: 10px; left: 10px; width: calc(100% - 20px); height: 100%; margin: 0; }
  .about-panel-inner { padding: 30px 0; }
  .about-text { max-width: 355px; padding: 0 30px; font-size: 0.9rem; }

  .plan-title-en { font-size: 2.8rem; }

  .before-after-title-en { font-size: 2.8rem; }

  .ba-item-title { 
    font-size: 0.9rem; 
    line-height: 1.5; /* 改行された時の上下の行間を綺麗に保つ */
  }

  .ba-space { 
    display: none; /* 2行目の頭が全角スペースでズレるのを防ぐため消す */
  }
  .ba-br { 
    display: block; /* 375px以下のみ改行を有効にする */
  }

  .ba-item-text { font-size: 0.8rem; }
  .ba-image-label { font-size: 0.75rem; }

  .flow-title-en { font-size: 2.8rem; }
  .flow-number { font-size: 90px; top: -28px; left: 70px; }
  .flow-item-title { font-size: 1.15rem; }
  .flow-card { padding: 30px 20px; }
  .flow-text { font-size: 0.9rem; }

  .flow-card-dashed {
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: 100%;
    margin: 0;
  }

  .qa-section { padding: 60px 0; }
  .qa-title-en { font-size: 2.8rem; }
  .qa-item-header { padding: 15px; }
  .qa-item-title { font-size: 0.9rem; line-height: 1.6; }
  .qa-item-content { padding: 0 15px 20px; }
  .qa-item-text { font-size: 0.8rem; }
  
  .cta-box { padding: 35px 12px 30px; }
  .cta-lead { 
    font-size: 1.35rem; /* 1行に収まるように微調整 */
    letter-spacing: 0.02em; 
  }
  .cta-catch { font-size: 0.75rem; }
  .cta-note { font-size: 0.95rem; }
  .cta-tel-label { font-size: 0.85rem; }
  .cta-tel-number { font-size: 1.9rem; }

  .footer-schedule { 
    width: 85%;
    margin-left: 20px;
  }

  .footer-schedule th,
  .footer-schedule td {
    font-size: 0.75rem;
    padding: 10px 1px;
  }
  
  .footer-schedule td.time {
    font-size: 0.7rem;
    letter-spacing: 0;
  }
  
  .footer-tel-number {
    font-size: 2rem;
  }
  
  .footer-access-box {
    font-size: 0.85rem;
    padding: 20px 10px;
  }
  
  .footer-copy {
    font-size: 0.75rem;
    padding: 15px 10px;
  }

}