header .contact {
    font-weight: 600;
}

header .contact {
    border: 1px solid #232323;
    font-size: 1rem;
    font-family: "Poppins", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20px;
    padding: 10px 20px;
    border-radius: 3rem;
}

header #primary-menu a {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
}

header .contact svg {
    height: 14px;
    margin-right: 6px;
    position: relative;
    top: 1px;
}

header .contact:hover .st1,
header .contact:hover .st2 {
    fill: #ffffff;
    transition: color 0.3s;
}

/* ========== pc ========== */
@media screen and (min-width: 992px) {
    .site-header .nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .fancy-button {
        display: none;
    }

    .main-navigation {
        width: auto;
        margin-left: auto;
    }

    .main-navigation ul ul {
        background: #ffffff;
        box-shadow: none;
        display: block;
        margin-top: 30px;
    }

    .main-navigation ul li:hover > ul,
    .main-navigation ul li.focus > ul {
        left: auto;
    }

    .main-navigation a {
        display: inline-block;
        text-decoration: none;
        color: #232323;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.08rem;
        padding: 5px 8px;
        transition: color 0.3s;
        text-align: center;
    }

    .main-navigation a .jp {
        display: block;
        font-size: 0.625rem;
        font-weight: 400;
    }

    .main-navigation a:hover,
    .main-navigation a:focus {
        color: #39FF14;
    }

    header .contact:hover {
        background: #232323;
        color: #ffffff;
    }

    header .contact::after {
        content: '\2192';
        margin-left: 10px;
    }

    .main-navigation li {
        position: relative;
    }

    .menu-item-has-children .arrow-icon {
        background: #1f7dcc;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        margin-left: 10px;
        width: 30px;
        height: 30px;
        border-radius: 2rem;
    }

    .menu-item-has-children .arrow-icon::after {
        content: '\2335';
        display: inline-block;
        color: #ffffff;
        transition: 0.3s;
        justify-content: center;
        align-items: center;
        position: relative;
        top: -3px;
        padding: 3px 9px 1px 9px;
    }

    .menu-item-has-children > a.active .arrow-icon::after {
        top: 3px;
        transform: scaleY(-1);
    }

    .sub-menu {
        display: none !important;
        left: auto;
        padding: 5px 15px 15px 15px !important;
        position: relative !important;
        border-radius: 8px;
    }

    .sub-menu li {
        border-bottom: 3px dotted #1f7dcc;
        padding: 5px 0;
        text-align: center;
    }

    .sub-menu.active {
        display: block !important;
        left: auto;
        position: absolute !important;
    }

    header .contact-btn {
        display: none;
    }

    /* fancy-button hover (PC専用) */
    .fancy-button:hover .face.back,
    .fancy-button:hover .face.front {
        background: #232323;
        color: #ffffff;
    }
}

/* ========== sp ========== */
@media screen and (max-width: 991px) {
    header .nav {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    header nav.main-navigation {
        width: auto;
        position: relative;
    }

    /* ========== 3D MENU/CLOSE ボタン ========== */
    .fancy-button {
        display: inline-block;
        position: relative;
        width: 70px;
        height: 38px;
        cursor: pointer;
        perspective: 1200px;
        user-select: none;
        z-index: 2000000;
    }

    /* スマホはhoverではなくis-openで色を変える */
    .fancy-button.is-open .face.back,
    .fancy-button.is-open .face.front {
        background: #232323;
        color: #ffffff;
    }

    .fancy-flipper {
        position: absolute;
        inset: 0;
        transform-style: preserve-3d;
        transform: rotateX(-90deg);
        transition: transform .8s cubic-bezier(.2,.7,.2,1);
    }

    .fancy-button.is-open .fancy-flipper {
        transform: rotateX(0deg);
    }

    header .face {
        position: absolute;
        inset: 0;
        backface-visibility: hidden;
        display: grid;
        place-items: center;
        font-weight: 500;
    }

    header .face.front {
        transform: rotateX(0deg) translateZ(20px);
        color: #232323;
        box-shadow: inset 0 0 0 2px #232323;
        transition: all 0.3s ease;
    }

    header .face.back {
        transform: rotateX(90deg) translateZ(20px);
        color: #232323;
        box-shadow: inset 0 0 0 2px #232323;
        transition: all 0.3s ease;
    }

    header .label {
        font-size: 16px;
    }

    /* ========== メニュー本体 ========== */
    header .inner {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #f2f2f2;
        overflow-y: auto;
        color: #24324b;
        z-index: 9999;
        padding: 5rem 1.5rem 2rem;
        opacity: 0;
        transform: scale(0.95);
        pointer-events: none;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .fancy-button.is-open ~ .inner {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    #primary-menu li {
        display: block;
        padding: 12px 0;
    }

    .main-navigation a {
        display: inline-block;
        font-size: 1.5rem;
        font-weight: 900;
    }

    .main-navigation a .jp {
        font-size: 0.714rem;
        font-weight: 500;
        margin-left: 1rem;
    }

    .main-navigation a.contact {
        font-weight: 600;
    }

    .main-navigation ul ul.sub-menu li {
        padding: 0 !important;
    }

    #primary-menu ul ul.sub-menu a::before {
        content: '-';
        display: inline;
        margin-right: 8px;
    }

    header .btn1 {
        margin: 0 auto;
        margin-top: 2rem;
    }

    header .contact {
        display: none;
    }
}
