/* CSS Document */

.sitemap-title {
	text-align: center;
	padding-top: 80px;
}

.sitemap-box {
	max-width: 1000px;
	padding-bottom: 100px;
}

.sitemap-menu-title {
	background: #E95312;
    color: #fff;
	padding: 10px;
	font-weight: 600;
    margin: 30px 0 10px 0;
    border-radius: 10px;
}
.sitemap-menu-title a{
    color: #fff!important;
}
.sitemap-li-1{
    list-style: disc;
    color: #E95312;
    line-height: 2em;
    margin-left: 20px;
}

.sitemap-box a {
	color: #57453C;
}

.sitemap-box a:hover {
	color: #57453C;
	text-decoration: underline;
}

.sitemap-li{
    list-style: none;
    line-height: 25px;
}
.mini{
    font-size: 15px;
    margin-left: 20px;
}


/*
=============================================================
  ONE'S BODY | Before / After 実績 — スタイルシート
  ファイル名: before-after.css（v3）
  ※ 元サイトの .modal 等との衝突を避けるため
     Before/After 固有クラスには "ba-" プレフィックスを付与
=============================================================
*/

/* ============================================================
   CSS カスタムプロパティ（カラー変数）
   ============================================================ */
:root {
  --ba-orange  : #E95312;
  --ba-brown   : #57453C;
  --ba-cream   : #F9F3EE;
  --ba-white   : #FFFFFF;
  --ba-txt     : #57453C;
  --ba-gray    : #888;
  --ba-line    : #e8ddd6;
  --ba-shadow  : 0 4px 22px rgba(89,67,60,.30);
}

/* ============================================================
   セクション全体
   ============================================================ */
.ba-sec {
  /* PC: 固定バナー（右下約300px）に被らないよう下部余白を確保 */
  padding: 15px 0 120px;
  background: var(--ba-cream);
}
/* SP: 固定バナーが画面下部全幅に出るため余白を大きく確保 */
@media (max-width: 768px) {
  .ba-sec { padding: 40px 0 160px; }
}
.ba-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0;
  width:100%;
}

/* ============================================================
   セクションヘッダー
   ============================================================ */

/* 白いボックス（見出し・リード文・バッジをまとめる） */
.ba-header-box {
  background: var(--ba-white);
  border-radius: 16px;
  padding: 25px 40px 28px;
  max-width: 1200px;
  margin: 0 auto 40px;
  text-align: center;
}
/* 修正2: 768px以下でボックス縦並び */
@media (max-width: 768px) {
  .ba-header-box {
    padding: 24px 18px 20px;
    margin: 0 0 32px;
    border-radius: 12px;
  }
  .ba-sec .ba-heading { font-size: clamp(20px, 5.5vw, 25px); }
  .ba-lead { font-size: 16px; }
  .ba-pillars { gap: 8px; }
  .ba-pill { font-size: 14px; padding: 5px 12px; }
  /* カードグリッドを1カラムに */
  .ba-grid { grid-template-columns: 1fr; }
}

/* 小見出し "BEFORE/AFTER" */
.ba-eyebrow {
  display: block;
  text-align: center;
  font-family: "Oswald", sans-serif;
  letter-spacing: .18em;
  font-size: 16px;
  color: var(--ba-orange);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}

/* 大見出し */
.ba-sec .ba-heading {
  text-align: center;
  font-size: clamp(24px, 4vw, 25px);
  font-weight: 900;
  color: var(--ba-brown);
  line-height: 1.4;
  margin: 0 0 20px;
}
.ba-sec .ba-heading .ba-o {
  color: var(--ba-orange);
}

/* リード文 */
.ba-lead {
  font-size: 16px;
  color: var(--ba-txt);
  line-height: 1.85;
  margin: 0 0 18px;
  text-align: center;
}

/* ピルバッジ */
.ba-pillars {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.ba-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ba-cream);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ba-brown);
}
.ba-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}
.ba-pill.ba-body i { background: var(--ba-brown); }
.ba-pill.ba-fms  i { background: var(--ba-orange); }

/* レスポンシブ対応 */
@media (max-width: 600px) {
  .ba-header-box {
    padding: 24px 20px 20px;
  }
}

/* ============================================================
   「会員様の実績」吹き出し見出し
   ============================================================ */
/* 吹き出し外枠 */
.ba-section-title {
  position: relative;
  display: block;
  background: var(--ba-orange);
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  padding: 16px 48px;
  border-radius: 50px;
  max-width: 340px;
  margin: 0 auto 52px;
  letter-spacing: .05em;
}
/* 吹き出しの三角（下向き） */
.ba-section-title::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  border-style: solid;
  border-width: 18px 16px 0 16px;
  border-color: var(--ba-orange) transparent transparent transparent;
}
.ba-section-title__text {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

/* ============================================================
   カードグリッド（3カラム固定）
   ============================================================ */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 20px;
}

/* ============================================================
   カード
   ============================================================ */
.ba-card {
  background: var(--ba-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--ba-shadow);
  display: flex;
  flex-direction: column;
  position: relative;  /* スタッキングコンテキストを作る */
  z-index: 1;          /* 固定バナー(z-index:10)より必ず下に保つ */
  max-width: 650px;
  width: 100%;
  margin: 0 auto;
}

/* 写真エリア（BEFORE / AFTER 2分割） */
.ba-ph {
  display: flex;
  height: 320px;  /* 写真の見える範囲を増やす */
  position: relative;
}
.ba-ph .ba-col {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: #cfc6ba;
  background-image:
    linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 18px 18px;
}
.ba-ph .ba-col.ba-after {
  background-color: #b9ad9e;
}
/* 人物シルエット */
.ba-ph .ba-col .ba-silh {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 60%; height: 88%;
  background: rgba(89,67,60,.18);
  border-radius: 46% 46% 0 0 / 30% 30% 0 0;
}
.ba-ph .ba-col.ba-after .ba-silh {
  width: 48%;
  background: rgba(89,67,60,.24);
}
/* 写真画像（カード内） */
.ba-ph-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* BEFORE / AFTER タグ */
.ba-ph .ba-tag {
  position: absolute;
  top: 8px; left: 8px; z-index: 2;
  font-family: "Oswald", sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: .1em;
  padding: 4px 10px; border-radius: 3px;
  color: #fff; background: rgba(89,67,60,.80);
}
.ba-ph .ba-col.ba-after .ba-tag {
  background: var(--ba-orange);
}

/* ============================================================
   「Xカ月後」大きな矢印バッジ（写真中央）
   ── 右向き矢印の形の中にテキストを配置
   ============================================================ */
.ba-months-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;  /* 固定バナー(z-index:10)より下に保つ */
  /* 矢印全体のサイズ */
  width: 120px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* clip-path で右向き矢印形状を描く */
.ba-months-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--ba-orange);
  /* 左辺が垂直、右端が三角の矢印形 */
  clip-path: polygon(0% 15%, 72% 15%, 72% 0%, 100% 50%, 72% 100%, 72% 85%, 0% 85%);
  filter: drop-shadow(0 3px 8px rgba(233,83,18,.50));
}
/* 矢印内のテキストコンテナ（横並び） */
.ba-months-badge .ba-months-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;  /* 横並び */
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  padding-right: 18px;
  color: #fff;
}
.ba-months-badge .ba-months-num {
  font-family: "Oswald", sans-serif;
  font-size: 24px;  /* 少し小さく */
  font-weight: 700;
  line-height: 1;
  color:#fff;
}
.ba-months-badge .ba-months-label {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color:#fff;
}

/* 体重変化バッジ（写真右下） */
.ba-weight-badge {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 3;  /* 固定バナー(z-index:10)より下に保つ */
  background: var(--ba-orange);
  color: #fff;
  border-radius: 8px;
  padding: 5px 12px;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(233,83,18,.35);
}

/* ============================================================
   カード本文
   ============================================================ */
.ba-cbody {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* 年齢・性別 */
.ba-cname .ba-age {
  font-size: 18px;
  font-weight: 900;
  color: var(--ba-brown);
  margin-right: 6px;
}
.ba-cname .ba-gender {
  font-size: 16px;
  color: var(--ba-brown);  /* 濃いブラウン */
  font-weight: 700;
}
.ba-period {
  font-size: 16px;       /* ★ 最小16px */
  color: var(--ba-gray);
  margin-top: 2px;
  margin-bottom: 10px;
}

/* 体組成 / FMS 2カラムブロック */
.ba-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.ba-block {
  border-radius: 8px;
  padding: 10px 10px 8px;
  background: var(--ba-cream);
  min-width: 0;          /* グリッド内で幅を超えない */
  overflow: hidden;      /* はみ出しを防ぐ */
}
.ba-block .ba-blabel {
  font-size: 16px;
  font-weight: 700;
  color: var(--ba-gray);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ba-block .ba-blabel i {
  width: 7px; height: 7px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  background: var(--ba-brown);
}
.ba-block.ba-fms-block .ba-blabel i {
  background: var(--ba-orange);
}
/* 大きい数値 */
.ba-big {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: var(--ba-orange);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}
.ba-big .ba-u {
  font-size: 16px;
  margin-left: 1px;
  color: var(--ba-orange);
}
/* 補足テキスト */
.ba-sub {
  font-size: 16px;
  color: var(--ba-gray);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ba-sub b {
  color: var(--ba-orange);
  font-weight: 700;
}
/* FMSブロックの矢印表示 */
.ba-fms-arrow {
  font-size: 16px;
  color: var(--ba-gray);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.ba-fms-arrow b {
  color: var(--ba-brown);
  font-weight: 700;
}

/* ミニ指標行（体重・体脂肪率・除脂肪） */
.ba-mini-row {
  display: flex;
  gap: 0;
  margin-top: 6px;
  border-top: 1px solid var(--ba-line);
  padding-top: 8px;
}
.ba-mini-row .ba-m {
  flex: 1;
  min-width: 0;          /* 幅を超えない */
  text-align: center;
  padding: 0 4px;
  border-right: 1px solid var(--ba-line);
  overflow: hidden;
}
.ba-mini-row .ba-m:last-child {
  border-right: none;
}
.ba-mini-row .ba-m .ba-ml {
  font-size: 16px;
  color: var(--ba-gray);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ba-mini-row .ba-m .ba-mv {
  font-size: 17px;
  font-weight: 700;
  color: var(--ba-brown);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}
.ba-mini-row .ba-m .ba-mv .ba-arr {
  color: var(--ba-orange);
  font-weight: 900;
}

/* 「実績を詳しく見る ▶」ボタン */
.ba-detail-btn {
  margin-top: 12px;
  width: 100%;
  border: none;
  cursor: pointer;
  background: var(--ba-orange);
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 16px;       /* ★ 最小16px */
  padding: 12px;
  border-radius: 8px;
  transition: .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: .03em;
}
.ba-detail-btn:hover {
  background: #c8430f;
  color: #fff;
}

/* ============================================================
   モーダル（ba-ov / ba-modal）
   ※ 元サイトの .modal と衝突しないよう ba- プレフィックス
   ============================================================ */

/* オーバーレイ
   ─ 画面全体を覆い、モーダルを画面中央に配置
   ─ 左右矢印は fixed で画面中央に固定 */
.ba-ov {
  position: fixed;
  inset: 0;
  background: rgba(89,67,60,.55);
  backdrop-filter: blur(3px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;  /* 上揃え */
  z-index: 200;
  padding: 20px 136px 60px;
  overflow-y: auto;  /* オーバーレイ自体でスクロール */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.ba-ov.ba-on { display: flex; }

/* 左右矢印ボタン（画面中央に fixed 固定） */
.ba-ov-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity .2s, transform .2s;
  opacity: .90;
  z-index: 201;
  display: none; /* ba-ov.ba-on のときだけ表示 */
}
.ba-ov.ba-on .ba-ov-arrow { display: block; }
.ba-ov-arrow-prev { left: 16px; }
.ba-ov-arrow-next { right: 16px; }
.ba-ov-arrow:hover { opacity: 1; transform: translateY(-50%) scale(1.08); }
.ba-ov-arrow svg { width: 52px; height: 52px; display: block; }

/* モーダル本体
   ─ スクロールバーなし、ページ本体のスクロールで内容を表示 */
.ba-modal {
  background: var(--ba-cream);
  border-radius: 18px;
  max-width: 860px;
  width: 100%;
  overflow: visible;  /* スクロールバーなし */
  box-shadow: 0 20px 60px rgba(89,67,60,.30);
  animation: ba-pop .25s ease;
}
@keyframes ba-pop {
  from { transform: translateY(16px) scale(.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* モーダルヘッダー（氏名・期間・サマリー・閉じるボタン — オレンジ背景） */
.ba-mhead {
  background: var(--ba-orange);
  border-radius: 18px 18px 0 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  /* 幅が細くなっても折り返さず、全要素を一行に並べる */
  flex-wrap: nowrap;
  min-height: 60px;
}
/* 左：氏名・期間（幅が小さいときは縮小される） */
.ba-mhead-left {
  flex: 1 1 0;     /* 幅が小さいときは縮む */
  min-width: 0;    /* 内容がはみ出さないよう */
  overflow: hidden;
}
.ba-mname {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ba-mperiod {
  font-size: 14px;
  color: rgba(255,255,255,.85);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 中央：サマリーバッジ群（幅が小さいときは縮む） */
.ba-msummary {
  flex: 0 1 auto;  /* 幅が小さいときは縮むが伸びない */
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
}
.ba-msummary-item {
  background: #F9f3ee;   /* 暗めの半透明でコントラスト確保 */
  border-radius: 8px;
  padding: 6px 14px;
  text-align: center;
  min-width: 72px;
  border: 1px solid rgba(255,255,255,.30);
}
.ba-msummary-item .ba-msi-label {
  font-size: 16px;
  color: #57453C;
  font-weight: 700;
}
.ba-msummary-item .ba-msi-val {
  font-family: "Oswald", sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #E95312;
  line-height: 1.1;
  /*text-shadow: 0 1px 3px rgba(0,0,0,.25);*/
}
.ba-msummary-item .ba-msi-val .ba-msi-u {
  font-size: 14px;
}
/* 右端：閉じるボタン（常に右端に固定、絶対に縮小しない） */
.ba-close {
  background: rgba(255,255,255,.20);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  min-width: 36px;   /* 絶対に縮小させない */
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  transition: .2s;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;    /* 絶対に縮小させない */
}
.ba-close:hover { background: rgba(255,255,255,.36); }

/* モーダル本文 */
.ba-mbody {
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* BEFORE/AFTER 間の矢印 */
.ba-photo-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  z-index: 2;
}
.ba-photo-arrow svg {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 2px 6px rgba(233,83,18,.40));
}

/* モーダル内写真画像（全身表示） */
.ba-ph-img-modal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;         /* cover→containで全身を全部表示 */
  object-position: center top;
  display: block;
  z-index: 1;
  background: #f5f0eb;         /* 余白部分の背景色 */
}

/* モーダル内写真エリア */
.ba-mphotos { display: flex; gap: 6px; align-items: center; }
.ba-mphotos .ba-mc {
  flex: 1; border-radius: 12px; overflow: hidden;
  height: 340px; /* 全身が入るよう高さを増加 */
  position: relative;
  background-color: #cfc6ba;
  background-image:
    linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 18px 18px;
}
.ba-mphotos .ba-mc.ba-after { background-color: #b9ad9e; }
.ba-mphotos .ba-mc .ba-silh {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 58%; height: 86%;
  background: rgba(89,67,60,.20);
  border-radius: 46% 46% 0 0 / 30% 30% 0 0;
}
.ba-mphotos .ba-mc.ba-after .ba-silh {
  width: 46%; background: rgba(89,67,60,.26);
}
.ba-mphotos .ba-mc .ba-tag {
  position: absolute; top: 8px; left: 8px;
  font-family: "Oswald", sans-serif;
  font-size: 14px; font-weight: 700; letter-spacing: .1em;
  padding: 3px 8px; border-radius: 3px;
  color: #fff; background: rgba(89,67,60,.80);
}
.ba-mphotos .ba-mc.ba-after .ba-tag { background: var(--ba-orange); }
.ba-mphotos .ba-mc .ba-note {
  position: absolute; left: 0; right: 0; bottom: 0;
  text-align: center; font-size: 16px;
  color: rgba(255,255,255,.85); padding: 6px;
  background: linear-gradient(transparent, rgba(89,67,60,.45));
}

/* モーダル内セクションラベル */
.ba-mlabel {
  font-size: 17px; font-weight: 700;
  color: var(--ba-orange); letter-spacing: .04em;
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px;
}
.ba-mlabel::before {
  content: "";
  width: 5px; height: 20px;
  background: var(--ba-orange);
  border-radius: 3px;
  display: inline-block;
}

/* 身体測定テーブル */
table.ba-bc {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 10px;
  overflow: hidden; font-size: 16px;
}
table.ba-bc th, table.ba-bc td {
  padding: 11px 10px; text-align: center;
  border-bottom: 1px solid var(--ba-line);
}
table.ba-bc thead th {
  background: var(--ba-brown); color: #fff;
  font-weight: 700; font-size: 16px;
}
table.ba-bc tbody th {
  background: #fff; text-align: left;
  color: var(--ba-gray); font-weight: 700;
  font-size: 16px; width: 70px;
}
table.ba-bc .ba-bf { color: var(--ba-txt); }
table.ba-bc .ba-af { color: var(--ba-brown); font-weight: 700; }
table.ba-bc .ba-dl {
  color: var(--ba-orange); font-weight: 700;
  font-family: "Oswald", sans-serif;
  font-size: 18px;
}
table.ba-bc tbody tr:last-child td,
table.ba-bc tbody tr:last-child th { border-bottom: none; }

/* レーダーチャート */
.ba-radarwrap {
  background: #fff; border-radius: 10px;
  padding: 14px 8px 8px; text-align: center;
}
.ba-radar-legend {
  display: flex; gap: 18px; justify-content: center;
  font-size: 16px; margin-top: 6px; color: var(--ba-gray);
}
.ba-radar-legend span {
  display: inline-flex; align-items: center; gap: 6px;
}
.ba-radar-legend i {
  width: 14px; height: 3px; border-radius: 2px; display: inline-block;
}
.ba-radar-legend i.ba-b { background: #bcae9d; }
.ba-radar-legend i.ba-a { background: var(--ba-orange); }

/* FMSテーブル */
table.ba-fms {
  width: 100%; border-collapse: collapse;
  background: #fff; border-radius: 10px;
  overflow: hidden; font-size: 16px;
}
table.ba-fms th, table.ba-fms td {
  padding: 10px 8px; text-align: center;
  border-bottom: 1px solid var(--ba-line);
}
table.ba-fms thead th {
  background: var(--ba-brown); color: #fff;
  font-size: 16px; font-weight: 700;
}
table.ba-fms tbody th {
  text-align: left; font-weight: 500;
  color: var(--ba-txt); font-size: 16px;
}
table.ba-fms tbody tr:last-child td,
table.ba-fms tbody tr:last-child th { border-bottom: none; }

/* グレードバッジ */
.ba-grade {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 5px;
  font-family: "Oswald", sans-serif; font-weight: 700;
  font-size: 16px; color: #fff;
}
.ba-g-A { background: #2f6fdb; }
.ba-g-B { background: var(--ba-brown); }
.ba-g-C { background: #bcae9d; }
.ba-arrU { color: var(--ba-orange); font-weight: 700; font-size: 18px; }
.ba-arrE { color: #c3b6a6; font-size: 18px; }
.ba-fms-total td { background: var(--ba-cream); font-weight: 700; }
.ba-fms-total .ba-tt { font-family: "Oswald", sans-serif; }
.ba-badge-sc {
  /* 両方のバッジを同じ高さに揃える */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 4px 14px;
  border-radius: 6px;
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  vertical-align: middle;
  line-height: 1.2;
}
.ba-sc-before { background: var(--ba-gray); }
.ba-sc-after  { background: var(--ba-orange); }
/* FMS合計行のセルを縦中央揃え */
.ba-fms-total td {
  background: var(--ba-cream);
  font-weight: 700;
  vertical-align: middle;
}

/* コメントボックス */
.ba-mcomments {
  padding: 0 24px 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.ba-vc { border-radius: 12px; padding: 18px 18px 16px; position: relative; }
.ba-vc.ba-client  { background: #fff; border: 1px solid var(--ba-line); }
.ba-vc.ba-trainer { background: var(--ba-brown); }
.ba-vc .ba-vhead  { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ba-vc .ba-avt {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ba-vc.ba-client  .ba-avt { background: var(--ba-cream); }
.ba-vc.ba-trainer .ba-avt { background: var(--ba-orange); }
.ba-vc .ba-avt svg { width: 22px; height: 22px; }
/* 画像アイコン用スタイル */
.ba-vc .ba-avt.ba-avt-img {
  background: none;  /* 背景色をなくす */
  padding: 0;
  overflow: hidden;
}
.ba-vc .ba-avt.ba-avt-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.ba-vc .ba-vrole { font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.ba-vc.ba-client  .ba-vrole { color: var(--ba-gray); }
.ba-vc.ba-trainer .ba-vrole { color: #cdb9a6; }
.ba-vc .ba-vname  { font-size: 18px; font-weight: 900; line-height: 1.3; margin-top: 2px; }
.ba-vc.ba-client  .ba-vname  { color: var(--ba-brown); }
.ba-vc.ba-trainer .ba-vname  { color: #fff; }
.ba-vc .ba-vtxt   { font-size: 16px; line-height: 1.85; position: relative; }
.ba-vc.ba-client  .ba-vtxt   { color: var(--ba-txt); }
.ba-vc.ba-trainer .ba-vtxt   { color: #efe5da; }
.ba-vc .ba-quote  {
  position: absolute; top: 12px; right: 14px;
  font-family: "Oswald", sans-serif; font-size: 50px;
  line-height: 1; opacity: .10; font-weight: 700;
}
.ba-vc.ba-client  .ba-quote  { color: var(--ba-orange); }
.ba-vc.ba-trainer .ba-quote  { color: #fff; }

/* モーダルフッター（下角丸も適用） */
.ba-mfoot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px 20px;
  border-top: 2px solid var(--ba-cream);
  background: var(--ba-white);
  border-radius: 0 0 18px 18px;
}
.ba-mfoot .ba-pn { display: flex; gap: 10px; }
.ba-mfoot .ba-pn button {
  border: 2px solid var(--ba-orange); background: #fff;
  color: var(--ba-orange); padding: 10px 22px;
  border-radius: 999px; font-weight: 700;
  font-size: 16px; cursor: pointer; transition: .2s;
}
.ba-mfoot .ba-pn button:hover { background: var(--ba-orange); color: #fff; }
.ba-mfoot .ba-idx {
  font-family: "Oswald", sans-serif;
  color: var(--ba-gray); font-size: 17px; letter-spacing: .1em;
}

/* ============================================================
   レスポンシブ
   ============================================================ */

/* タブレット（幅1200px以下） */
@media (max-width: 1200px) {
  /* ページ: カードを1カラムに（早期切り替え） */
  .ba-grid { grid-template-columns: 1fr; }
  .ba-wrap { padding: 0 20px; }
  .ba-header-box { padding: 24px 20px 20px; margin: 0 auto 32px; }
  .ba-sec .ba-heading { font-size: clamp(22px, 5vw, 25px); }

  /* ポップアップ: 左右矢印のスペースを縮小 */
  .ba-ov { padding: 16px 72px 48px; }
  .ba-ov-arrow-prev { left: 8px; }
  .ba-ov-arrow-next { right: 8px; }

  /* ポップアップ本文: 1カラムに */
  .ba-mbody { grid-template-columns: 1fr; gap: 16px; }
  .ba-mcomments { grid-template-columns: 1fr; }
}

/* ページの早期コンパクト化（768px以下） */
@media (max-width: 768px) {
  .ba-sec { padding: 40px 0 160px; }
  .ba-wrap { padding: 0 14px; }
  .ba-header-box { padding: 20px 16px 16px; margin: 0 auto 28px; border-radius: 12px; }
  .ba-sec .ba-heading { font-size: clamp(20px, 5.5vw, 25px); }
  .ba-lead { font-size: 16px; }
  .ba-section-title { font-size: 17px; padding: 14px 28px; }
  .ba-pill { font-size: 16px; padding: 5px 14px; }
  /* カード内フォント */
  .ba-cname h3 { font-size: 16px; }
  .ba-period { font-size: 16px; }
  .ba-blabel { font-size: 16px !important; }
  .ba-big { font-size: 24px; }
  .ba-sub, .ba-fms-arrow { font-size: 16px !important; }
  .ba-mini-row .ba-m .ba-ml { font-size: 16px !important; }
  .ba-mini-row .ba-m .ba-mv { font-size: 16px !important; white-space: normal; }
  /* 矢印バッジ */
  .ba-months-badge { width: 95px; height: 56px; }
  .ba-months-badge .ba-months-num { font-size: 20px; }
  .ba-months-badge .ba-months-label { font-size: 14px; }
  .ba-months-badge .ba-months-inner { white-space: nowrap; gap: 2px; }
  .ba-weight-badge { font-size: 16px; padding: 4px 8px; }
}

/* ポップアップヘッダーを縦積みに切り替え（850px以下）
   レイアウト：[氏名・期間 | ×ボタン] 上段
              [バッジ群全幅]     下段 */
@media (max-width: 850px) {
  .ba-mhead {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 8px;
    padding: 12px 14px;
    align-items: start;
  }
  .ba-mhead-left {
    grid-column: 1;
    grid-row: 1;
    flex: none;
    min-width: 0;
    overflow: hidden;
  }
  .ba-mname {
    font-size: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ba-mperiod {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ba-close {
    grid-column: 2;
    grid-row: 1;
    flex-shrink: 0;
    margin-left: 0;
    align-self: start;
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 18px;
  }
  .ba-msummary {
    grid-column: 1 / 3;
    grid-row: 2;
    flex: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin-left: 0;
  }
  .ba-msummary-item {
    padding: 4px 12px;
    min-width: 0;
  }
  .ba-msummary-item .ba-msi-label { font-size: 14px; }
  .ba-msummary-item .ba-msi-val { font-size: 16px; }
}

/* スマホ（600px以下）— ポップアップ関連のみ */
@media (max-width: 600px) {
  /* ポップアップ: 左右矢印を非表示、余白を最小化 */
  .ba-ov { padding: 10px; }
  .ba-ov.ba-on .ba-ov-arrow { display: none; }
  /* max-heightはオーバーレイスクロール方式のため不要 */

  /* ポップアップヘッダー: 600px以下ではバッジを小さく（768pxのgrid構造は維持） */
  .ba-mname { font-size: 15px; }
  .ba-mperiod { font-size: 15px; }
  .ba-msummary-item {
    padding: 3px 7px;
    min-width: 0;
  }
  .ba-msummary-item .ba-msi-label { font-size: 14px; }
  .ba-msummary-item .ba-msi-val { font-size: 16px; }
  .ba-close {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 18px;
  }

  /* ポップアップ本文 */
  .ba-mbody { padding: 14px 14px; grid-template-columns: 1fr; gap: 14px; }
  .ba-mcomments { padding: 0 14px 14px; grid-template-columns: 1fr; }
  /* 写真エリアを大きく表示 */
  .ba-mphotos .ba-mc { height: 300px; }
  .ba-photo-arrow svg { width: 30px; height: 30px; }
  .ba-photo-arrow { width: 30px; }
  table.ba-bc { font-size: 16px; }
  table.ba-bc thead th { font-size: 14px; }
  table.ba-bc tbody th { font-size: 14px; width: 52px; }
  table.ba-fms { font-size: 14px; }
  table.ba-fms thead th { font-size: 14px; }
  table.ba-fms tbody th { font-size: 14px; }
  .ba-grade { width: 24px; height: 24px; font-size: 14px; }
  .ba-badge-sc { font-size: 14px; padding: 3px 8px; }
  .ba-mfoot { padding: 12px 14px 16px; flex-wrap: wrap; gap: 8px; }
  .ba-mfoot .ba-pn button { font-size: 14px; padding: 8px 14px; }
  .ba-mfoot .ba-idx { font-size: 14px; }
  .ba-vc .ba-vrole { font-size: 14px; }
  .ba-vc .ba-vname { font-size: 16px; }
  .ba-vc .ba-vtxt { font-size: 14px; }
}

/* ポップアップヘッダーを縦積みに切り替え（520px以下）
   ─ 600px以下のブロックの後に置くことで確実に上書きする
   レイアウト：[氏名・期間 | ×ボタン] 上段
              [バッジ群全幅]     下段 */
@media (max-width: 520px) {
  /* gridで確実に2行構造にする */
  .ba-mhead {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 8px 8px;
    padding: 12px 12px;
    align-items: start;
  }
  /* 上段左：氏名・期間 */
  .ba-mhead-left {
    grid-column: 1;
    grid-row: 1;
    flex: none;
    min-width: 0;
    overflow: hidden;
  }
  .ba-mname {
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ba-mperiod {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  /* 上段右：×ボタン */
  .ba-close {
    grid-column: 2;
    grid-row: 1;
    flex-shrink: 0;
    margin-left: 0;
    align-self: start;
    width: 30px;
    height: 30px;
    min-width: 30px;
    font-size: 17px;
  }
  /* 下段：バッジ群全幅 */
  .ba-msummary {
    grid-column: 1 / 3;
    grid-row: 2;
    flex: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin-left: 0;
  }
  .ba-msummary-item {
    padding: 4px 10px;
    min-width: 0;
  }
  .ba-msummary-item .ba-msi-label { font-size: 14px; }
  .ba-msummary-item .ba-msi-val { font-size: 16px; }

  /* ミニ指標行：縦並び（ラベル左・数値右） */
  .ba-mini-row {
    flex-direction: column;
    gap: 4px;
  }
  .ba-mini-row .ba-m {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border-right: none;
    border-bottom: 1px solid var(--ba-line);
    text-align: left;
  }
  .ba-mini-row .ba-m:last-child { border-bottom: none; }
  .ba-mini-row .ba-m .ba-ml { font-size: 16px !important; margin-bottom: 0; flex-shrink: 0; }
  .ba-mini-row .ba-m .ba-mv { font-size: 16px !important; white-space: nowrap; }
}

/* ============================================================
   375px対応（iPhone SE等の最小幅）
   ============================================================ */
@media (max-width: 430px) {
  /* 写真エリアの高さを増やしてBEFORE/AFTERタグが頭に被らないようにする */
  .ba-ph {
    height: 360px;  /* 頭上の余白を十分に確保 */
  }
  /* 画像を下にシフトして頭上に余白を作る
     top値を大きくするほど画像が下にシフトされる */
  .ba-ph-img {
    position: absolute;
    top: 40px;    /* 頭上に40pxの余白 */
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100% - 40px);
    object-fit: cover;
    object-position: top center;
  }
  /* BEFORE/AFTERタグを少し下に移動 */
  .ba-ph .ba-tag {
    top: 10px;
  }

  /* 矢印バッジを小さくして折り返しを防ぐ */
  .ba-months-badge {
    width: 90px;
    height: 48px;
  }
  .ba-months-badge .ba-months-num { font-size: 18px; }
  .ba-months-badge .ba-months-label { font-size: 15px; }
  .ba-months-badge .ba-months-inner {
    gap: 1px;
    padding-right: 14px;
    white-space: nowrap;
  }
  /* 体重変化バッジも小さく */
  .ba-weight-badge { font-size: 15px; padding: 3px 7px; }

  /* カード本文の余白を詰める */
  .ba-cbody { padding: 15px 12px 16px; }

  /* 体組成/FMSブロックのフォントを小さく */
  .ba-blabel { font-size: 15px !important; }
  .ba-big { font-size: 22px; }
  .ba-big .ba-u { font-size: 15px; }
  .ba-sub, .ba-fms-arrow { font-size: 15px !important; }

  /* ミニ指標行：3列→縦積みに変更して折り返しを防ぐ */
  .ba-mini-row {
    flex-direction: column;
    gap: 4px;
  }
  .ba-mini-row .ba-m {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 0;
    border-right: none;
    border-bottom: 1px solid var(--ba-line);
    text-align: left;
  }
  .ba-mini-row .ba-m:last-child {
    border-bottom: none;
  }
  .ba-mini-row .ba-m .ba-ml {
    font-size: 15px !important;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .ba-mini-row .ba-m .ba-mv {
    font-size: 15px !important;
    white-space: nowrap;
  }

  /* 氏名・期間の折り返し */
  .ba-cname h3 { font-size: 15px; }
  .ba-period { font-size: 15px; white-space: normal; }

  /* カードグリッドの余白 */
  .ba-wrap { padding: 0 10px; }
}

/* ============================================================
   横スワイプスライダーモード（別ページ用）
   .ba-grid に .ba-grid--slider クラスを追加すると有効になる
   1200px以下でカードを横並びのまま横スクロール可能にする
   ============================================================ */
@media (max-width: 1200px) {
  .ba-grid--slider {
    /* gridを解除してflexの横並びに変更 */
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 16px;  /* スクロールバー分の余白 */
    /* スクロールバーを細く・目立たなくする */
    scrollbar-width: thin;
    scrollbar-color: var(--ba-orange) var(--ba-cream);
  }
  .ba-grid--slider::-webkit-scrollbar {
    height: 6px;
  }
  .ba-grid--slider::-webkit-scrollbar-track {
    background: var(--ba-cream);
    border-radius: 3px;
  }
  .ba-grid--slider::-webkit-scrollbar-thumb {
    background: var(--ba-orange);
    border-radius: 3px;
  }
  /* カードを固定幅にしてスナップさせる */
  .ba-grid--slider .ba-card {
    flex: 0 0 min(320px, 85vw);  /* 最大320px、画面の85%まで */
    max-width: min(320px, 85vw);
    margin: 0;
    scroll-snap-align: start;
  }
}

/* ============================================================
   「その他のビフォー・アフターを確認」ボタン（index.html用）
   ============================================================ */
.ba-more-wrap {
  text-align: center;
  margin-top: 36px;
}
.ba-more-btn {
  display: inline-block;
  background: var(--ba-orange);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  letter-spacing: .06em;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 14px rgba(233,83,18,.30);
}
.ba-more-btn:hover {
  opacity: .85;
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .ba-more-btn {
    font-size: 15px;
    padding: 12px 28px;
  }
}

/* ============================================================
   カルーセル表示時（1000px以下）のカード内コンテンツ調整
   ─ デュアルブロックを縦並び、ミニ行も縦並びにして切れを防ぐ
   ============================================================ */
@media (max-width: 1000px) {
  /* カード本文の余白を詰める */
  .ba-cbody {
    padding: 12px 12px 14px;
  }

  /* デュアルブロック：2列→縦並び（1列） */
  .ba-dual {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  /* ブロックは通常の縦積み（ラベル上・数値下） */
  .ba-block {
    padding: 10px 12px 8px;
    display: block;
  }
  .ba-block-right {
    display: block;
  }
  .ba-block .ba-blabel {
    font-size: 15px !important;
    margin-bottom: 4px;
  }
  .ba-big {
    font-size: 22px;
    margin-top: 0;
    white-space: nowrap;
  }
  .ba-big .ba-u {
    font-size: 14px;
  }
  .ba-sub,
  .ba-fms-arrow {
    font-size: 14px !important;
    margin-top: 2px;
    white-space: nowrap;
  }

  /* ミニ指標行：縦並び（ラベル左・数値左） */
  .ba-mini-row {
    flex-direction: column;
    gap: 0;
  }
  .ba-mini-row .ba-m {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 5px 0;
    border-right: none;
    border-bottom: 1px solid var(--ba-line);
    text-align: left;
  }
  .ba-mini-row .ba-m:last-child {
    border-bottom: none;
  }
  .ba-mini-row .ba-m .ba-ml {
    font-size: 15px !important;
    margin-bottom: 0;
    flex-shrink: 0;
    color: var(--ba-gray);
  }
  .ba-mini-row .ba-m .ba-mv {
    font-size: 15px !important;
    white-space: nowrap;
    font-weight: 700;
    color: var(--ba-brown);
  }
}
