:root {
    --color-application-breadcrumbs: #fdf4ce;
    --color-application-breadcrumbs-current: #f7ca0d;
    --color-attention: #e74c3c;
}

.attention {
    color: var(--color-attention);
 }

.caution-icon {
    width: 1.2em;
    height: auto;
    position: relative;
    top: 4px;
    margin-right: 5px;
}

#application-header {
    height: auto;
    min-height: auto;
    padding-top: 80px;
}

#breadcrumbs ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    margin-right: 30px;
    gap: 40px;
}

#breadcrumbs ul li {
    width: calc(33% - 30px);
    position: relative;
    display: grid;
    /* grid-template-columns: 1fr 50px; */
    text-align: center;
    align-items: center;;
    height: 50px;
    background: var(--color-application-breadcrumbs);
    font-size: 18px;
    letter-spacing: 3px;
}

#breadcrumbs ul li:after {
    display: block;
    position: absolute;
    content: '';
    height: 50px;
    width: 30px;
    clip-path: polygon(0 0, 100% 50%, 0 100%);
    background: var(--color-application-breadcrumbs);
    top: 0;
    right: -29px;
}

#breadcrumbs ul li .breadcrumbs-label {
    position: relative;
    left: 7px;
}

#breadcrumbs ul li span {
    display: inline-block;
}

#breadcrumbs ul li.current,
#breadcrumbs ul li.current:after {
    background: var(--color-application-breadcrumbs-current);
}

#form-wrap {
    margin: 0 auto;
}

#form-wrap input,
#form-wrap select,
#form-wrap textarea {
    border: 1px solid #717171;
    font-family: var(--font-family-gothic);
    padding: 3px;
}

#form-wrap input[type="radio"] {
    margin-right: 5px;
}

.long {
    width: 300px;
}

.middle {
    width: 200px;
}

#form-wrap .form-header-label {
    margin: 3em 0 1.5rem 0;
}

#form-wrap .form-header-attention {
    display: flex;
    margin-bottom:1.5rem;
}

#form-wrap .form-header-attention .caution-icon-wrap {
    flex-shrink: 0;
}

#form-wrap .form-notes {
    font-size: 14px;
    line-height: 1.8;
    padding: 1em;
    border: 2px solid var(--color-attention);
    margin-bottom: 30px;
    border-radius: 5px;
}

#form-wrap .form-notes-list {
    padding-left: 1.75em;
    list-style: '※';
    line-height: 1.5;
}

#form-wrap .form-notes .attention-text {
    font-size: 1.4em;
    font-weight: bold;
}

#form-wrap .form-notes .attention-text-normal-size {
    font-size: 1em;
}

#form-wrap .form-notes-list li:nth-child(n+2) {
    margin-top: .7em;
}

#form-wrap .form-notes-list .attention {
    color: var(--color-contents-dark-red);
}

#form-wrap .label-required {
    font-family: var(--font-family-gothic);
    font-size: 14px;
    color: #fff;
    padding: 3px 10px;
    background: #dd0934;
}

#form-wrap .letter-type {
    background: #fee7ec;
    display: inline-flex;
    align-items: center;
    margin-left: 1em;
    padding: 3px;
    position: relative;
    font-family: var(--font-family-gothic);
}


#form-wrap .row.focus .letter-type {
    left: 10px;
}

#form-wrap .field-note {
    margin-left: 2em;
}

#form-wrap .zip {
    width: 80px !important;
    inputmode: numeric;
}

#form-wrap .row.required .label:before{
    content: '必須';
    font-family: var(--font-family-gothic);
    font-size: 14px;
    color: #fff;
    padding: 3px 10px;
    background: #dd0934;
    margin-right: 1em;;
}

#fields-table {
    border: 1px solid #D5D5D5;
    font-size: 14px;
}

#fields-table tr td {
    padding: 10px;
    vertical-align: middle;
    border-bottom: 1px dotted #aaa;
}

#fields-table tr td.fields > :nth-child(n+2) {
    margin-top: 1em;
}

#fields-table tr td.fields .field-content {
    padding: 10px;
}

#fields-table tr td.fields .field-content > :nth-child(n+2) {
    padding-left: 10px;
}

#fields-table .sub-table {
    width: 100%;
}

#fields-table .sub-table tr:last-child td {
    border-bottom: none;
}

#fields-table .mark {
    width: 80px;
    background: #F7CA0D;
    text-align: center;
}

#fields-table .label {
    width: 200px;
    background: #FDF4CE;
    line-height: 1.4;
}

#fields-table .address td {
    border-bottom: none;
}

.sub-table td:first-child {
    width: 180px;
}

.sub-table.address td:first-child {
    width: 120px;
}

.field-phone .fields {
    display: flex;
    align-items: center;
}

.field-phone .fields .note {
    padding-left: .5em;
}

@media screen and (min-width: 641px) {
    .content-header h1 img {
        height: unset;
        width: unset;
    }
}

@media screen and (max-width: 768px) {
    .field-phone .fields {
        flex-direction: column;
        align-items: flex-start;
    }
    .field-phone .fields input {
        margin-bottom: 0 !important;
    }
}

/*--------------------------------------
  個人情報の取り扱いについて
*/

#privacy-policy h3 {
    text-align: left;
    border-bottom: 1px solid #000;
}

#privacy-policy h4 {
    margin-bottom: 1em;
}

#privacy-policy li {
    margin-top: .7em;
}

#privacy-policy #privacy-text > :nth-child(n+2) {
    margin-top: 2em;
}

#privacy-text {
    width: 1160px;
    max-width: 100%;;
    height: 200px;
    font-size: 14px;
    border: 1px solid #CCC;
    padding: 20px;
    overflow: scroll;
    line-height: 1.5;
    resize: both;
}

#privacy-policy ul,
#privacy-policy ol {
    padding-left: 2em;
}


#privacy-text ol>li {
    margin-bottom: .5em;
}

#privacy-text ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-top: .3em;
}

#privacy-text .privacy-attention ul {
    list-style: '※';
}

#privacy-text .rules-lead {
    padding: 0 0 2em 1em;
}

#form-buttons {
    margin: 35px auto 15px;
    text-align: center;
}

#form-buttons .confirm-wrap {
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-bottom: 1em;
}

#form-buttons .confirm-wrap :hover {
    cursor: pointer;
}

#form-buttons.consent-required .submit-wrap {
    cursor: not-allowed;
}

#form-buttons .submit {
    width: 50%;
    font-size: 26px;
    letter-spacing: 2px;
    background: #FFE83F;
    padding: 12px;
    color: #000;
}

#form-buttons.consent-required .submit {
    opacity: .6;
    pointer-events: none;
}


.confirm #form-buttons {
    display: flex;
    justify-content: center;
    gap: 3em;
}

.confirm #form-buttons button {
    width: 30%;
}

.confirm #form-buttons button.back {
    background: #FDF4CE;
    font-size: 26px;
    letter-spacing: 2px;
    padding: 12px;
    color: #000;
}

#form-buttons.consent-required:has( #confirm-checkbox:checked) .submit-wrap {
    cursor: pointer;
}

#form-buttons.consent-required:has( #confirm-checkbox:checked) .submit {
    opacity: 1;
    pointer-events: auto;
}

.confirm .form-header-label,
.complete .form-header-label {
    text-align: center;
}

.confirm .attention {
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2em;
}

.confirm .attention img {
    width: 24px;
    height: auto;
    padding-right: .25em;;
}

@media screen and (max-width:900px) {
    #breadcrumbs ul {
        gap: 0;
    }
    #breadcrumbs ul li {
        letter-spacing: 0;
        font-size: 13px;
    }

    #form-wrap input[type="text"]:not(.zip),
    #form-wrap input[type="email"],
    #form-wrap input[type="tel"],
    #form-wrap textarea {
        display: block;
        margin-bottom: 0.5em;
    }

    #form-wrap .letter-type {
        margin-left: 0;
    }

    #form-wrap .sub-table tr {
        display: flex;
        flex-wrap: wrap;
    }
    
    #form-wrap .sub-table td {
        width: 100%;
    }


    #fields-table .address td {
        border-bottom: 1px dotted #aaa;
    }

}

@media screen and (max-width:639px) {

    #application-header {
        padding-bottom: 0;
    }
    #breadcrumbs ul li {
        letter-spacing: 0;
        font-size: 13px;
        width: calc(33% - 25px);
    }

    #form-wrap input[type="text"],
    #form-wrap input[type="email"],
    #form-wrap input[type="tel"],
    #form-wrap textarea {
        width: 100%;
        margin-bottom: 0.5em;
    }

    #fields-table tr {
        display: flex;
        flex-wrap: wrap;
    }

    #fields-table .address tr td:first-child {
        width: 27%;
    }

    #fields-table .address tr td:last-child {
        width: 73%;
    }

    #fields-table .mark {
        width: 20%;
        display: grid;
        place-items: center;
    }
    #fields-table .label {
        width: 80%;
        text-align: center;
    }
    #fields-table .fields {
        width: 100%;
    }

    #form-buttons .submit {
        width: 100%;
        font-size: 16px;
    }

    .confirm #form-buttons {
        flex-direction: column;
        gap: 1.5em;
        align-items: center;
    }
    
    .confirm #form-buttons button {
        width: 100%;
    }
    .confirm #form-buttons button.back {
        font-size: 16px;
    }

}



/*--------------------------------------
  送信完了ページ
*/
.complete-message {
    text-align: center;
    font-size: 17px;
    font-weight: bold;
    margin: 0 auto 2em auto;
}

.complete-message.sub-message {
    color: #000;
    text-align: center;
    letter-spacing: -.5px;
}

.complete-message.sub-message .attention-text-wrap {
    margin: 1em auto .5em auto !important;
}

.complete-message.sub-message .attention-text-no-wave,
.complete-message.sub-message .attention-text {
    font-size: 1.1em;
}

.attention-text {
    color: var(--color-attention);
    font-weight: bold;
    background: url(../img/application/wave-line-red.png) repeat-x left bottom;
    padding-bottom: 5px;
    line-height: 1.75em;
}

.attention-text-no-wave {
    color: var(--color-attention);
    font-weight: bold;
    padding-bottom: 5px;
    line-height: 1.75em;

}