@charset "UTF-8";

/* CSS Document */

body {
    font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, Osaka, "ＭＳ Ｐゴシック", "MS PGothic", "sans-serif";
    margin: 0 auto;
}

#wrapper {
    min-height: 100vh;
    position: relative;
    padding-bottom: 50px;
    box-sizing: border-box;
}

a:hover {
    opacity: 0.8
}

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

header {
    background: #fff;
    text-align: center;
}

header img {
    box-sizing: border-box;
    height: 180px;
    padding: 50px;
}

main {
    text-align: center;
    margin: auto;
    max-width: 1000px;
    padding: 10px 20px 100px;
}

footer {
    box-sizing: border-box;
    width: 100%;
    background: #F2F4F8;
    padding: 20px;
    text-align: center;
    position: absolute;
    bottom: 0;
}

footer small {
    display: block;
    font-size: 10px;
    line-height: 1.4em;
}

@media screen and (max-width:480px) {
    header img {
        height: 120px;
        padding: 30px;
    }

    .pc {
        display: none;
    }
}

/* step indicator */
.step_indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
}

.step {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    background: #ccc;
    color: #fff;
    flex-shrink: 0;
}

.step.active {
    background: #1d9bf0;
}

.step.done {
    background: #1d9bf0;
    opacity: 0.4;
}

.step_line {
    width: 60px;
    height: 3px;
    background: #ccc;
    flex-shrink: 0;
}

.step_line.done {
    background: #1d9bf0;
    opacity: 0.4;
}

@media screen and (max-width:480px) {
    .step_indicator {
        margin-bottom: 24px;
    }

    .step {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .step_line {
        width: 36px;
    }
}

/* question */
.question {
    margin-bottom: 30px;
}

.question_image {
    margin-bottom: 50px;
}

.question_text {
    font-size: 30px;
    line-height: 1.5em;
    font-weight: bold;
    margin: 0 0 20px;
}

@media screen and (max-width:480px) {
    .question {
        margin-bottom: 20px;
    }

    .question_image {
        margin-bottom: 20px;
    }

    .question_text {
        font-size: 20px;
        margin-bottom: 10px;
    }
}

/* answer */
.answer {
    max-width: 800px;
    margin: auto;
    margin-bottom: 30px;
}

.answer_text {
    display: block;
    text-decoration: none;
    background: #fff;
    color: #1d9bf0;
    border: 1px solid #1d9bf0;
    font-size: 20px;
    line-height: 1.5em;
    font-weight: bold;
    padding: 10px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.answer_text:hover {
    background: rgba(29, 155, 240, 0.1);
    opacity: 1;
}

@media screen and (max-width:480px) {
    .answer {
        padding: 0 20px;
        margin-bottom: 20px;
    }

    .answer_text {
        font-size: 16px;
        padding: 8px;
    }
}

.question_hint {
    font-size: 24px;
    line-height: 1.5em;
    font-weight: bold;
    color: #1d9bf0;
}

@media screen and (max-width:480px) {
    .question_hint {
        font-size: 18px;
    }
}

/* explanation */
.correct_answer {
    font-size: 30px;
    font-weight: bold;
    line-height: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
}

.explanation_text {
    display: inline-block;
    font-size: 18px;
    line-height: 1.5em;
    padding: 0;
    border-radius: 10px;
    margin: 0;
}

@media screen and (max-width:480px) {
    .correct_answer {
        font-size: 24px;
    }

    .explanation_text {
        font-size: 14px;
        padding: 20px;
    }
}

/* clear */
.clear_image {
    margin-bottom: 50px;
}

.clear_title {
    font-size: 30px;
    font-weight: bold;
    line-height: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
}

.clear_text {
    font-size: 20px;
    line-height: 1.5em;
    margin-top: 0;
    margin-bottom: 30px;
}

@media screen and (max-width:480px) {
    .clear_image {
        margin-bottom: 30px;
    }

    .clear_title {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .clear_text {
        font-size: 16px;
        padding: 0 20px;
        margin-bottom: 20px;
    }
}

/* modal */
.modal_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal_overlay[hidden] {
    display: none;
}

.modal_box {
    background: #fff;
    border-radius: 16px;
    padding: 40px 50px;
    text-align: center;
    max-width: 480px;
    width: 90%;
    position: relative;
}

.modal_title {
    font-size: 30px;
    font-weight: bold;
    margin: 0 0 20px;
}

.modal_text {
    font-size: 20px;
    line-height: 1.5em;
    margin: 0 0 20px;
}

.modal_close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 4px 6px;
}

.modal_close:hover {
    color: #333;
    opacity: 1;
}

.modal_hint {
    display: inline-block;
    background: #1d9bf0;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 50px;
    border-radius: 50px;
}

.modal_hint:hover {
    opacity: 0.8;
}

.modal_next {
    display: inline-block;
    background: #1d9bf0;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 50px;
    border-radius: 50px;
    margin-top: 30px;
}

.modal_next:hover {
    opacity: 0.8;
}

@media screen and (max-width:480px) {
    .modal_box {
        width: 80%;
        padding: 30px 24px;
    }

    .modal_title {
        font-size: 20px;
    }

    .modal_text {
        font-size: 15px;
    }

    .modal_hint {
        font-size: 15px;
        padding: 10px 36px;
    }

    .modal_next {
        font-size: 15px;
        padding: 10px 36px;
        margin-top: 20px;
    }
}

/* entry */
.entry_area {
    margin-bottom: 50px;
}

.entry {
    width: 300px;
    display: block;
    text-decoration: none;
    background: #1d9bf0;
    color: #fff;
    font-size: 20px;
    line-height: 1.5em;
    font-weight: bold;
    padding: 15px 50px;
    border-radius: 50px;
    margin: 0 auto 20px;
}

@media screen and (max-width:480px) {
    .entry {
        width: 200px;
        font-size: 16px;
        line-height: 1.5em;
        padding: 10px 20px;
    }
}

.join_text {
    font-size: 14px;
    line-height: 1.4em;
    margin: 0 0 20px;
}

.join_notes {
    box-sizing: border-box;
    max-width: 670px;
    padding: 15px;
    background-color: #eee;
    border: 1px solid #ccc;
    margin: 0 auto;
}

.join_list {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0;
    font-size: 12px;
}

@media screen and (max-width:767px) {
    .join_text {
        font-size: 12px;
    }

    .join_list {
        font-size: 10px;
    }
}
