* {
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
}

img {
    width: 100%;
    vertical-align: top;
}
.content {
    max-width: 1200px;
    margin: 0 auto;
}

.grid {
        display: grid;
            grid-template-columns: 1fr 1fr;
}

.header_content {
    padding: 16px 0px;
}

.logo {
    width: 334px;
    display: block;
}

.main_content {
    padding: 64px 0;
    background-color: #F0F0F0;
}

.title_content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 64px;
}

h1 {
    font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 56px;
    color: #00342E;
    position: relative;
    padding-left: 24px;
}

h1::before {
    content:"";
    display:inline-block;
    width:6px;
    height:115px;
    background-color:#00342E;
    position:absolute;
    top:-2px;
    left:-5px;
}

p {
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 28px;
    text-align: justify;
    color: #333333;
}

.title_content .sub_text {
    width: 400px;
}

.form_title {
    background-color: #D9E9E7;
    padding: 24px 48px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-top: 30px;
}

.form_title::before {
    content: "";
    display: block;
    width: 600px;
    height: 6px;
    background-color: #00342E;
    position: absolute;
    top: 0;
    left: 0px;
}

h2 {
    font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 100%;
    color: #00342E;
}

.form_title p{
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #00342E;
}

.input {
    background-color: white;
    padding-bottom: 8px;
        width: 600px;
}

.input_content {
    padding: 0px 48px;
    margin-bottom: 40px;
}

.q_title {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 14px;
}

.q {
    padding: 4px 12px;
    background: #D9E9E7;
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    color: #00342E;
    margin-right: 10px;
}

.detail {
    font-style: normal;
    font-weight: 700;
    font-size: 16px;
    line-height: 23px;
    color: #000000;
}

input[type=radio] {
position: absolute;
    visibility: hidden;
}

ul li {
    color: #000000;
    display: block;
    position: relative;
    width: 100%;
    height: auto;
}

ul li input[type=radio] {
    position: absolute;
    visibility: hidden;
}

ul li label {
    display: block;
    position: relative;
    font-weight: 300;
    font-size: 1.35em;
    padding: 12px 50px;
    margin: 8px auto;
    z-index: 3;
    cursor: pointer;
    box-sizing: border-box;
    border: 2px solid rgba(255, 255, 255, 0);

font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 23px;
    background-color: #EFEFEF;
}

ul li .check {
    display: block;
    border: 2px solid #BBBBBB;
    border-radius: 100%;
    height: 16px;
    width: 16px;
    z-index: 5;
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

ul li .check::before {
    display: block;
    content: '';
    border-radius: 100%;
    height: 8px;
    width: 8px;
    position: absolute;
    top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
    margin: auto;
}

input[type=radio]:checked~.check {
    border: 2px solid #00342E;
}

input[type=radio]:checked~.check::before {
    background: #00342E;
}

input[type=radio]:checked~label {
    border: 2px solid #00342E;
    background: #D9E9E7;
}

.result_content {
    max-width: 454px;
    background: #D9E9E7;
    padding: 48px;
    position: sticky;
    top: 0;
    margin-left: auto;
        margin-right: 0;
}

.result_title {
    margin-bottom: 32px;
}

.result_content p {
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 29px;
    color: #00342E;
    margin-bottom: 16px;
}

p.result {
    font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
    font-style: normal;
    font-weight: 900;
    font-size: 144px;
    line-height: 100%;
    background: linear-gradient(90deg, #164F48 0%, #182A36 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    margin-bottom: 0px;
}

p.result span {
    font-size: 64px;
}
footer {
    background: #00342E;
}

footer p {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #FFFFFF;
    text-align: center;
    padding: 16px 0px;
}

.disable .result_content {
    background-color: #DEDEDE;
}

.disable .result_content p {
    color: rgba(51, 51, 51, 0.25);
}

.disable .result_title {
    color: rgba(51, 51, 51, 0.25);
}

.disable p.result {
    color: rgba(51, 51, 51, 0.25);
    background:inherit;
    background-clip:inherit;
        -webkit-background-clip: inherit;
            -webkit-text-fill-color: inherit;
    text-fill-color:inherit;
}

.modal {
    display: block;
    position: fixed;
    width: 100%;
    min-height: 100%;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.modal_content {
    width: 816px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    z-index: 1000;
    background-color: white;
    padding: 32px;
    padding-bottom: 24px;
}
.modal_title {
    text-align: center;
    font-family: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 Pro", "Hiragino Mincho Pro", "MS P明朝", "MS PMincho", serif;
    font-style: normal;
    font-weight: 700;
    font-size: 40px;
    line-height: 100%;
    color: #333333;
    margin-bottom: 24px;
}

.modal_text {
    height: 476px;
    background: #F5F5F5;
    overflow:scroll;
    padding: 32px;
    padding-right: 38px;
}

.modal_text p {
    font-size: 14px;
}

.button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
    margin-top: 24px;
}

.disagree {
    width: 184px;
    text-align: center;
    background: #EAEAEA;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 32px;
    font-family: 'Open Sans', sans-serif;
    padding: 9.5px 0px;
    transition: 0.3s;
    cursor: pointer;
    color: #333333;
}
.disagree:hover {
    opacity: 0.5;
}

.agree {
    width: 300px;
    text-align: center;
    background: #164F48;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
    font-family: 'Open Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 32px;
    color: #FFFFFF;
    padding: 9.5px 0px;
    cursor: pointer;
    transition: 0.3s;
}
.agree:hover {
    opacity: 0.5;
}

@media screen and (max-width: 375px) {
    .header_content {
        padding: 8px 0;
    }
    .logo {
        width: 233.7px;
        margin: 0 auto;
    }
    .main_content {
        padding-top: 40px;
        padding-bottom: 0px;
    }
    .title_content {
        flex-flow: column;
        padding: 0px 16px;
    }
    h1 {
        padding-left: 16px;
        font-size: 24px;
        line-height: 32px;
    }
    h1::before {
        height: 96px;
    }
    .title_content .sub_text {
        width: 100%;
        margin-top: 24px;
        font-size: 16px;
        line-height: 28px;
    }
    .grid {
        display: block;
    }
    .input {
        width: 100%;
    }
    .form_title::before {
        width: 100%;
    }
    .form_title {
        width: calc(100% - 32px);
        padding: 20px 16px;
        padding-top: 26px;
    }
    .form_title p {
        font-size: 14px;
    }
    .input_content {
        padding: 0px 16px;
        margin-bottom: 24px;
    }
    .input {
            padding-bottom: 24px;
            position: relative;
    }
    .input::after {
        content: "";
        display: block;
        width: 100%;
        height: 6px;
        background-color: #00342E;
        position: absolute;
        bottom: 0;
        left: 0px;
    }
    .result_content {
        max-width: 100%;
        padding: 40px 16px;
    }
    h2 {
        font-size: 24px;
        line-height: 100%;
    }
    .result_content p {
        font-size: 16px;
        line-height: 23px;
    }
    .result_content .num {
        font-size: 96px;
        line-height: 100%;
    }
    footer p {
        font-size: 10px;
        line-height: 14px;
    }

    .modal_content {
        width: 80vw;
        padding: 24px 16px;
        /* padding: 3vh 5vw; */
        height: 85vh;
        max-height: 635px;
    }

    .modal_title {
        font-size: 24px;
        margin-bottom: 3vh;
    }

    .modal_text {
        padding: 32px 16px;
        padding-right: 22px;
        height: 345px;
        height: 48vh;
    }

    .button {
        flex-wrap: wrap-reverse;
        justify-content: center;
    }

    .agree {
        margin-bottom: 16px;
    }
}