.popover {
    max-width: 600px;
}

.login {
    text-align: center;
    width: 400px;
    margin: 0 auto;
    padding-bottom: 100px;
}

.login h1 {
    color: #00306D;
    font-weight: bold;
    margin-top: 100px;
    margin-bottom: 30px;
    font-size: 40px;
}

.login h2 {
    font-size: 16px;
    margin-bottom: 30px;
}

.login input:not([type="checkbox"]) {
    background: #EDEDED;
    height: 60px;
    border-radius: 0;
    margin-bottom: 15px;
    border: none;
}

div.form-check {
    text-align: left;
    margin-bottom: 30px;
}

.custom-control-label::after {
    background: #DEDEDE;
}

label.custom-control-label {
    padding-top: 1px;
}

.top-menu {
    text-align: center;
}

.top-menu h1 {
    color: #00306D;
    font-weight: bold;
    margin-top: 100px;
    margin-bottom: 30px;
    font-size: 24px;
    position: relative;
    display: inline-block;
    padding: 0 45px;
}

.top-menu h1:before, .top-menu h1:after {
    content: '';
    position: absolute;
    top: 50%;
    display: inline-block;
    width: 44px;
    height: 2px;
    background-color: #00306D;
    -webkit-transform: rotate(-70deg);
    transform: rotate(-70deg);
}

.top-menu h1:before {
    left: 0;
}

.top-menu h1:after {
    right: 0;
}

.top-menu h2 {
    font-size: 16px;
    margin-bottom: 30px;
}

div.simulations {
    display: flex;
    justify-content: space-between;
    max-width: 950px;
    margin: 0 auto;
    margin-bottom: 120px;
}

div.simulations .simulation img {
    margin-bottom: 15px;
}

div.simulations .simulation h3 {
    color: #00306D;
    font-size: 20px;
    margin-bottom: 13px;
}

/* かんたん計算 */

.container.calc {
    padding: 50px;
    max-width: 710px;
}

.container.calc h1 {
    font-weight: bold;
    font-size: 24px;
    color: #285186;
    margin-bottom: 15px;
}

.container.calc>h2 {
    font-weight: bold;
    font-size: 20px;
    color: #285186;
    margin-bottom: 20px;
    margin-top: 30px;
}

.container.calc h1 img {
    margin-right: 15px;
}

.container.calc .table-wrap {
    border: 1px solid #D4DCE7;
    border-radius: 5px;
    padding: 8px 25px;
}

.container.calc table {
    width: 100%;
}

.container.calc table input:not([type="radio"]) {
    margin: 17px 10px;
}

.container.calc table input[type="radio"] {
    height: 10px;
    margin: 10px 0px 10px 15px;
}

.container.calc table select {
    margin: 17px 10px;
    width: 120px;
    background: #E9EDF3;
    height: 50px;
    border-radius: 0;
    margin-bottom: 15px;
    border: 1px solid #ADBCD1;
    border-radius: 4px;
    font-size: 16px;
}

.container.calc table label {
    font-size: 16px;
}

.container.calc table tr:not(:last-child) {
    border-bottom: 1px solid #D4DCE7;
}

.container.calc table tr td:first-child {
    font-size: 15px;
}

.container.calc table tr td:last-child {
    text-align: right;
}

.container.calc table tr td.title span {
    width: 180px !important;
    text-align: center !important;
    padding: 10px 0;
}

.container.calc table tr td.two-column {
    display: flex;
    zoom: 87%;
}

.container.calc table tr td.two-column input {
    width: 100px !important;
}

.container.calc table tr td.two-column input.small {
    width: 55px !important;
}

.container.calc table tr td:last-child span {
    width: 33px;
    text-align: left;
    display: inline-block;
}

.container.calc table tr td:last-child input:not([type="radio"]) {
    text-align: right;
    font-size: 18px;
    padding-right: 10px;
    width: 120px;
}

input:not([type="checkbox"]):not[type="radio"] {
    height: 40px;
}

table.nowOrFuturePurchase td:first-child {
    width: 200px;
}

table.nowOrFuturePurchase td:first-child img {
    margin-top: 10px;
    width: 130px;
}

table tr td input.small {
    width: 60px !important;
}

div.calc-btn {
    margin: 30px auto 60px;
}

div.result-div {
    background: #E9EDF3;
    border: 1px solid #D4DCE7;
    border-radius: 5px;
    padding: 25px;
    text-align: center;
    margin-bottom: 15px;
}

div.result-div h2 {
    display: inline-block;
    background: #285186;
    color: #fff;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    padding: 7px 25px;
    border-radius: 15px;
    margin-bottom: 25px;
}

div.result-div p {
    font-size: 14px;
    color: #285186;
}

div.result-div p strong {
    font-family: 'Noto Sans CJK JP';
    font-size: 22px;
    margin: 0 2px 0 5px;
    font-weight: bold;
}

div.result-div div.result {
    background: #fff;
    padding: 20px;
    font-size: 15px;
    color: #285186;
}

.simulation div.result-div div.result.head {
    border-bottom: 2px solid #285186;
    padding: 0;
    display: inline-block;
    margin-bottom: 15px;
}

div.result-div div.result.small {
    margin-top: 20px;
    font-size: 13px;
}

div.result-div div.result strong {
    font-family: 'Noto Sans CJK JP';
    font-size: 25px;
    letter-spacing: 1.5px;
    margin: 0 3px 0 7px;
    font-weight: bold;
}

div.result-div div.result.small strong {
    font-size: 20px;
}

#houseType {
    margin: 20px 0;
}

#houseType th {
    text-align: center;
    background: #E9EDF3;
}

#houseType td {
    vertical-align: middle;
}

#inheritanceTax td {
    font-size: 15px;
    font-weight: normal;
    vertical-align: middle;
}

#inheritanceTax td input {
    margin: 0;
}

#inheritanceTax th {
    text-align: center;
    background: #E9EDF3;
    font-size: 15px;
    font-weight: normal;
}

#inheritanceTax tr.total {
    background: #FFF9E4;
}

/* シミュレーション */

.col-sm-6.left {
    zoom: 70%;
}

.container.simulation {
    padding: 40px 0;
    max-width: 1400px !important;
    width: 97%;
    /* zoom: 70%; */
    /* zoomを使うとchartjsに影響が出る */
    overflow-x: scroll;
}

::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

::-webkit-scrollbar-track {
    border-radius: 10px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, .1);
}

::-webkit-scrollbar-thumb {
    background-color: #285186;
    border-radius: 10px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .3);
}

.container.simulation::-webkit-scrollbar {
    position: fixed !important;
    bottom: 0;
}

.container.simulation #form1 {
    min-width: 1400px;
}

.container.simulation .simulationHead {
    display: flex;
    justify-content: space-between;
}

.container.simulation .simulationHead img.help {
    display: none;
}

.container.simulation .simulationHead h1 {
    font-weight: bold;
    font-size: 24px;
    color: #285186;
    margin-bottom: 15px;
}

.container.simulation .simulationHead h1 img {
    margin-right: 10px;
    width: 13px;
}

.container.simulation .cards {
    display: flex;
    display: -ms-flexbox;
    justify-content: space-between;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.container.simulation .cards.simulation {
    margin-top: 25px;
}

.container.simulation .cards.center {
    justify-content: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
}

.container.simulation .cards .card {
    width: 49%;
    border: 1px solid #D4DCE7;
}

.container.simulation .cards .card:first-child {
    margin-left: 7px;
}

.container.simulation .cards.simulation .card {
    width: 100%;
}

.container.simulation .cards.simulation.even .card {
    width: 49%;
}

.container.simulation .cards .card .card-body {
    padding: 10px 15px;
}

.container.simulation .cards .card .card-header {
    font-weight: bold;
    color: #fff;
    text-align: center;
}

.container.simulation .cards .card .card-header.color1 {
    background: #D4DCE7;
}

.container.simulation .cards .card .card-header.color2 {
    background: #93A7C2;
}

.container.simulation .cards .card .card-header.color3 {
    background: #285186;
}

.container.simulation .cards .card table {
    width: 100%;
}

.container.simulation .cards .card table td {
    font-size: 13px;
    padding: 10px 0;
}

.container.simulation .cards .card table.even {
    table-layout: fixed;
}

.container.simulation .cards .card table.even td {
    text-align: left !important;
}

.container.simulation .cards .card table td:last-child {
    text-align: right;
}

.container.simulation .cards .card table img {
    margin-right: 10px;
}

.container.simulation .cards .card table img:not(.hover):not(.toggleAdvanceYearLater) {
    display: none;
}

.toggleAdvanceYearLater {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    margin: 10px auto !important;
}

.arrow-t.down {
    transform: scale(1, -1);
}

.container.simulation .cards .card table img:hover {
    cursor: pointer;
}

.container.simulation .cards .card table tr:not(:last-child) {
    border-bottom: 1px solid #D4DCE7;
}

.container.simulation .cards .card table.even tr {
    border-bottom: none;
}

.container.simulation .cards .card table.even tr td:first-child:not(.normal) {
    display: flex;
    align-items: center;
    border-right: 1px solid #D4DCE7;
}

.container.simulation .cards .card table.even tr td:last-child {
    padding-left: 10px;
}

.container.simulation .cards .card table td input {
    width: 110px;
    text-align: right;
    font-size: 26px;
    font-weight: bold;
}

.container.simulation .cards .card table td input.long {
    width: 100%;
}

.container.simulation .cards .card table td select {
    background: #E9EDF3;
    height: 50px;
    border-radius: 0;
    border: 1px solid #ADBCD1;
    border-radius: 4px;
    width: 100%;
    font-size: 19px;
    font-weight: bold;
}

.container.simulation .cards .card table td span {
    width: 40px;
    display: inline-block;
    text-align: left;
    margin-left: 7px;
}

.container.simulation .cards .card .long table td span {
    width: 60px;
}

.container.simulation .cards .card .long table td span.age_span {
    min-width: 50px;
    max-width: 50px;
    margin-left: 0;
    background: #E9EDF3;
    height: 50px;
    border-radius: 0;
    border: 1px solid #ADBCD1;
    border-radius: 4px;
    font-size: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 17px;
    font-weight: bold;
}

.container.simulation .cards.simulation table {
    table-layout: fixed;
}

.container.simulation .cards.simulation table td:nth-child(odd) {
    text-align: left;
}

.container.simulation .cards.simulation table td:nth-child(even) {
    text-align: right;
}

.container.simulation .cards.simulation table td:nth-child(2) {
    border-right: 1px solid #D4DCE7;
    padding-right: 10px;
}

.container.simulation .cards.simulation table td:nth-child(3) {
    padding-left: 10px;
}

table.simulation input {
    margin-bottom: 0;
}

table.simulation tr:nth-child(even) {
    background: #E9EDF3;
}

table.simulation th, table.simulation td {
    font-size: 12px;
    font-weight: normal;
    vertical-align: middle;
    color: #285186;
}

table.simulation th.color1 {
    background: #93A7C2 !important;
    color: #fff;
}

table.simulation th.color2 {
    background: #285186 !important;
    color: #fff;
}

table.simulation td:not(:first-child) {
    text-align: right;
}

table.simulation.center td {
    text-align: center;
}

/* 住宅ローン比較 */

.card.housing {
    border: none !important;
}

.card.housing .card-body {
    border: 1px solid #D4DCE7;
}

.card.housing .card-header {
    width: 50%;
}

.loan-copy {
    position: absolute;
    right: 0;
    top: 60px;
    z-index: 1;
}

.result-div .nav-tabs .nav-link {
    border-radius: 0;
    border: none;
    border-top: 4px solid #C9D3E0;
    min-width: 168px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #93A7C2;
}

.result-div .nav-tabs .nav-link.active {
    border-top: 4px solid #285186;
    background: #fff;
    color: #285186;
}

.result-div .nav-tabs .nav-item {
    margin-right: 5px;
}

.result-div .tab-pane h3 {
    text-align: left;
    font-size: 16px;
    border-bottom: 2px solid #D4DCE7;
    padding-bottom: 10px;
}

.result-div .tab-pane h3 img {
    margin-right: 8px;
    height: 30px;
}

.kojoCase {
    width: 300px;
    margin: 4px auto;
}

.case-selected {
    outline: 2px solid #00306D;
    outline-offset: -medium;
    border-radius: 9px;
}