/*
Theme Name: fujikotekitai
Theme URI: https://fuji-kotekitai.net/
Author: 創価学会富士鼓笛隊
Description: 富士鼓笛隊 公式サイト用オリジナルテーマ。MODX Evolutionから移行。フレームテンプレート、カバー画像、ボトムメニュー等のページテンプレートを提供。
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: fujikotekitai
*/

/* ==========================================================
   検索フォーム（旧Google CSE風のルック）
   ========================================================== */
.header_search {
	width: 238px;
}

.header_search .search-form {
	display: flex;
	align-items: stretch;
	height: 32px;
	background: #fff;
	border: 1px solid #d9d9d9;
	box-sizing: border-box;
}

.header_search .search-field {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 0 8px;
	font-size: 13px;
	color: #484848;
	line-height: 30px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	min-width: 0;
}

.header_search .search-field::placeholder {
	color: #999;
	font-size: 12px;
}

.header_search .search-submit {
	width: 34px;
	border: 0;
	background-color: #F9609D;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 16px 16px;
	color: transparent;
	font-size: 0;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .2s;
}

.header_search .search-submit:hover {
	background-color: #E14D8B;
}

/* SP時: 240px幅は sp.css の .header_search 側で指定済み */

/* ==========================================================
   トップページ 2バナー: 横並び固定
   （HTMLの改行スペースで折り返される問題対策）
   ========================================================== */
@media screen and (min-width: 641px) {
	.front-banners {
		display: flex;
		flex-direction: column;
		align-items: center;
		margin-bottom: 0 !important;
	}
	.front-banners-row {
		display: flex;
		gap: 15px;
	}
	.front-banners .btn { margin: 0 !important; }
}

/* ==========================================================
   ページネーション（アーカイブ）
   数字リンク (1 2 3 … 7) を四角ボタン化。中央寄せ。
   ========================================================== */
.navigation .nav-links {
	text-align: center;
	overflow: hidden; /* prev/next の float をクリア */
}

.navigation .page-numbers:not(.prev):not(.next) {
	display: inline-block;
	min-width: 30px;
	height: 30px;
	line-height: 30px;
	margin: 0 3px;
	padding: 0 8px;
	border: 1px solid #F9609D;
	color: #F9609D;
	text-align: center;
	text-decoration: none;
	font-size: 14px;
	vertical-align: middle;
	border-radius: 3px;
	transition: background-color .2s, color .2s;
}

.navigation a.page-numbers:not(.prev):not(.next):hover {
	background: #F9609D;
	color: #FFF;
}

.navigation .page-numbers.current:not(.prev):not(.next) {
	background: #F9609D;
	color: #FFF;
}

.navigation .page-numbers.dots {
	border: none;
	color: #999;
}


/* ==========================================================
   受賞歴 タブ切り替え (.tab_content2 の年ブロック)
   デフォルトは最初の年のみ表示。JSでクリックにより切替
   ========================================================== */
.tab_content2 > .award-year { display: none; }
.tab_content2 > .award-year.is-active { display: block; }

/* ==========================================================
   楽器紹介ページ: 画像にピンク枠
   (MODX の id=9 「楽器紹介」hub の 固有CSS を移植)
   ========================================================== */
.post-type-archive-instrument img.left {
	border: 1px solid #F9418A;
}

/* ==========================================================
   隊員募集ページ: 導入文を本番 MODX と同じ 120% サイズに
   ========================================================== */
.recruit-page .recruit-intro p {
	font-size: 120%;
}

/* Jetpack 関連投稿を非表示 */
#jp-relatedposts { display: none !important; }

/* ==========================================================
   公式インスタグラム
   ========================================================== */
/* トップページ: ボタン */
.instagram-btn-wrap {
	text-align: center;
	margin-top: 20px;
	clear: both;
}
a.instagram-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	line-height: 1.4;
	border: none;
}
a.instagram-btn img { flex-shrink: 0; transition: filter .2s; }
a.instagram-btn:hover img { filter: brightness(0) invert(1); }

/* フッター */
.footer-instagram { margin-top: 14px; }
.footer-instagram a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #484848;
	text-decoration: none;
	font-size: 14px;
}
.footer-instagram a:hover { opacity: 0.6; }
@media screen and (max-width: 640px) {
	.footer-instagram { display: none; }
	a.instagram-btn { margin-left: 0 !important; }
}

/* SP ハンバーガーメニュー */
.nav-primary a.nav-instagram-link {
	display: flex;
	align-items: center;
	gap: 8px;
}
.nav-primary a.nav-instagram-link img { flex-shrink: 0; }
