/* ========================================
   事業紹介トップ .page-child カード
   service/yuigon/support
   画像＋タイトル＋緑丸矢印
======================================== */
ul.page-child {
    list-style: none;
    padding: 0;
    margin: 0 -1% 3%;
    display: flex;
    flex-wrap: wrap;
}
ul.page-child li {
    flex: 1 1 23%;
    max-width: 23%;
    margin:0 1% 2%;
}

ul.page-child a {
    display: grid;
    grid-template-rows: 160px auto;
    grid-template-columns: 1fr auto;
    text-decoration: none;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 0 0 1rem 1rem;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 0 1rem 1rem 1rem;
}
ul.page-child a span {
    font-weight: bold;
    font-size: 2rem;
    padding:1rem 0 0;
}

ul.page-child a:hover {
    border-color: #192F72;
    box-shadow: 0 0 0 1px #192F72;
    opacity:1;
}

ul.page-child a img {
    display: block;
    max-width: none;
    margin: 0 -1rem;
    width: calc(100% + 2rem);
    height: 160px;
    grid-column: 1 / -1;
}

ul.page-child a::after {
    content: '\203a';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height:3rem;
    border-radius: 0.4rem;
    background: var(--color-mega-here);
    color: #fff;
    font-size: 1.875rem; /* 1.25rem × 1.5 */
    font-weight: bold;
    margin:0.6rem 0 -0.2rem;
    box-sizing:border-box;
    padding-bottom:0.2rem;
}

@media screen and (max-width: 600px) {
    ul.page-child li {
        flex: 1 1 96%;
        max-width: 96%;
        margin:0 2% 3%;
    }
}

.p-service-parent {
    margin-top:6rem;
}
.p-service-parent figure{
    text-align: center;
    margin-top:3rem;
}

/* 枠＋中央見出し（data-box-title）＋左アイコン＋箇条書き — HTML は ul.c-listing に data-box-title のみ追加 */
ul.c-listing[data-box-title] {
	position: relative;
	box-sizing: border-box;
	margin: 2.8rem 0 2rem;
	padding: 2.6rem 1.6rem 1.6rem 18rem;
	border: 2px solid #aaa;
	list-style: none;
	color: #333;
	line-height: 1.6;
}
ul.c-listing[data-box-title]::before {
	content: attr(data-box-title);
	position: absolute;
	left: 50%;
	top: 0;
	transform: translate(-50%, -50%);
	padding: 0.4rem 1.0rem;
	background: #666;
	color: #fff;
	line-height: 1.3;
	white-space: nowrap;
	max-width: calc(100% - 3rem);
	overflow: hidden;
	text-overflow: ellipsis;
}
ul.c-listing[data-box-title]::after {
	content: "\f0ae";
	position: absolute;
	left: 1.6rem;
	top: 50%;
	width: 14.4rem;
	height: 14.4rem;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #eee;
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-style: normal;
	font-size: 8rem;
	line-height: 1;
	color: #666;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
ul.c-listing[data-box-title] li {
	position: relative;
	font-size: 1.8rem;
	padding-left: 1.1em;
	margin-bottom: 0.45em;
}
ul.c-listing[data-box-title] li:last-child {
	margin-bottom: 0;
}
ul.c-listing[data-box-title] li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 0.38em;
	height: 0.38em;
	border-radius: 50%;
	background: var(--color-mega-here);
	transform: translateY(-50%);
}
@media screen and (max-width: 600px) {
	ul.c-listing[data-box-title] {
		padding: 10.5rem 1.6rem 1.6rem;
	}
	ul.c-listing[data-box-title]::before {
		white-space: normal;
		text-align: center;
		max-width: calc(100% - 2rem);
		line-height: 1.35;
	}
	ul.c-listing[data-box-title]::after {
		left: 50%;
		top: 3.2rem;
		width: 7.2rem;
		height: 7.2rem;
		font-size: 4rem;
		margin-top: 0;
		transform: translate(-50%, 0);
	}
}

/* cta（右側透過画像・高さ1.5倍・画像は上方向に少しはみ出し） */
.cta {
	margin: 6rem 0 0;
	background: #FFDF57;
	min-height: 14rem;
}
.cta div.cta-container{
	margin:0 auto;
	display: flex;
	justify-content: space-between;
	max-width: 80rem;
}
.cta div.txt{
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.cta div.txt > p:first-of-type {
	margin: 0;
	font-size: 2.4rem;
	font-weight: bold;
}
.cta div.txt > p:nth-of-type(2) {
	margin: 0;
	max-width: 40em;
}
.cta figure{
	margin-top:-5rem;
}
.cta figure img{
	width:30rem;
	height: auto;
}
.cta div.txt a {
	margin-top: 0.4rem;
	padding: 0.85em 1.75em;
	background: var(--color-conversionbg);
	color: #fff;
	font-size: 1.8rem;
	font-weight: bold;
	text-decoration: none;
	border-radius: 0.4rem;
	align-self: flex-start;
	width: fit-content;
}

@media screen and (max-width: 600px) {
	.cta{
		margin-top:4rem;
	}
	.cta div.txt > p:first-of-type {
		margin: 1.2rem;
		font-size: 2.0rem;
	}
	.cta div.txt > p:nth-of-type(2) {
		line-height: 1.4;
		display: none;
	}
	.cta > p:nth-of-type(2) br{
		display: none;
	}
	.cta figure{
		margin-top:-3rem;
	}
	.cta figure img{
		width:18rem;
	}
	.cta div.txt a {
		align-self: center;
	}
}

.cta-form {
	margin: 6rem 0 1rem;
	min-height: 14rem;
	background-color: #eee;
}
.cta-form div.cta-form-container{
	margin:0 auto;
	display: flex;
	justify-content: space-between;
	max-width: 78rem;
}
.cta-form div.txt{
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.cta-form div.txt > p:first-of-type {
	margin: 0;
	font-size: 2.4rem;
	font-weight: bold;
}
.cta-form div.txt > p:nth-of-type(2) {
	margin: 0;
	max-width: 40em;
}
.cta-form figure{
	margin-top:-5rem;
}
.cta-form figure img{
	width:20rem;
	height: auto;
}
@media screen and (max-width: 600px) {
	.cta-form{
		margin-top:4rem;
	}
	.cta-form div.txt > p:first-of-type {
		margin: 1.2rem;
		font-size: 2.0rem;
	}
	.cta-form div.txt > p:nth-of-type(2) {
		line-height: 1.4;
		font-size: 1.6rem;
		margin-left:1rem;
	}
	.cta-form figure{
		margin-top:-1rem;
	}
}

/* 料金カード（HTML: li 直下テキスト + span のみ／Flex で上下に配置） */
ul.p-service-price {
	box-shadow: 0 0 5px 0px #aaa;
	margin: 3rem auto;
	display: flex;
	width: 80rem;
}
ul.p-service-price li {
	display: flex;
	flex-direction: column;
	width: 50%;
	text-align: center;
	font-weight: bold;
	font-size: 2.0rem;
	padding: 2rem 1rem 0 1rem;
}
ul.p-service-price li:first-child {
	border-right: 3px solid rgba(0, 0, 0, 0.3);
}
ul.p-service-price li:first-child span {
	border-right: 3px solid rgba(0, 0, 0, 0.3);
}
ul.p-service-price li span {
	margin: 1rem -1.2rem 0;
	padding: 1.4rem 1rem;
	color: #fff;
	font-size: clamp(2rem, 2.8vw, 2.8rem);
	font-weight: 700;
	line-height: 1.2;	
}
ul.p-service-price li:first-child > span {
	background: #48548c;
}
ul.p-service-price li:nth-child(2) > span {
	background: #19237e;
}
ul.p-service-price li:nth-child(3) > span {
	background: #070D44;
}
ul.p-service-price li span em{
	font-size: 1.6rem;
}
ol.p-howto-points{
	display: flex;
	flex-wrap: wrap;
	justify-content: stretch;
	align-items: stretch;
	gap: 1.25rem 1%;
	list-style: none;
	margin: 2.4rem 0 0;
	padding: 0;
	counter-reset: howto-point 0;
}
ol.p-howto-points li{
	counter-increment: howto-point;
	flex: 1 1 0;
	min-width: 9em;
	margin: 0;
	padding: 2rem 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	gap: 1rem;
	font-weight: bold;
	font-size: 2.0rem;
	line-height: 1.4;
	border-radius: 4px;
	box-shadow:0 0 5px 0px #aaa;
}
ol.p-howto-points li::before{
	content: counter(howto-point);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 4.8rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-aside-titbg);
}

@media screen and (max-width: 600px) {
	ol.p-howto-points li{
		flex: 1 1 auto;
		min-width: 0;
		width: 100%;
		max-width: none;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		text-align: left;
		padding: 1.2rem 1rem 1.2rem 2rem;
		gap: 1rem;
		font-size: 1.6rem;
	}
	ol.p-howto-points li::before{
		font-size: 3.0rem;
	}
}

ul.p-howto-points{
	display: flex;
	flex-wrap: wrap;
	justify-content: stretch;
	align-items: stretch;
	gap: 1.25rem 1%;
	list-style: none;
	margin: 2.4rem 0 0;
	padding: 0;
}
ul.p-howto-points li{
	flex: 1 1 0;
	min-width: 9em;
	margin: 0;
	padding: 2rem 1rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	gap: 1rem;
	font-weight: bold;
	font-size: 2.0rem;
	line-height: 1.4;
	border-radius: 4px;
	box-shadow:0 0 5px 0px #aaa;
}
@media screen and (max-width: 600px) {
	ul.p-howto-points li{
		flex: 1 1 auto;
		min-width: 0;
		max-width: none;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		text-align: left;
		padding: 1.2rem 1rem 1.2rem 2rem;
		gap: 1rem;
		font-size: 1.6rem;
	}
	ul.p-howto-points li::before{
		font-size: 3.0rem;
	}
}