/* 機能ページ。ヘッダーとフッターは既存のまま、本文だけをこのファイルで組む。 */

#function {
	--fn-navy: #066499;
	--fn-ink: #043652;
	--fn-gold: #f09a1a;
	--fn-muted: #3d4e5a;
	--fn-font: "Noto Sans JP", "source-han-sans-japanese", sans-serif;
	font-family: var(--fn-font);
}

#function .navbar-nav .nav-item .active-f {
	border-bottom-color: var(--fn-navy);
}

#function .navbar-nav .nav-item::after,
#function .navbar-nav .nav-hover:hover::after {
	background: var(--fn-navy);
}

#function .fn-page {
	position: relative;
	padding: 148px 0 88px;
	overflow: hidden;
	color: var(--fn-ink);
	background-color: #ffffff;
}

#function .fn-page > * {
	position: relative;
	z-index: 1;
}

#function .fn-wrap {
	width: min(960px, calc(100% - 96px));
	margin: 0 auto;
}

#function .fn-intro,
#function .fn-intro h2,
#function .fn-intro p,
#function .fn-sec h2,
#function .fn-card h3,
#function .fn-role,
#function .fn-gain,
#function .fn-note,
#function .fn-note a,
#function .fn-btn {
	font-family: var(--fn-font);
}

#function .fn-intro {
	padding: 8px 0 28px;
	text-align: center;
}

#function .fn-intro h2 {
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	color: var(--fn-ink);
	font-size: 34px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.45;
	text-align: center;
}

#function .fn-intro p {
	max-width: 40rem;
	margin: 0 auto;
	color: #3d4e5a;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.8;
}

#function #fn-standard {
	--fn-accent: #0284c7;
	--fn-badge-bg: #e0f2fe;
	--fn-hover-border: #38bdf8;
	--fn-shadow: 0 10px 28px -6px rgba(2, 132, 199, 0.11), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
	--fn-shadow-hover: 0 18px 36px -6px rgba(2, 132, 199, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

#function #fn-option {
	--fn-accent: #ea580c;
	--fn-badge-bg: #ffedd5;
	--fn-pill-bg: #ffedd5;
	--fn-pill-text: #c2410c;
	--fn-hover-border: #fb923c;
	--fn-shadow: 0 10px 28px -6px rgba(234, 88, 12, 0.11), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
	--fn-shadow-hover: 0 18px 36px -6px rgba(234, 88, 12, 0.18), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

#function #fn-ai {
	--fn-accent: #ea580c;
	--fn-badge-bg: #ffedd5;
	--fn-hover-border: #f97316;
	--fn-shadow: 0 10px 28px -6px rgba(234, 88, 12, 0.12), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
	--fn-shadow-hover: 0 18px 36px -6px rgba(234, 88, 12, 0.2), 0 4px 12px -2px rgba(15, 23, 42, 0.04);
}

#function .fn-sec {
	position: relative;
	margin: 0;
	padding: 56px 0 80px;
}

/* ロゴの青とオレンジをにじませた背景。標準機能は見出し付近から出す。 */
#function .fn-sec::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: -48px;
	right: 0;
	bottom: -72px;
	left: 0;
	pointer-events: none;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
}

#function #fn-standard::before {
	top: 0;
	background-image:
		radial-gradient(ellipse 72% 46% at 8% 18%, rgba(6, 100, 153, 0.2), transparent 70%),
		radial-gradient(ellipse 58% 42% at 96% 38%, rgba(176, 216, 240, 0.95), transparent 68%),
		radial-gradient(ellipse 46% 34% at 42% 78%, rgba(6, 100, 153, 0.12), transparent 72%);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 88%, transparent 100%);
}

#function #fn-option::before {
	background-image:
		radial-gradient(ellipse 64% 48% at 90% 36%, rgba(240, 154, 26, 0.2), transparent 68%),
		radial-gradient(ellipse 52% 40% at 6% 58%, rgba(6, 100, 153, 0.16), transparent 70%),
		radial-gradient(ellipse 48% 36% at 58% 82%, rgba(255, 206, 148, 0.55), transparent 72%);
}

#function #fn-ai::before {
	background-image:
		radial-gradient(ellipse 70% 50% at 14% 42%, rgba(4, 54, 82, 0.16), transparent 70%),
		radial-gradient(ellipse 56% 44% at 92% 34%, rgba(6, 100, 153, 0.22), transparent 68%),
		radial-gradient(ellipse 42% 32% at 68% 76%, rgba(240, 154, 26, 0.16), transparent 70%);
	-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 78%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 78%, transparent 100%);
}

#function .fn-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin: 0 0 28px;
}

#function .fn-sec h2 {
	margin: 0;
	padding: 0;
	border: 0;
	color: #0f172a;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.4;
}

#function .fn-head h2 {
	flex: 1 1 16rem;
}

#function .fn-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	margin: 0;
	padding: 0;
	list-style: none;
}

#function .fn-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	padding: 24px 26px;
	border: 1.5px solid transparent;
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--fn-shadow);
	transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.26s cubic-bezier(0.22, 1, 0.36, 1),
		border-color 0.26s ease;
}

#function .fn-card:hover {
	transform: translateY(-2px);
	border-color: var(--fn-hover-border);
	box-shadow: var(--fn-shadow-hover);
}

#function .fn-card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 14px;
}

#function .fn-card-title {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

#function .fn-badge {
	display: flex;
	flex: 0 0 40px;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--fn-badge-bg);
	color: var(--fn-accent);
	transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

#function .fn-card:hover .fn-badge {
	transform: scale(1.05);
}

#function .fn-badge svg {
	display: block;
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

#function .fn-card h3 {
	margin: 0;
	color: #0f172a;
	font-size: 19px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.35;
}

#function .fn-pill {
	flex: 0 0 auto;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--fn-pill-bg);
	color: var(--fn-pill-text);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
}

#function .fn-role {
	margin: 0 0 12px;
	color: #3d4e5a;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.7;
}

#function .fn-gain {
	margin: 0;
	padding-top: 12px;
	border-top: 1px solid #e8eef3;
	color: #0f172a;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.75;
}

#function .fn-note {
	margin: 8px 0 0;
	color: #3d4e5a;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.6;
}

#function .fn-note a {
	color: var(--fn-navy);
	font-weight: 700;
	text-underline-offset: 2px;
}

#function .fn-btn {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--fn-gold);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 6px 14px rgba(240, 154, 26, 0.22);
}

#function .fn-btn:hover {
	background: #e08c10;
	color: #fff;
}

#function .fn-more {
	margin: 28px 0 0;
}

@media (max-width: 800px) {
	#function .fn-page {
		padding: 108px 0 150px;
	}

	#function .fn-wrap {
		width: min(960px, calc(100% - 40px));
	}

	#function .fn-intro h2 {
		font-size: 24px;
	}

	#function .fn-sec {
		padding: 44px 0 64px;
	}

	#function .fn-sec h2 {
		font-size: 24px;
	}

	#function .fn-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	#function .fn-card-top {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	#function .fn-pill {
		margin-left: 52px;
	}
}
