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

/* ナビゲーションバー全体の余白（上下のパディング） */
.custom-navbar {
  padding-top: 30px !important;
  padding-bottom: 0px !important;
  background-color: #f5d6d3 !important; /* 背景色 */
}

/* ロゴ・ブランド名の文字サイズと色 */
.custom-navbar .navbar-brand {
  font-size: 24px;
  color: #ff5722 !important;
  margin-top: 0px;
}

/* メニュー全体の文字サイズと文字色 */
.custom-navbar .nav-link {
  font-size: 14px;
  color: #c87878 !important;
}

/* マウスホバーの文字色 */
.custom-navbar .nav-link:hover {
  color: #ffffff !important;
}

/* リンク同士の左右の間隔（余白） */
.custom-navbar .nav-item {
  margin-left: 15px;
  margin-right: 0px;
}

/* 画面幅がPCサイズ（992px以上）の時だけホバーで開閉させる */
@media (min-width: 992px) {
  .navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* 位置の微調整（必要に応じて） */
  }
}

/* ドロップダウンメニュー全体の背景色と文字色 */
.custom-dropdown {
  background-color: #ffffff !important;
}

/* 各項目の文字色とホバー時の色 */
.custom-dropdown .dropdown-item {
  color: #c87878 !important;
}
.custom-dropdown .dropdown-item:hover,
.custom-dropdown .dropdown-item:focus {
  background-color: #c87878 !important;
  color: #ffffff !important;
}

/* 三角マークを消す */
.navbar .dropdown-toggle::after {
  display: none !important;
}

/* 💡 【新設】PCサイズ（992px以上）の時だけ、メニュー全体の塊を右に押し出す設定 */
@media (min-width: 992px) {
  .navbar-nav {
    /* 💡 左側に大きなマージン（余白）を作って、メニュー全体の塊を右側へグッと押し出します */
    margin-left: 19px;       /* 💡 この数字を大きくするとさらに右へ移動し、小さくすると左（ロゴ側）に戻ります */
  }
}

/* --- 【修正】navbar-brandの背景色とサイズ（スマホ対応化） --- */
.navbar .custom-brand {
	background-color: #eeafb2 !important;
	color: #000000 !important;
	/* 固定幅（width: 280px）を削除し、最大幅を設定して画面からはみ出さないようにする */
	width: 100%;
	max-width: 280px;
	height: 76px;
	/* 中央揃えから「右下揃え」に変更 */
	align-items: flex-end !important;
	justify-content: flex-end !important;
	padding-right: 0px; /* 右側に少し余白を作る */
	padding-bottom: 0px; /* 下側に少し余白を作る */
	/* 位置ズレの大きなマイナスマージンを廃止し、下揃えに最適化 */
	margin-top: -30px; /* パディング30pxを打ち消して上にくっつける */
	margin-left: -12px;
	margin-bottom: -3px;
	padding-top: 24px;
	padding-left: 30px;
}

/* ナビゲーションバーの下に3pxの白いラインを追加 */
.navbar {
  border-bottom: 3px solid #ffffff;
}

body {
	background-color: #f5d6d3 !important;
	padding-bottom: 0px;
	margin-right: 0px;
	right: 20px;
}

/* スマホ画面（991px以下）の時だけ、メニューを白ラインの下に浮かせる設定 */
@media (max-width: 991.98px) {
  #navbarNav {
    position: absolute !important;
    top: calc(100% + 3px);
    left: 0;
    width: 100%;
    z-index: 1050;
  }
}

/* スマホ画面（991px以下）の時だけ、トグルボタンの位置を少し上げる */
@media (max-width: 991.98px) {
  .navbar-toggler {
    transform: translateY(-10px); /* 💡 マイナスの数値で上に上がります */
  }
}

/* スマホ画面（991px以下）の時だけ、トグルボタンの背景色を変更する */
@media (max-width: 991.98px) {
  .navbar-toggler {
    background-color: #eeafb2 !important; /* 💡 背景色を eeafb2 に指定 */
    border-color: #eeafb2 !important;     /* 💡 枠線の色も同じにして馴染ませる */
  }
}

  /* 全体を包む大元の行：左右の縦の長さを同期させます */
  .main-flex-row {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important; /* 右側（お知らせ）の長さに合わせて、左の箱を床までびよーんと伸ばします */
    width: 100% !important;
  }

  /* 左ブロック：実体のある「280pxの箱」としてカチッと固定 */
  .main-left-block {
    width: 280px !important;
    max-width: 280px !important;    
    min-width: 280px !important;    
    flex: 0 0 280px !important;    
    box-sizing: border-box !important;
    background-color: #eeafb2 !important; /* 全体を埋める濃いピンクの背景色 */
  }

  /* 💡 2枚の画像が入っている箱（縦並びの自動クッション構造にします） */
  .leftpic {
    width: 100% !important;
    height: 100% !important;        /* 右側と同じ長さに100%同期 */
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    
    /* 💡 複雑な絶対配置をやめ、縦に要素を並べるクッションレイアウトに変更 */
    display: flex !important;
    flex-direction: column !important;
  }

  /* 箱の中の2枚の画像共通設定（巨大化を100%防ぎます） */
  .leftpic img {
    width: 280px !important;        /* 画像の横幅を280pxに直接指定 */
    max-width: 280px !important;
    height: auto !important;
    display: block !important;
    flex-shrink: 0 !important;      /* 💡 縮められて画像が潰れるのを絶対に防ぐ設定 */
  }

  /* 💡 1枚目の画像（left01.jpg） */
  .leftpic img:first-child {
    /* 1枚目の画像の下に、自動で伸び縮みする「透明なクッション（余白）」を挟みます */
    margin-bottom: auto !important; 
    
    /* 💡 【セーフティ】お知らせが短いときに最低限あけたい2枚の間の隙間です */
    padding-bottom: 5px !important; 
  }

  /* 💡 2枚目の画像（left02.jpg / インスタ画像） */
  .leftpic img:last-child {
    margin-bottom: 0 !important;   /* フッターにピッタリ密着させます */
  }

/* --- 【追加】左側固定画像（left02.jpg）のリンクスポット設定 --- */
.leftpic {
  position: relative; /* 💡 リンクスポットをこのブロック基準で配置するために必須 */
}

.left-link-spot {
	position: absolute;
	z-index: 20; /* 念のため手前に来るように少し大きめの数値を設定 */
	/* 💡 画像の右下ぴったりに配置 */
	bottom: 2%;
	right: 10%;
	/* 💡 リンクのサイズ（％で調整してください） */
	width: 40%;  /* 横幅：画像全体の40%分の広さ */
	height: 135px; /* 縦幅：画像全体の25%分の広さ */
	/* background: rgba(255, 0, 0, 0.4); */
}

/* --- スライドショー右側（カルーセルブロック） --- */
.main-right-block {
  width: 650px !important;     /* 通常時は幅を650pxに固定 */
  max-width: 100% !important;  /* 【修正】スマホ等で画面幅が狭くなったら自動縮小する */
  padding: 0 !important;
  margin: 0 !important;
}
.migipic {
  width: 100%;
  height: auto;
}

/* カルーセルの画像設定 */
.carousel-item img {
  width: 100%;
  height: auto;
  border-bottom-right-radius: 30px;
  display: block;
}

/* --- 【追加】スマホ版（991.98px以下）になった時の調整 --- */
@media (max-width: 991.98px) {
  .main-flex-row {
    flex-wrap: wrap !important; /* スマホでは必要に応じて折り返しを許可 */
  }
  .main-right-block {
    width: 100% !important;    /* スマホ画面いっぱいに広がりつつ自動縮小 */
  }
}

/* --- 【重要】スマホ版（991.98px以下）になった時の調整 --- */
@media (max-width: 991.98px) {
  .main-flex-row {
    flex-wrap: wrap !important;
    justify-content: center !important; 
  }
  .main-right-block {
    width: 100% !important;
    flex: 0 1 100% !important; 
    
    /* 💡 スマホ時は縦並び（スライドショーが上、吹き出しが下）にする設定 */
    display: flex !important;
    flex-direction: column !important; 
  }
  
  /* カルーセル（スライドショー本体）を上に配置 */
  .migipic {
    order: 1 !important;
  }
    
/* 💡 スマホ版：スライドショーの左下・右下を両方とも角丸にする設定 */
  #carouselExampleInterval,
  #carouselExampleInterval .carousel-inner,
  #carouselExampleInterval .carousel-item img {
    /* 左下と右下を同じサイズ（20px）で統一して丸めます */
    border-bottom-left-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
    
    /* 画像が丸めた角からはみ出してしまうのを絶対に防ぐ魔法 */
    overflow: hidden !important; 
  }
}

/* ==========================================
   【PC版】Q&Aアコーディオン専用スタイル
   ========================================== */

/* 📢 全体を自動で縦に積み重ねるための外枠 */
.osirase-list-wrapper {
	display: flex;
	flex-direction: column;      
	gap: 0px;                   /* 💡 質問箱同士の間の縦の隙間 */
	width: 530px;                
	margin-left: 30px;           
	padding-top: 20px;          
	box-sizing: border-box;
	padding-left: 0px;
	margin-bottom: 50px;
}

/* イラストタイトル周り（既存の設定を維持） */
.osirase-board {
  width: 100%;
  height: auto;
  margin-bottom: 0 !important;
}
.osirase-top-img {
  position: relative;
  width: 100%;
  height: auto;
  left: 20px;                  
}
.osirase-top-img img {
	width: 25%;
	height: auto;
	display: block;
}
.osirase-text {
	position: absolute;
	top: 79%;
	left: 66px;
	transform: translate(-50%, -50%);
	font-size: 16px;
	font-weight: normal;
	color: #c87878;
	white-space: nowrap;
}

/* Q&Aの塊をまとめるコンテナ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 16px; 
  width: 117%; 
  margin-top: 0 !important; 
}

.faq-item:first-child {
  margin-top: 0 !important;
}

/* Q&Aのボックス本体（白背景・角丸） */
.faq-item {
  background-color: #fdf0f0;    
  border-radius: 20px;          
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(200, 120, 120, 0.05); 
}

/* 質問エリアのボタン */
.faq-question-btn {
	display: flex;
	align-items: center;
	width: 100%;
	padding-top: 15px;
	padding-right: 30px;
	padding-left: 30px;
	padding-bottom: 15px;
	background: none;
	border: none;
	outline: none;
	cursor: pointer;
	text-align: left;
	position: relative;
}

.faq-q-label {
  font-size: 16px;
  font-weight: bold;
  color: #c87878;
  margin-right: 0.5em;
  align-self: flex-start;       
}

.faq-q-text {
  font-size: 14px;
  color: #c87878;
  line-height: 1.5;
  padding-right: 40px;          
}

/* 右側の丸型開閉ボタン */
.faq-toggle-icon {
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-color: #c87878;    
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* プラス・マイナスをCSSの線で表現 */
.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: "";
  position: absolute;
  background-color: #ffffff;    
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.faq-toggle-icon::before { width: 12px; height: 2px; } 
.faq-toggle-icon::after { width: 2px; height: 12px; }  

/* 💡 【絶対崩れない開閉設定】初期状態は高さを0にして隠す */
.faq-answer-content {
  height: 0;
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.25, 1, 0.5, 1); /* 💡 ガタつかない滑らかな動き */
}

/* 💡 開いたとき（.is-open）、縦線を消してマイナス（ー）にする */
.faq-item.is-open .faq-toggle-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

/* 回答エリアの内側（質問と回答の間の区切り線） */
.faq-answer-inner {
	display: flex;
	padding-top: 15px;
	padding-right: 30px;
	padding-left: 30px;
	padding-bottom: 15px;
	border-top: 2px solid rgba(200, 120, 120, 0.3);
}

.faq-a-label {
  font-size: 16px;
  font-weight: bold;
  color: #c87878;
  margin-right: 0.5em;
  align-self: flex-start;
}

.faq-a-text {
  margin: 0;
  font-size: 13px;
  color: #c87878;
  line-height: 1.6;
}

/* --- 💡 【重要】2段目以降のニュースボックス本体（自動で下に繋がります） --- */
.osirase-board2 {
	width: 117%;
	height: auto;
}

.osirase-news-container2 {
	background-color: #fdf0f0;    /* 薄ピンクの背景 */
	border-radius: 20px;          /* 四隅すべて角丸 */
	padding: 5px 25px;           /* 上下の文字余白 */
	box-sizing: border-box;
	width: 54%;
	margin-left: 300px;
	/* --- 💡 ここから下が「下詰め＆bottom指定」のための修正文 --- */
	display: block;               /* 通常のブロック要素として配置（自動で下に落ちる） */
	margin-top: 100px;                /* 上からの距離指定はリセット */
	margin-bottom: 40px;          /* ★【下からの距離指定】ページ最下部との間に空けたい余白を指定 */
}

/* ニュース内の共通文字スタイル（1段目・2段目共通） */
.news-item, .news-item2 { width: 100%; }
.news-header, .news-header2 { display: flex; align-items: center; }
.news-date, .news-date2 { font-size: 12px; color: #c87878; font-family: sans-serif; }

.news-body, .news-body2 {
	margin: 1px 0 0 0;
	font-size: 14px;
	color: #c87878;
	line-height: 200%;
	text-align: left;
}

/* ==========================================
   【お知らせ一覧ページ専用】スマホ版の自動追従設定
   ========================================== */
@media (max-width: 991.98px) {
  
  /* 1. お知らせ一覧全体の縦並びコンテナ（外枠） */
  .osirase-list-wrapper {
    order: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    
    /* 💡 【重要！】イラストとQ&Aの間の隙間を完全になくすため「0」にします */
    gap: 0px !important; 
    
    /* 💡 画面幅に合わせて外枠自体を自動伸縮させます */
    width: 90% !important;         /* 画面の左右に10%分の遊び（余白）を作ります */
    max-width: 530px !important;   /* PC版のサイズよりは大きくならないように制限 */
    margin: 20px auto !important;  /* スマホ版での上下の隙間・中央寄せ */
    padding-top: 0 !important;     
  }

  /* 2. 1段目のイラスト付きボード */
  .osirase-board {
    width: 100% !important;        /* 💡 外枠の縮小（90%）に完全に同期させます */
  }

  /* 1段目のイラスト位置と文字のスマホ対応 */
  .osirase-top-img {
    left: clamp(10px, 3.8vw, 20px) !important; 
  }
  .osirase-top-img img {
    width: 21% !important;
  }
  .osirase-text {
    font-size: clamp(10px, 2.2vw, 13px) !important;
    top: 79% !important;
    left: 10.5% !important;
    transform: translate(-50%, -50%) !important;
  }

  /* 3. 【Q&A用に変更】Q&A全体を囲む箱 */
  .faq-container {
    width: 100% !important;        /* 外枠の縮小に同期 */
    margin-top: 0 !important;      /* イラストとの間の上隙間を完全にゼロに */
    
    /* 💡 【重要】外枠のgapを0にした代わりに、
       Q&Aの箱同士（2個目、3個目以降）の隙間をここで安全に確保しています */
    gap: clamp(8px, 2vw, 15px) !important; 
  }

  /* 💡 【重要】1番最初の質問ボックスの上マージンを完全にゼロにしてイラストの真下にピタッと吸い付かせます */
  .faq-item:first-child {
    margin-top: 0 !important;
  }

  /* 4. 【Q&A用に変更】Q&Aボックス本体：スマホ版の天地の幅（上下余白）をスマートに削ります */
  .faq-question-btn {
    padding: 15px 20px !important; /* スマホ時は天地の余白をギュッと縮めて間延びを防ぎます */
  }
  .faq-toggle-icon {
    right: 20px !important;        /* 右端の丸ボタンの位置調整 */
  }
  .faq-answer-inner {
    padding: 15px 20px !important; /* 内側の回答部分の上下余白もスリム化 */
  }

  /* 5. 【Q&A用に変更】各テキストのスマホ自動伸縮（画面幅に完全に追従します） */
  .faq-q-label, .faq-a-label {
    font-size: clamp(13px, 3vw, 16px) !important;
  }
  
  /* 質問テキスト（行間が狭くなるのを防ぎ適度なゆとりを持たせる） */
  .faq-q-text {
    font-size: clamp(11px, 2.5vw, 13px) !important;
    line-height: 1.4 !important;
    padding-right: 30px !important; /* 右の丸ボタンと重ならないガード */
  }

  /* 回答テキスト */
  .faq-a-text {
    font-size: clamp(11px, 2.4vw, 13px) !important;
    line-height: 1.4 !important;
  }

  /* ==========================================
     3. 2段目の独立した電話番号ボード（スマホ版）
     ========================================== */
  /* 💡 【解決策：最重要】
     PC版の大きな横幅（117%など）を完全に打ち消し、
     上のアコーディオンと「完全に同じ縮小幅（100%）」に強制固定します！ */
  .osirase-board2 {
    width: 100% !important;        /* これで画面外へのはみ出しを防ぎます */
    display: block !important;
  }
    
  /* 💡 ボックス本体も上のボックス（100%）にピタッと同期させます */
  .osirase-news-container2 {
    width: 100% !important;        /* 上のアコーディオンの箱と「完全に同じ左右幅」にします */
    max-width: 100% !important;
    padding: 5px 20px !important;  /* 天地（上下）の余白は5pxのスリムな状態をキープ */
    box-sizing: border-box !important;
    
    /* 左右の auto で、上のボックスとぴったり同じ位置で中央揃えにします */
    margin-left: auto !important;
    margin-right: auto !important;
    margin-top: 20px !important;
    margin-bottom: 10px !important;
  }
    
  /* 各テキストのスマホ自動伸縮 */
  .news-date, .news-date2 {
    font-size: clamp(10px, 2.5vw, 12px) !important;
  }

  /* 💡 2段目の本文：文字も完璧なセンターにします */
  .news-body2 {
    font-size: clamp(11px, 2.6vw, 13px) !important; 
    line-height: 1.2 !important;   
    padding-left: 0 !important;    /* 左側の余白を完全に消し去ってブレを防止 */
    padding-top: 2px !important;
    display: block !important;
    width: 100% !important;
	
    /* 中の文字を完全に真ん中（中央揃え）にします */
    text-align: center !important; 
  }
}
/* --- お知らせ窓のための設定 終わり --- */


/* --- フッター全体の基本設定 --- */
.custom-footer {
  width: 100%;
  height: 70px;                /* 💡 フッターの縦幅（お好みに合わせて調整してください） */
  border-top: none !important; /* 💡 フッター全体を囲む初期の線を完全に消去 */
  font-family: sans-serif;
  margin-top: 0px !important;            /* 4段目（診療案内）との間の隙間 */
}

/* 左ブロック：PC時は280pxに完全固定 */
.footer-left-block {
  width: 280px;
  height: 100%;
  background-color: #eeafb2;   
  display: flex !important;
  align-items: flex-start !important;
  padding-top: 10px;           
  padding-left: 30px;          
  box-sizing: border-box;
  flex-shrink: 0;              
  position: relative;          /* 短い線の基準点 */
  border-top: none !important; 
}

/* 💡 【短い線】濃いピンクの中で自由に長さを短くした白線（これ1本だけにします） */
.footer-left-block::before {
  content: "";
  position: absolute;
  top: 0;                      
  left: 30px;                  /* 線の左側に空ける隙間 */
  right: 0px;                 /* 線の右側に空ける隙間 */
  height: 2px;                 /* 線の太さ */
  background-color: #ffffff;   /* 線の色 */
}

/* 著作権表記（copyright）の文字スタイル */
.copyright {
  margin: 0;
  padding: 0;
  font-size: 9px;
  color: #ffffff;              
  white-space: nowrap;
}

/* 右ブロック：残りの横幅いっぱいに広がる薄ピンクのエリア */
.footer-right-block {
  height: 100%;
  background-color: #f5d6d3;   
  display: flex !important;
  align-items: flex-start !important;
  padding-top: 6px;            
  padding-left: 40px;          
  box-sizing: border-box;
  
  /* 💡 【維持】右ブロックの上側には、これまで通り端から端までの白線を引いておきます */
  border-top: 2px solid #ffffff !important; 
}

/* フッターメニューの横並び設定 */
.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;             
  gap: 15px;                   
}

/* フッターリンクの文字スタイル */
.footer-nav a {
  font-size: 11px;             
  color: #c87878;              
  text-decoration: none;       
  white-space: nowrap;
}
.footer-nav a:hover {
  color: #ffffff;              
}

/* ==========================================
   【フッター専用】スマホ版（991.98px以下）の設定
   ※フッターの命令だけをこの中に完全に閉じ込めます
   ========================================== */
@media (max-width: 991.98px) {
  
  /* フッター全体の高さをスマホ用に自動変更 */
  .custom-footer {
    height: auto !important;    
    margin-top: 0px !important; /* スマホでも上にピッタリくっつける設定を維持 */
  }
  
  /* スマホ時は左ブロック（濃いピンク）の幅制限を解除して一番下に配置 */
  .footer-left-block {
    width: 100% !important;
    order: 2 !important;        /* メニューの下に配置 */
    
    /* 💡 PC版の上揃え（flex-start）をスマホ時のみ強制リセットし、完璧な中央寄せにします */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important; 
    
    /* PC版の padding-top: 10px をスマホ用の均等な上下余白に上書き */
    padding: 12px 15px !important; 
    background-color: #eeafb2 !important; /* PC版の濃いピンクを維持 */
  }
    
  /* 💡 【新設】スマホ版の時は、濃いピンクの上の短い白線を完全に消去します */
  .footer-left-block::before {
    display: none !important;  /* 💡 これでスマホ画面の時だけ線がピタッと消えます */
  }
  
  /* スマホ時は右ブロック（薄ピンク）を上に配置 */
  .footer-right-block {
    width: 100% !important;
    order: 1 !important;        /* コピーライトより上に配置 */
    
    /* 💡 PC版の上揃え（flex-start）をスマホ時のみ強制リセットし、完璧な中央寄せにします */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* PC版の padding-top: 6px と padding-left: 40px をスマホ用に綺麗に上書き */
    padding: 18px 15px !important; 
    background-color: #f5d6d3 !important; /* PC版の薄ピンクを維持 */
  }
  
  /* スマホ用のメニュー配置（中央寄せ） */
  .footer-nav {
    justify-content: center !important;
    margin-top: 0px !important; /* PC版のマイナスマージンがかかっていた場合はここでリセット */
    gap: 10px 15px !important;  /* メニューが2行になっても綺麗に並ぶ縦と横の隙間 */
  }
  
  .footer-nav a {
    /* PC版の11pxをベースに、スマホの画面幅に合わせて安全に自動縮小 */
    font-size: clamp(10px, 2.8vw, 11px) !important; 
  }

}
