html {
    font-size: 10px;
}
body {
    letter-spacing: 0.1rem;
    font-weight: 500;
    font-size: 1.6rem;
}
.sp-br {
    display: none;
}
@media screen and (max-width: 700px) {
    html {
        font-size: 1.6vw;
    }
}
main {
    display: flex;
    flex-direction: column;
    align-items: center;
}
video {
    width: 100%;
}
/* ルビ */
ruby > rt {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    margin-left:0.5rem;
}
input {
    cursor: pointer;
}
input::placeholder {
    color: #979797;
}
.accent-yellow {
    color:#ffe400;
}
.accent-red {
    color:#f00000;
}
.accent-blue {
    color:var(--main-color);
}

/* question */
.contents_wrapper {
    max-width: 700px;
    width: 100%;
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.25);
}
.contents_inner {
    padding: 0 2rem;
}
.question-block {
    border:solid 0.5rem var(--main-color);
    overflow-x: hidden;
    margin-top: -3rem;
    z-index: 10;
    position: relative;
    background: #ffffff;
}
.questions-container {
    display: flex;
    max-width: 700px;
    width: 100%;
    transition: transform 0.5s ease-out;
}
.question {
width: 100%;
flex-shrink: 0;
text-align: center;
}
.qa-wrap {
    padding: 0 3rem;
    margin-bottom: 6rem;
}
/* question text */
.question_text {
    display: flex;
    margin-bottom: 3rem;
}
.question_text picture {
    width: 10%;
    margin-right: 2rem;
    object-fit: contain;
}
.question_text p {
    width: 90%;
    font-size: 2.8rem;
    text-align: left;
    font-weight: 700;
}
.question_text .row-2 {
    width: 90%;
    font-size: 2.8rem;
    text-align: left;
    font-weight: 700;
    line-height: 3.5rem;
}
.question_text .row-2 span {
    font-size: 2.2rem;
}

.remaining_questions {
    background-color: var(--main-color);
    height: 5rem;
    color: #ffffff;
    font-weight: 500;
    font-size: 2.8rem;
    padding: 0.4rem;
    margin-bottom: 3rem;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.select-button-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 2rem;
    align-content:center;
}

.select-button-wrap label {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--main-color);
    color: #ffffff;
    width: calc(50% - 1rem);
    height: 8rem;
    font-size: 2.4rem;
    font-weight: bold;
    line-height: 3.5rem;
    border-radius: 1rem;
    cursor: pointer;
}

.select-button-wrap input[type="radio"]:checked + label{
    opacity: 0.7;
}

.branch-text {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 0rem;
    display: block;
    padding: 0 0.5rem;
    position: relative;
    margin-bottom: 1.3rem;
}

.branch-text::before {
    background: radial-gradient(circle farthest-side, var(--main-color), var(--main-color) 40%, transparent 40%, transparent);
    background-size: 0.8rem 0.8rem; /* ドットのサイズを小さく調整 */
    content: '';
    display: inline-block;
    height: 0.8rem; /* ドットのサイズに合わせて高さを調整 */
    width: 100%;
    position: absolute;
    top: -0.4rem; /* ドットの位置を調整 */
    left: 0;
}

.branch-text:after {
    background: radial-gradient(circle farthest-side, var(--main-color), var(--main-color) 40%, transparent 40%, transparent);
    background-size: 0.8rem 0.8rem; /* ドットのサイズを小さく調整 */
    content: '';
    display: inline-block;
    height: 0.8rem; /* ドットのサイズに合わせて高さを調整 */
    width: 100%;
    position: absolute;
    bottom: -0.4rem;
    left: 0;
}

.marker-text {
    display: inline-block;
    background-color: #f00000;
    padding: 0 1rem;
    color: #ffffff;
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    line-height: 3.8rem;
}
.last-qa-wrap {
    padding: 0 1rem;
    margin-bottom: 5rem;
}

#last_question {
    text-align: center;
    font-size: 2rem;
}
.form-image01 img{
    width: 93%;
    margin-top: 2rem;
}
#last_question .input-wrapper {
    text-align:left;
    padding: 0 1rem;
    margin-top: 1.5rem;
}
#last_question label {
    font-weight: bold;
    display: block;
}
#last_question .select-box {
    position: relative;
}
#last_question .select-box::after {
    content: "";
    position: absolute;
    top: 2.3rem;
    right: 2.2rem;
    width: 1.6rem;
    height: 1.6rem;
    border-right: 0.3rem solid var(--main-color);
    border-bottom: 0.3rem solid var(--main-color);
    transform: rotate(45deg);
}
#last_question .select-box select {
    width: 100%;
    display: flex;
    align-items: center;
    height: 7rem;
    padding: 0 2rem;
    border: solid 0.2rem var(--main-color);
    border-radius: 1rem;
}
#last_question input {
    height: 7rem;
    padding: 0 2rem;
    border: solid 0.2rem var(--main-color);
    border-radius: 1rem;
    width: 100%;
}

#last_question .tel-input-wrapper input {
    width: 30.5%;
}
#last_question .send-text img{
    border: none;
    height: auto;
    object-fit: cover;
    width: 40%;
    margin-top: 4rem;
}
#last_question .submit-button {
    border: none;
    height: auto;
    object-fit: cover;
    width: 92%;
    margin-top: 1rem;
}
footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0 2rem;
    height: 6rem;
    font-size: 1.6rem;
}

/* チェックボックス */
.agree-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}
#last_question .checkbox-item {
    border: none;
    width: fit-content;
}
#last_question .checkbox-item input {
    display: none;
}

.checkbox-item-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 1.4rem;
    border-radius: 0.5rem;
    border: solid 1px #000;
    font-weight: bold;
}

.checkbox-item::before {
    content: "";
    display: block;
    width: 2.5rem;
    height: 2.5rem;
    background-image: url(./../images/checkbox_off.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.checkbox-item.on::before {
    content: "";
    display: block;
    background-image: url(./../images/checkbox_on.png);
    background-size: contain;
    background-repeat: no-repeat;
}

.checkbox-item img {
    width: 35px;
    height: 35px;
    margin: 0 10px;
}

footer a {
    font-size: 1.3rem;
}

@media screen and (max-width: 700px) {
    .remaining_questions{
        font-size:2.5rem;
    }
    .sp-br {
        display: block;
    }
    .select-button-wrap {
        flex-direction: column;
    }
    .select-button-wrap label {
        width: 70%;
    }
    .branch-text {
        display: block;
        font-size: 2.7rem;
    }
    #last_question .tel-input-wrapper input {
        width: 30.1%;
    }
    #last_question input {
        padding-top: 0.4rem;
    }
    .marker-text {
        font-size: 2.1rem;
        marker-text: 3.5rem;
    }
    .contents_inner {
        padding: 0 1rem;
    }
    .last-qa-wrap {
        padding: 0 0.5rem;
    }
}
