/*******************
下層共通スタイル
*******************/
.top-section{
    padding-top: 210px;
    padding-bottom: 220px;
}

.top-section__heading{
    line-height: 1;
    text-align: center;
    position: relative;
}

.top-section__title{
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.09em;
    margin-right: -0.3em;
}

.top-section__subtitle {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    bottom: -2.3em;
    left: 50.5%;
    transform: translateX(0%);
    background: rgb(1,77,116);
    background: linear-gradient(90deg, rgba(1,77,116,1) 0%, rgba(18,113,153,1) 0%, rgba(32,143,183,1) 30%, rgba(45,173,213,1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
	position: initial;
	margin-top: 1rem;
}

.top-section__subtitle--white{
    background: rgb(1,77,116);
    background: linear-gradient(90deg, rgba(1,77,116,1) 0%, rgba(18,113,153,1) 0%, rgba(1,75,113,1) 0%, rgba(24,150,191,1) 50%, rgba(28,162,204,1) 100%);
    font-weight: 600;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: #fff;
    padding: 0.3em 0.5em 0.2em;
    bottom: -2.7em;
    left: 50%;
}

.top-section__heading--white{
    color: #fff;
}

.top-section__content{
    margin-top: 0;
}

.top-message__content-sign.name {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 20px;
}
.top-message__content-sign.name img {
	max-width: 180px;
}

@media screen and (max-width: 1249px){
    .top-section__subtitle {
        font-size: max(16px, 1.76vw);
    }
	.top-section {
    	padding-top: max(80px, 16.8vw);
    	padding-bottom: max(80px, 17.6vw);
	}
    .top-section__content {
        margin-top: max(60px, 8vw);
    }
}

@media screen and (max-width: 1250px){
	#tax-saving .inner {
		padding: 0 50px;
	}
}
@media screen and (max-width: 767px){
	#tax-saving .inner {
		padding: 0 40px;
	}
}

/*******************
fv
*******************/
.fv{
    background-image: url(../images/tax-saving/mv.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    aspect-ratio: 1920/400;
    position: relative;
}

.fv .webp{
    background-image: url(../images/tax-saving/mv.jpg.webp);
}

.fv__inner{
    display: flex;
	justify-content: center;
    align-items: center;
    max-width: 77.6vw;
    width: 100%;
    height: 100%;
    margin-inline: auto;
    padding-left: 5.2vw;
    padding-right: 5.2vw;
}

.fv__catch{
    font-size: clamp(60px, 2.865vw, 55px);
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 0.7;
	text-align: center;
}
.fv__catch .text-block {
	display: inline-block!important;
	font-size:clamp(1rem, 0.83rem + 0.73vw, 1.375rem);
	font-family: "Crimson Text", serif;
	font-weight: bold;
	background: #fff;
	padding: 0 0.5rem;
	vertical-align: top;
	line-height: 1;
	letter-spacing: 0.1em;
	margin-top: 1.5em;
}
.fv__catch .gra {
	background: linear-gradient(90deg, #01547c, #1ca3ce 80%, #1ea7d2);
	background: -webkit-linear-gradient(0deg, #01547c, #1ca3ce 80%, #1ea7d2);
	-webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fv__catch-white{
    color: #fff;
	display: block;
}

@media screen and (min-width: 1921px){
    .fv{
        height: 800px;
        aspect-ratio: auto;
    }

    .fv__inner{
        max-width: 1490px;
        padding-left: 100px;
        padding-right: 100px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {

    .fv__inner {
        max-width: 935px;
        padding-left: 110px;
        padding-right: 100px;
        aspect-ratio: auto;
        height: 420px;
    }

    .fv__catch {
        /*width: 70%;*/
		width: 90%;
    }
	
	.fv__catch-white {
		line-height: 1.3;
	}
}

@media screen and (max-width: 767px){
    .fv {
        background-image: url(../images/tax-saving/mv.jpg);
        background-size: cover;
        background-position: center;
        aspect-ratio: 40/20;
    }

    .fv__catch{
        font-size: max(20px, 6.33vw);
        margin-top: 60px;
    }

    .fv__catch span{
        background: none;
        line-height: 1;
        padding: 0.12em 0.4em 0.17em;
		display: block;
    }

    .fv__catch span:nth-of-type(2){
        display: inline-block;
        letter-spacing: 0.02em;
        text-indent: -0.15em;
		margin-top: 0.5em;
    }

    .fv__catch span:nth-of-type(3){
        padding-right: 0;
    }

    .fv__catch br{
        display: none;
    }

    .fv__catch > *+*{
        margin-top: 1vw;
    }
}

/*******************
insurance
*******************/

#tax-saving {
	background-image: url("../images/common/service_bk.jpg"),url("../images/tax-saving/top_bk.png");
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: bottom,top;
}

#tax-saving .webp {
	background-image: url("../images/common/service_bk.jpg.webp"),url("../images/tax-saving/top_bk.png.webp");
}

.in-br {
	display: inline-block;
}

#tax-saving .br {
	display: block;
}

#tax-saving .sp {
	display: none;
}

#tax-saving .orange{
	color: #d15418;
}

#tax-saving .inner .copy {
	text-align: center;
	font-size: 36px;
    line-height: 1.5em;
	font-weight: bold;
}
#tax-saving .inner .copy .gra {
	    /*background: linear-gradient(90deg, rgba(1, 77, 116, 1) 0%, rgba(18, 113, 153, 1) 0%, rgba(1, 75, 113, 1) 0%, rgba(24, 150, 191, 1) 50%, rgba(28, 162, 204, 1) 100%);*/
	    background: -webkit-linear-gradient(0deg, #02577f, #003757 35%, #1a9cc7);
    font-weight: 600;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: #fff;
	    padding: 0 0.3em;
}

#tax-saving .inner h2 {
	text-align: center;
	font-size: 30px;
	font-weight: bold;
	display: block;
	/*
	border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #01547c, #1ca3ce 30%, #1ea7d2);*/
    border-image-slice: 1;
	position: relative;
	margin-bottom: 80px;
}
#tax-saving .inner h2::after {
	position: absolute;
	font-family: "Crimson Text", serif;
	font-size: 50px;
	/*background: linear-gradient(90deg, rgba(1, 77, 116, 1) 0%, rgba(18, 113, 153, 1) 0%, rgba(32, 143, 183, 1) 30%, rgba(45, 173, 213, 1) 100%);*/
	background: #dde2e7;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
	bottom: 0;
    left: 50%;
    transform: translateX(-50%);
	/*opacity: 0.3;*/
	z-index: -1;
	font-weight: 800;
}

#tax-saving .inner h2::before {
	position: absolute;
    content: "";
    background: linear-gradient(90deg, rgba(1, 77, 116, 1) 0%, rgba(18, 113, 153, 1) 0%, rgba(32, 143, 183, 1) 30%, rgba(45, 173, 213, 1) 100%);
    height: 2px;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
	max-width: 830px;
    width: 100%;
}

#tax-saving .inner .box_wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
}

#tax-saving .inner .text ol {
	display: flex;
    justify-content: space-between;
    flex-direction: column;
    height: 100%;
}
#tax-saving .inner .text ol li {
	border-bottom: 1px solid #d9d9d9;
	font-size: 21px;
	line-height: 1.85em;
	font-weight: bold;
	    display: flex;
    align-items: flex-start;
	    padding-bottom: 0.5em;
}

#tax-saving .inner .text ol li:last-of-type {
	border: none;
}

#tax-saving .inner .text ol li .number{
	display:inline-block;
	max-width: 30px;
	width: 100%;
	margin-right:10px;
	text-align: center;
	color:#fff;
	font-size: 16px;
	background: url(../images/inheritance/circle.svg) no-repeat;
    background-size: auto 30px;
        background-position: 52%;
	font-style: italic;
	    padding-right: 0.5%;
}

@media screen and (max-width: 1170px){
	#tax-saving .inner h2::after {
		font-size: 40px;
	}
	#tax-saving .inner .text ol li {
		font-size: 18px;
	}
	#tax-saving .inner h3 {
		font-size: 26px;
	}
}
@media screen and (max-width: 1100px){
	#tax-saving .inner .copy {
		font-size: 32px;
	}
	#tax-saving .inner h2 {
		font-size: 28px;
	}
}
@media screen and (max-width: 980px){
	#tax-saving .inner h2 {
		line-height: 1.5;
	}
	#tax-saving .inner h2::before {
		bottom: -10px;
	}
	#tax-saving .optimization h2::after {
		bottom: 10px;
	}
}
@media screen and (max-width: 970px){
	#tax-saving .inner h2::after {
		font-size: 32px;
	}
}
@media screen and (max-width: 767px){
	#tax-saving .inner .text {
		width: 100%;
		margin: 0;
		margin-top: 10px;
}
	#tax-saving .inner .copy {
		font-size: 28px;
}
	#tax-saving .inner h2 {
		font-size: 24px;
		margin-bottom: 60px;
}
	#tax-saving .inner h2::after {
		font-size: 31px;
}
	#tax-saving .inner .sp {
		display: block;
}
	#tax-saving .inner .pc {
		display: none;
}	
	#tax-saving .inner h3 {
		font-size: 24px;
}
	#tax-saving .inner .text ol li {
		font-size: 16px;
		padding: 0.5em 0;
	}
}
@media screen and (max-width: 550px){
	#tax-saving .inner .copy {
		font-size: 5vw;
	}
	#tax-saving .inner h2 {
		font-size: 5vw;
	}
	#tax-saving .inner h2::after {
		font-size: 7vw;
	}
}

/*******************
problem
*******************/

#tax-saving .optimization .problem h3 {
    background: #003757;
	color: #fff;
}
#tax-saving .inner .problem .box_wrap {
	border: 1px solid #003757;
	padding: 25px;
}
#tax-saving .inner .problem .text {
	margin-left: 2.5%;
	width: 72.5%;
	display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#tax-saving .inner .problem .img {
	width: 25%;
    height: auto;
}


@media screen and (max-width: 980px){
	#tax-saving .inner .problem .box_wrap .box_inner ul.list02 li {
		width: 100%;
	}
	#tax-saving .inner .problem .box_wrap .box_inner {
	padding: 30px;
}
	#tax-saving .inner .estate-tax-return,
#tax-saving .inner .management {
		margin-top: 16vw;
	}
}

@media screen and (max-width: 767px){
	#tax-saving .inner .problem .box_wrap {
		flex-direction: column;
	}
	#tax-saving .inner .problem .box_wrap .box {
		width: 100%;
		max-width: 100%;
		font-size: 16px;
	}
	#tax-saving .inner .problem h3 {
		font-size: 4vw;
	}
	#tax-saving .inner .problem .img {
		width: 100%;
	}
	#tax-saving .inner .problem .text {
    width: 100%;
    margin: 0;
    margin-top: 10px;
}
}

/*******************
optimization
*******************/

#tax-saving .optimization {
	margin-top: 100px;
}
#tax-saving .optimization.bg_gray {
	background: #f0f4f8;
	padding: 60px 0;
}
#tax-saving .optimization.bg_gray .text {
	background: #fff;
	border: 1px solid #000;
	font-weight: 500;
	font-size: 18px;
	padding: 30px;
	margin: 50px 0;
	flex-grow: 1;
}
#tax-saving .optimization.bg_gray .text02 {
	background: #fff;
	text-align: center;
	padding: 30px;
}
#tax-saving .optimization.bg_gray .text02 .title {
	font-size: 24px;
	font-weight: bold;
	line-height: 1.5;
	margin-bottom: 0.5em;
}
#tax-saving .optimization.bg_gray .text02 .list{
	max-width: 630px;
	display: flex;
    margin: 0 auto;
    text-align: left;
	justify-content: center;
}
#tax-saving .optimization.bg_gray .text02 ol {
	display: flex;
    flex-wrap: wrap;
	counter-reset: number;
}
#tax-saving .optimization.bg_gray .text02 li {
	width: 50%;
	position: relative;
  padding-left: 1.5em;
	font-size: 18px;
	font-weight: 500;
	    line-height: 1.5;
}
#tax-saving .optimization.bg_gray .text02 li:nth-of-type(1){
	text-align: right;
	padding-right: 30px;
}
#tax-saving .optimization.bg_gray .text02 li:nth-of-type(3){
	text-align: right;
	padding-right: 49px;
}
#tax-saving .optimization.bg_gray .text02 li::before {
	counter-increment: number;
    content: counter(number);
    position: absolute;
    top: 5px;
    left: 0;
    width: 20px;
    height: 20px;
    border: 1px solid #000;
    border-radius: 50%;
    font-size: 13px;
    text-align: center;
    line-height: 1.3;
    font-weight: bold;
}
#tax-saving .optimization.bg_gray .text02 li:nth-of-type(1)::before,
#tax-saving .optimization.bg_gray .text02 li:nth-of-type(3)::before{
	left: 40px;
}

#tax-saving .optimization h2 {
	margin-top: 100px;
}

#tax-saving .optimization h2::after {
	content: "OPTIMIZATION";
}

#tax-saving .optimization h3 {
    font-size: 30px;
	line-height: 1.5em;
	background: #157399;
	color: #f9f0a0;
	padding: 10px;
	display: flex;
	justify-content: center;
    align-items: center;
	text-align: center;
}

#tax-saving .optimization .list02 h3 {
	background: #d15418;
}

#tax-saving .optimization h3 img {
	max-width: 32px;
    width: 100%;
    margin-right: 0.3em;
}

#tax-saving .optimization .box_wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

#tax-saving .optimization .box_wrap .box {
    display: flex;
    flex-direction: column;
    width: 24%;
	height: 168px;
    background-color: #fff;
    border: 2px solid #157399;
    font-size: 21px;
    margin-bottom: 40px;
    font-weight: bold;
    padding: 20px 0;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    border-radius: 10px;
	background-image: url(../images/insurance/check_bk.png);
    background-repeat: no-repeat;
    background-position: center;
	font-style: italic;
}

#tax-saving .optimization .box_wrap .box .webp {
	background-image: url(../images/insurance/check_bk.png.webp);
}
	
#tax-saving .optimization .box_wrap .box::before {
    background: linear-gradient(90deg, rgba(1, 77, 116, 1) 0%, rgba(18, 113, 153, 1) 0%, rgba(1, 75, 113, 1) 0%, rgba(24, 150, 191, 1) 50%, rgba(28, 162, 204, 1) 100%);
    font-weight: 600;
    -webkit-background-clip: border-box;
    -webkit-text-fill-color: #fff;
    padding: 5px 20px;
    line-height: 24px;
    top: -10px;
    display: block;
    position: absolute;
    left: -1px;
    font-size: 28px;
    font-family: "Shippori Mincho", serif;
}

#tax-saving .optimization .box_wrap .box:first-of-type::before {
    content: "01";
}

#tax-saving .optimization .box_wrap .box:nth-of-type(2)::before {
    content: "02";
}

#tax-saving .optimization .box_wrap .box:nth-of-type(3)::before {
    content: "03";
}

#tax-saving .optimization .box_wrap .box:nth-of-type(4)::before {
    content: "04";
}

#tax-saving .optimization .box p {
    line-height: 1.5em;
}

#tax-saving .optimization .box_wrap02 {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
#tax-saving .optimization .box_wrap02 .img {
	margin-top: 30px;
}
#tax-saving .optimization .box_wrap02 .box {
	width: 47.1%;
	display: flex;
	flex-direction: column;
}

#tax-saving .optimization .box_wrap02 dl {
	display: flex;
	flex-wrap: wrap;
	font-weight: bold;
	flex-grow: 1;
	margin-top: 50px;
	font-size: 18px;
}
#tax-saving .optimization .box_wrap02 dt {
	background: #003757;
	color: #fff;
	width: 35.5%;
	border-bottom: 1px solid #fff;
	display: flex;
	align-items: center;
	padding: 20px;
	line-height: 1.5;
	justify-content: center;
}
#tax-saving .optimization .box_wrap02 dd {
	width: 100%;
    max-width: 365px;
	border-right: 1px solid #003757;
	border-top: 1px solid #003757;
	display: flex;
	align-items: center;
	padding: 1em;
	width: 64.5%;
	background: #fff;
}
#tax-saving .optimization .box_wrap02 dd:last-of-type {
	border-bottom: 1px solid #003757;
}
@media screen and (max-width: 1200px){
	#tax-saving .optimization .box_wrap .box {
		font-size: 18px;
	}
	#tax-saving .optimization .box_wrap .box::before {
		font-size: 2vw;
	}
	#tax-saving .optimization h3 {
		font-size: 26px;
	}
}
@media screen and (max-width: 1000px){
	#tax-saving .optimization .box_wrap02 dt{
		padding: 10px;
	}
}
@media screen and (max-width: 950px){
	#tax-saving .optimization .box_wrap .box {
		width: 48%;
		height: 20vw;
		padding: 0;
		font-size: 2.6vw;
	}
	#tax-saving .optimization .box_wrap .box::before {
		font-size: 2.5vw;
	}
}
@media screen and (max-width: 930px){
	#tax-saving .optimization {
		margin-top: 10vw;
	}
}
@media screen and (max-width: 855px){
	#tax-saving .inner h2::before {
		max-width: 500px;
	}
}
@media screen and (max-width: 800px){
#tax-saving .optimization .box_wrap02 {
		flex-direction: column;
	}
	#tax-saving .optimization .box_wrap01 .box,
	#tax-saving .optimization .box_wrap02 .box{
		width: 100%;
	}
	#tax-saving .optimization .box_wrap02 dl {
		margin: 0;
		margin-top: 50px;
	}
	#tax-saving .optimization .box_wrap02 dt {
		width: 40%;
	}
	#tax-saving .optimization .box_wrap02 dd {
		width: 60%;
		max-width: 100%;
	}
	#tax-saving .optimization.bg_gray .text02 ol {
		flex-direction: column;
	}
	#tax-saving .optimization.bg_gray .text02 li {
		width: 100%;
	}
	#tax-saving .optimization.bg_gray .text02 li:nth-of-type(1),
	#tax-saving .optimization.bg_gray .text02 li:nth-of-type(3){
		padding-right: 0;
		padding-left: 1.5em;
		text-align: left;
	}
	#tax-saving .optimization.bg_gray .text02 li:nth-of-type(1)::before,
	#tax-saving .optimization.bg_gray .text02 li:nth-of-type(3)::before{
		left: 0;
}
}
@media screen and (max-width: 767px){
	#tax-saving .optimization .box_wrap .box {
	    background-size: 30%;
	}
	#tax-saving .optimization .box_wrap .box::before {
		font-size: 3vw;
	}
	#tax-saving .optimization h3 {
		font-size: 4vw;
	}
	#tax-saving .inner h2::before {
		max-width: 650px;
	}
	#tax-saving .optimization.bg_gray .text {
		font-size: 16px;
	}
	#tax-saving .optimization.bg_gray .text02 .title {
		font-size: 22px;
	}
	#tax-saving .optimization.bg_gray .text02 ol {
		font-size: 16px;
	}
}
@media screen and (max-width: 726px){
	#tax-saving .inner h2::before {
		max-width: 82vw;
	}
}
@media screen and (max-width: 600px){
	#tax-saving .optimization .box_wrap .box {
		width: 100%;
		height: 30vw;
		font-size: 20px;
	}
	#tax-saving .optimization .box_wrap .box:first-of-type p {
	    display: flex;
    	flex-direction: column;
	}
	#tax-saving .optimization .box_wrap .box::before {
		font-size: 4vw;
	}
	#tax-saving .optimization.bg_gray .text02 .title {
		font-size: 4vw;
	}
}
@media screen and (max-width: 430px){
	#tax-saving .optimization .box_wrap .box {
		font-size: 4.5vw;
	}
	#tax-saving .optimization .box_wrap .box::before {
		font-size: 4.5vw;
		padding: 3px 20px;
	}
	#tax-saving .optimization h3 {
   		font-size: 5vw;
}
	#tax-saving .optimization .problem h3 {
		flex-direction: column;
	}
}

/*******************
tax_control
*******************/
#tax-saving .tax_control .inner .box_wrap {
	display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    text-align: center;
}
#tax-saving .tax_control .inner .box_wrap .box {
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #f0f4f8;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
	padding: 30px;
}
#tax-saving .tax_control .inner h2{
	font-size: 36px;
	margin-top: 70px;
	line-height: 1.5;
}
#tax-saving .tax_control .inner h2::before{
	display: none;
}
#tax-saving .tax_control .inner h2 .orange{
	background: #d15418;
	color: #fff;
	font-size: 48px;
	
	line-height: 1.3;
}
#tax-saving .tax_control .inner h2 .left {
	padding-left: 0.3em;
}
#tax-saving .tax_control .inner h2 .right {
	padding-right: 0.3em;
}
#tax-saving  .tax_control .inner .box_wrap h3 {
	text-align: center;
    color: #fff;
    font-size: 30px;
    line-height: 1.5em;
    background: #157399;
    padding: 0.5em;
    width: 100%;
    margin-bottom: 0;
    border: 0;
}
#tax-saving  .tax_control .inner .box_wrap div.img.sp {
	border-bottom: 1px solid #157399;
	margin-bottom: 30px;
	padding-bottom: 30px;
}
#tax-saving  .tax_control .inner .box_wrap div.img.sp:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

@media screen and (max-width: 1100px){
	#tax-saving .tax_control .inner h2 {
		font-size: 30px;
	}
	#tax-saving .tax_control .inner h2 .orange {
		font-size: 40px;
	}
	#tax-saving .tax_control .inner .box_wrap h3 {
		font-size: 24px;
	}
}
@media screen and (max-width: 900px){
	#tax-saving .tax_control .inner h2 {
		font-size: 28px;
	}
	#tax-saving .tax_control .inner h2 .orange {
		font-size: 36px;
	}
	#tax-saving .tax_control .inner .box_wrap h3 {
		font-size: 21px;
	}
	#tax-saving .tax_control .inner .box_wrap .box {
		padding: 20px;
	}
}
@media screen and (max-width: 767px){
	#tax-saving .tax_control .inner h2 {
		font-size: 5vw;
		margin-bottom: 40px;
	}
	#tax-saving .tax_control .inner h2 .orange {
		font-size: 6vw;
	}
	#tax-saving .tax_control .inner .box_wrap .box {
		padding: 30px;
	}
}
@media screen and (max-width: 434px){
	#tax-saving .tax_control .inner h2 .left,
	#tax-saving .tax_control .inner h2 .right{
		padding: 0 0.3em;
	}
	#tax-saving .tax_control .inner .box_wrap h3 {
		font-size: 18px;
	}
}