@charset "UTF-8";
/* ヘッダー全体 */
header {
    border-bottom: 2px solid var(--main);
    background-color: rgba(242, 242, 242,0.9);
    position: sticky;
    top: 0;
    height: 95px;
    z-index: 999;
}
.site-header {
    display: flex;
    align-items: center;
    padding: 25px 20px;
    position: relative; /* ハンバーガーメニューの絶対配置に備える */
}

/* ロゴ部分 */
.header-logo {
    width: 133px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.header-logo img {
    width: 100%;
}

/* チェックボックスは非表示にして使う */
.menu-toggle,
.close-btn {
    display: none;
}

/* ハンバーガーアイコン */
.hamburger {
    display: none; /* PC時は非表示 */
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    margin-left: auto;
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: var(--main);
    border-radius: 2px;
}

/* --------------------------
   共通ナビゲーション
   -------------------------- */
.header-nav {
    display: flex;
    align-items: center;
    margin-left: auto; /* ロゴの次に右側へ寄せる */
    /* PC表示では通常の横並びにするが、
       スマホ時は後述のメディアクエリで書き換え */
}

/* メニューリスト（PC時は横並び） */
.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    margin-right: 20px;
}

/* リンクスタイル */
.nav-list li a {
    text-decoration: none;
    font-size: 1.6rem;
    font-weight: bold;
}

.nav-list li a:hover {
    color: var(--main);
}

/* PC時のお問い合わせボタン */
.header-contact {
    margin-left: 20px;
}

/* お問い合わせボタンの見た目 */
.contact-button {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: white;
    text-decoration: none;
    border: 1px solid var(--black);
    border-radius: 25px;
    font-size: 1.6rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-button:hover {
    background-color: var(--main);
}

.contact-button img {
    margin-left: 5px;
}

@media screen and (max-width: 1200px) {
    .nav-list {
        gap: 20px;
        margin-right: 0;
    }
}

@media screen and (max-width: 1100px) {
    .nav-list li a {
        font-size: 1.4rem;
    }
    .contact-button {
        font-size: 1.4rem;
    }
}

@media screen and (max-width: 950px) {
    .nav-list li a {
        font-size: 1.3rem;
    }
    .contact-button {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 900px) {
    .nav-list li a {
        font-size: 1.2rem;
    }
    .contact-button {
        padding: 10px 10px;
        font-size: 1.2rem;
    }
}

/* --------------------------
   スマホ表示（max-width:790px）
   -------------------------- */
@media screen and (max-width: 790px) {
    header {
        height: 85px;
    }
    .site-header {
        padding: 20px 20px;
    }
    .header-logo {
        width: 110px;
    }
    /* PCナビゲーションを縦並びのスライドインに */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px; /* スライドメニュー最大幅 */
        height: 100vh;
        background-color: #fff8e0; /* 背景色はお好みで */
        box-shadow: -2px 0 5px rgba(0,0,0,0.15);
        flex-direction: column; /* 縦並び */
        align-items: flex-start;
        padding: 60px 20px 20px;
        transition: right 0.3s ease;
        z-index: 999;
    }

    /* メニューを開くチェックが入ったらスライドイン */
    .menu-toggle:checked ~ .header-nav {
        right: 0;
    }

    /* ハンバーガーアイコンはスマホ表示時に表示 */
    .hamburger {
        display: flex;
    }

    /* スマホ時はPC用の横並びは不要なので、隙間など調整 */
    .nav-list {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
    }

    /* 閉じるボタン（×） */
    .close-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        font-size: 2.4rem;
        cursor: pointer;
        text-decoration: none;
        color: var(--black);
    }

    /* PC時のレイアウトを非表示にする要素があればここで制御 */
    /* .header-contact はそのまま下部に残しておいてOK */
}