/* 下層ページ共通のスタイル（ページタイトル・パンくず・画像と文章の帯・CATEGORY / INFORMATION の導線カード）
 * 見出しや本文などの共通パーツは common.css、ページ固有のものは各ページのCSS（strengths.css など）に書く */

/*==================== 見出しの英字ラベル ====================*/
/* 下層ページは元のサイトの見出し（.block_header_1）と同じ大きさにする（トップページは common.css の大きいサイズのまま） */
.sec-head__en {
	font-size: 45px;
}
@media screen and (max-width: 800px) {
	.sec-head__en {
		font-size: 25px;
	}
}

/*==================== ページタイトル ====================*/
.page-hero {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 220px; /* 上下の余白と合わせて 300px */
	padding: 40px 16px;
	overflow: hidden;
	background: linear-gradient(159deg, #309dff 8%, #61d2df 92%) padding-box;
	/* ヘッダーの高さ分の余白は common.js が透明な border-top で付ける。
	 * ・背景はその内側だけに塗る（border の下まで塗ると、透明なヘッダーの裏にグラデーションが透けて重なる）
	 * ・高さは content-box で指定し、border が付いても帯の高さが削られないようにする */
	box-sizing: content-box;
}
/* 左に大きく敷いた吹き出しマーク（飾り） */
.page-hero__mark {
	position: absolute;
	top: 50%;
	left: -40px;
	width: 456px;
	height: auto;
	translate: 0 -50%;
	pointer-events: none;
}
.page-hero__title {
	position: relative;
	color: #fff;
	font-size: 40px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.1em;
	text-align: center;
}

/*==================== パンくずリスト ====================*/
.page-breadcrumb {
	position: relative; /* 固定ヘッダーより下に重ねる */
	z-index: 2;
	border-bottom: 1px solid rgba(0, 0, 0, 0.13);
	background: #dff5fe;
}
/* 目立たせないよう中央の本文幅にはそろえず、ヘッダーのロゴの左端にそろえて左に寄せる */
.page-breadcrumb ol {
	display: flex;
	padding-inline: 24px;
	box-sizing: border-box;
}
/* ヘッダーのロゴは 1100px 以下で左の余白が狭くなるので、合わせて狭める */
@media screen and (max-width: 1100px) {
	.page-breadcrumb ol {
		padding-inline: 16px;
	}
}
.page-breadcrumb li {
	position: relative;
	min-width: 0;
	overflow: hidden;
	padding: 4px 0 4px 28px;
	color: #333;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.9;
	letter-spacing: 0.02em;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.page-breadcrumb li:first-child {
	flex-shrink: 0;
	padding-left: 0;
}
/* 項目の間の「く」の字の区切り */
.page-breadcrumb li + li::before {
	content: "";
	position: absolute;
	top: calc(50% - 16px);
	left: -16px;
	width: 32px;
	height: 32px;
	border-top: 1px solid rgba(0, 0, 0, 0.13);
	border-right: 1px solid rgba(0, 0, 0, 0.13);
	rotate: 45deg;
}
.page-breadcrumb a {
	color: inherit;
}
.page-breadcrumb a:hover {
	color: #009df1;
}
.page-breadcrumb a[aria-current="page"] {
	pointer-events: none;
}

/*==================== 画像と文章を交互に並べる帯（FEATURE・STRENGTHS などで共通） ====================*/
/* <section class="sec detail-list">
 *   <div class="detail-list__intro">見出しと紹介文</div>
 *   <div class="detail-list__items">
 *     <article class="detail-row"><div class="detail-row__inner"><div class="detail-row__body">…</div><img class="detail-row__img"></div></article> …
 *   </div>
 * </section>
 * 奇数番目は文章が左・画像が右、偶数番目は画像が左。ページごとの違いは各ページのCSSで変数を上書きする
 *   --detail-img-w   : 画像の列の最大幅
 *   --detail-row-space : 帯の上下の余白 */
.detail-list {
	--detail-img-w: 488px;
	--detail-row-space: 76px;
	padding: 0; /* 外側の .sec は色の変数だけ使い、余白は中の各ブロックに持たせる（背景色を画面幅いっぱいに敷くため） */
}
.detail-list__intro {
	padding: 48px var(--sec-gutter) 64px;
}
/* 紹介文の下に区切り線を引く版 */
.detail-list--divided .detail-list__intro {
	border-bottom: 1px solid rgba(0, 0, 0, 0.13);
}
/* 奇数番目の帯に水色の背景を敷く版 */
.detail-list--striped .detail-row:nth-of-type(odd) {
	background: #eaf8ff;
}

/* 帯は、いちばん中身の多い帯に合わせて同じ高さにそろえる */
.detail-list__items {
	display: grid;
	grid-auto-rows: 1fr;
}
/* セレクタを2段にしているのは、style.css の article:last-child { padding-bottom: 0 } と
 * article:nth-last-of-type(1) { margin-bottom: 40px }（最後の帯だけ余白がずれる）に負けないようにするため */
.detail-list__items > .detail-row {
	display: grid;
	margin: 0;
	align-content: center; /* 帯が高くなっても中身は上下中央 */
	padding: var(--detail-row-space) var(--sec-gutter);
}
.detail-row__inner {
	display: grid;
	--detail-img-col: min(var(--detail-img-w), 45%); /* 画面が狭まったら画像側を先に縮め、文章の幅を確保する（偶数番目も同じ値を使う） */
	grid-template-columns: minmax(0, 1fr) var(--detail-img-col);
	grid-template-areas: "body img";
	align-items: center;
	gap: clamp(32px, 4.2vw, 64px);
	width: 100%; /* 帯の grid の中で margin: auto だと中身の量に合わせて縮むため、幅を固定してから max-width で止める */
	max-width: 1144px; /* 文章の列が約590pxになる幅（広すぎると1行が長くなり読みにくい） */
	margin-inline: auto;
}
.detail-row:nth-of-type(even) .detail-row__inner {
	grid-template-columns: var(--detail-img-col) minmax(0, 1fr);
	grid-template-areas: "img body";
}
/* 1番目の帯を画像が左から始める版（左右の入れ替わりが逆になる） */
.detail-list--img-first .detail-row:nth-of-type(odd) .detail-row__inner {
	grid-template-columns: var(--detail-img-col) minmax(0, 1fr);
	grid-template-areas: "img body";
}
.detail-list--img-first .detail-row:nth-of-type(even) .detail-row__inner {
	grid-template-columns: minmax(0, 1fr) var(--detail-img-col);
	grid-template-areas: "body img";
}
.detail-row__body {
	position: relative;
	grid-area: body;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
.detail-row__img {
	grid-area: img;
	width: 100%;
	height: auto;
}

/* 「feature1」などの番号は、上下中央そろえの計算に入れないよう見出しの真上に浮かせて置く */
.detail-row__label {
	position: absolute;
	bottom: 100%;
	left: 0;
	color: var(--sec-blue);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.9;
	letter-spacing: 0.02em;
}
/* 青い帯の見出し。左端の文字が上のラベルとそろうよう、帯の余白分だけ左へ出す */
.detail-row__title {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: -4px;
	padding: 12px 20px;
	background: var(--sec-blue);
	color: #fff;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.02em;
}
.detail-row__title img {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}
/* スクロールで画面に入ったら、青い帯を左から右へ clip-path で表示する
 * script.js が .is-reveal を付け、画面に入ると .is-inview を足す（JSなし・動きを減らす設定では最初から帯を表示） */
.detail-row__title.is-reveal {
	position: relative;
	isolation: isolate; /* 帯（::before）を文字の後ろ・見出しの中に収める */
	background: none;
	color: transparent;
	transition: color 0.3s ease 0.3s; /* 白い文字は帯が伸びきる少し前に浮かび上がらせる */
}
.detail-row__title.is-reveal::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--sec-blue);
	clip-path: inset(0 100% 0 0);
	transition: clip-path 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}
.detail-row__title.is-reveal img {
	opacity: 0;
	transition: opacity 0.3s ease 0.3s;
}
.detail-row__title.is-reveal.is-inview {
	color: #fff;
}
.detail-row__title.is-reveal.is-inview::before {
	clip-path: inset(0 0 0 0);
}
.detail-row__title.is-reveal.is-inview img {
	opacity: 1;
}
.detail-row__text {
	margin-top: 20px;
}
.detail-row__text p + p {
	margin-top: 4px; /* 段落の間はあけず、改行だけで区切る */
}
/* 「〜の使い方を見る ▶」のリンク（右寄せ） */
.detail-row__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	align-self: flex-end;
	margin-top: 30px;
	color: var(--sec-blue);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.9;
	letter-spacing: 0.02em;
}
.detail-row__link::after {
	content: "";
	width: 12px;
	height: 14px;
	background: currentColor;
	clip-path: polygon(0 0, 100% 50%, 0 100%);
	transition: translate 0.2s;
}
.detail-row__link:hover {
	text-decoration: underline;
	text-underline-offset: 4px;
}
.detail-row__link:hover::after {
	translate: 4px 0;
}

/*==================== CATEGORY / INFORMATION（各ページへの導線カード） ====================*/
/* 上下の余白は 96px（2つの間も 96px）。フッターのロゴまでは2.5倍の 240px あける
 * フッターの頭には、もともと空白が入っている（#fixbtn の場所取り 60px + 下余白 30px と .site-footer の上余白 8px。
 * 幅によって変わるので --footer-lead に入れておく）。その分を差し引いて、見た目の距離をちょうど2.5倍にする */
.page-nav {
	--page-nav-space: 96px;
	--footer-lead: 98px;
	padding-block: var(--page-nav-space);
}
.page-nav + .page-nav {
	padding-top: 0; /* 2つ続くので、間の余白は上のセクションの下余白だけにする */
}
.page-nav:last-child {
	padding-bottom: calc(var(--page-nav-space) * 2.5 - var(--footer-lead));
}
.page-nav__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
	max-width: 1160px;
	margin: 32px auto 0;
}
.page-nav__card {
	display: flex;
	align-items: center;
	gap: 20px;
	height: 100%;
	padding: 16px;
	border: 1px solid rgba(0, 0, 0, 0.13);
	background: #fff;
	box-sizing: border-box;
	color: var(--sec-text);
	transition: border-color 0.2s;
}
.page-nav__img {
	flex-shrink: 0;
	width: 120px;
	height: 120px;
	background: #dff5fe;
}
.page-nav__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}
.page-nav__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.02em;
	transition: color 0.2s;
}
.page-nav__text {
	font-size: 16px;
	font-weight: 400;
	line-height: 1.5;
	letter-spacing: 0.02em;
}
.page-nav__card:hover {
	border-color: var(--sec-blue);
}
.page-nav__card:hover .page-nav__title {
	color: var(--sec-blue);
}
.page-nav__card:focus-visible {
	outline: 3px solid var(--sec-blue);
	outline-offset: 2px;
}

/*==================== タブレット・スマートフォン ====================*/
@media screen and (max-width: 900px) {
	.page-nav {
		--page-nav-space: 64px;
		--footer-lead: 122px; /* .site-footer の上余白が 32px になる */
	}
	/* 画像と文章の帯：画像 → 文章の順に縦に並べる。間は、見出しの上に浮かせた「feature1」などの番号が入る分も含めて広めにあける */
	.detail-list {
		--detail-row-space: 64px;
	}
	.detail-list__intro {
		padding-block: 32px 40px;
	}
	.detail-list__items {
		grid-auto-rows: auto; /* 縦並びでは中身の量に合わせる */
	}
	.detail-row__inner,
	.detail-row:nth-of-type(even) .detail-row__inner,
	.detail-list--img-first .detail-row:nth-of-type(n) .detail-row__inner {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "img" "body";
		gap: 56px;
		max-width: 640px;
	}
	.detail-row__title {
		font-size: 18px;
	}
	.detail-row__img {
		max-width: 560px;
		margin-inline: auto;
	}
	.page-hero {
		min-height: 120px; /* 上下の余白と合わせて 200px */
	}
	.page-hero__mark {
		left: -32px;
		width: 296px;
	}
	.page-hero__title {
		font-size: 28px;
		letter-spacing: 0.06em;
	}
	.page-nav__list {
		grid-template-columns: minmax(0, 1fr);
		max-width: 640px;
		gap: 16px;
		margin-top: 24px;
	}
}
@media screen and (max-width: 600px) {
	.page-nav {
		--footer-lead: 92px; /* #fixbtn の下余白が 0 になる */
	}
	.page-hero {
		min-height: 80px; /* 上下の余白と合わせて 160px */
	}
	.page-hero__mark {
		width: 224px;
	}
	.page-hero__title {
		font-size: 24px;
	}
	.page-nav__card {
		gap: 16px;
		padding: 12px;
	}
	.page-nav__img {
		width: 88px;
		height: 88px;
	}
	.page-nav__title {
		font-size: 16px;
	}
	.page-nav__text {
		font-size: 14px;
	}
}
