@charset "utf-8";

/* ==========================================================================
   しあわせる。富山 2026年11月開催 ティザーサイト
   デザインカンプ: 【ティザーデザイン_通常版】20260908_web_2026.pdf（1300px幅 / 1pt = 1px）
   Q数は72dpi基準で換算（1Q = 0.25mm ＝ 約0.709px）
     36Q≒25.5px / 21Q≒14.9px / 30Q≒21.3px / 50Q≒35.4px / 55Q≒39px
   画像素材は144ppi（＠2x）で支給。CSS上は実寸の半分で配置する
   ========================================================================== */

:root {
	--color-text: #201816;
	--color-white: #ffffff;
	--color-red: #B83B2D;
	/* CTAボタン・フォームの赤（カンプ実測） */
	--color-gray: #D1D1D2;
	/* アーカイブ動画セクション背景（カンプ実測） */
	--color-black: #000000;
	/* フッター帯（カンプ実測） */

	--header-height: 125px;

	--font-main: "A-OTF 見出ゴMB31 Pr5", "MidashiGoPr5-MB31", "見出ゴMB31",
		"Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

/* --------------------------------------------------------------- リセット */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-main);
	color: var(--color-text);
	background: var(--color-white);
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	vertical-align: bottom;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	border: 0;
	background: none;
	padding: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
}

[hidden] {
	display: none !important;
}

/* =========================================================== ヘッダー */
.l-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	height: var(--header-height);
	background: var(--color-white);
}

.l-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
	max-width: 1300px;
	margin-inline: auto;
	padding-inline: clamp(20px, 4vw, 56px);
}

.l-header__logo {
	font-size: 25.5px;
	/* 36Q */
	font-weight: 700;
	letter-spacing: .04em;
	white-space: nowrap;
}

.l-header__nav {
	display: flex;
	align-items: center;
	gap: clamp(16px, 2.4vw, 30px);
}

.l-header__list {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2.2vw, 28px);
	font-size: 14.9px;
	/* 21Q */
	font-weight: 700;
	white-space: nowrap;
}

.l-header__list a:hover,
.l-header__sns a:hover {
	opacity: .6;
}

.l-header__sns {
	display: flex;
	align-items: center;
	gap: 8px;
}

.l-header__sns img,
.l-header__sns svg {
	width: 29px;
	height: 29px;
	display: block;
}

/* ハンバーガー（SPのみ表示） */
.l-header__toggle {
	display: none;
	width: 32px;
	height: 24px;
	position: relative;
}

.l-header__toggle span {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: var(--color-text);
	transition: transform .3s, opacity .3s;
}

.l-header__toggle span:nth-child(1) {
	top: 0;
}

.l-header__toggle span:nth-child(2) {
	top: 11px;
}

.l-header__toggle span:nth-child(3) {
	bottom: 0;
}

.l-header__toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(11px) rotate(45deg);
}

.l-header__toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.l-header__toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-11px) rotate(-45deg);
}

/* =========================================================== ヒーロー
   動画は画面に貼り付いたまま、下から本文が重なって上がってくる
   （パララックスはこの sticky だけで実現し、JS もライブラリも使わない）
   ------------------------------------------------------------------- */
/* カンプではヘッダー(125px)の下から動画が始まり、画面下端まで占める */
.p-hero {
	position: relative;
	z-index: 0;
	margin-top: var(--header-height);
	height: calc(100vh - var(--header-height));
}

.p-hero__media {
	/* 指示書「動画は背景で動かしっぱなしでコンテンツを上げていく」
	   sticky だと親と同じ高さで固定される余地がないため fixed で背景に留める */
	position: fixed;
	top: var(--header-height);
	left: 0;
	width: 100%;
	height: calc(100vh - var(--header-height));
	overflow: hidden;
	background: #111;
}

/* 背景映像。YouTube iframe は object-fit が効かないので、
   16:9 を保ったまま領域を覆うサイズを計算して中央に置く
   （指示書の「若干縦型トリミング」＝どの比率でも画面いっぱいに広がる状態） */
.p-hero__video {
	position: absolute;
	inset: 0;
	overflow: hidden;
	/* 再生ボタンのクリックを iframe に奪わせない */
	pointer-events: none;
}

.p-hero__video iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: max(100%, calc((100vh - var(--header-height)) * 16 / 9));
	height: max(100%, calc(100vw * 9 / 16));
	max-width: none;
	border: 0;
}

/* 自前 mp4 は object-fit で覆う（SP の縦画面でも上下に黒帯を出さない）。
   リセットの video { max-width:100% } が効かないよう明示的に外す */
.p-hero__video video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}

.p-hero__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	/* TODO: カンプ上の再生ボタンは約260px幅。素材 yticon.png は301×211で、
	   他素材と同じ@2x換算だと150pxになり小さすぎるためカンプ実測に合わせている（要確認） */
	width: clamp(150px, 20vw, 260px);
	transition: transform .3s;
}

.p-hero__play svg {
	width: 100%;
	height: auto;
	display: block;
}

/* カンプの再生ボタン: 半透明のグレー地に白い三角 */
.p-hero__play rect {
	fill: rgba(255, 255, 255, .5);
}

.p-hero__play:hover {
	transform: translate(-50%, -50%) scale(1.06);
}

/* =========================================================== 本文（動画の上に乗る） */
.l-content {
	position: relative;
	z-index: 1;
	background: var(--color-white);
}

/* --------------------------------------------------------------- 予告 */
/* 余白はすべてカンプ（1300px幅）からの実測値 */
.p-notice {
	position: relative;
	padding: 45px 20px 120px;
	text-align: center;
	overflow: hidden;
}

/* 背景の薄いイラスト */
.p-notice::before {
	content: "";
	position: absolute;
	top: 120px;
	left: 50%;
	transform: translateX(-50%);
	width: 1162px;
	max-width: 96%;
	aspect-ratio: 1162 / 1050;
	background: url("../images/haikei.png?260922") center top / contain no-repeat;
	pointer-events: none;
}

.p-notice__inner {
	position: relative;
	/* 「〜より参加申し込み開始」の1行を収めるためカンプの本文幅より広く取る */
	max-width: 880px;
	margin-inline: auto;
}

.p-notice__label {
	margin: 0;
}

.p-notice__label img {
	width: 184px;
}

.p-notice__title {
	margin: 60px 0 0;
	font-size: inherit;
	font-weight: inherit;
}

.p-notice__title img {
	width: 609px;
}

.p-notice__text {
	margin: 77px auto 0;
	/* カンプ実測: 本文幅710px・3行・行送り35px */
	max-width: 710px;
	font-size: 21.3px;
	/* 30Q */
	line-height: 1.64;
	text-align: left;
}

.p-notice__start {
	margin: 100px 0 0;
	font-size: clamp(28px, 3vw, 39px);
	/* 55Q */
	font-weight: 700;
	letter-spacing: .02em;
	/* カンプは行間の余白を持たない1行 */
	line-height: 1.2;
	/* カンプでは1行。折り返させない */
	white-space: nowrap;
}

.p-notice__cta {
	margin: 50px 0 0;
}

/* ボタン素材は枠のみ。文字はテキストで重ねる */
.c-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* カンプ実測: 665×90px。素材 moushikomi.png は 1340×206 */
	width: 665px;
	max-width: 100%;
	aspect-ratio: 1340 / 206;
	background: url("../images/moushikomi.png?260922") center / 100% 100% no-repeat;
	color: var(--color-white);
	font-size: 21.3px;
	/* 30Q */
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.2;
	transition: opacity .3s;
}

.c-button:hover {
	opacity: .85;
}

.p-notice__note {
	margin: 25px 0 0;
	font-size: 21.3px;
	/* 30Q */
	line-height: 1.2;
}

/* --------------------------------------------------------------- アーカイブ動画 */
.p-archive {
	background: var(--color-gray);
	/* カンプ実測: 帯上端→見出し42px、サムネイル下→帯下端80px */
	padding: 42px 0 80px;
}

.p-archive__heading {
	margin: 0 0 37px;
	text-align: center;
}

.p-archive__heading img {
	width: 432px;
	/* 864px@2x */
}

.p-archive__carousel {
	position: relative;
}

/* カンプ: サムネイル列の背面は黒帯（全幅）、各サムネイルは角丸 */
.p-archive__list {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	/* 送り量とイージングは main.js が制御するため、CSS 側では
	   scroll-behavior / scroll-snap を指定しない（二重制御になるのを避ける） */
	padding: 12px 18px;
	background: var(--color-black);
	scrollbar-width: none;
}

.p-archive__list::-webkit-scrollbar {
	display: none;
}

.p-archive__item {
	flex: 0 0 auto;
	/* カンプ実測: 1300px幅で427px */
	width: clamp(280px, 33vw, 427px);
}

.p-archive__item a {
	position: relative;
	display: block;
	transition: opacity .3s;
}

.p-archive__item a:hover {
	opacity: .85;
}

.p-archive__thumb {
	display: block;
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #e9e9ea;
	/* カンプ: 角丸 */
	border-radius: 10px;
}

.p-archive__time {
	position: absolute;
	right: 10px;
	bottom: 10px;
	padding: 2px 8px;
	background: rgba(0, 0, 0, .78);
	color: var(--color-white);
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1.5;
}

.p-archive__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .35);
	transition: background .3s, opacity .3s;
}

.p-archive__arrow:hover {
	background: rgba(0, 0, 0, .55);
}

.p-archive__arrow svg {
	width: 22px;
	height: 22px;
}

.p-archive__arrow--prev {
	left: 14px;
}

.p-archive__arrow--next {
	right: 14px;
}

/* --------------------------------------------------------------- 過去のしあわせる。富山 */
/* カンプ実測（1300px基準）:
   グレー帯下端 → 立山まで 111px、立山 → 見出しまで 156px（合計が指示書の「400px」）
   年度リストの行送りは 62px */
.p-past {
	padding: 111px 20px 0;
	text-align: center;
}

.p-past__illust {
	margin-bottom: 156px;
}

.p-past__illust img {
	width: min(100%, 1198px);
}

.p-past__heading {
	margin: 0;
	font-size: 35.4px;
	/* 50Q */
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.2;
}

.p-past__list {
	margin-top: 20px;
	font-size: 21.3px;
	/* 30Q */
	line-height: 2.91;
	/* 行送り62px */
}

.p-past__list a:hover {
	opacity: .6;
	text-decoration: underline;
}

/* =========================================================== フッター */
.l-footer {
	position: relative;
	z-index: 1;
	background: var(--color-white);
}

.l-footer__logo {
	/* カンプ: 年度リスト最終行からフッター帯まで145px。その中央にロゴ */
	padding: 58px 20px;
	text-align: center;
}

.l-footer__address {
	/* カンプ: 帯の高さ75px */
	padding: 8px 20px;
	background: var(--color-black);
	color: var(--color-white);
	font-size: 11px;
	line-height: 1.79;
	text-align: center;
}

/* =========================================================== 動画モーダル */
.c-modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: 20px;
}

.c-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .8);
}

.c-modal__body {
	position: relative;
	width: min(1000px, 92vw);
}

.c-modal__frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #000;
	/* 黒背景の角丸 */
	border-radius: 14px;
	overflow: hidden;
}

.c-modal__frame iframe,
.c-modal__frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.c-modal__close {
	position: absolute;
	top: -44px;
	right: 0;
	width: 36px;
	height: 36px;
	color: var(--color-white);
	font-size: 30px;
	line-height: 1;
}

/* =========================================================== リマインド登録モーダル */
.c-modal__body--form {
	width: min(560px, 92vw);
}

.c-remind {
	background: var(--color-white);
	border-radius: 14px;
	padding: clamp(28px, 4vw, 44px) clamp(22px, 4vw, 44px);
	text-align: center;
}

.c-remind__title {
	margin: 0;
	font-size: clamp(20px, 2vw, 25.5px);
	font-weight: 700;
	letter-spacing: .04em;
	line-height: 1.4;
}

.c-remind__lead {
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.8;
}

.c-remind__form {
	margin-top: 24px;
	text-align: left;
}

.c-remind__label {
	display: block;
	font-size: 14px;
	font-weight: 700;
	margin-bottom: 8px;
}

.c-remind__input {
	display: block;
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 1px solid #b5b5b5;
	border-radius: 8px;
	font: inherit;
	font-size: 16px;
	/* iOS のズームを防ぐため 16px 以上 */
	color: var(--color-text);
	background: var(--color-white);
}

.c-remind__input:focus {
	outline: 2px solid var(--color-red);
	outline-offset: 1px;
	border-color: var(--color-red);
}

.c-remind__input[aria-invalid="true"] {
	border-color: var(--color-red);
}

/* ハニーポット: 画面外に置き、人には見えない */
.c-remind__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Turnstile ウィジェットの置き場（描画前も高さを確保してガタつかせない） */
.c-remind__turnstile {
	display: flex;
	justify-content: center;
	min-height: 65px;
	margin-top: 16px;
}

.c-remind__submit {
	display: block;
	width: 100%;
	height: 56px;
	margin-top: 18px;
	border-radius: 10px;
	background: var(--color-red);
	color: var(--color-white);
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .04em;
	transition: opacity .3s;
}

.c-remind__submit:hover {
	opacity: .85;
}

.c-remind__submit:disabled {
	opacity: .5;
	cursor: wait;
}

.c-remind__msg {
	margin: 12px 0 0;
	min-height: 1.6em;
	font-size: 14px;
	line-height: 1.6;
	color: var(--color-red);
}

.c-remind__done {
	margin-top: 24px;
	line-height: 1.8;
}

.c-remind__done p {
	margin: 0;
}

.c-remind__done-title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 6px !important;
}

/* =========================================================== レスポンシブ（SP）
   SPカンプ: 20260909_SP_2026.pdf（750px幅 = 375px @2x）。数値は実測を 1/2 にしたもの。
   SP素材（144ppi）は CSS の 1/4 で配置する
   ------------------------------------------------------------------- */
/* SP のみ改行 */
.u-sp {
	display: none;
}

@media screen and (max-width: 767px) {
	.u-sp {
		display: inline;
	}

	:root {
		--header-height: 44px;
	}

	/* --- ヘッダー: ロゴ左、右に角丸枠のハンバーガー --- */
	.l-header__inner {
		padding-inline: 16px;
	}

	.l-header__logo {
		font-size: 13px;
		/* 36Q */
	}

	/* 支給素材 menuSP.png（133×113 @4x）の実測: 枠線2px・角丸13px・バー 54×6px（x=39〜92）・
	   バー上端 y=36/53/71。CSS では 1/4 にして枠のみ 1px に丸める */
	.l-header__toggle {
		display: block;
		width: 33px;
		height: 28px;
		border: 1px solid var(--color-text);
		border-radius: 3.5px;
		padding: 0;
		box-sizing: border-box;
	}

	.l-header__toggle span {
		left: 8.75px;
		width: 13.5px;
		height: 1.5px;
	}

	.l-header__toggle span:nth-child(1) { top: 8px; }
	.l-header__toggle span:nth-child(2) { top: 12.25px; }
	.l-header__toggle span:nth-child(3) { top: 16.5px; bottom: auto; }
	.l-header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
	.l-header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4.25px) rotate(-45deg); }

	.l-header__nav {
		position: fixed;
		inset: var(--header-height) 0 auto;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 6px 20px 22px;
		background: var(--color-white);
		border-top: 1px solid #e5e5e5;
		transform: translateY(-120%);
		transition: transform .35s;
	}

	.l-header__nav.is-open {
		transform: translateY(0);
	}

	.l-header__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		font-size: 16px;
	}

	.l-header__list a {
		display: block;
		padding: 12px 0;
	}

	.l-header__sns {
		padding-top: 12px;
	}

	/* --- ヒーロー: 画面いっぱい（1334px @2x ≒ 100vh）、再生アイコンは 75px --- */
	.p-hero__play {
		width: 75px;
	}

	/* --- 予告: カンプ実測（CSS px, セクション上端基準）
	   ラベル50-88 / タイトル113-227 / 本文249-351 / 申込開始日368-429 / CTA443-536 / 注記558-610 / 帯625 --- */
	.p-notice {
		padding: 50px 20px 16px;
	}

	.p-notice::before {
		top: 40px;
		width: 581px;
		max-width: none;
		left: 50%;
	}

	.p-notice__label img {
		width: 92px;
	}

	.p-notice__title {
		margin-top: 25px;
	}

	.p-notice__title img {
		width: 310px;
	}

	.p-notice__text {
		margin: 17px auto 0;
		max-width: 310px;
		font-size: 14px;
		/* 40Q。カンプ実測: 5行・行送り20px */
		line-height: 1.46;
		font-weight: 700;
	}

	.p-notice__start {
		margin-top: 17px;
		font-size: 19.5px;
		/* 55Q。2行・行送り30.5px */
		line-height: 1.56;
		white-space: normal;
	}

	.p-notice__cta {
		margin-top: 14px;
	}

	/* CTA: 2行。枠は SP 用素材（1241×372 → 310×93） */
	.c-button {
		width: 310px;
		max-width: 100%;
		aspect-ratio: 1242 / 372;
		background-image: url("../images/sp/moushikomiSP.png?260922");
		font-size: 22px;
		/* カンプ実測: 行送り32.5px */
		line-height: 1.48;
		padding: 0 12px;
		text-align: center;
	}

	.p-notice__note {
		margin-top: 22px;
		font-size: 14px;
		/* 40Q。行送り26px */
		line-height: 1.86;
		font-weight: 700;
	}

	/* --- アーカイブ動画: 見出しエリア100 / 黒帯125 / 下50 --- */
	.p-archive {
		padding: 0 0 50px;
	}

	.p-archive__heading {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100px;
		margin: 0;
	}

	.p-archive__heading img {
		width: 230.5px;
		/* 922px@4x */
	}

	.p-archive__list {
		gap: 10px;
		padding: 10px;
	}

	.p-archive__item {
		width: 185px;
	}

	.p-archive__time {
		right: 6px;
		bottom: 6px;
		padding: 1px 6px;
		font-size: 12px;
	}

	.p-archive__arrow {
		width: 36px;
		height: 36px;
	}

	.p-archive__arrow svg {
		width: 18px;
		height: 18px;
	}

	.p-archive__arrow--prev { left: 6px; }
	.p-archive__arrow--next { right: 6px; }

	/* --- 過去の「しあわせる。富山」: 帯下→立山26 / 立山→見出し55 / 行送り34 --- */
	.p-past {
		padding: 26px 0 0;
	}

	.p-past__illust {
		margin-bottom: 48px;
	}

	.p-past__illust img {
		width: 100%;
	}

	/* 見出し・年度とも実測 ≒17px（カンプ注記は55Qだが字面は小さい） */
	.p-past__heading {
		font-size: 17px;
	}

	.p-past__list {
		margin-top: 8px;
		font-size: 17px;
		line-height: 2;
		/* 行送り34px */
	}

	/* --- フッター: 最終行→ロゴ53 / ロゴ62px / →黒帯16 / 黒帯100px --- */
	.l-footer__logo {
		padding: 53px 20px 16px;
	}

	.l-footer__logo img {
		display: block;
		width: 62px;
		margin-inline: auto;
	}

	.l-footer__address {
		box-sizing: border-box;
		min-height: 100px;
		padding: 24px 16px;
		font-size: 12px;
		/* 35Q。行送り17.5px */
		line-height: 1.46;
	}

	/* --- 事前登録モーダル --- */
	.c-remind {
		padding: 26px 18px 28px;
	}
}

@media (prefers-reduced-motion: reduce) {

	html,
	.p-archive__list {
		scroll-behavior: auto;
	}
}
