/* フォーム共通 */
.top-question,
.bottom-question {
    margin: 0 auto;
    padding: 0 10px;
    max-width: 700px;
}
.top-question {
    padding-top: 48px;
    padding-bottom: 60px;
}
#hasallergies-area.top-question {
    border-top: solid 1px var(--yellow-color);
    margin-top: 60px;
    padding-top: 32px;
    background-color: #fff;
}
.top-question {
    padding-top: 48px;
    padding-bottom: 60px;
}

.bottom-question textarea {
    background-color: var(--pale-glay-color);
    border: solid 1px var(--glay-color);
}
.select-checkbox-title {
    font-weight: bold;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: solid 1px var(--text-color);
}

.top-question-title {
    font-weight: bold;
    padding-bottom: 32px;
    text-align: center;
    line-height: 1.5;
}
.question-area-allergicFood .top-question-title {
    padding-top: 48px;
    border-top: solid 1px var(--text-color);
}
.question-label {
    padding: 20px 0;
    font-size: 16px;
}

.text-required {
    display: inline-block;
    color: #fff;
    background-color: var(--warning-color);
    border-radius: 5px;
    margin-right: 6px;
    padding: 2px 0;
    font-size: 14px;
    width: 41px;
    text-align: center;
}

.question-title {
    font-weight: bold;
    margin-bottom: 20px;
}
.subquestion-title {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
}
@media (max-width: 767px) {
    .subquestion-title {
        margin-bottom: 15px;
        font-size: 15px;
        font-weight: bold;
        display: flex;
        justify-content: flex-start;
        align-items: baseline;
    }
}

/* テキストエリア */
textarea {
    width: calc(100% - 20px);
    height: 200px;
    padding: 15px 10px;
    border: solid 1px var(--glay-color);
    border-radius: 3px;
}
.textarea-explanation {
    margin-bottom: 20px;
}

/* チェックボックス */
.checkbox-btn input[type=checkbox] {
    display: none;
}
.checkbox-btn label {
    position: relative;
    margin-bottom: 10px;
    padding: 10px 15px 10px 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--pale-yellow-color);
    border: solid 1px var(--checkbox-bg-select-color);
    border-radius: 5px;
    min-height: 40px;
    font-weight: normal;
}
.checkbox-btn label :last-child {
    margin-bottom: 0 !important;
}
.checkbox-btn input[type=checkbox] + label::before {
    position: absolute;
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--checkbox-before-color);
    left: 15px;
    top: calc(50% - 10px);
}
.checkbox-btn input[type=checkbox] + label::after {
    position: absolute;
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: url(../../img/DietaryRestriction/icon_checkbox_circle_selected.png) no-repeat;
    background-size: cover;
    left: 15px;
    top: calc(50% - 10px);
    opacity: 0;
    transition: .3s;
}
.checkbox-btn input[type=checkbox]:checked + label::after {
    opacity: 1;
}
.checkbox-btn input[type=checkbox]:checked + label {
    background-color: var(--checkbox-bg-select-color);
    color: #fff;
}
.checkbox-btn.add-box label {
    border-radius: 5px 5px 0 0;
    margin-bottom: 0;
}
.checkbox-btn input[type=checkbox]:disabled + label {
    color: var(--glay-color) !important;
}
.checkbox-btn input[type=checkbox]:disabled + label::before {
    border: solid 1px var(--glay-color) !important;
    background: var(--glay-color) !important;
}

/* チェックボックス下チェックボックス */
.checkbox-bottom-box .checkbox-btn label {
    position: relative;
    margin-bottom: 10px;
    padding: 10px 15px 10px 35px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    min-height: 26px;
    box-sizing: border-box;
    border: 0;
}
.checkbox-bottom-box .checkbox-btn label :last-child {
    margin-bottom: 0 !important;
}
.checkbox-bottom-box .checkbox-btn input[type=checkbox] + label::before {
    position: absolute;
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    border: solid 1px var(--yellow-color);
    box-sizing: border-box;
    background: #fff;
    left: 2px;
    top: calc(50% - 12px);
}
.checkbox-bottom-box .checkbox-btn input[type=checkbox] + label::after {
    position: absolute;
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    border-radius: 5px;
    background: url(../../img/DietaryRestriction/icon_checkbox_square_selected.png) no-repeat;
    background-size: cover;
    left: 2px;
    top: calc(50% - 12px);
    opacity: 0;
    transition: .3s;
}
.checkbox-bottom-box .checkbox-btn input[type=checkbox]:checked + label::after {
    opacity: 1;
}
.checkbox-bottom-box .checkbox-btn input[type=checkbox]:checked + label {
    background-color: initial;
    color: var(--yellow-color);
}

/* チェックボックス下ラジオボタン */
input[type=radio] {
    display: none;
}
.checkbox-bottom-box .radio-btn label {
    position: relative;
    margin-bottom: 0;
    padding: 2px 15px 2px 30px;
    display: inline-block;
    align-items: center;
    border-radius: 5px;
    background-color: initial;
    border: 0;
    min-height: 40px;
    font-weight: normal;
    box-sizing: border-box;
}
.checkbox-bottom-box .radio-btn input[type=radio] + label::before {
    position: absolute;
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-sizing: border-box;
    left: 3px;
    top: calc(50% - 10px);
    background: var(--checkbox-before-color);
    border: solid 1px var(--checkbox-before-color);
}
.checkbox-bottom-box .radio-btn input[type=radio] + label::after {
position: absolute;
content: "";
display: block;
width: 20px;
height: 20px;
border-radius: 50%;
background: url(../../img/DietaryRestriction/icon_submenu_radio_selected.png) no-repeat;
background-size: cover;
left: 3px;
top: calc(50% - 10px);
opacity: 0;
transition: .3s;
}
.checkbox-bottom-box .radio-btn input[type=radio]:checked + label::after {
opacity: 1;
}
.checkbox-bottom-box .radio-btn input[type=radio]:disabled + label::after :not(.staff-edit) {
background: var(--glay-color) !important;
opacity: 1;
}
.checkbox-bottom-box .radio-btn input[type=radio]:checked + label {
background-color: initial;
color: var(--yellow-color);
opacity: 1;
}
.checkbox-bottom-box .radio-btn.add-box label {
margin-bottom: 0;
}

.checkbox-bottom-box input[type=text] {
    /*width: calc(100% - 20px);*/
    border: solid 1px var(--glay-color);
    padding: 13px 10px;
    font-size: 16px;
    border-radius: 2px;
    width: 100%;
}
.checkbox-bottom-box input[type=text]:focus {
    outline: none;
}
#otherUsingBeans-list li .checkbox-add-text input[type=text] {
    width: 86%;
}
.checkbox-bottom-box textarea {
    height: 120px;
}

/* inputテキスト */
input[type=text] {
    border: solid 1px var(--glay-color);
    padding: 13px 10px;
    font-size: 16px;
    border-radius: 2px;
}
input[type=text]::placeholder {
    color: rgba(51, 51, 51, 0.4);
}
.allergic-required {
    display: inline-block;
    width: 10%;
}
#otherUsingBeans-list li .checkbox-add-text .allergic-required {
    display: inline-block;
    width: 10%;
}
.checkbox-add-text {
    /*padding-left: 35px;*/
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
}
.checkbox-add-text .text-required {
    width: 46px;
    /*margin-right: 10px;*/
}
@media (max-width: 959px) {
    /* タブレット、スマホ */
    .checkbox-add-text {
        padding-left: 0;
    }
}
@media (max-width: 767px) {
    /* スマホの設定 */
    .checkbox-bottom-box input[type=text] {
        width: 75%;
    }
    #otherUsingBeans-list li .checkbox-add-text input[type=text] {
        width: 68%;
    }
    .allergic-required {
        width: 20%;
    }
    #otherUsingBeans-list li .checkbox-add-text .allergic-required {
        width: 23%;
    }
}


/* チェックボックス下の追加選択エリア */
.checkbox-bottom-box {
    background-color: var(--pale-yellow-color);
    border: solid 1px var(--yellow-color);
    border-top: 0;
    border-radius: 0 0 5px 5px;
    margin-bottom: 10px;
    padding: 15px 20px;
}
.add-top-border {
    border-top: solid 1px var(--yellow-color);
    border-radius: 5px 5px 5px 5px;
}
.checkbox-bottom-box .underline {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: solid 1px var(--glay-color);
}

.question-line-wrap {
    border-top: solid 1px #4a4a4a;
    margin-bottom: 40px;
}
.question-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 90px;
    border-bottom: solid 1px var(--glay-color);
}
.question-line > div:first-child {
    width: 36%;
}
.question-line > div:last-child {
    width: 64%;
    display: flex;
    align-items: center;
}
.question-line > div input[type=text] {
    width: inherit;
    width: 100%;
    margin-right: 10px;
}
.question-line > div input[type=text]:last-child {
    margin-right: 0;
}

.question-line > div input[type=text].input-age {
    width: 30px;
}


/* アレルギー選択チェックボックス */
.select-menu-title {
    position: relative;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    margin: 42px auto 60px;
    padding: 0 10px 20px;
}
.select-menu-title::before {
    position: absolute;
    content: "";
    width: 220px;
    height: 3px;
    background: var(--yellow-color);
    bottom: 0;
    left: calc(50% - 110px);
}
.select-menu {
    padding: 0 15px;
}
.select-checkbox {
    margin-bottom: 48px;
}
.select-checkbox:last-child {
    margin-bottom: 0;
}

.select-menu input[type=checkbox] {
    margin-top: 15px;
    margin-right: 0;
}
.select-menu .checkbox-btn input[type=checkbox] {
    display: none;
}
.select-menu .checkbox-btn label {
    position: relative;
    margin-bottom: 10px;
    padding: 0;
    padding-left: 46px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--pale-yellow-color);
    border: solid 1px var(--checkbox-bg-select-color);
    border-radius: 5px;
    height: 110px;
    font-weight: bold;
}
.select-menu .checkbox-btn label img {
    width: 100px;
    height: auto;
    margin-right: 20px;
}
.haveallergies-img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    background: url(../../img/DietaryRestriction/haveallergies.png) no-repeat;
    background-size: cover;
}
.dietary_restrictions-img {
    width: 100px;
    height: 100px;
    margin-right: 20px;
    background: url(../../img/DietaryRestriction/dietary_restrictions.png) no-repeat;
    background-size: cover;
}
.select-menu .checkbox-btn label:last-child {
    margin-bottom: 0;
}
.select-menu .checkbox-btn input[type=checkbox] + label::before {
    position: absolute;
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-sizing: border-box;
    border: 0;
    background: var(--checkbox-before-color);
    left: 16px;
    top: calc(50% - 10px);
}
.select-menu .checkbox-btn input[type=checkbox] + label::after {
    position: absolute;
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background: url(../../img/DietaryRestriction/icon_checkbox_circle_selected.png) no-repeat;
    background-size: cover;
    left: 16px;
    top: calc(50% - 10px);
    opacity: 0;
    transition: .3s;
}
.select-menu .checkbox-btn input[type=checkbox]:checked + label {
    background-color: var(--checkbox-bg-select-color);
    color: #fff;
}
.select-menu .checkbox-btn input[type=checkbox]:checked + label::after {
    opacity: 1;
}

.dietary-restrictions-title {
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}
.dietary-restrictions-list {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border: solid 1px var(--glay-color);
    margin-bottom: 0;
    padding: 10px 0;
    border-radius: 5px;
}
.dietary-restrictions-list > li {
    display: list-item;
    width: calc(50% - 32px);
    list-style-position: outside;
    margin: 2px;
    margin-left: 30px;
}

.allergies-explanation {
    margin: 40px 0 0;
}

#hasallergies-area {
    display: none;
}
#hasallergies-area .bottom-question {
    padding-bottom: 80px;
    border-bottom: solid 1px var(--glay-color);
}

/* footer */
.footer {
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 0;
    background-color: var(--pale-glay-color);
}
.footer .btn-area .btn-submit {
    text-decoration: none;
    display: block;
    width: 350px;
    position: relative;
    margin: 0 auto;
    padding: 22px 0;
    background-color: var(--btn-color);
    border-radius: 72px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.2);
    text-align: center;
    font-size: 18px;
    color: var(--text-color);
    cursor: pointer;
    border: none;
}
.btn-area .btn-submit::after {
    position: absolute;
    content: "";
    right: 24px;
    top: calc(50% - 6px);
    width: 6px;
    height: 12px;
    background: url(../../img/DietaryRestriction/icon_btn_arrow.png) no-repeat;
    background-size: cover;
}
.footer.btn-disabled .btn-area .btn-submit,
.footer.btn-disabled .btn-area .btn-confirm {
    border: solid 1px var(--btn-disabled-color);
    color: var(--btn-disabled-color);
    background: var(--light-glay-color);
    box-shadow: none;
    cursor: default;
}

/* 入力の修正 */
.checkbox-btn.selected label {
    background-color: var(--checkbox-bg-selected-color) !important;
    border-color: var(--checkbox-bg-selected-color);
    color: #fff;
}
.checkbox-bottom-box.selected {
    background-color: var(--checkbox-bottom-bg-selected-color);
    border-color: var(--checkbox-bg-selected-color);
}
.checkbox-btn.selected label::before {
    background-color: #fff !important;
}

.footer .btn-area .btn-confirm {
    text-decoration: none;
    display: block;
    width: 350px;
    position: relative;
    margin: 16px auto 0;
    padding: 22px 0;
    background-color: #fff;
    border-radius: 72px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.2);
    text-align: center;
    font-size: 18px;
    color: #7e611c;
    cursor: pointer;
}
.btn-area .btn-confirm::after {
    position: absolute;
    content: "";
    right: 24px;
    top: calc(50% - 6px);
    width: 6px;
    height: 12px;
    background: url(../../img/DietaryRestriction/icon_btn_arrow_yellow.png) no-repeat;
    background-size: cover;
}
.inner {
    display: -ms-flexbox;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
}
.icon-add {
    width: 30px;
    height: 20px;
    background: url(../../img/DietaryRestriction/plus.png) no-repeat center center;
    cursor: pointer;
}
.icon-delete {
    display: block;
    width: 30px;
    height: 20px;
    background: url(../../img/DietaryRestriction/minus.png) no-repeat center center;
    cursor: pointer;
    padding-left: 25px;
}
ul {
    list-style: none;
    margin-top: 0;
}
#otherUsingBeans-list {
    padding-left: 100px;
}
#otherAllergicFood-list li:not(:last-child) {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: solid 1px var(--glay-color);
}
#border-none {
    border: none;
}
.label-flex {
    border-radius: 5px 5px 5px 5px !important;
    margin-bottom: 10px !important;
}
.maxLengthCaution {
    width: 100%;
    font-size: 13px;
    text-align: end;
}
