

/*section{
	padding:30px 0;
}*?

/* Theme tokens for mobile shinryo (keeps colors consistent and easy to update) */
:root{
    --shinryo-child-header: #ffb36b;
    --shinryo-adult-header: #6cb4e4;
    --shinryo-child-left-bg: #fff9e5;
    --shinryo-child-left-color: #df7007;
    --shinryo-adult-left-bg: #e9f4ff;
    --shinryo-adult-left-color: #005c88;
}


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

/* .waku_s: 医療ページの小見出しや注記で使うボックス
   - PC 側と同じ背景を #F7F7F4 に変更、モバイル側でも同じ見た目で適用
   - パディングはモバイル向けに少し小さめに設定（デスクトップは別ファイルで大きめ） */
.waku_s {
    width: 100%;
    padding: 18px;
    border: none;
    background: #F7F7F4;
    box-sizing: border-box;
    margin-bottom: 20px;
    border-radius: 6px;
}


/* 見出し（任意） - スタイルは個別セレクタで定義します */


/* ●付きリスト */
ul.maru_list {
column-gap: 56px; /* カラム間余白 */
margin: 0;
padding: 0;
list-style: none; /* 既定の•を消す */
column-count: 1;

}


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


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: 8px;
    margin: 15px auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.rehab-menu-list {
    list-style: none;
    margin: 0;
    padding: 8px 0; /* top/bottom padding only; individual items get spacing */
    position: relative;
    box-shadow: none; /* container no longer carries shadow on mobile */
}

.rehab-menu-list li::before {
    content: '';
    position: absolute;
    left: 0.6rem; /* offset from left edge of item */
    top: 12px;
    height: calc(100% - 24px);
    width: 4px;
    background: linear-gradient(180deg, #2EA5D5, #1a8cb8);
    border-radius: 2px;
}

.rehab-menu-list a {
    display: block;
    padding: 14px 18px 14px 36px; /* leave space for the colored bar */
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    z-index: 2;
    white-space: pre-line; /* 改行を有効化 */
}

/* make each list item appear as an individual card/button on mobile */
.rehab-menu-list li {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin: 8px auto;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    min-height: 62px;
    max-width: 90%;
}

.rehab-menu-list li + li {
    margin-top: 10px;
}

.rehab-menu-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.10);
    border-color: #2EA5D5;
}

.rehab-menu-list a::after {
    content: '→';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #2EA5D5;
}

/* リハビリテーション画像統一スタイル（モバイル） */
.rehab-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 施設画像専用スタイル（モバイル） */
.facility-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 0;
    margin: 0 auto;
    display: block;
}

/* モバイル：content-pairコンテナ内の画像ではみ出しを防ぐ */
.w1100 .content-pair {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
}

.w1100 .content-pair .content-pair__image {
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.w1100 .content-pair .content-pair__image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

/* 横並びのcontent-pairも縦並びに変更 */
.w1100 .content-pair.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.w1100 .content-pair.text-center .content-pair__image {
    padding: 0;
    margin: 0 0 15px 0;
    width: 94%;
    max-width: 94%;
}

.w1100 .content-pair.text-center .content-pair__image img {
    border-radius: 0;
}

/* kasaneレイアウト（モバイル対応） */
div.kasane {
    position: relative;
}

    /* 成人向けテーブル（.course）を小児向け（.course2）と同じ外枠・サイズに揃える */
    .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;
    }

    /* 各行は内部ブロックとして表示、行同士は区切り線で分ける */
    .course tr {
        display: block;
        border: none;
        border-radius: 0;
        padding: 12px 14px;
        margin: 0;
        background: transparent;
    }

    .course tr + tr {
        border-top: 1px dashed #e6e6e6;
    }

    /* 見出し（最初の行）は枠内上部に表示（PC と同じ背景色） */
    .course tr:first-child {
        display: block;
        /* 下の余白は詰めて、見出しと最初の項目を密着させる */
        padding: 12px 14px 0 14px;
        margin: 0 0 0 0;
        background: #6cb4e4;
        color: #fff;
    }

    /* 左カラム（コース名）を見出しと同じ幅で表示して、背景色を PC と同じにする */
    .course tr td:first-child {
        display: block;
        background-color: #e9f4ff; /* PC の左カラム背景 */
        color: #005c88 !important; /* PC の左カラム文字色（強制） */
        font-weight: 700;
        box-sizing: border-box;
        width: calc(100% + 28px);
        margin-left: -14px;
        margin-right: -14px;
        padding: 8px 14px;
        border-radius: 4px;
        margin-bottom: 8px;
        text-align: center;
    }

    /* 説明部分のスタイル */
    .course tr td:last-child {
        display: block;
        padding: 6px 12px 0 12px;
        color: #444;
        line-height: 1.6;
    }
/* kasane内の画像は枠なし（モバイル） */
div.kasane .rehab-image {
    box-shadow: none;
}

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

/* -----------------------------
     動画のレスポンシブ（モバイル）
     - ビデオ要素に幅100%を強制し、親幅に収まるようにする
     - 明示的な width 属性があっても上書きするため !important を使用
     - 必要に応じて高さは自動で維持（縦横比を保つ）
------------------------------*/
.content-pair__image video,
.v_cl2 video,
.content-pair video,
.white-box video,
.rehab-image video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* 追加：モバイルでの均一表示を強制する（最大幅を揃え、アスペクト比を保持） */
.w1100 video,
.content-pair__image video,
.white-box video,
.v_cl2 video {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    max-width: 600px; /* 見た目の上限を揃える */
    margin: 0 auto !important;
    object-fit: contain; /* アスペクト比を保持して収める */
}

/* 小さい画面ではビデオの上下マージンを少し詰める */
.v_cl2 video{ margin-top:8px; margin-bottom:12px; }


/* kasane内の「個別リハビリテーション」を画像の上中央に配置（モバイル） */
p.kasane {
    position: absolute;
    top: 25vw; /* 画面幅の25%の位置 */
    left: 20%;
    transform: translateX(-50%);
    font-weight: bold;
    background: rgba(255, 255, 255, 0.9);
    padding: 1vw 3vw; /* 画面幅に応じた余白 */
    border-radius: 4vw; /* 画面幅に応じた角丸 */
    font-size: max(3vw, 10px); /* 画面幅の3%、最小10px */
    z-index: 10;
}

p.kasane1 {
    position: absolute;
    bottom: -5vw; /* 画像の下から画面幅の-5%の位置 */
    left: 1vw; /* 左から画面幅の1%の位置 */
    font-weight: bold;
    font-size: max(3vw, 10px); /* 画面幅の3%、最小10px */
    background: rgba(255, 255, 255, 0.9);
    padding: 1vw 2vw;
    border-radius: 2vw;
}

p.kasane2 {
    position: absolute;
    bottom: -5vw; /* 画像の下から画面幅の-5%の位置 */
    right: -5vw; /* 右から画面幅の-5%の位置 */
    font-weight: bold;
    font-size: max(3vw, 10px); /* 画面幅の3%、最小10px */
    background: rgba(255, 255, 255, 0.9);
    padding: 1vw 2vw;
    border-radius: 2vw;
}

/* ==========================
   スマホ専用：コース表をカード表示にして読みやすくする
   - 各 <tr> をカード化して、左カラム（コース名）を上に表示
   - 1行目（表タイトル th colspan=2）はそのままセクション見出しとして扱う
.   - PDFリンクなどはフル幅ボタンに
. ==========================*/

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


.course,
.course2 {
    width: 100%;
    border-collapse: separate;
}

/* Consolidated left-column (first cell) base used by both .course and .course2
   This reduces repeated selectors and keeps spacing consistent. */
.course tr td:first-child,
.course2 tr td:first-child {
    display: block;
    box-sizing: border-box;
    width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
    padding: 8px 14px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 700;
}

/* Shared styles for special left-column cells (child growth & adult first) */
.course-growth,
.course-first {
    display: block;
    background-color: var(--shinryo-child-left-bg) !important;
    color: var(--shinryo-child-left-color) !important;
    padding: 8px 14px !important;
    border-radius: 4px;
    margin-bottom: 8px;
    text-align: center;
}

/* PC のように「見出し（th）」が上に出て、その下に複数コースをひとつの枠でまとめるスタイル（.course2 用） */
.course2 {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
}

/* 各行は枠ではなく内部のブロックとしてレイアウト。行同士は区切り線で分ける */
.course2 tr {
    display: block;
    border: none;
    border-radius: 0;
    padding: 0px 14px 14px;
    margin: 0;
    background: transparent;
}

/* 行同士の区切り（PCの境界線を模す） */
.course2 tr + tr {
    border-top: 1px dashed #e6e6e6;
}

/* 各行の左カラム（コース名）を PC と同じ配色にする */
.course2 tr td:first-child {
    display: block;
    background-color: #fff9e5; /* PC の薄い黄色 */
    color: #df7007; /* PC のオレンジ文字 */
    font-weight: 700;
    /* 親 tr の左右パディング（14px）を考慮して
       見出しの背景を枠の内側いっぱいに広げるために
       幅を拡張し、左右マイナスマージンで揃える */
    box-sizing: border-box;
    width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
    padding: 8px 14px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-align: center; /* 小見出しを中央寄せ */
    color: #df7007 !important; /* 色を強制 */
}

/* .course-growth（成長コースセル）も中央寄せかつ色をPCと同じに強制 */
.course-growth {
    text-align: center;
    color: #df7007 !important;
    background-color: #fff9e5; /* 成長コースは薄い黄色 */
}

/* その説明部分は通常の本文色にする（余白を確保） */
.course2 tr td:last-child {
    display: block;
    padding: 6px 12px 0 12px;
    color: #444;
    line-height: 1.6;
}

/* 最初の行（セクション見出し）は上部に表示。外枠の内側に収めるため余白を調整 */
.course2 tr:first-child {
    display: block;
    /* 下の余白を詰める（見出しと次行を密着させる） */
    padding: 0px 14px 0px 14px;
    margin: 0 0 0 0;
    /* モバイルでは内側のオレンジ背景は不要。外枠を維持し、テキストで見出しを表現 */
    background: transparent;
    color: inherit;
}

/* .course（成人向け） は従来のカード化を維持（必要に応じて別途調整可能） */
.course tr {
    display: block;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fff;
}

/* ---- モバイル：成人向けコース表（.course）を PC と同様にまとめて表示 ---- */
.course {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    padding: 0;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
}

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

/* 区切り線 */
.course tr + tr {
    border-top: 1px dashed #e6e6e6;
}

/* 見出し（最初の行）は PC と同じ色 */
.course tr:first-child {
    display: block;
    padding: 12px 12px;
    margin: -12px 0px -12px 0px;
    background: #6cb4e4; /* PC の table.course th 背景 */
    color: #fff;
}

/* 左カラム（コース名）を PC と同じ薄い青背景＋青文字に揃える */
.course tr td:first-child {
    display: block;
    background-color: #e9f4ff; /* PC の左カラム背景 */
    color: #005c88; /* PC の左カラム文字色 */
    font-weight: 700;
    box-sizing: border-box;
    width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
    padding: 8px 14px;
    border-radius: 4px;
    margin-bottom: 8px;
    text-align: center;
    color: #005c88 !important; /* PC と同じ色を強制 */
}

/* 説明部分のスタイル */
.course tr td:last-child {
    display: block;
    padding: 6px 12px 0 12px;
    color: #444;
    line-height: 1.6;
}

.course th,
.course2 th {
    display: block;
    font-size: 18px;
    color: #2EA5D5;
    font-weight: 700;
    padding: 10px 14px 10px 14px;
}

.course tr td,
.course2 tr td {
    display: block;
    padding: 0;
    border: none;
}

/* 左カラム（コース名）を上に出す */
.course tr td:first-child,
.course2 tr td:first-child {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-size: 15px;
}

.course tr td:last-child,
.course2 tr td:last-child {
    color: #444;
    line-height: 1.7;
    /* 説明文を14px→15pxに上げ、可読性を確保 */
    font-size: 15px;
}

/* 最終上書き：PC と同じ色味をモバイルでも強制適用（重要） */
/* 成人向けテーブルの見出し（th）を PC と同じ背景と白文字にする */
.course tr:first-child th,
.course > tr:first-child th,
.course tbody > tr:first-child th {
    background: #6cb4e4 !important;
    color: #ffffff !important;
}

/* 成人向け左カラム（コース名）を PC と同じ薄青背景と青文字に強制 */
.course tr td:first-child,
.course > tr td:first-child,
.course tbody tr td:first-child {
    background-color: #e9f4ff !important;
    color: #005c88 !important;
}

.course2 tr:first-child th,
.course2 > tr:first-child th,
.course2 tbody > tr:first-child th {
    /* スマホでも見出しはオレンジ背景＋白文字で表示 */
    background: #ffb36b !important;
    color: #ffffff !important;
}
.course2 tr td:first-child,
.course2 > tr td:first-child,
.course2 tbody tr td:first-child {
    background-color: #fff9e5 !important;
    color: #df7007 !important;
}

/* PDFリンクや案内リンクをボタン化（フル幅） */
.course .ic_link,
.course2 .ic_link,
.w1100 .ic_link {
    /* 統一スタイル：PC と同様に黄色枠・文字は黒、矢印は黄色に合わせる */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 94%;
    width: auto;
    box-sizing: border-box;
    margin: 8px auto 0;
    padding: 10px 12px;
    background: transparent;
    color: #000; /* 文字は黒 */
    text-decoration: none;
    border: 4px solid #e4a404; /* 太めの黄色枠 */
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 360px) {
    .course .ic_link,
    .course2 .ic_link,
    .w1100 .ic_link {
        padding: 8px 10px;
        font-size: 13px;
    }
}

/* モバイル：PDF リンク（cp_btn）を見やすくする */
.w1100 .cp_btn,
.cp_btn {
    display: block;
    width: auto;
    max-width: 600px;
    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;
}

.w1100 .cp_btn img,
.cp_btn img {
    vertical-align: middle;
    margin-right: 8px;
}

.w1100 .cp_btn:hover,
.cp_btn:hover {
    background: #e4a404;
    color: #fff;
}

/* このスタイルは栄養外来ページのPDFリンク専用の変種（例：
    `public_html/shinryo/nutrition.php` 内の PDF リンク）。
    元の意図は「サイト全体ではなく限定的に使う」ことを示す注記です。
    他ページで使用する場合は影響範囲を確認してください。 */
.cp_btn--pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 94%;
    margin: 12px auto 0;
    padding: 10px 12px;
    background: #2EA5D5; /* detail-btn と同じ青水色 */
    color: #ffffff; /* 白文字 */
    text-decoration: none;
    border: 4px solid #2EA5D5; /* 同色の太め枠 */
    border-radius: 40px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    font-weight: 600;
    line-height: 1.4;
}

.w1100 .cp_btn img,
.cp_btn img {
    width: 22px;
    height: auto;
    display: inline-block;
    flex: 0 0 auto;
}

.w1100 .cp_btn::after,
.cp_btn::after {
    content: '→';
    margin-left: auto;
    font-weight: 700;
}

.cp_btn--pdf::after {
    color: #ffffff; /* 矢印は白 */
}

/* 小さい画面の微調整 */
@media (max-width: 360px) {
    .w1100 .cp_btn,
    .cp_btn {
        padding: 8px 10px;
        font-size: 13px;
    }
    .w1100 .cp_btn img,
    .cp_btn img { width: 18px; }
    .cp_btn--pdf { padding: 8px 10px; gap: 8px; font-size: 14px; }
}

/* テーブル間のセクションギャップ（モバイル） */
.section-gap {
    height: 32px;
    width: 100%;
}

/* モバイルでも内部テキストを黒に強制 */
.cp_btn--pdf,
.cp_btn--pdf *,
.cp_btn--pdf p,
.cp_btn--pdf span,
.cp_btn--pdf strong {
    color: #ffffff !important;
}
.cp_btn--pdf:hover {
    /* 案2：白背景 + 水色文字 + 少し濃いボーダー */
    background: #ffffff !important;
    color: #2EA5D5 !important;
    border-color: #1F91B3 !important;
}

/* hover arrow color override */
.cp_btn--pdf:hover::after {
    color: #2EA5D5 !important;
}

/* モバイル側：角丸が打ち消される事例に対処（画像や別ルールで上書きされないように） */
.cp_btn--pdf {
    overflow: hidden; /* 内部要素が外にはみ出して角が角張るのを防ぐ */
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    border-radius: 40px !important;
}

/* モバイル側も同様に、a.cp_btn による黄色の枠が表示される場合があるため
   特異度の高いセレクタで上書きして黄色枠を消す（栄養ページのPDFリンクのみ想定）。 */
a.cp_btn.cp_btn--pdf {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* モバイル：a + cp_btn--pdf のホバーを強制上書き（角丸維持） */
a.cp_btn.cp_btn--pdf:hover {
    background: #ffffff !important;
    color: #2EA5D5 !important;
    border: 4px solid #1F91B3 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    border-radius: 40px !important;
}

/* 読みやすさのためにフォントサイズを微調整 */
.w1100 .section-title { font-size: 20px; }

/* モバイル：h2.section-title の下に余白を追加（見出しと本文の間隔を確保） */
.w1100 .section-title { margin-bottom: 16px; }

/* ---- モバイル：栄養外来 テーブルヘッダーと成長コース 色指定（デスクトップと同じ配色） ---- */
.course2__head{
    box-sizing: border-box;
    /* 見出しを外枠にぴったり合わせる：左右マイナスマージンで親の内側余白を打ち消す */
    width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
    border: none !important;
    background-color: #ffb36b !important;
    color: #ffffff !important;
    padding: 0 12px; /* padding は左右のみにして高さは min-height で管理 */
    /* 高さを固定して、1行でも2行でも同じ縦幅にする */
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 外枠の角丸に合わせる（上部のみ） */
    border-radius: 10px 10px 0 0 !important;
    font-weight:700;
    text-align:center;
    margin-bottom:0; /* 見出しは外枠に接するため余白をなくす */
}

.course2__sub{
    display:block;
    color: #ffffff !important;
    font-weight:400;
    margin-top:4px;
    font-size:0.95em;
    line-height:1.1;
}

/* 成人向けヘッダー（モバイル） - .course2__head と同様に外枠にフィットさせる */
.course__head{
    box-sizing: border-box;
    width: calc(100% + 28px);
    margin-left: -14px;
    margin-right: -14px;
    border: none !important;
    background-color: #6cb4e4 !important; /* PC の青 */
    color: #ffffff !important;
    padding: 0 12px;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight:700 !important;
    border-radius: 10px 10px 0 0 !important;
    font-weight:700;
    text-align:center!important;
    box-shadow: none !important;
    margin-bottom:0; /* 見出しは外枠に接するため余白をなくす */
}

/* override row background so only the .course__head element shows the blue band
   (prevents the parent tr background from creating a different shape) */
.course tr:first-child {
    background: transparent !important;
}

.course2 tr:first-child .course2__head,
.course tr:first-child .course2__head {
    /* override for first-child: keep header flush with outer card */
    box-sizing: border-box;
    width: calc(100% + 28px) !important;
    margin-left: -14px !important;
    margin-right: -14px !important;
    border: none !important;
    background-color: #ffb36b !important;
    color: #ffffff !important;
    padding: 0 12px !important;
    min-height: 56px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    font-weight:700 !important;
    text-align:center !important;
    margin-bottom:0 !important;
    box-shadow: none !important;
    border-radius: 10px 10px 0 0 !important;
}

.course-growth{
    display:block;
    /* 成長コースはセル内で薄い黄色背景＋オレンジ文字で表現 */
    background-color: #fff9e5;
    color: #df7007 !important;
    padding: 10px 12px;
    border-radius:4px;
    margin-bottom:8px;
}

/* 成人向け：最初の左カラム（貧血コース）を明示的に揃える */
.course-first{
    display:block;
    /* 上の余白を詰めて見出しに接する */
    padding: 0 14px 8px 14px !important;
    text-align: center;
}

/* (duplicate override removed) The header .course2__head is consolidated earlier in this file
   to use the flex-centered, min-height band. Keeping that version avoids conflicting
   padding/box model rules. */

/* モバイルではテーブルをカード化している想定なのでセルの余白を調整 */
.course2 td, .course2 th{
    vertical-align: top;
    padding: 8px 10px;
}

/* --- 成人向け：見出しと最初のコースをくっつけて表示 --- */
/* 見出し（青帯）の下の余白を無くす */
.course__head,
.course tr:first-child th,
.course > tr:first-child th,
.course tbody > tr:first-child th {
    padding-bottom: 0 !important;
}

/* 成人向け表の左カラム（最初の項目）の上パディングを詰めて見出しに接する */
.course tr td:first-child,
.course > tr td:first-child,
.course tbody tr td:first-child {
    padding: 8px 14px 8px 14px !important;
}

/* 強制：小児〜大学生向け の上余白を詰める（成長コース など） */
.course2 tr td:first-child,
.course2 > tr td:first-child,
.course2 tbody tr td:first-child {
    padding: 8px 14px 8px 14px !important;
}

/* 成長コースの個別セル padding は上部で統合済み (.course-growth / .course-first) */




/* --- 栄養外来：本文と表説明をわずかに大きくして可読性を上げる --- */
.content-pair-bg__text p,
.content-pair__text p {
    /* モバイルで本文を約15pxに設定（デスクトップの16pxに近づける） */
    font-size: 15px;
}

/* Safety override: 万一ファイル内に残っている `.cp_btn--pdf` を
   栄養ページ用のPDFボタン色（cp_btn--pdf と同じ）にするための最終上書き。
   これによりモバイルで黄色のまま表示される問題を防ぎます。 */
a.cp_btn.cp_btn--pdf,
.cp_btn--pdf {
    background: #2EA5D5 !important; /* ベース色（水色） */
    color: #ffffff !important;
    border: 4px solid #2EA5D5 !important;
    border-radius: 40px !important;
    box-shadow: none !important;
    overflow: hidden !important;
}

a.cp_btn.cp_btn--pdf:hover,
.cp_btn--pdf:hover {
    background: #ffffff !important;
    color: #2EA5D5 !important;
    border: 4px solid #1F91B3 !important;
}

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

/* ------------------------------
   アンカー遷移のオフセット（固定ヘッダー対策・モバイル）
   JavaScriptで動的に設定される --header-offset を使用
------------------------------- */
:root { 
  --header-offset: 220px; /* デフォルト値（JavaScriptで上書きされる） */
}

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

/* セクション要素にも確実に適用 */
section[id="about"],
section[id="purpose"], 
section[id="examination"] {
  scroll-margin-top: var(--header-offset);
}


#rinenhoushin,#kobetsureha,#teamreha{
    margin-bottom:40px;
}

/* ------------------------------
   骨粗鬆症ページ専用：ナビゲーションメニュー（スマホ版は縦並び）
------------------------------- */
.osteo-menu-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 8px;
    margin: 15px auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

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

.osteo-menu-list li {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin: 8px auto;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0,0,0,0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    min-height: 62px;
    width: 90%;
    max-width: 90%;
}

.osteo-menu-list li::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 12px;
    height: calc(100% - 24px);
    width: 4px;
    background: linear-gradient(180deg, #2EA5D5, #1a8cb8);
    border-radius: 2px;
}

.osteo-menu-list li:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.10);
    border-color: #2EA5D5;
}

.osteo-menu-list a {
    display: flex;
    align-items: center;
    padding: 14px 18px 14px 36px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
    z-index: 2;
    white-space: pre-line;
    min-height: 62px;
    box-sizing: border-box;
}

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

.osteo-menu-list a:hover::after {
    right: 14px;
}

