@charset "UTF-8";

/* ===========================================
 * 初めての方へ（first.html）
 * ページ固有クラスは .first-○○ に統一。共通部品は l-* / c-* を再利用
 * ======================================== */

/* ===========================================
 * hero
 * ======================================== */
.first-hero {
	position: relative;
	overflow: hidden;
	background: #e4f2f4;
}

/* 右側のドット柄のアーチ装飾 */
.first-hero::before,
.first-hero::after {
	content: '';
	position: absolute;
	bottom: 0;
	border-radius: 999px 999px 0 0;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 2.2px, transparent 2.8px) 0 0 /
		9px 9px;
	-webkit-mask-image: linear-gradient(to top, #000 30%, transparent);
	mask-image: linear-gradient(to top, #000 30%, transparent);
	pointer-events: none;
}

.first-hero::before {
	right: calc(6vw + 150px);
	width: 150px;
	height: 216px;
}

.first-hero::after {
	right: 6vw;
	width: 132px;
	height: 180px;

	/* スマホ：白アーチの右の空きスペースに、上から下へ薄れるドット柄を置く（文字に重ねない） */
	@media (max-width: 768px) {
		top: 60px;
		right: 20px;
		bottom: auto;
		width: 92px;
		height: 150px;
		-webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
		mask-image: linear-gradient(to bottom, #000 30%, transparent);
	}
}

.first-hero::before {
	@media (max-width: 768px) {
		display: none;
	}
}

.first-hero__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 247px 1fr;
	-moz-column-gap: clamp(32px, 14.2vw, 204px);
	column-gap: clamp(32px, 14.2vw, 204px);
	min-height: 318px;

	@media (max-width: 768px) {
		grid-template-columns: 1fr;
		min-height: 0;
	}
}

/* 白いアーチ（HOW TO / 初めての方へ）。ヘッダー直下から立ち上げる */
.first-hero__title {
	display: flex;
	flex-direction: column;
	width: 247px;
	min-height: 318px;
	padding: 96px 0 0 29px;
	border-radius: 124px 124px 0 0;
	background: #fff;

	@media (max-width: 768px) {
		width: min(62%, 240px);
		min-height: 210px;
		padding: 64px 0 0 20px;
		border-radius: 120px 120px 0 0;
	}
}

.first-hero__en {
	font-family: 'Outfit', sans-serif;
	font-size: clamp(40px, 4.4vw, 64px);
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1;
	white-space: nowrap;
	color: #94cbd2;

	@media (max-width: 768px) {
		font-size: 44px;
	}
}

.first-hero__ja {
	margin-top: 18px;
	font-size: clamp(14px, 1.25vw, 18px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;

	@media (max-width: 768px) {
		margin-top: 12px;
		font-size: 15px;
	}
}

.first-hero__catch {
	padding-top: 108px;

	@media (max-width: 768px) {
		padding: 32px 0 56px;
	}
}

.first-hero__catch-line {
	display: block;
	width: -moz-fit-content;
	width: -webkit-fit-content;
	width: fit-content;
	padding-bottom: 8px;
	border-bottom: 1px solid #94cbd2;
	font-size: clamp(15px, 1.4vw, 20px);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.08em;

	@media (max-width: 768px) {
		padding-bottom: 2px;
		border-bottom: 0;
		background: linear-gradient(transparent 82%, #fff 82%);
	}
}

.first-hero__catch-line--lg {
	margin-top: 18px;
	font-size: clamp(20px, 2.2vw, 32px);
	letter-spacing: 0.1em;

	@media (max-width: 768px) {
		margin-top: 14px;
	}
}

/* ===========================================
 * promise
 * ======================================== */
.first-promise {
	padding: 104px 0 104px;

	@media (min-width: 769px) and (max-width: 1024px) {
		padding: 84px 0 84px;
	}

	@media (max-width: 768px) {
		padding: 56px 0 72px;
	}
}

.first-promise__title {
	@media (max-width: 768px) {
		font-size: 24px;
	}
}

.first-promise__num {
	font-family: 'Outfit', sans-serif;
	font-size: 1.6em;
	font-style: normal;
	font-weight: 500;
	line-height: 1;
	color: #e9983e;
}

.first-promise__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	-moz-column-gap: clamp(20px, 3.3vw, 36px);
	column-gap: clamp(20px, 3.3vw, 36px);
	margin-top: 112px;

	@media (min-width: 769px) and (max-width: 1024px) {
		margin-top: 96px;
	}

	@media (max-width: 768px) {
		grid-template-columns: 1fr;
		row-gap: 72px;
		width: min(100%, 336px);
		margin: 80px auto 0;
	}
}

.first-promise__item {
	position: relative;
	min-height: 437px;
	padding: 96px clamp(20px, 3.6vw, 52px) 48px;
	border-radius: 999px 999px 0 0;
	background: #faf8f0;
	text-align: center;

	@media (max-width: 768px) {
		min-height: 0;
		padding-inline: 32px;
	}
}

/* 円形の番号バッジ（アーチ上端にまたがる） */
.first-promise__badge {
	position: absolute;
	top: -38px;
	left: 50%;
	display: grid;
	place-content: center;
	width: 90px;
	aspect-ratio: 1;
	translate: -50% 0;
	border-radius: 50%;
	background: #94cbd2;
	font-family: 'Outfit', sans-serif;
	line-height: 1;
	color: #fff;
}

.first-promise__badge span {
	font-size: 10px;
	letter-spacing: 0.06em;
}

.first-promise__badge b {
	margin-top: 4px;
	font-size: 50px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

/* イラスト用の枠（素材の受領後に <img> を配置） */
.first-promise__icon {
	display: block;
	width: 140px;
	height: 120px;
	margin-inline: auto;
}

.first-promise__icon img {
	width: auto;
	height: 100%;
}

.first-promise__heading {
	margin-top: 24px;
	font-size: clamp(22px, 1.4vw, 24px);
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.08em;
}

.first-promise__heading span {
	display: table;
	margin: 0 auto 4px;
	padding: 0 0.4em;
	background: #cfe6ec;
}

.first-promise__text {
	margin-top: 24px;
	font-size: 16px;
	line-height: 1.9;
	text-align: left;
	@media (max-width: 768px) {
		font-size: 16px;
	}
}

/* ===========================================
 * message
 * ======================================== */
.first-message {
	position: relative;
	overflow: hidden;
	padding: 94px 0 100px;
	background: #e4f2f4;

	@media (min-width: 769px) and (max-width: 1024px) {
		padding: 80px 0 84px;
	}

	@media (max-width: 768px) {
		padding: 56px 0 94px;
	}
}

/* 右側のドット柄の装飾 */
.first-message::after {
	content: '';
	position: absolute;
	top: 38%;
	right: 0;
	width: min(26vw, 380px);
	height: 300px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.85) 2.2px, transparent 2.8px) 0 0 /
		9px 9px;
	-webkit-mask-image: linear-gradient(to left, #000 20%, transparent);
	mask-image: linear-gradient(to left, #000 20%, transparent);
	pointer-events: none;

	@media (max-width: 768px) {
		top: 8%;
		width: 40vw;
		height: 180px;
	}
}

.first-message__inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: clamp(260px, 28.7vw, 413px) minmax(0, 700px);
	-moz-column-gap: clamp(32px, 5vw, 72px);
	column-gap: clamp(32px, 5vw, 72px);
	align-items: start;
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: clamp(20px, 6.3vw, 91px);

	@media (max-width: 768px) {
		grid-template-columns: 1fr;
		row-gap: 0;
		padding-inline: 20px;
	}
}

/* 白いアーチ（代表の写真の枠） */
.first-message__photo {
	position: relative;
	margin-top: 118px;
	aspect-ratio: 413 / 473;
	border-radius: 999px 999px 0 0;
	background: #fff;

	@media (max-width: 768px) {
		width: min(72%, 280px);
		margin: 0 auto 64px;
	}
}

.first-message__photo img {
	width: 100%;
	height: 100%;
	border-radius: inherit;
	-o-object-fit: cover;
	object-fit: cover;
}

.first-message__script {
	position: absolute;
	bottom: -32px;
	left: 29px;
	rotate: -8deg;
	font-family: 'Ms Madi', cursive;
	font-size: clamp(40px, 4.3vw, 62px);
	line-height: 1;
	letter-spacing: 0;
	white-space: nowrap;
	color: #94cbd2;

	@media (max-width: 768px) {
		bottom: -28px;
		left: -8px;
		font-size: 44px;
	}
}

.first-message__title {
	font-size: clamp(20px, 2.1vw, 30px);
	font-weight: 700;
	line-height: 1.6;
	letter-spacing: 0.05em;

	@media (max-width: 768px) {
		font-size: 21px;
	}
}

.first-message__title span {
	display: table;
	margin-bottom: 6px;
	padding: 2px 14px;
	background: #fff;
}

.first-message__text {
	margin-top: 40px;
	font-size: 16px;
	line-height: 1.9;

	@media (max-width: 768px) {
		margin-top: 28px;
		font-size: 15px;
	}
}

.first-message__text p + p {
	margin-top: 1.4em;
}

/* スマホは手動改行を無効化し、行末に「た。」だけが残るのを防ぐ */
.first-message__text br {
	@media (max-width: 768px) {
		display: none;
	}
}

.first-message__mark {
	background: linear-gradient(transparent 62%, #faef56 62%);
	color: inherit;
}

.first-message__name {
	display: flex;
	align-items: baseline;
	justify-content: flex-end;
	gap: 16px;
	margin-top: 56px;
	font-weight: 700;

	@media (max-width: 768px) {
		margin-top: 40px;
	}
}

.first-message__role {
	font-size: 15px;
}

.first-message__person {
	font-size: 20px;
	letter-spacing: 0.1em;
}

/* ===========================================
 * area
 * ======================================== */
.first-area {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	padding: 128px 0 72px;
	background: #e4f2f4;
	text-align: center;
	color: #fff;

	@media (min-width: 769px) and (max-width: 1024px) {
		padding: 108px 0 64px;
	}

	@media (max-width: 768px) {
		padding: 88px 0 56px;
	}
}

/* 上端をゆるやかなアーチ状に切り抜いた写真 */
.first-area__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	border-radius: 50% 50% 0 0 / 60px 60px 0 0;
	-o-object-fit: cover;
	object-fit: cover;
	-o-object-position: center 30%;
	object-position: center 30%;

	@media (max-width: 768px) {
		border-radius: 50% 50% 0 0 / 32px 32px 0 0;
	}
}

/* 下端は白へなじませる */
.first-area::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(rgba(255, 255, 255, 0) 55%, #fff 96%);
	pointer-events: none;
}

.first-area__title {
	font-size: clamp(24px, 2.36vw, 34px);
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: 0.05em;
	text-shadow: 0 1px 8px rgba(0, 70, 110, 0.25);

	@media (max-width: 768px) {
		font-size: 20px;
		letter-spacing: 0.02em;
		text-wrap: balance;
	}
}

.first-area__lead {
	margin-top: 14px;
	font-size: clamp(13px, 1.1vw, 16px);
	letter-spacing: 0.1em;
	text-shadow: 0 1px 6px rgba(0, 70, 110, 0.25);

	@media (max-width: 768px) {
		font-size: 15px;
		letter-spacing: 0.04em;
		text-wrap: balance;
	}
}

.first-area__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	-moz-column-gap: 34px;
	column-gap: 34px;
	max-width: 974px;
	margin: 56px auto 0;

	@media (max-width: 768px) {
		grid-template-columns: 1fr;
		row-gap: 40px;
		width: min(100%, 260px);
		margin-top: 40px;
	}
}

/* 吹き出し状のタグ（円の上にかぶせる） */
.first-area__tag {
	position: relative;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 86%;
	min-height: 76px;
	margin-inline: auto;
	padding: 8px 16px;
	border-radius: 38px;
	background: #4a3b31;
	font-size: clamp(16px, 1.53vw, 22px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: 0.08em;
	color: #fff;

	@media (max-width: 768px) {
		width: 100%;
		min-height: 64px;
		font-size: 18px;
	}
}

.first-area__tag::after {
	content: '';
	position: absolute;
	top: 100%;
	left: 50%;
	translate: -50% 0;
	border-style: solid;
	border-width: 14px 14px 0;
	border-color: #4a3b31 transparent transparent;
}

/* アイコン用の枠（素材の受領後に <img> を配置） */
.first-area__circle {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	margin-top: -6px;
	border: 1px solid #4a3b31;
	border-radius: 50%;
	background: #fff;
}

.first-area__circle img {
	max-width: 60%;
}

/* ===========================================
 * contact（共通部分は layout.css の .l-contact）
 * ======================================== */
.l-contact__lead {
	@media (max-width: 768px) {
		font-size: 15px;
	}
}
