/* =====================================================================
 * 細かいデザインの調整（2026-11-16。ビルドなし。common.css のあとに読み込む）
 *
 * 方針（frontend-design の考え方で見直した）
 * - このサイトの個性：紺 #004663、迷彩の地、トップの左の紺の地の大きな動物の足あと（獲物の跡を追う狩猟）。
 *   親の猟友会（緑・木の印）と同じ作りのテーマなので、青年部らしい「足あと」を生かす。新しい飾りや色は足さない。
 * - 見せ場は 1 つだけ：トップを開いたとき、紺の地の足あとが、動物が歩いてきたように下から上へ順に浮かび上がる（1 回きり）。
 * - ほかは静かに：見出しが画面の幅ぶん右から滑り込む動き（UIkit の slide-right）は、その場でふっと出るだけに。
 *   キーボードで動かしたときの印、「動きを減らす」設定への配慮。
 * ===================================================================== */

/* ------------------------------------------------------------ 見せ場：足あとが下から順に浮かぶ（トップ。div#front-first-view はトップだけ）
 * 元の背景の足あとを ::before に移し、マスクを下から上へ動かす。メニューなどの中身はその上に重なる */
div#front-first-view div.left {
	background-image: none;
	isolation: isolate;
}
div#front-first-view div.left:before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: url(../img/frontpage/left-bg.svg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: 80% auto;
	-webkit-mask-image: linear-gradient(to top, #000 0, #000 44%, transparent 56%, transparent 100%);
	mask-image: linear-gradient(to top, #000 0, #000 44%, transparent 56%, transparent 100%);
	-webkit-mask-size: 100% 220%;
	mask-size: 100% 220%;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-position: 0 0;
	mask-position: 0 0;
}
/* 読み込み中の幕（Pace）が消えてから歩き出す（Pace は終わると body に pace-done を付ける） */
body.pace-done div#front-first-view div.left:before {
	animation: ty-tracks 2.6s cubic-bezier(.45, .25, .55, .85) .2s both;
}
@keyframes ty-tracks {
	from { -webkit-mask-position: 0 0; mask-position: 0 0; }
	to { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
}

/* ------------------------------------------------------------ 見出し：右から滑り込むのをやめ、その場でふっと出る */
@keyframes ty-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}
div.heading-title.uk-animation-slide-right {
	animation-name: ty-fade;
	animation-duration: .7s;
}

/* ------------------------------------------------------------ キーボードで動かしたときの印（マウス・タップでは出ない） */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input[type="submit"]:focus-visible {
	outline: 2px solid #004663;
	outline-offset: 3px;
	border-radius: 2px;
}
div#front-first-view div.left a:focus-visible {
	outline-color: #fff;
}

/* ------------------------------------------------------------ 「動きを減らす」設定の人には動きを出さない */
@media (prefers-reduced-motion: reduce) {
	div#front-first-view div.left:before {
		animation: none !important;
		-webkit-mask-image: none;
		mask-image: none;
	}
}

:root {
	--pl-main: #004663; /* このサイトの色（メニューとフッターで使う。2026-11-17） */
}
/* =====================================================================
 * メニューとフッター（2026-11-17。徳島県猟友会・青年部のサイトで同じ内容（色は --pl-main だけ違う））
 * ===================================================================== */

/* ------------------------------------------------------------ 広い画面のメニュー：今いるページとマウスが乗った項目に白い下線
 * （header.php が li.pl-current・aria-current を付ける） */
@media only screen and (min-width: 1026px) {
	header.wrapper ul.menu a {
		position: relative;
		display: inline-block;
		padding: .4rem 0;
	}
	header.wrapper ul.menu a::after {
		content: '';
		position: absolute;
		left: 0;
		right: 0;
		bottom: -.2rem;
		height: 2px;
		background: #fff;
		transform: scaleX(0);
		transform-origin: left center;
		transition: transform .3s ease;
	}
	header.wrapper ul.menu a:hover::after,
	header.wrapper ul.menu li.pl-current a::after {
		transform: scaleX(1);
	}
}

/* ------------------------------------------------------------ スマホのメニュー（1025px 以下）：項目を線で区切り、右に小さな矢印。
 * 今いるページは太字と左の白い線。開くボタン・閉じるボタンはキーボードの印が見えるように（common.css が outline を消していた） */
/* 閉じるボタン（右上）の「CLOSE」の字が、最初の項目の矢印に重ならないように上を少し空ける */
header.wrapper ul.mobile-menu {
	padding-top: 9rem;
}
header.wrapper ul.mobile-menu li:not(.closebutton):not(.tel) {
	border-bottom: 1px solid rgba(255, 255, 255, .18);
}
header.wrapper ul.mobile-menu li:not(.closebutton):not(.tel) a {
	position: relative;
	display: block;
	padding: 0 2.4rem 0 1.2rem;
}
header.wrapper ul.mobile-menu li:not(.closebutton):not(.tel) a::after {
	content: '';
	position: absolute;
	right: .6rem;
	top: 50%;
	width: .7rem;
	height: .7rem;
	border-top: 1.5px solid rgba(255, 255, 255, .7);
	border-right: 1.5px solid rgba(255, 255, 255, .7);
	transform: translateY(-50%) rotate(45deg);
}
header.wrapper ul.mobile-menu li.pl-current a {
	font-weight: 700;
	box-shadow: inset 3px 0 0 #fff;
	background: rgba(255, 255, 255, .08);
}
header.wrapper ul.mobile-menu li.tel {
	border-top: 0;
	margin-top: 2rem;
}
header.wrapper ul.mobile-menu li.tel a {
	color: #fff;
	font-size: 1.8rem;
	letter-spacing: .06em;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .5rem;
}
header.wrapper #menu-button:focus-visible,
header.wrapper #close-button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
	border-radius: 2px;
}

/* ------------------------------------------------------------ フッター（footer.php を組み直し。2026-11-17 に整理）
 * 真ん中ぞろえの短い行が 7 段重なってごちゃごちゃして見えたので、2 つのまとまりに：
 * 上の段は左に名前・住所・連絡先、右にメニュー（3 行ずつの列）。細い線の下に、リンク・Facebook・コピーライトを 1 行に。
 * スマホは同じ順に縦に並べる（左ぞろえ）。白い地・灰色の字は今までどおり */
footer.pl-footer {
	padding-top: 6rem;
	padding-bottom: 3rem;
}
footer.pl-footer .pl-footer__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 4rem;
	padding-bottom: 4rem;
}
footer.pl-footer .pl-footer__name {
	margin-bottom: 1.4rem;
	font-size: 2rem;
	color: #3f3d41;
	letter-spacing: .06em;
}
footer.pl-footer p.address {
	margin: 0 0 .6rem;
	line-height: 1.8;
	text-align: left;
	font-size: 1.4rem;
	color: #646166;
}
footer.pl-footer .pl-footer__contact {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem 2.4rem;
	font-size: 1.4rem;
	color: #646166;
}
footer.pl-footer .pl-footer__contact .label {
	margin-right: .6rem;
	font-size: 1.1rem;
	letter-spacing: .12em;
	color: #8d8a90;
}
footer.pl-footer .pl-footer__contact a {
	color: var(--pl-main);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .4rem;
}
footer.pl-footer .pl-footer__nav ul {
	display: grid;
	grid-template-rows: repeat(3, auto);
	grid-auto-flow: column;
	gap: 1.2rem 4.8rem;
}
footer.pl-footer .pl-footer__nav a {
	position: relative;
	white-space: nowrap;
	padding-left: 1.4rem;
	font-size: 1.4rem;
	color: #3f3d41;
	letter-spacing: .04em;
	transition: color .25s ease;
}
/* 頭にサイトの色の短い線 */
footer.pl-footer .pl-footer__nav a::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: .6rem;
	height: 2px;
	background: var(--pl-main);
}
footer.pl-footer .pl-footer__nav a:hover {
	color: var(--pl-main);
}
footer.pl-footer .pl-footer__bottom {
	display: flex;
	align-items: center;
	gap: 2.4rem;
	padding-top: 2.4rem;
	border-top: 1px solid #e2e0e4;
}
footer.pl-footer .pl-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem 2.4rem;
	font-size: 1.2rem;
}
footer.pl-footer .pl-footer__links a {
	color: #646166;
	transition: color .25s ease;
}
footer.pl-footer .pl-footer__links a:hover {
	color: var(--pl-main);
	text-decoration: underline;
	text-underline-offset: .4rem;
}
footer.pl-footer a.facebook {
	width: 2.4rem;
	margin: 0 0 0 auto;
	opacity: .8;
	transition: opacity .25s ease;
}
footer.pl-footer a.facebook:hover {
	opacity: 1;
}
footer.pl-footer p.copy {
	margin: 0;
	font-size: 1.1rem;
	color: #8d8a90;
	text-align: right;
	white-space: nowrap;
}
/* 幅が足りないとき（タブレットなど）は、リンクを 1 行目に、Facebook とコピーライトを 2 行目に */
@media only screen and (max-width: 1025px) {
	footer.pl-footer .pl-footer__bottom {
		flex-wrap: wrap;
		row-gap: 1.6rem;
	}
	footer.pl-footer .pl-footer__links {
		width: 100%;
	}
	footer.pl-footer a.facebook {
		margin: 0;
	}
	footer.pl-footer p.copy {
		margin-left: auto;
	}
}
@media only screen and (max-width: 740px) {
	footer.pl-footer {
		padding-top: 4.4rem;
	}
	footer.pl-footer .pl-footer__top {
		flex-direction: column;
		gap: 3.2rem;
		padding-bottom: 3.2rem;
	}
	footer.pl-footer .pl-footer__name {
		font-size: 1.8rem;
	}
	footer.pl-footer .pl-footer__contact {
		flex-direction: column;
	}
	footer.pl-footer .pl-footer__nav,
	footer.pl-footer .pl-footer__nav ul {
		width: 100%;
	}
	footer.pl-footer .pl-footer__nav ul {
		grid-template-rows: none;
		grid-template-columns: 1fr 1fr;
		grid-auto-flow: row;
		gap: 1.6rem 2rem;
	}
	footer.pl-footer .pl-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.6rem;
	}
	footer.pl-footer p.copy {
		margin-left: 0;
		font-size: 1rem;
		text-align: left;
		white-space: normal;
	}
}
/* ------------------------------------------------------------ 本文の中のリンク（2026-11-17）
 * 記事の本文・固定ページの文章の中のリンクが UIkit の初期の青（#1e87f0）のままだったので、サイトの色に下線で。
 * ボタンなど class の付いたリンクには効かせない */
.wrap p a:not([class]),
.wrap div.content-single a:not([class]) {
	color: var(--pl-main);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .3em;
	text-decoration-color: color-mix(in srgb, var(--pl-main) 45%, transparent);
	transition: text-decoration-color .2s ease;
}
.wrap p a:not([class]):hover,
.wrap div.content-single a:not([class]):hover {
	text-decoration-color: currentColor;
}
@media (prefers-reduced-motion: reduce) {
	header.wrapper ul.menu a::after,
	footer.pl-footer a {
		transition: none !important;
	}
}
