@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400,700&display=swap');

body {
    margin: 0;
    font-family: "Noto Sans JP", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    background-color: rgb(192, 221, 255, .2);
}

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

.section {
    text-align: center;
}

.image {
    width: 100%;
}

.top {
    position: relative;
}

.txt1 {
    max-width: 535px;
    width: 70%;
    /* height: 100%; */
    position: absolute;
    top: 8%;
    animation: 1.5s txt1animation linear;
}

.txt2 {
    max-width: 340px;
    width: 46%;
    /* height: 100%; */
    position: absolute;
    top: 58%;
    right: 10%;
    animation: txt2animation 1.2s ease-in-out infinite;
}

.scroll {
    width: 350px;
    position: absolute;
    bottom: 10%;
    z-index: 1000;
    opacity: 1;
}

.scroll:hover {
    opacity: .8;
}

.scroll.fixed {
    position: fixed;
    bottom: 10%;
    opacity: .9;
}

.q_box {
    height: 1020px;
    background-image: url(../image/bg_q.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    color: #053689;
    text-align: center;
    padding: 0 80px;
}

.arrow {
    width: 285px;
    margin: 0 auto;
    animation: txt2animation 1.2s ease-in-out infinite;
}

.q_num {
    font-size: 36px;
    font-weight: bold;
    padding: 48px 0;
}

.q_num span {
    font-size: 64px;
    font-weight: bold;
}

.q_txt {
    font-size: 40px;
    font-weight: bold;
    margin: 0;
    padding-bottom: 80px;
}

.q_answers a {
    display: block;
    color: #ffffff;
    background-color: #053689;
    padding: 15px 20px;
    font-size: 36px;
    text-decoration: none;
    border-radius: 20px;
    margin-bottom: 40px;
}

.q_answers a:hover {
    transform: scale(1.04);
    opacity: .8;
    transition: .3s;
}

.line {
    /* max-width: 460px; */
    width: 92%;
    height: auto;
    position: absolute;
    top: 45%;
    left: 4%;
    animation: txt2animation 1.2s ease-in-out infinite;
}

.line a {
    display: block;
}

/* 画面切り替え用 */
.fv,
.questionnaire,
.question,
.thanks {
    display: none;
}

.fv.active,
.questionnaire.active,
.question.active,
.thanks.active {
    display: block;
}

.footer {
    background-color: #0B84E3;
    color: #ffffff;
    font-size: 15px;
    padding: 20px 0;
}

@keyframes txt1animation {
    10% {
        /* 上から落ちてくる */
        transform: translateY(0);
    }
    15% {
        /* 落ちてきた衝撃で縦に少しつぶれる */
        transform: scale(1.1, 0.9);
    }
    20% {
        /* 落ちてきた衝撃で縦にさらに少しつぶれる */
        transform: scale(1.1, 0.8);
    }
    30% {
        /* 縦につぶれながらもつぶれた反動で少し横に伸びる */
        transform: scale(1.15, 0.7);
    }
    45% {
        /* 縦につぶれた反動で横に伸びる */
        transform: scale(1.2, 0.5);
    }
    50% {
        /* つぶれた反動で一気に縦に伸びる */
        transform: scale(0.85, 1.15);
    }
    60% {
        /* 伸びた反動で縦につぶれる */
        transform: scale(1.1, 0.9);
    }
    70% {
        /* つぶれた反動で縦に少し伸びる */
        transform: scale(0.95, 1.08);
    }
    90% {
        /* 伸びた反動でほんの少し縦につぶれる */
        transform: scale(0.98, 1.02);
    }
    100% {
        /* 通常のサイズになる */
        transform: scale(1, 1);
    }
}

@keyframes txt2animation {
    0%,
    100% {
        transform: scale(1.0);
    }
    50% {
        transform: scale(1.04);
    }
}


@media screen and (min-width: 768px) {
    .section {
        width: 768px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 599px) {
    .txt1 {
        top: 8%;
    }
    .scroll {
        width: 160px;
    }
    .q_box {
        height: 620px;
        padding: 0 24px;
    }
    .arrow {
        width: 165px;
    }
    .q_num {
        font-size: 24px;
        padding: 24px 0;
    }
    .q_num span {
        font-size: 32px;
    }
    .q_txt {
        font-size: 20px;
        padding-bottom: 50px;
    }
    .q_answers a {
        padding: 16px 20px;
        font-size: 18px;
        border-radius: 10px;
        margin-bottom: 25px;
    }
    .footer {
        font-size: 12px;
        padding: 14px 0;
    }
}