:root {
    --height-header: 100px;
    --height-header-sp: 80px;

    /* メニューボタン */
    --size-toggle-btn-whole: 80px;
    --size-toggle-btn: 40px;

    --size-toggle-btn-whole-sp: 40px;
    --size-toggle-btn-sp: 20px;

    /* 重なり順 */
    --layer-header: 400;
    --layer-menu-btn: 210;
    --layer-nav: 20;
    --layer-nav-inner: 30;
}

/* 高さ */
header, .header_inner, .header_primary, .header_secondary, #headerLogoWrap {
    height: var(--height-header);
}

/* ヘッダー */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: var(--layer-header);
    overflow: hidden;
}

.header_inner {
    display: flex;
    flex-direction: row;
}

.header_primary {
    width: 40%;
}

.header_secondary {
    display: flex;
    flex-direction: row;
    width: 60%;
}

/* ロゴ */
#headerLogoWrap {
    padding: 8px 0 8px 8px;
}

#headerLogoWrap img {
    display: block;
    height: 100%;
}

/* 問い合わせ */
#headerContactLink {
    display: flex;
    flex-direction: column;
    width: 220px;
    aspect-ratio: 3/1;
    margin: auto;
    margin-right: 16px;
    padding: 0 32px;
    color: #fff;
    border-radius: 40px;
    /* background-color: #ffc800; */
    background: rgb(255, 244, 0);
    background: linear-gradient(43deg, rgba(255, 244, 0, 1) 64%, rgba(255, 226, 0, 1) 100%);
    box-shadow: 16px 8px 8px rgba(255, 255, 0, 0.357);
}

#headerContactLink span {
    display: block;
    margin: auto 0;
    color: #000;
    font-size: 82%;
    text-align: center;
}

/* メニューボタン */
#toggleMenuBtn {
    min-width: var(--size-toggle-btn-whole);
    max-width: var(--size-toggle-btn-whole);
    min-height: var(--size-toggle-btn-whole);
    max-height: var(--size-toggle-btn-whole);
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: auto 0;
    margin-right: 16px;
    background: rgb(255, 244, 0);
    background: linear-gradient(43deg, rgba(255, 244, 0, 1) 15%, rgba(255, 181, 0, 1) 91%);
    border-radius: 50%;
    z-index: var(--layer-menu-btn);
}

#toggleMenuBtn span {
    display: block;
    margin: 16px auto -4px;
    color: #000;
    font-size: 84%;
    text-align: center;
}

#toggleMenuBtn svg {
    min-width: var(--size-toggle-btn);
    max-width: var(--size-toggle-btn);
    min-height: var(--size-toggle-btn);
    max-height: var(--size-toggle-btn);
    display: flex;
    margin: 0 auto;
}

/* ナビ */
#nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    min-height: 100vh;
    background: rgb(255, 244, 0);
    background: linear-gradient(43deg, rgba(255, 244, 0, 1) 15%, rgba(255, 181, 0, 1) 91%);
    z-index: var(--layer-nav);
}

#nav[data-hidden="true"] {
    display: none;
}

.nav_item_inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    width: 60%;
    height: 90%;
    padding: 60px 16px 40px 16px;
    background-color: var(--color-white-ivory);
    border-radius: 32px;
    z-index: var(--layer-nav-inner);
}

#nav a {
    display: flex;
    flex-direction: column;
    width: 120px;
    margin: 0 auto 16px;
    text-align: center;
}

#nav a span {
    font-size: var(--font-size-l);
}

#nav a span:first-child {
    font-weight: bold;
}

#nav a span:last-child {
    font-size: var(--font-size-xs);
}


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

    /* 高さ */
    header, .header_inner, .header_primary, .header_secondary, #headerLogoWrap {
        height: var(--height-header-sp);
    }

    .header_primary {
        width: 60%;
    }

    .header_primary #headerLogoWrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .header_primary #headerLogoWrap img {
        width: 160px;
        height: auto;
        margin: auto 0;
    }

    .header_secondary {
        justify-content: flex-end;
    }

    /* 問い合わせ */
    #headerContactLink {
        display: none;
    }

    /* メニュー */
    #toggleMenuBtn {
        min-width: var(--size-toggle-btn-whole-sp);
        max-width: var(--size-toggle-btn-whole-sp);
        min-height: var(--size-toggle-btn-whole-sp);
        max-height: var(--size-toggle-btn-whole-sp);
    }

    #toggleMenuBtn span {
        display: none;
    }

    #toggleMenuBtn svg {
        min-width: var(--size-toggle-btn-sp);
        max-width: var(--size-toggle-btn-sp);
        min-height: var(--size-toggle-btn-sp);
        max-height: var(--size-toggle-btn-sp);
        margin: auto;
    }

    /* ナビ */
    .nav_item_inner {
        width: 90%;
    }
}