@charset "UTF-8";

html {
    background-color: var(--color-bg);
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

body {
    color: var(--color-text);
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, Meiryo, sans-serif;
    font-size: 1.4em;
    font-weight: normal;
    -webkit-font-variant-ligatures: none;
    font-variant-ligatures: none;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -webkit-text-size-adjust: 100%;
}

@media screen and (min-width: 640px) {
    body {
        font-size: 1.6em;
        line-height: 2;
    }
}

a:link, a:visited { color: var(--color-prime); }
a:active { text-decoration: none; }

@media (hover: hover) {
    a:hover { text-decoration: none; }
}



/* HEADER & NAVI -------------------- */
header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    height: 100svh;
    width: 100%;
    position: relative;
}

h1 {
    background: url(../img/logo.svg) center center no-repeat;
    margin: 0 auto;
    height: 248px;
    width: 240px;
    margin-bottom: 30px;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
}

#header__drawer {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    row-gap: 10px;
    height: 40px;
    width: 40px;
    transition: var(--transition-opacity);
    position: fixed;
    top: 30px;
    right: 7.7%;
    z-index: 100;
}

#header__drawer span {
    background-color: var(--color-prime);
    height: 2px;
    width: 38px;
    position: relative;
    transition: all 0.2s;
}

#header__drawer span:nth-child(2) {
    margin-left: 2px;
}

#header__drawer span::after {
    background-color: var(--color-prime);
    border-radius: 50%;
    content: '';
    display: block;
    height: 6px;
    width: 6px;
    position: absolute;
    top: -2px;
    right: -2px;
}

#header__drawer span:nth-child(2)::after { left: -2px; }

#header__drawer.open span {
    background-color: var(--color-bg);
    width: 40px;
    position: absolute;
    top: auto;
    left: auto;
}

#header__drawer.open span::after { display: none; }
#header__drawer.open span:nth-child(1) { transform: rotate(45deg); }
#header__drawer.open span:nth-child(2) { opacity: 0; }
#header__drawer.open span:nth-child(3) { transform: rotate(-45deg); }


@media screen and (min-width: 640px) {
    h1 {
        background-size: 320px auto;
        height: 332px;
        width: 320px;
        margin-bottom: 40px;
    }

    #header__drawer {
        row-gap: 16px;
        height: 60px;
        width: 60px;
        top: 60px;
        right: 60px;
    }

    #header__drawer span { width: 58px; }

    #header__drawer span::after {
        height: 8px;
        width: 8px;
        top: -3px;
    }

    #header__drawer.open span {  width: 60px; }
}

@media screen and (min-width: 1280px) {
    h1 {
        background-size: 360px auto;
        height: 372px;
        width: 360px;
    }
}


/* NAVI */
nav {
    background: var(--color-prime);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    height: 100dvh;
    width: 100vw;
    position: fixed;
    top: 0;
    right: 0;
    transform: translateX(100vw);
    transition: all 0.2s;
    z-index: 50;
}

nav.open { transform: translateX(0); }

nav.open #nav__inner {
    opacity: 0;
    animation: navifade forwards 0.6s 0.2s 1;
}

@keyframes navifade {
    0% { opacity: 0 }
    100% { opacity: 1; }
}

#nav__inner li { text-align: center; }

#nav__inner li a {
    color: #f2f2f2;
    font-family: var(--gfont-eng), sans-serif;
    font-size: 4rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: var(--transition-opacity);
}

@media (hover: hover) {
    #header__drawer:hover { opacity: var(--fade-opacity); }
    #nav__inner li a:hover { opacity: var(--fade-opacity); }
}



/* MAIN -------------------- */
main {
    margin: 0 auto;
    padding: 0 7.7%;
    position: relative;
    width: 100%;
}

h2 {
    color: var(--color-prime);
    font-family: var(--gfont-eng), var(--gfont-jp), sans-serif;
    font-size: 4.8rem;
    letter-spacing: 0.02em;
    line-height: 1.36;
    margin-bottom: 40px;
    padding-top: 80px;
    position: relative;
}

h2 span {
    display: inline-block;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: normal;
    padding-left: 20px;
    vertical-align: middle;
}

h2::before, h2::after {
    background-color: var(--color-prime);
    content: '';
    display: block;
    position: absolute;
}

h2::before {
    border-radius: 50%;
    height: 10px;
    width: 10px;
    left: 0;
    bottom: -4px;
}

h2::after {
    height: 2px;
    width: 64px;
    left: 2px;
    bottom: 0;
}

@media screen and (min-width: 640px) {
    h2 {
        font-size: 6.4rem;
        margin-bottom: 60px;
        padding-top: 120px;
    }

    h2 span {
        font-size: 1.6rem;
        padding-left: 30px;
    }

    h2::before {
        height: 14px;
        width: 14px;
        bottom: -5px;
    }

    h2::after {
        height: 4px;
        width: 88px;
    }
}

@media screen and (min-width: 1080px) {
    main {
        padding: 0;
        width: 960px;
    }
}



/* FOOTER -------------------- */
footer {
    padding: 80px 0 40px;
    position: relative;
    text-align: center;
    width: 100%;
}

#footer__link {
    display: flex;
    flex-direction: column;
    row-gap: 16px;
}

#footer__link li a {
    font-family: var(--gfont-eng), sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.02em;
}

small {
    display: block;
    font-size: 1.2rem;
    padding-top: 100px;
}

#btn-pagetop {
    height: 90px;
    width: 30px;
    opacity: 0;
    position: fixed;
    bottom: 40px;
    right: 20px;
    transition: var(--transition-opacity);
    text-align: center;
}

#btn-pagetop a {
    display: block;
    font-family: var(--gfont-eng), sans-serif;
    font-size: 1.6rem;
    line-height: 1;
    height: 90px;
    width: 30px;
    text-decoration: none;
    transition: var(--transition-opacity);
}



#btn-pagetop a::before, #btn-pagetop a::after {
    background-color: var(--color-prime);
    content: '';
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#btn-pagetop a::before {
    border-radius: 50%;
    height: 10px;
    width: 10px;
    top: 20px;
}

#btn-pagetop a::after {
    height: 60px;
    width: 2px;
    bottom: 0;
}

@media screen and (min-width: 640px) {
    footer { padding: 120px 0 60px; }

    #footer__link { row-gap: 10px; }
    #footer__link li a { font-size: 2rem; }

    #btn-pagetop {
        bottom: 60px;
        right: 50px;
    }
}

@media screen and (min-width: 1080px) {
    footer { padding-top: 160px; }
}

@media (hover: hover) {
    #btn-pagetop a:hover { opacity: var(--fade-opacity); }
}