@charset "UTF-8";
main {
    display: grid;
    grid-template-columns: 1fr 24vw;
}

main > section {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
}

@media screen and (max-width: 1024px) {
    main {
        grid-template-columns: 1fr;
    }
}

/*===========================================
       サービス
===========================================*/
#tax-reform .img_box {
    margin: 0 auto 2em;
    width: 50vw;
}

#tax-reform .img_box img {
    width: 100%;
}

#tax-reform p {
    font-size:min(2vw,1.8rem);
    text-align: center;
}

.service_list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3vw;
}

.service_list li {
    width: 30%;
    height: 15vw;
    position: relative;
    overflow: hidden;
}

.service_list li:after {
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
    transition: all 0.2s;
}

.service_list li:nth-child(1):after {
    background-image: url(../../img/service1.webp);
}
.service_list li:nth-child(2):after {
    background-image: url(../../img/service2.webp);
}
.service_list li:nth-child(3):after {
    background-image: url(../../img/service3.webp);
}
.service_list li:nth-child(4):after {
    background-image: url(../../img/service4.webp);
}
.service_list li:nth-child(5):after {
    background-image: url(../../img/service5.webp);
}
.service_list li:nth-child(6):after {
    background-image: url(../../img/service6.webp);
}

.service_list li:hover:after {
    opacity: .8;
    transform: scale(1.05);
}

.service_list li a {
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: all 0.2s;
}

.service_list li a:hover {
    background-color: rgba(35,112,171,0.3
    )
}

.service_list li a h3 {
    width: 100%;
    height: 50px;
    background-color: var(--main-color);
    font-size:min(2vw,2.2rem);
    letter-spacing: 2px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.s_txt {
    margin: 30px 1.5vw 0;
    font-size: 1.5rem;
    text-indent: -1em;
    padding-left: 1em;
    text-align: justify;
}

@media screen and (max-width: 767px) {
    #tax-reform .img_box {
        width: 100%;
    }
    
    #tax-reform p {
        font-size:min(3vw, 1.5rem);
        text-align: justify;
    }    
    
    .service_list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 3vw;
    }

    .service_list li {
        width: 48%;
        height: 28vw;
    }

    .service_list li a h3 {
        height: 40px;
        font-size:min(3.2vw,1.3rem);
        letter-spacing: 0px;
        line-height: 1.2;
        text-align: center;
    }

    .s_txt {
        margin: 20px 0 0;
        font-size: 1.3rem;
    }
}

/*===========================================
       コンテンツ
===========================================*/
.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}

.font110 {font-size: 110%}
.font120 {font-size: 120%}
.fwb {font-weight: bold}

.fontc_main {color: var(--main-color)}
.fontc_accent {color: var(--accent-color)}
.red {color: red}

.border_wrap {
    border: 1px solid var(--main-color);
    padding: 1em;
}

article.service_content:nth-of-type(n+1) {
    grid-column: 1;
}

.service_content {
    max-width: 1280px;
    margin: 5vw 20px 5vw 3vw;
    background-color: var(--bg-color);
    font-size:min(2vw,1.8rem);
    text-align: justify;
}

.service_content:first-of-type {
    margin-top: 0;
}

.service_content h2 {
    background-color: var(--main-color);
    text-align: center;
    color: white;
    font-size:min(2.3vw,2.8rem);
    letter-spacing: 0.1em;
    padding: 1em;
    line-height: 1;
    position: relative;
}

.service_content h2:after {
    content: "";
    display: block;
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--main-color);
    height: calc(tan(60deg) * 25px / 2);
    width: 30px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.content_wrap {
    padding: 3vw;
}

.outline .ttl {
    color: var(--main-color);
    font-size:min(2.3vw,2.4rem);
    margin-bottom: 1em;
}

.outline .txt {
    border-left: 2px solid var(--main-color);
    padding-left: 1em;
}

.outline .txt p:not(:last-of-type) {
    margin-bottom: 1em;
}

.border_box {
    margin-top: 2vw;
    border: 1px solid #808080;
    padding: 2vw;
}

.dot_ttl {
    font-size:min(2.2vw,2rem);
    margin-bottom: 1em;
    line-height: 1.2;
}

.dot_ttl:before {
    content: "●";
    margin-right: 0.2em;
    color: var(--main-color);
}

.n_txt {
    margin-top: 1em;
}

.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;
}

.kome2 {
    font-size: 90%;
    color: #777;
    margin-top: 0.5em;
    display: flex;
    line-height: 1.5;
}

.kome2 span {
    flex: 1;
    width: 2em;
    margin-right: 0.5em;
}

h3 span {
    font-size:min(2.4vw,5rem);
    margin-right: 0.3em;
}

h3 {
    background-color: var(--sub2-color);
    display: flex;
    align-items: center;
    line-height: 1;
    color: white;
    padding: 1vw 2vw;
    font-size:min(2.2vw,2.4rem);
    letter-spacing: 0.1em;
}

h4 span {
    color: var(--sub2-color);
    font-size:min(2.4vw,5rem);
    margin-right: 0.2em;
}

h4 {
    border-top: 1px solid var(--sub2-color);
    border-bottom: 1px solid var(--sub2-color);
    margin: 3vw 0 1vw;
    display: flex;
    align-items: center;
    line-height: 1;
    padding: 0.5vw 1vw;
    font-size:min(2.2vw,2rem);
    letter-spacing: 0.1em;
    min-height: 2.5em;
}

.normal_h5 {
    text-indent: -1.2em;
    padding-left: 1.2em;
    line-height: 1.5;
}

.normal_h5:before {
    content: "●";
    color: var(--main-color);
    margin-right: 0.2em;
}

h5.iroha {
    font-size:min(2.1vw,1.8rem);
    text-indent: -3em;
    padding-left: 3em;
    margin-bottom: 1em;
}

h5.iroha:not(:first-of-type) {
    margin-top: 2em;
}

h5.iroha span {
    width: 3em;
    color: var(--accent-color);
}

h5.number {
    font-size:min(2.1vw,1.8rem);
    text-indent: -1.2em;
    padding-left: 1.2em;
    margin-bottom: 1em;
}

h5.number span {
    margin-right: 0.2em;
    color: var(--accent-color);
}

h5.number:not(:first-of-type) {
    margin-top: 2em;
}

.white_box {
    background-color: white;
    padding: 2vw;
}

.white_box > p:not(:first-child) {
    margin-top: 1em;
}

.inner_box {
    background-color: #F5FBFE;
    padding: 2vw;
    margin-top: 1vw;
}

.inner_box .inner_ttl {
    font-size:min(2.4vw,2rem);
    margin: 0 0 1em;
    color: var(--main-color);
}

.inner_box p {
    margin-top: 1em;
}

.content_wrap p a {
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: all 0.2s;
}

.content_wrap p a:hover {
    color: var(--main-color);
}

.inner_img {
    margin-top: 1vw;
}

.inner_img figcaption {
    display: inline-block;
    background-color: var(--sub2-color);
    line-height: 1;
    color: white;
    padding: 0.5em 1em;
    font-size: 1.5rem;
}

.inner_img div {
    background-color: white;
    padding: 2vw;
    text-align: center;
}
.inner_img img {width: 100%;}
.inner_img img.w60 {width: 60%;}
.inner_img img.w70 {width: 70%;}
.inner_img img.w80 {width: 80%;}
.inner_img img.w90 {width: 90%;}

.inner_img div .caption {
    font-size: 90%;
    text-align: right;
    color: #777;
    margin-top: 0.5em;
}

.inner_img div .caption a {
    text-decoration: none;
}

.num_list li {
    text-indent: -1.2em;
    padding-left: 1.2em;
    line-height: 1.5;
}

.num_list li span {
    color: var(--accent-color);
    margin-right: 0.2em;
}

.num_list li:not(:first-child) {
    margin-top: 0.5em;
}

.dot_list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 0;
}

.dot_list li {
    width: 100%;
    text-indent: -1.2em;
    padding-left: 1.2em;
    line-height: 1.5;
}

.dot_list li:before {
    content: "●";
    color: var(--accent-color);
    margin-right: 0.2em;
}

.dot_list.half li {
    width: 50%;
    padding-right: 1em;
}

.img_list {
    display: flex;
    justify-content: center;
    gap: 5vw;
    border-top: 1px solid  var(--sub3-color);
    border-bottom: 1px solid  var(--sub3-color);
    padding: 2em;
}

.img_list .dot_list {
    display: inline-block;
}

.img_list .dot_list li:not(:last-of-type) {
    margin-bottom: 0.5em;
}

.img_list .dot_list li:before {
    color: var(--sub3-color);
}

.img_list .img_box {
    width: 10vw;
    align-content: flex-end;
}

.img_list .img_box img {
    width: 100%;
}

.dl_flow_box dl {
    display: flex;
    position: relative;
}

.dl_flow_box dl:not(:last-child):after {
    content: "";
    display: block;
    position: absolute;
    bottom: -2.2vw;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sub2-color);
    height: calc(tan(60deg) * 1.5vw / 2);
    width: 2vw;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.dl_flow_box dl:not(:last-child) {
    margin-bottom: 3vw;
}

.dl_flow_box dt {
    background-color: var(--main-color);
    color: white;
    width: 15em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 1.5;
    padding: 1em;
    letter-spacing: 0.1em;
}

.dl_flow_box dd {
    background-color: #F5FBFE;
    width: calc(100% - 15em);
    padding: 1em;
    border: 1px solid var(--main-color);
}

.table_ttl {
    margin: 0 0 0.5em!important;
}

.table_ttl:before {
    content: "●";
    color: var(--accent-color);
    margin-right: 0.2em;
}

.normal_table {
    border-spacing: 0;
    width: 100%;
}
.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 .w33 {width: 33.3333%}
.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 .ttl span {
    color: var(--accent-color);
}

.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 .bbn {border-bottom: none;}
.normal_table .bn {border: none;}

.normal_table th {
    text-align: center;
    vertical-align: middle;
    background-color: #f9f9f9;
}

.indent1 {
    text-indent: -1.2em;
    padding-left: 1.2em;
}

.indent1 span {
    margin-right: 0.2em;
    color: var(--accent-color);
}

.indent3_list li {
    text-indent: -3em;
    padding-left: 3em;
    line-height: 1.5;
}

.indent3_list li:not(:last-child) {
    margin-bottom: 0.5em;
}

.indent3_list li span {
    color: var(--accent-color);
}

.mokuji {
    justify-content: center;
}

.mokuji_wrap {
    min-width: 40%;
}

.mokuji .ttl {
    background-color: var(--sub3-color);
    line-height: 1;
    color: white;
    padding: 0.5em 1em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mokuji .ttl::before {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 5px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z' fill='%23fff'%3E%3C/path%3E%3C/svg%3E");
    content: '';
}

.mokuji ul {
    background-color: white;
    padding: 2vw;
    counter-reset: number 0;
}

.mokuji ul li {
    padding-left: 2.5em;
    position: relative;
    line-height: 1.5;
}

.mokuji ul li:not(:last-child) {
    margin-bottom: 0.5em;
}

.mokuji ul li:before {
    content: counter(number, decimal-leading-zero) ".";
    counter-increment: number;
    position: absolute;
    left: 0;
    top: -0.1em;
    width: 2em;
    text-align: right;
    font-family: "Oswald", serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    color: var(--sub3-color);
    transition: all 0.2s;
}

.mokuji ul li a:hover {
    color: var(--sub3-color);
    text-decoration: underline;
}

.cross_wrap {
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 0 L50 40 L90 0 L100 10 L60 50 L100 90 L90 100 L50 60 L10 100 L0 90 L40 50 L0 10 Z' fill='%23fff' /%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80% 80%;
}

.cross_wrap .ttl {
    font-size:min(2.4vw,2rem);
    margin: 0 0 1em;
    color: var(--main-color);
}

.card_list {
    display: flex;
    justify-content: center;
    gap: 4%;
}

.card_wrap {
    width: 30%;
    background-color: white;
    border: 1px solid var(--main-color);
    border-radius: 1vw;
    overflow: hidden;
}

.card_wrap p.ttl {
    margin: 0;
    text-align: center;
    background-color: var(--main-color);
    line-height: 1;
    color: white;
    padding: 1em;
}

.card_wrap dl {
    padding: 2vw;
    display: flex;
    flex-wrap: wrap;
    gap: 1em 1em;
    line-height: 1;
    align-items: center;
}

.card_wrap dl dt {
    width: 4em;
    color: var(--main-color);
}

.card_wrap dl dd {
    flex: calc(100% - 5em);
    font-size: 120%;
}

.card_wrap p.tax {
    margin: 0 2vw;
    background-color: #A1D0E9;
    text-align: center;
    line-height: 1;
    padding: 1em;
    font-size:min(2.2vw,2rem);
}
.card_wrap:nth-child(2) p.tax {
    background-color: #98D6D4;
}
.card_wrap:nth-child(3) p.tax {
    background-color: #F7CCC0;
}

.card_wrap .kome {
    margin: 1em 2vw 2vw;
    line-height: 1.2;
}

.formula_ttl {
    text-align: center;
    color: var(--main-color);
    margin-bottom: 0.5em;
}

.formula {
    background-color: #F1F8F8;
    padding: 1em;
    text-align: center;
}

.formula span {
    display: inline-block;
    font-feature-settings: "palt";
    font-size: 110%;
}

.formula span.strong {
    color: var(--main-color);
    font-weight: 800;
}

.formula span.sign {
    padding: 0 0.5em;
    font-size: 100%;
}

.formula span.footnote {
    color: red;
}

.iryuu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: white;
    padding: 2vw;
}

.iryuu:not(:first-child) {
    margin-top: 2em;
}

.iryuu h6 {
    width: 100%;
    text-align: center;
    margin-bottom: 2em;
    border-bottom: 1px solid var(--main-color);
    padding-bottom: 0.5em;
    padding-bottom: 0.5em;
}

.iryuu img {
    width: 40%;
    align-self: flex-start;
}

.iryuu > div {
    width: 50%;
    margin-left: 5%;
}

.iryuu > div p {
    margin: 0;
}

.iryuu > div p.iryuu_ttl {
    text-indent: -1.2em;
    padding-left: 1.2em;
    line-height: 1.5;
    margin-bottom: 0.5em;
}

.iryuu > div p.iryuu_ttl:before {
    content: "●";
    color: var(--sub-color);
    margin-right: 0.2em;
}

.iryuu > div p.iryuu_ttl:not(:first-child) {
    margin-top: 1em;
}

.iryuu > div p.iryuu_formula {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #F5FBFE;
    padding: 0.5em 1em;
}

.iryuu > div p.iryuu_formula {
    font-size: 120%;
}

.iryuu > div p.iryuu_formula .sign {
    margin: 0 0.5em;
}

.iryuu > div p.iryuu_formula .answer {
    font-size: 120%;
    color: var(--accent-color);
}

.box_list .box {
    display: flex;
    border: 1px solid var(--main-color);
}

.box_list .box .ttl,.box_list .box .yen {
    background-color: var(--main-color);
    color: white;
    text-align: center;
}

.box_list .box .ttl,.box_list .box .yen,.box_list .box .txt {
    padding: 0.5em;
    margin: 0;
}

.box_list .box .ttl {
    width: 6em;
    position: relative;
}

.box_list .box .ttl:before {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    right: 0%;
    transform: translateY(-50%);
    width: 1px;
    height: 70%;
    background-color: white;
}

.box_list .box .yen {
    width: 10em;
}

.box_list .box .txt {
    background-color: white;
    flex: 1;
}

.box_list .arrow_txt {
    margin: 0.5em 1em 0.5em 4em;
}

.box_list .arrow_txt:before {
    content: "▼";
    margin-right: 0.5em;
    color: var(--accent-color);
}

.hikaku_box {
    display: flex;
    justify-content: space-between;
}

.hikaku_box > div {
    width: 48%;
    border: 1px solid var(--main-color);
}

.hikaku_box > div p {
    margin: 0;
    background-color: var(--main-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3em;
    letter-spacing: 0.1em;
}

.hikaku_box dl {
    display: flex;
    justify-content: center;
    gap: 0.5em;
}

.hikaku_box dl dt {
    width: 6em;
    text-align: right;
    color: var(--main-color);
}

.hikaku_box dl dd {
    width: 6em;
}

.hikaku_box2 p {
    margin: 0;
}

.hikaku_box2 .ttl {
    text-align: center;
}

.hikaku_box2 > div {
    background-color: white;
    border: 1px solid var(--main-color);
    margin-top: 2.5em;
    padding: 2em 1em 1em;
    position: relative;
}

.hikaku_box2 > div .h_ttl {
    position: absolute;
    top: -1.2em;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--main-color);
    color: white;
    width: 18em;
    height: 2.4em;
}

.hikaku_box2 > div .formula {
    background: none;
    padding: 0;
}

.hikaku_box2  dl {
    display: flex;
    gap: 1em;
    justify-content: center;
    align-items: center;
    background-color: var(--accent-color);
    margin-top: 1.5em;
    color: white;
    height: 3em;
}

.contact_btn {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-color);
    width: 30em;
    margin: 3vw auto 0;
    border: 1px solid var(--accent-color);
    line-height: 1;
    padding: 1em;
    border-radius: 2em;
    transition: all 0.2s;
}

.contact_btn:hover {
    background-color: var(--accent-color);
    color: white;
}

.contact_btn svg {
    height: 1em;
    fill: var(--accent-color);
    margin-right: 0.5em;
    transition: all 0.2s;
}

.contact_btn:hover svg {
    fill: white;
}

.link_btn {
    text-align: center;
    margin-top: 1.5em;
}

.link_btn a {
    text-decoration: none;
    background-color: var(--main-color);
    color: white;
    padding: 0.5em 2em;
    border-radius: 5px;
    transition: all 0.2s;
}

.link_btn a:hover {
    background-color: var(--sub-color);
}

@media screen and (max-width: 767px) {
    .service_content {
        width: 90%;
        margin: 0 auto 10vw;
        font-size: min(3vw, 1.5rem);
    }

    .service_content h2 {
        font-size: min(3.8vw, 2rem);
        padding: 1em;
    }

    .service_content h2:after {
        bottom: -13px;
        height: calc(tan(60deg) * 15px / 2);
        width: 20px;
    }

    .content_wrap {
        padding: 5vw;
    }

    .outline .ttl {
        font-size: min(3.5vw, 1.8rem);
    }

    .outline .txt {
        border-left: 1px solid var(--main-color);
    }

    .border_box {
        margin-top: 5vw;
        padding: 5vw;
    }

    .dot_ttl {
        font-size: min(3.2vw, 1.6rem);
    }

    h3 span {
        font-size: min(5vw, 2rem);
    }

    h3 {
        padding: 2vw 3vw;
        font-size: min(3.2vw, 1.8rem);
    }

    h4 span {
        font-size: min(5vw, 2rem);
    }

    h4 {
        margin: 5vw 0 3vw;
        padding: 1vw 2vw;
        font-size: min(3vw, 1.6rem);
    }

    h5.iroha {
        font-size: min(2.8vw, 1.5rem);
        margin-bottom: 0.5em;
    }
    
    h5.iroha:not(:first-of-type) {
        margin-top: 1.5em;
    }

    h5.number {
        font-size: min(2.8vw, 1.5rem);
        margin-bottom: 0.5em;
    }
    
    h5.number:not(:first-of-type) {
        margin-top: 1.5em;
    }

    .white_box {
        padding: 4vw;
    }

    .inner_box {
        padding: 4vw;
        margin-top: 4vw;
    }
    
    .inner_box .inner_ttl {
        font-size: min(2.8vw, 1.5rem);
    }
    
    .inner_box p {
        margin-top: 0.5em;
    }

    .inner_img {
        margin-top: 3vw;
    }

    .inner_img figcaption {
        padding: 0.5em;
        font-size: 1.2rem;
    }

    .inner_img div {
        padding: 4vw;
    }

    .inner_img img.w60,.inner_img img.w70,.inner_img img.w80,.inner_img img.w90 {
        width: 100%;
    }
    
    .dot_list.half li {
        width: 100%;
        padding-right: 0em;
    }
    
    .dl_flow_box dl {
        flex-wrap: wrap;
    }
    
    .dl_flow_box dl:not(:last-child):after {
        bottom: -5vw;
        height: calc(tan(60deg) * 4vw / 2);
        width: 5vw;
    }
    
    .dl_flow_box dl:not(:last-child) {
        margin-bottom: 7vw;
    }
    
    .dl_flow_box dt {
        width: 100%;
    }
    
    .dl_flow_box dd {
        width: 100%;
    }

    .img_list {
        flex-wrap: wrap;
        gap: 3vw;
        padding: 1em;
    }
    
    .img_list .dot_list {
        display: block;
    }
    
    .img_list .img_box {
        width: 20vw;
    }
    
    .cross_wrap .ttl {
        font-size: min(2.8vw, 1.5rem);
    }
    
    .card_list {
        flex-wrap: wrap;
        gap: 5vw;
    }

    .card_wrap {
        width: 100%;
        border-radius: 2vw;
    }

    .card_wrap p.ttl {
        padding: 0.5em;
    }

    .card_wrap dl {
        padding: 3vw;
    }

    .card_wrap p.tax {
        margin: 0 3vw;
        font-size:min(3.5vw,2rem);
    }
    .card_wrap:nth-child(3) p.tax {
        margin-bottom: 3vw;
    }
    
    .iryuu {
        padding: 3vw;
    }

    .iryuu img {
        width: 100%;
        margin-bottom: 2em;
    }

    .iryuu > div {
        width: 100%;
        margin-left: 0;
    }

    .iryuu > div p.iryuu_formula {
        font-size: 110%;
    }

    .iryuu > div p.iryuu_formula .answer {
        font-size: 110%;
    }
    
    .box_list .box {
        flex-wrap: wrap;
    }

    .box_list .box .ttl {
        width: 8em;
    }

    .box_list .box .yen {
        width: auto;
        flex: 1;
    }

    .box_list .box .txt {
        width: 100%;
        flex: auto;
        text-align: center;
    }
    
    .box_list .box:first-of-type .txt {
        display: none;
    }

    .box_list .box .txt span {
        display: inline-block;
    }

    .box_list .arrow_txt {
        margin: 0.5em ;
        text-align: center;
    }

    .contact_btn {
        width: 100%;
        margin: 5vw auto 0;
        padding: 1em 0.5em;
    }
    
    .mokuji {
        display: flex;
    }
}

aside {
    grid-row: 2 / span 6;
    grid-column: 2;
    position: sticky;
    height: fit-content;
    background-color: var(--main-color);
    top: 60px;
    margin-bottom: 5vw;
    margin-right: 3vw;
}

.side-nav {
    padding: 20px;
    overflow-y: auto;
    max-height: 95vh;
}

.nav-link {
    display: flex;
    color: white;
    padding: 0.3em 1rem 0.3em 2rem;
    font-size: 16px;
    line-height: 1.3;
    transition: all 0.2s;
}

.nav-link .number {
    width: 1.7em;
}

.nav-link .ttl {
    flex: 1;
}

.nav-link:hover {
    background-color: var(--sub-color);
}

.nav-link.active {
    color: var(--main-color);
    background-color: var(--bg-color);
}

.section-title {
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    padding: 0.2em 1rem;
    border-bottom: 2px solid var(--sub-color);
    margin-bottom: 0.5em;
}

.side-nav ul li:not(:first-of-type) .section-title {
    margin-top: 1em;
}

@media screen and (max-width: 1024px) {
    aside {
        grid-row: auto;
        grid-column: 1;
        position: static;
        margin: 0;
    }

    .side-nav {
        padding: 4vw;
        max-height: 100%;
    }

    .nav-link {
        font-size: 13px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

.side-nav {
  overflow: auto;
  scrollbar-width: none; /* Firefox用 */
  -ms-overflow-style: none; /* IE・Edge旧 */
}

.side-nav::-webkit-scrollbar {
  display: none; /* Chrome / Safari / Edge（Webkit系） */
}