@charset "UTF-8";
/*
 * shitate ActionKit サイト独自CSS
 * shitate のトークン（--st-*）と sb-card の BEM 命名に合わせて記述する。
 * サイト独自のCSSは以下に記入していきましょう。
 */

/* ---------- 曲カード（クエリラップ） ----------
 * 構成: 難易度 → タイトル → 日本語題 → フッター（book ｜ 楽器別レベル）
 * フッターは margin-top:auto でカード下端に揃え、グリッド内で高さが揃う。
 * shitate-pro-blocks のカード用クラスは版で異なる（1.6 まで .sb-card__body、1.7 以降 .-body）ため、
 * 曲カードの枠・余白・タイトル・本のラベルはここで完結させる。
 */
.wp-block-sb-query-wrap:has(> .sb-card--song) {
	height: 100%;
}
.sb-card--song {
	border: var(--st-border-card, 1px solid #e5eaf9);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.sb-card--song:hover {
	border-color: var(--st-color-brand, #2952cc);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.sb-card--song > :is(.sb-card__body, .-body) {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 0;
	padding: var(--st-space-m, 1rem);
}
/* プラグイン側の行間（見出しの上の広い余白を含む）を打ち消す */
.sb-card.sb-card--song > :is(.sb-card__body, .-body) > :not(.sb-card__footer) {
	margin-top: 0;
}

/* 難易度の星 */
.sb-card__rating {
	display: flex;
	align-items: center;
	gap: 0.2em;
	font-size: var(--st-text-xs, 0.75rem);
	line-height: 1;
	color: var(--st-color-neutral, #5c6b90);
	margin-bottom: var(--st-space-xxs, 0.25rem);
}
.sb-card__star.is-on {
	color: var(--st-color-contrast, #171f33);
}

/* タイトル（固定サイズ・折り返し） */
.sb-card--song .sb-card__title {
	margin: 0;
	font-size: var(--st-text-l, 1.25rem);
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}
.sb-card--song .sb-card__title a {
	color: inherit;
	text-decoration: none;
}

/* 日本語題 */
.sb-card__subtitle {
	margin: 0;
	font-size: var(--st-text-s, 0.8rem);
	line-height: 1.5;
	color: var(--st-color-neutral, #5c6b90);
}

/* フッター: book とレベルを横並び */
.sb-card__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: var(--st-space-xs, 0.5rem) var(--st-space-xs, 0.5rem);
	margin-top: auto;
	padding-top: var(--st-space-xxs, 0.25rem);
}
/* book（本のラベル） */
.sb-card--song .sb-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--st-space-xxs, 0.25rem) var(--st-space-s, 0.75rem);
	margin-top: 0;
	color: var(--st-color-neutral, #5c6b91);
	font-size: var(--st-text-s, 0.8rem);
}
.sb-card--song .sb-card__terms {
	display: inline-flex;
	flex-wrap: wrap;
	gap: var(--st-space-xxs, 0.25rem);
}
.sb-card--song .sb-card__term {
	display: inline-block;
	padding: 0.1em 0.6em;
	border-radius: var(--sb-radius-s, 0);
	background: var(--st-color-base-2, #f4f6fc);
	color: var(--st-color-brand, #2952cc);
	font-weight: 600;
}

/* 楽器別レベル */
.sb-card__levels {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--st-space-xs, 0.5rem);
	font-size: var(--st-text-m, 1rem);
	font-weight: 600;
	line-height: 1;
	color: var(--st-color-contrast, #171f33);
}
.sb-card__level {
	display: inline-flex;
	align-items: center;
	gap: 0.25em;
}
.sb-card__level-icon {
	width: 1em;
	height: 1em;
}

/* ---------- お気に入りボタン ----------
 * 記事ページ: アクションフック favorite（ラベル付き）／曲カード: フッター右端のハート
 */
.sb-fav-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: #cbcdce;
	font: inherit;
	line-height: 1;
	cursor: pointer;
}
.sb-fav-btn.is-active {
	color: #dc3232;
}
.sb-fav-btn__icon {
	flex: 0 0 auto;
	width: 1.25em;
	height: 1.25em;
	transition: transform 0.2s ease;
}
.sb-fav-btn:hover .sb-fav-btn__icon {
	transform: scale(1.15);
}
.sb-fav-btn:focus-visible {
	outline: 2px solid var(--st-color-brand, #2952cc);
	outline-offset: 2px;
}
.sb-fav-btn--label {
	padding: 0.45em 0.9em;
	border-radius: 6px;
	background: var(--st-color-base, #fff);
	box-shadow: 0 1px 2px rgba(24, 44, 84, 0.1), 0 1px 3px 1px rgba(24, 44, 84, 0.1);
	color: #666;
	font-size: var(--st-text-s, 0.8rem);
	transition: box-shadow 0.2s ease;
}
.sb-fav-btn--label:hover {
	box-shadow: 0 2px 4px rgba(24, 44, 84, 0.14), 0 3px 8px 2px rgba(24, 44, 84, 0.12);
}
.sb-fav-btn--label .sb-fav-btn__icon {
	color: #cbcdce;
}
.sb-fav-btn--label.is-active .sb-fav-btn__icon {
	color: #dc3232;
}
.sb-card__fav {
	margin-left: auto;
	font-size: var(--st-text-l, 1.25rem);
}

/* ---------- スコア画像 ---------- */
.sb-score {
	margin: 0;
}
.sb-score__image {
	display: block;
	width: 100%;
	height: auto;
}

/* 曲ページ本文（jazz-template）内の楽譜画像は非表示。
 * 楽譜はアクションフック score で表示するため。 */
.jazz-template img {
	display: none;
}

/* ---------- 曲情報（日本語題・作曲者・ページ数） ---------- */
.sb-songdata {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: var(--st-space-xxs, 0.25rem) var(--st-space-s, 0.75rem);
	font-size: var(--st-text-s, 0.8rem);
	color: var(--st-color-neutral, #5c6b90);
}
.sb-songdata__unit {
	margin-left: 0.15em;
}

/* ---------- FE Advanced Search フォーム ----------
 * セレクト・入力欄に影・角丸・矢印を付けたサイドバー向けの見た目。
 */
form[id^="feas-searchform-"] {
	--feas-shadow: 0 1px 2px rgba(24, 44, 84, 0.1), 0 1px 3px 1px rgba(24, 44, 84, 0.1);
	--feas-text: rgba(0, 0, 0, 0.7);
	margin: 0;
	font-size: var(--st-text-m, 1rem);
	line-height: 1.5;
}

form[id^="feas-searchform-"] select,
form[id^="feas-searchform-"] input[type="text"],
form[id^="feas-searchform-"] input[type="search"] {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 0.7em;
	padding: 0.55em;
	border: 0;
	border-radius: 3px;
	box-shadow: var(--feas-shadow);
	background-color: transparent;
	color: var(--feas-text);
	font: inherit;
	line-height: 1.5;
	outline: 0;
}

/* セレクトは標準の矢印を消し、矢印画像を右端に */
form[id^="feas-searchform-"] select {
	appearance: none;
	-webkit-appearance: none;
	padding-right: 2em;
	background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAHCAYAAADXhRcnAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAI9JREFUeNpidHFxucHAwKAOxE+AmJmBMPgLxDJAfJMFSKwD4kqoAClgA+P///8ZXF1dPaCGcBKh6QcQB+3evXs7WDMIAA2QB1I7gFgDj0aQFz2BGh+AOEwwUaDAQyBlCMR7cGjcC5KHaQQBuM3IAOiKTiBVhiTUDdRUhq4Oq2aoAelAahIQ5wM1zsCmBiDAADhYMJXVZ9u9AAAAAElFTkSuQmCC");
	background-repeat: no-repeat;
	background-position: 97.5% 50%;
	cursor: pointer;
}

/* フリーワード入力は薄いグレー地 */
form[id^="feas-searchform-"] input[type="text"],
form[id^="feas-searchform-"] input[type="search"] {
	background-color: #eff1f5;
}

/* 見出し（楽器別難易度） */
form[id^="feas-searchform-"] h3 {
	margin: 1em 0 0;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.8;
	color: var(--st-color-contrast, #171f33);
}

/* 楽器別レベルのセレクトを横並び */
form[id^="feas-searchform-"] .level {
	display: flex;
	gap: 6px;
}
form[id^="feas-searchform-"] .level select {
	flex: 1 1 0;
	min-width: 0;
	padding-left: 0.4em;
	padding-right: 1.4em;
	background-position: 92% 50%;
}

/* 検索ボタン（本番はブラウザ標準ボタン＋影） */
form[id^="feas-searchform-"] .feas-submit-button {
	display: inline-block;
	width: auto;
	margin: 0;
	padding: 1px 6px;
	border: 2px outset #767676;
	border-radius: 0;
	box-shadow: var(--feas-shadow);
	background: #efefef;
	color: #000;
	font: inherit;
	line-height: normal;
	text-align: center;
	cursor: pointer;
}
form[id^="feas-searchform-"] .feas-submit-button:active {
	border-style: inset;
}
