:root {
    --container-max: 1000px;
    --container-min: 320px;
    --est-space: 40px;

    --est-fs_xs: 1rem;
    --est-fs_sm: clamp(1rem, calc(2.6vw * 0.9), 1.2rem);
    --est-fs_txt: clamp(1rem, calc(3vw * 0.9), 1.4rem);
    --est-fs_md: clamp(1rem, calc(3.4vw * 0.9), 1.6rem);
    --est-fs_lg: clamp(1rem, calc(3.8vw * 0.9), 2rem);
    --est-fs_xl: clamp(1rem, calc(4vw * 0.9), 2.4rem);
    --est-fs_xxl: clamp(2rem, calc(4.4vw * 0.9), 2.8rem);
    --est-fs_xxxl: clamp(2rem, calc(5.2vw * 0.9), 3.2rem);
    --est-fs_huge: clamp(3rem, calc(5.6vw * 0.9), 4rem);
    --est-fs_gigantic: clamp(3rem, calc(6.4vw * 0.9), 4.8rem);

    --est-bc_blue: #008da1;
    --est-fc_blue: #007080;
    --est-fc_red: #f46f52;
    --est-bc_lightgray: #eff2f2;

    --transition-normal: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.est-fv {
    padding: clamp(calc(var(--est-space) * 1.5), 5.6%, calc(var(--est-space) * 2)) clamp(calc(var(--est-space) / 3.2), 5.6%, calc(var(--est-space) * 2)) clamp(calc(var(--est-space) / 3.2), 5.6%, calc(var(--est-space) * 2));
    background-color: var(--est-bc_lightgray);
    background-image: url("../images/estimate-sim_fv.webp");
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

.est-fv_wrap {
    display: flex;
    align-items: center;
    gap: clamp(calc(var(--est-space) / 4), 4%, calc(var(--est-space) / 2));
    width: clamp(var(--container-min), 100%, 100%);
    max-width: var(--container-max);
    margin-inline: auto;
}

.est-fv_logo {
    width: clamp(60px, 16vw, 100px);
}

.est-fv_logo img {
    width: 100%;
    vertical-align: bottom;
}

.est-fv_ttl {
    font-family: "source-han-sans-vf", sans-serif;
    font-variation-settings: "wght" 600;
    font-size: var(--est-fs_xxxl);
    color: #00616f;
    line-height: 1.5em;
    letter-spacing: 0.05em;
}

.est-fv_ttl em {
    display: block;
    font-variation-settings: "wght" 800;
    font-size: 120%;
    word-break: keep-all;
}

.est-container {
    font-family: "source-han-sans-vf", sans-serif;
    font-variation-settings: "wght" 600;
    /* 250~900 */
    -webkit-font-smoothing: antialiased;
    font-feature-settings: "palt";
    width: clamp(var(--container-min), 100%, 100%);
    padding: clamp(calc(var(--est-space) / 3.2), 5.6%, calc(var(--est-space) * 2));
    background: var(--est-bc_lightgray);
}

.est-ttl {
    position: relative;
    font-size: var(--est-fs_xxl);
    color: var(--est-fc_blue);
    line-height: 1.2em;
    margin-bottom: clamp(calc(var(--est-space) / 3.2), 7.2%, calc(var(--est-space)* 2));
    word-break: auto-phrase;
}

.est-ttl::before {
    content: "";
    position: absolute;
    top: 50%;
    left: -8.4%;
    transform: translateY(-50%);
    width: clamp(4px, 2%, 8px);
    height: clamp(calc(var(--est-space) * 1.2), 120%, calc(var(--est-space) * 3));
    background: var(--est-bc_blue);
}

.est-subttl {
    font-size: var(--est-fs_xl);
    text-align: center;
    color: var(--est-fc_blue);
    margin-bottom: clamp(calc(var(--est-space) / 3.2), 7.2%, var(--est-space));
}

.est-wrap {
    width: clamp(calc(100% - (7.2% * 2)), 100%, var(--container-max));
    max-width: var(--container-max);
    margin-inline: auto;
    background: #fff;
    border-radius: clamp(calc(var(--est-space) / 2), 6vw, var(--est-space));
    box-shadow: rgba(14, 63, 126, 0.03) 0px 0px 0px 1px, rgba(42, 51, 70, 0.01) 0px 1px 1px -0.5px, rgba(42, 51, 70, 0.02) 0px 2px 2px -1px, rgba(42, 51, 70, 0.02) 0px 3px 3px -1.5px, rgba(42, 51, 70, 0.01) 0px 5px 5px -2.5px, rgba(42, 51, 70, 0.01) 0px 10px 10px -5px, rgba(42, 51, 70, 0.01) 0px 24px 24px -8px;
}
.est-wrap.intermediary .est-amount{
    padding-bottom: 2%;
}
.est-wrap.intermediary .est-result, .est-wrap .est-result.lease, .est-wrap.premium .est-result{
    padding-bottom: 2%;
}

.est-wrap+.est-wrap {
    margin-top: clamp(calc(var(--est-space) / 3.2), 7.2%, var(--est-space));
}

.est-wrap hr {
    width: calc(100% - calc(clamp(calc(var(--est-space) / 3.2), 7.2%, calc(var(--est-space)* 2)) * 2));
    opacity: .3;
}

.est-amount {
    padding: clamp(calc(var(--est-space) / 3.2), 12%, calc(var(--est-space) * 2)) clamp(calc(var(--est-space) / 3.2), 7.2%, calc(var(--est-space) * 2)) clamp(calc(var(--est-space) / 3.2), 7.2%, var(--est-space));
}

.est-amount_ttl {
    font-size: var(--est-fs_lg);
}

.est-amount_inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    align-items: center;
    font-size: var(--est-fs_lg);
}

.est-amount_inner+.est-amount_inner  {
    margin-top: clamp(calc(var(--est-space) / 4), 4%, calc(var(--est-space) / 2));
}

.est-amount_input {
    display: flex;
    align-items: center;
    gap: 12px 4px;
    text-align: right;
}

.est-amount_input_per {
    max-width: clamp(200px, 50vw, 350px);
}

.est-amount_input_month {
    max-width: clamp(80px, 25vw, 176px);
}

.est-amount_input input {
    font-size: var(--est-fs_xl);
    font-family: "source-han-sans-vf", sans-serif;
    font-variation-settings: "wght" 500;
    width: 100%;
    height: clamp(32px, 10vw, 52px);
    padding: 0 clamp(4px, 2vw, 8px) 0 clamp(6px, 2vw, 12px);
    background-color: #f7f7fa;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: rgb(200 200 200 / 6%) 1px 1px 0px 1px inset, rgb(186 186 186 / 7%) 0px 1px 27px -3px inset, rgb(211 211 211 / 5%) 0px -1px 7px 0px inset, rgb(212 212 212 / 0%) 0px 1px 3px -1px inset;
}

.est-amount_input input:last-child {
    margin-right: 0.3em;
}

.est-amount_input input::placeholder {
    font-size: var(--est-fs_md);
    opacity: .3;
}

.est-amount_input input::-webkit-input-placeholder  {
    position: relative;
    top: -7%;
}

.est-amount_input input.error,
.est-amount_input input[type="radio"].error {
    background-color: #fff6f1;
    border: 1px solid #efab90;
}

.est-amount_input_radio {
    gap: 12px;
}

.est-amount_input_radio label {
    display: flex;
    align-items: center;
}

.est-amount_input input[type="radio"] {
    position: relative;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    padding: 0;
    border: 1px solid #d0d0d0;
    border-radius: 50%;
    vertical-align: -1px;
    cursor: pointer;
}

.est-amount_input input[type="radio"]:checked:before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--est-bc_blue);
    content: '';
}

.est-btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "source-han-sans-vf", sans-serif;
    font-variation-settings: "wght" 700;
    font-size: var(--est-fs_lg);
    width: 100%;
    height: clamp(32px, 10vw, 52px);
    margin-inline: auto;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: rgb(141 236 255 / 57%) 1px 1px 4px 1px inset, rgb(0 43 60 / 54%) 0px 1px 9px -3px inset, rgb(0 98 114 / 48%) 0px -1px 2px 0px inset, rgb(0 65 77 / 52%) 0px 1px 3px -1px inset;
    transition: var(--transition-normal);
}

.est-btn:hover {
    box-shadow: none;
    opacity: .9;
}

.est-btn::before,
.est-btn::after {
    content: "";
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

.result {
    position: relative;
}

/* .result::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--est-bc_blue);
    transition: var(--transition-normal);
}

.result.active::after {
    height: 0;
} */

.est-btn_result {
    width: clamp(200px, 60%, 600px);
    color: #fff;
    background: var(--est-bc_blue);
}

/* .open .est-btn_result {
    pointer-events: none;
    color: var(--est-fc_blue);
    background: transparent;
}

.open .est-btn_result:focus-visible {
    outline: unset;
}

.open .est-btn_result span {
    display: none;
} */

.est-btn_result::before {
    background: #fff;
    opacity: .2;
    transform: scale(0.6);
}

.est-btn_result::after {
    font-family: 'Material Icons';
    content: "\e313";
}

/* .open .est-btn_result::before,
.open .est-btn_result::after {
    opacity: 0;
} */

.est-result {
    padding: 0 clamp(calc(var(--est-space) / 3.2), 7.2%, calc(var(--est-space) * 2)) clamp(calc(var(--est-space) / 3.2), 14%, calc(var(--est-space) * 2));
    border-radius: clamp(calc(var(--est-space) / 2), 6vw, var(--est-space));
}

/* .open.est-result {
    padding-top: clamp(calc(var(--est-space) / 3.2), 4%, calc(var(--est-space) * 2));
}

.open.est-result {
    background: #f5f8ff;
} */

.est-result_note {
    font-size: var(--est-fs_txt);
    color: var(--est-fc_red);
    margin-top: clamp(calc(var(--est-space) / 10), 7.2%, calc(var(--est-space) / 5));
}

.est-result_note b {
    font-variation-settings: "wght" 800;
    margin-right: 0.2em;
}

.est-result_wrap {
    display: flex;
    flex-direction: column;
    gap: clamp(calc(var(--est-space) / 3.2), 4%, var(--est-space));
    margin-top: clamp(calc(var(--est-space) / 3.2), 7.2%, var(--est-space));
    padding: clamp(calc(var(--est-space) / 3.2), 4%, var(--est-space));
    padding-bottom: clamp(calc(var(--est-space) / 3.2), 12%, var(--est-space));
    background: #fbfbfb;
    border: 1px solid #eee;
    border-radius: clamp(calc(var(--est-space) / 2.2), 3vw, calc(var(--est-space) / 1.5));
}

.est-result_wrap dl {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    padding: 0 clamp(calc(var(--est-space) / 3.2), 4%, var(--est-space)) clamp(calc(var(--est-space) / 3.2), 2%, var(--est-space));
    border-bottom: 1px solid #eee;
    padding-left: 0;
    padding-right: 0;
}

.est-result_wrap dl:last-child {
    border-bottom: unset;
}

.est-result_wrap dl dt {
    font-size: var(--est-fs_lg);
    color: #999;
}

.est-result_wrap dl dd {
    font-size: var(--est-fs_xxl);
    text-align: right;
    margin-left: auto;
}

.est-result_wrap dl dd small {
    font-size: 70%;
    margin-left: 0.5em;
}

.est-btn_close {
    width: clamp(160px, 65%, 240px);
    margin-top: clamp(-20px, -26px, -26px);
    margin-bottom: clamp(-20px, -26px, -26px);
    color: var(--est-fc_blue);
    background: #fff;
    border: 1px solid var(--est-bc_blue);
    box-shadow: rgb(141 175 255 / 8%) 1px 1px 4px 1px, rgb(0 16 60 / 13%) 0px 1px 16px -4px, rgb(0 29 114 / 17%) 0px -1px 1px -2px, rgb(0 16 77 / 7%) 0px 1px 3px -1px;
}

.est-btn_close::before {
    background: var(--est-bc_blue);
    transform: scale(0.6);
    opacity: .1;
}

.est-btn_close::after {
    font-family: 'Material Icons';
    content: "\e5cd";
}

.est-btn_recalculation {
    display: none;
    width: clamp(120px, 35%, 140px);
    height: clamp(32px, 7vw, 40px);
    font-size: var(--est-fs_txt);
    color: #fff;
    margin: clamp(calc(var(--est-space) / 4), 5%, calc(var(--est-space) / 2)) 0 0 auto;
    background: var(--est-bc_blue);
}

.est-btn_recalculation.active {
    display: flex;
}

.est-btn_recalculation::before {
    background: #fff;
    opacity: .2;
    transform: scale(0.6);
}

.est-btn_recalculation::after {
    font-family: 'Material Icons';
    content: "\e313";
}

footer .copyright{
    padding: 10px 0;
    background: #00616f;
}
footer .copyright span{
    display: block;
    color: #fff;
    font-size: 1rem;
    text-align: center;
}

/* hosoku */
.math{
    width: 40%;
    font-size: 16px;
    line-height: 1.4;
    margin-left: auto;
    color: #808080;
    padding-bottom: 5%;
}
.hosoku{
    display: block;
    font-size: 14px;
    line-height: 1.4;
    width: 52%;
    margin-inline: auto;
    padding-left: 14px;
    text-indent: -14px;
    padding-bottom: 5%;
    color: #808080;
}
.hosoku.txt-center{text-align: center;}
.hosoku.pd-none{
    padding-bottom: 0;
}
.result.active{
    padding-bottom: 3%;
}

@media screen and (max-width: 850px) {
.hosoku {font-size: 10px; width: 90%; line-height: 1.6; padding-bottom: 8%;}
.math {font-size: 12px; width: 235px; margin-left: auto;}
.est-wrap.intermediary .est-result, .est-wrap .est-result.lease, .est-wrap.premium .est-result {padding-bottom: 4%;}
}

/* 20241210 */

.top_wrap dl dt{
    width: 20.5%;
}
.top_wrap dl dd{
    position: relative;
    width: 20%;
}
/* .bottom_wrap dl:first-child dt,.top_wrap dl:first-child dt{
    text-align: right;
} */
.bottom_wrap dl dt{
    width: 20.5%;
    font-size: 16px;
    text-align: center;
}
.bottom_wrap dl dd{
    position: relative;
    width: 20.5%;
    font-size: 2vw;
    letter-spacing: -0.01em;
}
.est-result_wrap dl{
    align-items: center;
}
.collateral-item{
    text-align: center;
    width: 11%!important;
    font-size: 16px!important;
}

.est-result_wrap dl dd small.sp{
    display: none;
}
.collateral .est-result_wrap dl dd small {
    font-size: 50%;
    margin-left: 0.1em;
}
.annotation{
    font-size: 15px;
    margin: 10px 5px 10px 0;
    color: #ff0000;
    text-indent: -15px;
    padding-left: 15px;
    line-height: 1.2;
}
.flex{
    display: flex;
}
.flex p:nth-child(1){
    margin-right: 0.5em;
}

@media screen and (min-width: 1300px){
    .bottom_wrap dl dd{
        font-size: 25px;
    }
}
@media screen and (max-width: 1000px) {
    .bottom_wrap dl,.top_wrap dl{
        display: block;
    }
    .bottom_wrap dl dt,.top_wrap dl dt{
        width: 100%!important;
        font-size: var(--est-fs_lg)!important;
    }
    .bottom_wrap dl dt br,.top_wrap dl dt br{
        display: none;
    }
    .bottom_wrap dl dd,.top_wrap dl dd{
        width: 100%;
        text-align: end;
        font-size: var(--est-fs_xxl);
        margin: 15px 0;
    }
    .bottom_wrap dl:nth-child(1),.top_wrap dl:nth-child(1){
        display: none;
    }
    .est-result_wrap dl dd small.sp{
        display: block;
        position: absolute;
        top: 50%;
        left: 2.5%;
        transform: translateY(-50%);
        color: #999;
    }
    .est-result_wrap dl dd small {
        font-size: 70%;
        margin-left: 0.5em;
    }
    }
    @media screen and (max-width: 660px){
        .annotation {
            font-size: 10px;
            margin: 4px 10px 0 0;
            text-indent: -10px;
            padding-left: 10px;
        }
    }
