/* =========================================
    リセット & ベーススタイル
    ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
}
body {
    margin: 0;
    padding: 0;
    padding-top: 160px; /* ヘッダーが浮いている分、少し多めに余白確保 */
    font-family: "M PLUS Rounded 1c", sans-serif;
    color: #333;
    line-height: 1.6;
    background-color: #fefefe; 
}
a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}
ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}
table {
    border-collapse: collapse;
    border-spacing: 0;
}
/* ユーティリティクラス */
.pc { display: block; }
.sp { display: none; }
.flex { display: flex; }
.f-ai-c { align-items: center; }
.f-jc-sb { justify-content: space-between; }
.text-center { text-align: center; }
.text-left { text-align: left; }

/* =========================================
    ヘッダー全体設計
    ========================================= */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}
/* --- ヘッダーの角丸・透過コンテナ --- */
.header__wrap {
    width: 96%;
    max-width: 1160px;
    margin: 10px auto;
    padding: 10px 20px 0;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}
/* 全幅モード */
.header__wrap.header-full {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
/* 上段: ロゴと電話番号エリア */
.header__top {
    width: 100%;
    background-color: transparent;
    margin-bottom: 10px;
}
.header__top-inner {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header__logo p {
    font-size: 12px;
    margin: 0 0 5px 0;
    color: #666;
    font-weight: 500;
}
.header__logo a {
    display: inline-block;
}
.header__logo img {
    mix-blend-mode: multiply; 
    max-height: 60px; /* PCでのロゴの高さ制限 */
    width: auto;
}
.logo-placeholder {
    font-size: 24px;
    font-weight: 800;
    color: #00406c;
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-placeholder i {
    font-size: 28px;
}
/* 電話番号ボタン (PC用) */
.header__tel .btn__tel {
    display: flex;
    align-items: center;
    color: #00406c;
    font-weight: bold;
    transition: opacity 0.3s;
}
.header__tel .btn__tel:hover {
    opacity: 0.7;
}
.header__tel .btn__tel i {
    font-size: 20px;
    margin-right: 8px;
    color: #3584bb;
}
.header__tel .btn__tel span {
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.05em;
}
/* =========================================
    グローバルナビゲーション
    ========================================= */
.header__nav {
    width: 100%;
    background-color: transparent;
    border-top: 1px solid rgba(0, 64, 108, 0.15); 
    position: relative;
}
.header__nav-inner {
    width: 100%;
    margin: 0 auto;
}
.pc-nav-list {
    display: flex;
    justify-content: center;
    padding: 5px 0 10px;
    flex-wrap: nowrap; /* 折り返しを禁止 */
}
.pc-nav-list > li {
    position: relative;
    white-space: nowrap; /* 文字の折り返しを禁止 */
}
.pc-nav-list > li > a {
    display: block;
    padding: 12px 30px; /* デフォルトの余白 */
    color: #00406c;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.05em;
    position: relative;
}

.pc-nav-list > li > a:hover {
    color: #3584bb;
    background-color: rgba(240, 246, 250, 0.5);
    border-radius: 8px;
}

/* メニュー間の区切り線 */
.pc-nav-list > li:not(:last-child) > a::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background-color: #00406c;
    opacity: 0.3;
}

/* =========================================
    メガメニュー (PC用)
    ========================================= */
.pc-nav-list > li.has-mega:hover .mega-menu {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    transform: translateY(10px);
    border-radius: 0 0 30px 30px;
    
    /* デザイン */
    background-color: #f7fbfe;
    border-top: 2px solid #3584bb;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.pc-nav-list > li.has-mega {
    position: static;
}
.header__nav {
    position: relative;
}

.header__wrap.header-full .mega-menu {
    border-radius: 0;
}

.mega-menu__inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

.mega-menu__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.mega-menu__item a {
    display: flex;
    align-items: center;
    background-color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #dae1e6;
    color: #00406c;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    height: 100%;
}

.mega-menu__item a:hover {
    background-color: #00406c;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    border-color: #00406c;
}

.mega-menu__item i {
    font-size: 18px;
    margin-right: 10px;
    width: 20px;
    text-align: center;
    color: #3584bb;
    transition: color 0.3s;
}

.mega-menu__item a:hover i {
    color: #fff;
}

/* =========================================
    レスポンシブ (SP / Tablet) - 1024px以下
    ========================================= */
.hamburger-menu { display: none; }

@media screen and (max-width: 1024px) {
    body {
        padding-top: 80px; 
        background-color: #fff;
    }
    .pc { display: none; }
    .sp { display: block; }

    header {
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        height: 90px;
    }
.header__wrap {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: #fff !important;
    border-radius: 0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: none !important;
}
    .header__top { margin-bottom: 0; }
    .header__top-inner {
        padding: 10px 15px;
    }
    .header__top-inner {
        width: 100% !important;
        padding: 10px 15px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .header__logo img {
        height: 45px !important;
        width: auto !important;
    }
    .logo-placeholder { font-size: 20px; }
    .header__nav { display: none; }
    .hamburger-menu { display: block; }
    .menu-btn {
        position: fixed;
        top: 18px;
        right: 0px;
        width: 80px;
        height: 60px;
        z-index: 2000;
        border-radius: 5px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }
    .menu-btn span,
    .menu-btn span::before,
    .menu-btn span::after {
        content: "";
        display: block;
        height: 3px;
        width: 40px;
        background-color: #00406c;
        border-radius: 3px;
        position: absolute;
        transition: 0.3s;
    }
    .menu-btn span { top: 50%; transform: translateY(-50%); }
    .menu-btn span::before { top: -13px; }
    .menu-btn span::after { top: 13px; }

    .menu-btn::after {
        content: "MENU";
        font-size: 12px;
        color: #00406c;
        font-weight: bold;
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 100%;
        text-align: center;
    }

    #menu-btn-check:checked ~ .menu-btn span { background-color: transparent; }
    #menu-btn-check:checked ~ .menu-btn span::before { top: 0; transform: rotate(45deg); }
    #menu-btn-check:checked ~ .menu-btn span::after { top: 0; transform: rotate(-45deg); }
    #menu-btn-check:checked ~ .menu-btn::after { content: "CLOSE"; }

    .menu-content {
        width: 100%;
        height: 100%;
        position: fixed;
        top: 0;
        left: 100%;
        z-index: 1999;
        background-color: #fff;
        transition: all 0.4s ease;
        overflow-y: auto;
        padding-top: 80px;
        padding-bottom: 50px;
    }
    #menu-btn-check:checked ~ .menu-content { left: 0; }

    .sp-menu-header {
        text-align: center;
        margin-bottom: 20px;
        padding: 10px;
        border-bottom: 1px solid #eee;
    }
    .sp-menu-list { padding: 0 20px; }
    .sp-menu-list > li { border-bottom: 1px solid #707070; }
    .sp-menu-list > li > a, .sp-accordion-label {
        display: block;
        padding: 15px 10px;
        color: #707070;
        font-weight: bold;
        font-size: 16px;
        position: relative;
        text-align: left;
    }
    
    .sp-menu-list > li > a::before, .sp-accordion-label::after {
        content: "";
        width: 8px;
        height: 8px;
        border-top: solid 2px #707070;
        border-right: solid 2px #707070;
        transform: rotate(45deg);
        position: absolute;
        right: 15px;
        top: 50%;
        margin-top: -5px;
    }
    .sp-accordion-label::after { transition: transform 0.3s; }
    #sp-medical-check:checked + .sp-accordion-label::after {
        transform: rotate(135deg);
        margin-top: -8px;
    }

    .sp-accordion-content {
        display: none;
        background-color: #f7fbfe;
        border-top: 1px solid #eee;
    }
    #sp-medical-check { display: none; }
    #sp-medical-check:checked ~ .sp-accordion-content { display: block; }
    .sp-sub-menu li a {
        display: block;
        padding: 12px 20px 12px 40px;
        color: #555;
        font-size: 14px;
        border-bottom: 1px dashed #e0e0e0;
    }

    .toggle-menu-yoyaku { width: 90%; margin: 40px auto; }
    .toggle-tel-btn { text-align: center; margin: 0 auto 20px; }
    .toggle-menu-yoyaku .toggle-tel-btn a {
        font-size: 30px;
        color: #00406c;
        font-weight: bold;
        letter-spacing: 0.011em;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }
    .toggle-time {
        font-size: 14px;
        color: #00406c;
        text-align: center;
        margin-bottom: 20px;
    }
    .toggle-yoyaku-btn {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
        background-color: #00406c;
        border-radius: 50px;
        text-align: center;
        padding: 12px;
    }
    .toggle-yoyaku-btn a {
        font-size: 16px;
        color: #fff;
        font-weight: bold;
        display: block;
    }

    .consultation-hours-wrap { width: 90%; margin: 40px auto; }
    .consultation-hours-table { width: 100%; margin: 0 auto 20px; font-size: 14px; }
    .consultation-hours-table th {
        width: 25%;
        border-bottom: 1px solid #707070;
        padding: 8px 0;
        color: #707070;
        text-align: left;
        font-weight: normal;
    }
    .consultation-hours-table td {
        border-bottom: 1px solid #707070;
        color: #707070;
        text-align: center;
        padding: 8px 2px;
    }
    .consultation-hours-table td.center { text-align: center; }
    ol.consultation-text {
        width: 100%;
        margin: 10px auto;
        font-size: 13px;
        color: #666;
    }

    .toggle-map-wrap {
        width: 100%;
        background: #c7daea;
        text-align: center;
        color: #fff;
        padding-bottom: 30px;
    }
    .toggle-map-inner { padding: 10px; }
    .toggle-map-inner p.map-title {
        font-size: 21px;
        font-weight: 600;
        padding: 20px;
        color: #fff;
        margin: 0;
    }
    .toggle-map-inner img.map-img {
        max-width: 90%;
        height: auto;
        border: 0;
        background: #fff;
        border-radius: 20px;
    }
    p.toggle-map-adress {
        text-align: center;
        padding: 15px 0;
        font-size: 14px;
        font-weight: 600;
        color: #00406c;
    }
}
.hamburger-menu {
    display: block !important;
    z-index: 9999 !important;
    position: relative;
}
.menu-btn {
    display: flex !important;
    z-index: 10000 !important;
}
@media screen and (min-width: 821px) {
    .hamburger-menu.sp {
        display: none !important;
    }
}


