@charset "utf-8";

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

body {
    background-color: #f5f5f5;
    color: #363636;
    font-family: "Noto Sans JP", sans-serif;
}

ul,
li,
ol {
    list-style: none;
}

a {
    background-color: transparent;
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    vertical-align: bottom;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 68px;
    overflow-y: scroll;
}

/* header */

.header {
    padding: 0 2%;
    height: 80px;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.header_logo_item a {
    display: flex;
    align-items: center;
}

.header_logo {
    display: block;
    width: clamp(40px, 5vw, 60px);
    height: auto;
}

.header_logo_item {
    position: absolute;
    left: 3%;
    top: 50%;
    transform: translateY(-50%);
}

.header_logo_text {
    font-family: Poppins;
    font-size: 2.2vw;
    font-weight: 600;
    line-height: 1.1;
    margin-left: 1.3vw;
}

.header_menu {
    position: absolute;
    right: 2.1%;
    top: 2.7vw;
}

.nav_list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.4vw;
    position: relative;
}

.nav_item {
    font-family: poppins;
    font-size: clamp(1.2rem, 1.3vw, 3rem);
    font-weight: 600;
}

.nav_sns {
    display: none;
}

/* footer */

.footer_main {
    position: relative;
    background-color: #d9d9d9;
    border-top: 3px solid #363636;
    padding: clamp(40px, 6vw, 100px);
    overflow: hidden;
}

.footer_main_inner {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    column-gap: clamp(32px, 4vw, 80px);
}

.footer_logo_item {
    display: block;
    position: static;
}

.footer_logo_text {
    font-family: Poppins;
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.2;
    display: block;
    width: 25.4vw;
    max-width: 420px;
    margin-top: 16px;
}

.footer_list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer_menu {
    display: block;
    position: static;
}

.footer_item {
    font-family: Poppins;
    font-size: clamp(1.6rem, 1.7vw, 5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-top: clamp(0px, 1.2vw, 30px);
}

.footer_item:first-of-type {
    margin-top: 0;
}

.footer_item a {
    padding-bottom: 1%;
    position: relative;
}

.footer_sns {
    display: flex;
    margin-top: 32px;
    gap: 24px;
}

.footer_img {
    position: absolute;
    right: 18%;
    bottom: 10%;
    width: min(40vw, 380px);
    opacity: 0.6;
    pointer-events: none;
}

.page_top {
    position: absolute;
    right: clamp(16px, 4vw, 60px);
    bottom: clamp(-50px, -4vw, -20px);
    width: min(15.8vw, 180px);
    max-width: 13vw;
    aspect-ratio: 1 / 1;
    transition: transform 0.3s ease;
}

.page_top:hover {
    transform: translateY(-6px);
}

.page_top_item {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
}

.page_top_item img {
    width: clamp(16px, 2vw, 35px);
}

.page_top_text {
    font-family: Poppins;
    font-size: clamp(1rem, 1.7vw, 5rem);
    font-weight: 600;
    margin-top: 2px;
}

.page_top_back_wrap {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center;
    overflow: hidden;
    will-change: transform;
}

.page_top_back {
    width: 100%;
    height: auto;
    display: block;
}

.page_top:hover .page_top_back_wrap {
    animation: spinSmall 3s linear infinite;
    animation-timing-function: linear;
}

@keyframes spinSmall {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}


/* Responsive */

@media (hover: hover) {
    .page_top:hover .page_top_back {
        animation: spin 1.2s linear infinite;
    }
}

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

    /* header */
    .header {
        display: block;
        height: 79px;
        padding: 0 3.1%;
    }

    .header_logo {
        width: 52.267px;
    }

    .header_logo_text {
        font-size: 1.6rem;
        margin-left: 13.7px;
    }

    .header_menu {
        position: absolute;
        top: 13.5px;
    }

    .header_menu_bun {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background-color: #363636;
        padding: 14px 0;
        margin: 5px 5px 0px auto;
        position: relative;
        z-index: 100;
    }

    .nav {
        position: absolute;
        top: 10px;
        right: 3%;
        width: min(280px, 80vw);
        padding: 24px 20px;
        background: #f5f5f5;
        border-radius: 22px;
        border: 1px solid #363636;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease,
            transform 0.3s ease,
            visibility 0.3s;
        z-index: 90;
    }

    .nav.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav_menu {
        position: relative;
        width: 20px;
        height: 14px;
    }

    .nav_menu_btn {
        position: absolute;
        top: 16px;
        right: 3%;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background-color: #363636;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 5px 5px 0px auto;
        position: relative;
        z-index: 100;
    }

    .nav_menu span:nth-child(1) {
        top: 0;
    }

    .nav_menu span:nth-child(2) {
        top: 6px;
    }

    .nav_menu span:nth-child(3) {
        bottom: 0;
    }

    .nav_menu.is-open span:nth-child(1) {
        top: 6px;
        transform: rotate(45deg);
    }

    .nav_menu.is-open span:nth-child(2) {
        opacity: 0;
    }

    .nav_menu.is-open span:nth-child(3) {
        bottom: auto;
        top: 6px;
        transform: rotate(-45deg);
    }


    .nav_menu,
    .nav_menu span {
        display: inline-block;
        transition: all 0.5s;
        box-sizing: border-box;
    }

    .nav_menu span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #fcfcfb;
        border-radius: 2px;
        transition: transform 0.6s ease, opacity 0.3s ease;
    }

    .nav_item_top {
        margin-top: 0;
    }

    .nav_item {
        font-size: 1.8rem;
        padding: 12px 0;
    }

    .nav_list {
        display: block;
        margin-top: 30px;
    }

    .nav_sns {
        display: flex;
        gap: 30px;
        margin-top: 20px;
        justify-content: flex-start;
    }

    .sns_icon img {
        width: 24px;
    }

    /* footer */
    .footer_main {
        height: 210vw;
        max-height: 1410px;
        padding: 8vw;
        border-top: 1px;
    }

    .footer_main_inner {
        grid-template-columns: 1fr;
        gap: 48px;
        display: flex;
        flex-direction: column;
    }

    .footer_logo_item {
        top: 8vw;
        left: 0;
    }

    .footer_logo {
        width: 31.7vw;
        height: auto;
    }

    .footer_logo_text {
        font-size: clamp(0rem, 3.7vw, 2rem);
        width: 72.3vw;
        max-width: 400px;
        margin-top: 5.8%;
    }

    .footer_menu {
        top: clamp(0px, 70vw 500px);
        left: auto;
        order: 2;
    }

    .footer_item {
        font-size: clamp(2rem, 4.3vw, 5rem);
        margin-top: clamp(0px, 13.3vw, 22px);
    }

    .footer_sns {
        gap: 10.7vw;
        margin-top: clamp(0px, 11.5vw, 73px);
    }

    .page_top {
        position: absolute;
        right: -25px;
        bottom: -35px;
        width: 140px;
        aspect-ratio: 1 / 1;
        max-width: none;
        min-width: 0
    }

    .page_top_btn {
        display: block;
        width: 100%;
        height: 100%;
    }

    .footer_img {
        order: 3;
        position: static;
        width: 60vw;
        max-width: 360px;
        align-self: flex-start;
        opacity: 0.6;
        margin-left: -3vw;
        margin-top: -18vw;
    }

    .page_top_item img {
        width: 18px;
    }

    .page_top_text {
        font-size: 12px;
        margin-top: 4px;
    }

}