@charset "Shift_JIS";

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

.Main .heading1-v2--center + * {
    margin-top: 4rem !important;
}

/* 新規お借入れシミュレーション */
.simulation-box {
    width: 100%;
    margin-bottom: 6rem;
}

.calculation-box .inner {
    background-color: #a0d8ef;
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 30px;
}

.calculation-box .inner h3 {
    margin: 7px 0 15px 12px;
    font-size: 1.8rem;
    font-weight: bold;
}

.calculation-box__content {
    background-color: #fff;
    padding: 40px 60px;
}

.calculation-box__title {
    font-size: 2.4rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.calculation-box__content__item {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 40px;
}

.calculation-box__content__item:last-child {
    margin-bottom: 0;
}

.calculation-box__content__item__label {
    flex: 1;
    position: relative;
    font-size: 2rem;
    letter-spacing: 0.05em;
    min-width: 220px;
    font-weight: bold;
}

.required-badge {
    position: absolute;
    top: 50%;
    right: 12px;
    color: #fff;
    background-color: #d32700;
    font-size: 1.6rem;
    letter-spacing: 0.05em;
    padding: 6px 8px;
    border-radius: 5px;
    line-height: 1;
    margin-top: -16px;
}

.hikaku-box .required-badge {
    background-color: #ccc;
    color: #000;
}

.form-label {
    display: none;
}

.form-input {
    background-color: #f0f0f0;
    padding: 0px 15px;
    border-radius: 5px;
    font-size: 3.6rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    border: none;
    text-align: center;
    max-width: 300px;
    min-height: 70px;
}

.select-inner {
    position: relative;
}

.select-inner::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 2px solid #000;
    border-bottom: 2px solid #000;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
}

.form-select {
    padding-right: 30px;
    appearance: none;
    -webkit-appearance: none;
    background-color: #f0f0f0;
    border: none;
    padding: 10px 30px 10px 30px;
    border-radius: 5px;
    font-size: 1.6rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    max-width: 360px;
    min-height: 60px;
}

.year-select {
    font-size: 2.8rem;
    text-align: center;
    min-width: 150px;
}

.year-select option {
    font-size: 1.4rem;
}

.form-input__unit {
    font-size: 2rem;
    font-weight: bold;
    align-self: flex-end;
    padding-bottom: 3px;
}

.calculation-box__content__item__input {
    flex: 1.5;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.calculation-box__content__item__kome {
    flex: 1.5;
    padding-left: 10px;
}

/* 計算結果 */
.calculation-box__result {
    display: none;
}

.calculation-box__result--inner {
    background-color: #fff1e0;
    padding: 30px;
    position: relative;
    margin: 120px 0 100px 0;
}

.calculation-box__result h3 {
    letter-spacing: 0.05em;
    text-align: center;
    font-size: 2.8rem;
    font-weight: bold;
}

.calculation-box__result__content > span {
    display: inline-block;
    margin-right: 5px;
}

.calculation-box__result--inner::before, .calculation-box__result--inner::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 50px 60px 0 60px;
    border-color: #f08300 transparent transparent transparent;
}

.calculation-box__result--inner::before {
    top: -80px;
}

.calculation-box__result--inner::after {
    bottom: -80px;
}

.calculation-result {
    width: 100%;
}

.result-header {
    display: flex;
    width: 100%;
    font-size: 1.9rem;
}

.result-header-cell {
    flex: 1;
    padding: 15px;
    border: 1px solid #ccc;
    text-align: center;
    background-color: #a0d8ef;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    font-weight: bold;
}

.result-row {
    display: flex;
    width: 100%;
}

.result-cell {
    flex: 1;
    padding: 15px;
    border: 1px solid #ccc;
    text-align: center;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.result-header-cell.empty {
    min-width: 401px;
}

.error-message {
    color: #ff0000;
    font-size: 1.4rem;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 3px;
    font-weight: bold;
    display: none;
}

.button-v2 .button-v2__type {
    padding: .8em 22px .8em 22px;
    font-size: 1.8rem;
}
.button-v2 .button-v2__type:after {
    display: none;
}

/* 注意事項 */
.simulation-notice .heading3 {
    padding: 1.5em 1.5em;
    margin-top: 0;
}

.simulation-notice .heading3__title {
    font-size: 2.2rem;
}

.simulation-notice .list-wrap {
    padding: 0 20px;
}

/* SP */
@media only screen and (max-width: 767.98px) {
    .heading1-v2--center + p {
        margin: 3rem 15px 0 15px !important;
    }

    .simulation-box {
        margin-bottom: 4rem;
    }

    .calculation-box .inner h3 {
        margin: 7px 12px 15px 12px;
        padding-left: 1.5em;
        text-indent: -1.5em;
    }

    .calculation-box__content {
        padding: 20px;
    }

    .calculation-box__content__item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
        margin-bottom: 30px;
    }

    .form-input {
        width: 75%;
        min-height: 60px;
    }

    .required-badge {
        position: relative;
        margin-left: 15px;
        top: -3px;
        font-size: 1.2rem;
        padding: 3px 8px;
    }

    .calculation-box__content__item__kome {
        padding-left: 0;
    }

    .form-select {
        width: 100%;
    }

    #loan-special-interest-rate {
        font-size: 1.4rem;
        padding: 10px 30px 10px 14px;
    }

    .calculation-box__content__item__label {
        font-size: 1.7rem;
    }
    
    .order-reverse .calculation-box__content__item__label {
        order: 1;
    }

    .order-reverse .calculation-box__content__item__input {
        order: 3;
    }

    .error-message {
        position: relative;
        margin-bottom: 0;
    }

    .order-reverse .calculation-box__content__item__kome {
        order: 2;
    }

    /* 計算結果 */
    .calculation-box__result--inner {
        margin: 100px 0 100px 0;
        padding: 20px 10px;
    }

    .calculation-box__result--inner::before, .calculation-box__result--inner::after {
        border-width: 40px 50px 0 50px;
    }

    .calculation-box__result--inner::before {
        top: -70px;
    }
    
    .calculation-box__result--inner::after {
        bottom: -70px;
    }

    .result-header-cell.empty {
        display: none;
    }

    .result-row {
        flex-direction: column;
    }

    .result-header-cell, .result-cell {
        padding: 10px 5px;
        word-break: break-all;
        font-size: 1.4rem;
    }

    .calculation-box__content__item__input {
        width: 100%;
        flex-wrap: wrap;
    }

    .calculation-box__result h3 {
        font-size: 2.3rem;
    }


    /* 注意事項 */
    .simulation-notice .heading3 {
        padding: 1em .8em;
    }

    .simulation-notice .heading3__title {
        font-size: 1.8rem;
    }

    .simulation-notice .list-wrap {
        padding: 0 10px;
    }

}

.form-input-item{
    display: flex;
    gap: 0.5em;
    position: relative;
}
.form-input.size01{
    max-width: 5em;
    font-size: 2.8rem;
    min-height: 60px;
    padding: 10px 15px;
}
.nowarp{
    word-break: keep-all;
}

.result-box {
    margin-top: 2em;
}
.result-box.box02 {
    position: relative;
    padding-top: 70px;
}
.result-box.box02::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    top: 0;
    border-style: solid;
    border-width: 50px 60px 0 60px;
    border-color: #f08300 transparent transparent transparent;
}
.result-box .result-header-cell{
    border-color: #a0d8ef;
    justify-content: flex-start;
}
.result-box .result-content{
    border: 2px solid #a0d8ef;
    background: #fff;
    padding: 15px;
}
.result-box .result-row{
    max-width: 750px;
    margin: 0 auto;
}
.result-box .result-row:nth-child(n+2){
    margin-top: 1.5em;
}
.result-row-flex{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.result-row-flex__caption{
    font-size: 2rem;
    font-weight: bold;
}
.result-row-flex__value{
    flex: 1 1;
    text-align: right;
}
.result-value-item{
    font-size: 2.3rem;
    font-weight: bold;
}
.result-value-item.result-value-yen > span,
.result-value-item.result-value-percent > span{
    padding: 0;
    background: none;
    color: inherit;
}
.result-value-item .value{
    font-size: 4rem;
    display: inline-block;
    margin-right: 5px;
}
.result-table{
    border: 2px solid #a0d8ef;
    margin: 0 auto 2em;
}
.result-table-header{
    border-bottom: 2px solid #a0d8ef;
    padding: 0.5em 1em;
    font-weight: bold;
}
.result-table-body{
    padding: 1em 0;
    font-weight: bold;
}
.result-table table{
    width: 100%;
}
.result-table table th,
.result-table table td{
    padding: 0.5em 1em;
}

.calculation-box__result__total{
    text-align: center;
    font-size:3.5rem;
    font-weight: bold;
    margin-top: 0.5em;
}
.calculation-box__result__total .value{
    font-size: 130%;
}
.calculation-box__result__total:after{
    content:"増加";
}
.calculation-box__result__total.absoluteNum{
    color: #d32700;
}
.calculation-box__result__total.absoluteNum:after{
    content:"軽減";
}
.error-message{
    white-space: nowrap;
}
.item_multi .calculation-box__content__item__input{
    flex:2;
    gap: 15px;
}
.item_multi .calculation-box__content__item__kome{
    flex:1;
}
.select-wrapper.size02 .select-inner {
    width: 200px;
    max-width: 100%;
}
.select-wrapper.size02 select{
    width: 100%;
}
.year-select-wrap {
    display: flex;
    gap: 0.5em;
}
.note01{
    margin-right: -40px;
}
@media only screen and (max-width: 767.98px) {
    .form-input-item{
        flex-wrap: wrap;
        width: 100%;
    }
    .form-input.size01{
        max-width: 300px;
    }
    .result-box .result-header-cell{
        padding: 10px;
    }
    .result-row-flex__caption{
        font-size: 1.4rem;
    }
    .result-box .result-row{
        flex-direction: row;
    }
    .result-box .result-content{
        padding: 20px 10px;
    }
    .result-value-item {
        font-size: 1em;
    }
    .result-value-item .value {
        font-size: 1.3em;
    }
    .calculation-box__result__total{
        font-size:2rem;
    }
    .error-message{
        width: 100%;
        bottom: auto;
        white-space: normal;
    }
    .select-wrapper.size02{
        width: 100%;
    }
    .select-wrapper.size02 .select-inner {
        max-width: 75%;
        width: 300px;
    }
    .result-box.box02::before{
        border-width: 40px 50px 0 50px;
    }
    .year-select-wrap {
        max-width: 150px;
    }
    .note01{
        margin-right: 0;
    }
}
p.inr-box-ttl {
    margin: 1em;
}