@charset "UTF-8";

:root {
	--c-nttblue: #0072BC;

	--fs15: calc(15/16 * 100%);
	--fs16: 100%;
	--fs18: calc(18/16 * 100%);
	--fs20: calc(20/16 * 100%);
	--fs24: calc(24/16 * 100%);
	--fs30: calc(30/16 * 100%);
	--fs32: calc(32/16 * 100%);
	--fs40: calc(40/16 * 100%);
}

body {
	container-type: inline-size;
}

.l-main {
	background-color: #E7F6FF;

	p {
		margin-top: unset;
	}
}

.l-sec {
	overflow: hidden;

	@media (width <= 767px) {
		padding-inline: 30px;
	}
}

@media (width > 767px) {
	.hidden-pc {
		display: none;
	}
}

/*-------------------------------------------------------*/
/* p-bg-ball */
/*-------------------------------------------------------*/

.l-sec__inner:has(.p-bg-ball) {
	position: relative;
}

.p-bg-ball {
	--base-w: 1440;
	position: absolute;
	top: calc(var(--top) * 1px);
	left: min(var(--left) / var(--base-w) * 100vw, var(--left) * 1px);
	right: min(var(--right) / var(--base-w) * 100vw, var(--right) * 1px);

	width: min(var(--ball-w) / var(--base-w) * 100vw, var(--ball-w) * 1px);
	height: auto;

	&:nth-child(1) {
		--top: 500;
		--left: -189;
		--ball-w: 459;
	}

	&:nth-child(2) {
		--top: 900;
		--right: -375;
		--ball-w: 814;
	}

	&:nth-child(3) {
		--top: 1700;
		--left: -335;
		--ball-w: 782;
	}

	&:nth-child(4) {
		--top: 2160;
		--right: 100;
		--ball-w: 289;
	}

	&:nth-child(5) {
		--top: 2560;
		--right: -280;
		--ball-w: 939;
	}

	&:nth-child(6) {
		--top: 3150;
		--left: -257;
		--ball-w: 567;
	}

	&:nth-child(7) {
		--top: 4630;
		--left: -223;
		--ball-w: 834;
	}

	&:nth-child(8) {
		--top: 5215;
		--right: -170;
		--ball-w: 749;
	}
}

/*-------------------------------------------------------*/
/* p-hero */
/*-------------------------------------------------------*/

.p-hero {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	column-gap: 24px;
	align-items: center;

	position: relative;
	color: var(--c-nttblue);

	@media (width <= 767px) {
		grid-template-columns: 1fr;
		row-gap: 40px;

		margin-inline: -30px; /* 画面端まで広げる */
		padding-bottom: 20px;
	}
}

/* p-hero__body
------------------------------------------*/

.p-hero__body {
	grid-column: span 6;

	@media (width <= 767px) {
		grid-column: auto;

		margin-inline: 30px; /* 画面端まで広げた分を戻す */
	}
}

.p-hero__head {
	display: grid;
	row-gap: 24px;
}

.p-hero__title {
	/* 18px ~ 32px (画面幅:1079px ~ 1296px) */
	font-size: clamp(1.125rem, -3.2258rem + 6.4516vw, 2rem);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.05em;
}

.p-hero__sub {
	/* 28px ~ 40px (画面幅:1079px ~ 1296px) */
	font-size: clamp(1.75rem, -1.9793rem + 5.5300vw, 2.5rem) !important;
	font-weight: 700;
	font-feature-settings: "palt";
	line-height: 1.6;
	letter-spacing: 0.1em;
}

.p-hero__lead {
	display: grid;
	row-gap: 2em;

	line-height: 2;
	margin-top: 18px;
	letter-spacing: 0.05em;

	> p {
		/* 16px ~ 20px (画面幅:1079px ~ 1296px) */
		font-size: clamp(1rem, -0.2431rem + 1.8433vw, 1.25rem) !important;
	}
}

/* p-hero__slider
------------------------------------------*/

/*
 * 左右2列を横に並べる
 *   最大幅 = 306px × 2列 + 隙間 24px = 636px
 *   画面がそれより狭いときは、全体が比率を保ったまま縮小する
 */
.p-hero__slider {
	grid-column: span 6;

	display: flex;
	gap: calc(24 / 636 * 100%); /* 最大幅のとき24px。縮小時は幅に合わせて小さくなる */
	/* max-width: 636px; */

	@media (width <= 767px) {
		grid-column: auto;
		order: -1;
	}
}

/* 各スライダーは同じ幅で横並び（幅は親要素に合わせて伸縮） */
.splide {
	flex: 1;
	min-width: 0;
}

/* 画像間の隙間をなくす */
.splide__slide img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 306 / 390;
	object-fit: cover;
}

/*-------------------------------------------------------*/
/* p-section-wrap */
/*-------------------------------------------------------*/

.p-section-wrap {
    --gap: 100px;    /* 初期位置の上余白 */
    --img-w: 455px;  /* 画像の幅 */
    --img-h: 0px;    /* 画像の高さ（JSで更新） */

	@media (width <= 485px) {
		--img-w: calc(100vw - 30px);
	}

	display: flow-root;
	position: relative;
}

.p-float-wrap {
	position: absolute;
	top: var(--gap);
	/* 画面の左端に合わせる
	50% - 50cqw = 「この要素の左端から画面の左端まで」の距離（マイナス値） */
	left: calc(50% - 50cqw);
	width: var(--img-w);

	@media (width <= 767px) {
		--gap: 60px;
	}
}
.p-float-img {
	display: block;
	width: var(--img-w);
	height: auto;
}

/* ② 画像全体が画面に入った：画面下部に固定 */
.p-section-wrap[data-state="fixed"] .p-float-img {
	position: fixed;
	top: auto;
	bottom: 0;
}

/* ③ .l-topicpathが画面に入った：下端に絶対配置 */
.p-section-wrap[data-state="bottom"] .p-float-wrap {
	top: auto;
	bottom: 0;
}

/* 監視要素 */
.p-observe {
	position: absolute;
	top: calc(var(--gap) + var(--img-h));
	left: 0;
	width: 1px;
	height: 0;
	pointer-events: none;
}

/*-------------------------------------------------------*/
/* p-section */
/*-------------------------------------------------------*/

.p-section {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 24px;

	position: relative;
	z-index: 1;
	padding-block: 100px;

	@media (width <= 767px) {
		grid-template-columns: 1fr;
		padding-block: 80px;
	}

	& + .p-section {
		border-top: 1px solid #AABDC8;
	}

	img {
		max-width: 100%;
		height: auto;
	}
}

.p-section__term {
	grid-column: span 4;

	color: var(--c-nttblue);
	font-weight: 700;
	font-size: var(--fs32);
	font-family: "Poppins", sans-serif;

	@media (width <= 767px) {
		grid-column: auto;
	}
}

.p-section__body {
	grid-column: span 8;
	letter-spacing: 0.05em;

	@media (width <= 767px) {
		grid-column: auto;
	}

	> p {
		margin-top: 24px;
		line-height: 1.8;

		@media (width <= 767px) {
			margin-top: 12px;
			font-size: var(--fs15) !important;
		}

		& + p {
			margin-top: 1.8em;
		}
	}
}

.p-section__title {
	/* 18px ~ 32px (画面幅:375px ~ 1296px) */
	font-size: clamp(1.125rem, 0.7687rem + 1.5201vw, 2rem);
	font-weight: 700;
	font-feature-settings: "palt";
	line-height: 1.6;
	letter-spacing: 0.1em;
}

.p-section__img + .p-section__title {
	margin-top: 24px;
}

.p-section__sub {
	margin-top: 24px;
	font-weight: 700;
	/* 16px ~ 24px (画面幅:375px ~ 1296px) */
	font-size: clamp(1rem, 0.7964rem + 0.8686vw, 1.5rem);
	line-height: 1.6;

	@media (width <= 767px) {
		margin-top: 12px;
	}
}

* + .p-section__img {
	margin-top: 40px;
	text-align: center;

	@media (width <= 767px) {
		margin-top: 24px;
	}
}

/* p-section-list
------------------------------------------*/

.p-section-list {
	display: grid;
	row-gap: 24px;
	margin-top: 86px;

	@media (width <= 767px) {
		margin-top: 40px;
	}
}

.p-section-list__item {
	padding: 40px;
	border-radius: 8px;
	background-color: #FFF;

	@media (width <= 767px) {
		padding: 20px;
	}

	> p {
		line-height: 1.8;
		letter-spacing: 0.05em;

		@media (width <= 767px) {
			font-size: var(--fs15) !important;
		}

		& + p {
			margin-top: 16px;
		}
	}

	> [class^="u-fs"] {
		font-weight: 500;
		font-feature-settings: "palt";
		line-height: 1.6;
		letter-spacing: 0.1em;
	}

	> .u-fs32 {
		/* 20px ~ 32px (画面幅:375px ~ 1296px) */
		font-size: clamp(1.25rem, 0.9446rem + 1.3029vw, 2rem) !important;
	}

	> .u-fs24 {
		/* 20px ~ 24px (画面幅:375px ~ 1296px) */
		font-size: clamp(1.25rem, 1.1482rem + 0.4343vw, 1.5rem) !important;
	}

	> .u-fs18 {
		/* 16px ~ 18px (画面幅:375px ~ 1296px) */
		font-size: clamp(1rem, 0.9491rem + 0.2172vw, 1.125rem) !important;
		font-weight: 700;
	}
}

.p-section-list__head {
	display: flex;
	column-gap: 16px;
	align-items: center;

	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--c-nttblue);
	color: var(--c-nttblue);

	@media (width <= 767px) {
		flex-direction: column;
		align-items: flex-start;
		row-gap: 2px;
	}
}

.p-section-list__sub {
	/* 24px ~ 30px (画面幅:375px ~ 1296px) */
	font-size: clamp(1.5rem, 1.3473rem + 0.6515vw, 1.875rem) !important;
	font-weight: 700;
	font-family: "Poppins", sans-serif;
	line-height: 1.6;
}

.p-section-list__title {
	font-weight: 700;
	line-height: 1.6;

	@media (width <= 767px) {
		font-size: var(--fs15);
	}
}

/* p-section-child
------------------------------------------*/

.p-section-child {
	display: grid;
	row-gap: 8px;
	margin-top: 16px;

	& + * {
		margin-top: 32px;
	}
}

.p-section-child__item {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 16px;
	align-items: center;

	padding: 20px;
	border-radius: 4px;
	background-color: #F5F9FF;

	@media (width <= 767px) {
		column-gap: 8px;
		align-items: flex-start;
	}

	&:has(.p-section-child__title) > .p-section-child__img {
		grid-row: span 2;
	}
}

@media (width <= 767px) {
	.p-section-child__img {
		width: 30px;
		height: 30px;
	}
}

.p-section-child__body {
	letter-spacing: 0.05em;
	font-weight: 700;

	> p {
		font-weight: 700;
		font-size: var(--fs16) !important;
		line-height: 1.8;
	}
}

.p-section-child__title {
	margin-bottom: 8px;
	padding-bottom: 4px;
	padding-left: 10px;
	border-bottom: 1px solid var(--c-nttblue);
	/* 16px ~ 18px (画面幅:375px ~ 1296px) */
	font-size: clamp(1rem, 0.9491rem + 0.2172vw, 1.125rem);
	color: var(--c-nttblue);

	@media (width <= 767px) {
		padding-left: 0;
	}
}

/*-------------------------------------------------------*/
/* u-wipe */
/*-------------------------------------------------------*/

.u-wipe {
	display: inline-block;
	position: relative;
}

.u-wipe__text {
	opacity: 0;
}

.u-wipe::after {
	content: "";
	position: absolute;
	inset: -0.06em -0.12em;
	background: var(--c-nttblue);
	clip-path: inset(0 100% 0 0);
	pointer-events: none;
}

.u-wipe.is-in .u-wipe__text {
	animation: wipe-text 0.9s linear forwards;
}

.u-wipe.is-in::after {
	animation: wipe-bar 0.9s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

@keyframes wipe-bar {
	0% {
		clip-path: inset(0 100% 0 0);
	}
	50% {
		clip-path: inset(0 0 0 0);
	}
	100% {
		clip-path: inset(0 0 0 100%);
	}
}

@keyframes wipe-text {
	0%,
	49% {
		opacity: 0;
	}
	50%,
	100% {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.u-wipe__text {
		opacity: 1;
	}

	.u-wipe.is-in .u-wipe__text,
	.u-wipe.is-in::after {
		animation: none;
	}
}
