@charset "UTF-8";
main {
    font-size:min(2vw,1.8rem);
}

.kome {
    font-size: 90%;
    color: #777;
    text-indent: -1.2em;
    padding-left: 1.2em;
    margin-top: 0.5em;
}

.kome:before {
    content: "※";
    margin-right: 0.2em;
}

h3 {
    text-align: center;
    font-size: 110%;
    position: relative;
    margin-bottom: 2em;
}

h3:after {
    content: "";
    display: block;
    position: absolute;
    bottom: -0.5em;
    left: 50%;
    transform: translateX(-50%);
    height: 2px;
    width: 50px;
    background-color: var(--accent-color);
}

.h3_txt {
    text-align: center;
}

.kihon {
    margin: 3vw 0;
}

.price_txt {
    text-align: center;
    font-size: 3.5rem;
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.05em;
    margin-bottom: 2rem;
}

.price_txt span {
    font-size: 7rem;
    margin: 0 0.1em 0.2em 0.2em;
    color: var(--main-color);
}

.kihon_txt {
    text-align: center;
}

.mt0{margin-top: 0!important}
.mt05{margin-top: 0.5em!important}
.mt1em{margin-top: 1em!important}
.mt2em{margin-top: 2em!important}
.mb05em{margin-bottom: 0.5em!important}
.mb1em{margin-bottom: 1em!important}
.mb2em{margin-bottom: 2em!important}
.ml1em{margin-left: 1em!important}

.normal_table {
    border-spacing: 0;
    width: 80%;
    margin: 0 auto;
}
.normal_table p {margin: 0}
.normal_table.vam td {vertical-align: middle;}
.normal_table .bgy {background-color: #ffe}

.normal_table .w10 {width: 10%}
.normal_table .w20 {width: 20%}
.normal_table .w25 {width: 25%}
.normal_table .w30 {width: 30%}
.normal_table .w35 {width: 35%}
.normal_table .w40 {width: 40%}
.normal_table .w50 {width: 50%}
.normal_table .w60 {width: 60%}
.normal_table .w70 {width: 70%}
.normal_table .w80 {width: 80%}
.normal_table .w90 {width: 90%}

.normal_table .tac {text-align: center}
.normal_table .tar {text-align: right}
.normal_table .taj {text-align: justify}

.normal_table th,.normal_table td {
    border: 1px solid #aaa;
    background-color: white;
    padding: 1em;
}

.normal_table.small th,.normal_table.small td {
    padding: 0.5em;
    line-height: 1.5;
}

.normal_table th {
    text-align: center;
    vertical-align: middle;
    background-color: #98d6d4;
}

.normal_table thead th:not(:first-child) {
    background-color: #cbe6e4;
}

.normal_table tbody tr:nth-child(2n) td {
    background-color: #f9f9f9;
}

.normal_table tbody tr td:nth-child(2) {
    font-weight: bold;
    color: var(--accent-color);
}

.normal_table tbody tr td:nth-child(2) span {
    font-size: 120%;
}

.normal_table .txt {
    text-align: justify;
    line-height: 1.5;
}

.normal_table .txt span {
    font-weight: bold;
    color: var(--accent-color);
}

.kasan {
    background-color: var(--bg-color);
    padding: 2em;
    width: 80%;
    margin: 3vw auto;
}

.kasan ol li {
    text-indent: -1.2em;
    padding-left: 1.2em;
    line-height: 1.7;
    text-align: justify;
}

.kasan ol li span {
    color: var(--accent-color);
    margin-right: 0.2em;
}

.kasan ol li:not(:last-of-type) {
    margin-bottom: 0.5em;
}

.border_box {
    border: 1px solid #ddd;
    padding: 2em;
    width: 80%;
    margin: 0 auto;
}

.border_box ul li {
    text-indent: -1.2em;
    padding-left: 1.2em;
    line-height: 1.7;
    text-align: justify;
    font-size: 90%;
}

.border_box ul li:not(:last-of-type) {
    margin-bottom: 0.5em; 
}

.border_box ul li:before {
    content: "※";
    margin-right: 0.2em;
}

@media screen and (max-width: 767px) {
    main {
        font-size: min(3vw, 1.5rem);
    }
    
    .price_txt {
        font-size: 1.8rem;
    }

    .price_txt span {
        font-size: 5rem;
    }
    
    .normal_table  {
        width: 100%;
    }
    
    .kasan {
        width: 100%;
        margin: 10vw auto;
    }
    
    .border_box {
        width: 100%;
    }
}

#simulation {
    width: 90%;
    margin: 0 auto;
}

#simulation table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

#simulation table th,#simulation table td {
    font-size: 1.6rem;
    padding: 30px;
    background: #ddd;
    border: 2px solid #fff;
    box-sizing: border-box;
    line-height: 1.5;
}

#simulation table th {
    background: #529cc6;
    color: white;
    width: 50%;
    text-align: center;
}

#simulation table th span {
    display: block;
    font-weight: normal;
    font-size: 1.5rem;
}

#simulation table td {
    background: #fafaf5;
}

#simulation table .total {
    padding: 0.5em;
    font-size: 1.8rem;
    text-align: right;
    width: 15em;
    border-radius: 5px;
    border: 1px solid #ddd;
    background-color: white;
}

#simulation table .total:focus {
    border: 1px solid #036eb8;
    outline: 0;
}
#simulation table .spouse_radio label:first-child {
    margin-right: 20px;
}

#simulation table .ratio {
    padding: 0.5em;
    width: 5em;
    font-size: 1.8rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: white;
}

#simulation table .ratio:focus {
    border: 1px solid #036eb8;
    outline: 0;
}
#simulation table .heir_radio label {
    display: inline-block;
}
#simulation table .heir_radio label:not(:last-child) {
    margin-right: 20px;
}

#simulation table .nop select {
    padding: 0.5em;
    width: 10em;
    font-size: 1.8rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    background: white;
}

#simulation table .nop select:focus {
    border: 1px solid #036eb8;
    outline: 0;
}

#simulation .approximate_box {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

#simulation .approximate_box .approximate {
    width: calc(50% - 25px);
    border: 1px solid var(--main-color);
    background-color: white;
}

#simulation .approximate_box .approximate:nth-child(2) {
    margin-left: 50px;
    border: 1px solid var(--accent-color);
    position: relative;
}

#simulation .approximate_box .approximate:nth-child(2):before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 20px 0 20px 25px;
    border-color: transparent transparent transparent #f7ccc0;
    position: absolute;
    top: 50%;
    left: -35px;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

#simulation .approximate_box .approximate p {
    text-align: center;
    background: var(--main-color);
    font-size: 2rem;
    color: white;
    padding: 0.3em 1em;
    font-weight: bold;
    letter-spacing: 2px;
    line-height: 1.5;
}

#simulation .approximate_box .approximate:nth-child(2) p {
    background: var(--accent-color);
}

#simulation .approximate_box .approximate .tax_box {
    display: flex;
    padding: 10px;
    justify-content: center;
    align-items: baseline;
    line-height: 1.5;
}

#simulation .approximate_box .approximate .tax_box div {
    font-size: 50px;
}

#simulation .approximate_box .approximate .tax_box span {
    font-size: 18px;
    margin-left: 5px;
}

.caution {
    font-size: 1.6rem;
    margin-top: 1.5em;
    line-height: 1.5;
}

.caution a {
    color: var(--main-color);
    font-weight: bold;
    margin: 0 5px;
}

.caution a:hover {
    text-decoration: underline;
}

@media all and (max-width: 767px) {
    #simulation {
        width: 100%;
    }
    
    #simulation h3 {
        margin: 40px auto 20px;
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
    
    #simulation table th,
    #simulation table td {
        font-size: 14px;
        padding: 20px 15px;
        display: block;
        border: none;
    }

    #simulation table th {
        width: 100%;
    }

    #simulation table th span {
        font-size: 12px;
    }

    #simulation table .total {
        font-size: 15px;
        width: 13em;
    }

    #simulation table .spouse_radio label:first-child {
        margin-right: 15px;
    }

    #simulation table .ratio {
        font-size: 15px;
    }
    
    #simulation table .heir_radio label {
        display: inline-block;
        line-height: 1.5;
    }

    #simulation table .heir_radio label:not(:last-child) {
        margin-right: 15px;
    }

    #simulation table .nop select {
        font-size: 15px;
    }

    #simulation .approximate_box {
        margin-top: 30px;
        flex-wrap: wrap;
    }

    #simulation .approximate_box .approximate {
        width: 100%;
    }

    #simulation .approximate_box .approximate:nth-child(2) {
        margin-left: 0px;
        border: 1px solid #c30d23;
        position: relative;
        margin-top: 45px;
    }

    #simulation .approximate_box .approximate:nth-child(2):before {
        display: none;
    }

    #simulation .approximate_box .approximate:nth-child(2):after {
        content: "";
        display: block;
        width: 0;
        height: 0;
        border-style: solid;
        border-width: 25px 20px 0 20px;
        border-color: #f7ccc0 transparent transparent transparent;
        position: absolute;
        top: -35px;
        left: 50%;
        transform: translateX(-50%);
        -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
    }

    #simulation .approximate_box .approximate p {
        font-size: 15px;
    }

    #simulation .approximate_box .approximate .tax_box div {
        font-size: 40px;
    }

    #simulation .approximate_box .approximate .tax_box span {
        font-size: 15px;
    }
    
    .caution {
        font-size: 1.3rem;
        text-align: justify;
    }
}