/* ============================================================
    ヘッダー固定
============================================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

/* ============================================================
    ヘッダー（上部）デザイン
============================================================ */
header.site-header {
    display: flex;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    height: 100px;
    padding: 0 40px;
}

@media screen and (max-width: 1024px) {
    header.site-header {
        height: 68px;
    }
}

/* ===== 左側（ロゴ＋サブテキスト） ===== */
.header-left {
    gap: 18px;
}

.header-left .logo {
    font-size: 30px;
    font-weight: bold;
    color: #2b9b7d;
    letter-spacing: 3px;
    line-height: 1;
    font-family: "Corporate Logo ver3", "Noto Sans JP", sans-serif;
    max-width: 277.3px;
}

.header-left .subtext {
    font-size: 12px;
    color: #2b9b7d;
    line-height: 1.6;
    font-family: "Noto Sans JP", sans-serif;
    margin-bottom: 13.89px;
}

/* ===== ナビゲーション部分（右） ===== */
.header-nav {
    background: #ffffff;
    border-radius: 34px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    font-size: 14px;
    font-family: "Noto Sans JP", sans-serif;
    font-weight: bold;
    color: #000;
    white-space: nowrap;
    box-shadow: 0 3px 6px #00000029;
}

.header-nav ul {
    display: flex;
    align-items: center;
    gap: clamp(1px, 1vw, 24px);
    list-style: none;
    margin: 0;
    padding: 0 24px;
}

.header-nav li {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.header-nav li:hover {
    opacity: 0.7;
}

/* --- ナビ内のカラードット --- */
.header-nav .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

/* --- 地域別カラー --- */
.dot-yonago {
    background-color: #eb8e22;
}
.dot-tottori {
    background-color: #e6c657;
}
.dot-matsue {
    background-color: #eb9293;
}
.dot-izumo {
    background-color: #7fb2f1;
}

/* --- ナビ内 仕切り線（点線） --- */
.header-nav .vertical-divider {
    width: 1px;
    height: 24px;
    border-left: 1px dashed #999;
    margin: 0;
    list-style: none;
}
/* ===== ハンバーガーメニュー基本設定 ===== */
.menu-toggle {
    display: none;
}

/* ハンバーガーアイコン */
.menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    cursor: pointer;
    z-index: 200;
}

.menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: #2b9b7d;
    border-radius: 3px;
    transition: 0.3s ease;
}

@media screen and (min-width: 1050px) {
}
@media screen and (min-width: 520px) and (max-width: 1024px) {
    .header-nav {
        display: none;
    }
    .header-left .subtext {
        font-size: 10px;
        color: #000;
        line-height: 15px;
    }
    header.site-header {
        background-color: #fff;
        padding: 0 30px;
    }

    .menu-btn {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        transition: right 0.3s ease;
        box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header-nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    /* チェックされたら右からスライドイン */
    .menu-toggle:checked ~ .header-nav {
        right: 0;
    }

    /* ×アニメーション */
    .menu-toggle:checked + .menu-btn span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-toggle:checked + .menu-btn span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked + .menu-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

@media screen and (max-width: 519px) {
    .header-nav {
        display: none;
    }
    .header-left .subtext {
        font-size: 10px;
        color: #000;
        line-height: 15px;
    }
    header.site-header {
        background-color: #fff;
        padding: 0 30px;
    }

    .menu-btn {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #fff;
        transition: right 0.3s ease;
        box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .header-nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 0;
    }

    /* チェックされたら右からスライドイン */
    .menu-toggle:checked ~ .header-nav {
        right: 0;
    }

    /* ×アニメーション */
    .menu-toggle:checked + .menu-btn span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-toggle:checked + .menu-btn span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle:checked + .menu-btn span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}
