/* =========================================================
 * 総合トップ (/general2) — Group 2071 カンプ再現
 * 保険トップ（assets/general/general.css）の意匠・命名を踏襲し、
 * すべて .gen2 配下にスコープしてテーマ/プラグインCSSの干渉を避ける
 * ========================================================= */

.gen2 *,
.gen2 *::before,
.gen2 *::after { box-sizing: border-box; }

/* 横スクロール禁止（clip は overflow:hidden と違い sticky ヘッダーを壊さない） */
html, body { overflow-x: clip; }

.gen2 {
  --serif: "Yu Mincho Medium", "YuMincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --ink: #2b2b2b;
  --ink-soft: #444;
  --line: #e2e2e2;
  --green: #86a95f;       /* 日付・見出しアクセント（保険と同値） */
  --green-link: #7ba05a;  /* リンク */
  --bar-green: #b4d898;   /* 保険診療のアクセントバー（カンプ実測） */
  --bar-gold: #bca780;    /* 自由診療のアクセントバー（カンプ実測） */
  --wrap: 1180px; /* 美容トップ .bt-container と同基準 */
  --gen-h-sp: 62px; /* SPヘッダー高（美容 --bth-h-sp と同値） */

  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif JP", serif; /* 本文は明朝体で統一（ナビ・ボタン・フォーム等は個別にゴシック指定あり） */
  font-weight: 500; /* 理事長挨拶文と同じミディアム。400だと明朝が細く視認性が落ちる */
  letter-spacing: .02em;
  font-size: 16px;
  line-height: 1.9;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.gen2 img { max-width: 100%; height: auto; display: block; }
.gen2 a { color: inherit; text-decoration: none; }

/* 美容トップ .bt-container と同じ基準（width:90% / max-width:1180px） */
.gen2__wrap {
  width: 90%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0;
}

/* セクション見出し（明朝・左寄せ／48px＝保険・美容と同基準） */
.gen2-h2 {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 48px;
  letter-spacing: .04em;
  line-height: 1.3;
  margin: 0 0 48px;
  color: #1f1f1f;
}
.gen2-h2--center { text-align: center; }

/* 汎用ピルボタン（白地・黒枠・矢印／保険 .gen-pill と同意匠） */
.gen2-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 264px;
  padding: 12px 44px; /* 縦を詰めて細い横長の印象に */
  border: 1.5px solid #1f1f1f;
  border-radius: 999px;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #1f1f1f;
  transition: background .2s, color .2s;
}
.gen2-pill:hover { background: #1f1f1f; color: #fff; }
.gen2-pill__arrow { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 0; width: 12px; height: 12px; }
.gen2-pill__arrow::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.gen2-pill--sm { min-width: 0; padding: 11px 40px; font-size: 13px; }
/* 温泉サイトへのボタン：文言が長いので横幅を広げ、矢印の余白を確保 */
.gen2-pill--onsen { min-width: 0; padding-left: 40px; padding-right: 56px; }
.gen2-pill--sm .gen2-pill__arrow { position: static; transform: none; margin-left: 12px; }
.gen2-center { text-align: center; }

/* =========================================================
 * ヘッダー（保険トップ .gen-header と同意匠）
 * ========================================================= */
.gen2-header {
  --gen-hover: #b99e74; /* 美容トップのゴールドアクセント */
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  height: 84px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-family: "Shippori Mincho", "Yu Mincho", "YuMincho", var(--serif);
}
.gen2-header__inner {
  width: 100%;
  margin: 0;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 22px;
}
.gen2-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: auto;
  text-decoration: none;
}
.gen2-header .gen2-brand__logo { display: block; height: 54px; width: auto; max-width: none; object-fit: contain; }

.gen2-gnav { margin-left: auto; display: flex; align-items: center; gap: 12px; height: 100%; }
.gen2-gnav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; height: 100%; }
.gen2-gnav__list > li { position: relative; display: flex; align-items: center; height: 84px; }
.gen2-gnav__list a {
  color: #1a1a1a;
  text-decoration: none;
  font-family: "Noto Sans JP", var(--sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: .07em;
  white-space: nowrap;
  line-height: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 16px;
  transition: color .3s;
  position: relative;
}
.gen2-gnav__list a:hover { color: var(--gen-hover); }
.gen2-gnav__list > li > a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 0;
  height: 2px; background: var(--gen-hover);
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.gen2-gnav__list > li > a:hover::after { transform: scaleX(1); transform-origin: left; }

/* リクルート用：ヘッダー内「応募はこちら」ボタン（gen2意匠の黒ピル） */
.gen2-gnav__apply {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 10px 24px;
  margin-left: 4px;
  border: 1.5px solid #1f1f1f;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff !important;
  font-family: "Noto Sans JP", var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
  transition: background .25s, color .25s;
}
.gen2-gnav__apply:hover { background: #fff; color: #1f1f1f !important; }

/* ヘッダー内 Instagram アイコン（カンプ準拠） */
.gen2-gnav__insta {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
  color: #1a1a1a; transition: color .3s;
}
.gen2-gnav__insta svg { width: 26px; height: 26px; }
.gen2-gnav__insta:hover { color: var(--gen-hover); }

/* LANGUAGE ボタン（美容トップ header-beauty-top.php の .bth-lang-* を踏襲） */
.gen2 .bth-lang-wrap { position: relative; height: 100%; display: flex; align-items: center; flex-shrink: 0; }
.gen2 .bth-lang-btn-pc {
  display: flex; align-items: center; gap: 8px; padding: 10px 18px; height: auto;
  background: #f0eeea; border: none; border-radius: 5px; cursor: pointer;
  font-family: "Noto Sans JP", var(--sans);
  font-size: 15px; font-weight: 500; letter-spacing: .1em; color: #1a1a1a;
  white-space: nowrap; transition: background .25s, color .25s;
}
.gen2 .bth-lang-btn-pc:hover { background: #e6e0d8; color: var(--gen-hover); }
.gen2 .bth-lang-wrap.is-open .bth-lang-btn-pc { background: #e6e0d8; color: var(--gen-hover); }
.gen2 .bth-nav__arrow { font-size: 9px; color: #999; transition: transform .3s; margin-left: 1px; display: inline-block; }
.gen2 .bth-lang-wrap.is-open .bth-lang-btn-pc .bth-nav__arrow { transform: rotate(180deg); color: var(--gen-hover); }
.gen2 .bth-lang-menu {
  position: absolute; top: 100%; right: 0; background: #fff; border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .18); padding: 6px;
  display: grid; grid-template-columns: 1fr; gap: 1px; width: 220px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .22s ease, visibility 0s linear .22s; z-index: 100;
}
.gen2 .bth-lang-wrap.is-open .bth-lang-menu { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .22s ease; }
.gen2 .bth-lang-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 14px;
  font-family: "Noto Sans JP", var(--sans);
  font-size: 14px; font-weight: 500; letter-spacing: .04em; color: #1a1a1a;
  text-align: left; background: none; border: none; border-radius: 3px; cursor: pointer;
  transition: background .2s, color .2s; white-space: nowrap;
}
.gen2 .bth-lang-item:hover { background: #faf7f2; color: var(--gen-hover); }
.gen2 .bth-lang-item .fi { width: 24px; height: 18px; flex-shrink: 0; border-radius: 2px; background-size: cover; font-size: 18px; }
.gen2 .bth-lang-label { flex: 1; }
/* GLTプラグインの隠し要素 */
#google_translate_element { position: absolute !important; left: -9999px !important; top: 0 !important; height: 0 !important; overflow: hidden !important; opacity: 0 !important; pointer-events: none !important; }

/* =========================================================
 * ヒーロー
 * ========================================================= */
.gen2-hero { position: relative; width: 100%; overflow: hidden; }
.gen2-hero__slides { position: relative; width: 100%; aspect-ratio: 1678 / 769; }
.gen2-hero__slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease;
}
.gen2-hero__slide.is-active { opacity: 1; }
.gen2-hero__slide img { width: 100%; height: 100%; object-fit: cover; }

/* 開院インフォパネル（カンプ：右下・半透明ダークの帯＋白ボックス2つ）
   ウィンドウ縮小時はデザインを保ったまま比率で縮小する：
   フォント・余白は min(設計px, 設計px÷1680×100vw) でビューポートに追従（1680px 超では設計値で固定） */
.gen2-hero__panel {
  position: absolute;
  right: 6.5%;
  bottom: 11%;
  width: 40%;
  max-width: 660px;
  z-index: 5;
}
/* 帯：#615745ベースのガラス風（すりガラスのぼかし＋わずかな透過＋上辺ハイライト）。
   白ブロックと密着させる（間に写真を見せない）
   日付は中央寄せの自然な等間隔のまま大きく表示する */
.gen2-hero__open {
  margin: 0;
  padding: min(18px, 1.07vw) min(10px, .6vw) min(20px, 1.19vw);
  background: rgba(110, 90, 62, .62); /* #615745 より少し茶色寄り */
  -webkit-backdrop-filter: blur(12px) saturate(1.05);
  backdrop-filter: blur(12px) saturate(1.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1;
  font-size: min(38px, 2.26vw);
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  justify-content: center;
}
.gen2-hero__open-y { font-size: 1.15em; }
.gen2-hero__open-num { font-size: 2em; }
.gen2-hero__open-unit { font-size: 1em; }
.gen2-hero__open-txt { font-size: 1.7em; margin-left: .42em; }
/* 白ブロック：帯に密着した1枚の連続背景。左＝角丸枠のアクセス、右＝所在地 */
.gen2-hero__boxes {
  display: flex;
  align-items: center;
  gap: min(34px, 2.02vw);
  background: rgba(255, 255, 255, .96);
  padding: min(20px, 1.19vw) min(30px, 1.79vw);
}
.gen2-hero__box {
  margin: 0;
  color: #1f1f1f;
  font-family: "Noto Serif JP", serif;
}
/* 左：角丸枠（rは控えめ）。2行はフォントサイズが違っても同じ幅になるよう両端揃え（Bold） */
.gen2-hero__box--access { flex: 0 0 auto; }
.gen2-hero__box-frame {
  display: block;
  border: 2px solid #1f1f1f;
  border-radius: min(12px, .71vw);
  padding: min(14px, .83vw) min(26px, 1.55vw) min(16px, .95vw);
}
.gen2-hero__box-main {
  display: block;
  font-size: min(29px, 1.73vw);
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
}
.gen2-hero__box-sub {
  display: block;
  font-size: min(16.5px, .98vw);
  font-weight: 700;
  line-height: 1.5;
  margin-top: 3px;
  white-space: nowrap;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
}
/* 右：所在地。太字・2行を同じ幅に揃える（両端揃え） */
.gen2-hero__box--place { flex: 1 1 auto; }
.gen2-hero__box-line {
  display: block;
  font-size: min(29px, 1.73vw);
  font-weight: 700;
  line-height: 1.55;
  white-space: nowrap;
  text-align: justify;
  text-align-last: justify;
  text-justify: inter-character;
}

/* =========================================================
 * SPサイトリンク（ヒーロー直下：保険診療／自由診療 2カード・カンプ準拠）
 * PCでは非表示。画像＋明朝タイトル＋サブ＋丸枠ボタンの縦積みカード
 * ========================================================= */
.gen2-sitelinks { display: none; }
@media (max-width: 767px) {
  .gen2-sitelinks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 10px 0;
  }
  .gen2-sitelinks__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #d9d9d9;
    background: #fff;
    text-align: center;
  }
  .gen2-sitelinks__card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
  .gen2-sitelinks__title {
    font-family: "Noto Serif JP", serif;
    font-weight: 600;
    font-size: clamp(19px, 5.9vw, 25px);
    letter-spacing: .08em;
    line-height: 1.3;
    color: #1f1f1f;
    margin-top: 14px;
  }
  .gen2-sitelinks__sub {
    font-family: "Noto Serif JP", serif;
    font-weight: 500;
    font-size: clamp(10.5px, 3.2vw, 13.5px);
    letter-spacing: 0;
    line-height: 1.5;
    color: #1f1f1f;
    margin-top: 2px;
    white-space: nowrap;
  }
  .gen2-sitelinks__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #1f1f1f;
    border-radius: 999px;
    background: #fff;
    padding: 8px 18px;
    margin: 12px 6px 18px;
    font-family: var(--sans);
    font-size: clamp(11px, 3.2vw, 13px);
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    color: #1f1f1f;
    white-space: nowrap;
  }
}

/* 右端フローティング予約ボタン（保険トップ bt-sidecta を踏襲・3ボタン） */
.gen2 .bt-sidecta {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.gen2 .bt-sidecta__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 13px;
  width: 100px;
  height: 100px;
  color: #fff !important;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: .08em;
  cursor: pointer;
  transition: filter .3s ease;
  text-decoration: none;
  border: none;
  text-align: center;
}
.gen2 .bt-sidecta__btn svg { width: 33px; height: 33px; flex-shrink: 0; overflow: visible; }
.gen2 .bt-sidecta__btn:hover { filter: brightness(.9); }
.gen2 .bt-sidecta__btn--line { background: #62A87C; border-radius: 8px 0 0 0; }
.gen2 .bt-sidecta__btn--web  { background: #6276A8; }
.gen2 .bt-sidecta__btn--fore { background: #A762A8; border-radius: 0 0 0 8px; }
@media (max-width: 980px) { .gen2 .bt-sidecta { display: none; } }

/* SP下部固定CTAバー（保険トップと同意匠・3ボタン） */
.gen2 .bt-bottombar { display: none; }
@media (max-width: 980px) {
  .gen2 .bt-bottombar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    box-shadow: 0 -6px 18px -8px rgba(0, 0, 0, .3);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .gen2 .bt-bottombar__btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 1vw, 6px);
    min-width: 0;
    min-height: clamp(54px, 14vw, 62px);
    padding: 6px clamp(2px, 1.2vw, 6px);
    color: #fff;
    font-family: var(--sans);
    font-size: clamp(10.5px, 2.85vw, 13px);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: normal;
    font-feature-settings: "palt";
    white-space: nowrap;
    border: 0;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, .18);
    text-decoration: none;
    text-align: center;
    overflow: hidden;
  }
  .gen2 .bt-bottombar__btn:last-child { border-right: 0; }
  .gen2 .bt-bottombar__btn svg { width: clamp(17px, 4.5vw, 22px); height: clamp(17px, 4.5vw, 22px); flex-shrink: 0; }
  .gen2 .bt-bottombar__btn span {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    white-space: nowrap;
    word-break: keep-all;
    overflow-wrap: normal;
    overflow: hidden;
    line-height: 1.35; /* 1.15だと英字ラベル(Foreigner)のgの下端がoverflow:hiddenで見切れる */
    font-weight: 700;
    font-size: clamp(10px, 3vw, 14px);
  }
  .gen2 .bt-bottombar__btn--line { background: #62A87C; }
  .gen2 .bt-bottombar__btn--web  { background: #6276A8; }
  .gen2 .bt-bottombar__btn--fore { background: #A762A8; }
}

/* =========================================================
 * お知らせ
 * ========================================================= */
.gen2-news { padding: 45px 0 80px; } /* 当院の紹介との間隔をヒーロー→紹介と揃える（紹介bottom45+news top45=90） */
.gen2-news__list { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.gen2-news__item {
  display: flex;
  align-items: baseline;
  gap: 40px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
}
.gen2-news__date { color: var(--green); font-weight: 600; letter-spacing: .08em; font-size: 15px; flex: 0 0 auto; }
.gen2-news__title { font-size: 16px; color: #333; }
.gen2-news__caption { max-width: 900px; margin: 30px auto 18px; color: var(--green-link); font-size: 14px; }
.gen2-news__flyers {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}
.gen2-news__flyer { padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; }
.gen2-news__flyer img { width: 100%; box-shadow: 0 2px 14px rgba(0,0,0,.08); }
.gen2-news__btns { display: flex; justify-content: center; gap: 30px; margin-top: 60px; flex-wrap: wrap; }

/* チラシ拡大モーダル */
.gen2-zoom {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, .75);
  display: none;
  align-items: center; justify-content: center;
  padding: 4vh 4vw;
}
.gen2-zoom.is-open { display: flex; }
.gen2-zoom__img { max-width: 100%; max-height: 92vh; width: auto; height: auto; box-shadow: 0 10px 40px rgba(0,0,0,.5); cursor: zoom-out; }
.gen2-zoom__close {
  position: absolute; top: 18px; right: 22px;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.92); color: #1f1f1f;
  font-size: 28px; line-height: 1; cursor: pointer;
}

/* =========================================================
 * キャッチコピー
 * ========================================================= */
.gen2-catch { padding: 80px 0 110px; }
.gen2-catch__text {
  margin: 0;
  text-align: center;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: clamp(22px, 1.9vw, 32px); /* 中間ウィンドウ幅でも1行が収まるよう可変 */
  line-height: 2;
  letter-spacing: .06em;
  color: #1f1f1f;
}

/* =========================================================
 * 保険診療／自由診療 2カラム（全幅・#ccc の罫線で分割）
 * ========================================================= */
.gen2-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}
/* カラム全体をクリック可能に（data-split-link → 新規タブで各サイトへ）
   ホバーはカラム自体がはっきり反応：保険＝グリーン系、自由＝ゴールド系 */
.gen2-split__col { padding: 96px 0 90px; display: flex; flex-direction: column; cursor: pointer; transition: background-color .3s ease; }
.gen2-split__col--hoken:hover { background: #e9f2dd; }
.gen2-split__col--jiyu:hover { background: #f3ead8; }
.gen2-split__col--hoken { border-right: 1px solid #ccc; }
.gen2-split__head { text-align: center; padding: 0 6%; }
.gen2-split__bar { display: block; width: 78px; height: 3px; margin: 0 auto 26px; }
.gen2-split__bar--green { background: var(--bar-green); }
.gen2-split__bar--gold { background: var(--bar-gold); }
.gen2-split__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: clamp(30px, 2.62vw, 44px);
  letter-spacing: .1em;
  line-height: 1.3;
  margin: 0 0 10px;
  color: #1f1f1f;
}
.gen2-split__sub {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: clamp(19px, 1.49vw, 25px);
  letter-spacing: .06em;
  margin: 0 0 26px;
  color: #1f1f1f;
}
.gen2-split__desc { font-size: 16px; line-height: 2; color: #333; margin: 0 0 44px; text-wrap: pretty; }
/* 中間ウィンドウ幅ではPC専用改行を解除して自然に折り返す（「ト。」だけ落ちる等の崩れ防止） */
@media (min-width: 768px) and (max-width: 1480px) {
  .gen2-split__desc br.pc-only { display: none; }
}
.gen2-split__img { width: 100%; aspect-ratio: 840 / 480; object-fit: cover; }
.gen2-split__body { padding: 56px 7% 0; display: flex; flex-direction: column; flex: 1; }

/* タグボタン（薄グレー枠・明朝） */
.gen2-taglist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 30px;
}
.gen2-taglist__wide { grid-column: 1 / -1; justify-self: center; width: calc(50% + 60px); min-width: 62%; }
/* 四角枠はホバーで反応させない（カラム全体のホバーのみ） */
.gen2-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 74px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  background: #fff;
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .08em;
  color: #1f1f1f;
  text-align: center;
  line-height: 1.5;
}
.gen2-split__btn { text-align: center; margin-top: auto; padding-top: 64px; }
/* 「〜サイトへ」ボタン（.gen2-pill と同意匠の白地・黒枠・角丸） */
.gen2-split__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 264px;
  padding: 15px 32px;
  border: 1.5px solid #1f1f1f;
  border-radius: 999px;
  background: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #1f1f1f;
  transition: background .2s, color .2s;
}
.gen2-split__link:hover { background: #1f1f1f; color: #fff; }
.gen2-split__link-arrow {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

/* =========================================================
 * 外国人対応 2カード + 温泉コラボ
 * ========================================================= */
.gen2-foreign { padding: 96px 0; }
.gen2-foreign__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.gen2-fcard {
  border: 1px solid var(--line);
  padding: 52px 48px 48px;
  display: flex;
  flex-direction: column;
}
.gen2-fcard__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 26px;
  letter-spacing: .04em;
  text-align: center;
  margin: 0 0 30px;
  color: #1f1f1f;
}
.gen2-fcard__row { display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: start; margin-bottom: 36px; }
.gen2-fcard__text { font-size: 16px; line-height: 2.15; letter-spacing: .02em; color: #333; margin: 0; text-align: justify; }
.gen2-fcard__img { width: 168px; aspect-ratio: 2 / 3; object-fit: cover; }
.gen2-fcard__btn { margin-top: auto; text-align: left; }

/* 温泉コラボ（保険トップ .gen-onsen と同意匠） */
.gen2-onsen {
  border: 1px solid var(--line);
  margin-top: 40px;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: stretch;
}
.gen2-onsen__col { display: flex; flex-direction: column; }
.gen2-onsen__lockup { display: flex; align-items: center; gap: 26px; margin-bottom: 28px; }
.gen2-onsen .gen2-onsen__logo { height: 52px; width: auto; max-width: none; object-fit: contain; }
.gen2-onsen__x { color: #92AFB8; font-size: 30px; font-weight: 400; flex: 0 0 auto; }
.gen2-onsen__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500; font-size: 24px; letter-spacing: .03em; margin: 0 0 22px; color: #1f1f1f;
}
.gen2-onsen__text { font-family: "Noto Serif JP", serif; font-weight: 500; font-size: 15px; line-height: 1.95; color: #3a3a3a; margin: 0 0 34px; }
.gen2-onsen__btn { margin-top: auto; }
.gen2-onsen__media { display: flex; flex-direction: column; }
.gen2-onsen__media img { width: 100%; flex: 1 1 auto; min-height: 280px; object-fit: cover; }

/* =========================================================
 * 当院の紹介
 * ========================================================= */
.gen2-about { padding: 90px 0 45px; } /* ヒーロー→紹介=90px、紹介→お知らせ=45+45=90pxで均等 */
.gen2-about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: start;
}
.gen2-about__lead {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: clamp(20px, 1.67vw, 28px);
  text-wrap: pretty;
  line-height: 1.75;
  letter-spacing: .03em;
  margin: 0 0 34px;
  color: #1f1f1f;
}
.gen2-about__text { font-size: 15px; line-height: 2.1; color: #444; margin: 0 0 24px; }
.gen2-about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gen2-about__btn { margin-top: 20px; }

/* =========================================================
 * 理事長・診療部長紹介（保険トップ .gen-director と同意匠）
 * ========================================================= */
.gen2-director { padding: 96px 0; }
.gen2-director__top {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 30px;
}
/* カンプはほぼ正方形の切り抜き（575×585）。元画像(1800×1080)は人物が右寄りのため
   object-position で人物を中央に寄せる */
.gen2-director__photo img { width: 100%; aspect-ratio: 575 / 585; object-fit: cover; object-position: 100% 50%; }
.gen2-director__msg p {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.82;
  letter-spacing: .02em;
  color: #222;
  margin: 0 0 1em;
}
.gen2-director__msg p:last-child { margin-bottom: 0; }
.gen2-director__name {
  display: flex; align-items: center; justify-content: center;
  margin: 34px 0 0;
}
.gen2-director__role { font-family: "Noto Serif JP", serif; font-weight: 400; font-size: 15px; letter-spacing: .08em; color: #333; flex: 0 0 auto; }
.gen2-director__namebox {
  display: flex; flex-direction: column; gap: 6px;
  border-left: 1px solid #c9c9c9;
  margin-left: 30px; padding-left: 30px;
}
.gen2-director__en { font-family: "Noto Serif JP", serif; font-weight: 600; font-size: 16px; letter-spacing: .18em; color: #1f1f1f; line-height: 1.2; }
.gen2-director__jp { font-family: "Noto Serif JP", serif; font-weight: 600; font-size: 29px; letter-spacing: .2em; color: #1f1f1f; line-height: 1.25; }
.gen2-director__cols {
  display: grid; grid-template-columns: 0.85fr 1fr; gap: 60px; margin-top: 80px;
}
.gen2-director__subhead {
  font-family: "Noto Serif JP", serif; font-weight: 600; font-size: 22px; margin: 0 0 26px; color: #1f1f1f;
}
.gen2-career { list-style: none; margin: 0; padding: 0; }
.gen2-career li {
  display: flex; gap: 34px; padding: 14px 4px; border-bottom: 1px solid #e0e0e0;
  font-family: "Noto Sans JP", var(--sans); font-weight: 500; font-size: 15px;
}
.gen2-career__year { color: var(--green); font-weight: 500; flex: 0 0 62px; }
.gen2-quals__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; align-items: start; }
.gen2-quals { list-style: none; margin: 0; padding: 0; }
.gen2-quals li { position: relative; padding-left: 20px; font-family: "Noto Sans JP", var(--sans); font-weight: 500; font-size: 15px; color: #333; line-height: 2; margin-bottom: 8px; }
.gen2-quals li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 9px; height: 9px; border-radius: 50%; background: #9cbf6f;
}

/* =========================================================
 * 院内紹介
 * ========================================================= */
.gen2-gallery { padding: 40px 0 96px; }
.gen2-room {
  display: grid;
  grid-template-columns: 755fr 425fr;
  gap: 66px;
  align-items: center;
  margin: 0 0 80px;
}
.gen2-room--reverse { grid-template-columns: 425fr 755fr; }
.gen2-room--reverse .gen2-room__media { order: 2; }
.gen2-room--reverse .gen2-room__body { order: 1; }
.gen2-room__media img { width: 100%; aspect-ratio: 755 / 470; object-fit: cover; }
.gen2-room__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 500;
  font-size: 32px;
  letter-spacing: .12em;
  margin: 0 0 18px;
  padding-bottom: 20px;
  border-bottom: 1px solid #444;
  color: #1f1f1f;
}
.gen2-room__text { font-size: 16px; line-height: 2.1; color: #333; margin: 24px 0 0; }

/* 全幅ギャラリー帯（無限マーキー：同一セット2つを translateX(-50%) でループ） */
.gen2-strip { width: 100%; overflow: hidden; margin: 0 0 80px; }
.gen2-strip__row {
  display: flex;
  width: max-content;
  animation: gen2Marquee 48s linear infinite; /* 右から左へ流れ続ける（ホバーでも停止しない） */
  will-change: transform;
}
.gen2-strip__set { display: flex; gap: 22px; padding-right: 22px; flex: 0 0 auto; }
.gen2-strip__set img {
  width: clamp(240px, 24.3vw, 408px);
  aspect-ratio: 408 / 295;
  object-fit: cover;
  flex: 0 0 auto;
}
@keyframes gen2Marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .gen2-strip__row { animation: none; }
}

/* =========================================================
 * インスタグラム（美容 #bt-root partial の上書き＝保険トップと同じ手法）
 * ========================================================= */
.gen2-insta-unit .bt-insta__item img { height: 100% !important; }
.gen2-insta-unit .bt-insta .bt-sec-title { text-align: left !important; margin: 0 0 48px !important; }
.gen2-insta-unit .bt-insta .bt-sec-title__sub {
  font-family: "Noto Serif JP", serif !important;
  font-weight: 500 !important;
  font-size: 48px !important;
  line-height: 1.3 !important;
  letter-spacing: .04em !important;
  color: #1f1f1f !important;
  margin: 0 !important;
  text-transform: none !important;
}
.gen2-insta-unit .bt-insta__more .bt-btn {
  position: relative !important;
  min-width: 240px !important;
  min-height: 0 !important;
  padding: 15px 44px !important;
  gap: 0 !important;
  border: 1.5px solid #1f1f1f !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #1f1f1f !important;
  font-family: "Noto Sans JP", sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .06em !important;
  transition: background .2s, color .2s !important;
}
.gen2-insta-unit .bt-insta__more .bt-btn:hover { background: #1f1f1f !important; color: #fff !important; box-shadow: none !important; }
.gen2-insta-unit .bt-insta__more .bt-btn::after {
  content: "" !important;
  position: absolute !important;
  right: 24px !important; left: auto !important;
  width: 8px !important; height: 8px !important;
  border: 0 !important;
  border-top: 1.5px solid currentColor !important;
  border-right: 1.5px solid currentColor !important;
  transform: rotate(45deg) !important;
  background: none !important;
}

/* パーシャル内蔵のSNS行（美容アカウント）は page-general2.php 側で出力から除去し、
   直後の .gen2-social（総合アカウント）で置き換える。
   ※ CSSの display:none で隠すとSVGグラデーション定義（同一ID）の最初の出現が
     非表示ツリーに入り、他のインスタ/Facebookアイコンが描画されなくなるため */

/* SNSアイコン行（カンプ：公式カラー6種を中央に等間隔） */
.gen2-social { display: flex; justify-content: center; align-items: center; gap: 82px; padding: 40px 0 30px; }
.gen2-social a { width: 60px; height: 60px; display: inline-block; transition: opacity .25s ease; }
.gen2-social a:hover { opacity: .75; }
.gen2-social svg { width: 100%; height: 100%; }

/* =========================================================
 * 採用情報
 * ========================================================= */
.gen2-recruit { padding: 96px 0; }
.gen2-recruit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 66px;
  align-items: stretch;
}
.gen2-recruit__lead {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: clamp(19px, 1.55vw, 26px);
  text-wrap: pretty;
  line-height: 1.75;
  letter-spacing: .04em;
  margin: 0 0 26px;
  color: #1f1f1f;
}
.gen2-recruit__text { font-size: 15px; line-height: 1.95; color: #444; margin: 0 0 18px; text-align: justify; }
.gen2-recruit__text:last-child { margin-bottom: 0; }
/* 両段とも：見出し〜本文／募集一覧〜詳しく見るが画像の縦幅に収まるよう、
   画像をテキスト列と同じ高さに引き伸ばす
   （テキスト側が行の高さを決め、画像は absolute で行いっぱいに広がる） */
.gen2-recruit__media { position: relative; min-height: 380px; }
.gen2-recruit__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gen2-recruit__grid--jobs { margin-top: 80px; }
.gen2-recruit__jobs .gen2-room__title { letter-spacing: .18em; }
.gen2-taglist--jobs { gap: 24px 40px; margin-top: 40px; }
.gen2-taglist--jobs .gen2-tag { min-height: 68px; font-size: 18px; letter-spacing: .12em; }
.gen2-recruit__btn { margin-top: 46px; text-align: center; }

/* =========================================================
 * コラム公開のお知らせ（保険トップ .gen-column と同意匠）
 * ========================================================= */
.gen2-column { background: #fff; padding: 40px 0 90px; }
.gen2-column__head { margin-bottom: 36px; }
.gen2-column__title { font-family: "Noto Serif JP", serif; font-weight: 500; font-size: 48px; letter-spacing: .03em; margin: 0 0 12px; color: #1f1f1f; }
.gen2-column__meta { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.gen2-column__lead { flex: 1; font-size: 14px; line-height: 1.9; color: #555; margin: 0; }
.gen2-column__allbtn { flex: 0 0 auto; }
.gen2-column__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.gen2-colcard { display: block; background: #fff; border: 1px solid #e6e6e6; border-radius: 14px; padding: 24px 28px 24px; transition: border-color .25s ease, box-shadow .25s ease; }
.gen2-colcard:hover { border-color: var(--green); box-shadow: 0 6px 20px rgba(134, 169, 95, .12); }
.gen2-colcard__date { color: var(--green); font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.gen2-colcard__title { font-weight: 700; font-size: 18px; line-height: 1.55; margin: 8px 0 10px; color: #222; }
.gen2-colcard__text { font-size: 14px; line-height: 1.75; color: #666; margin: 0 0 12px; }
.gen2-colcard__link { color: var(--green-link); font-size: 14px; font-weight: 700; }

/* =========================================================
 * お問い合わせ（#contact）
 * ========================================================= */
.gen2-contact { position: relative; padding: 40px 0 96px; }
/* 旧 /#contact-form-wrapper リンクの着地先エイリアス（sticky ヘッダー分だけ上にずらす） */
.gen2-contact__anchor { position: absolute; top: -90px; }
.gen2-contact__lead { font-size: 15px; line-height: 2; color: #444; margin: -20px 0 40px; }
.gen2-contact__telwrap { text-align: center; margin-bottom: 34px; }
.gen2 .gen2-contact__tel {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 22px 52px;
  border: 2px solid #1f1f1f;
  border-radius: 14px;
  background: #fff;
  color: #1f1f1f;
  transition: background .25s, color .25s;
}
.gen2 .gen2-contact__tel:hover { background: #1f1f1f; color: #fff; }
.gen2-contact__tel svg { width: 34px; height: 34px; flex-shrink: 0; }
.gen2-contact__tel-body { display: flex; flex-direction: column; align-items: flex-start; }
.gen2-contact__tel-num {
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 34px;
  letter-spacing: .06em;
  line-height: 1.2;
}
.gen2-contact__tel-note { font-size: 12.5px; font-weight: 500; letter-spacing: .06em; margin-top: 2px; opacity: .75; }
.gen2-contact__hours { margin: 14px 0 0; font-size: 14px; color: #555; }
.gen2-contact__btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
/* CF7フォーム（gen2意匠のカード型フォーム） */
.gen2-contact__form { max-width: 880px; margin: 8px auto 0; }
.gen2-cform {
  background: #fbfaf7;
  border: 1px solid #e8e5de;
  border-radius: 16px;
  padding: 48px 52px;
  box-shadow: 0 10px 34px rgba(43, 58, 46, .05);
}
.gen2-contact__form .wpcf7 p { margin: 0 0 26px; font-size: 15px; color: #333; line-height: 1.7; }
.gen2-contact__form .wpcf7 form > p:last-of-type { margin-bottom: 0; }
.gen2-contact__form .wpcf7 label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: #1f1f1f;
  letter-spacing: .04em;
}
.gen2-contact__form .wpcf7 .wpcf7-form-control-wrap { display: block; }
.gen2-contact__form .wpcf7 input[type="text"],
.gen2-contact__form .wpcf7 input[type="email"],
.gen2-contact__form .wpcf7 input[type="tel"],
.gen2-contact__form .wpcf7 input[type="url"],
.gen2-contact__form .wpcf7 input[type="number"],
.gen2-contact__form .wpcf7 input[type="date"],
.gen2-contact__form .wpcf7 select,
.gen2-contact__form .wpcf7 textarea {
  width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid #d9d6cd;
  border-radius: 10px;
  background: #fff;
  font-family: var(--sans);
  font-size: 15.5px;
  color: #1f1f1f;
  box-sizing: border-box;
  transition: border-color .2s ease, box-shadow .2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.gen2-contact__form .wpcf7 select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23888' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 10px 6px;
  padding-right: 40px;
}
.gen2-contact__form .wpcf7 textarea { min-height: 190px; resize: vertical; }
.gen2-contact__form .wpcf7 input::placeholder,
.gen2-contact__form .wpcf7 textarea::placeholder { color: #b3b0a8; }
.gen2-contact__form .wpcf7 input:focus,
.gen2-contact__form .wpcf7 textarea:focus,
.gen2-contact__form .wpcf7 select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(134, 169, 95, .18);
}
/* ラジオ・チェックボックス・同意欄 */
.gen2-contact__form .wpcf7 .wpcf7-list-item { margin: 6px 20px 0 0; }
.gen2-contact__form .wpcf7 .wpcf7-list-item label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.gen2-contact__form .wpcf7 input[type="radio"],
.gen2-contact__form .wpcf7 input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--green); cursor: pointer; }
.gen2-contact__form .wpcf7 .wpcf7-acceptance { display: block; text-align: center; }
.gen2-contact__form .wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
/* バリデーションエラー・応答メッセージ */
.gen2-contact__form .wpcf7 .wpcf7-not-valid-tip {
  display: block; margin-top: 8px; font-size: 13px; font-weight: 700; color: #c0392b;
}
.gen2-contact__form .wpcf7 .wpcf7-not-valid { border-color: #d98080 !important; }
.gen2-contact__form .wpcf7 .wpcf7-response-output {
  margin: 26px 0 0; padding: 16px 20px;
  border: 1px solid #d9d6cd; border-radius: 10px;
  background: #fff; font-size: 14.5px; color: #333;
}
/* 初期状態では応答メッセージ枠を出さない（CF7標準挙動の保険） */
.gen2-contact__form .wpcf7 form.init .wpcf7-response-output { display: none; }
.gen2-contact__form .wpcf7 form.invalid .wpcf7-response-output,
.gen2-contact__form .wpcf7 form.failed .wpcf7-response-output { border-color: #d98080; color: #a33; }
.gen2-contact__form .wpcf7 form.sent .wpcf7-response-output { border-color: var(--green); color: #4a6b2f; }
/* 送信ボタン（CF7 6.x は button 要素で出力される） */
.gen2-contact__form .wpcf7 input[type="submit"],
.gen2-contact__form .wpcf7 button.wpcf7-submit {
  display: block;
  min-width: 300px;
  margin: 34px auto 0;
  padding: 17px 52px;
  border: 1.5px solid #1f1f1f;
  border-radius: 999px;
  background: #1f1f1f;
  color: #fff;
  font-family: var(--sans);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .12em;
  cursor: pointer;
  transition: background .25s, color .25s, transform .15s;
}
.gen2-contact__form .wpcf7 input[type="submit"]:hover,
.gen2-contact__form .wpcf7 button.wpcf7-submit:hover { background: #fff; color: #1f1f1f; }
.gen2-contact__form .wpcf7 input[type="submit"]:active,
.gen2-contact__form .wpcf7 button.wpcf7-submit:active { transform: translateY(1px); }
.gen2-contact__form .wpcf7 .wpcf7-spinner { display: block; margin: 12px auto 0; }

/* ---- CF7 6.x マークアップ＋旧トップ用フォーム構造（contact-*）のgen2向け調整 ---- */
/* CF7の隠しフィールド用fieldsetが空の枠として見えるのを消す */
.gen2-contact__form .wpcf7 fieldset.hidden-fields-container { display: none; border: 0; margin: 0; padding: 0; }
/* フォーム内タイトル */
.gen2-contact__form .contact-title {
  margin: 0 0 36px;
  text-align: center;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: .1em;
  color: #2b2b2b;
}
/* 各行の余白 */
.gen2-contact__form .contact-dl-row { margin-bottom: 26px; }
/* ラベル行：必須バッジとラベルを横並びに */
.gen2-contact__form .contact-dt { display: flex; align-items: center; gap: 10px; }
.gen2-contact__form .wpcf7 .contact-dt label { display: inline; }
/* 必須バッジ */
.gen2-contact__form .require-label {
  display: inline-block;
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 4px;
  background: #c9463d;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .08em;
  white-space: nowrap;
}
/* プライバシーポリシー同意欄 */
.gen2-contact__form .contact-privacy { margin: 30px 0 0; text-align: center; font-size: 15px; }
.gen2-contact__form .contact-privacy a { color: var(--green-link); text-decoration: underline; }
/* 送信ボタンエリア */
.gen2-contact__form .contact-submit-area { text-align: center; }
@media (max-width: 768px) {
  .gen2-contact__form .contact-title { font-size: 22px; margin-bottom: 28px; }
  .gen2-contact__form .contact-dl-row { margin-bottom: 22px; }
  .gen2-contact__form .wpcf7 button.wpcf7-submit { min-width: 100%; }
}

/* ========= 送信前の入力内容確認モーダル ========= */
.gen2-cform-confirm {
  position: fixed; inset: 0; z-index: 10001;
  background: rgba(31, 31, 31, .55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center; justify-content: center;
  padding: 4vh 4vw;
}
.gen2-cform-confirm.is-open { display: flex; }
.gen2-cform-confirm__panel {
  background: #fff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 40px 44px 36px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .3);
}
.gen2-cform-confirm__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 600; font-size: 24px; letter-spacing: .04em; color: #1f1f1f;
  margin: 0 0 10px; padding-left: 16px;
  position: relative;
}
.gen2-cform-confirm__title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: var(--green);
}
.gen2-cform-confirm__lead { margin: 0 0 22px; font-size: 14px; color: #555; line-height: 1.8; }
.gen2-cform-confirm__list { margin: 0 0 28px; border-top: 1px solid #ebe9e2; }
.gen2-cform-confirm__list dt {
  font-weight: 700; font-size: 13.5px; color: #6b6a64;
  padding: 14px 4px 2px;
}
.gen2-cform-confirm__list dd {
  margin: 0; padding: 0 4px 14px;
  font-size: 15.5px; color: #1f1f1f; line-height: 1.8;
  border-bottom: 1px solid #ebe9e2;
  white-space: pre-wrap; word-break: break-word;
}
.gen2-cform-confirm__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.gen2-cform-confirm__back,
.gen2-cform-confirm__send {
  min-width: 200px;
  padding: 14px 36px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .1em;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.gen2-cform-confirm__back {
  border: 1.5px solid #1f1f1f;
  background: #fff;
  color: #1f1f1f;
}
.gen2-cform-confirm__back:hover { background: #f2f1ec; }
.gen2-cform-confirm__send {
  border: 1.5px solid #1f1f1f;
  background: #1f1f1f;
  color: #fff;
}
.gen2-cform-confirm__send:hover { background: #3a3a3a; border-color: #3a3a3a; }
@media (max-width: 767px) {
  .gen2-contact { padding: 20px 0 72px; }
  .gen2-contact__lead { margin: -14px 0 28px; }
  .gen2 .gen2-contact__tel { width: 100%; justify-content: center; padding: 18px 20px; gap: 14px; }
  .gen2-contact__tel-num { font-size: 7vw; }
  .gen2-contact__btns { grid-template-columns: 1fr; gap: 14px; }
  .gen2-contact__form { margin-top: 8px; }
  .gen2-cform { padding: 26px 18px 30px; border-radius: 12px; }
  .gen2-contact__form .wpcf7 input[type="submit"] { width: 100%; min-width: 0; }
  .gen2-cform-confirm { padding: 3vh 4vw; }
  .gen2-cform-confirm__panel { padding: 26px 20px 24px; }
  .gen2-cform-confirm__title { font-size: 20px; }
  .gen2-cform-confirm__back, .gen2-cform-confirm__send { width: 100%; min-width: 0; }
}

/* =========================================================
 * クリニック情報（保険トップ .gen-clinic と同意匠）
 * ========================================================= */
.gen2-clinic { padding: 30px 0 96px; }
.gen2-clinic__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.gen2-info__block { border-bottom: 1px solid #e0e0e0; padding: 6px 0 26px; margin-bottom: 26px; }
.gen2-info__label { font-weight: 700; font-size: 17px; margin: 0 0 14px; color: #1f1f1f; }
.gen2-info__body { font-size: 16px; line-height: 1.9; color: #333; margin: 0; }
.gen2-info__body ul { list-style: none; margin: 0; padding: 0; }
.gen2-info__note { color: #666; font-size: 14px; padding-left: 1em; text-indent: -1em; }
.gen2-info__btn { margin-top: 14px; }
.gen2-info__body a[href^="tel:"] { color: inherit; text-decoration: none; } /* 電話番号リンクは通常テキストと同じ見た目 */
/* 電話番号/FAX番号のラベルを同幅で両端揃えにし「：」の位置を揃える */
.gen2-info__num-label { display: inline-block; width: 2.4em; text-align: justify; text-align-last: justify; letter-spacing: normal; white-space: nowrap; } /* TEL/FAXを同幅で両端揃えにし「：」の位置を揃える */
/* お問い合わせボタン（カンプ：白地・細枠・角丸なし） */
.gen2-contactbtn {
  display: inline-block;
  border: 1px solid #1f1f1f;
  padding: 10px 30px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  transition: background .2s, color .2s;
}
.gen2-contactbtn:hover { background: #1f1f1f; color: #fff; }
.gen2-clinic__aside-img { width: 100%; aspect-ratio: 7 / 6; object-fit: cover; margin-bottom: 40px; }
/* 保険診療/自由診療の切替タブ（クリニック情報の診療時間・画像を切り替える）
   配色は2カラム(gen2-split)と同一：保険＝グリーン系、自由＝ゴールド系 */
.gen2-hours-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.gen2-hours-tab {
  flex: 1;
  padding: 11px 0;
  background: #fff;
  color: #1f1f1f;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.gen2-hours-tab--hoken { border: 1.5px solid var(--bar-green); }
.gen2-hours-tab--hoken:hover { background: #e9f2dd; }
.gen2-hours-tab--hoken.is-active { background: #e9f2dd; color: #1f1f1f; } /* 2カラムのホバー色と同一 */
.gen2-hours-tab--jiyu { border: 1.5px solid var(--bar-gold); }
.gen2-hours-tab--jiyu:hover { background: #f3ead8; }
.gen2-hours-tab--jiyu.is-active { background: #f3ead8; color: #1f1f1f; } /* 2カラムのホバー色と同一 */
.gen2-hours-panel { display: none; }
.gen2-hours-panel.is-active { display: block; }
.gen2-hours-note { margin-bottom: 14px; }

.gen2-hours { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 6px; }
.gen2-hours th, .gen2-hours td {
  border: 1px solid #d8d8d8; text-align: center; padding: 12px 6px; font-weight: 700; letter-spacing: .1em;
}
.gen2-hours th:first-child, .gen2-hours td:first-child { width: 128px; }
.gen2-hours thead th { background: #fafafa; }
.gen2-hours td { color: #333; }
.gen2-info__row-inline { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.gen2-info__block.gen2-info__row-inline { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

/* =========================================================
 * 詳細ページ（外国人向け診療 /top2/foreign-*）
 * ========================================================= */
.gen2-page-hero { position: relative; width: 100%; height: 320px; overflow: hidden; background: #615745; }
.gen2-page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.gen2-page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(97, 87, 69, .55); }
.gen2-page-hero__inner {
  position: relative; z-index: 2;
  height: 100%;
  width: 90%; max-width: var(--wrap);
  margin: 0 auto;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
}
.gen2-page-hero__en {
  font-family: "Cormorant Garamond", "Noto Serif JP", serif;
  font-size: 18px; letter-spacing: .18em; margin: 0 0 14px; opacity: .92;
}
.gen2-page-hero__title {
  font-family: "Noto Serif JP", serif;
  font-weight: 600; font-size: 40px; letter-spacing: .06em; line-height: 1.35; margin: 0;
}

.gen2-breadcrumb { border-bottom: 1px solid var(--line); }
.gen2-breadcrumb .gen2__wrap { display: flex; align-items: center; gap: 12px; padding: 18px 0; font-size: 13px; color: #666; }
.gen2-breadcrumb a { color: var(--green-link); }
.gen2-breadcrumb__sep { color: #bbb; }

.gen2-detail { padding: 72px 0 96px; }
.gen2-detail .gen2__wrap { max-width: 880px; }
.gen2-detail__lead {
  font-family: "Noto Serif JP", serif;
  font-weight: 600; font-size: 24px; line-height: 1.85; letter-spacing: .03em;
  color: #1f1f1f; margin: 0 0 56px;
}
.gen2-detail__block { margin: 0 0 48px; }
.gen2-detail__h2 {
  font-family: "Noto Serif JP", serif;
  font-weight: 600; font-size: 25px; letter-spacing: .04em; color: #1f1f1f;
  margin: 0 0 22px; padding: 0 0 14px 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.gen2-detail__h2::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 14px; width: 4px;
  background: var(--green);
}
.gen2-detail__text { font-size: 16px; line-height: 2; color: #444; margin: 0 0 18px; text-align: justify; }
.gen2-detail__list { list-style: none; margin: 0; padding: 0; }
.gen2-detail__list li {
  position: relative; padding-left: 26px; font-size: 16px; line-height: 1.9; color: #333; margin-bottom: 12px;
}
.gen2-detail__list li::before {
  content: ""; position: absolute; left: 4px; top: 13px;
  width: 9px; height: 9px; border-radius: 50%; background: #9cbf6f;
}
.gen2-detail__steps { list-style: none; counter-reset: gen2step; margin: 0; padding: 0; }
.gen2-detail__steps li {
  position: relative; padding-left: 52px; min-height: 34px;
  font-size: 16px; line-height: 1.7; color: #333; margin-bottom: 20px;
  display: flex; align-items: center;
}
.gen2-detail__steps li::before {
  counter-increment: gen2step; content: counter(gen2step);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-family: "Noto Serif JP", serif; font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.gen2-detail__cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin: 64px 0 48px;
}
/* .gen2 a { color: inherit } より詳細度を上げて白文字を確実に効かせる */
.gen2 .gen2-detail__btn {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 22px; border-radius: 8px; color: #fff; font-size: 18px; font-weight: 700; letter-spacing: .06em;
  transition: filter .3s ease;
}
.gen2 .gen2-detail__btn:hover { filter: brightness(.92); }
.gen2-detail__btn .gen2-pill__arrow { position: static; transform: none; width: 10px; height: 10px; }
.gen2-detail__btn .gen2-pill__arrow::after { border-color: #fff; }
.gen2-detail__btn--line { background: #5b9e6c; }
.gen2-detail__btn--web { background: #4a5a9c; }
.gen2-detail__back { text-align: center; }

/* 概要テーブル（当院の紹介・アクセス） */
.gen2-detail__table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.gen2-detail__table th, .gen2-detail__table td {
  border: 1px solid #e0e0e0; padding: 16px 20px; text-align: left; line-height: 1.8; vertical-align: top;
}
.gen2-detail__table th { width: 190px; background: #fafaf7; font-weight: 700; color: #1f1f1f; white-space: nowrap; }
.gen2-detail__table td { color: #333; }

/* 地図（アクセスページ・遅延読込は general2.js の initGenMap を利用） */
.gen2-detail__map { margin-top: 6px; }
.gen2-detail__map iframe { width: 100%; height: 420px; border: 0; display: block; background: #d8d4ce; }
.gen2-detail__note { color: #666; font-size: 14px; padding-left: 1em; text-indent: -1em; margin: 14px 0 0; }

/* ブロック内の補助リンクボタン（駐車場詳細など） */
.gen2-detail__blockbtn { margin-top: 22px; }

/* 写真付きルート案内（アクセスページ：元トップ #accessStation を踏襲） */
.gen2-detail__psteps {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 26px;
}
.gen2-detail__pstep { position: relative; }
.gen2-detail__pstep picture { display: block; }
.gen2-detail__pstep img { width: 100%; height: auto; aspect-ratio: 347 / 232; object-fit: cover; display: block; }
.gen2-detail__pstep-num {
  position: absolute;
  top: -13px;
  left: -13px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
}
.gen2-detail__pstep p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.85; color: #333; }

/* 遠方からの経路カード（電車・空港） */
.gen2-detail__groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 6px;
}
.gen2-detail__group { border: 1px solid var(--line); padding: 24px 26px 22px; }
.gen2-detail__group-h {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .04em;
  color: #1f1f1f;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.gen2-detail__group-item { margin: 0 0 14px; font-size: 14.5px; line-height: 1.75; color: #333; }
.gen2-detail__group-item:last-child { margin-bottom: 0; }
.gen2-detail__group-line { display: block; font-size: 12.5px; font-weight: 700; color: var(--green-link); margin-bottom: 2px; }

@media (max-width: 767px) {
  .gen2-page-hero { height: 210px; }
  .gen2-page-hero__title { font-size: 26px; }
  .gen2-page-hero__en { font-size: 14px; margin-bottom: 10px; }
  .gen2-detail { padding: 48px 0 72px; }
  .gen2-detail__lead { font-size: 19px; margin-bottom: 40px; }
  .gen2-detail__h2 { font-size: 21px; }
  .gen2-detail__text, .gen2-detail__list li, .gen2-detail__steps li { font-size: 15px; }
  .gen2-detail__cta { grid-template-columns: 1fr; gap: 16px; margin: 44px 0 36px; }
  .gen2 .gen2-detail__btn { font-size: 16px; padding: 18px; }
  .gen2-detail__table th { width: 108px; padding: 12px 12px; font-size: 13.5px; }
  .gen2-detail__table td { padding: 12px 14px; font-size: 14px; }
  .gen2-detail__map iframe { height: clamp(230px, 58vw, 420px); }
  .gen2-detail__psteps { grid-template-columns: 1fr; gap: 30px; }
  .gen2-detail__pstep-num { top: -11px; left: -8px; width: 34px; height: 34px; font-size: 16px; }
  .gen2-detail__groups { grid-template-columns: 1fr; gap: 16px; }
}

/* =========================================================
 * 地図
 * ========================================================= */
.gen2-map { width: 100%; }
.gen2-map iframe { width: 100%; height: 365px; border: 0; display: block; background: #d8d4ce; }

/* =========================================================
 * フッター（footer-beauty.php のサイトマップを白背景・黒文字に反転＝保険トップと同じ手法）
 * ========================================================= */
body.gen2-page #uklp-sitemap-section.ggu-sitemap {
  --ggu-taupe: #fff;      /* 背景を白に */
  --ggu-white: #1f1f1f;   /* 文字を黒に */
  background: #fff;
}
body.gen2-page #uklp-sitemap-section.ggu-sitemap .ggu-sitemap__brand-logo { filter: none; }
body.gen2-page #uklp-sitemap-section.ggu-sitemap .ggu-sitemap__contact-button { border-color: #1f1f1f; }
body.gen2-page #uklp-sitemap-section.ggu-sitemap .ggu-sitemap__contact-button:hover,
body.gen2-page #uklp-sitemap-section.ggu-sitemap .ggu-sitemap__contact-button:focus-visible {
  background: #1f1f1f; border-color: #1f1f1f; color: #fff;
}
/* PCは3カラム（診療内容／特徴／クリニック情報） */
body.gen2-page .ggu-sitemap__nav--desktop {
  grid-template-columns: repeat(3, auto);
  column-gap: 56px;
}
/* 入れ子項目（脂肪肝細胞治療など）はインデント表示 */
body.gen2-page .ggu-sitemap__item.is-child { margin-left: 1.4em; }
@media screen and (max-width: 768px) {
  body.gen2-page .ggu-sitemap__nav--mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 38px;
    row-gap: 40px;
  }
  body.gen2-page .ggu-sitemap__nav--mobile .ggu-sitemap__list li { margin-bottom: 8px; }
  body.gen2-page .ggu-sitemap__nav--mobile .ggu-sitemap__list li:last-child { margin-bottom: 0; }
}
@media (max-width: 980px) {
  body.gen2-page { background: #fff; }
}

/* =========================================================
 * レスポンシブ
 * ========================================================= */
.gen2 .sp-only { display: none; }

/* =========================================================
 * SPヘッダー（保険トップと同構造）
 * ========================================================= */
.gen2-sp-controls {
  display: none;
  align-items: stretch;
  align-self: stretch;
  gap: 0;
  margin-left: auto;
  flex-shrink: 0;
}
.gen2-sp-lang-wrap { position: relative; display: flex; align-items: stretch; align-self: stretch; }
.gen2-sp-lang-btn {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  width: 64px; height: var(--gen-h-sp, 62px); padding: 0;
  background: #f0f0f0; border: none; border-radius: 0; cursor: pointer;
  font-family: var(--sans); font-size: 12px; letter-spacing: .1em; font-weight: 500; color: #1a1a1a;
}
.gen2-sp-lang-wrap.is-open .gen2-sp-lang-btn { background: #e2e2e2; }
.gen2-sp-lang-menu {
  position: absolute; top: 100%; right: 0;
  background: #fff; border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.18);
  padding: 6px; display: none; grid-template-columns: 1fr; gap: 1px;
  width: min(220px, calc(100vw - 16px));
  max-height: min(60vh, 360px); overflow-y: auto; overscroll-behavior: contain;
  z-index: 100;
}
.gen2-sp-lang-wrap.is-open .gen2-sp-lang-menu { display: grid; }
.gen2-sp-lang-wrap.is-scroll-hint::after {
  content: '';
  position: absolute; right: 0;
  top: calc(100% + min(60vh, 360px) - 42px);
  width: min(220px, calc(100vw - 16px)); height: 42px;
  z-index: 101; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.96) 72%),
    radial-gradient(circle at 50% 78%, rgba(134,169,95,.22) 0 15px, rgba(134,169,95,0) 16px);
}
.gen2-sp-lang-wrap.is-scroll-hint::before {
  content: '';
  position: absolute;
  right: calc((min(220px, calc(100vw - 16px)) - 9px) / 2);
  top: calc(100% + min(60vh, 360px) - 29px);
  width: 9px; height: 9px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
  animation: gen2ScrollHint 1.2s ease-in-out infinite;
  z-index: 102; pointer-events: none;
}
@keyframes gen2ScrollHint {
  0%, 100% { transform: translateY(-2px) rotate(45deg); opacity: .35; }
  50% { transform: translateY(3px) rotate(45deg); opacity: .95; }
}
.gen2-burger {
  display: flex; width: 64px; height: var(--gen-h-sp, 62px);
  background: #1f1f1f;
  border: none; cursor: pointer; flex-shrink: 0;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 0; align-self: stretch;
}
.gen2-burger span {
  display: block; width: 22px; height: 2px; background: #fff; border-radius: 999px;
  transform-origin: 50% 50%; transition: transform .24s ease, opacity .2s ease;
}
.gen2-burger.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.gen2-burger.is-open span:nth-child(2) { opacity: 0; }
.gen2-burger.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.gen2-drawer {
  position: fixed; inset: 0 0 0 auto;
  width: min(85vw, 340px);
  background: #fff; z-index: 9998;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  touch-action: pan-y; will-change: transform;
  overflow-y: auto; padding: var(--gen-h-sp, 62px) 0 80px;
}
.gen2-drawer.is-open { transform: translateX(0); }
.gen2-drawer.is-dragging { transition: none; }
.gen2-drawer-list { list-style: none; margin: 0; padding: 16px 0; }
.gen2-drawer-item { border-bottom: 1px solid #efefef; }
.gen2-drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: .08em;
  color: #1a1a1a; text-decoration: none;
}
.gen2-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.35);
  opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 9997;
}
.gen2-overlay.is-open { opacity: 1; pointer-events: auto; }

@media (max-width: 980px) {
  .gen2-gnav { display: none; }
  .gen2-sp-controls { display: flex; }
  .gen2-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--gen-h-sp, 62px);
    z-index: 9999;
  }
  .gen2 { padding-top: var(--gen-h-sp, 62px); }
  .gen2-header__inner { padding: 0 0 0 16px; gap: 0; }
  .gen2-header .gen2-brand__logo { height: 40px; }

  .gen2-h2 { font-size: 32px; }

  /* 2カラム→1カラム縦積み */
  .gen2-split { grid-template-columns: 1fr; }
  .gen2-split__col--hoken { border-right: none; border-bottom: 1px solid #ccc; }
  .gen2-foreign__grid,
  .gen2-onsen,
  .gen2-about__grid,
  .gen2-director__top,
  .gen2-director__cols,
  .gen2-recruit__grid,
  .gen2-column__grid,
  .gen2-clinic__grid { grid-template-columns: 1fr; }
  .gen2-room, .gen2-room--reverse { grid-template-columns: 1fr; gap: 30px; }
  .gen2-room--reverse .gen2-room__media { order: 0; }
  .gen2-room--reverse .gen2-room__body { order: 1; }
  .gen2-recruit__grid--jobs .gen2-recruit__media { order: 2; margin-top: 8px; }

  /* SPは募集一覧の写真を一覧の下へ */
  .gen2-recruit__grid { gap: 36px; }
  /* SP縦積みでは画像を通常フローに戻す（PCの絶対配置を解除） */
  .gen2-recruit__media { position: static; min-height: 0; }
  .gen2-recruit__media img {
    position: static;
    height: auto;
    aspect-ratio: 4 / 3;
  }

  /* クリニック情報（保険トップSPと同構成） */
  .gen2-clinic__grid { gap: 44px; }
  /* SPはタブ→診療時間→画像の順。旧column-reverse（aside全体反転）はタブが
     カレンダー直下に落ちて密着するため、パネル内のみ反転する方式に変更 */
  .gen2-clinic__aside { display: block; }
  .gen2-hours-panel.is-active { display: flex; flex-direction: column-reverse; }
  .gen2-clinic__aside-img { margin: 32px 0 0; }
  .gen2-info__row-inline { flex-direction: column; align-items: flex-start; gap: 18px; }
  .gen2-clinic .gen2-pill--sm { padding: 13px 46px; font-size: 15px; }
  .gen2-hours { font-size: 13px; }
  .gen2-hours th, .gen2-hours td { padding: 8px 4px; }
  .gen2-hours th:first-child, .gen2-hours td:first-child { width: 88px; }

  /* 理事長紹介：挨拶文を畳んで「詳しく見る」で全表示（保険トップと同挙動） */
  .gen2-director__msg {
    position: relative;
    max-height: 310px;
    overflow: hidden;
    transition: max-height .55s cubic-bezier(.22, .72, .2, 1);
    will-change: max-height;
  }
  .gen2-director__msg::after {
    content: "";
    position: absolute;
    right: 0; bottom: 0; left: 0;
    height: 88px;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 82%);
  }
  .gen2-director.is-expanded .gen2-director__msg::after { display: none; }
  .gen2-director__cols { display: none; }
  .gen2-director.is-expanded .gen2-director__cols { display: grid; }
  .gen2-director__more {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(100%, 260px);
    min-height: 48px;
    margin: -20px auto 0;
    padding: 12px 22px;
    border: 1.5px solid #1f1f1f;
    border-radius: 999px;
    background: #fff;
    color: #1f1f1f;
    font-family: "Noto Serif JP", serif; /* 本文と同じ明朝に統一 */
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    cursor: pointer;
  }
  .gen2-director__more::after {
    content: "";
    width: 8px; height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .25s ease;
  }
  .gen2-director__more[aria-expanded="true"]::after {
    transform: rotate(225deg) translate(-2px, -1px);
  }
  .gen2-director.is-expanded .gen2-director__more { margin-top: 36px; }
}

/* 理事長「詳しく見る」ボタンはPCでは非表示（PCは常時全文表示） */
@media (min-width: 981px) {
  .gen2-director__more { display: none; }
}

/* =========================================================
 * SP（〜767px）
 * ========================================================= */
@media (max-width: 767px) {
  .gen2 .pc-only { display: none; }
  .gen2 .sp-only { display: inline; }

  /* ヒーロー（カンプ準拠）：開院帯は写真の下端に重ね、
     「JR大阪駅直結＋所在地」は写真の下（白地）に1行で表示する */
  .gen2-hero__slides { aspect-ratio: 1 / 1; }
  .gen2-hero__panel {
    position: relative; /* 帯（bottom:100%）の基準にする */
    right: auto;
    left: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    min-width: 0;
  }
  .gen2-hero__open {
    position: absolute;
    bottom: 100%; /* パネル上端＝写真下端に密着 */
    left: 0;
    right: 0;
    font-size: 4.8vw;
    padding: 12px 6px 14px;
  }
  .gen2-hero__boxes {
    background: #fff;
    justify-content: center;
    gap: 2vw;
    padding: 14px 1.5% 12px;
  }
  .gen2-hero__box--access { flex: 0 0 auto; }
  .gen2-hero__box-frame { padding: 3px 8px 4px; border-radius: 7px; border-width: 1.5px; }
  .gen2-hero__box-main { font-size: 3.2vw; line-height: 1.6; }
  .gen2-hero__box-sub { display: none; } /* 「徒歩約3分」はSP非表示（カンプ準拠） */
  .gen2-hero__box--place { flex: 0 0 auto; white-space: nowrap; text-align: center; }
  /* 所在地はブロック2行→1行のインライン表示（span間の改行が半角スペースになる） */
  .gen2-hero__box-line {
    display: inline;
    font-size: 3.55vw;
    line-height: 1.6;
    letter-spacing: .01em;
    text-align: left;
    text-align-last: auto;
    text-justify: auto;
  }

  .gen2-h2 { font-size: 30px; margin-bottom: 40px; }

  /* お知らせ（カンプ準拠：見出し左寄せ・日付→タイトル縦積み・チラシ2枚横並び） */
  .gen2-news { padding: 28px 0 72px; } /* SPも紹介との間隔を均等化（28+28=56） */
  .gen2-news .gen2-h2--center { text-align: left; }
  .gen2-news__list { border-top: none; }
  .gen2-news__item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 2px 22px;
  }
  .gen2-news__date { font-size: 13px; }
  /* 本文は視認性優先（当院の紹介と同等の15px/500）。折返しは許容する */
  /* お知らせ: タイトル26文字・説明文26文字が1行に収まるサイズを端末幅から自動算出 */
  .gen2-news__title { font-size: min(15px, calc(90vw / 27)); font-weight: 500; line-height: 1.9; }
  .gen2-news__caption { margin: 36px 0 20px; font-size: min(13.5px, calc(90vw / 27)); font-weight: 500; letter-spacing: 0; }
  .gen2-news__flyers { grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .gen2-news__btns { flex-direction: column; align-items: center; gap: 14px; margin-top: 36px; }
  /* ボタンは2つとも同幅のピル（カンプ実測：幅約270px・文字14px） */
  .gen2-news__btns .gen2-pill {
    width: min(100%, 270px);
    min-width: 0;
    padding: 14px 34px;
    font-size: 14px;
    white-space: nowrap;
  }
  .gen2-news__btns .gen2-pill__arrow { right: 20px; width: 10px; height: 10px; }

  /* キャッチコピー（SPはPCと文面が異なる2行組み。長い2行目が収まる大きめサイズ） */
  .gen2-catch { padding: 40px 0 64px; }
  .gen2-catch .gen2__wrap { width: 96%; }
  .gen2-catch__text { font-size: 4.9vw; letter-spacing: .02em; line-height: 2; }

  /* 保険/自由（カンプ準拠：タグ1列固定幅・「〜サイトへ」は黒枠ピル） */
  .gen2-split__col { padding: 48px 0 52px; }
  .gen2-split__bar { width: 36px; margin-bottom: 18px; }
  .gen2-split__title { font-size: 27px; }
  .gen2-split__sub { font-size: 15px; margin-bottom: 22px; }
  .gen2-split__desc { font-size: 15px; font-weight: 500; line-height: 1.95; text-align: justify; text-wrap: pretty; padding: 0; margin-bottom: 30px; }
  .gen2-split__body { padding: 34px 5% 0; }
  .gen2-taglist { grid-template-columns: 1fr; gap: 13px; }
  .gen2-tag {
    width: 100%;
    min-height: 44px;
    font-size: 14px;
    letter-spacing: .02em;
    padding: 8px 6px;
  }
  .gen2-taglist__wide { width: 100%; min-width: 0; justify-self: stretch; }
  .gen2-split__btn { padding-top: 36px; }
  .gen2-split__link {
    justify-content: center;
    min-width: 258px;
    gap: 10px;
    padding: 15px 28px;
    border: 1.5px solid #1f1f1f;
    border-radius: 999px;
    background: #fff;
    font-size: 15.5px;
  }
  .gen2-split__link-arrow { width: 8px; height: 8px; }

  /* 外国人カード（カンプ準拠：見出し左寄せ2行・画像は中央の縦位置写真・ボタン中央） */
  .gen2-foreign { padding: 64px 0; }
  .gen2-foreign__grid { gap: 28px; }
  .gen2-fcard { padding: 36px 30px 38px; }
  .gen2-fcard__title { font-size: 20px; text-align: left; line-height: 1.6; margin-bottom: 20px; }
  .gen2-fcard__row { grid-template-columns: 1fr; margin-bottom: 40px; }
  .gen2-fcard__img { width: 50%; margin: 4px auto 0; aspect-ratio: 10 / 11; }
  .gen2-fcard__text { font-size: 15px; font-weight: 500; line-height: 1.95; }
  .gen2-fcard__btn { text-align: center; }
  .gen2-fcard__btn .gen2-pill { min-width: 240px; padding: 13px 30px; font-size: 15px; }
  .gen2-fcard__btn .gen2-pill__arrow { position: static; transform: none; margin-left: 14px; }

  /* 温泉（カンプ準拠：ロゴ→見出し→本文→写真→ボタンの順） */
  .gen2-onsen {
    display: flex;
    flex-direction: column;
    margin-top: 28px;
    padding: 36px 30px 38px;
    gap: 0;
  }
  .gen2-onsen__col { display: contents; }
  .gen2-onsen__media { display: contents; }
  .gen2-onsen__media img {
    order: 1;
    min-height: 0;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    margin-top: 30px;
  }
  .gen2-onsen__lockup { gap: 12px; margin-bottom: 26px; }
  .gen2-onsen .gen2-onsen__logo { height: auto; width: 44%; max-width: 150px; }
  .gen2-onsen .gen2-onsen__logo--onsen { width: 40%; max-width: 140px; }
  .gen2-onsen__x { font-size: 20px; }
  .gen2-onsen__title {
    font-size: 21px;
    letter-spacing: .04em;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  .gen2-onsen__text {
    font-family: "Noto Serif JP", serif; /* 本文は明朝で統一（旧: var(--sans)がSPだけゴシックにしていた） */
    font-weight: 500;
    font-size: 15px;
    line-height: 1.95;
    text-align: justify;
    text-wrap: pretty;
    color: #333;
    margin-bottom: 0;
  }
  .gen2-onsen__btn { order: 2; text-align: center; margin-top: 30px; }
  /* 2行組みのホームページボタン（文言・意匠は現状のまま。
     inline-flex内のbrは余分な折返しを生むためinline-blockで2行組みにする） */
  .gen2-onsen__btn .gen2-pill--onsen {
    display: inline-block;
    text-align: center;
    white-space: nowrap;
    line-height: 1.7;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* 当院の紹介（カンプ準拠：リード3行・段落間余白なし・約物詰め・ボタンは矢印インライン） */
  .gen2-about { padding: 56px 0 28px; } /* SP: 上56px、紹介→お知らせ=28+28=56pxで均等 */
  .gen2-about__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .gen2-about__body { display: contents; }
  .gen2-about__lead { font-size: clamp(16px, 5.1vw, 21px); line-height: 1.75; margin-bottom: 22px; }
  .gen2-about__text {
    font-weight: 500;
    line-height: 2;
    text-align: justify;
    text-wrap: pretty;
    font-feature-settings: "palt";
    letter-spacing: 0;
    margin-bottom: 0;
  }
  .gen2-about__media { margin-top: 32px; }
  .gen2-about__media img { aspect-ratio: 3 / 2; }
  .gen2-about__btn { order: 1; text-align: center; margin-top: 36px; }
  .gen2-about__btn .gen2-pill { min-width: 240px; padding: 13px 30px; font-size: 15px; }
  .gen2-about__btn .gen2-pill__arrow { position: static; transform: none; margin-left: 14px; }

  /* 理事長紹介 名前ロックアップ */
  .gen2-director { padding: 72px 0; }
  .gen2-director__name { margin-top: 26px; }
  .gen2-director__role { font-size: clamp(11px, 3.4vw, 15px); white-space: nowrap; }
  .gen2-director__namebox { margin-left: 14px; padding-left: 14px; gap: 4px; }
  .gen2-director__en { font-size: clamp(11px, 3.4vw, 16px); white-space: nowrap; }
  .gen2-director__jp { font-size: clamp(20px, 6.5vw, 29px); white-space: nowrap; }
  .gen2-quals__cols { grid-template-columns: 1fr; }

  /* 院内紹介 */
  .gen2-gallery { padding: 20px 0 72px; }
  .gen2-room { margin-bottom: 48px; }
  .gen2-room__title { font-size: 24px; padding-bottom: 14px; }
  .gen2-room__text { margin-top: 16px; }
  .gen2-strip { margin-bottom: 48px; }
  .gen2-strip__set { gap: 12px; padding-right: 12px; }
  .gen2-strip__set img { width: 62vw; }

  /* SNS行 */
  .gen2-social { gap: clamp(14px, 5vw, 40px); padding: 28px 5% 12px; }
  .gen2-social a { width: clamp(42px, 12vw, 56px); height: clamp(42px, 12vw, 56px); }

  /* 採用情報 */
  .gen2-recruit { padding: 72px 0; }
  .gen2-recruit__lead { font-size: clamp(17px, 5.2vw, 24px); }
  .gen2-recruit__grid--jobs { margin-top: 48px; }
  .gen2-taglist--jobs { gap: 14px; margin-top: 28px; }
  .gen2-taglist--jobs .gen2-tag { min-height: 58px; font-size: 15px; }
  .gen2-recruit__btn { margin-top: 34px; }

  /* コラム（保険トップSPと同意匠） */
  .gen2-column { padding: 40px 0 74px; }
  .gen2-column__title { font-size: 30px; letter-spacing: .06em; line-height: 1.25; margin-bottom: 14px; }
  .gen2-column__meta { flex-direction: column; align-items: flex-start; gap: 18px; }
  .gen2-column__lead { font-size: 15px; }
  .gen2-column__allbtn .gen2-pill--sm { min-height: 44px; padding: 0 20px; font-size: 14px; display: inline-flex; align-items: center; }
  .gen2-column__grid { gap: 18px; margin-top: 28px; }
  .gen2-colcard { border-radius: 10px; padding: 22px; box-shadow: 0 18px 46px rgba(43, 58, 46, .06); display: flex; flex-direction: column; gap: 10px; }
  .gen2-colcard__date { font-size: 13px; font-weight: 700; }
  .gen2-colcard__title { font-size: 17px; line-height: 1.7; margin: 0; }
  .gen2-colcard__text { font-size: 14px; line-height: 1.8; margin: 0; }
  .gen2-colcard__link { margin-top: auto; font-size: 13px; }

  /* 地図 */
  .gen2-map iframe { height: clamp(230px, 58vw, 436px); }
}

/* =========================================================
 * 多言語翻訳時のレイアウト崩れ対策（保険トップと同方針）
 * ========================================================= */
/* ヒーロー開院パネル：翻訳で文字数が大きく変わるため、
   nowrap・両端揃え・固定フォントサイズを解除して折り返せるようにする */
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-hero__panel {
  width: 46%;
  max-width: 700px;
}
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-hero__open {
  white-space: normal;
  flex-wrap: wrap;
  font-size: 26px;
  line-height: 1.25;
  column-gap: .3em;
  letter-spacing: .04em;
}
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-hero__open-num,
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-hero__open-txt {
  font-size: 1.4em;
  margin-left: 0;
}
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-hero__open-y,
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-hero__open-unit {
  font-size: 1em;
}
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-hero__boxes {
  flex-wrap: wrap;
  gap: 14px;
}
/* 欧文で inter-character の両端揃えは単語間が不自然に開くため中央揃えに戻す */
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-hero__box-main,
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-hero__box-sub,
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-hero__box-line {
  text-align: center;
  text-align-last: auto;
  text-justify: auto;
  white-space: normal;
  letter-spacing: .02em;
}
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-hero__box-main { font-size: 21px; }
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-hero__box-sub { font-size: 13px; }
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-hero__box-line { font-size: 20px; line-height: 1.5; }
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-hero__box-frame { padding: 10px 16px; }
/* タグ枠・見出し：字間を詰めて折り返しを許可 */
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-tag {
  font-size: 15px;
  letter-spacing: .02em;
  line-height: 1.45;
}
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-split__title { letter-spacing: .04em; }
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-split__sub { font-size: 20px; }
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-room__title { letter-spacing: .04em; font-size: 27px; }
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-fcard__title { font-size: 22px; line-height: 1.5; }
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-onsen__title {
  white-space: normal;
  font-size: 20px;
  line-height: 1.4;
}
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-director__role,
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-director__en,
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-director__jp {
  white-space: normal;
}
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-director__jp {
  letter-spacing: .06em;
}
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-about__lead,
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-recruit__lead {
  font-size: 20px;
  line-height: 1.6;
}
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-catch__text {
  font-size: 24px;
  line-height: 1.8;
}
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-news__item {
  flex-wrap: wrap;
  row-gap: 2px;
}
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-fcard__text,
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-onsen__text,
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-recruit__text,
:is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2-about__text {
  text-align: left;
}
@media (max-width: 980px) {
  :is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2 .bt-bottombar__btn {
    gap: clamp(3px, 1vw, 5px);
  }
  :is(html[lang]:not([lang^="ja"]), html.translated-ltr, html.translated-rtl) .gen2 .bt-bottombar__btn span {
    font-size: clamp(9px, 2.3vw, 11px);
    line-height: 1.05;
    letter-spacing: 0;
    text-align: center;
    white-space: normal;
  }
}

/* ==========================================================================
   本文スタイル統一（2026-07-22）
   理事長・診療部長の挨拶文（.gen2-director__msg p）と同じ組みに揃える:
   PC 17px / 行間1.82 / 字間.02em / #222。SPは16px。
   ファイル末尾に置くことで、各セクションの個別指定（15px等）を一括で上書きする。
   ========================================================================== */
.gen2-split__desc,
.gen2-fcard__text,
.gen2-room__text,
.gen2-info__body,
.gen2-onsen__text,
.gen2-recruit__text,
.gen2-contact__lead,
.gen2-about__text,
.gen2-column__lead {
  font-size: 17px;
  line-height: 1.82;
  letter-spacing: .02em;
  color: #222;
}

@media (max-width: 768px) {
  .gen2-split__desc,
  .gen2-fcard__text,
  .gen2-room__text,
  .gen2-info__body,
  .gen2-onsen__text,
  .gen2-recruit__text,
  .gen2-contact__lead,
  .gen2-about__text,
  .gen2-column__lead,
  .gen2-director__msg p {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  /* 経歴: SPは1行を保てる最大サイズを端末幅から自動算出（保険トップと同方式。最長約20文字） */
  .gen2-career li { font-size: min(15px, calc((90vw - 74px) / 20)); letter-spacing: normal; gap: 14px; }
  .gen2-career__year { flex: 0 0 auto; white-space: nowrap; } /* 年号は自然幅＋折返し禁止 */

  /* 資格・所属学会: 列を内容幅にして左右へ均等配置し、全項目が1行に収まるサイズを自動算出
     （最長ペア「ジュビダームビスタ(R)認定医」＋「日本バイオマテリアル学会」約25文字基準） */
  .gen2-quals__cols { grid-template-columns: auto auto; justify-content: space-between; gap: 0 12px; }
  .gen2-quals li { font-size: min(14.5px, calc((90vw - 48px) / 25)); padding-left: 16px; letter-spacing: normal; }
  .gen2-quals li::before { top: calc(1em - 4px); } /* ●をテキスト1行目の中央に揃える */
}

/* 当院の紹介: 本文をひと回り大きく（統一ブロックの17pxより後で上書き） */
.gen2-about__text {
  font-size: 18.5px;
}
@media (max-width: 768px) {
  .gen2-about__text {
    font-size: 17px;
  }
}
