
section{
	padding:10px 0;
}


/* 白背景コンテナ：横幅1100px */
.white-box {
box-sizing: border-box;
max-width: 1100px; /* 指定の横幅 */
width: 100%;
margin: 40px auto;
background: #fff;
padding: 32px 28px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0,0,0,.06);
}


/* 見出し（任意） */
.white-box h2 {
margin: 0 0 16px;
font-size: 20px;
letter-spacing: .02em;
}


/* ●付きリスト */
ul.maru_list {
/* 2カラムで自然な段組み（自動折り返し） */
column-count: 2;
column-gap: 56px; /* カラム間余白 */
margin: 0;
padding: 0;
list-style: none; /* 既定の•を消す */
}


ul.maru_list li {
break-inside: avoid; /* 項目がカラム跨ぎで分断されにくくする */
padding-left: 1.4em; 
text-indent: -1.4em; 
margin: .2em 0;
line-height: 2.4;
}


ul.maru_list li::before {
content: "";
display: inline-block;
width: .6em;
height: .6em;
min-width: 10px; /* サイズ下限（可変行高でも見やすく） */
min-height: 10px;
margin-right: .6em;
border-radius: 50%;
background: #2EA5D5; 
vertical-align: .08em; /* テキストと高さを合わせる微調整 */
}


/* リハビリテーション専用スタイル */
.rehab-menu-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px; /* より コンパクトに調整 */
    width: 100%;
}

.rehab-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rehab-menu-list li {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.rehab-menu-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #2EA5D5, #1a8cb8);
    transition: width 0.3s ease;
}

.rehab-menu-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #2EA5D5;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
}

.rehab-menu-list li:hover::before {
    width: 6px;
}

.rehab-menu-list a {
    display: block;
    padding: 18px 25px 18px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
    z-index: 1;
}

.rehab-menu-list a::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #2EA5D5;
  opacity: 1;
    transition: all 0.3s ease;
}

.rehab-menu-list a:hover {
    color: #1a3a2e;
    padding-left: 25px;
}

.rehab-menu-list a:hover::after {
    opacity: 1;
    right: 15px;
}

/* リハビリテーション画像統一スタイル - 500pxに統一 */
.rehab-image {
    width: 500px;
    max-width: 500px;
    height: auto;
    border-radius: 0;
}

/* DEXA画像専用スタイル - PC版のみ異なるサイズ */
.dexa-left {
    width: 450px;
    max-width: 450px;
}

.dexa-right {
    width: 650px;
    max-width: 650px;
}

/* 施設画像専用スタイル - 850px */
.facility-image {
    width: 850px;
    max-width: 850px;
    height: auto;
    border-radius: 0;
    display: block;
    margin: 0 auto;
}

/* 画像を中央寄りに配置 */
.content-pair__image {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

/* 単独画像も中央寄りに */
.text-center .rehab-image {
    display: block;
    margin: 0 auto;
}

/* kasaneレイアウト（バックアップ互換） */
div.kasane {
    position: relative;
}

/* kasane内の画像は枠なし */
div.kasane .rehab-image {
    box-shadow: none;
}

div.kasane .rehab-image:hover {
    box-shadow: none;
}

/* kasane内の「個別リハビリテーション」を画像の上中央に配置 */
p.kasane {
    position: absolute;
    top: 180px;
    left: 51%;
    transform: translateX(-50%);
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 20px;
    z-index: 10;
}

p.kasane1 {
    position: absolute;
    top: 340px;
    left: 310px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
}

p.kasane2 {
    position: absolute;
    top: 340px;
    right: 260px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
}


/*=============================
 栄養外来ページ専用追加スタイル
=============================*/

/*=============================
 栄養外来 概要セクション
=============================*/
.overview-bg {
  background: #fafafa;
  padding: 60px 0;
}

.w1100 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* セクション見出し（h2.section-title）の下に安定した余白を追加
   ここは主にページ内の h2 と直後の段落との間隔を調整するためのルールです */
.w1100 .section-title {
  margin-bottom: 22px; /* 必要なら数値を調整してください */
}

.content-pair-bg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.content-pair-bg__image {
  flex: 1 1 45%;
  text-align: center;
}
.content-pair-bg__image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.content-pair-bg__text {
  flex: 1 1 50%;
}

.content-pair-bg__text h3 {
  font-size: 1.6rem;
  color: #40220f;
  margin-bottom: 20px;
  border-bottom: 2px solid #c1b2a8;
  display: inline-block;
  padding-bottom: 5px;
}

.content-pair-bg__text p {
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 1.2em;
  color: #333;
}

/*--------------------------------
  マーカー・共通強調
--------------------------------*/
.marker_yl {
  background: linear-gradient(transparent 60%, #fff799 60%);
  font-weight: bold;
}
.marker_Pblue {
  background: linear-gradient(transparent 60%, #cce9ff 60%);
  font-weight: bold;
}

/*--------------------------------
  段落・見出し調整
--------------------------------*/
#content h2 {
  clear: both;
  margin: 40px 0 20px;
  padding-left: 25px;
  background: url("../images/base/daiya01.gif") no-repeat left center;
  border-bottom: 1px solid #40220f;
  font-size: 130%;
  color: #40220f;
}
#content h3.bg {
  font-size: 110%;
  background: #f4f4f4;
  border-left: 5px solid #8cb5d1;
  padding: 8px 10px;
  margin: 30px 0 15px;
}

/*--------------------------------
  枠ボックス
--------------------------------*/
.waku_s {
  width: 100%;
  padding: 24px;
  border: none; /* 枠線を削除 */
  background: #F7F7F4; /* doctor.php と同じ背景色 */
  box-sizing: border-box;
  margin-bottom: 25px;
  border-radius: 6px; /* 角をわずかに丸めて自然な見た目に */
}

@media (max-width: 767px) {
  /* モバイルではパディングをやや小さくして読みやすく */
  .waku_s {
    padding: 18px;
  }
}

/*--------------------------------
  検査コーステーブル
--------------------------------*/
table.course,
table.course2 {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #ccc;
  border-left: 1px solid #ccc;
  font-size: 90%;
  line-height: 160%;
  margin-bottom: 20px;
}

table.course th,
table.course2 th {
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 10px 5px;
  color: #fff;
  text-align: center;
  font-size: 120%;
}
table.course th { background-color: #6cb4e4; }
table.course2 th { background-color: #ffb36b; }

table.course td,
table.course2 td {
  border-right: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 10px 15px;
  vertical-align: top;
}

table.course td:nth-of-type(odd),
table.course2 td:nth-of-type(odd) {
  text-align: center;
  font-size: 110%;
  font-weight: bold;
  border-bottom: dashed 1px #ccc;
}

table.course td:nth-of-type(odd) {
  color: #005c88;
  background-color: #e9f4ff;
}
table.course2 td:nth-of-type(odd) {
  color: #df7007;
  background-color: #fff9e5;
}

/* テーブル間のセクションギャップ（デスクトップ） */
.section-gap {
  height: 40px;
  width: 100%;
}
/* デスクトップ用のテーブル設定は下の @media ブロックで統合しています */

/* デスクトップ：小児〜大学生向けテーブル（.course2）を縦積み表示にする
   要求: 見出し（th）→コース名（左セル）→説明（右セル）の順で縦に並べる
   これにより長いコース名が横に伸びず、各コースが読みやすくなります。 */
@media (min-width: 768px) {
  table.course2 {
    /* display as a block container so rows can stack */
    width: 100%;
    border-collapse: separate;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    overflow: hidden;
    table-layout: auto; /* allow stacking */
  }

  /* make each row a block so left and right cells can be full-width stacked */
  table.course2 tr {
    display: block;
    border: none;
    /* 行間の余白をなくして見出し→コース名→説明を密着表示 */
    padding: 0;
    margin: 0;
    background: transparent;
  }

  /* heading stays as a full-width band */
  table.course2 tr:first-child th {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: #ffb36b;
    color: #ffffff;
    font-weight: 700;
    border-radius: 10px 10px 0 0;
    text-align: center;
  }

  /* left cell (course name) becomes full width above the description */
  table.course2 td:first-child {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: #fff9e5;
    color: #df7007;
    padding: 10px 14px;
    font-weight: 700;
    border-radius: 0;
    text-align: left;
    margin-bottom: 0; /* 余白をなくす */
  }

  /* right cell (description) becomes full width below the name */
  table.course2 td:last-child {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 14px 0 14px;
    color: #444;
    line-height: 1.6;
    border-top: none; /* remove dashed separator under course name */
    background: transparent;
    text-align: left;
  }

  /* remove extra bottom margin for last row inside the card */
  table.course2 tr:last-child { margin-bottom: 0; }
}

/* デスクトップ：成人向けテーブル（.course）も縦積み表示にする（見出し→コース名→説明） */
@media (min-width: 768px) {
  table.course {
    width: 100%;
    border-collapse: separate;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 12px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    overflow: hidden;
    table-layout: auto;
  }

  table.course tr {
    display: block;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
  }

  table.course tr:first-child th {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    background: #6cb4e4;
    color: #ffffff;
    font-weight: 700;
    border-radius: 10px 10px 0 0;
    text-align: center;
  }

  table.course td:first-child {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background-color: #e9f4ff;
    color: #005c88;
    padding: 10px 14px;
    font-weight: 700;
    border-radius: 0;
    text-align: left;
    margin-bottom: 0; /* 行間をなくして見出し→コース名→説明を密着表示 */
  }

  table.course td:last-child {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 14px 0 14px;
    color: #444;
    line-height: 1.6;
    border-top: none; /* remove dashed separator under course name */
    background: transparent;
    text-align: left;
  }

  /* ensure left cells do not show bottom borders in stacked mode */
  table.course td:first-child,
  table.course2 td:first-child {
    border-bottom: none;
  }

  table.course tr:last-child { margin-bottom: 0; }
}

/*--------------------------------
  動画ブロック
--------------------------------*/
.v_cl2 {
  width: 500px;
  margin: 0 auto 50px;
}
.v_cl2 p.mds {
  font-weight: bold;
  background: #f1ede1;
  padding: 20px 10px;
  text-align: center;
  margin-bottom: 10px;
  position: relative;
  border-radius: 4px;
}
.v_cl2 p.mds::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  transform: translateX(-50%);
  border: 20px solid transparent;
  border-top-color: #f1ede1;
}
.v_cl2 video {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  border: 1px solid #ccc;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}

/*--------------------------------
  PDFボタン
--------------------------------*/
a.cp_btn {
  display: block;
  width: auto;
  max-width: 650px;
  padding: 0.8em;
  margin: 15px auto 40px;
  text-align: center;
  text-decoration: none;
  color: #e4a404;
  border: 2px solid #e4a404;
  border-radius: 3px;
  font-weight: bold;
  transition: 0.4s;
}
a.cp_btn:hover {
  background: #e4a404;
  color: #fff;
}
a.cp_btn img {
  vertical-align: middle;
  margin-right: 8px;
}

/* このスタイルは栄養外来ページのPDFリンク専用の変種（例：
  `public_html/shinryo/nutrition.php` 内の PDF リンク）。
  元の意図は「サイト全体ではなく限定的に使う」ことを示す注記です。
  他ページで使用する場合は影響範囲を確認してください。 */
.cp_btn--pdf {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 94%;
  padding: 0.8em 1em;
  margin: 15px auto 20px;
  background: #2EA5D5; /* detail-btn と同じ青水色 */
  color: #ffffff; /* 白文字 */
  text-decoration: none;
  border: 4px solid #2EA5D5; /* 同色の太め枠 */
  border-radius: 40px; /* 丸め */
  font-weight: bold;
}
.cp_btn--pdf::after {
  content: '→';
  margin-left: 8px;
  color: #ffffff; /* 矢印は白 */
  font-weight: 700;
}
.cp_btn--pdf:hover {
  /* 案2：白背景 + 水色文字 + 少し濃いボーダー */
  background: #ffffff;
  color: #2EA5D5 !important; /* ホバーでは文字を青にする */
  border-color: #1F91B3 !important; /* 少し濃いめのボーダー */
}

/* 強制上書き：子要素や内部イメージが角丸を打ち消すケースに備え、
   overflow と強いセレクタで角丸を確実に適用する。最後に適用されるよう
   ここに配置。必要があれば .page-nutrition などページ固有のセレクタに置換 */
.cp_btn--pdf {
  overflow: hidden; /* 内部の画像や擬似要素で角が露出するのを防ぐ */
  -webkit-border-radius: 40px;
  -moz-border-radius: 40px;
  border-radius: 40px !important;
}

/* override internal text color for cp_btn--pdf to match button color scheme */
.cp_btn--pdf,
.cp_btn--pdf *,
.cp_btn--pdf p,
.cp_btn--pdf span,
.cp_btn--pdf strong {
  color: #ffffff !important; /* default: white text */
}
.cp_btn--pdf:hover,
.cp_btn--pdf:hover * {
  /* ホバー時はテキストと擬似要素を青にする（子要素も継承させる） */
  color: #2EA5D5 !important;
}

/* 矢印（擬似要素）もホバーで青にする */
.cp_btn--pdf:hover::after {
  color: #2EA5D5 !important;
}

/* 栄養ページの PDF ボタンで a.cp_btn による黄色枠が優先される場合があるため
   より特異度の高いセレクタで上書きし、黄色枠を消します。影やアウトラインも除去。
   影響範囲は a 要素でかつ両クラスを持つボタンに限定されます。 */
a.cp_btn.cp_btn--pdf {
  /* keep a consistent border width so hover doesn't change element size */
  box-sizing: border-box !important;
  border: 4px solid #2EA5D5 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Hover should only change color, not border width, to avoid visual jump */
a.cp_btn.cp_btn--pdf:hover {
  background: #ffffff;
  color: #2EA5D5;
  border-color: #1F91B3; /* only color, same 4px width retained */
  box-shadow: none;
  overflow: hidden;
  border-radius: 40px;
}

/*--------------------------------
  汎用リンクアイコン
--------------------------------*/
.ic_link {
  background: url("../images/base/arrow_y.gif") no-repeat left center;
  padding-left: 20px;
  line-height: 1.8;
}

/*--------------------------------
  管理栄養士セクション
--------------------------------*/
#nutrition_doctor {
  margin-top: 80px;
  margin-bottom: 40px;
}
#nutrition_doctor img.r {
  float: right;
  margin-left: 20px;
}

/*--------------------------------
  汎用余白ユーティリティ
--------------------------------*/
.mt30 { margin-top: 30px !important; }
.mt40 { margin-top: 40px !important; }
.mb20 { margin-bottom: 20px !important; }
.mb40 { margin-bottom: 40px !important; }

/* ------------------------------
   アンカー遷移のオフセット（固定ヘッダー対策）
   ヘッダー高さに合わせて調整してください。
   デフォルトは比較的余裕を持たせた 180px（必要に応じて減らしてください）。
   対応ブラウザ：modern browsers（IE は未対応）。
------------------------------- */
:root { --header-offset: 180px; }

h2[id], h3[id], section[id] {
  scroll-margin-top: var(--header-offset);
}

@media (max-width: 767px) {
  /* モバイルはヘッダーがやや小さい想定 */
  :root { --header-offset: 140px; }
  h2[id], h3[id], section[id] {
    scroll-margin-top: var(--header-offset);
  }
}

/* ------------------------------
   rehabilitation.php 専用：すべての画像の角丸を完全に削除
------------------------------- */
img {
  border-radius: 0 !important;
}
.rehab-image,
.content-pair__image img,
.text-center img,
.white-box img {
  border-radius: 0 !important;
}

/* ------------------------------
   骨粗鬆症ページ専用：ナビゲーションメニューを2×2グリッドに配置（PC版のみ）
------------------------------- */
.osteo-menu-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    width: 100%;
}

.osteo-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.osteo-menu-list li {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 2px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.osteo-menu-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(180deg, #2EA5D5, #1a8cb8);
    transition: width 0.3s ease;
}

.osteo-menu-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: #2EA5D5;
    background: linear-gradient(135deg, #ffffff, #f0f8ff);
}

.osteo-menu-list li:hover::before {
    width: 6px;
}

.osteo-menu-list a {
    display: block;
    padding: 18px 25px 18px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
    z-index: 1;
}

.osteo-menu-list a::after {
    content: '→';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #2EA5D5;
    opacity: 1;
    transition: all 0.3s ease;
}

.osteo-menu-list a:hover {
    color: #1a3a2e;
    padding-left: 25px;
}

.osteo-menu-list a:hover::after {
    opacity: 1;
    right: 15px;
}
