/* ==========================
   リセット
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==========================
   全体
========================== */

html,
body {

    width: 100%;

    overflow-x: hidden;

    background-color: #10204a;
}


/* ==========================
   ヘッダー
========================== */

.header {

    position: relative;

    width: 100%;

    z-index: 1000;
}


/* ==========================
   PC版ヘッダー
========================== */

.pc-header {

    position: relative;

    width: 100%;
}


/* ==========================
   背景画像
========================== */

.header-background {

    display: block;

    width: 100%;

    height: auto;
}


/* ==========================
   共通ボタン
========================== */

.header-button {

    position: absolute;

    width: 10%;

    z-index: 10;
}


.header-button img {

    display: block;

    width: 100%;

    height: auto;
}


/* ==========================
   ヘッダー位置
========================== */

.works-header-button {

    top: 5%;

    left: 51%;
}


.profile-header-button {

    top: 5%;

    left: 28%;
}


.contact-header-button {

    top: 5%;

    left: 75%;
}


.landing-header-button {

    top: 5%;

    left: 5%;

    width: 8.8%;
}


/* ==========================
   スマホ版ヘッダー
========================== */

.mobile-header {

    display: none;
}


.mobile-menu {

    display: none;
}


/* =========================================================
   スマホ版
========================================================= */

@media screen and (max-width: 768px) {


    /* ==========================
       PCヘッダーを非表示
    ========================== */

    .pc-header {

        display: none;
    }


    /* ==========================
       スマホヘッダー
    ========================== */

    .mobile-header {

        width: 100%;

        height: 72px;

        padding: 0 5%;

        display: flex;

        justify-content: space-between;

        align-items: center;

        background-color: #10204a;

        position: relative;

        z-index: 1200;
    }


    /* ==========================
       HOME画像
    ========================== */

    .mobile-home-link {

        display: block;

        width: 70px;

        position: relative;

        z-index: 1300;
    }


    .mobile-home-image {

        display: block;

        width: 100%;

        height: auto;
    }


    /* ==========================
       ハンバーガーボタン
    ========================== */

    .hamburger-button {

        width: 48px;

        height: 48px;

        padding: 0;

        border: none;

        background: transparent;

        display: flex;

        flex-direction: column;

        justify-content: center;

        align-items: center;

        gap: 7px;

        cursor: pointer;

        position: relative;

        z-index: 1300;
    }


    .hamburger-button span {

        display: block;

        width: 32px;

        height: 3px;

        background-color: white;

        border-radius: 999px;

        transition:
            transform 0.35s ease,
            opacity 0.35s ease;
    }


    /* ==========================
       開いたとき
       ☰ → ×
    ========================== */

    .hamburger-button.is-active span:nth-child(1) {

        transform:
            translateY(10px)
            rotate(45deg);
    }


    .hamburger-button.is-active span:nth-child(2) {

        opacity: 0;
    }


    .hamburger-button.is-active span:nth-child(3) {

        transform:
            translateY(-10px)
            rotate(-45deg);
    }


    /* ==========================
       スマホメニュー
    ========================== */

    .mobile-menu {

        position: fixed;

        inset: 0;

        width: 100%;

        height: 100dvh;

        padding-top: 110px;

        background-color: #10204a;

        display: flex;

        flex-direction: column;

        justify-content: flex-start;

        align-items: center;

        gap: 6vh;

        opacity: 0;

        visibility: hidden;

        pointer-events: none;

        transform:
            translateY(-20px);

        transition:
            opacity 0.4s ease,
            visibility 0.4s ease,
            transform 0.4s ease;

        z-index: 1100;
    }


    .mobile-menu.is-open {

        opacity: 1;

        visibility: visible;

        pointer-events: auto;

        transform:
            translateY(0);
    }


    /* ==========================
       メニューリンク
    ========================== */

    .mobile-menu a {

        color: white;

        text-decoration: none;

        font-size: clamp(
            32px,
            10vw,
            54px
        );

        font-weight: bold;

        letter-spacing: 0.08em;

        transition:
            opacity 0.3s ease,
            transform 0.3s ease;
    }


    /*
     * 現在表示中のページ
     */
    .mobile-menu a.current-page {

        opacity: 0.45;
    }


    /* ==========================
       メニュー表示中
       背景スクロール停止
    ========================== */

    body.menu-open {

        overflow: hidden;
    }

}