@charset "utf-8";

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

p {
    white-space: normal;
    /* 折り返す */
    word-wrap: break-word;
    /* 長い単語も途中で折り返す */
    overflow-wrap: break-word;
    /* word-wrap の標準対応版 */
}

a:-webkit-any-link {
    text-decoration: none;
    color: unset;
}

/* ALL */
body {
    margin: 0;
    color: #666666;
    font-feature-settings: "palt";
    font-family: noto-sans-cjk-jp, sans-serif;
    font-weight: 400;
    font-style: normal;
}

img {
    width: 100%;
    height: auto;
}

iframe {
    width: 100%;
    height: auto;
}

.sp_only {
    display: block;
}

.pc_only {
    display: none;
}

/* header */
#header {
    width: 100%;
    max-width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
}

#header .header__flex {
    height: calc(150*(100vw/750));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-inline: calc(50*(100vw/750)) calc(18*(100vw/750));
}

#header .header__flex .logo {
    width: calc(125*(100vw/750));
    height: calc(76*(100vw/750));
    position: relative;
}

#header .header__flex .logo img {
    position: absolute;
    left: 0;
    top: 0;
}

#header .header__flex .btn {
    width: calc(255*(100vw/750));
    height: calc(52*(100vw/750));
    display: grid;
    gap: calc(10*(100vw/750));
    grid-template-columns: calc(195*(100vw/750)) calc(50*(100vw/750));
}

#header .header__flex .btn .login-btn,
#header .header__flex .btn .menu-btn {
    position: relative;
}

#header .header__flex .btn .login-btn *,
#header .header__flex .btn .menu-btn * {
    position: absolute;
    left: 0;
    top: 0;
}

.logo img.white,
.login-btn img.white,
.menu-btn img.white {
    display: none;
}

/* html と body の両方に効かせる */
html.menu-open,
body.menu-open,
body.modal-open {
    height: 100%;
    overflow: hidden;
}

/* メニュー開いた時に白バージョン表示 */
body.menu-open .logo img.red,
body.menu-open .login-btn img.red,
body.menu-open .menu-btn img.red {
    display: none;
}

body.menu-open .logo img.white,
body.menu-open .login-btn img.white,
body.menu-open .menu-btn img.white {
    display: inline;
}

/* サイドメニュー */
.side-menu {
    position: fixed;
    top: 0;
    left: 100vw;
    width: 100vw;
    height: 100vh;
    color: #fff;
    transition: transform 0.3s ease;
    z-index: 9;
    background-image: url("../img/top/menu__bg.png");
    background-size: contain;
    border: solid calc(10*(100vw/750)) #d61a18;
    overflow-y: scroll;
    padding: calc(150*(100vw/750)) 0 0 0;
}

.side-menu_wrap {
}

.side-menu.open {
    transform: translateX(-100vw);
}

.side-menu .menu__list {
    display: grid;
    gap: calc(31*(100vw/750));
}

.side-menu nav a {
    display: block;
    margin-inline: auto;
}

.side-menu nav a.home {
    width: calc(200*(100vw/750));
}

.side-menu nav a.redy {
    width: calc(310*(100vw/750));
}

.side-menu nav a.lesson {
    width: calc(230*(100vw/750));
}

.side-menu nav a.faq {
    width: calc(160*(100vw/750));
}

.side-menu nav a.column {
    width: calc(230*(100vw/750));
}

.side-menu nav a.topics {
    width: calc(230*(100vw/750));
}

.side-menu nav a.studio {
    width: calc(230*(100vw/750));
}

.side-menu nav a.price {
    width: calc(200*(100vw/750));
}

.side-menu nav a:hover {
    opacity: 0.7;
    transition: 0.2s;
}

.side-menu .menu__text {
    width: calc(360*(100vw/750));
    margin-inline: auto;
    margin-top: calc(48*(100vw/750));
}

/* アニメーション */
.fade,
.bg_fade {
    opacity: 0;
}

.fade.is-active {
    animation-name: fade_anim;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

.bg_fade.is-active {
    opacity: 1;
}

@keyframes fade_anim {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.smooth {
    clip-path: inset(0 100% 0 0);
    transition: 1.4s cubic-bezier(0.37, 0, 0.63, 1);
    transition-property: clip-path;
}

.smooth.is-active {
    clip-path: inset(0);
    transition-delay: 0.5s;
}

/* footer */
#footer {
    position: relative;
    z-index: 1;
    padding: calc(55*(100vw/750)) 0 calc(60*(100vw/750));
    background-color: #d61a18;
}

#footer .sns .sns__text {
    width: calc(205*(100vw/750));
    margin-inline: auto;
    margin-bottom: calc(30*(100vw/750));
}

#footer .sns .sns__list {
    width: calc(440*(100vw/750));
    margin-inline: auto;
    margin-bottom: calc(35*(100vw/750));
    display: grid;
    justify-content: space-between;
    grid-template-columns: repeat(3, calc(85*(100vw/750)));
}

#footer .infomation {
    display: flex;
    font-size: calc(24*(100vw/750));
    color: #ffffff;
    margin-inline: auto;
    margin-bottom: calc(30*(100vw/750));
    justify-content: center;
}

#footer .infomation li {
    padding-block: calc(5*(100vw/750));
    padding-inline: calc(34*(100vw/750));
    font-weight: bold;
    line-height: 1;
}

#footer .infomation li:nth-child(2) {
    position: relative;
}

#footer .infomation li:nth-child(2)::before,
#footer .infomation li:nth-child(2)::after {
    content: "";
    position: absolute;
    height: 100%;
    width: 3px;
    background-color: #ffffff;
    top: 0;
}

#footer .infomation li:nth-child(2)::before {
    left: 0;
}

#footer .infomation li:nth-child(2)::after {
    right: 0;
}

#footer .copyright {
    font-size: calc(12*(100vw/750));
    text-align: center;
    font-weight: bold;
    color: #fff;
}

/* main */
#main {
    width: 100%;
    background-image: url(../img/top/background.jpg);
    background-size: 100% auto;
}

/* PCサイズ（1024px以上）で適用されるスタイル */
@media screen and (min-width: 1024px) {

    .sp_only {
        display: none;
    }

    .pc_only {
        display: block;
    }

    /* header */
    #header {
        width: 100%;
        max-width: 100vw;
        z-index: 0;
    }

    /* PC メニュー */
    #header .pc__menu {
        position: fixed;
        width: 100vw;
        height: 100vh;
    }

    #header .pc__menu .left {
        position: absolute;
        top: 50%;
        left: 15%;
        translate: 0 -50%;
        z-index: 3;
    }

    #header .pc__menu .left .logo {
        width: 160px;
        margin-bottom: 60px;
    }

    #header .pc__menu .left .menu__list {
        display: grid;
        gap: 25px;
        margin-bottom: 50px;
    }

    #header .pc__menu .left .menu__list a {
        display: block;
        position: relative;
        height: 48px;
    }

    #header .pc__menu .left .menu__list a img {
        position: absolute;
    }

    #header .pc__menu .left .menu__list a.home {
        width: 87px;
    }

    #header .pc__menu .left .menu__list a.redy {
        width: 165px;
    }

    #header .pc__menu .left .menu__list a.lesson {
        width: 110px;
    }

    #header .pc__menu .left .menu__list a.faq {
        width: 80px;
    }

    #header .pc__menu .left .menu__list a.column {
        width: 120px;
    }

    #header .pc__menu .left .menu__list a.topics {
        width: 103px;
    }

    #header .pc__menu .left .menu__list a.studio {
        width: 105px;
    }

    #header .pc__menu .left .menu__list a.price {
        width: 87px;
    }

    #header .pc__menu .left .menu__list a:hover {
        opacity: 0.7;
        transition: 0.2s;
    }

    #header .pc__menu .left .login-btn {
        display: block;
        width: 137px;
        height: 36px;
        position: relative;
    }

    #header .pc__menu .left .login-btn img {
        position: absolute;
    }

    #header .pc__menu .right .message {
        position: absolute;
        right: 0;
        width: calc(460*(100vw/1920));
        max-width: 460px;
        height: calc(355*(100vw/1920));
        max-height: 355px;
        top: 50%;
        right: 5%;
        translate: 0 -50%;
        z-index: 3;
    }

    #header .pc__menu .right .message img {
        position: absolute;
    }

    #header .bg__text--swiper {
        overflow: hidden;
        position: absolute;
        bottom: 0;
        z-index: 2;
    }

    /* スライドの動き等速 */
    #header .swiper-wrapper {
        transition-timing-function: linear !important;
    }

    /* 画像のサイズ調整 */
    #header .swiper-slide img {
        height: auto;
        width: 100%;
        padding-right: 25px;
    }

    #header .background {
        width: 100vw;
        height: 100vh;
        background-repeat: no-repeat;
        background-size: cover;
        position: absolute;
        z-index: 0;
    }

    #header .background.red {
        background-image: url("../img/top/pc_bg_red.jpg");
        z-index: 0;
    }

    #header .background.bk {
        background-image: url("../img/top/pc_bg_black.jpg");
        z-index: 1;
        opacity: 0;
        transition: opacity 1.5s ease;
    }

    #header .black__image {
        opacity: 0;
        transition: opacity 1.5s ease;
        z-index: 1;
    }

    #header .background.bk.active,
    #header .black__image.active {
        opacity: 1;
    }

    /* footer */
    #footer {
        max-width: 375px;
        padding: 27.5px 0 30px;
        margin-inline: auto;
    }

    #footer .sns .sns__text {
        width: 102.5px;
        margin-bottom: 15px;
    }

    #footer .sns .sns__list {
        width: 220px;
        margin-bottom: 17.5px;
        grid-template-columns: repeat(3, 42.5px);
    }

    #footer .infomation {
        font-size: 12px;
        margin-bottom: 15px;
    }

    #footer .infomation li {
        padding-block: 2.5px;
        padding-inline: 17px;
    }

    #footer .copyright {
        font-size: 6px;
    }

    /* main */
    #main {
        width: 100%;
        max-width: 375px;
        margin-inline: auto;
        position: relative;
        padding-top: 100px;
    }

}