#contents {
    padding-top: 30px;
}

#contact-check-wrap {
    position: relative;
}
  
#contact-check-wrap input {
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
}
  
#contact-check-wrap label {
    padding-left: 30px;
    display: inline-block;
    position: relative;
    font-size: 2rem;
    line-height: 1.6;
    cursor: pointer;
    font-weight: bold;
}

#contact-check-wrap label:before {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    top: calc(50% - 8px);
    left: 0;
}

#contact-check-wrap.item-disabled label {
    cursor: default;
}

#contact-check-wrap.item-disabled label:before {
    background-color: #e4e4e4;
}
  
#contact-check-wrap label:after {
    width: 8px;
    height: 10px;
    border-right: 2px solid #3B9E3E;
    border-bottom: 2px solid #3B9E3E;
    transform: rotate3d(0, 0, 1, 45deg);
    top: calc(50% - 5px);
    left: 6px;
    opacity: 0;
}

#contact-check-wrap label:before, #contact-check-wrap label:after {
    content: "";
    display: block;
    position: absolute;
    box-sizing: border-box;
}

#contact-check-wrap input:checked + label:before {
    border-color: #3B9E3E;
}
#contact-check-wrap.item-disabled input:checked + label:before {
    border-color: rgba(0, 0, 0, 0.2);
}
#contact-check-wrap input:checked + label:after {
    opacity: 1;
}

input[type="text"], input[type="email"], textarea {
    border: 1px solid gray;
    border-radius: 8px;
    width: 350px;
    padding: 13px 15px;
    font-size: 1.8rem;
}

.table_list {
    width: 800px;
    margin: 0 auto;
    text-align: center;
}

dl.table_list dt.list_item_title {
    font-size: 2rem;
    font-weight: bold;
    width: 100%;
    margin-top: 30px;
}

dl.table_list dt.list_item_title span {
    margin-left: 7px;
    color: gray;
    font-size: 1.5rem;
}

dl.table_list .list_item {
    border-bottom: none;
}

dl.table_list dd {
    padding: 5px;
    margin-top: 5px;
}

.radio-area {
    display: inline-block;
    border: none;
}

.radio-area label {
    display: flex;
    align-items: center;
    gap: 0 .5em;
    position: relative;
    width: 350px;
    margin: 0 auto;
    margin-bottom: .4em;
    padding: 13px 15px;
    border: 1px solid #3B9E3E;
    border-radius: 3px;
    background-color: #d6f9d7;
    cursor: pointer;
    font-size: 1.8rem;
}

.radio-area.item-disabled label {
    background-color: #e4e4e4;
    border-color: #e4e4e4;
    cursor: default;
}


.radio-area p {
    width: 350px;
    text-align: start;
    margin-bottom: 10px;
}

.radio-area label:has(:checked) {
    background-color: #3B9E3E;
    color: #fff;
}

.radio-area.item-disabled label:has(:checked) {
    background-color: #e4e4e4;
    color: black;
}

.radio-area label::before,
.radio-area label:has(:checked)::after {
    border-radius: 50%;
    content: '';
}

.radio-area label::before {
    width: 14px;
    height: 14px;
    background-color: #fff;
}

.radio-area label:has(:checked)::after {
    position: absolute;
    top: 50%;
    left: calc(7px + 1.5rem);
    transform: translate(-50%, -50%);
    width: 7px;
    height: 7px;
    background-color: #3B9E3E;
}

.required-item::after {
    content: '※必須';
    margin-left: 7px;
    font-size: 1.5rem;
    line-height: 1.5rem;
    color: red;
}

.button_area button:nth-child(1) {
    margin-right: 15px;
}
.button_area button:nth-child(n+2) {
    margin-left: 15px;
}

#content-top button {
    width: 170px;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    border-radius: 12px;
    border-style: none;
    background-color: #3B9E3E;
    padding: 10px 0;
    cursor: pointer;
    transition: all .3s cubic-bezier(.645,.045,.355,1);
    margin-top: 20px;
    margin-bottom: 30px;
}

#content-top button.button_back {
    background-color: gray;
}

#content-top button:focus-visible, #content-top button:hover {
    opacity: 0.8;
}

.item-disabled input, .item-disabled textarea {
    background-color: #e4e4e4;
    color: gray;
}

.comp_msg p {
    padding-top: 8px;
}

#transfer-area {
    width: 60%;
    margin: 40px auto;
    background-color: #eeeeee;
    padding: 30px 20px;
    margin-bottom: 5px;
}

#donation_desc {
    background-color: #e4e4e4;
    width: 500px;
    padding: 30px;
    font-size: 1.7rem;
    margin: 0 auto;
    border-radius: 20px;
    line-height: 2.5rem;
}


@media screen and (max-width: 1000px){
    #donation_desc {
        width: 75%;
        margin: 0 auto;
    }
    .radio-area {
        display: block;
    }
    .table_list {
        width: auto;
    }
    dl.table_list dt.list_item_title {
        width: auto;
    }
    .radio-area label:has(:checked)::after {
        left: 22px;
    }
    .radio-area label {
        width: 90%;
    }
    .radio-area p {
        font-size: 1.6rem;
        padding-left: 3px;
    }
    input[type="text"], input[type="email"], textarea {
        width: 90%;
    }
    .button_top_text {
        font-size: 1.8rem;
    }
    #content-top button {
        font-size: 2.5rem;
    }
}