body,
.main.miraie-theme-main {
    background-color: white;
}

.openmodale-annual-income,
.openmodale-repayments {
    text-align: center;
    line-height: 21px;
}

.btn-close {
    color: #aaaaaa;
    font-size: 20px;
    text-decoration: none;
    padding: 10px;
    position: absolute;
    right: 0px;
    top: -50px;
}
.btn-close:hover {
    color: #919191;
}
.modale:before {
    content: "";
    display: none;
    background: #00000033;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99992;
}
.opened:before {
    display: block;
}
.opened .modal-dialog {
    -webkit-transform: translate(0, 0);
    -ms-transform: translate(0, 0);
    transform: translateX(-25%);
    top: 30%;
}

.annual-income-container {
    height: calc(100vh - 150px);
    overflow-y: scroll;
}

.opened .modal-dialog.modal-income {
    top: 56%;
    transform: translateY(-50%) translateX(-25%);
}
.modal-dialog {
    padding: 70px 0;
    background: #fefefe;
    border: #333333 solid 0px;
    border-radius: 5px;
    margin-left: -200px;
    text-align: center;
    position: fixed;
    left: 50%;
    top: -100%;
    z-index: 99992;
    width: 1000px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    -webkit-transform: translate(0, -500%);
    -ms-transform: translate(0, -500%);
    transform: translate(0, -500%);
    -webkit-transition: -webkit-transform 0.3s ease-out;
    -moz-transition: -moz-transform 0.3s ease-out;
    -o-transition: -o-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
}

.closemodale-repayments img,
.closemodale-annual-income img {
    width: 32px;
}
.modal-body {
    padding: 20px;
}

.repayments-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.helper-icon-repayments,
.helper-icon-annual-income {
    width: 26px;
    margin-bottom: 12px;
}

.content-text-repayments {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 18px;
    font-weight: 300;
    line-height: 29px;
    letter-spacing: 0em;
    text-align: left;
    color: #333333;
}

.note-text-repayments {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 14px;
    font-weight: 300;
    line-height: 21px;
    letter-spacing: 0em;
    color: #333333;
    text-align: left;
    margin-top: 20px;

    align-self: flex-start;
}

.header-text-repayments,
.header-text-annual-income {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: 0em;
    text-align: center;
    color: #333333;
    margin-bottom: 30px;
}

.loan-container {
    max-width: 1000px;
    margin: 0 auto 50px;
}

.loan-heading-block {
    padding: 76px 0 165px;
}
.loan-heading-block-no-bukken {
    padding: 76px 0 0;
}
.loan-heading-text {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 30px;
    font-weight: 600;
    line-height: 45px;
    letter-spacing: 0em;
    text-align: center;
    color: #000000;
    margin-bottom: 60px;
}

.loan-name-text {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: 0em;
    color: #000000;
    text-align: left;
    margin-bottom: 16px;
}
.loan-info-container {
    display: flex;
    justify-content: space-between;
}
.loan-detail-info-container {
    max-width: 700px;
    margin: auto;
}

.loan-total-price-text {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 12px;
    font-weight: 300;
    line-height: 18px;
    letter-spacing: 0em;
    color: #000000;
    text-align: left;
    margin-top: 14px;
}
.loan-total-price-number {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 30px;
    font-weight: 600;
    line-height: 45px;
    letter-spacing: 0em;
    text-align: left;
    color: #000000;
}
.loan-detail-block {
    display: flex;
    justify-content: space-between;
}

.loan-item-container {
    width: 440px;
    border: 1px solid #d9d9d9;
    padding: 16px;
}
.loan-title-item {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0em;
    color: #000000;
    text-align: left;
}
.loan-price-item {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 18px;
    font-weight: 600;
    line-height: 27px;
    letter-spacing: 0em;
    text-align: right;
    color: #000000;
}

.loan-calculation-container {
    margin-bottom: 60px;
}

.loan-simulation-button-container {
    border-radius: 6px;
    background-color: #85b494;
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    justify-content: center;
    text-align: center;
    max-width: 350px;
    letter-spacing: 0em;
    margin: 0 auto 10px;
    text-align: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
}

.loan-simulation-button img {
    width: 20px;
}
.loan-simulation-button:hover img {
    filter: none !important;
}

.loan-calculation-heading-text {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: 0em;
    text-align: center;
    color: #000000;
    margin-bottom: 60px;
}

.loan-calculation-title {
    display: flex;
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0em;
    text-align: left;
    width: 316px;
    border-width: 1px, 0px, 1px, 0px;
    border-style: solid;
    border-color: #bcc7d0;
    background: #f6f5f0;
    padding: 40px 12px;
}

.loan-calculation-block {
    border-top: 1px solid #bcc7d0;
    display: flex;
}

.loan-calculatoin-choice {
    border-bottom: 1px solid #bcc7d0;
}

.loan-calculation-group {
    display: flex;
    flex-direction: column;
}
.loan-calculation-content,
.loan-checkbox-content {
    display: flex;
    flex: 1;
    gap: 6px;
    align-items: center;
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 14px;
    font-weight: 300;
    line-height: 14px;
    letter-spacing: 0em;
    text-align: left;
}

.loan-calculation-content .input-text {
    width: 162px;
    height: 42px;
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 12px;
    font-weight: 300;
    line-height: 18px;
    margin-left: 26px;
    letter-spacing: 0em;
    text-align: left;

    border-radius: 2px;
    background: #ffffff;
    border: 1px solid #bcc7d0;
}

.loan-calculation-content span {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 14px;
    font-weight: 300;
    line-height: 14px;
    letter-spacing: 0em;
    text-align: left;
}

.loan-checkbox-content {
    gap: 4px;
}

.input-range span {
    margin-left: 10px;
    width: 30px;
}
.loan-cal-checkbox {
    display: inline-block;
    border: solid 1px #d9d9d9;
    border-radius: 2px;
    margin-left: 26px;
    position: relative;
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 14px;
    font-weight: 300;
    line-height: 14px;
    letter-spacing: 0em;
    text-align: left;
}
.loan-cal-checkbox select {
    padding: 10px 14px !important;
    width: 94px;
    height: 34px;
}
.loan-cal-checkbox:before {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    top: 40%;
    right: 0.5em;
    border-bottom: solid 2px #323232;
    border-left: solid 2px #323232;
    transform: rotate(-45deg) translateY(-50%);
    pointer-events: none;
}
/* input */
.value-button {
    display: inline-block;
    border: 1px solid #bcc7d0;
    width: 32px;
    height: 32px;
    margin: 0px;
    text-align: center;
    vertical-align: middle;
    padding: 7px 0;
    background: white;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-size: 16px;
}

.value-button.left {
    border-radius: 2px 0 0 2px;
    /* margin-right: -5px; */
}
.value-button.right {
    border-radius: 0px 2px 2px 0px;
    /* margin-left: -5px; */
}

.value-button:hover {
    cursor: pointer;
}

form #decrease {
    margin-right: -4px;
    border-radius: 8px 0 0 8px;
}

form #increase {
    margin-left: -4px;
    border-radius: 0 8px 8px 0;
}

form #input-wrap {
    margin: 0px;
    padding: 0px;
}

input#number {
    text-align: center;
    border: none;
    border-top: 1px solid #bcc7d0;
    border-bottom: 1px solid #bcc7d0;
    margin: 0px;
    width: 72px;
    height: 32px;
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 16px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: 0em;
    text-align: right;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-range {
    margin-left: 30px;
    display: flex;
    align-items: center;
}

/* range */
.range-slider {
    width: 100%;
}
.range-slider__range {
    -webkit-appearance: none;
    width: calc(100% - (80px));
    height: 10px;
    border-radius: 5px;
    background: #d7dcdf;
    outline: none;
    padding: 0;
    margin: 0;
}
.range-slider__range::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #718eae;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}
.range-slider__range::-webkit-slider-thumb:hover {
    background: #718eae;
}
.range-slider__range:active::-webkit-slider-thumb {
    background: #718eae;
}
.range-slider__range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: #718eae;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}
.range-slider__range::-moz-range-thumb:hover {
    background: #718eae;
}
.range-slider__range:active::-moz-range-thumb {
    background: #718eae;
}
.range-slider__range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 3px #bcc7d0, 0 0 0 4px #718eae;
}
.range-slider__value {
    display: inline-block;
    position: relative;
    width: 60px;
    color: #fff;
    line-height: 20px;
    text-align: center;
    border-radius: 3px;
    background: #2c3e50;
    padding: 5px 10px;
    margin-left: 8px;
}
.range-slider__value:after {
    position: absolute;
    top: 8px;
    left: -7px;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-right: 7px solid #2c3e50;
    border-bottom: 7px solid transparent;
    content: "";
}
::-moz-range-track {
    background: #d7dcdf;
    border: 0;
}
input::-moz-focus-inner,
input::-moz-focus-outer {
    border: 0;
}

.loan-bank-container {
    padding: 60px 120px;
    background-color: #e1efe5;
}

.loan-bank-title {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 20px;
    font-weight: 600;
    line-height: 30px;
    letter-spacing: 0em;
    text-align: center;
    margin-bottom: 24px;
}
.notification-no-bank {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 16px;
    letter-spacing: 0em;
    text-align: center;
}

.bank-name {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 18px;
    font-weight: 300;
    line-height: 27px;
    letter-spacing: 0em;
    text-align: left;
}

.bank-special-name {
    font-family: Hiragino Kaku Gothic ProN;
    font-weight: 700;
    line-height: 27px;
    letter-spacing: 0em;
    text-align: left;
}

.bank-money {
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 24px;
    font-weight: 600;
    line-height: 36px;
    letter-spacing: 0em;
    text-align: right;
    color: #ec8071;
}

.current-money {
    color: #ec8071;
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: 0em;
    text-align: right;
}

.loan-bank-block,
.loan-bank-name-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    max-height: 100%;
    height: 100%;
}

.loan-bank-name-block img {
    max-height: 100%;
    height: 100%;
    max-width: 46px;
}

.loan-bank-block {
    width: 760px;
    height: 80px;
    border-radius: 6px;
    background-color: #ffffff;
    padding: 17px 24px;
    margin-bottom: 8px;
}

.only-mobile {
    display: none;
}

.text-danger {
    color: #ec8071;
    font-size: 16px;
}

.error-message {
    margin-left: 30px;
    color: #d8000c;
    font-size: 14px;
    margin-bottom: 10px;
}
.loan-option-button-container {
    border-radius: 6px;
    background-color: #6F6869;
    font-family: Hiragino Kaku Gothic ProN;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    justify-content: center;
    text-align: center;
    max-width: 350px;
    letter-spacing: 0em;
    margin: 0 auto 60px;
    text-align: center;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 12px 20px;
}

@media screen and (max-width: 1024px) {
    .loan-heading-text {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        letter-spacing: 0em;
        text-align: left;
        margin-bottom: 26px;
    }

    .annual-income-container {
        height: unset;
        overflow: scroll;
    }

    .loan-heading-block {
        padding: 26px 0 36px;
        margin: 0 20px;
    }
    .loan-heading-block-no-bukken {
        padding: 26px 0 36px;
        margin: 0 20px;
    }
    .only-mobile {
        display: block;
    }

    .only-pc {
        display: none;
    }
    .loan-item-container {
        padding: 16px 20px;
        border: 1px solid #ededed;
        border-radius: 6px;
    }

    .loan-item-container p {
        text-align: center;
    }

    .loan-name-text {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        letter-spacing: 0em;
        text-align: center;
        margin-bottom: 14px;
    }

    .loan-total-price-text {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 10px;
        font-weight: 300;
        line-height: 15px;
        letter-spacing: 0em;
        text-align: center;
    }

    .loan-total-price-number {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 20px;
        font-weight: 600;
        line-height: 30px;
        letter-spacing: 0em;
        text-align: center;
    }

    .loan-calculation-heading-text {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        letter-spacing: 0em;
        text-align: center;
        margin-bottom: 20px;
    }
    .loan-info-container {
        justify-content: center;
    }

    .loan-calculation-block {
        flex-direction: column;
        margin-bottom: 24px;
        border: none;
    }

    .loan-calculation-container {
        margin: 0 5px 50px;
    }

    .loan-calculation-title {
        width: 100%;
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        letter-spacing: 0em;
        text-align: left;
        padding: 20px 8px 24px;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        border: none;
    }
    .loan-calculation-content,
    .loan-checkbox-content {
        gap: 6px;
        flex-direction: column;
        align-items: start;
        background: #f6f5f0;
        padding: 0 20px 20px;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }

    .loan-calculation-content {
        flex-direction: row;
        align-items: center;
    }

    .loan-calculation-content .input-text {
        margin-left: 0;
    }

    .loan-checkbox-content {
        flex-direction: row;
        align-items: center;
        gap: 5px;
        padding: 0 0px 20px;
    }

    .closemodale-repayments img,
    .closemodale-annual-income img {
        width: 18px;
    }

    .input-range {
        margin-left: 0px;
    }

    .range-slider__range {
        width: calc(100% - (120px));
    }

    .loan-bank-block {
        width: 100%;
        padding: 21px 14px;
    }

    .input-range span {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 14px;
        font-weight: 300;
        line-height: 14px;
        letter-spacing: 0em;
        text-align: left;
    }

    .income-img {
        width: -webkit-fill-available;
    }

    .btn-close {
        top: -36px;
    }

    .loan-cal-checkbox {
        margin-left: 20px;
        background-color: white;
    }
    .loan-simulation-button-container, .loan-option-button-container {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        letter-spacing: 0em;
        text-align: center;
    }

    .loan-bank-container {
        padding: 20px;
    }

    .loan-bank-title {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        letter-spacing: 0em;
        text-align: center;
    }

    .notification-no-bank {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 14px;
        line-height: 20px;
        letter-spacing: 0em;
        text-align: center;
    }

    .loan-bank-name-block img {
        max-width: 42px;
    }

    .bank-name {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 16px;
        font-weight: 300;
        line-height: 24px;
        letter-spacing: 0em;
        text-align: left;
    }

    .bank-money {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 20px;
        font-weight: 600;
        line-height: 30px;
        letter-spacing: 0em;
        text-align: right;
    }

    .current-money {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        letter-spacing: 0em;
        text-align: right;
    }

    .modal-dialog {
        margin: 0 10px;
        width: calc(100% - 20px);
        right: 0;
        left: unset;
        padding: 36px 40px;
    }
    .opened .modal-dialog {
        top: 50%;
        transform: translateY(-50%);
    }
    .opened .modal-dialog.modal-income {
        top: 50%;
        transform: translateY(-50%);
    }
    .helper-icon-repayments,
    .helper-icon-annual-income {
        width: 16px;
        margin-bottom: 6px;
    }

    .content-text-repayments {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 14px;
        font-weight: 300;
        line-height: 21px;
        letter-spacing: 0em;
        text-align: left;
        margin-bottom: 10px;
    }

    .note-text-repayments {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 12px;
        font-weight: 300;
        line-height: 18px;
        letter-spacing: 0em;
        text-align: left;
        margin-left: 0px;
        margin-top: 10px;
        align-self: flex-start;
    }

    .header-text-repayments,
    .header-text-annual-income {
        font-family: Hiragino Kaku Gothic ProN;
        font-size: 14px;
        font-weight: 600;
        line-height: 21px;
        letter-spacing: 0em;
        text-align: center;
        margin-bottom: 20px;
    }

    .error-message {
        margin-left: 30px;
        margin-top: 10px;
        color: #d8000c;
        font-size: 14px;
    }
    .loan-section-button {
        margin-bottom: 100px;
    }
}
