@charset "UTF-8";

/* =========================================================
   変数定義
========================================================= */
:root {
    --font-title: 'M PLUS Rounded 1c', sans-serif;
    --font-gothic: 'Noto Sans JP', sans-serif;
    --font-english: 'Cinzel', serif;
    --color-main: #013432;
    --color-text: #333333;
    --color-bg: #f9f9f9;
}

/* =========================================================
   リセット＆ベース
========================================================= */
* {
    margin: 0; padding: 0; box-sizing: border-box;
}
body {
    font-family: var(--font-gothic);
    color: var(--color-text);
    line-height: 1.6;
    background-color: #fff;
    padding-top: 0px; 
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
li { list-style: none; }

/* 共通コンポーネント */
.l-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* スクロールアニメーション */
.js-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.js-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ユーティリティ */
@media screen and (max-width: 768px) {
    .u-hidden-sp { display: none !important; }
}
@media screen and (min-width: 769px) {
    .u-hidden-pc { display: none !important; }
}

/* =========================================================
   共通タイトル・ボタン
========================================================= */
.c-sec-title {
    text-align: center;
    margin-bottom: 40px;
}
.c-sec-title__en {
    font-family: var(--font-english) !important;
    color: #b5b5b6;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.c-sec-title h1,
.c-sec-title h2 {
    font-family: 'Noto Sans JP', sans-serif !important;
    font-size: 2rem;
    font-weight: 700;
}
.c-sec-title--line h1,
.c-sec-title--line h2 {
    position: relative;
    padding-bottom: 20px;
}
.c-sec-title--line h1::after,
.c-sec-title--line h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 45px;
    height: 2px;
    background-color: var(--color-main);
}

.c-btn-wrap {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap; /* 画面幅が足りない時に自動で折り返す */
    gap: 15px; /* ボタン同士の上下・左右の隙間 */
}
.c-btn-wrap--left {
    text-align: left;
}

/* 従来の汎用ボタン */
.c-btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    transition: opacity 0.3s;
}
.c-btn:hover {
    opacity: 0.8;
}
.c-btn--yellow {
    background-color: var(--color-main);
    color: #fff;
}
.c-btn--square {
    border-radius: 4px !important;
}

/* ---------------------------------------------------------
   ▼▼ ボタン パターン1（単体ボタン：完全角丸・背景#013432・横幅拡張） ▼▼
--------------------------------------------------------- */
.c-btn-circle-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--color-main);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 30px;
    border-radius: 9999px; /* 完全な角丸 */
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(1, 52, 50, 0.15);
    transition: background-color 0.3s ease, padding 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.c-btn-circle-arrow:hover {
    background-color: #02524f; /* ホバーで少し明るい深緑へ */
    padding: 12px 38px;       /* ホバー時に横幅が少し大きくなる */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(1, 52, 50, 0.25);
    opacity: 1;
}

.c-btn-circle-arrow .arrow {
    display: inline-block;
    font-size: 16px;
    font-family: inherit;
    background: none;
    color: #fff;
    width: auto;
    height: auto;
    border-radius: 0;
    padding-left: 0;
    transition: transform 0.3s ease;
}

.c-btn-circle-arrow:hover .arrow {
    transform: translateX(4px); /* 矢印が少し右にスライド */
}

/* ---------------------------------------------------------
   ▼▼ ボタン パターン2（複数ボタン：ABOUT US等のすっきりした細い矢印） ▼▼
--------------------------------------------------------- */
.c-btn-outline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
    background-color: #fff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.c-btn-outline:hover {
    background-color: var(--color-main);
    border-color: var(--color-main);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 細いシャープな矢印アイコン */
.c-btn-outline .arrow {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #888;
    border-right: 1.5px solid #888;
    transform: rotate(45deg);
    font-size: 0; /* 元の全角文字を消去 */
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.c-btn-outline:hover .arrow {
    border-top-color: #fff;
    border-right-color: #fff;
    transform: rotate(45deg) translate(2px, -2px);
}

/* =========================================================
   ヘッダー (HEADER)
========================================================= */
.l-header {
    position: fixed;
    top: 0; 
    left: 0;
    width: 100%;
    background: transparent; 
    border-radius: 0;
    box-shadow: none;
    z-index: 1100; 
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* ★画像切り替え（デフォルト：白を表示、カラーを非表示） */
.header-logo-c, .header-tel-c {
    display: none;
}
.header-logo-w, .header-tel-w {
    display: block;
    /* ★白画像にドロップシャドウをつけて見やすくする */
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.l-header.is-scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* ★画像切り替え（スクロール後：カラーを表示、白を非表示） */
.l-header.is-scrolled .header-logo-w, 
.l-header.is-scrolled .header-tel-w {
    display: none;
}
.l-header.is-scrolled .header-logo-c, 
.l-header.is-scrolled .header-tel-c {
    display: block;
}

.l-header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px; 
    max-width: 1300px;
    margin: 0 auto;
}
.l-header__logo img { 
    height: 35px; 
}
.l-header__nav {
    display: flex;
    align-items: center;
}
.l-header__nav ul {
    display: flex;
    align-items: center;
    gap: 15px; 
    list-style: none;
    margin-right: 20px; 
}

/* ナビリンク色（デフォルト: 白＋シャドウ、スクロール後: 黒＋シャドウなし） */
.l-header__nav a {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    /* ★トップページキャッチコピーと同じシャドウ */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: color 0.3s, text-shadow 0.3s;
}
.l-header.is-scrolled .l-header__nav a {
    color: var(--color-text);
    text-shadow: none; /* ★スクロール後はシャドウを消す */
}
.l-header__nav a:hover,
.l-header.is-scrolled .l-header__nav a:hover {
    color: var(--color-main);
}

/* 電話番号色（デフォルト: 白＋シャドウ、スクロール後: メインカラー＋シャドウなし） */
.l-header__tel a {
    display: flex;
    align-items: center;
    font-size: 20px; 
    font-family: 'Noto Sans JP', sans-serif !important;
    font-weight: 700;
    color: #fff;
    /* ★トップページキャッチコピーと同じシャドウ */
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 2px 8px rgba(0, 0, 0, 0.6);
    transition: color 0.3s, text-shadow 0.3s;
}
.l-header.is-scrolled .l-header__tel a {
    color: var(--color-main);
    text-shadow: none; /* ★スクロール後はシャドウを消す */
}
.l-header__tel .icon {
    display: inline-flex;
    align-items: center;
    margin-right: 5px;
}
.l-header__tel .icon img {
    height: 18px; 
}

@media screen and (max-width: 768px) {
    .l-header {
        top: 0;
        width: 100%;
        left: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    .l-header.is-scrolled {
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    }
    .l-header__inner { 
        padding: 8px 15px;
    }
}

/* =========================================================
   ハンバーガー ＆ ドロワー (SP)
========================================================= */
.c-hamburger {
    width: 30px; height: 24px;
    position: relative;
    background: none; border: none; cursor: pointer;
    z-index: 1001;
}
.c-hamburger span {
    position: absolute; left: 0;
    width: 100%; height: 2px;
    background: #fff; /* ★デフォルト: 白 */
    /* ★ハンバーガーの線にもシャドウをつけて見やすくする */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    transition: all 0.3s;
}
.l-header.is-scrolled .c-hamburger span {
    background: var(--color-main); /* ★スクロール後: メインカラー */
    box-shadow: none; /* ★スクロール後はシャドウを消す */
}
.c-hamburger span:nth-child(1) { top: 0; }
.c-hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.c-hamburger span:nth-child(3) { bottom: 0; }
.c-hamburger.is-active span:nth-child(1) { transform: translateY(11px) rotate(45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); }
.c-hamburger.is-active span:nth-child(2) { opacity: 0; }
.c-hamburger.is-active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8); }

/* ★追加：スクロール後（メインビューを出た後）で開いた時はシャドウなし */
.l-header.is-scrolled .c-hamburger.is-active span:nth-child(1),
.l-header.is-scrolled .c-hamburger.is-active span:nth-child(3) {
    box-shadow: none;
}

.l-drawer {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(255, 255, 255, 0.96); 
    backdrop-filter: blur(10px); 
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
    padding-top: 65px; 
}
.l-drawer.is-active { transform: translateX(0); }
.l-drawer__inner {
    max-width: 500px;
    margin: 0 auto;
    padding: 10px 20px 30px; 
}

/* アコーディオンメニュー (SP) */
.p-sp-menu {
    margin-bottom: 20px; 
}
.p-sp-menu__item {
    border-bottom: 1px solid #eaeaea;
}
.p-sp-menu__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.p-sp-menu__link {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 12px 0; 
    font-size: 15px; 
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    line-height: 1;
}
.p-sp-menu__link .num {
    color: #b5b5b6; 
    font-size: 11px; 
    font-weight: 900;
    margin-right: 10px; 
    font-family: 'Noto Sans JP', sans-serif;
}
.p-sp-menu__toggle {
    width: 40px; 
    height: 40px;
    background: transparent;
    border: none;
    position: relative;
    cursor: pointer;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.p-sp-menu__toggle .icon {
    position: relative;
    width: 12px; 
    height: 12px;
}
.p-sp-menu__toggle .icon::before,
.p-sp-menu__toggle .icon::after {
    content: '';
    position: absolute;
    background-color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.p-sp-menu__toggle .icon::before {
    top: 50%; left: 0; width: 100%; height: 2px;
    transform: translateY(-50%);
}
.p-sp-menu__toggle .icon::after {
    top: 0; left: 50%; width: 2px; height: 100%;
    transform: translateX(-50%);
}
.p-sp-menu__toggle.is-open .icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}
.p-sp-menu__child {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.p-sp-menu__child-inner {
    padding-left: 24px; 
    padding-bottom: 12px; 
}
.p-sp-menu__child-inner li a {
    display: block;
    padding: 8px 0; 
    font-size: 14px; 
    color: var(--color-text);
    font-weight: 500;
    text-decoration: none;
}

.l-drawer__btns {
    display: flex;
    flex-direction: column;
    gap: 10px; 
}
.l-drawer__btns .c-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 12px; 
    border-radius: 4px; 
    font-size: 15px; 
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
.l-drawer__btns .c-btn--tel {
    background-color: var(--color-main);
    font-size: 20px; 
    font-family: 'Noto Sans JP', sans-serif !important;
}
.l-drawer__recruit {
    display: flex;
    gap: 10px;
}
.l-drawer__recruit .c-btn--blue {
    background-color: #00B7CE; 
    flex: 1; 
    padding: 12px 5px; 
}

/* =========================================================
   フローティング要素
========================================================= */
.l-float-pc {
    position: fixed;
    top: 50%; 
    right: 20px;
    transform: translateY(-50%);
    z-index: 1150;
    display: flex; flex-direction: column; gap: 15px;
}
.l-float-pc__btn {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    gap: 8px; 
    padding: 15px 10px;
    border-radius: 10px;
    background: var(--color-main);
    color: #fff;
    border: none; 
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
    box-shadow: -2px 2px 10px rgba(0,0,0,0.15);
}
.l-float-pc__btn:hover {
    transform: scale(1.05);
    background: #014d4a;
}
.l-float-pc__btn .icon { font-size: 18px; line-height: 1; margin-top: 5px; }
.l-float-pc__btn .icon img { width: 20px; height: auto; }
.l-float-pc__btn .text {
    writing-mode: vertical-rl; 
    letter-spacing: 2px;
    font-size: 13px;
}
.l-float-pc__panel {
    position: fixed;
    top: 50%; 
    right: -750px; 
    transform: translateY(-50%);
    background: #fff;
    box-shadow: -2px 0 15px rgba(0,0,0,0.15);
    transition: right 0.4s ease;
    padding: 40px 30px 30px; 
    width: 700px; 
    z-index: 1150;
    border-radius: 10px 0 0 10px;
}
.l-float-pc__panel.is-active { right: 100px; }
.l-float-pc__close {
    position: absolute; top: 10px; right: 15px;
    font-size: 28px; cursor: pointer; background: none; border: none; color: #666;
    transition: color 0.3s;
}
.l-float-pc__close:hover { color: #000; }
.p-float-reserve p {
    font-size: 15px; line-height: 1.8; margin-bottom: 10px;
}
.p-float-reserve .u-text-red {
    color: #e60000; margin-bottom: 25px;
}

/* SP 下部フローティング */
.l-float-sp {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    z-index: 90;
}
.l-float-sp__btns {
    display: flex;
    background: var(--color-main);
    padding: 8px 0;
}
.l-float-sp__btn {
    flex: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center; 
    color: #fff;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: bold;
    background: transparent; 
    border-top: none;
    border-bottom: none;
    border-left: none;
    padding: 6px 2px;
}
.l-float-sp__btn:last-child { border-right: none; }
.l-float-sp__btn img {
    width: 16px;
    height: auto;
    display: block;
}
.l-float-sp__panel {
    position: absolute;
    bottom: 100%; left: 0; width: 100%;
    background: #fff;
    transform: translateY(100%);
    opacity: 0; visibility: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.l-float-sp__panel.is-active {
    transform: translateY(0); opacity: 1; visibility: visible;
}
.l-float-sp__panel-inner { 
    position: relative; padding: 35px 10px 15px; 
}
.l-float-sp__close {
    position: absolute; top: 5px; right: 15px; font-size: 28px; color: #666;
    background: none; border: none; cursor: pointer; z-index: 10;
}

/* =========================================================
   セクション共通 & 診療時間表
========================================================= */
.p-section { padding: 80px 0; }
.p-schedule__table-wrap { overflow-x: auto; margin-bottom: 20px; }
.p-schedule__table { display: grid; grid-template-columns: 120px repeat(7, minmax(30px, 1fr)); border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; min-width: 500px; }
.p-schedule__table li { padding: 12px 2px; text-align: center; display: flex; justify-content: center; align-items: center; border-bottom: 1px solid #ddd; font-size: 14px; }
.p-schedule__table li:nth-last-child(-n+8) { border-bottom: none; }
.p-schedule__table .is-time { justify-content: flex-start; padding-left: 5px; font-family: 'Noto Sans JP', sans-serif; font-weight: 500; }
.p-schedule__table .is-sat { color: #0066cc; }
.p-schedule__table .is-sun { color: #cc0000; }
.p-schedule__table .is-disabled { color: #999; }
.p-schedule__table .u-note { font-size: 10px; margin-left: 2px; }
.p-schedule__notes { text-align: right; font-size: 12px; line-height: 1.6; }

@media screen and (max-width: 768px) {
    .p-schedule__table-wrap { margin: 0 -10px 20px; }
    .p-schedule__table { min-width: 100%; grid-template-columns: 85px repeat(7, 1fr); }
    .p-schedule__table li { padding: 8px 0; font-size: 12px; }
    .p-schedule__table .is-time { font-size: 11.5px; padding-left: 2px; letter-spacing: -0.5px; }
    .l-float-sp__panel .p-schedule__table-wrap {
        margin: 0 10px 20px; 
    }
}

/* =========================================================
   お問い合わせ (CONTACT)
========================================================= */
.p-contact {
    position: relative;
    padding: 100px 0;
    color: #fff; 
    text-align: center;
    background-color: #333; 
}
.p-contact__bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: 1;
}
.p-contact__bg::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
}
.p-contact__inner {
    position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center;
}
.c-sec-title--contact .c-sec-title__en { color: #fff; }
.c-sec-title--contact h2 {
    color: #fff; position: relative; padding-bottom: 20px; margin-bottom: 40px;
}
.c-sec-title--contact h2::after {
    content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 60px; height: 1px; background-color: #fff; 
}
.p-contact__tel-wrap { margin-bottom: 30px; }
.p-contact__tel {
    display: block; font-family: 'Noto Sans JP', sans-serif !important; font-size: 4rem;
    font-weight: bold; color: #fff; line-height: 1.2; margin-bottom: 20px;
    transition: opacity 0.3s;
}
.p-contact__tel:hover { opacity: 0.8; }
.p-contact__time, .p-contact__address, .p-contact__link {
    font-size: 1rem; line-height: 1.8; color: #fff;
}
.p-contact__address { margin-bottom: 20px; }
.p-contact__link a {
    text-decoration: underline; text-underline-offset: 4px; transition: opacity 0.3s; color: #fff; font-weight: bold;
}
.p-contact__link a:hover { opacity: 0.7; }
@media screen and (max-width: 768px) {
    .p-contact { padding: 60px 0; }
    .c-sec-title--contact h2 { font-size: 1.5rem; }
    .p-contact__tel { font-size: 2.5rem; margin-bottom: 15px; }
    .p-contact__time, .p-contact__address, .p-contact__link { font-size: 0.9rem; }
}

/* =========================================================
   アクセス (ACCESS)
========================================================= */
.p-access {
    display: flex; justify-content: space-between; gap: 50px; align-items: stretch;
}
.p-access__map { width: 50%; }
.p-access__map iframe {
    width: 100%; height: 100%; min-height: 350px; border-radius: 8px; display: block;
}
.p-access__info {
    width: 50%; display: flex; flex-direction: column; justify-content: center;
}
.p-access__list { margin-bottom: 30px; }
.p-access__item {
    display: flex; align-items: flex-start; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.6;
}
.p-access__item dt {
    width: 170px; font-weight: bold; display: flex; align-items: center; flex-shrink: 0;
}
.p-access__item dt .icon {
    margin-right: 10px; color: var(--color-main); font-size: 1.2rem; width: 20px; text-align: center;
}
.p-access__item dd { flex: 1; }
.p-access__btns { display: flex; gap: 15px; }

@media screen and (max-width: 768px) {
    .p-access { flex-direction: column; gap: 30px; }
    .p-access__map, .p-access__info { width: 100%; }
    .p-access__map iframe { min-height: 250px; }
    .p-access__item { flex-direction: column; margin-bottom: 20px; }
    .p-access__item dt { width: 100%; margin-bottom: 5px; }
    .p-access__item dd { padding-left: 30px; font-size: 0.9rem; }
    .p-access__btns { flex-direction: column; gap: 15px; }
}

/* =========================================================
   共通バナーエリア (ACCESS上部など)
========================================================= */
.p-common-banners {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.p-common-banners li {
    flex: 1;
}
.p-common-banners a {
    display: block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.p-common-banners a:hover {
    opacity: 0.8;
    transform: translateY(-3px);
}
.p-common-banners img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media screen and (max-width: 768px) {
    .p-common-banners {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .p-common-banners li {
        width: 80%; /* スマホ版：幅を少し狭めてドーンとならないように調整 */
        max-width: 380px;
    }
}

/* =========================================================
   フッター (FOOTER)
========================================================= */
.l-footer {
    background: #333; color: #fff; padding: 70px 0 20px; margin-top: 0; font-size: 13px; position: relative;
}
.p-footer-inner {
    display: flex; justify-content: space-between; gap: 80px; margin-bottom: 50px;
}
.p-footer-col--left { flex: 1; }
.p-footer-col--right { width: 320px; flex-shrink: 0; }
.p-footer-logo { margin-bottom: 20px; }
.p-footer-logo img { height: 45px; width: auto; display: block; }
.p-footer-desc { margin-bottom: 40px; color: #eee; font-size: 13px; letter-spacing: 0.05em; }
.p-footer-sitemap { margin-bottom: 50px; }
.p-footer-sitemap li { display: flex; align-items: flex-start; margin-bottom: 15px; line-height: 1.6; }
.p-footer-sitemap .head { width: 100px; flex-shrink: 0; }
.p-footer-sitemap .sep { margin: 0 15px; color: #666; }
.p-footer-sitemap .links { flex: 1; color: #aaa; }
.p-footer-sitemap a { color: #fff; transition: color 0.3s; }
.p-footer-sitemap a:hover, .p-footer-links a:hover { color: var(--color-main); }
.p-footer-sitemap .links a { color: #ccc; }
.p-footer-banners { display: flex; gap: 20px; }
.p-footer-banners a { flex: 1; transition: opacity 0.3s; }
.p-footer-banners a:hover { opacity: 0.8; }
.p-footer-banners img { width: 100%; height: auto; display: block; }
.p-footer-links li { margin-bottom: 12px; }
.p-footer-links a { color: #ccc; transition: color 0.3s; }
.p-footer-copyright {
    text-align: center; border-top: 1px solid #444; padding-top: 20px; color: #aaa; font-size: 12px;
}

@media screen and (max-width: 768px) {
    .l-footer { padding: 50px 0 20px; }
    .p-footer-inner { flex-direction: column; gap: 50px; }
    .p-footer-col--right { width: 100%; }
    .p-footer-sitemap li { flex-direction: column; margin-bottom: 25px; }
    .p-footer-sitemap .sep { display: none; }
    .p-footer-sitemap .head { width: 100%; margin-bottom: 8px; font-weight: bold; border-bottom: 1px solid #555; padding-bottom: 5px; }
    .p-footer-sitemap .links { line-height: 1.8; }
    .p-footer-banners { gap: 10px; }
}

/* =========================================================
   PC用 Page TOPボタン
========================================================= */
.c-page-top {
    position: fixed; 
    bottom: 20px; 
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-main); 
    color: #fff;
    font-size: 14px;
    font-weight: 500; 
    font-family: 'Noto Sans JP', sans-serif !important; 
    padding: 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); 
    transition: opacity 0.3s, transform 0.3s;
    z-index: 1000; 
}
.c-page-top:hover { 
    opacity: 0.9; 
    transform: translateY(-3px); 
}

@media screen and (max-width: 768px) {
    .c-page-top {
        display: none !important;
    }
}

/* =========================================================
   下層共通：ボトムナビゲーション
========================================================= */
.p-bottom-nav-section {
    padding: 60px 0 80px;
    background-color: #fff;
}
.p-bottom-nav {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.p-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.p-bottom-nav__item:hover {
    transform: translateY(-5px);
    opacity: 0.8;
}
.p-bottom-nav__item:hover .p-bottom-nav__text {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}
.p-bottom-nav__icon {
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}
.p-bottom-nav__icon img {
    width: 55px; 
    height: auto;
}
.p-bottom-nav__text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.4;
}

@media screen and (max-width: 768px) {
    .p-bottom-nav-section {
        padding: 40px 0 50px;
    }
    .p-bottom-nav {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 30px 10px;
    }
    .p-bottom-nav__icon {
        margin-bottom: 8px;
    }
    .p-bottom-nav__icon img {
        width: 45px;
    }
    .p-bottom-nav__text {
        font-size: 12px;
    }
}

/* =========================================================
   Cookie同意バナー
========================================================= */
.p-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(51, 51, 51, 0.95);
    color: #fff;
    z-index: 2000;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.p-cookie-banner.is-show {
    opacity: 1;
    visibility: visible;
}
.p-cookie-banner__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 15px 20px;
    gap: 20px;
}
.p-cookie-banner__text {
    font-size: 12px;
    line-height: 1.6;
    flex: 1;
}
.p-cookie-banner__text a {
    text-decoration: underline;
    color: #4dc0bb;
    font-weight: bold;
}
.p-cookie-banner__text a:hover {
    color: #fff;
    text-decoration: none;
}
.p-cookie-banner__btns {
    flex-shrink: 0;
}
.p-cookie-banner__btn {
    padding: 10px 30px;
    font-size: 14px;
    cursor: pointer;
    border: none;
}

@media screen and (max-width: 768px) {
    .p-cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        padding: 15px;
        gap: 15px;
    }
    .p-cookie-banner__btns {
        text-align: center;
    }
    .p-cookie-banner__btn {
        width: 100%;
    }
}

/* =========================================================
   共通：初診導線CTA
========================================================= */
.p-cta-section {
    position: relative;
    padding: 80px 0 0;
    margin-bottom: 80px;
    background-color: #fff;
    overflow: hidden;
}
.p-cta__inner {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    z-index: 2;
}
.p-cta__text-area {
    text-align: center;
    margin-bottom: 40px;
}
.p-cta__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
}
.p-cta__desc {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}
.p-cta__bottom {
    background-color: var(--color-main);
    padding: 30px 20px;
    position: relative;
    z-index: 1;
}
.p-cta__bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50vw;
    width: 200vw;
    height: 100%;
    background-color: var(--color-main);
    z-index: -1;
}
.p-cta__btns {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0; 
}
.c-btn-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    color: var(--color-text);
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.c-btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.c-btn-cta .arrow {
    color: var(--color-main);
    font-weight: bold;
}
.p-cta__img {
    position: absolute;
    bottom: 0;
    right: 5%; 
    width: 45%;
    max-width: 450px;
    z-index: 2;
    pointer-events: none; 
}
.p-cta__img img {
    width: 100%;
    height: auto;
    display: block;
}

@media screen and (max-width: 768px) {
    .p-cta-section {
        padding: 50px 0 0;
        margin-bottom: 50px;
    }
    .p-cta__title {
        font-size: 1.6rem;
    }
    .p-cta__desc {
        font-size: 0.9rem;
    }
    .p-cta__bottom {
        padding: 30px 15px;
    }
    .p-cta__btns {
        max-width: 100%;
        margin: 0 auto;
        position: relative;
        z-index: 10; 
    }
    .p-cta__img {
        position: relative; 
        bottom: auto;
        right: auto;
        width: 80%;
        max-width: 300px;
        margin: 0 auto -20px; 
        z-index: 1;
    }
}


/* =========================================================
   ▼▼ 追加：予約空き状況アラートバー ▼▼
========================================================= */
.p-alert-bar {
    background-color: var(--color-bg); 
    border-top: 2px solid var(--color-main);
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 0;
    width: 100%;
    margin-top: -5px; /* メインビジュアルとの隙間調整 */
    z-index: 50;
    position: relative;
}

.p-alert-bar__inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.p-alert-bar__label {
    background-color: var(--color-main);
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 4px 15px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.05em;
}

.p-alert-bar__text {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.6;
    /* 文字が長い場合は三点リーダー(...)で省略する設定 */
/*    white-space: nowrap;*/
/*    overflow: hidden;*/
/*    text-overflow: ellipsis;*/
}

@media screen and (max-width: 768px) {
    .p-alert-bar__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .p-alert-bar__label {
        font-size: 11px;
        padding: 3px 12px;
    }
    .p-alert-bar__text {
        font-size: 14px;
        width: 100%;
        /* SP表示時は改行を許容するか、1行で省略するかはお好みで。今回は2行まで許容する設定 */
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        line-height: 1.5;
    }
}


/* アラートバー内のボタンエリア */
.p-alert-bar__btns {
    display: flex;
    gap: 10px;
    margin-left: auto; /* PC表示で右側に寄せる */
    flex-shrink: 0; /* ボタンが潰れるのを防ぐ */
}

/* アラートバー専用 枠線ボタン */
.c-btn-alert-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: bold;
    color: var(--color-main); /* #013432 */
    background-color: transparent;
    border: 1px solid var(--color-main); /* #013432 */
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.c-btn-alert-outline:hover {
    background-color: var(--color-main);
    color: #fff;
}

/* スマホ表示時の調整 */
@media screen and (max-width: 768px) {
    .p-alert-bar__btns {
        margin-left: 0;
        width: 100%;
        margin-top: 5px;
    }
    .c-btn-alert-outline {
        flex: 1; /* スマホでは2つのボタンを均等幅で横並びに */
        padding: 8px 10px;
        font-size: 12px;
    }
}


/* =========================================================
   パンくずリスト
========================================================= */
.c-breadcrumb {
    background-color: var(--color-bg);
    padding: 12px 0;
    border-bottom: 1px solid #eaeaea;
}
.c-breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    font-size: 0.85rem;
}
.c-breadcrumb li {
    display: flex;
    align-items: center;
    color: #888;
}
.c-breadcrumb li a {
    color: var(--color-text);
    text-decoration: none;
    transition: opacity 0.3s;
}
.c-breadcrumb li a:hover {
    opacity: 0.7;
    text-decoration: underline;
}
.c-breadcrumb li:not(:last-child)::after {
    content: "＞";
    margin: 0 10px;
    color: #ccc;
    font-size: 0.8rem;
}

@media screen and (max-width: 768px) {
    .c-breadcrumb {
        padding: 10px 0;
    }
    .c-breadcrumb ul {
        font-size: 0.75rem;
    }
    .c-breadcrumb li:not(:last-child)::after {
        margin: 0 6px;
    }
}


/* =========================================================
   下層ページ メインビュー (Sub Hero)
========================================================= */
.p-sub-hero {
    position: relative;
    width: 100%;
    height: 320px;
    background: url('/demo/assets/img/common/h1_bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px; 
}
.p-sub-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2); 
}
.p-sub-hero__inner {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.p-sub-hero__title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
}
.p-sub-hero__en {
    font-family: var(--font-english);
    font-size: 1.2rem;
    letter-spacing: 0.15em;
}

@media screen and (max-width: 768px) {
    .p-sub-hero {
        height: 220px;
    }
    .p-sub-hero__title {
        font-size: 1.8rem;
    }
    .p-sub-hero__en {
        font-size: 1rem;
    }
}