*,::before,::after{background-repeat:no-repeat;box-sizing:inherit}
*{padding:0;margin:0}
ul li,ol li{list-style:none}
html {
    font-size:62.5%;
    box-sizing: border-box;
}
body {
    font-family: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 10px solid #151515;
    background: 
        linear-gradient(#f4f4f4 0%, rgba(244, 244, 244, 0) 100%),
        linear-gradient(0deg, #b59dc8 0%, #f09ab7 15.17%, #f5eaa7 53.56%, #87ced9 810px, white 100%);
}
img {
    max-width: 100%;
    max-height: 100%;
}
input, select {
    -webkit-appearance: none;
    appearance: none;
}
.header {
    position: fixed;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 20px 30px;
}
.header img:hover {
    opacity: .8;
}
.header-icons_sns {
    display: flex;
}
.header-icons i {
    padding: 3px;
    margin: 0 4px;
}
.header-icons i img {
    width: 24px;
}
.question {
    position: relative;
    display: none;
    width: 100%;
}
.question.active {
    display: block;
}
.result {
    display: none;
}
#quiz-container {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 540px;
    min-height: 640px;
    background: white;
    border-radius: 20px;
    padding: 30px 30px 30px;
    margin: 90px 10px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.question-header {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
    margin-bottom: 5px;
    font-family: 'Lato', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
}
.question-number {
    margin-right: 8px;
    font-size: 30px;
    font-weight: bold;
}
.question-total {
    color: #888;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: .08em;
}
.question h2 {
    text-align: center;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 40px;
}
.question h2::before {
    content: 'QUESTION';
    display: block;
    margin-bottom: 8px;
    font-family: 'Lato', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
}
.note {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}
.question-image {
    padding: 0 10px;
    margin-bottom: 40px;
    text-align: center;
}
.image_frame_type img {
    max-width: 360px;
    width: 100%;
}
.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}
.answer-grid.grid_col-1 {
    grid-template-columns: repeat(1, 1fr);
}
.answer-grid.grid_col-3 {
    grid-template-columns: repeat(3, 1fr);
}
.grid-item-full-col {
    grid-column: 1 / 3;
}
.answer,
.answer-select {
    background: white;
    border: 1px solid #000000;
    border-radius: 4px;
    min-height: 50px;
    padding: 17px 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
    color: #000;
    outline: none;
}
.answer:hover {
    background: #f5f5f5;
}
.answer-select_wrap {
    position: relative;
}
.answer-select_wrap::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 16px;
    width: 10px;
    height: 10px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: rotate(45deg);
}
.answer-select_wrap:has(.answer-select.selected)::after {
    border-right: 2px solid #FF501D;
    border-bottom: 2px solid #FF501D;
}
.answer-select {
    /* min-height: 44px; */
    padding: 18px 20px;
}
.answer-select.selected,
.answer.selected {
    border: 3px solid #FF501D;
    padding: 15px 10px;
    color: #FF501D;
}
@media(hover:hover) {
    .answer:hover {
        border: 3px solid #FF501D;
        padding: 15px 10px;
        color: #FF501D;
    }
}
.answer-select option.selected {
    color: #FF501D;
}
.start-button,
.next-button,
.result-button {
    width: 100%;
    max-width: 280px;
    max-height: 60px;
    background: #000;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 20px 20px;
    font-family: 'Lato', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}
.start-button:hover,
.next-button:hover,
.result-button:hover {
    background: #9e9e9e;
}
.start-button[disabled],
.next-button[disabled],
.result-button[disabled] {
    background: #e1e1e1;
}

.back-button {
    position: absolute;
    bottom: 0;
    left: 0;
    /* background: #f5f5f5; */
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.back-button svg circle {
    transition: all 0.3s ease;
}
.back-button:hover svg circle {
    fill: #000;
}
.start-title,
.result-title {
    display: flex;
    justify-content: center;
    font-family: 'Lato', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
    font-size: 56px;
    font-weight: 800;
    margin-top: 150px;
    margin-bottom: 27px;
    letter-spacing: .08em;
}
.result-title {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 50px;
    letter-spacing: 0.05em;
}
.result-title_inner {
    position: relative;
}
.result-title_inner::after {
    content: '';
    position: absolute;
    background: url(../images/typecheck_result_recommend.svg) no-repeat;
    background-size: contain;
    top: -32px;
    left: -36px;
    width: 216px;
    height: 57px;
}
.result-subtitle {
    display: flex;
    justify-content: center;
    max-width: 280px;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 10px 0;
    margin: 0 auto 25px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.005rem;
}
.start-text {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 500;
    text-align: center;
}
.result-post {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}
.result-postTitle {
    max-width: 320px;
    margin-bottom: 8px;
    font-size: 12px;
    text-align: center;
}
.result-postThumbnail img {
    max-width: 240px;
    max-height: 240px;
}
.result-text {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
.start-content {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    font-size: 16px;
    text-align: center;
}
.start-button-price,
.result-button-price {
    background-color: #FFF;
    padding: 1px 5px;
    margin-right: 12px;
    font-size: 14px;
    color: #000;
}
@media screen and (max-width: 480px) {
    .header {
        background: linear-gradient(rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, 0) 100%);
        padding: 10px;
    }
    #quiz-container {
        min-height: 480px;
        padding: 20px 15px 20px;
        margin: 70px 10px 20px;
    }
    .question-number {
        margin-right: 6px;
        font-size: 24px;
    }
    .question-total {
        font-size: 16px;
        letter-spacing: .04em;
    }
    .question h2 {
        margin-bottom: 24px;
        font-size: 20px;
    }
    .note {
        font-size: 12px;
        margin-bottom: 15px;
    }
    .answer-grid {
        gap: 8px;
        margin-bottom: 30px;
    }
    .answer {
        padding: 6px 2px;
        font-size: 14px;
    }
    .answer-select {
        padding: 6px 8px;
        font-size: 14px;
    }
    .answer.selected,
    .answer:hover {
        padding: 4px 2px;
    }
    .answer-select.selected {
        padding: 4px 8px;
    }
    .question-image {
        margin-bottom: 30px;
    }
    .image_frame_type img {
        max-width: 280px;
    }
    .start-title {
        margin-top: 40px;
    }
    .start-text {
        font-size: 22px;
    }
    .start-content {
        font-size: 14px;
    }
    .result-title {
        margin-top: 24px;
        font-size: 40px;
        margin-bottom: 12px;
    }
    .result-title_inner::after {
        top: -28px;
        left: -36px;
        width: 180px;
        height: 48px;
    }
    .result-subtitle {
        font-size: 18px;
    }   
    .result-text {
        font-size: 12px;
    }
    .next-button {
        margin: 0 auto 70px;
    }
    .back-button {
        bottom: -5px;
        left: -5px;   
    }
    .result form {
        margin-bottom: 32px;
    }
}
/* reCAPTCHA Google */
.grecaptcha-badge {
    visibility: hidden;
}
