@charset "utf-8";

/* ===================================================
   1. 基本設定 (Base Settings)
   =================================================== */
html {
    /* 1rem = 10px にするための計算式 */
    font-size: 62.5%; 
}

body {
    font-size: 1.6rem; /* 16px */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    font-weight: 400;
    line-height: 1.5;
    color: #333;
    background-color: #fff;
    margin: 0;
}

a:hover {
    color: #cfcfcf;
}

/* ===================================================
   2. 固定ページ専用 レスポンシブフォント設定 (NEW)
   ※Bootstrapのブレークポイント準拠 / rem対応版
   =================================================== */

/* PCサイズ (基本) */
.page .entry-content p {
    font-size: 1.8rem; /* 18px */
    line-height: 1.8;
}
.page .entry-content h2 {
    font-size: 3.2rem; /* 32px (Bootstrap h2相当) */
}
.page .entry-content h3 {
    font-size: 2.8rem; /* 28px (Bootstrap h3相当) */
}

/* タブレット以下 (768px未満) */
@media (max-width: 767.98px) {
    .page .entry-content p {
        font-size: 1.6rem; /* 16px - スマホ標準 */
    }
    .page .entry-content h2 {
        font-size: 2.4rem; /* 24px */
    }
    .page .entry-content h3 {
        font-size: 2.0rem; /* 20px */
    }
}

/* スマホ横向き・極小画面 (576px未満) */
@media (max-width: 575.98px) {
    .page .entry-content p {
        font-size: 1.5rem; /* 15px - 少し小さくして可読性確保 */
        line-height: 1.6;
    }
}

/* ===================================================
   3. ヘッダー・ナビゲーション (Navigation)
   =================================================== */
.nav-item {
    font-weight: 700 !important;
    text-align: left;
    margin-right: 10px;
    font-size: clamp(1.2rem, 4vw, 1.8rem); /* clampもrem換算推奨ですがpxでも動作します */
}

.nav-item-animate {
    position: relative; 
    color: #333; 
    display: inline-block; 
    transition: color 0.3s ease-in-out; 
}

.nav-item-animate:hover {
    color: #CAB69F !important;
}

/* 下線アニメーション */
.nav-item-animate::after {
    content: '';
    position: absolute;
    bottom: 0; 
    left: 50%; 
    transform: translateX(-50%); 
    height: 2px; 
    width: 0; 
    background-color: #CAB69F; 
    transition: width 0.3s ease-in-out; 
}

.nav-item-animate:hover::after {
    width: 100%; 
}

/* カレント表示 (active) */
.nav-item.active a {
    color: #CAB69F !important;
    text-decoration-line: underline;
    text-decoration-color: #CAB69F;
    text-decoration-thickness: 2px;
    text-underline-offset: 16px;
}

.nav-item.active a:hover::after {
    width: 0%; 
}

/* ドロップダウンメニュー */
.dropdown-menu {
    background-color: #F7F5F1;
    font-weight: 700 !important;
    border: 0;
    border-radius: 0;
}

.dropdown-item:hover {
    background-color: #AF9373; 
    color: #ffffff;
}

.custom-list-link {
    font-size: 1.4em;
    border: none !important; 
    border-bottom: 1px solid #dee2e6 !important;
    color: #333;
    padding: .5rem 1rem;
}

.last-item-no-border {
    border-bottom: none !important;
}

/* PCのみドロップダウンホバー表示 */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.nav-item.dropdown .dropdown-menu {
    border-radius: 0;
}

.fa-caret-down:before {
    content: none !important; 
}

/* ナビゲーション (フッター付近など) */
.clinic-navigation {
    width: 100%;
    font-family: sans-serif;
}
.clinic-navigation ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}
.clinic-navigation li {
    margin-bottom: 8px;
}
.clinic-navigation li::after {
    content: "|";
    margin: 0 10px;
    color: #555;
    font-size: 0.9em;
}
.clinic-navigation li:last-child::after {
    content: none;
}
.clinic-navigation a {
    text-decoration: none;
    color: #333;
    font-size: 1.4rem;
}
.clinic-navigation a:hover {
    text-decoration: underline;
    color: #000;
}


/* ===================================================
   4. 見出し・タイトル装飾 (Headings & Titles)
   =================================================== */
.heading-title {
    line-height: 1;
    margin: 0;
    padding: 0;
    text-align: center;
}

.out_heading-title {
    background-color: #F7F5F1;
    position: relative;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 2.5px;
    color: #AF9373;
}

.bg_heading-title {
    padding: 35px 0px 20px 0px;
}

.h1_title {
    margin: 1rem 1.5rem;
    text-align: center;
    margin-block-end: 5px;
}

h1 {
    font-family: "ゴシックA", Sans-serif;
    font-size: 2.0rem;
    font-weight: 500;
    color: #000000;
}

h3 {
    font-family: "明朝体１", Sans-serif;
    font-size: 2.0rem;
    font-weight: 500;
    line-height: 1.5em;
    letter-spacing: 0px;
    color: #299027;
}

.h3-title {
    background-color: #DFFFE2;
    margin: 0;
    border-left: 5px solid #299027;
    border-radius: 0;
}

.h3-title:before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    content: "";
}

.dotted_line {
    font-size: larger;
    color: black;
    border-bottom: 3px dotted #299027; 
    padding: 10px 15px 10px 30px;
    margin: 0 0 2rem;
    border-left: 5px solid #388e3c;
    padding-bottom: 20px; 
    margin-bottom: 30px;
    background-color: transparent;
}

.section-title,
h2.my-original-page-title {
    font-size: 2.0rem !important;
    font-weight: bold;
    color: #388e3c;
    background-color: #e8f5e9;
    padding: 10px 15px 10px 30px;
    margin: 0 0 20px;
    border-left: 5px solid #388e3c;
}
/* TOP　H2　キャッチ */
.top-category-heading {
    font-weight: bold;
    background-color: #e8f5e9;
    padding: 10px 15px 10px 15px;
    margin: 0 0 20px;
    font-size: 1.8rem !important;
    color: #388e3c;
}
/* --- モバイル対応 (768px未満) --- */
@media (max-width: 767.98px) {    
    .top-category-heading {
        font-size: 1.6rem !important;
        padding: 10px 5px 10px 5px;
    }
}
.qa-heading {
    font-size: 1.8rem;
    font-weight: bold;
    color: #333;
    padding: 10px 0 10px 15px;
    margin: 25px 0 10px 0;
    border-left: 3px solid #388e3c;
    border-bottom: 2px dotted #4caf50;
    display: block;
    line-height: 1.5;
}

.top_h4 {
    font-size: larger;
    color: #333;
    border-bottom: 1px solid rgb(58, 58, 58);
    padding-bottom: 20px;
    margin-bottom: 30px;
    background-color: transparent;
}

/* ページタイトル（カスタムフィールド等） */
.page-title-a-wrap {
    text-align: center;
    padding: 40px 20px;
    margin-bottom: 30px;
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
}
.page-title-a-text {
    font-size: 2.5rem;
    color: #333;
    font-weight: 300;
    margin-bottom: 10px;
    text-transform: lowercase;
}
.page-title-a-subtitle {
    font-size: 1.5rem;
    color: #555;
    font-weight: 600;
    margin-bottom: 20px;
}
.page-title-a-line {
    width: 60px;
    height: 3px;
    background-color: #5cb85c;
    margin: 0 auto;
}


/* ===================================================
   5. ボタン・CTA (Buttons & CTA)
   =================================================== */
/* 24時間予約ボタンなど */
.button-24h-reserve,
.tel-number {
    height: 35px;
    width: 245px;
    justify-content: center;
    align-items: center;
    display: inline-flex;
    font-size: 2.0rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    fill: #FFFFFF;
    border: 1px solid #5A5A5A;
    border-radius: 0;
}

.button-24h-reserve {
    background-color: #A73D3D;
}

.tel-number {
    background-color: #5A5A5A;
}

/* バウンドアニメーションボタン */
@keyframes bounceUp {
    0% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
    70% { transform: translateY(-5px); }
    85% { transform: translateY(-10px); }
    100% { transform: translateY(-10px); }
}

.custom-bounce-btn {
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.custom-bounce-btn:hover {
    background-color: #fff !important;
    border: 1px solid #000;
    color: #000 !important;
    animation: bounceUp 0.8s forwards;
}

.custom-bounce-btn:not(:hover) {
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* 緑色の次へボタン */
.next-button {
    display: inline-block;
    padding: 8px 26px;
    border-radius: 8px;
    text-decoration: none;
    background: #14c442;
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
}
.next-button:hover {
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.3), 0 0 8px rgba(7, 255, 114, 0.7);
}
.next-button a {
    font-size: smaller;
    color: #fff !important;
    text-decoration: none;
}

/* 予約ボタン (グラデーション) */
.reservation-button {
    display: inline-block;
    padding: 15px 25px;
    border-radius: 8px;
    text-decoration: none;
    background: linear-gradient(to bottom, #ffc107, #ff8f00);
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 193, 7, 0.5);
}
.reservation-button:hover {
    background: linear-gradient(to bottom, #ffd54f, #ffb300);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3), 0 0 15px rgba(255, 193, 7, 0.7);
    color: #fff !important; 
}

/* オリジナル緑ボタン */
.my-green-btn {
    background-color: #008000 !important;
    color: #ffffff !important;
    border: none;
    border-radius: 5px;
    padding: 15px 20px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s;
}
.my-green-btn:hover {
    background-color: #006400;
    color: #ffffff !important;
    transform: translateY(2px);
    box-shadow: none;
    opacity: 1;
}

/* 画像ボタンリンク */
.image-button-link {
    display: block;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
}
.image-button-link:hover {
    transform: translateY(-10px);
    text-decoration: none;
    color: #007bff;
    border-radius: 75px;
}
.image-button-item {
    border-radius: 75px;
    transition: all 0.3s ease-in-out;
}
.image-button-link:hover .image-button-item {
    opacity: 0.9;
}
.button-label {
    font-size: .6em;
    font-weight: bold;
    margin-top: 8px;
    color: inherit;
    transition: color 0.3s ease-in-out;
}

/* ===================================================
   6. テーブル・診療時間 (Tables & Schedules)
   =================================================== */
/* 背景白・カスタムテーブル */
.table-white-bg tr,
.table-white-bg td {
    font-size: .9em;
    padding: 10px;
    background-color: #fff !important;
}
.table-white-bg tbody tr:nth-of-type(even) {
    background-color: #fff !important;
}

/* 透明テーブル（線なし） */
.custom-clear-table {
    background-color: transparent !important;
    --bs-table-bg: transparent !important;
    --bs-table-accent-bg: transparent !important;
}
.custom-clear-table tr,
.custom-clear-table th,
.custom-clear-table td {
    background-color: transparent !important;
    border: none !important;
}
.custom-clear-table tr:nth-child(2n),
.custom-clear-table tr:nth-of-type(even) {
    background-color: transparent !important;
}
.custom-clear-table .icon-col {
    width: 1%;
    white-space: nowrap;
    vertical-align: top;
    padding-bottom: 1rem;
}
.custom-clear-table .text-col {
    vertical-align: top;
    padding-bottom: 1rem;
}

/* 診療時間表 */
table.time_table {
    width: 80%;
    border-collapse: collapse;
    font-family: 'Noto Sans JP', sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px auto;
    border-radius: 8px;
    overflow: hidden;
}
table.time_table tr:nth-of-type(2n+1) {
    background-color: #ffffff;
}
table.time_table thead th {
    background-color: #ffffff;
    color: rgb(0, 0, 0);
    padding: 12px 8px;
    border: 1px solid #dee2e6;
    text-align: center;
    font-weight: bold;
    white-space: nowrap;
}
table.time_table td {
    padding: 10px 8px;
    border: 1px solid #dee2e6;
    text-align: center;
    vertical-align: middle;
    transition: background-color 0.2s;
    color: darkorange;
}
table.time_table tbody tr td:first-child {
    text-align: center;
    font-weight: bold;
    background-color: #ffffff;
}

.closed {
    background-color: #e9ecef;
    color: #6c757d;
    font-style: italic;
}
.special-hours {
    background-color: #ffc107;
    color: #343a40;
    font-weight: bold;
}

/* ===================================================
   7. コンポーネント・その他 (Components & Misc)
   =================================================== */
.bordered-element {
    width: 70px;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 1px solid black;
    padding: 0;
    text-align: center;
}

.my-original-text-area {
    padding: 0 0 0 1.5rem;
}

/* 画像とキャプション */
.image-with-caption {
    width: 80%;
    margin: 20px auto;
    text-align: center;
}
.my-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}
.image-caption {
    font-style: italic;
    color: #555;
    margin-top: 10px;
    font-size: 0.9em;
}

/* ステップリスト */
.custom-steps-list .list-group-item {
    border-bottom: 1px solid #e9ecef;
}
.custom-steps-list .list-group-item:last-child {
    border-bottom: none;
}

/* 電話バナー */
.tel_ban {
    position: fixed;
    max-width: 827px;
    bottom: 0px;
    inset-inline-start: 10px;
}
.tel_ban img {
    width: 800px;
}

.container_box {
    width: 100%;
}
.container_box img {
    margin: 1rem;
    max-width: 280px;
    width: 80%;
}

.s12-text {
    font-size: 1.2rem;
}
/* ===================================================
   汎用：大きなテキスト (Utility: Large Text)
   ※見出し(h2,h3)にも強制適用するための !important 付き
   =================================================== */

/* 特大サイズ (キャッチコピーなど) */
.text-xl {
    font-size: 3.2rem !important; /* Cocoonのh2設定を上書き */
    font-weight: 700;
    line-height: 1.4;
    color: #388e3c;    /* 緑色（不要なら削除可） */
}

/* 大サイズ (強調テキストなど) */
.text-lg {
    font-size: 2.4rem !important; /* Cocoonのh3設定を上書き */
    font-weight: 700;
    line-height: 1.6;
}

/* 中サイズ (リード文など) */
.text-md {
    font-size: 1.8rem !important;
    font-weight: 500;
}

/* --- モバイル対応 (768px未満) --- */
@media (max-width: 767.98px) {
    .text-xl {
        font-size: 2.4rem !important; /* スマホで見やすいサイズに強制 */
    }
    
    .text-lg {
        font-size: 2.0rem !important;
    }
    
    .text-md {
        font-size: 1.6rem !important;
    }
}
/* ===================================================
   8. クリニック情報エリア (Clinic Info Area)
   =================================================== */
.clinic-info-container {
    background-color: #2c2c2c;
    color: #ffffff;
    padding: 30px 40px;
    align-items: flex-start;
    font-family: 'Noto Sans JP', sans-serif;
}
.clinic-details {
    padding-right: 30px;
    line-height: 1.6;
}
.clinic-details h1 {
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 5px;
}
.clinic-details p {
    font-size: 1.4rem;
    opacity: 0.8;
}
.vertical-divider {
    width: 1px;
    background-color: #444444;
    height: 200px;
    margin: 0 40px 0 0px;
    float: left;
}
.schedule-and-contact {
    flex-grow: 1;
    justify-content: space-between;
}
.schedule {
    flex-basis: 50%;
    padding-top: 5px;
}
.schedule-item {
    display: flex;
    margin-bottom: 8px;
    font-size: 1.5rem;
}
.schedule-item .day {
    font-weight: bold;
    min-width: 60px;
    margin-right: 15px;
}
.notes-and-button {
    flex-basis: 45%;
    align-items: flex-end;
}
.note {
    font-size: 1.2rem;
    line-height: 1.8;
    padding-left: 10px;
    margin-bottom: 15px;
    white-space: pre-line;
}
.note strong {
    color: #ffc107;
}
.contact-button {
    display: inline-block;
    padding: 10px 40px;
    border: 1px solid #ffffff;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    font-weight: bold;
    transition: background-color 0.3s;
}
.contact-button:hover {
    background-color: #444444;
    color: #ffffff !important;
}
.copyright {
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.0rem;
    opacity: 0.6;
}

/* ===================================================
   9. サイドメニュー (Side Menu)
   =================================================== */
.side-menu {
    text-align: center;
    max-width: 250px;
    border-bottom: 1px solid #ccc;
    font-family: 'Noto Sans JP', sans-serif;
}
.menu-header {
    background-color: #388e3c;
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    padding: 12px 10px;
}
.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.side-menu li {
    border-bottom: 1px solid #e0e0e0;
}
.side-menu li:last-child {
    border-bottom: none;
}
.side-menu a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    background-color: #ffffff;
    font-size: 1.5rem;
    transition: background-color 0.2s, color 0.2s;
}
.side-menu a:hover {
    background-color: #e0f2f1;
    color: #00796b;
}

/* ===================================================
   10. Bootstrap × Cocoon 構造分離版スタイル
   =================================================== */
/* 1. メインエリアの調整 */
.bootstrap-layout-root #main {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    border: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* 2. サイドバーエリアの調整 */
.bootstrap-layout-root #sidebar {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* 3. 画像のはみ出し防止 */
.bootstrap-layout-root img {
    max-width: 100%;
    height: auto;
}

/* 4. Bootstrapコンテナの最大幅 */
.bootstrap-layout-root.container {
    max-width: 1320px; 
}

/* 5. PC表示時の並び順 */
@media (min-width: 992px) {
    .order-lg-1 { order: 1 !important; }
    .order-lg-2 { order: 2 !important; }
}

/* 6. スマホ表示時の余白 */
@media (max-width: 991.98px) {
    .bootstrap-layout-root #main {
        margin-bottom: 3rem !important;
    }
}

/* Cocoon用CSSに追加 */
@media (min-width: 992px) {
    .bootstrap-page-layout .row {
        flex-wrap: nowrap !important;
    }
}