body {
    font-family: "Hiragino Sans", "ヒラギノ角ゴシック", "Yu gothic medium", "游ゴシック medium", "YuGothic", "游ゴシック体", "ヒラギノ角ゴ Pro W3", sans-serif;
    line-height: 1.7;
    color: rgb(0, 0, 0);
    background-color: snow;
    z-index: 1;
    margin: 0 0;
    padding: 0 0;
    position: relative;
}

img {
    max-width: 100vw;
    height: auto;
}

.header {
    position: relative;
    top: 0px;
}

.header-logo img {
    position: absolute;
    width: 50px;
    height: auto;
    z-index: 2;
}

.header-list {
    position: absolute;
    top: 80px;
    right: 0%;
    padding: 0px 30px;
    z-index: 2;
    animation: fadein2 2s 1 14s backwards;
    /* 14s後にフェードイン */
}

.header-list ul {
    padding: 20px 20px;
    background-color: rgba(0, 0, 0, 0.7);
}

.header-list li {
    list-style: none;
}

.header-list li a {
    color: snow;
    font-size: 150%;
    font-family: "Savoye LET Plain:1.0";
    text-decoration: none;
}

.header-list li a:hover {
    color: black;
}

.bg-black {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-color: black;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    opacity: 0;
    animation: fadein 5s 1 backwards;
    /* 0sから5sかけてフェードイン */
}

.main-visual {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-position: center;
    background-image: url(image/interiorview_2411.jpg);
    background-size: cover;
}

.top-logo1 {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    z-index: 1;
    opacity: 0;
    animation: fadein 2s 1 1s backwards, translateY 2s 1 3s backwards;
    /* 1s後にフェードイン、3s後に上方向にスライド */
}

/* .top-logo1-2 {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    z-index: 1;
    opacity: 0;
    animation: translateY 2s 1 3s backwards;
} */


/* メッセージを表示する白地背景、左右にカーテンオープン */
.load-curtain {
    /* animation: fadein 1s 1 5s forwards;
    opacity: 0; */
    width: 100vw;
    z-index: 3;
}

.load-curtainL {
    content: "";
    position: absolute;
    width: 50vw;
    height: 100vh;
    background-color: snow;
    animation: fadeoutL 2s 1 11s forwards;
    /* 11s後に左方向にフェードアウト */
}

.load-curtainR {
    content: "";
    position: absolute;
    left: 50vw;
    width: 50vw;
    height: 100vh;
    background-color: snow;
    animation: fadeoutR 2s 1 11s forwards;
    /* 11s後に右方向にフェードアウト */
}


/* ここからメッセージの表示アニメーション */

/* 一行目のメッセージ */
.main-text1 {
    position: absolute;
    top: 20%;
    left: 0%;
}

.main-text1 ul {
    display: flex;
    list-style: none;
}

.main-text1 ul li {
    margin: 0 .1em;
    font-size: 400%;
    font-family: "Savoye LET Plain:1.0";
}


/* 一行目のメッセージを5分割で0.3s毎に表示、6.7s後に全て表示完了 */
/* 11s後に全ての文字をカラーチェンジ黒→白 */
.main-text1 ul li:nth-child(1) {
    animation: fadein2 .5s 1 5s backwards, colorchange 1s 1 11s forwards;
}

.main-text1 ul li:nth-child(2) {
    animation: fadein2 .5s 1 5.3s backwards, colorchange 1s 1 11s forwards;
}

.main-text1 ul li:nth-child(3) {
    animation: fadein2 .5s 1 5.6s backwards, colorchange 1s 1 11s forwards;
}

.main-text1 ul li:nth-child(4) {
    animation: fadein2 .5s 1 5.9s backwards, colorchange 1s 1 11s forwards;
}

.main-text1 ul li:nth-child(5) {
    animation: fadein2 .5s 1 6.2s backwards, colorchange 1s 1 11s forwards;
}


/* 2行目のメッセージ */
.main-text2 {
    position: absolute;
    top: 40%;
    left: 10%;
}

.main-text2 ul {
    display: flex;
    list-style: none;
}

.main-text2 ul li {
    margin: 0 .1em;
    font-size: 400%;
    font-family: "Savoye LET Plain:1.0";
}

/* 2行目のメッセージを6分割で0.3s毎に表示、8.5s後に全て表示完了 */
/* 11s後に全ての文字をカラーチェンジ黒→白 */
.main-text2 ul li:nth-child(1) {
    animation: fadein2 .5s 1 6.5s backwards, colorchange 1s 1 11s forwards;
}

.main-text2 ul li:nth-child(2) {
    animation: fadein2 .5s 1 6.8s backwards, colorchange 1s 1 11s forwards;
}

.main-text2 ul li:nth-child(3) {
    animation: fadein2 .5s 1 7.1s backwards, colorchange 1s 1 11s forwards;
}

.main-text2 ul li:nth-child(4) {
    animation: fadein2 .5s 1 7.4s backwards, colorchange 1s 1 11s forwards;
}

.main-text2 ul li:nth-child(5) {
    animation: fadein2 .5s 1 7.7s backwards, colorchange 1s 1 11s forwards;
}

.main-text2 ul li:nth-child(6) {
    animation: fadein2 .5s 1 8s backwards, colorchange 1s 1 11s forwards;
}


.paul_sign {
    position: absolute;
    top: 40%;
    left: 70%;
    max-width: 200px;
    opacity: 0;
    animation: fadein2 3s 1 8.5s forwards, invert1 1s 1 11s forwards;
    /* 8.5s後に黒字サインをフェードイン、11.5s後に完了 */
    /* 11s後に色彩を反転(黒→白) */
}

.top-img {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    opacity: .9;
    animation: fadein 1s 1 12.8s forwards;
    opacity: 0;
    z-index: 2;
}

.top-logo2 {
    position: absolute;
    top: 45%;
    left: 25%;
    transform: translate(-50%, -50%);
    max-width: 500px;
    opacity: 0;
    animation:
        fadein 2s 1 13s forwards,
        translateY2 1s 1 14s forwards;
}

.main-text3 {
    position: absolute;
    top: 50%;
    left: 10%;
    animation: fadein 2s 1 15s forwards;
    opacity: 0;
}

.main-text3 p {
    font-size: 300%;
    font-family: "Savoye LET Plain:1.0";
    color: snow;
}

.sns {
    position: absolute;
    top: 40px;
    right: 50px;
    animation: fadein2 2s 1 14s backwards;
    z-index: 2;
}

.sns img {
    width: 50px;
}

.section-margin {
    margin: 100px auto;
}

/* .news {
    text-align: center;
    background-color: gray;
    width: 80%;
    height: 300px;
    margin: 0 auto;

} */

#about {
    position: relative;
}

.about {
    text-align: center;
    opacity: 0;
    animation: fadein2 forwards;
    animation-timeline: view(block);
    animation-range: cover 0% cover 50%;
}

.about p {
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.illust1 {
    position: absolute;
    top: 0;
    left: 75%;
    max-width: 200px;
    animation: sing 3s linear infinite forwards;
}


.space {
    text-align: center;
}

.space-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    row-gap: 20px;
    column-gap: 20px;
}

.space-img {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    row-gap: 20px;
    column-gap: 20px;
}

.space-img img {
    width: 300px;
    height: 225px;
    object-fit: cover;
    opacity: 0;
    animation: fadein2 forwards;
    animation-timeline: view(block);
    animation-range: cover 0% cover 50%;
}

.space-colum {
    text-align: center;
}

.space-colum ul {
    list-style: none;
    margin: 0 20px;
    padding: 0 0;
}

.space-colum ul li {
    text-align: left;
    margin: 50px auto;
    opacity: 0;
    animation: fadein2 forwards;
    animation-timeline: view(block);
    animation-range: cover 0% cover 50%;
}

.space-colum ul li h4 {
    margin: 0 0;
}

.space-colum ul li p {
    margin: 0 0 0 1rem;
}

.system {
    text-align: center;
}

.system-colum {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
}

.system-list {
    width: 500px;
}

.system-lists ul {
    list-style: none;
    text-align: left;
    margin: 0 0;
    padding: 0 0;
}

.system-lists ul li {
    margin: 20px 0;
}

.system-lists ul li p {
    margin: 0 0 0 1rem;
}

.system h4 {
    margin: 0 0;
}

.system-notice {
    max-width: 100%;
    text-align: left;
    margin: 0 0;
}

.system-colum img {
    max-width: 500px;
    height: auto;
    opacity: 0;
    animation: fadein2 forwards;
    animation-timeline: view(block);
    animation-range: cover 0% cover 50%;
}

.contact {
    text-align: center;
}

.contacts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    row-gap: 20px;
    column-gap: 20px;
}

.adress {
    max-width: 80vw;
}

.adress img {
    width: 200px;
}

.footer {
    text-align: center;
    background-color: gray;
    width: 100%;
    margin: 0 auto;
}

.footer-list ul {
    display: flex;
}

.footer-list ul li {
    list-style: none;
    margin: 0 20px;
}

.footer-list ul li a {
    color: snow;
    font-size: 100%;
}

.footer h4 {
    color: snow;
    font-size: 80%;
    font-weight: normal;
    margin: 0 0;
}

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

    .header-list {
        top: 40px;
    }

    .header-list li a {
        font-size: 100%;
    }

    .top-logo1 {
        max-width: 300px;
    }

    .main-text1 ul li {
        font-size: 150%;
    }

    .main-text2 ul li {
        font-size: 150%;
    }

    .paul_sign {
        top: 60%;
        left: 60%;
        max-width: 100px;
    }

    .top-logo2 {
        max-width: 200px;
        left: 30%;
    }

    .main-text3 p {
        font-size: 150%;
    }

    .sns {
        top: 20px;
    }

    .sns img {
        width: 30px;
    }

    .illust1 {
        max-width: 50px;
        top: -5%;
    }

    .about p {
        font-size: 90%;
    }

    .space-img {
        row-gap: 10px;
        column-gap: 10px;
    }


    .space-img img {
        max-width: 150px;
        max-height: 112.5px;
    }

    .space-list {
        grid-template-columns: repeat(1, 1fr);
    }

    .space-colum p {
        font-size: 90%;
    }

    .system-colum {
        grid-template-columns: repeat(1, 1fr);
    }

    .system-colum p {
        font-size: 90%;
    }

    .system-list {
        order: 2;
        max-width: 80vw;
    }

    .system-list h3 {
        max-width: 100vw;
    }

    .system-lists {
        max-width: 100vw;
    }

    .system-notice {
        max-width: 100vw;
        text-align: left;
    }

    .system-img {
        order: 1;
    }

    .system-img img {
        max-width: 300px;
        margin: 0 auto;
    }

    .contacts {
        grid-template-columns: repeat(1, 1fr);
    }

    .contacts iframe {
        max-width: 360px;
        max-height: 270px;
    }

    .adress h3 {
        font-size: 90%;
    }

    .adress p {
        font-size: 70%;
    }

    .adress img {
        width: 150px;
    }

    .footer-list ul {
        max-width: 100vw;
        flex-wrap: wrap;
    }

    .footer-list ul li {
        font-size: 80%;
        margin: 0 5px;
    }

    .footer h4 {
        font-size: 60%;
    }
}