* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: "Noto Sans JP";
    src: url('../../common/fonts/NotoSansJP-Regular.woff') format('woff');
    font-weight: normal;
}

@font-face {
    font-family: "Noto Sans JP";
    src: url('../../common/fonts/NotoSansJP-Medium.woff') format('woff');
    font-weight: 500;
}

@font-face {
    font-family: "Noto Sans JP";
    src: url('../../common/fonts/NotoSansJP-Bold.woff') format('woff');
    font-weight: bold;
}

html {
    height: 100%;
}

body {
    font-family: "Noto Sans JP", "YuGothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: #545454;
}

main {
    flex: 1;
    border-bottom: 12px solid #b01f24;
    padding-top: 40px;
    padding-bottom: 60px;
}

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

.container {
    width: 920px;
    max-width: 90%;
    margin: auto;
}

header {
    border-bottom: 12px solid #b01f24;
    padding: 20px 0;
}

header .logo img {
    width: 160px;
}

.lead {
    font-weight: 500;
    margin-bottom: 48px;
    padding: 0 28px;
}

.lead h1 {
    text-align: center;
    font-size: 1.6em;
    margin-bottom: 28px;
    font-weight: 500;
}

.form-area {
    font-weight: 500;
}

.confirm-form {
    margin-top: 20px;
}

.quest-cat {
    margin-bottom: 48px;
}

.input-form .quest-cat {
    padding-bottom: 20px;
    position: relative;
}

.quest-cat:last-child {
    padding-bottom: 4px;
}

.input-form .quest-cat::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    height: 1px;
    background-color: #b4b4b4;
    width: calc(100% - 64px);
}

.quest-cat:last-child::after {
    display: none;
}

.form-area h2 {
    font-size: 1.2em;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 28px;
    display: flex;
    align-items: flex-start;
}

.form-area h2 .cat-title {
    flex-shrink: 0;
    margin-right: 1em;
    border-left: 12px solid #b01f24;
    padding-left: 16px;
}

.quest-contents {
    padding-left: 28px;
}

.quest-contents dl {
    margin-bottom: 32px;
}

.quest-contents dt {
    margin-bottom: 16px;
    line-height: 1.8;
}

.quest-contents dt .num {
    border-bottom: 1px solid #b01f24;
    margin-right: 1rem;
}

.quest-contents dd {
    margin-left: 20px;
}

.confirm-form dd {
    color: #888;
}

.select-wrap {
    position: relative;
    display: inline-block;
}

.select-wrap select {
    border: 1px solid #b4b4b4;
    font-size: 1em;
    padding: 0 36px 0 16px;
    height: 40px;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    background: unset;
    cursor: pointer;
    outline: none;
    width: 100%;
    background-color: unset;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 500;
    min-width: 320px;
    font-family: "Noto Sans JP", "YuGothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
}

.select-wrap::after {
    content: "▼";
    display: inline-block;
    position: absolute;
    top: 48%;
    right: 12px;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    z-index: -1;
    color: #888;
}

.quest-contents .col4 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 0;
}

.quest-contents .col4 label {
    min-width: 25%;
    padding-right: 16px;
}

.quest-contents .col2 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 0;
}

.quest-contents .col2 label {
    min-width: 50%;
}

.quest-contents label {
    display: flex;
    align-items: center;
    color: #888;
    cursor: pointer;
}

.quest-contents label input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid #545454;
    border-radius: 50%;
    vertical-align: -2px;
    margin-right: 8px;
}

.quest-contents label input:checked::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #545454;
    content: '';
}

.error-message {
    color: #e60012;
    margin-top: 12px;
}

.btn-wrap {
    text-align: center;
}

.confirm-form .btn-wrap {
    margin-top: 60px;
}

.btn-wrap.col2 .btn:first-child {
    margin-right: 40px;
}

.btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #b01f24;
    color: #fff;
    border: none;
    cursor: pointer;
    font-family: "Noto Sans JP", "YuGothic", "Hiragino Kaku Gothic Pro", "Meiryo", sans-serif;
    font-size: 1.2em;
    font-weight: 500;
    padding: 16px;
    width: 300px;
    display: inline-block;
    text-decoration: none;
}

.btn.back {
    background-color: #888;
}

.btn:hover {
    opacity: 0.7;
}

.comp-msg {
    text-align: center;
    font-size: 1.4em;
    font-weight: 500;
}

.error-cts {
    margin-bottom: 40px;
    text-align: center;
}

@media only screen and (max-width:749px) {
    body {
        font-size: 14px;
    }

    main {
        padding-top: 28px;
        padding-bottom: 40px;
        border-width: 4px;
    }

    header {
        border-width: 4px;
        padding: 12px 0;
    }

    .lead {
        padding: 0;
        margin-bottom: 32px;
    }

    .lead h1 {
        font-size: 1.2em;
        margin-bottom: 16px;
    }

    .confirm-form {
        margin-top: 0;
    }

    .quest-contents {
        padding-left: 0;
    }

    .quest-contents dl {
        margin-bottom: 24px;
    }

    .confirm-form .quest-contents dl {
        margin-bottom: 20px;
    }

    .quest-contents dd {
        margin: 0;
    }

    .select-wrap {
        width: 100%;
    }

    .select-wrap select {
        width: 100%;
        height: 36px;
    }

    .quest-cat {
        margin-bottom: 36px;
    }

    .input-form .quest-cat {
        margin-bottom: 28px;
        padding-bottom: 12px;
    }

    .input-form .quest-cat:last-child {
        margin-bottom: 4px;
    }

    .input-form .quest-cat::after {
        width: 100%;
        background-color: #ccc;
    }

    .form-area h2 {
        margin-bottom: 16px;
        display: block;
        line-height: 1.6;
        font-size: 1.1em;
    }

    .form-area h2 .cat-title {
        border-width: 8px;
        padding-left: 12px;
        margin-right: 0;
    }

    .quest-contents .col4 label {
        width: 100%;
    }

    .quest-contents .col2 label {
        width: 100%;
    }

    .btn {
        width: 100%;
        padding: 12px;
        font-size: 1em;
    }

    .btn.back {
        order: 2;
    }

    .confirm-form .btn-wrap {
        margin-top: 48px;
        display: flex;
        flex-wrap: wrap;
    }

    .btn-wrap.col2 .btn:first-child {
        margin-right: 0;
        margin-top: 12px;
    }

    .comp-msg {
        font-size: 1em;
    }

    .error-cts {
        margin-bottom: 20px;
        text-align: left;
    }
}