@charset "UTF-8";
/* CSS Document */

/* ==========================================================================
   Variables & Base
   ========================================================================== */
:root {
  --primary-color: #17a2b8;
  --secondary-color: #ffc107;
  --accent-color: #e0f7fa;
  --accent-color2: #D6F4BC;
  --text-color: #495057;
  --theme-green: #2e6419;
  --theme-green-light: #b0eb56;
}
/* style.css に追加 */
html {
  /* ヘッダーの高さが 110px の場合 */
  scroll-padding-top: 110px; 
  
  /* ついでにスクロールを滑らかにする設定 */
  scroll-behavior: smooth;
}

html {
  overflow-x: hidden; 
}

body {
  font-family: "Kosugi Maru", "Helvetica Neue", Arial, sans-serif;
  color: var(--text-color);
  width: 100%;
  margin: 0;
  padding: 0;
}


main {
  display: block;
  width: 100%;
  overflow-x: hidden; 
}

/* Bootstrapのrowは左右に-15pxのマージンを持つため、これがはみ出しの原因になります */
.row {
  margin-right: 0;
  margin-left: 0;
}

/* Utilities */
.bg-green { background-color: var(--theme-green); }
.text-green { color: var(--theme-green); }
.rounded-4 { border-radius: 1rem !important; }


.transition-up { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.transition-up:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important; 
}
/* リンクのデフォルトスタイルを解除 */
.row.text-center a {
  text-decoration: none; /* 下線を消す */
  color: inherit;        /* 文字色を親要素に合わせる */
  display: block;        /* カード全体をリンク範囲にする */
}



/* ホバー時にタイトルだけ色を変える */
.row.text-center a:hover h4 {
  color: var(--theme-green);
  transition: color 0.3s ease;
}


.border-green {
	border-color: var(--theme-green-light)!important;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
h1 {
  font-size: 12px;
  font-weight: 400;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}
h1.lead {
  font-size: 22px;
  font-weight: 600;
	line-height: 1.4em;
}	

.navborder { border-top: solid 3px var(--theme-green); }
.tb-bottom { border-bottom: solid 1px var(--theme-green-light); }

.header-logo {
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--theme-green);
  line-height: 1.2;
}
.header-logo:hover {
  color: var(--theme-green);
}

.sm-nav-text {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
  .navbar { padding: 0.4rem 0 !important; }
  .header-logo { font-size: 1.5rem; }
  .navbar-toggler {
  border: none !important;      /* 枠線を消す */
  padding: 0;
  outline: none !important;     /* クリック時の青枠を消す */
  box-shadow: none !important;  /* Bootstrap特有の影を消す */
}
h1.lead {
  font-size: 16px;
  font-weight: 600;
	line-height: 1.4em;
	}
}

/* Mobile Phone Button */
.header-phone-btn {
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
  border-width: 2px;
  padding: 0;
  transition: all 0.3s ease;
}

.btn-outline-green {
  color: var(--theme-green);
  background-color: transparent;
  border-color: var(--theme-green);
}

.btn-outline-green:hover,
.btn-outline-green:active {
  color: #fff !important;
  background-color: var(--theme-green) !important;
  border-color: var(--theme-green) !important;
  transform: scale(1.05);
}

/* Hamburger Icon Custom */
.toggler-icon {
  width: 30px;
  height: 3px;
  background-color: var(--theme-green);
  display: block;
  position: relative;
  transition: all 0.3s;
}
.toggler-icon::before, .toggler-icon::after {
  content: "";
  width: 30px;
  height: 3px;
  background-color: var(--theme-green);
  display: block;
  position: absolute;
  transition: all 0.3s;
	border: none !important;      /* アイコン自体に枠線がつかないように */
}
.toggler-icon::before { top: -9px; }
.toggler-icon::after { top: 9px; }
.navbar-toggler[aria-expanded="true"] .toggler-icon { background: transparent; }
.navbar-toggler[aria-expanded="true"] .toggler-icon::before { transform: rotate(45deg); top: 0; }
.navbar-toggler[aria-expanded="true"] .toggler-icon::after { transform: rotate(-45deg); top: 0; }

/* --- 全体共通（スマホ優先：極力シンプルに） --- */
.dropdown-toggle::after {
  display: none !important; /* 標準の右矢印は常に消す */
}

.arrow-icon {
  font-size: 0.8rem;
  color: var(--theme-green);
  /* スマホでは回転させず、固定にするのが一番安定します */
}

/* --- PC表示（992px以上）のみリッチな挙動にする --- */
@media (min-width: 992px) {
  /* マウスオーバーで開くように設定（クリックミス防止） */
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }
  
  /* PCでのみ矢印を回転させる */
  .arrow-icon {
    transition: transform 0.3s ease;
  }
  
  .nav-item.dropdown:hover .arrow-icon {
    transform: rotate(90deg);
  }
}

@media (max-width: 991.98px) {
  /* スマホ時はアコーディオン形式（縦並び）に強制 */
  .dropdown-menu {
    display: none; /* 初期は非表示 */
    position: static !important;
    width: 100%;
    background-color: #f8f9fa !important;
    border: none !important;
    padding-left: 1.5rem !important;
  }

  /* showクラスがついたら表示 */
  .dropdown-menu.show {
    display: block !important;
  }
}

/* PC表示（992px以上）ではマウスホバーで開くようにして利便性を確保 */
@media (min-width: 992px) {
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block;
  }
}
@media (max-width: 991.98px) {
  /* 1. メニュー全体の配置を左揃えに強制 */
  .navbar-nav {
    align-items: flex-start !important; /* 中央寄せを解除して左揃えに */
    text-align: left !important;
    width: 100%;
    padding: 0;
  }

  /* 2. 各メニュー項目（.nav-item）の幅をいっぱいにする */
  .navbar-nav .nav-item {
    width: 100%;
    border-bottom: 1px solid #eee; /* 区切り線 */
  }

  /* 3. 各リンク（.nav-link）の文字位置と左余白 */
  .navbar-nav .nav-link {
    padding: 1.2rem 1.5rem 1.2rem 2rem !important; /* 左の余白を 2rem に広げる */
    width: 100%;
    display: flex;
    justify-content: flex-start !important; /* 左側に寄せる */
    align-items: center;
    color: var(--text-color) !important;
  }

  /* 4. ドロップダウン（診療案内）の右側矢印の位置調整 */
  .nav-link.dropdown-toggle {
    justify-content: flex-start !important; /* 文字は左寄せ */
    position: relative;
  }

  /* 診療案内の中身（子要素）をさらに左に寄せる、または揃える */
  .dropdown-menu {
    background-color: #f1f8ed !important;
    padding: 0 !important;
  }

  .dropdown-item {
    /* 親要素の 2rem に合わせて、さらに 1rem 深くする（計 3rem） */
    padding: 1rem 1.5rem 1rem 3rem !important; 
    border-bottom: 1px solid rgba(0,0,0,0.03);
    color: var(--theme-green) !important;
  }

  /* 5. WEB予約ボタンを特別扱いせず、左揃えのリストに馴染ませる場合 */
  .navbar-nav .nav-item .btn {
    text-align: left !important;
    border: none !important;
    padding: 1.2rem 2rem !important; /* 他のリンクと同じ余白に */
    width: 100%;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex;
    justify-content: flex-start;
  }
}
/* PC表示（992px以上）の時だけホバー機能を強制する */
@media (min-width: 992px) {
  /* マウスを乗せた時にメニューを表示 */
  .nav-item.dropdown:hover > .dropdown-menu {
    display: block !important;
    visibility: visible;
    opacity: 1;
    margin-top: 0; /* 位置の微調整 */
  }

  /* ホバー時、親の「診療案内」の色や矢印の向きを調整したい場合 */
  .nav-item.dropdown:hover > .nav-link {
    color: var(--theme-green) !important;
  }
}
/* ==========================================================================
   Hero Section (Carousel)
   ========================================================================== */
.carousel-item { height: 500px; }
.hero-bg {
  height: 100%;
  width: 100%;
  background-position: center;
  background-size: cover;
}

@media (max-width: 768px) {
  .carousel-item { height: 350px; }
}

.carousel-caption {
  bottom: 15%;
  color: #ffffff !important;
  /* 1：上下左右に1ピクセルの黒いフチ（輪郭）を作る */
  /* 2：最後に少し離れた位置に柔らかな影（シャドウ）を落とす */
  /* 鮮やかな緑（#28a745）で文字を囲み、最後に薄いシャドウを落とします */
  text-shadow: 
    1.5px  1.5px 0px #2e6419,
   -1.5px  1.5px 0px #2e6419,
    1.5px -1.5px 0px #2e6419,
   -1.5px -1.5px 0px #2e6419,
    0px    1.5px 0px #2e6419,
    0px   -1.5px 0px #2e6419,
    1.5px  0px   0px #2e6419,
   -1.5px  0px   0px #2e6419,
    2px    2px   4px rgba(0, 0, 0, 0.4) !important; /* 写真に馴染む薄い影 */
}
/* ==========================================
   1. PC用の設定（画面が広い時）
   ========================================== */
@media (min-width: 992px) {
  .carousel-caption {
    bottom: 20%;      /* PCは下からの位置で調整（元の位置に戻す） */
    top: auto;        /* 上基準を解除 */
    transform: none;  /* 位置補正を解除 */
  }
  .carousel-caption h2 {
    font-size: 3rem;  /* PC用の大きなサイズ（必要に応じて調整） */
  }
  .carousel-caption p {
    font-size: 1.5rem;
  }
}

/* ==========================================
   2. スマホ用の設定（画面が狭い時：991.98px以下）
   ========================================== */
/* スマホ時のスライド画像の高さを整える */
@media (max-width: 767.98px) {
  .carousel-item img {
    height: 450px;      /* スマホで見やすい高さに固定 */
    object-fit: cover;  /* 画像を切り抜いて枠いっぱいに表示 */
    object-position: center; /* 中央を中心に切り抜き */
  }
}
/* PC（992px以上）での設定 */
@media (min-width: 992px) {
  .carousel-item {
    height: 70vh; /* 画面の高さの70%にする（もっと高くするなら80vhなど） */
    min-height: 500px; /* あまりに画面が低い時でも最低限の高さを確保 */
  }

  .carousel-item img {
    height: 100%;
    object-fit: cover; /* 画像を歪ませず、枠いっぱいに広げて切り抜く */
    object-position: center; /* 中央を基準に表示 */
  }
}

/* さらに大きな画面（1400px以上）でより高くする場合 */
@media (min-width: 1400px) {
  .carousel-item {
    height: 80vh; /* 大画面ではより迫力を出す */
  }
}
@media (max-width: 991.98px) {
  .carousel-caption {
    /* 位置と中央揃えの設定（維持） */
    bottom: auto !important;
    top: 72% !important;
    transform: translateY(-50%) !important;
    width: 90%;
    left: 5%;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background: none !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7), 0 0 10px rgba(0, 0, 0, 0.4);
  }

  /* --- 文字サイズの調整 --- */
  .carousel-caption h2 {
    font-size: 1.4rem !important;      /* タイトル：大きすぎず目を引くサイズ */
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
    width: 100% !important;
  }

  .carousel-caption p {
    font-size: 0.95rem !important;     /* 本文：1rem弱にするとスッキリ読みやすくなります */
    line-height: 1.5;
    width: 100% !important;
    margin-bottom: 0;
  }

  /* ボタンがある場合のサイズ調整 */
  .carousel-caption .btn {
    font-size: 0.85rem !important;
    padding: 8px 20px !important;
    margin-top: 15px !important;
  }
}




/* ==========================================================================
   Components
   ========================================================================== */
.table-vcenter td, .table-vcenter th { vertical-align: middle; }


/* ==========================================================================
   Google Map
   ========================================================================== */
.map-responsive {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 の比率 */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;    /* 角を丸くする（サイトのデザインに合わせる） */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); /* 軽い影をつけて浮かせる */
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
}

/* スマホでは地図の高さを少し出す（黄金比に近くする） */
@media (max-width: 768px) {
  .map-responsive {
    padding-bottom: 75%; /* 4:3 の比率にして縦幅を確保 */
  }
}
/* 初期状態では地図への操作を無効にする */
.map-responsive iframe {
  pointer-events: none;
}

/* 地図の親要素をクリックした時、またはホバーした時だけ操作可能にする */
.map-responsive:active iframe,
.map-responsive:focus iframe {
  pointer-events: auto;
}
/* アクセス項目の基本設定 */
.access-item {
  position: relative;
}

/* PC時の右側の縦ライン（中央の区切り） */
@media (min-width: 768px) {
  .access-item.border-end-md {
    /* 必要に応じて左側にクラスを追加して使用してください */
  }
  
  /* 左側の項目の右側にラインを引く */
  .access-item:first-child {
    border-right: 1px solid #eee;
    padding-right: 3rem;
  }
}

/* スマホ時の左側の縦ライン（アクセント） */
@media (max-width: 767.98px) {
  .access-item {
    border-left: 3px solid var(--theme-green-light); /* 太めの薄い緑ライン */
    padding-left: 1.25rem;
    margin-left: 0.5rem;
  }
  
  .access-item h5 {
    font-size: 1.1rem;
  }
  
  .access-item p {
    font-size: 0.9rem;
  }
}

/* 共通：アイコンの色味調整 */
.access-item i {
  opacity: 0.8;
}
/* ==========================================================================
   Footer
   ========================================================================== */
/* フッター */
    .custom-footer {
      background: linear-gradient(to bottom, #f0faff 0%, #e0f7fa 100%);
      position: relative;
      padding-top: 5rem;
    }
    .footer-wave { position: absolute; top: 0; left: 0; width: 100%; line-height: 0; }
    .footer-wave svg { display: block; width: 100%; height: 60px; }
    .footer-wave .shape-fill { fill: #ffffff; }
    .footer-logo { font-size: 1.5rem; letter-spacing: 1px;line-height: 1.2; }
    .footer-link { color: #666; text-decoration: none; transition: color 0.3s; font-size: 0.95rem; }
    .footer-link-green { color: var(--theme-green); text-decoration: none; transition: color 0.3s; font-size: 0.95rem; }
    .footer-link:hover { color: var(--primary-color); }

/* 駐車場情報のスタイル */
.footer-parking {
  font-size: 0.95rem; /* 住所より少しだけ控えめに */
  color: #555;
}

.footer-parking strong {
  color: var(--theme-green); /* 台数を強調 */
  font-weight: bold;
}

/* スマホでは中央、PCでは左寄せ（現在のフッター設定に合わせる） */
@media (max-width: 991.98px) {
  .footer-parking p {
    justify-content: center !important;
  }
}
/* スマホ時のみ、固定ボタンに隠れないよう余白を作る */
@media (max-width: 991.98px) {
  footer, .custom-footer {
    /* 固定ボタンの高さに合わせて調整（例: 80px） */
    padding-bottom: 80px !important;
  }
}
@media (max-width: 991.98px) {
  /* フッター全体の余白を半分くらいに減らす */
  .custom-footer {
    padding-top: 2.5rem !important;   /* 5remから半分に */
    padding-bottom: 70px !important; /* 固定ボタンに隠れない最低限の余白 */
  }

  /* 波のデザインがある場合、その高さを抑える */
  .footer-wave svg {
    height: 35px !important; /* 60pxから縮小 */
  }

  /* 診療時間テーブルや住所などの間のマージンを詰める */
  .custom-footer .mt-4, 
  .custom-footer .my-5 {
    margin-top: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .footer-logo {
    font-size: 1.2rem; /* ロゴも少しだけ小さくして密度を上げる */
  }
}
@media (max-width: 991.98px) {
  /* コピーライト（クレジット）の文字を小さくする */
  .custom-footer small,
  .custom-footer .copyright {
    font-size: 0.65rem !important; /* 0.7rem前後がバランス良く、かつ読める限界です */
    letter-spacing: 0.02em;        /* 少しだけ文字間を広げると小さくても読みやすい */
    opacity: 0.8;                  /* 少し薄くするとメイン情報と差がついてスッキリします */
    display: block;
    padding-bottom: 5px;           /* 下側の微調整 */
  }

  /* 下部の余白も再調整してスカスカ感を完全に排除 */
  .custom-footer {
    padding-bottom: 75px !important; /* 固定ボタンの高さ＋αにギュッと詰める */
  }
}
/* ==========================================================================
   Back to Top Button
   ========================================================================== */
#backToTop {
  position: fixed;
  bottom: 100px;
  right: 20px;
  width: 50px;
  height: 50px;
  z-index: 1050;
  border: none;
  font-size: 24px;
  background-color: var(--theme-green);
  color: #fff;
  display: none; /* JSで制御 */
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
}

#backToTop.visible {
  display: flex;
  opacity: 1;
}

#backToTop:hover { transform: scale(1.1); }

@media (max-width: 991.98px) {
  #backToTop { bottom: 110px; }
}


/* スマホ表示時の強制設定 */
@media (max-width: 767.98px) {
    #page-top {
        display: block !important; /* display: none が効いてしまっている場合に強制表示 */
        right: 15px; /* スマホでは少し内側に */
        bottom: 25px; 
        width: 45px;
        height: 45px;
        /* タップしやすいように少し不透明度を上げる */
        background-color: rgba(var(--theme-green-rgb), 0.8);
    }
}

/* ==========================================================================
   Secondary Pages (展開ページ用)
   ========================================================================== */

/* 1. ページヘッダー（共通のメインビジュアル） */
/*.page-header {
  background: linear-gradient(135deg, var(--theme-green) 0%, var(--theme-green-light) 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}*/
.page-header {
  /* ▼ここを修正▼ */
  background-image: 
    /* 上に重ねる透過画像 */
    url('../img/bg.png'),
    /* 下に敷く現在のグラデーション色 */
    linear-gradient(135deg, var(--theme-green) 0%, var(--theme-green-light) 100%);
  
  /* 画像の表示設定（リピートさせるか、中央に置くかなど） */
  background-repeat: repeat;      /* 画像がパターンならrepeat、1枚絵ならno-repeat */
  background-position: center;    /* 画像の中心を合わせる */
  background-size: auto;          /* パターン画像ならauto、全体に広げるならcover */
  
  /* ▲ここまで▲ */
  
  position: relative;
  overflow: hidden;
  color: #fff;
  /* 上下の余白（適宜調整） */
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}
.page-header h1 {
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

/* 2. パンくずリスト */
.breadcrumb {
  background: transparent;
  padding: 0;
}

.breadcrumb-item a {
  color: #fff;
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.3s;
}

.breadcrumb-item a:hover {
  opacity: 1;
}

.breadcrumb-item.active {
  color: #fff !important;
  opacity: 1;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: #fff;
  opacity: 0.5;
  content: ">"; /* 矢印をシンプルに */
}

/* 3. サイドバーの固定（sticky-top）対策 */
/* stickyを機能させるため、親要素のoverflowをリセット */
main, section, .row, aside {
  overflow: visible !important; 
}

/* ヘッダーのstickyと被らないように位置を調整 */
aside .sticky-top {
  top: 110px !important; /* ヘッダーの高さ + 余白 */
  z-index: 100;
}

/* 4. 本文の装飾（診療案内など） */
.text-green.border-start {
  border-width: 5px !important;
  border-color: var(--theme-green) !important;
  font-weight: bold;
}

/* リスト形式の補足ボックス */
.bg-light.rounded-4 {
  border: 1px solid rgba(0,0,0,0.05);
}

.bi-dot {
  font-size: 1.5rem;
  color: var(--theme-green);
  vertical-align: middle;
}

/* 5. スマホ・タブレット表示の微調整 */
@media (max-width: 991.98px) {
  .page-header {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    text-align: center;
  }
  
  .page-header h1 {
    font-size: 1.8rem;
  }

  .breadcrumb {
    justify-content: center;
  }

  /* スマホではサイドバーが下に回るためstickyを解除 */
  aside .sticky-top {
    position: static !important;
    width: 100%;
  }
}

/* 6. 診療時間テーブル（サイドバー用） */
aside .table {
  font-size: 0.8rem;
}

aside .table th, 
aside .table td {
  padding: 8px 2px !important;
}

/* 休診日の「／」を少し薄くする */
td:contains("／"), td:empty {
  color: #ccc;
}
/* サイドバー内のテーブル文字サイズを調整 */
aside .table {
  font-size: 0.85rem; /* 全体の文字サイズを少し底上げ */
}

/* 診療時間の「○」や「／」を強調する */
aside .table td {
  font-size: 1.5rem; /* 記号を大きく */
  font-weight: bold; /* 太くして視認性をアップ */
  line-height: 1;    /* 高さを抑えて中央に配置 */
}

/* 受付時間の数値だけは小さく戻す（記号に引っ張られないように） */
aside .table td.small {
  font-size: 0.75rem !important;
  line-height: 1.2;
}

/* 「○」の色を少しハッキリさせる（お好みで） */
.text-info.fw-bold {
  color: #17a2b8 !important; /* よりクッキリした青緑へ */
}
/* 休診の「／」を薄く細くする設定 */
aside .table td.text-off {
  color: #ccc !important;    /* 薄いグレーにする */
  font-weight: 300 !important; /* フォントを細くする（ブラウザの対応範囲で） */
  font-size: 0.9rem;          /* ○よりも少し小さくして存在感を抑える */
  opacity: 0.6;               /* 透明度を下げてさらに馴染ませる */
}

/* 受付時間の列や「○」の列とのメリハリをつける */
aside .table td:not(.text-off) {
  /* ○のほうは引き続きハッキリと */
  font-weight: bold;
}

/* ステップ表示の装飾 */
.step-num {
  display: inline-block;
  background-color: var(--theme-green);
  color: #fff;
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 1.1rem;
}

.step-container .col-md-4 {
  position: relative;
}
.step-container .col-md-3 {
  position: relative;
}
.step-container-fever .col-md-4 {
  position: relative;
}
/* PC時のみステップの間に矢印を表示 */
@media (min-width: 768px) {
  .step-container .col-md-4:not(:last-child)::after {
    content: "\F138"; /* Bootstrap Iconの矢印 */
    font-family: "bootstrap-icons";
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    color: var(--theme-green-light);
    font-size: 1.5rem;
	  z-index: 1002 !important;
  }
	.step-container .col-md-3:not(:last-child)::after {
    content: "\F138"; /* Bootstrap Iconの矢印 */
    font-family: "bootstrap-icons";
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    color: var(--theme-green-light);
    font-size: 1.5rem;
	  z-index: 1002 !important;
  }
	
  .step-container-fever .col-md-4:not(:last-child)::after {
    content: "\F138"; /* Bootstrap Iconの矢印 */
    font-family: "bootstrap-icons";
    position: absolute;
    top: 50%;
    right: -10px;
    transform: translateY(-50%);
    color: #d9534f;
    font-size: 1.5rem;
	  z-index: 1002 !important;
  }
}

/* モバイル用の余白調整 */
@media (max-width: 767.98px) {
  .step-container .col-md-4 {
    margin-bottom: 1rem;
  }
	.step-container-fever .col-md-4 {
    margin-bottom: 1rem;
  }
}
@media (max-width: 767.98px) {
  /* セクション全体の上下余白を縮小 */
  section.container.my-5,
  .my-5 {
    margin-top: 2rem !important;
    margin-bottom: 2rem !important;
  }
  
  section.container.py-4,
  section.container.py-5,
  .py-5 {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }

  /* 見出し下の余白を詰める */
  .mb-5 {
    margin-bottom: 1.5rem !important;
  }
  
  .mb-4 {
    margin-bottom: 1rem !important;
  }

  /* 導入文のテキストサイズと余白 */
  .text-center.mb-5 p {
    font-size: 0.95rem;
    line-height: 1.5;
  }
}

/* 注意事項ボックスのスタイル */
.notice-box {
  background-color: #fffafb; /* ほんの少し赤みを入れて注意を促す */
  border-color: #f8d7da !important; /* 薄い赤のボーダー */
}

.notice-box h4 {
  letter-spacing: 0.05em;
}

.notice-box ul li {
  margin-bottom: 0.5rem;
}

.notice-box ul li:last-child {
  margin-bottom: 0;
}

/* スマホ表示時の余白削減 */
@media (max-width: 767.98px) {
  /* 持ち物リストと注意事項の間の隙間を詰める */
  .bg-light.mb-5 {
    margin-bottom: 1rem !important;
  }
  
  /* 注意事項ボックス自体の上下余白 */
  .px-2.mb-5 {
    margin-bottom: 2.5rem !important;
  }

  .notice-box {
    padding: 1rem !important;
  }
  
  .notice-box ul {
    font-size: 0.85rem; /* スマホでは文字を少し小さくして密度を上げる */
  }
}
/* ==========================================================================
   Secondary Pages (発熱外来)
   ========================================================================== */

.bg-fever { background-color: #fff9f8; } /* わずかに赤みのある背景で注意を促す */
    .text-fever { color: #d9534f; } /* 警告・注意の赤系 */
    .border-fever { border-color: #d9534f !important; }
    .btn-fever { background-color: #d9534f; color: white; border-radius: 50px; }
    .btn-fever:hover { background-color: #c9302c; color: white; }

/* ==========================================================================
   Secondary Pages (よくある質問)
   ========================================================================== */
.faq-category-title {
      background-color: #f8f9fa;
      border-left: 5px solid #28a745;
      padding: 0.75rem 1rem;
	font-size: 1.2rem;
      font-weight: bold;
      margin-top: 3rem;
      margin-bottom: 1.5rem;
    }
    .accordion-button:not(.collapsed) {
      background-color: #e9f7ef;
      color: #28a745;
    }
    .accordion-button:focus {
      border-color: #28a745;
      box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
    }
    .q-icon {
      color: #28a745;
      font-weight: bold;
      margin-right: 0.5rem;
    }
@media (max-width: 767.98px) {
	.faq-category-title {
      padding: 0.75rem .8rem;
	font-size: 1rem;
      font-weight: bold;
      margin-top: 1.5rem;
      margin-bottom: 1rem;
    }
}


/* ======================================================================
   診療内容タブボタン カスタマイズ（枠色#2e6419 / センター配置 / 右端太矢印）
====================================================================== */

/* 8つのボタン共通：枠線を#2e6419の2px、位置基準をrelativeに */
.col-6 a .bg-white.border {
    border: 2px solid #2e6419 !important; /* 指定の深緑カラー */
    background-color: #ffffff !important;
    position: relative !important;        /* 矢印を右端に固定するための基準設定 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;  /* 項目名を完全にセンターへ配置 */
    padding: 14px 14px !important;       /* 上下余白を少し広げて押しやすく */
    border-radius: 6px !important;
    transition: all 0.25s ease !important;
}

/* ボタンの中の文字（項目名：センター配置） */
.col-6 a .bg-white.border h6 {
    color: #2e6419 !important;            /* 文字色も枠線と統一 */
    font-weight: bold !important;
    font-size: 14px;
    margin: 0 !important;
    letter-spacing: 0.05em;
    text-align: center;
}

/* 右端に固定する太めの矢印アイコン */
.col-6 a .bg-white.border .bi-arrow-right {
    color: #2e6419 !important;
    position: absolute !important;
    right: 14px !important;              /* 右端から14pxの位置に固定 */
    font-size: 16px;                     /* サイズをアップ */
    -webkit-text-stroke: 1px #2e6419;    /* ★線をさらに太くするプロパティ（本番でもよく使われます） */
    font-weight: 900 !important;         /* 限界まで太く */
    transition: all 0.25s ease !important;
}

/* マウスを乗せたとき（ホバー時）のインタラクション */
.col-6 a:hover .bg-white.border {
    background-color: #2e6419 !important; /* 背景を指定の深緑に染める */
    box-shadow: 0 4px 12px rgba(46, 100, 25, 0.2) !important;
    transform: translateY(-2px);         /* ひょこっと浮き上がる */
}

/* ホバー時に中の文字と矢印を白く反転 */
.col-6 a:hover .bg-white.border .bi-arrow-right {
    color: #ffffff !important;
	-webkit-text-stroke: 1px #ffffff;   /* 白反転時も太さをキープ */
}

.col-6 a:hover .bg-white.border h6{
    color: #ffffff !important;
}