@charset "UTF-8";
/* =========================================================
   農福カルタ｜トップページ
   ========================================================= */

/* SWELL のコンテンツ幅・余白を解除して全幅で組む */
.home #content.l-content {
	max-width: 100%;
	width: 100%;
	padding: 0;
	margin: 0;
}

.home .l-mainContent,
.home .l-mainContent__inner { width: 100%; max-width: 100%; }

.nfk-front {
	overflow-x: clip;
	color: var(--nfk-ink);
	line-height: 1.9;
}

.nfk-front img { max-width: 100%; height: auto; }
.nfk-front section { position: relative; }


/* =========================================================
   ファーストビュー
   メインビジュアル本体は WordPress（カスタマイザー）で設定。
   ここでは、その上に重ねるバナーだけをスタイリングする。
   ========================================================= */
#main_visual { position: relative; }

.nfk-mv__banner {
	position: absolute;
	right: clamp(0px, 3vw, 90px);
	bottom: 0;
	z-index: 3;
	display: grid;
	place-items: end center;
	width: min(400px, 46vw);
	aspect-ratio: 1 / .58;
	padding-bottom: clamp(14px, 2.5vw, 28px);
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
	background: var(--nfk-green);
	color: #fff;
	text-decoration: none;
	transition: background-color .25s;
}

.nfk-mv__banner:hover,
.nfk-mv__banner:focus-visible { background: var(--nfk-green-dark); color: #fff; }

.nfk-mv__banner-illust {
	position: absolute;
	left: 50%;
	bottom: 62%;
	width: min(180px, 22vw);
	translate: -50% 0;
}

.nfk-mv__banner-illust img { width: 100%; display: block; }

.nfk-mv__banner-text {
	font-size: clamp(16px, 2.2vw, 26px);
	font-weight: 700;
	letter-spacing: .12em;
	line-height: 1.7;
	text-align: center;
}

/* メインビジュアル未設定時のフォールバック（バナーだけを置く帯） */
.nfk-mv--standalone {
	position: relative;
	height: min(46vw, 320px);
}


/* =========================================================
   お知らせ
   ========================================================= */
.nfk-news { padding-block: clamp(20px, 4vw, 40px) clamp(50px, 8vw, 100px); }

.nfk-news__list { margin: 0; padding: 0; list-style: none; }

.nfk-news__link {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: clamp(14px, 3vw, 40px);
	padding: 1.1em .2em;
	border-bottom: 1px solid #C9C9C5;
	color: inherit;
	text-decoration: none;
	transition: background-color .2s;
}

.nfk-news__link:hover,
.nfk-news__link:focus-visible { background: rgb(80 146 72 / .06); color: inherit; }

.nfk-news__date {
	font-size: clamp(13px, 1.5vw, 15px);
	letter-spacing: .06em;
	color: #55554F;
	white-space: nowrap;
}

.nfk-news__title {
	font-size: clamp(14px, 1.6vw, 16px);
	line-height: 1.6;
}

.nfk-news__cat {
	display: grid;
	place-items: center;
	min-width: 8em;
	padding: .35em .8em;
	background: var(--nfk-green);
	color: #fff;
	font-size: clamp(11px, 1.2vw, 13px);
	letter-spacing: .06em;
	white-space: nowrap;
}

/* カテゴリーのスラッグごとの色分け（必要に応じて追加してください） */
.nfk-news__cat[data-cat="news"],
.nfk-news__cat[data-cat="oshirase"] { background: var(--nfk-pink); }
.nfk-news__cat[data-cat="event"]    { background: var(--nfk-teal); }

.nfk-news__empty { text-align: center; color: #77776F; }

@media (max-width: 599px) {
	.nfk-news__link { grid-template-columns: 1fr auto; row-gap: .3em; }
	.nfk-news__title { grid-column: 1 / -1; }
}


/* =========================================================
   農福カルタとは
   ========================================================= */
.nfk-about { padding-block: clamp(40px, 7vw, 90px) clamp(50px, 8vw, 110px); margin-bottom: 100px;}

.nfk-about__title {
	margin: 0 auto;
	width: min(340px, 46vw);
}

.nfk-about__title img { width: 100%; display: block; }

.nfk-about__body {
	position: relative;
	z-index: 1;
	text-align: center;
	font-size: clamp(14px, 1.6vw, 17px);
	line-height: 2.2;
}

.nfk-about__body p { margin: 0 0 2em; }
.nfk-about__body p:last-child { margin-bottom: 0; }

.nfk-about__foot {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	gap: clamp(16px, 4.6vw, 90px);
	margin-top: clamp(30px, 5vw, 60px);
}

/* マップはデザイン通り、子どもより高い位置に置く */
.nfk-about__kids { width: clamp(150px, 19.7vw, 380px); }
.nfk-about__map  { width: clamp(115px, 14.8vw, 285px); margin-bottom: clamp(24px, 9.2vw, 180px); }
.nfk-about__kids img,
.nfk-about__map img { width: 100%; display: block; }

/* --- 散らしたイラスト（デザインの配置を比率に置き換えたもの） --- */
.nfk-about__deco {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 50%;
	width: min(100%, 1480px);
	translate: -50% 0;
	pointer-events: none;
}

.nfk-about__illust { position: absolute; display: block; }
.nfk-about__illust img { width: 100%; display: block; }

.nfk-about__illust.is-banana     { left:  18.2%; top: 18.5%; width: clamp(66px,  9.5%, 148px); rotate: -4deg; }
.nfk-about__illust.is-peach      { left:  66.6%; top: 19.4%; width: clamp(76px, 12.0%, 180px); }
.nfk-about__illust.is-strawberry { left:   7.8%; top: 31.1%; width: clamp(72px, 10.9%, 166px); }
.nfk-about__illust.is-lemon      { left:  76.1%; top: 31.5%; width: clamp(84px, 14.5%, 216px); }
.nfk-about__illust.is-kinira     { left:   2.2%; top: 45.5%; width: clamp(74px, 11.5%, 172px); }
.nfk-about__illust.is-egg        { left:  82.6%; top: 43.3%; width: clamp(86px, 16.0%, 238px); }
.nfk-about__illust.is-muscat     { left:   8.7%; top: 61.2%; width: clamp(70px, 10.5%, 158px); }
.nfk-about__illust.is-fish       { left:  79.6%; top: 56.4%; width: clamp(86px, 15.9%, 238px); }
.nfk-about__illust.is-map        { left:  70%; top: 73.4%; width: clamp(76px, 18.0%, 194px); }
.nfk-about__illust.is-rice       { left:  18%; top: 80%; width: clamp(76px, 13.0%, 194px); }
.nfk-about__illust.is-kids       { left:  42%; top: 92%; width: clamp(76px, 18.0%, 194px); }

/* --- タブレット以下：PC と同じく、見出し・本文のまわりを囲む「輪」に並べる --- */
@media (max-width: 899px) {
	/* デザイン用の固定改行を解除して自然に折り返す */
	.nfk-about__body br { display: none; }

	/* イラストを置く余白を左右に確保するため、中身を細くする */
	.nfk-about__title { width: min(210px, 42%); }

	.nfk-about__body {
		max-width: 64%;
		margin-inline: auto;
		text-align: left;
		line-height: 2;
	}

	/* 下側のイラストを置くぶん、余白を足す */
	.nfk-about { padding-bottom: clamp(150px, 32vw, 300px); }

	/* 左まわり */
	.nfk-about__illust.is-banana     { left:  1%; top:  5%; width: 16%; }
	.nfk-about__illust.is-strawberry { left:  0;  top: 23%; width: 17%; }
	.nfk-about__illust.is-kinira     { left:  0;  top: 41%; width: 17%; }
	.nfk-about__illust.is-muscat     { left:  1%; top: 59%; width: 16%; }

	/* 右まわり */
	.nfk-about__illust.is-peach      { left: 83%; top:  5%; width: 16%; }
	.nfk-about__illust.is-lemon      { left: 82%; top: 23%; width: 17%; }
	.nfk-about__illust.is-egg        { left: 82%; top: 41%; width: 17%; }
	.nfk-about__illust.is-fish       { left: 81%; top: 59%; width: 18%; }

	/* 下まわり（下端そろえ） */
	.nfk-about__illust.is-rice       { left:  4%; top: auto; bottom: 10%; width: 16%; display: block; }
	.nfk-about__illust.is-kids       { left: 36%; top: auto; bottom:  2%; width: 28%; }
	.nfk-about__illust.is-map        { left: 80%; top: auto; bottom: 10%; width: 19%; }
}

/* --- スマホ：数を絞らず、そのまま比率だけ小さくして輪を保つ --- */
@media (max-width: 599px) {
	.nfk-about__body { max-width: 62%; font-size: 13px; }
	.nfk-about__illust.is-kids { top: 91%; width: 30%; }
}


/* =========================================================
   産学農福連携
   ========================================================= */
.nfk-collab { padding-block: clamp(30px, 5vw, 60px) clamp(50px, 8vw, 100px); }

.nfk-collab__head { text-align: center; }

.nfk-collab__lead { display: block; margin-inline: auto; width: min(460px, 62vw); }
.nfk-collab__lead img { width: 100%; display: block; }

.nfk-collab__title {
	margin: .2em 0 .6em;
	font-size: clamp(24px, 3.4vw, 40px);
	font-weight: 700;
	letter-spacing: .3em;
	text-indent: .3em;
}

.nfk-collab__pill {
	display: inline-block;
	margin: 0;
	padding: .5em 1.6em;
	border-radius: 999px;
	background: var(--nfk-green);
	color: #fff;
	font-size: clamp(13px, 1.6vw, 18px);
	letter-spacing: .06em;
}

/* ---- 相関図（画像） ---- */
.nfk-flow {
	position: relative;
	margin-top: clamp(36px, 5vw, 70px);
	padding-top: clamp(26px, 4vw, 54px);
}

/* 画像自体に白い角丸カードと影が入っているので、CSS では装飾しません */
.nfk-flow__row,
.nfk-flow__line {
	position: relative;
	z-index: 1;
	margin-inline: auto;
}

.nfk-flow__row { max-width: 900px; }

/* 左右にイラストを置くぶんの余白を必ず残す（画面幅が縮んでも重ならない） */
.nfk-flow__line { width: min(760px, 74%); margin-top: clamp(16px, 2.6vw, 32px); }

.nfk-flow__row :is(picture, img),
.nfk-flow__line img { width: 100%; height: auto; display: block; }

/* まわりのイラスト */
.nfk-flow__illust { position: absolute; z-index: 2; pointer-events: none; }
.nfk-flow__illust img { width: 100%; height: auto; display: block; }

.nfk-flow__illust.is-farmer  { width: clamp(76px, 14%, 165px); left:  0;  top: -12%; }
.nfk-flow__illust.is-creator { width: clamp(90px, 17%, 195px); right: 0;  top: -10%; }
.nfk-flow__illust.is-office  { width: clamp(60px, 12%, 140px); left:  0;  bottom: -6%; }
.nfk-flow__illust.is-sales   { width: clamp(54px, 11%, 126px); right: 0;  bottom: -8%; }

/* --- スマホ：縦組みの図に差し替わるので、まわりのイラストも置き直す --- */
@media (max-width: 767px) {
	.nfk-flow { padding-top: clamp(30px, 8vw, 60px); }

	/* 縦長の図。イメージ図の比率（図 85% / 帯は横いっぱい）に合わせる */
	.nfk-flow__row  { width: min(420px, 85%); max-width: none; }
	.nfk-flow__line { width: 100%; max-width: none; margin-top: clamp(14px, 4vw, 26px); }

	.nfk-flow__illust.is-farmer  { width: 20%; left: -1%;  top: 26%; bottom: auto; }
	.nfk-flow__illust.is-creator { width: 26%; right: -2%; top: 52%; bottom: auto; }

	/* 事務局・営業マンは帯の奥（下）に置く。重なっても図が前面 */
	.nfk-flow__illust.is-office  { width: 17%; left: 0;  bottom: 7%; top: auto; z-index: 0; }
	.nfk-flow__illust.is-sales   { width: 16%; right: 0; bottom: 2%; top: auto; z-index: 0; }
}


/* =========================================================
   活動写真（横スクロール）
   ========================================================= */
.nfk-photos { padding-block: clamp(30px, 5vw, 60px); }

.nfk-marquee {
	display: flex;
	width: 100%;
	overflow: hidden;
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.nfk-marquee__track {
	display: flex;
	flex: none;
	gap: clamp(10px, 1.6vw, 22px);
	margin: 0;
	padding: 0 clamp(5px, .8vw, 11px) 0 0;
	list-style: none;
	animation: nfk-marquee 42s linear infinite;
}

.nfk-marquee__track li { flex: none; width: clamp(190px, 22vw, 320px); }

.nfk-marquee__track img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 4px;
	display: block;
}

.nfk-marquee:hover .nfk-marquee__track { animation-play-state: paused; }

@keyframes nfk-marquee { to { transform: translateX(-100%); } }

@media (prefers-reduced-motion: reduce) {
	.nfk-marquee { overflow-x: auto; mask-image: none; }
	.nfk-marquee__track { animation: none; }
	.nfk-marquee__track[aria-hidden="true"] { display: none; }
}


/* =========================================================
   カルタ
   ========================================================= */
.nfk-karuta {
	/* 浮かぶ札のエリア。デザインの比率（横 656 : 縦 1183）に合わせている */
	--nfk-cardsW: min(640px, 76vw);
	--nfk-cardsH: calc(var(--nfk-cardsW) * 1.8);
	--nfk-waveH:  min(12.9vw, 248px);
	--nfk-waveTop: calc(var(--nfk-cardsH) - var(--nfk-cardsW) * .41);

	/*margin-top: clamp(24px, 4vw, 60px); */
	padding-bottom: clamp(60px, 9vw, 110px);
	background: transparent;
}

/* セクション背景＝カルタ本体の写真
   （assets/img/bg/karuta-bg.jpg を差し替えれば入れ替わります） */
.nfk-karuta__bg {
	position: absolute;
	inset-inline: 0;
	top: var(--nfk-waveTop);
	/* 協力事業者セクションの上端カーブの下まで伸ばして、波の内側にも写真を見せる */
	bottom: calc(-1 * min(11.1vw, 213px));
	z-index: 0;
	/* どの画面サイズでも写真で埋まり、箱（カルタ本体）が切れないように、
	   写真の中の箱の中心（横 54% / 縦 50%）を基準に cover で配置しています */
	background: url("../img/bg/karuta-bg.jpg") 54% 50% / cover no-repeat;
}

/* 札のエリアは紙色のまま */
.nfk-karuta::before {
	content: "";
	position: absolute;
	z-index: 1;
	inset-inline: 0;
	top: 0;
	height: var(--nfk-waveTop);
	background: var(--nfk-paper);
}

/* 紙色 → 写真 のやわらかい境界（デザインの曲線をトレース） */
.nfk-karuta::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset-inline: 0;
	top: var(--nfk-waveTop);
	margin-top: -1px;
	height: var(--nfk-waveH);
	background: var(--nfk-paper);
	-webkit-mask: var(--nfk-wave-karuta) center / 100% 100% no-repeat;
	mask: var(--nfk-wave-karuta) center / 100% 100% no-repeat;
}

/* ---- 浮かぶカルタ札 ---- */
.nfk-karuta__cards {
	position: relative;
	z-index: 3;
	width: var(--nfk-cardsW);
	height: var(--nfk-cardsH);
	margin-inline: auto;
}

.nfk-karuta__card {
	position: absolute;
	width: 38%;
	pointer-events: auto;
	cursor: pointer;
	perspective: 1000px;
}

.nfk-karuta__card.is-1 { left: 10%; top:  0;    rotate: -6deg; }
.nfk-karuta__card.is-2 { left: 46.3%; top: 23.0%; rotate:  8deg; }
.nfk-karuta__card.is-3 { left:  0;    top: 38%; rotate: -9deg; }
.nfk-karuta__card.is-4 { left: 39.0%; top: 60%; rotate:  3deg; }

/* 縦軸まわりの回転で表 ⇄ 裏 */
.nfk-karuta__cardInner {
	position: relative;
	display: block;
	transform-style: preserve-3d;
	transition: transform .8s cubic-bezier(.2, .75, .3, 1);
}

.nfk-karuta__card:hover .nfk-karuta__cardInner,
.nfk-karuta__card.is-flipped .nfk-karuta__cardInner { transform: rotateY(180deg); }

.nfk-karuta__face {
	display: block;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.nfk-karuta__face img {
	width: 100%;
	display: block;
	border-radius: 2px;
	box-shadow: 0 6px 16px rgb(0 0 0 / .16);
}

.nfk-karuta__face.is-back {
	position: absolute;
	inset: 0;
	transform: rotateY(180deg);
}

@media (prefers-reduced-motion: reduce) {
	.nfk-karuta__cardInner { transition: none; }
}

/* ---- ボタン・実物写真 ---- */
/* カルタの実物はセクション背景で見せているので、ここはバッジボタンだけ */
.nfk-karuta__body {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: auto;
	justify-content: start;
	margin-top: clamp(40px, 6vw, 96px);
}

/* ギザギザの丸ボタン。
   ギザギザは ::before の背景として描く（ボタン自体をマスクすると、
   上にはみ出すバナナのイラストまで切り取られてしまうため） */
.nfk-badgeBtn {
	position: relative;
	display: grid;
	place-items: center;
	align-content: center;
	gap: .35em;
	width: clamp(132px, 16vw, 196px);
	aspect-ratio: 1;
	color: var(--nfk-green);
	font-size: clamp(13px, 1.75vw, 24px);
	text-decoration: none;
	text-align: center;
	transition: color .25s;
}

.nfk-badgeBtn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: #fff;
	-webkit-mask: var(--nfk-mask-scallop) center / 100% 100% no-repeat;
	mask: var(--nfk-mask-scallop) center / 100% 100% no-repeat;
}

/* マスク非対応ブラウザ用 */
@supports not ((-webkit-mask: url("")) or (mask: url(""))) {
	.nfk-badgeBtn::before { border-radius: 50%; -webkit-mask: none; mask: none; }
}

.nfk-badgeBtn > * { position: relative; z-index: 1; }

.nfk-badgeBtn:hover,
.nfk-badgeBtn:focus-visible { color: var(--nfk-green-dark); }

/* バナナはボタンの上に重ねて全体を見せる（文字にはかからない位置） */
.nfk-badgeBtn__illust {
	position: absolute;
	left: 50%;
	top: -10%;
	width: 38%;
	translate: -50% 0;
	z-index: 2;
}

.nfk-badgeBtn__illust img { width: 100%; display: block; }

.nfk-badgeBtn__label {
	margin-top: 1.3em;   /* バナナの下に来るように少し下げる */
	white-space: nowrap;
	font-size: 1em;
	font-weight: 700;
	letter-spacing: .08em;
}

/* 緑の丸から矢印をくり抜いたデザイン */
.nfk-badgeBtn__arrow {
	width: 2.4em;
	aspect-ratio: 1;
	background: var(--nfk-green);
	-webkit-mask: var(--nfk-mask-arrow) center / 100% 100% no-repeat;
	mask: var(--nfk-mask-arrow) center / 100% 100% no-repeat;
	transition: translate .25s;
}

.nfk-badgeBtn:hover .nfk-badgeBtn__arrow { translate: 3px 0; }

.nfk-karuta__farmer {
	position: absolute;
	left: clamp(8px, 4vw, 90px);
	bottom: clamp(0px, 1vw, 18px);
	width: clamp(80px, 9vw, 130px);
	z-index: 3;
	pointer-events: none;
}

.nfk-karuta__farmer img { width: 100%; display: block; }

@media (max-width: 767px) {
	.nfk-karuta__body { justify-content: center; margin-top: clamp(28px, 8vw, 60px); }
	.nfk-karuta__farmer { display: none; }
}


/* =========================================================
   協力事業者
   ========================================================= */
.nfk-partners {
	--nfk-pWaveTop: min(11.1vw, 213px);
	padding-block: clamp(70px, 11vw, 150px);
	/* 下地は .nfk-partners__bg と ::before が描く（上端カーブより上は透過） */
	background: transparent;
}

/* 上端カーブより下の淡緑 */
.nfk-partners__bg {
	position: absolute;
	inset: calc(var(--nfk-pWaveTop) - 1px) 0 0;
	z-index: 0;
	background: var(--nfk-green-light);
}

/* 上下のなみなみ（デザインの曲線をトレース） */
.nfk-partners::before,
.nfk-partners::after {
	content: "";
	position: absolute;
	inset-inline: 0;
}

/* 上端の波：カーブより「下」だけを淡緑で塗る。
   上側は透過なので、下に伸ばした .nfk-karuta__bg（カルタ写真）が見える */
.nfk-partners::before {
	top: 0;
	height: var(--nfk-pWaveTop);
	background: var(--nfk-green-light);
	-webkit-mask: var(--nfk-wave-partners-top-below) center / 100% 100% no-repeat;
	mask: var(--nfk-wave-partners-top-below) center / 100% 100% no-repeat;
}

.nfk-partners::after {
	bottom: 0;
	margin-bottom: -1px;
	height: min(11.3vw, 216px);
	background: var(--nfk-paper);
	-webkit-mask: var(--nfk-wave-partners-bottom) center / 100% 100% no-repeat;
	mask: var(--nfk-wave-partners-bottom) center / 100% 100% no-repeat;
        background: #fff;
}

.nfk-partners .nfk-inner { position: relative; z-index: 1; }

.nfk-partners .nfk-secTitle { text-align: right; }

/* 協力事業者のショート動画カード（縦型 9:16）。
   再生前はサムネイルだけ表示し、押すとポップアップで再生します */
.nfk-partners__video {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	aspect-ratio: 9 / 16;
	overflow: hidden;
	border-radius: 8px;
	background: #000;
	box-shadow: 0 3px 14px rgb(0 0 0 / .14);
}

button.nfk-partners__video { cursor: pointer; appearance: none; }

/* サムネイル。アップロード動画のときは <video> の先頭コマがそのまま出ます */
.nfk-videoBtn__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
	background: #000;
	transition: scale .4s, opacity .25s;
}

/* 中央の再生マーク */
.nfk-videoBtn__play {
	position: absolute;
	left: 50%;
	top: 50%;
	width: clamp(44px, 22%, 72px);
	aspect-ratio: 1;
	translate: -50% -50%;
	border-radius: 50%;
	background: rgb(255 255 255 / .92);
	box-shadow: 0 2px 12px rgb(0 0 0 / .35);
	transition: background-color .25s, scale .25s;
}

.nfk-videoBtn__play::before {
	content: "";
	position: absolute;
	left: 56%;
	top: 50%;
	translate: -50% -50%;
	border-block: .6em solid transparent;
	border-left: 1em solid var(--nfk-green);
	font-size: clamp(11px, 4.4vw, 18px);
	transition: border-left-color .25s;
}

.nfk-videoBtn:hover .nfk-videoBtn__thumb,
.nfk-videoBtn:focus-visible .nfk-videoBtn__thumb { scale: 1.04; opacity: .85; }

.nfk-videoBtn:hover .nfk-videoBtn__play,
.nfk-videoBtn:focus-visible .nfk-videoBtn__play { background: var(--nfk-green); scale: 1.08; }

.nfk-videoBtn:hover .nfk-videoBtn__play::before,
.nfk-videoBtn:focus-visible .nfk-videoBtn__play::before { border-left-color: #fff; }

/* どの方式でも再生できない URL のときだけ、控えめなリンク表示になる */
.nfk-partners__video .nfk-video__fallback {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	padding: 1em;
	color: #fff;
	font-weight: 700;
	font-size: clamp(12px, 1.4vw, 15px);
	letter-spacing: .06em;
	line-height: 1.6;
	text-align: center;
	text-decoration: underline;
}


/* ---- 再生ポップアップ ---- */
/* 画面いっぱいのレイヤーにして、その中央に動画を置く */
.nfk-videoModal {
	position: fixed;
	inset: 0;
	width: 100vw;
	max-width: 100vw;
	height: 100vh;
	max-height: 100vh;
	height: 100dvh;
	max-height: 100dvh;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: hidden;
}

.nfk-videoModal[open] {
	display: grid;
	place-items: center;   /* 縦横とも中央 */
}

.nfk-videoModal::backdrop { background: rgb(0 0 0 / .72); }

/* 縦型（9:16）を基準に、画面に収まる大きさで表示します */
.nfk-videoModal__frame {
	width: min(92vw, 86vh * 9 / 16, 405px);
	width: min(92vw, 86dvh * 9 / 16, 405px);
	aspect-ratio: 9 / 16;
	border-radius: 10px;
	overflow: hidden;
	background: #000;
}

.nfk-videoModal__frame :is(iframe, video) {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
	object-fit: contain;
	background: #000;
}

/* 閉じるボタンは画面の右上に固定（動画の大きさに影響されない） */
.nfk-videoModal__close {
	position: fixed;
	top: max(12px, env(safe-area-inset-top, 0px));
	right: max(12px, env(safe-area-inset-right, 0px));
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(255 255 255 / .18);
	cursor: pointer;
	z-index: 1;
}

.nfk-videoModal__close:hover,
.nfk-videoModal__close:focus-visible { background: rgb(255 255 255 / .32); }

.nfk-videoModal__close::before,
.nfk-videoModal__close::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 20px;
	height: 2px;
	background: #fff;
	translate: -50% -50%;
}

.nfk-videoModal__close::before { rotate: 45deg; }
.nfk-videoModal__close::after  { rotate: -45deg; }

@media (prefers-reduced-motion: reduce) {
	.nfk-videoBtn__thumb, .nfk-videoBtn__play { transition: none; }
}

.nfk-partners__list {
	display: grid;
	/* 広い画面で 4 列、スマホで 2 列。本数が増えても自動で折り返します */
	grid-template-columns: repeat(auto-fill, minmax(min(230px, 46%), 1fr));
	align-items: start;
	gap: clamp(14px, 2.6vw, 34px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nfk-partners__name {
	display: block;
	margin-top: .8em;
	font-size: clamp(13px, 1.5vw, 16px);
	font-weight: 700;
	letter-spacing: .12em;
	text-indent: .12em;
	line-height: 1.5;
	text-align: center;
}


/* =========================================================
   企業ロゴ
   ========================================================= */
.nfk-logos { padding-block: clamp(50px, 9vw, 120px); background-color: #fff;}

.nfk-logos__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	align-items: center;
	gap: clamp(24px, 4vw, 56px) clamp(16px, 3vw, 40px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nfk-logos__item { display: grid; place-items: center; min-height: 90px; }

.nfk-logos__item img {
	max-width: 100%;
	max-height: 90px;
	width: auto;
	object-fit: contain;
	mix-blend-mode: multiply;
}

.nfk-logos__item.is-text span {
	font-size: clamp(13px, 1.5vw, 16px);
	letter-spacing: .06em;
	text-align: center;
	color: #4A4A45;
}


/* =========================================================
   スクロール時のフェードイン（JS で .nfk-reveal を付与）
   ========================================================= */
.nfk-reveal {
	opacity: 0;
	translate: 0 24px;
	transition: opacity .7s ease var(--nfk-delay, 0ms), translate .7s cubic-bezier(.22, .8, .3, 1) var(--nfk-delay, 0ms);
}

.nfk-reveal.is-shown { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
	.nfk-reveal { opacity: 1; translate: none; transition: none; }
}
