@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Ephesis&family=Noto+Serif+JP:wght@200..900&display=swap');

html {
    font-family: "Noto Serif JP";
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #ffffff;
}

main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 156px;
}

p {
    margin: 0;
}

/* background */
#background {
    width: 150vw;
    position: fixed;
    top: -75vw;
    left: -75vw;
    z-index: -1;
}

/* header */
header {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
}

#container_header {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 156px;
    display: flex;
    justify-content: space-between;
}

#logo_header {
    all: unset;
    cursor: pointer;
    display: block;
    width: 80px;
    height: 80px;
}

#logo_header img {
    width: 80px;
}

nav {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 24px;
    margin-left: 64px;
}

#navbtn_header {
    display: none;
}

#navigation_header {
    display: flex;
    flex-wrap: wrap;
    justify-content: right;
    gap: 24px 64px;
}

#navigation_header a {
    all: unset;
    display: block;
    font-size: 24px;
    font-weight: 400;
    color: #1f1f1f;
    line-height: 125%;
    letter-spacing: 5%;
    cursor: pointer;
    transition: color 0.2s;
}

#navigation_header a:hover {
    color: #A3A3A3;
}

#navigation_header a.same {
    color: #A3A3A3;
    cursor: default;
}

#sns_header {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
}

#sns_header a {
    all: unset;
    display: block;
    font-size: 28px;
    color: #1f1f1f;
    cursor: pointer;
    transition: color 0.2s;
}

#sns_header a:hover {
    color: #A3A3A3;
}

/* Sectiontitle */
.chapter {
    margin-top: 160px;
}

.section_title {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 64px;
}

.section_title span {
    width: 20px;
    height: 1px;
    background-color: #40697A;
}

h2 {
    font-family: "Ephesis";
    font-size: 56px;
    font-weight: normal;
    color: #40697A;
    line-height: 125%;
    letter-spacing: 5%;
    margin: 0;
}

.h2_left {
    margin-bottom: 64px;
}

/* Contact */
footer {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 156px;
}

.chapter#contact {
    margin-bottom: 160px;
}

#text_contact {
    font-size: 16px;
    font-weight: 400;
    color: #1f1f1f;
    line-height: 125%;
    letter-spacing: 10%;
    text-align: center;
}

#mail_contact {
    all: unset;
    display: block;
    padding: 8px 0;
    max-width: 634px;
    margin: 0 auto;
    text-align: center;
    font-size: 40px;
    font-weight: 400;
    color: #1f1f1f;
    line-height: 125%;
    letter-spacing: 5%;
    overflow-wrap: break-word;
    cursor: pointer;
    border-bottom: 1px #1f1f1f solid;
    position: relative;
}

#mail_contact span {
    display: block;
    width: 24px;
    height: 1px;
    background-color: #1f1f1f;
    transform-origin: right;
    transform: rotate(-45deg);
    position: absolute;
    bottom: 10px;

}

#mail_contact span:nth-child(1) {
    right: 0;
}

#mail_contact span:nth-child(1).wide {
    animation: lineMail 0.4s linear forwards;
}

#mail_contact span:nth-child(2) {
    right: 10px;
}

#mail_contact span:nth-child(2).wide {
    animation: lineMail 0.4s 0.4s linear forwards;
}

@keyframes lineMail {
    0% {
        width: 0px;
    }

    100% {
        width: 24px;
    }
}

#pagetop_contact {
    all: unset;
    display: block;
    width: 62px;
    height: 38px;
    margin: 40px auto 0;
    border-radius: 50%;
    border: 1px #1f1f1f solid;
    text-align: center;
    font-size: 18px;
    font-weight: 400;
    color: #1f1f1f;
    line-height: 125%;
    letter-spacing: 5%;
    padding-top: 26px;
    padding-left: 2px;
    position: relative;
    cursor: pointer;
    transition: opacity 0.2s;
}

#pagetop_contact::after {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 1px #1f1f1f solid;
    border-right: 1px #1f1f1f solid;
    transform-origin: center center;
    transform: rotate(-45deg) translate(-50%);
    position: absolute;
    bottom: 42px;
    left: 50%;
}

#pagetop_contact:hover {
    opacity: 0.6;
}

#last_contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    margin-top: 64px;
}

#sns_contact {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

#sns_contact a {
    all: unset;
    display: block;
    font-size: 28px;
    color: #1f1f1f;
    cursor: pointer;
    transition: color 0.2s;
}

#sns_contact a:hover {
    color: #A3A3A3;
}

#last_contact p {
    font-size: 12px;
    font-weight: 400;
    color: #808080;
    line-height: 125%;
    letter-spacing: 5%;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
    main {
        /* max-width: 1440px;
        margin: 0 auto; */
        padding: 0 8vw;
    }

    /* p {
        margin: 0;
    } */

    /* background */
    #background {
        width: 200vw;
        /* position: fixed; */
        top: -100vw;
        left: -100vw;
        /* z-index: -1; */
    }

    /* header */
    header {
        /* position: fixed; */
        top: 8vw;
        /* left: 0;
        right: 0;
        width: 100%;
        z-index: 100; */
    }

    #container_header {
        /* max-width: 1440px; */
        /* margin: 0 auto; */
        padding: 0 8vw;
        /* display: flex;
        justify-content: space-between; */
    }

    #logo_header {
        /* all: unset;
        cursor: pointer;
        display: block; */
        width: 40px;
        height: 40px;
    }

    #logo_header img {
        width: 40px;
    }

    nav {
        /* display: flex;
        flex-direction: column;
        align-items: flex-end; */
        gap: 40px;
        margin-left: 56px;
    }

    #navbtn_header {
        all: unset;
        display: block;
        width: 40px;
        height: 40px;
        border: 1px #62ACCC solid;
        border-radius: 50%;
        margin-bottom: 40px;
        position: relative;
        cursor: pointer;
    }

    #navbtn_header.open {
        border: 1px #ffffff solid;
    }

    #navbtn_header div {
        width: 22px;
        height: 1px;
        background-color: #62ACCC;
        transform-origin: center center;
        position: absolute;
        top: 50%;
        left: 50%;
        transition: transform 0.2s;
    }

    #navbtn_header div.open {
        background-color: #ffffff;
    }

    #navbtn_header div:nth-child(1) {
        transform: translateX(-50%) translateY(-3px);
    }

    #navbtn_header div:nth-child(1).open {
        transform: translateX(-50%) translateY(0) rotate(45deg);
    }

    #navbtn_header div:nth-child(2) {
        transform: translateX(-50%) translateY(3px);
    }

    #navbtn_header div:nth-child(2).open {
        transform: translateX(-50%) translateY(0) rotate(-45deg);
    }

    #navigation_header {
        display: none;
        /* flex-wrap: wrap;
        justify-content: right; */
    }

    #navigation_header.open {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 40px;
    }

    #navigation_header a {
        all: unset;
        display: block;
        font-size: 24px;
        font-weight: 400;
        color: #ffffff;
        line-height: 125%;
        letter-spacing: 5%;
        cursor: pointer;
        transition: color 0.2s;
    }

    #navigation_header a:hover {
        color: #ffffff;
    }

    #navigation_header a.same:hover {
        color: #A3A3A3;
    }

    #sns_header {
        display: none;
    }

    #sns_header.open {
        display: flex;
        flex-wrap: wrap;
        gap: 48px;
    }

    #sns_header a {
        all: unset;
        display: block;
        font-size: 28px;
        color: #ffffff;
        cursor: pointer;
        transition: color 0.2s;
    }

    #sns_header a:hover {
        color: #ffffff;
    }

    /* mask */
    #mask {
        all: unset;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #333333;
        opacity: 0.6;
        z-index: 10;
        display: none;
    }

    #mask.open {
        display: block;
        animation: maskFadeIn 0.2s linear forwards;
    }

    @keyframes maskFadeIn {
        0% {
            opacity: 0;
        }

        100% {
            opacity: 0.6;
        }
    }

    /* Sectiontitle */
    .chapter {
        margin-top: 240px;
    }

    .section_title {
        /* display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px; */
        margin-bottom: 120px;
    }

    /* .section_title span {
        width: 20px;
        height: 1px;
        background-color: #40697A;
    } */

    /* h2 {
        font-family: "Ephesis";
        font-size: 56px;
        font-weight: normal;
        color: #40697A;
        line-height: 125%;
        letter-spacing: 5%;
        text-align: center;
        margin: 0;
    } */

    /* Contact */
    footer {
        /* max-width: 1440px;
        margin: 0 auto; */
        padding: 0 8vw;
    }

    .chapter#contact {
        margin-bottom: 240px;
    }

    /* #text_contact {
        font-size: 16px;
        font-weight: 400;
        color: #1f1f1f;
        line-height: 125%;
        letter-spacing: 10%;
        text-align: center;
    } */

    #mail_contact {
        /* all: unset;
        display: block; */
        padding: 1vw 0;
        max-width: 100%;
        /* margin: 0 auto; */
        /* text-align: center; */
        font-size: 5vw;
        /* font-weight: 400;
        color: #1f1f1f;
        line-height: 125%;
        letter-spacing: 5%;
        overflow-wrap: break-word;
        cursor: pointer;
        border-bottom: 1px #1f1f1f solid;
        position: relative; */
    }

    /* #mail_contact span {
        display: block;
        width: 24px;
        height: 1px;
        background-color: #1f1f1f;
        transform-origin: right;
        transform: rotate(-45deg);
        position: absolute;
        bottom: 10px;
    } */

    /* #mail_contact span:nth-child(1) {
        right: 0;
    } */

    #mail_contact span:nth-child(1).wide {
        animation: none;
    }

    /* #mail_contact span:nth-child(2) {
        right: 10px;
    } */

    #mail_contact span:nth-child(2).wide {
        animation: none;
    }

    /* @keyframes lineMail {
        0% {
            width: 0px;
        }

        100% {
            width: 24px;
        }
    } */

    #pagetop_contact {
        /* all: unset;
        display: block;
        width: 62px;
        height: 38px;
        margin: 40px auto 0;
        border-radius: 50%;
        border: 1px #1f1f1f solid;
        text-align: center;
        font-size: 18px;
        font-weight: 400;
        color: #1f1f1f;
        line-height: 125%;
        letter-spacing: 5%;
        padding-top: 26px;
        padding-left: 2px;
        position: relative;
        cursor: pointer; */
        transition: opacity 0s;
    }

    /* #pagetop_contact::after {
        content: '';
        width: 8px;
        height: 8px;
        border-top: 1px #1f1f1f solid;
        border-right: 1px #1f1f1f solid;
        transform-origin: center center;
        transform: rotate(-45deg) translate(-50%);
        position: absolute;
        bottom: 42px;
        left: 50%;
    } */

    #pagetop_contact:hover {
        opacity: 1;
    }

    #last_contact {
        /* display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: baseline;
        gap: 24px; */
        margin-top: 240px;
    }

    /* #sns_contact {
        display: flex;
        flex-wrap: wrap;
        gap: 40px;
    } */

    #sns_contact a {
        /* all: unset;
        display: block;
        font-size: 28px;
        color: #1f1f1f;
        cursor: pointer; */
        transition: color 0s;
    }

    #sns_contact a:hover {
        color: #1f1f1f;
    }

    /* #last_contact p {
        font-size: 12px;
        font-weight: 400;
        color: #808080;
        line-height: 125%;
        letter-spacing: 5%;
    } */
}