/* 機能の詳細ページ（自動返信・データ分析など）の共通スタイル。body に .page-function を付けて読み込む
 * 見出し・本文・ボタンは common.css、ページタイトル・パンくず・CATEGORY / INFORMATION は page.css。
 * ここには「概要（目次）」「テーマごとのポイント」「活用シーン」「お試しの案内」を書く */

.page-function {
	--fd-tint: #eaf8ff;      /* 水色の帯・画像の台紙 */
	--fd-line: #cfeefe;      /* 水色の枠線 */
	--fd-marker: #cdeeff;    /* 強調語句のマーカー */
}

/* 見出しなどの日本語を文節の切れ目で折り返す（対応していないブラウザでは通常の折り返し） */
.fd-theme__title,
.fd-point__title,
.fd-usecase__title,
.fd-cta__title {
	word-break: auto-phrase;
}

/*==================== 概要：6つのポイントの目次 ====================*/
.fd-index {
	max-width: 1160px;
	margin: 48px auto 0;
	padding: 32px 40px;
	border-radius: 16px;
	background: var(--fd-tint);
	box-sizing: border-box;
}
.fd-index__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.02em;
	text-align: center;
}
.fd-index__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px 24px;
	margin-top: 20px;
}
.fd-index__link {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 100%;
	padding: 12px 16px;
	border-radius: 8px;
	background: #fff;
	box-sizing: border-box;
	color: var(--sec-text);
	font-size: 15px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 0.02em;
	transition: color 0.2s;
}
/* ページ内の下へ移動することを示す下向きの矢印 */
.fd-index__link::after {
	content: "";
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	margin-left: auto;
	border-right: 2px solid var(--sec-blue);
	border-bottom: 2px solid var(--sec-blue);
	rotate: 45deg;
	translate: 0 -2px;
	transition: translate 0.2s;
}
.fd-index__link:hover {
	color: var(--sec-blue);
}
.fd-index__link:hover::after {
	translate: 0 2px;
}
.fd-index__link:focus-visible {
	outline: 3px solid var(--sec-blue);
	outline-offset: 2px;
}

/*==================== テーマごとのポイント ====================*/
/* 2つめのテーマだけ水色の帯にして、テーマの切れ目をわかりやすくする
 * 前後のセクションとの間隔は他と同じ 96px（margin 48px + 隣の padding 48px）、帯の中は広めにとる */
.fd-theme--tint {
	margin-block: 48px;
	padding-block: 96px;
	background: var(--fd-tint);
}
/* テーマの見出し：日本語の見出しを大きく、その下に英字のラベルを小さく */
.fd-theme__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	text-align: center;
}
.fd-theme__title {
	font-size: 32px;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.035em;
}
.fd-theme__en {
	color: var(--sec-blue);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.2em;
}
.fd-theme__points {
	display: flex;
	flex-direction: column;
	gap: 96px;
	max-width: 1160px;
	margin: 56px auto 0;
}

/* 1つのポイント：文章（5）と画像（7）。2つめは左右を入れ替える
 * セレクタを2段にしているのは、style.css の article:last-child / article:nth-last-of-type(1) の余白に負けないようにするため */
.fd-theme__points > .fd-point {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	align-items: center;
	gap: 64px;
	margin: 0;
	padding: 0;
}
.fd-theme__points > .fd-point:nth-child(even) {
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.fd-point:nth-child(even) .fd-point__media {
	order: -1;
}
/* 目次から飛んだときに、固定ヘッダーの下に見出しが隠れないようにする */
.fd-point {
	scroll-margin-top: 160px;
}
.fd-point__label {
	display: inline-block;
	padding: 4px 16px;
	border-radius: 999px;
	background: var(--sec-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	letter-spacing: 0.08em;
}
.fd-point__title {
	margin-top: 16px;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.02em;
}
.fd-point__text {
	margin-top: 20px;
}
.fd-point__text p + p {
	margin-top: 0.8em;
}
/* 強調語句は下半分に水色のマーカー */
.fd-point__text strong {
	font-weight: 600;
	background: linear-gradient(transparent 60%, var(--fd-marker) 60%);
}

/* 画面の画像：水色の台紙の上に、影を付けて浮かせる */
.fd-point__media {
	margin: 0;
	padding: 24px;
	border-radius: 16px;
	background: var(--fd-tint);
}
.fd-theme--tint .fd-point__media {
	background: #fff;
}
.fd-point__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 80, 140, 0.12);
}

/*==================== 活用シーン ====================*/
.fd-usecase__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	max-width: 1160px;
	margin: 48px auto 0;
}
.fd-usecase__item {
	--usecase-blob: #effcff;
	position: relative;
	overflow: hidden;
	padding: 32px 32px 32px 44px;
	border: 1px solid var(--sec-blue);
	border-radius: 16px;
	background: #fff;
}
/* 左上にうっすら敷いた色付きの形（飾り）。色はカードごとに変える */
.fd-usecase__item::before {
	content: "";
	position: absolute;
	top: -52px;
	left: -52px;
	width: 128px;
	height: 128px;
	border-radius: 56px 56px 56px 72px;
	background: var(--usecase-blob);
	opacity: 0.5;
	pointer-events: none;
}
.fd-usecase__item--green {
	--usecase-blob: #ebfaf0;
}
.fd-usecase__item--red {
	--usecase-blob: #fff2f2;
}
.fd-usecase__item--yellow {
	--usecase-blob: #f9f7e6;
}
.fd-usecase__title {
	position: relative;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.02em;
}
.fd-usecase__text {
	position: relative;
	margin-top: 8px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.8;
	letter-spacing: 0.02em;
}

/*==================== お試しの案内 ====================*/
.fd-cta__inner {
	position: relative;
	overflow: hidden;
	max-width: 1160px;
	margin-inline: auto;
	padding: 56px 24px;
	border-radius: 24px;
	background: linear-gradient(175deg, #309dff 15%, #61d2df 85%);
	box-sizing: border-box;
	color: #fff;
	text-align: center;
}
/* 帯の左上と右下に並べた白い丸（飾り） */
.fd-cta__inner::before,
.fd-cta__inner::after {
	content: "";
	position: absolute;
	background: no-repeat center / contain;
	pointer-events: none;
}
.fd-cta__inner::before {
	top: 36px;
	left: -8px;
	width: 212px;
	height: 52px;
	background-image: url("../img/cta-dots-small.svg");
}
.fd-cta__inner::after {
	right: -28px;
	bottom: 24px;
	width: 272px;
	height: 68px;
	background-image: url("../img/cta-dots-large.svg");
}
.fd-cta__title,
.fd-cta__text,
.fd-cta__actions {
	position: relative;
}
.fd-cta__title {
	font-size: 28px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: 0.04em;
}
.fd-cta__text {
	margin-top: 12px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.8;
	letter-spacing: 0.02em;
}
.fd-cta__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px 24px;
	margin-top: 32px;
}
/* 白抜きのサブボタン（オレンジのボタンと同じ高さ） */
.fd-cta__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	padding: 12px 40px;
	border: 2px solid #fff;
	border-radius: 999px;
	box-sizing: border-box;
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.02em;
	transition: background-color 0.2s, color 0.2s;
}
.fd-cta__link:hover {
	background: #fff;
	color: var(--sec-blue);
}
.fd-cta__link:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 4px;
}

/*==================== タブレット ====================*/
@media screen and (max-width: 1100px) {
	.fd-index__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.fd-theme__points > .fd-point,
	.fd-theme__points > .fd-point:nth-child(even) {
		gap: 40px;
	}
}

/*==================== タブレット・スマートフォン：1列 ====================*/
@media screen and (max-width: 900px) {
	.fd-index {
		max-width: 640px;
		margin-top: 32px;
		padding: 24px 20px;
	}
	.fd-index__title {
		font-size: 16px;
	}
	.fd-index__list {
		margin-top: 16px;
	}
	.fd-theme--tint {
		margin-block: 32px;
		padding-block: 64px;
	}
	.fd-theme__title {
		font-size: 24px;
	}
	.fd-theme__points {
		gap: 64px;
		max-width: 640px;
		margin-top: 40px;
	}
	/* 縦並びでは画像を先に、その下に文章 */
	.fd-theme__points > .fd-point,
	.fd-theme__points > .fd-point:nth-child(even) {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}
	.fd-point .fd-point__media {
		order: -1;
	}
	.fd-point {
		scroll-margin-top: 96px;
	}
	.fd-point__media {
		padding: 16px;
	}
	.fd-point__title {
		margin-top: 12px;
		font-size: 20px;
	}
	.fd-point__text {
		margin-top: 16px;
	}
	.fd-usecase__list {
		gap: 16px;
		max-width: 640px;
		margin-top: 40px;
	}
	.fd-usecase__item {
		padding: 24px 20px 24px 28px;
	}
	.fd-usecase__title {
		font-size: 18px;
	}
	.fd-cta__inner {
		max-width: 640px;
		padding: 40px 20px;
		border-radius: 16px;
	}
	.fd-cta__title {
		font-size: 22px;
	}
	.fd-cta__text {
		font-size: 15px;
	}
	.fd-cta__inner::before {
		top: 16px;
		transform: scale(0.75);
		transform-origin: left top;
	}
	.fd-cta__inner::after {
		bottom: 12px;
		transform: scale(0.75);
		transform-origin: right bottom;
	}
}

/*==================== スマートフォン ====================*/
@media screen and (max-width: 600px) {
	.fd-index__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 8px;
	}
	.fd-usecase__list {
		grid-template-columns: minmax(0, 1fr);
	}
	.fd-cta__actions .btn-cta,
	.fd-cta__link {
		width: 100%;
		max-width: 400px;
	}
}
