@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ===============================
   サイト全体：明朝フォント統一
   =============================== */

body,
h1, h2, h3, h4, h5, h6,
.p-mainVisual__slideTitle,
.rich-title,
.h2-accent,
.h2-question {
  font-family: "游明朝", "Yu Mincho", YuMincho,
               "Hiragino Mincho ProN",
               "Hiragino Mincho Pro",
               "HGS明朝E", serif !important;
}

/* =========================================================
   1) トップページ：メインビジュアル
   ========================================================= */

/* メインコピー */
.p-mainVisual__slideTitle{
  font-size: 2.8rem;
  line-height: 1.5;
  letter-spacing: .15em;

  color: #ffffff;
  text-shadow:
    0 3px 10px rgba(0,0,0,0.55),
    0 3px 22px rgba(0,0,0,0.45);
}

/* サブテキスト */
.p-mainVisual__slideText{
  font-size: 1.2rem;
  line-height: 1.5;
  letter-spacing: .3em;
  opacity: .95;
  margin-top: 3vh;
  color: #4d4d4d;
	
}

/* メインビジュアル 強調テキスト */
.p-mainVisual__slideText .mv-em{
  font-size: 1.35em;   /* 少しだけ大きく */
  font-weight: 600;   /* 数字は太め */
  color: #000000;     /* 黒 */
  letter-spacing: .15em;
}

/* メインコピー */
.white_title{
  font-size: 2.8rem;
  line-height: 1.5;
  letter-spacing: .15em;

  color: #ffffff;
  text-shadow:
    0 3px 10px rgba(0,0,0,0.55),
    0 3px 22px rgba(0,0,0,0.45);
}

/* =========================================================
   2) H2見出し
   ========================================================= */
.home h2{
  font-size: 2.2rem;
}

/* H2 左アクセント（ゴールド） */
.h2-accent{
  position: relative;
  padding-left: 26px;
  font-weight: 700;
  letter-spacing: .03em;
}
.h2-accent::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:8px;
  height:22px;
  background: linear-gradient(180deg, #e7cf87, #b98c2c);
}
.rich-title, .entry-content h2.rich-title { font-size: 3.2rem; font-weight: 400; letter-spacing: 0.05em; text-transform: uppercase; color: #b9b0aa; /* グレージュ */ margin: 2.5em 0 1.5em; padding: 0; border: none; }



/* H2 疑問 */
.h2-question {
  position: relative;
  margin: 3.5em 0 1.8em;
  padding: 0 0 0.8em;
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #6f6a64; /* グレージュ */
}
.h2-question::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 80px;
  height: 1px;
  background-color: #b9b0aa;
}

/* =========================================================
   3) テキスト装飾・区切り線
   ========================================================= */
/* 数字などをゴールドグラデ */
.grad-text-gold{
  background: linear-gradient(to bottom, #d4b67b 0%, #8e6d2f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  font-weight: 700;

  text-align: center;
  width: 100%;
}

/* 誠実さと冷静さを感じさせるディープブルーグラデーション */
.grad-text-navy{
  background: linear-gradient(to bottom, #e6efff 0%, #6384b3 50%, #2c4a75 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  font-weight: 700;

  text-align: center;
  width: 100%;
}

/* 区切り線 */
.wp-block-separator{
  border-bottom-width: 2px !important;
}


/* 固定ページのトップ画の文字 */
.hero__text{
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1.9;
  letter-spacing: .06em;
  position: relative;
  z-index: 2;
  color: #111827;
  text-shadow:
    0 1px 0 rgba(255,255,255,0.9);
    0 6px 16px rgba(0,0,0,0.12);    /* ごく薄い奥行き */
}


.hero__title{
	font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: .15em;
  position: relative;
  z-index: 2;
  color: #111827; /* ほぼ黒（真っ黒は使わない） */
  text-shadow:
    0 1px 0 rgba(255,255,255,0.9);
    0 6px 16px rgba(0,0,0,0.12);    /* ごく薄い奥行き */
  letter-spacing: .06em;
  line-height: 1.9;
}


/* =========================================================
   4) ヘッダー周り（通常ヘッダー）
   ========================================================= */
.header-info-box{
  background: rgba(255, 255, 255, 0.8);
  padding: 10px 20px;
  color: black;
  backdrop-filter: blur(4px);
  border: none;

  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  margin-left: -15px !important;
}

/* ヘッダーウィジェット余白 */
.w-header__item{
  margin: 0 !important;
}

/* PC用ナビゲーション余白 */
.l-header__gnav{
  margin-right: 0 !important;
}

/* メニューリスト余白 */
.c-gnav{
  margin: 0 !important;
}

/* --- グローバルナビの文字サイズ調整 --- */
#header .c-gnav > li > a .ttl,
#fix_header .c-gnav > li > a .ttl {
  font-size: 1.1rem !important;
  font-weight: normal;
}

/* サブメニュー（ドロップダウン）の文字サイズ */
.c-gnav .sub-menu li a .ttl {
  font-size: 0.95rem;
}

/* --- 行間の調整 --- */
.header-address-area {
  line-height: 1.2; /* 行間を詰めました */
  margin-bottom: 2px;
}

.zip-address {
  font-size: 0.85em; /* 郵便番号を少し調整 */
  white-space: nowrap;
}

.header-tel-area {
  text-align: center;
  font-size: 1.3em; /* 少しサイズを整えました */
  line-height: 1.3;
  margin-bottom: 6px; /* ボタンとの距離 */
}

/* --- 追加：紹介状ボタンのデザイン --- */
.header-referral-btn a {
  display: block;
  text-align: center;
  background: #f0f0f0; /* 目立ちすぎないグレー */
  color: #1f3a5f; /* 文字はネイビー */
  font-size: 14px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid #1f3a5f;
  transition: all 0.3s ease;
}

.header-referral-btn a:hover {
  background: #1f3a5f;
  color: #fff;
}


/* =========================================================
   5) ヘッダーのWeb予約、LINE連絡
   ※ 影響範囲をヘッダー内に寄せる（競合回避）
   ========================================================= */
#header .web-reserve a,
#fix_header .web-reserve a {
  background: linear-gradient(
    135deg,
    #2a4a73,
    #1f3a5f
  ) !important;
  color: #fff !important;
  padding: 0 10px !important;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}


#header .line-consult a,
#fix_header .line-consult a {
  background: linear-gradient(135deg, #62b662, #458e45) !important;
  color: #fff !important;
  padding: 0 10px !important;
  height: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 12px;
}

#fix_header .web-reserve a:hover,
#fix_header .line-consult a:hover{
  opacity: 0.8;
}

/* =========================================================
   6) 本文エリア：ボタン類（整理済み）
   ========================================================= */

/* =========================================================
   楕円ボタン（LINE / Web予約 / 電話 等）＋ ルート案内ボタン
   - 文字サイズ/字間/ホバー挙動/影を統一
   - 重複定義を整理
========================================================= */

/* --- ボタン外枠（必要なら使用） --- */
.oval-button-container{
  text-align:center;
  margin:10px 0;
}

/* --- 共通：ボタンのベース（形・文字・挙動） --- */
.btn-oval-gold,
.btn-oval-line,
.btn-oval-gray,
.btn-route-chic{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:60px;
  padding:10px 20px;

  border-radius:10px;          /* 基本は共通で楕円 */
  color:#fff !important;
  text-decoration:none !important;

  font-size:1.2rem;              /* ★ 文字サイズを統一 */
  font-weight:700;
  letter-spacing:0.02em;       /* ★ 字間を統一（見た目差をなくす） */

  transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease;
  box-shadow:0 4px 15px rgba(0,0,0,.2);  /* ★ 通常時の影も統一 */
}
@media (max-width: 767px){
  .btn-oval-gold,
  .btn-oval-line,
  .btn-oval-gray,
  .btn-route-chic{
    min-width: 110px;   /* ← ここが効く */
    padding: 12px 18px; /* 少し横を太らせる */
  }
}

/* --- 共通：アイコン（横並び時） --- */
.btn-oval-gold i,
.btn-oval-line i,
.btn-oval-gray i,
.btn-route-chic i{
  margin-right:8px;
  margin-bottom:0;
  font-size:1.3em;
  line-height:1;
  vertical-align:middle;
}

/* --- 共通：ホバー挙動 --- */
.btn-oval-gold:hover,
.btn-oval-line:hover,
.btn-oval-gray:hover,
.btn-route-chic:hover{
  opacity:.9;
  transform:translateY(-2px);
  box-shadow:0 6px 20px rgba(0,0,0,.3);
}

/* --- 各ボタンの色 --- */
.btn-oval-gold{
  background: linear-gradient(
    135deg,
    #2a4a73,
    #1f3a5f
  );
}

.btn-oval-line{
  background:linear-gradient(135deg,#62b662,#458e45) !important;
}
.btn-oval-gray{
  background: linear-gradient(
    135deg,
    #8a8a8a,
    #6b6b6b
  );
}
.btn-route-chic{
  max-width:320px;
  background: linear-gradient(
    135deg,
    #b9b0ab,
    #6E7378
  ) !important;
}

/* SWELL「もっと見る」ボタン色変更
 */

.is-style-more_btn .swell-block-button__link{
  background-color: #b9b0ab;
  color: #ffffff;
  border: none;

  transition: background-color .25s ease, opacity .25s ease;
}

.is-style-more_btn .swell-block-button__link:hover{
  background-color: #a79e98;
  opacity: 0.9;
}


/* =========================================================
   スマホ：3列（is-not-stacked-on-mobile）時だけ縦並び化：特徴３つ
========================================================= */
@media screen and (max-width:767px){

  .wp-block-columns.is-not-stacked-on-mobile .btn-oval-gold,
  .wp-block-columns.is-not-stacked-on-mobile .btn-oval-line,
  .wp-block-columns.is-not-stacked-on-mobile .btn-oval-gray{
    flex-direction:column;
    min-height:80px;
    padding:10px 2px;
    letter-spacing:-0.02em; /* 3列で詰まるので少し詰める（現状踏襲） */
  }

  /* 縦並び時のアイコン余白 */
  .wp-block-columns.is-not-stacked-on-mobile .btn-oval-gold i,
  .wp-block-columns.is-not-stacked-on-mobile .btn-oval-line i,
  .wp-block-columns.is-not-stacked-on-mobile .btn-oval-gray i{
    margin-right:0 !important;
    margin-bottom:5px !important;
  }

  /* カラムの余白を削って横幅を最大化 */
  .wp-block-columns.is-not-stacked-on-mobile{
    gap:4px !important;
  }
  .wp-block-columns.is-not-stacked-on-mobile .wp-block-column{
    padding:0 !important;
  }
}

/* =========================================================
賞状 横自動スライド
   ========================================================= */

/* 賞状：自動横スクロール（SWELL/ブロック構成に依存しにくい版） */
.award-marquee{
  overflow:hidden;
}

/* グループ内の“直下の並び”を横一列に固定 */
.award-marquee > .wp-block-group__inner-container{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:24px;
  will-change:transform;
  animation:award-marquee-scroll 28s linear infinite;
}

/* 画像ブロックを縮ませない */
.award-marquee .wp-block-image{
  flex:0 0 auto;
  margin:0;
}

/* 画像サイズ（必要なら調整） */
.award-marquee img{
  height:110px;
  width:auto;
  max-width:none;
}


@keyframes award-marquee-scroll{
  0%{ transform:translateX(0); }
  100%{ transform:translateX(-50%); }
}


/* =========================================================
   FAQ
   ========================================================= */
/* FAQ検索UI */
.yo-faq-search{
  margin: 1.2em 0 1.6em;
  padding: 1.0em;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: rgba(0,0,0,.02);
}
.yo-faq-search__row{
  display: flex;
  gap: .6em;
  align-items: center;
}
.yo-faq-search__input{
  flex: 1;
  padding: .8em .9em;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
}
.yo-faq-search__clear{
  padding: .8em 1.0em;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  cursor: pointer;
}
.yo-faq-search__chips{
  margin-top: .8em;
  display: flex;
  flex-wrap: wrap;
  gap: .5em;
}
.yo-faq-chip{
  padding: .5em .8em;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  cursor: pointer;
  font-size: .95em;
}
.yo-faq-search__hint{
  margin: .7em 0 0;
  font-size: .92em;
  opacity: .8;
}
.yo-faq-search__empty{
  margin: .7em 0 0;
  font-size: .95em;
}
@keyframes faq-focus {
  0% { background-color: #fff8e1; box-shadow: 0 0 20px #ffe082; }
  100% { background-color: transparent; box-shadow: none; }
}

/* リンクで飛んできたターゲット要素 */
.swell-block-faq__item:target,
.swell-block-faq dl > div:target {
  animation: faq-focus 2.5s ease-out; /* 2.5秒間じわっと光らせる */
  border: 2px solid #1f3a5f !important; /* 枠線をネイビーで強調 */
  border-radius: 8px;
  scroll-margin-top: 130px; /* ヘッダーに被らないよう余白を確保 */
  padding: 10px; /* 光る範囲を少し広げる */
}

/* ページ上部に戻るボタン（カスタマイズ） */
.yo-back-to-top {
  position: fixed;
  right: 5px; /* LINEボタンと横位置を合わせる */
  bottom: 135px; /* LINEボタン(70px + 56px + 余白)の上に配置 */
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #1f3a5f;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  z-index: 10000;
  opacity: 0; /* 最初は隠しておく */
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}

.yo-back-to-top.is-show {
  opacity: 1;
  visibility: visible;
}

.yo-back-to-top i {
  font-size: 24px;
}

/* スマホ以外での位置調整（必要に応じて） */
@media screen and (min-width: 769px) {
  .yo-back-to-top {
    bottom: 40px;
    right: 20px;
  }
}


/* =========================================================
   ボディマップ
   ========================================================= */


  /* ====== レイアウト基準（Coverの中身） ====== */
  .bodymap-wrap{
    position:relative;
    width:100%;
    height:100%;
    min-height:90vh;               /* スマホで縦の余白をしっかり確保 */
  }
  .bodymap-overlay{
    position:absolute; inset:0;
    pointer-events:none;           /* 空白はクリック透過 */
  }

  /* ====== ボタン（モバイルファースト） ====== */
.bodymap-spot{
  --size:80px;
  position:absolute;
  left:var(--x); top:var(--y);
  transform:translate(-50%,-50%);
  width:var(--size); height:var(--size);
  border-radius:50%;

  background:#fff;
  color:#1F3A5F;

  box-shadow:
    0 0 0 4px #1F3A5F inset,
    0 8px 20px rgba(0,0,0,.18);

  display:flex; align-items:center; justify-content:center;
  font-weight:700; font-size:14px; line-height:1.2;
  text-align:center; text-decoration:none; padding:6px;
  pointer-events:auto; outline:none;
  -webkit-tap-highlight-color:transparent; touch-action:manipulation;
}
.bodymap-spot:hover,
.bodymap-spot:focus-visible{
  background:#1F3A5F;
  color:#fff;
  box-shadow:
    0 0 0 4px #fff inset,
    0 10px 24px rgba(0,0,0,.28);
  filter:none;
}
  /* ====== タブレット（少し大きく） ====== */
  @media (min-width: 600px){
    .bodymap-spot{ --size:90px; font-size:16px; }
  }

  /* ====== PC（しっかり大きく） ====== */
  @media (min-width: 992px){
    .bodymap-wrap{ min-height:85vh; }   /* PCは少し低めでもOK */
    .bodymap-spot{ --size:110px; font-size:20px; }
  }



/* --- 全体レイアウト（右カラム用） --- */
.symptom-panel{
  max-width: 350px;   /* 好みで */
  margin: 0 auto;
  display: grid;
  gap: 1px;
}

/* 見出し：左カラムの見出しとトーン合わせ（ネイビーのライン） */
.symptom-heading::before{
  content:"";
  width: 4px; height: 22px;
  background: #1F3A5F;         /* ネイビー */
  border-radius: 2px;
  display: inline-block;
}

/* ボタンの集合（自動で整列） */
.symptom-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px){
  .symptom-grid{ grid-template-columns: 1fr; } /* 1列キープ（見やすさ優先） */
}

/* ピル型ボタン：左のコーラル丸に合わせた白フチ＋影 */
.symptom-btn{
  --bg: #fff;                 /* ← 白に */
  --fg: #1F3A5F;              /* ← 文字色を濃色に */

  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  color: var(--fg);
  background: var(--bg);
  padding: 14px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;

  box-shadow:
    0 0 0 3px #1F3A5F inset,   /* ← 濃色フチ */
    0 10px 24px rgba(0,0,0,.12);

  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease, background .2s ease, color .2s ease;
}
.symptom-btn:hover,
.symptom-btn:focus-visible{
  background: #1F3A5F;
  color: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 0 0 4px #fff inset,
    0 14px 30px rgba(0,0,0,.22);
  outline: none;
}

/* “選択中/注目”の強調版（上の一個だけ変えたい時に） */
.symptom-btn.is-accent{
  --bg: #0f2a5a;               /* ネイビーに反転 */
}

/* 文言が長いものの縮小 */
.symptom-btn.small{ font-size: 18px; }

@media (max-width:480px){
  .symptom-btn{ font-size: 18px; padding: 12px 18px; }
  .symptom-btn.small{ font-size: 18px; }
}

/* =========================
   Theme
   ========================= */
.sx-sorter{
  --sx-main:#1f3a5f;
  --sx-text:#555555;
  --sx-beige:#6f6a64;
  --sx-border:rgba(31,58,95,.14);
  --sx-shadow:0 10px 24px rgba(0,0,0,.07);
}

.sx-sorter,
.sx-sorter *{
  color:var(--sx-text);
}

/* =========================
   Layout
   ========================= */
.sx-grid{
  display:grid;
  gap:18px;
  grid-template-columns:1fr;
}
@media(min-width:900px){
  .sx-grid{ grid-template-columns:1fr 1fr; }
}

.sx-box{
  padding:18px;
  border:1px solid var(--sx-border);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,1), rgba(31,58,95,.02));
  box-shadow:var(--sx-shadow);
}

.sx-box h3{
  margin:0 0 16px 0;
  font-size:1.2rem;
  line-height:1.4;
  letter-spacing:.02em;
  color:var(--sx-main);
}

.sx-sorter > p{
  margin:0 0 18px 0;
  line-height:1.7;
  font-size:1.02rem;
}

.sx-sorter small{
  color:rgba(111,106,100,.92); /* ベージュ寄りのグレー */
}

/* =========================
   Symptom check (clickable)
   ========================= */
.sx-form label{
  display:flex;
  align-items:flex-start;
  gap:.65em;

  margin:8px 0;
  padding:10px 12px;

  border-radius:12px;
  border:1px solid rgba(31,58,95,.12);
  background:linear-gradient(180deg, rgba(255,255,255,1), rgba(31,58,95,.03));
  cursor:pointer;
  user-select:none;

  line-height:1.5;
  font-size:1.02rem;

  transition:
    transform .12s ease,
    box-shadow .12s ease,
    border-color .12s ease,
    background-color .12s ease;
}

/* hoverできる端末のみ */
@media (hover:hover){
  .sx-form label:hover{
    border-color:rgba(31,58,95,.22);
    box-shadow:0 8px 18px rgba(31,58,95,.10);
    transform:translateY(-1px);
  }
}

/* チェックされた行をわかりやすく */
.sx-form label:has(input[type="checkbox"]:checked){
  border-color:rgba(31,58,95,.35);
  background:linear-gradient(180deg, rgba(31,58,95,.08), rgba(255,255,255,1));
}

/* checkbox自体を大きく・押しやすく */
.sx-form input[type="checkbox"]{
  margin-top:.2em;
  width:20px;
  height:20px;
  flex:0 0 20px;
  accent-color:var(--sx-main);
}

/* キーボード操作 */
.sx-form label:focus-within{
  box-shadow:0 0 0 3px rgba(31,58,95,.18);
}

.sx-actions{ margin:14px 0 0; }

.sx-reset{
  padding:.55em 1.05em;
  border:1px solid rgba(31,58,95,.25);
  border-radius:999px;
  background:#fff;
  color:var(--sx-main);
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
@media (hover:hover){
  .sx-reset:hover{
    box-shadow:0 8px 18px rgba(31,58,95,.12);
    transform:translateY(-1px);
  }
}
.sx-reset:active{ transform:translateY(0); opacity:.85; }

/* =========================
  疾患
  チェック ========================= */


.sx-sorter .sx-disease-list{
  margin:10px 0 0 0 !important;      /* ← 左の“外側余白”を消す */
  padding-left:0 !important;         /* ← olのデフォルト対策 */
  padding-inline-start:0 !important; /* ← ブラウザ差分対策 */
  list-style:none;
}

.sx-disease-list li{
  margin:8px 0;
  line-height:1.45;
  counter-increment:sxRank;
}

/* 左に順位バッジ */
.sx-disease-list li a{
  position:relative;
  display:block;
  padding:12px 12px 12px 48px;
  border-radius:14px;

  text-decoration:none;
  color:var(--sx-text);

  border:1px solid rgba(31,58,95,.12);
  background:#fff;

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background-color .15s ease,
    border-color .15s ease;
}

/* バッジ（1,2,3...） */
.sx-disease-list li a::before{
  content:counter(sxRank);
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  width:26px;
  height:26px;
  border-radius:999px;
  display:grid;
  place-items:center;
  font-size:.9rem;
  font-weight:700;
  color:#fff;
  background:var(--sx-beige);
  box-shadow:0 6px 14px rgba(0,0,0,.10);
}

/* 1位：大 */
.sx-disease-list li:first-child a{
  font-size:1.18rem;
  font-weight:700;
  border-color:rgba(31,58,95,.28);
  background:linear-gradient(90deg, rgba(31,58,95,.10), rgba(255,255,255,1));
}
.sx-disease-list li:first-child a::before{
  background:var(--sx-main);
}

/* 2位：中 */
.sx-disease-list li:nth-child(2) a{
  font-size:1.08rem;
  font-weight:600;
  border-color:rgba(31,58,95,.20);
}
.sx-disease-list li:nth-child(2) a::before{
  background:rgba(31,58,95,.78);
}

/* 3位以下：通常（現状のまま） */

/* PC：ホバー時 */
@media (hover:hover){
  .sx-disease-list li a:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 22px rgba(0,0,0,.10);
    border-color:rgba(31,58,95,.22);
    background:#fbfbfb;
  }
}

/* スマホ：タップ時 */
.sx-disease-list li a:active{
  transform:scale(0.98);
}

/* キーボード操作 */
.sx-disease-list li a:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px rgba(31,58,95,.18);
}

/* =========================================================
 透過50%の白背景グループ 
   ========================================================= */


.bg-white{
  background: rgba(255, 255, 255, 0.8);
  padding: 2em;
  border-radius: 16px;
}

/* スマホ用 */
@media (max-width: 767px){
  .bg-white{
    width: 100%;
    border-radius: 0;
    padding-left: 1.2em;
    padding-right: 1.2em;
    border-radius: 16px;
  }
}

/* =========================================================
   問い合わせフォーム
   ========================================================= */
/* お問い合わせフォーム全体のデザイン */
.p-contact-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    border-radius: 12px;
}

/* 各項目のレイアウト */
.p-contact-item {
    margin-bottom: 24px;
}

/* ラベル（項目名）のデザイン */
.p-contact-label {
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 0.95em;
}

/* 必須ラベル */
.p-label-required {
    background: #e53935;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
}

/* 入力欄（テキストボックス・選択肢） */
.p-contact-field input[type="text"],
.p-contact-field input[type="email"],
.p-contact-field input[type="tel"],
.p-contact-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px; /* スマホでズームされないサイズ */
}

/* ラジオボタン（選択肢）のデザイン */
.p-contact-radio .wpcf7-list-item {
    margin: 5px 15px 5px 0;
    display: inline-block;
}

/* 送信ボタンのデザイン */
.p-contact-submit {
    text-align: center;
    margin-top: 30px;
}

.p-contact-submit input[type="submit"] {
    background: #1f3a5f; /* クリニックのキーカラー（青）に合わせて調整してください */
    color: #fff;
    font-weight: bold;
    padding: 15px 60px;
    border-radius: 50px; /* 丸みのある優しいボタン */
    border: none;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.2);
}

.p-contact-submit input[type="submit"]:hover {
    background: #004d99;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.3);
}

/* スマホ表示の調整 */
@media screen and (max-width: 768px) {
    .p-contact-form {
        padding: 15px;
    }
    .p-contact-submit input[type="submit"] {
        width: 100%;
    }
}

/* =========================================================
   7) スマホ固定ナビ（下部）
   ========================================================= */
.sp-footerbar{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index:9999;

  display:grid;
  grid-template-columns:repeat(4, 1fr);

  background:rgba(255,255,255,.95);
  backdrop-filter:blur(8px);
  border-top:1px solid rgba(0,0,0,.08);
}

.spfb-item{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  height:64px;
  text-decoration:none;
  font-weight:700;
  position: relative;
  overflow: hidden;
  transition:
    transform .12s ease,
    background-color .15s ease,
    box-shadow .15s ease;
}


/* アイコン共通：当時の「白デザイン」設定 */
.spfb-ico {
  font-size: 24px !important;
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}
.spfb-txt {
  font-size: 11px;
}
/* 押したときの反応（軽く） */
.spfb-item:active {
  opacity: 0.88;
}

/* 交互配色（濃い：#1F3A5F / 薄い：#EEF2F5） */
.spfb-hours,
.spfb-reserve {
  background: #1F3A5F !important;
}

.spfb-access,
.spfb-tel {
  background: #EEF2F5 !important;
}

/* 濃い背景の文字色 */
.spfb-hours .spfb-ico,
.spfb-hours .spfb-txt,
.spfb-reserve .spfb-ico,
.spfb-reserve .spfb-txt {
  color: #fff !important;
}

/* 薄い背景の文字色 */
.spfb-access .spfb-ico,
.spfb-access .spfb-txt,
.spfb-tel .spfb-ico,
.spfb-tel .spfb-txt {
  color: #1F3A5F !important;
}


/* ====== LINEミニ（右下固定）Appアイコン風 ====== */
.spfb-line-fab {
  position: fixed;
  left: 5px;
  bottom: 70px;
  z-index: 10001;

  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: #06C755;
  color: #fff;
  text-decoration: none;

  box-shadow: 0 12px 26px rgba(0,0,0,.18);
}

/* 中のアイコンの見え方（Fontアイコン想定） */
.spfb-line-fab i{
  font-size: 34px;
  line-height: 1;
}

/* 押したとき */
.spfb-line-fab:active{
  transform: translateY(1px);
  opacity: .92;
}


/* =========================================================
   9) ホバーするバナー（共通）
   ========================================================= */
.opening-banner {
  position: fixed;
  right: 50px;
  bottom: 40%;
  z-index: 9999;
  animation: float-y 3s ease-in-out infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.opening-banner a {
  display: block;
  background: #E8A3B5;
  color: #fff;
  padding: 18px 12px;
  border-radius: 50px;
  text-shadow:
  0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: 0 10px 25px rgba(215, 122, 147, 0.35);
  border: 2px solid #F6D9E1;
  transition: all 0.3s ease;
  text-align: center;
}

.banner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sub-text {
  font-size: 20px;
  letter-spacing: 0.05em;
  opacity: 0.9;
}

.main-text {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.insta-icon {
  margin-top: 5px;
  display: flex;
  align-items: center;
}

.opening-banner a:hover {
  background: #D77A93;
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}


/* =========================================================
   10) アクセス、診療時間（共通）
   ========================================================= */
.side-menu-right {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-btn {
  display: block;
  background: #1F3A5F;
  color: #fff;
  text-decoration: none;
  writing-mode: vertical-rl;
  padding: 15px 8px;
  font-size: 25px;
  font-weight: bold;
  border-radius: 5px 0 0 5px;
  transition: all 0.3s;
  line-height: 1;
}

.side-btn:hover {
  background: #c5a059;
  padding-right: 15px;
  color: #fff;
}


/* =========================================================
   8) 左下の診療時間
   ========================================================= */

/* 1. バナー全体の固定位置（最初は絶対に隠す） */
.time-banner-wrap {
    position: fixed;
    bottom: 25px;
    left: 0;
    z-index: 9999;
    display: none; /* ← ここは none のみにします */
    align-items: center;
}

/* 2. JSで判定が終わった後、このクラスがついた時だけ表示する */
.time-banner-wrap.is-active {
    display: flex;
}

/* スマホでは常に非表示 */
@media screen and (max-width: 959px) {
    .time-banner-wrap.is-active {
        display: none !important;
    }
}

/* 2. チェックボックスは隠す */
.banner-check {
    display: none;
}

/* 3. 診療時間の中身 */
.time-banner-content {
    background: #fff;
    border-top: 3px solid #1f3a5f;
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    width: auto;
    border-right: 1px solid #b9b0aa;
    color: #555555;
    /* スライド設定（滑らかに動かします） */
    transition: transform 0.4s ease, opacity 0.3s ease;
    transform-origin: left center;
}



/* チェックを入れた時（閉じた時） */
.banner-check:checked ~ .time-banner-content {
    transform: translateX(-100%);
    opacity: 0;
    position: absolute;
}



/* 4. 閉じるボタン（右端にくっついている部分） */
.banner-toggle {
    background: #b9b0aa; /* 最初はグレー */
    color: #fff;
    width: 32px;
    min-height: 120px; /* 縦幅をしっかり確保 */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 0 8px 8px 0;
    transition: background 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    position: relative;
    /* 中身が左に消えても、このボタンが左端に詰めるように margin を調整 */
    margin-left: 0; 
    transition: all 0.4s ease;
}

/* 5. 矢印のデザイン */
.arrow {
    font-size: 20px;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.4s ease;
}

/* --- 開閉の挙動（ここが肝です） --- */

/* チェックを入れた時：中身を左にスライドさせて隠す */
.banner-check:checked ~ .time-banner-content {
    transform: translateX(-100%); /* 自分の幅分、左へスライド */
    opacity: 0;
    position: absolute; /* 他の要素（ボタン）の配置に影響させない */
}

/* チェックを入れた時：ボタンを左端にピタッとくっつける */
.banner-check:checked ~ .banner-toggle {
    background: #1f3a5f; /* 閉じている時はメインカラー */
    margin-left: 0; /* contentがabsoluteになったので自動的に左端に来ます */
}

/* チェックを入れた時：矢印を反転させて大きくする */
.banner-check:checked ~ .banner-toggle .arrow {
    transform: rotate(180deg);
}

/* JavaScriptが読み込まれる前に一瞬表示されるのを抑止（任意） */
.banner-check:checked ~ .time-banner-content {
    transition: none !important; /* 読み込み時はアニメーションさせない */
}

/*
=========================================================
   8) 求人応募フォーム
   ========================================================= */
/* 志望理由の入力欄を横幅いっぱいに広げる */
.wpcf7-form textarea {
    width: 100%;
    max-width: 100%; /* 枠からはみ出すのを防ぐ */
    box-sizing: border-box; /* パディングを含めて100%にする */
}

/* =========================================================
   8) レスポンシブ統合・共通制御
   ========================================================= */


/* --- 固定ページのタイトル非表示、余白縮める --- */
.c-pageTitle{
  display: none !important;
  margin: 8px 0 8px !important;
  padding: 0 !important;
}

/* --- 固定ページ：本文上の余白を詰める（全固定ページ） --- */
.post_content{
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.l-mainContent.l-article{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.l-content{
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* --- PCサイズ（769px以上）の時のみ適用 --- */
@media screen and (min-width: 769px) {
  .sp-footerbar { display: none !important; }
	.pc-only{
  display: inline !important; }
}

/* --- タブレット・スマホ（959px以下） --- */
@media (max-width: 959px) {
  .u-reverse-sp>.swell-block-columns__inner {
    display: flex !important;
    flex-direction: column-reverse !important;
  }
}

/* --- スマホサイズ（768px以下）のみ適用 --- */
.sp-only {
  display: none !important;
}

@media screen and (max-width: 768px) {
  .pc-only,
  .side-menu-right {
    display: none !important;
  }

  .sp-only {
    display: block !important;
  }

  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  /* メインビジュアル */
  .p-mainVisual__slideTitle {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .p-mainVisual__slideText {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: 10vh;
  }

  .oval-button-container{
    padding: 0 16px;
  }

  /* 開院バナーのスマホ調整 */
  .opening-banner {
    right: 100px;
    bottom: 60px;

    transition:
      transform 0.55s cubic-bezier(.22,1,.36,1) 0.08s,
      top 0.3s ease,
      right 0.3s ease;
  }

  .opening-banner a {
    padding: 10px 12px;
    border-radius: 20px;
  }

  .sub-text {
    font-size: 15px;
  }

  .main-text {
    font-size: 20px;
  }

  .insta-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* スクロール後：PC/SP共通で右上＋縮小 */
html[data-scrolled="true"] .opening-banner {
  top: 136px;
  right: 0;
  bottom: auto;

  transform: scale(0.4);
  transform-origin: top right;

  animation: none;
}

/* Googleフォーム埋め込み：外枠デザイン */
.yo-recruit-form{
  max-width: 920px;
  margin: 0 auto;
  padding: 10px 0 40px;
}

.yo-recruit-form__head{
  margin: 0 auto 14px;
  padding: 18px 18px 6px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.yo-recruit-form__title{
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: .06em;
}

.yo-recruit-form__lead{
  margin: 0 0 10px;
  line-height: 1.8;
  color: rgba(0,0,0,.75);
}

.yo-recruit-form__notes{
  margin: 0;
  padding-left: 1.1em;
  color: rgba(0,0,0,.65);
  line-height: 1.8;
  font-size: .95rem;
}

.yo-recruit-form__card{
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 38px rgba(0,0,0,.08);
}

.yo-recruit-form__card iframe{
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #fff;
}
