@charset "utf-8";

/*======================
*
header
*
=======================*/
header {
    position: fixed;
    z-index: 9998;
    left: 0;
    width: 100%;
    padding-top: 16px;
}

.btn-area {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--btn-cont);
    margin: auto;
    box-shadow: var(--shadow);
}

.btn-area .btn {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
}

/*======================
*
contentts
*
=======================*/
.contents-wrapper {
    padding: var(--cont-blank) 0;
    background: url(img/bg.png) repeat-y top left / 100%;
}

section {
    width: min(var(--sec-cont), calc((var(--sec-cont) / 1366px) * 100%));
    margin: auto;
}

section+section {
    margin-top: var(--cont-blank);
}

/*sp*/
@media (max-width:767px) {
    .contents-wrapper {
        background-image: url(img/bg_sp.png);
    }

    section {
        width: min(var(--sec-cont), calc((var(--sec-cont) / 375px) * 100%));
    }
}

/*======================
*
ハンバーガーメニュー
*
=======================*/
@media (max-width:767px) {
    header {
        position: fixed;
        transform: translate(0, 0);
        left: 0;
        top: calc(var(--header, -65dvh) - 5px);
        width: 100%;
        padding: 96px 20px 32px;
        background-color: var(--sp-menu-bg);
        transition: 0.3s ease-in-out;
    }

    header.is-active {
        top: 0;
    }

    .btn-area {
        flex-direction: column;
        width: 100%;
    }

    .btn-area .btn img {
        max-width: 100%;
    }

    /*ボタン*/
    .sp-btn {
        position: fixed;
        z-index: 9999;
        top: 16px;
        right: 16px;
        width: 48px;
        aspect-ratio: 1 / 1;
        box-shadow: var(--shadow);
        background: url(img/menu-open.png) no-repeat top / 100%;
    }

    /*close*/
    .sp-btn.is-active {
        background: url(img/menu-close.png) no-repeat top / 100%;
    }

    /*背景*/
    .sp-bg {
        position: fixed;
        z-index: 9997;
        top: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: 0.3s ease-in-out;
    }

    .sp-bg.is-active {
        opacity: 1.0;
        pointer-events: auto;
    }
}