/**
 * Mouton Library — 専用スタイル
 *
 * @package Mouton
 */

body.mouton-page-library .site-header,
body.mouton-page-library .menu-toggle,
body.mouton-page-library .nav-modal,
body.mouton-page-library .site-footer,
body.mouton-page-library-single .site-header,
body.mouton-page-library-single .menu-toggle,
body.mouton-page-library-single .nav-modal,
body.mouton-page-library-single .site-footer,
body.mouton-page-library-browse .site-header,
body.mouton-page-library-browse .menu-toggle,
body.mouton-page-library-browse .nav-modal,
body.mouton-page-library-browse .site-footer,
body.mouton-page-library-news .site-header,
body.mouton-page-library-news .menu-toggle,
body.mouton-page-library-news .nav-modal,
body.mouton-page-library-news .site-footer {
	display: none !important;
}

body.mouton-page-library #page.site,
body.mouton-page-library-single #page.site,
body.mouton-page-library-browse #page.site,
body.mouton-page-library-news #page.site {
	max-width: none;
}

body.mouton-page-library .site-main,
body.mouton-page-library .site-main--library,
body.mouton-page-library-single .site-main,
body.mouton-page-library-single .site-main--library-single,
body.mouton-page-library-browse .site-main,
body.mouton-page-library-browse .site-main--library-browse,
body.mouton-page-library-news .site-main,
body.mouton-page-library-news .site-main--library-news {
	width: 100%;
	max-width: none !important;
	padding: 0 !important;
}

.site-main--library {

	--library-primary: #14213d;
	--library-accent: #3d6a8c;
	--library-badge: #c75146;
	--library-bg: #f8f9fa;
	--library-text: #333333;
	--library-radius: 8px;
	--library-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	--library-font: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

.library-page {
	background: var(--library-bg);
	color: var(--library-text);
	font-family: var(--library-font);
	line-height: 1.6;
}

.library-page *,
.library-page *::before,
.library-page *::after {
	box-sizing: border-box;
}

.library-page a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s;
}

.library-page a:hover {
	color: var(--library-accent);
}

.library-page__btn-buy,
.library-page__btn-buy:hover,
.library-page__btn-buy:focus-visible,
.library-page__youtube,
.library-page__youtube:hover,
.library-page__youtube:focus-visible,
.library-page__category-card,
.library-page__category-card:hover,
.library-page__category-card:focus-visible,
.library-page__discovery-card,
.library-page__discovery-card:hover,
.library-page__discovery-card:focus-visible,
.library-page__ranking-more,
.library-page__ranking-more:hover,
.library-page__ranking-more:focus-visible,
.library-page__channel-badge,
.library-page__square-btn,
.library-page__square-btn:hover,
.library-page__square-btn:focus-visible,
.library-page__ticker,
.library-page__ticker:hover,
.library-page__ticker:focus-visible {
	color: #fff !important;
}

/* Header */
.library-page__header-wrap {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.library-page__header {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	padding: 22px 5%;
	background: #fff;
}

.library-page__ticker {
	display: block;
	height: 1cm;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
	background: var(--library-accent);
	cursor: pointer;
}

.library-page__ticker:hover,
.library-page__ticker:focus-visible {
	color: #fff;
}

.library-page__ticker-inner {
	display: flex;
	width: max-content;
	animation: library-page-ticker var(--library-ticker-duration, 28s) linear infinite;
}

.library-page__ticker-content {
	display: flex;
	flex-shrink: 0;
	gap: 5rem;
	align-items: center;
	padding-right: 5rem;
	white-space: nowrap;
}

.library-page__ticker-item {
	color: #fff;
	font-size: 0.82rem;
	font-weight: 700;
	line-height: 1cm;
	letter-spacing: 0.04em;
}

@keyframes library-page-ticker {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(calc(-1 * var(--library-ticker-shift, 50%)));
	}
}

@media (prefers-reduced-motion: reduce) {
	.library-page__ticker-inner {
		animation: none;
		transform: translateX(0);
	}
}

.library-page__header-tools {
	display: flex;
	flex: 1;
	gap: 20px;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
}

.library-page__branding {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	min-width: 0;
}

.library-page__back-home {
	position: relative;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-right: 18px;
	margin-left: -8px;
	padding: 0;
	color: var(--library-primary);
	text-decoration: none;
	border: 1px solid #dcdfe5;
	border-radius: 6px;
	background: #fff;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.library-page__back-home:hover,
.library-page__back-home:focus-visible {
	color: #fff;
	background: var(--library-accent);
	border-color: var(--library-accent);
}

.library-page__back-home-icon {
	display: block;
	flex-shrink: 0;
	width: 9px;
	height: 11px;
	margin: 0;
	background: currentColor;
	clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.library-page__back-home-label {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	z-index: 2;
	padding: 6px 10px;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.4;
	color: #fff;
	white-space: nowrap;
	pointer-events: none;
	background: var(--library-primary);
	border-radius: 4px;
	opacity: 0;
	transform: translate(-50%, 4px);
	transition: opacity 0.2s, transform 0.2s;
}

.library-page__back-home-label::before {
	content: "";
	position: absolute;
	top: -5px;
	left: 50%;
	width: 0;
	height: 0;
	border-right: 5px solid transparent;
	border-bottom: 5px solid var(--library-primary);
	border-left: 5px solid transparent;
	transform: translateX(-50%);
}

.library-page__back-home:hover .library-page__back-home-label,
.library-page__back-home:focus-visible .library-page__back-home-label {
	opacity: 1;
	transform: translate(-50%, 0);
}

.library-page__logo {
	display: flex;
	align-items: center;
	font-size: 1.8rem;
	font-weight: 900;
	color: var(--library-primary);
	letter-spacing: 1px;
	text-decoration: none;
}

.library-page__logo span {
	color: var(--library-accent);
}

.library-page__logo--svg svg,
.library-page__logo-img {
	display: block;
	width: auto;
	max-width: min(300px, 55vw);
	height: auto;
	max-height: 54px;
}

.library-page__logo--svg svg {
	height: 54px;
}

.library-page__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	align-items: center;
	font-size: 0.95rem;
	font-weight: bold;
}

.library-page__nav-store {
	display: none;
	align-items: center;
	gap: 10px;
	color: var(--library-primary);
	text-decoration: none;
}

.library-page__nav-store-icon {
	display: block;
	width: 9px;
	height: 11px;
	background: currentColor;
	clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.library-page__menu-toggle {
	display: none;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid #dcdfe5;
	border-radius: 6px;
	background: #fff;
	color: var(--library-primary);
	cursor: pointer;
}

.library-page__menu-toggle-bars {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 18px;
}

.library-page__menu-toggle-bars span {
	display: block;
	width: 100%;
	height: 2px;
	background: currentColor;
	border-radius: 1px;
	transition: transform 0.2s, opacity 0.2s;
}

.library-page__menu-toggle.is-open .library-page__menu-toggle-bars span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.library-page__menu-toggle.is-open .library-page__menu-toggle-bars span:nth-child(2) {
	opacity: 0;
}

.library-page__menu-toggle.is-open .library-page__menu-toggle-bars span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.library-page__menu-backdrop {
	display: none;
}

.library-page__search {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	min-width: 180px;
	max-width: 260px;
	overflow: hidden;
	border: 1px solid #dcdfe5;
	border-radius: 999px;
	background: #f8f9fa;
}

.library-page__search-input {
	flex: 1;
	width: 100%;
	min-width: 0;
	padding: 10px 14px;
	border: 0;
	font-size: 0.9rem;
	background: transparent;
}

.library-page__search-input:focus {
	outline: none;
}

.library-page__search-btn {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	color: #fff;
	background: var(--library-accent);
	cursor: pointer;
}

.library-page__search-btn:hover {
	background: #315872;
}

.library-browse {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 80px;
}

.library-browse__breadcrumb {
	margin: 15px 0 24px;
	font-size: 0.8rem;
	color: #888;
}

.library-browse__breadcrumb a {
	color: #555;
}

.library-browse__breadcrumb a:hover {
	color: var(--library-primary);
	text-decoration: underline;
}

.library-browse__breadcrumb-sep {
	margin: 0 0.35em;
}

.library-browse__breadcrumb-current {
	color: #666;
}

.library-browse__header {
	margin-bottom: 28px;
}

.library-browse__title {
	margin: 0 0 8px;
	font-size: clamp(1.6rem, 3vw, 2rem);
	font-weight: 900;
	color: var(--library-primary);
}

.library-browse__description {
	margin: 0;
	color: #666;
}

.library-browse__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 24px;
}

.library-browse__grid .library-page__card {
	width: 100%;
	flex: 1 1 auto;
	max-width: none;
}

.library-browse__empty {
	padding: 48px 24px;
	text-align: center;
	background: #fff;
	border: 1px solid #e4e7ed;
	border-radius: var(--library-radius);
}

.library-browse__back {
	font-weight: bold;
	color: var(--library-accent);
}

/* Hero slider */
.library-page__hero-wrap {
	--library-hero-gap: 20px;
	--library-hero-visible: 4;
	--library-hero-slide-width: calc((100vw - 40px - (var(--library-hero-gap) * (var(--library-hero-visible) - 1))) / var(--library-hero-visible));

	position: relative;
	width: 100%;
	max-width: none;
	margin: 40px 0 28px;
	padding: 0 20px;
}

.library-page__slider {
	overflow: hidden;
	width: 100%;
}

.library-page__slider-track {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--library-hero-gap);
	will-change: transform;
}

.library-page__slider-track.is-marquee {
	animation: library-hero-marquee var(--library-hero-duration, 40s) linear infinite;
}

.library-page__slider:hover .library-page__slider-track.is-marquee {
	animation-play-state: paused;
}

@keyframes library-hero-marquee {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(calc(-1 * var(--library-hero-shift, 50%)));
	}
}

@media (prefers-reduced-motion: reduce) {
	.library-page__slider-track.is-marquee {
		animation: none;
		transform: translateX(0);
	}
}

.library-page__slide {
	position: relative;
	flex: 0 0 var(--library-hero-slide-width);
	width: var(--library-hero-slide-width);
	min-width: var(--library-hero-slide-width);
	max-width: var(--library-hero-slide-width);
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: var(--library-radius);
	box-shadow: var(--library-shadow);
	background: #e9ecef;
}

.library-page__slide-link {
	display: block;
	width: 100%;
	height: 100%;
}

.library-page__slide-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/* Section title */
.library-page__section-title {
	margin: 60px 0 30px;
	font-size: 1.6rem;
	font-weight: 900;
	color: var(--library-primary);
	text-align: center;
}

/* Products carousel */
.library-page__products-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.library-page__products-carousel {
	position: relative;
}

.library-page__products-track {
	display: flex;
	flex-wrap: nowrap;
	gap: 25px;
	padding: 4px 0 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.library-page__products-track::-webkit-scrollbar {
	display: none;
}

.library-page__products-btn {
	position: absolute;
	top: 50%;
	z-index: 5;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--library-primary);
	background: rgba(255, 255, 255, 0.95);
	box-shadow: var(--library-shadow);
	transform: translateY(-50%);
	cursor: pointer;
	transition: all 0.2s;
}

.library-page__products-btn:hover {
	color: #fff;
	background: var(--library-accent);
}

.library-page__products-btn--prev {
	left: -8px;
}

.library-page__products-btn--next {
	right: -8px;
}

.library-page__card {
	position: relative;
	display: flex;
	flex: 0 0 260px;
	flex-direction: column;
	width: 260px;
	overflow: hidden;
	background: #fff;
	border-radius: var(--library-radius);
	box-shadow: var(--library-shadow);
	scroll-snap-align: start;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.library-page__card:hover {
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-6px);
}

.library-page__badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 0.75rem;
	font-weight: bold;
	color: #fff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	pointer-events: none;
}

.library-page__badge--new {
	background-color: var(--library-badge);
}

.library-page__badge--hot {
	background-color: var(--library-primary);
}

.library-page__card-img-wrap {
	position: relative;
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	aspect-ratio: 210 / 297;
	width: 100%;
	overflow: hidden;
	text-decoration: none;
	background-color: #f0f2f4;
}

.library-page__card-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	padding: 12px 14px 10px;
	background: #fff;
}

.library-page__card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 8px;
}

.library-page__card-tag {
	display: inline-block;
	padding: 3px 8px;
	border: 1px solid #3d8b5a;
	border-radius: 4px;
	font-size: 0.72rem;
	font-weight: bold;
	line-height: 1.3;
	color: #3d8b5a;
	background: #fff;
}

.library-page__card-tag--subcategory {
	border-color: var(--library-accent);
	color: var(--library-accent);
	text-decoration: none;
}

.library-page__card-tag--subcategory:hover {
	color: #fff;
	background: var(--library-accent);
}

.library-page__card-title {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 900;
	line-height: 1.35;
}

.library-page__card-title-link {
	color: #1a1a1a;
	text-decoration: none;
}

.library-page__card-title-link:hover {
	color: var(--library-accent);
}

.library-page__card-caption {
	display: -webkit-box;
	margin: 2px 0 0;
	overflow: hidden;
	font-size: 0.78rem;
	line-height: 1.5;
	color: #4a4a4a;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.library-page__card-footer {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	margin-top: 2px;
}

.library-page__card-price {
	font-size: 0.88rem;
	font-weight: 500;
	line-height: 1.2;
	color: #7a7a7a;
	white-space: nowrap;
}

.library-page__card-price--empty {
	min-height: 1.2em;
}

.library-page__card-youtube-links {
	display: inline-flex;
	flex-shrink: 0;
	gap: 8px;
	align-items: center;
}

.library-page__youtube {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	color: #fff;
	background: #ff0000;
	transition: transform 0.2s, opacity 0.2s;
}

.library-page__youtube:hover {
	color: #fff !important;
	opacity: 0.9;
	transform: scale(1.06);
}

.library-page__youtube-icon {
	display: block;
	width: 22px;
	height: 22px;
}

.library-page__card-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	transition: transform 0.4s ease;
}

.library-page__card-img--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: #adb5bd;
	font-size: 0.9rem;
	font-weight: bold;
}

.library-page__card:hover .library-page__card-img {
	transform: scale(1.03);
}

.library-page__card-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
}

.library-page__btn-buy {
	display: block;
	width: 100%;
	padding: 12px 0;
	border-radius: var(--library-radius);
	font-size: 1rem;
	font-weight: bold;
	color: #fff;
	text-align: center;
	background: var(--library-primary);
	transition: background 0.2s;
}

.library-page__btn-buy:hover {
	color: #fff;
	background: var(--library-accent);
}

/* Concept */
.library-page__concept {
	margin-top: 80px;
	padding: 80px 20px;
	color: #fff;
	text-align: center;
	background-color: #2b324d;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	background-image: linear-gradient(rgba(43, 50, 77, 0.85), rgba(43, 50, 77, 0.85));
	box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.library-page__concept-content {
	max-width: 800px;
	margin: 0 auto;
}

.library-page__concept-main-title {
	margin-bottom: 10px;
	font-size: clamp(1.5rem, 4vw, 2.2rem);
	font-weight: bold;
	letter-spacing: 2px;
	text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.library-page__concept-sub-title {
	margin-bottom: 40px;
	font-size: 1.2rem;
	font-weight: normal;
	letter-spacing: 2px;
}

.library-page__concept-desc {
	margin-bottom: 60px;
	font-size: 1rem;
	line-height: 2;
	letter-spacing: 1px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.library-page__service-buttons {
	display: flex;
	flex-direction: column;
	gap: 20px;
	max-width: 500px;
	margin: 0 auto;
}

.library-page__service-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px;
	border-radius: 12px;
	color: #555;
	background-color: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s, box-shadow 0.2s;
}

.library-page__service-btn:hover {
	color: var(--library-primary);
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
	transform: translateY(-3px);
}

.library-page__service-btn-main {
	display: flex;
	gap: 15px;
	align-items: center;
	margin-bottom: 5px;
	font-size: 1.4rem;
	font-weight: bold;
	letter-spacing: 2px;
	color: #666;
}

.library-page__service-btn-arrow {
	font-size: 1.4rem;
	font-weight: bold;
	color: #888;
}

.library-page__service-btn-sub {
	font-size: 0.95rem;
	color: #666;
	letter-spacing: 1px;
}

/* Section title variants (legacy) */
.library-page__section-title--left {
	text-align: left;
}

.library-page__rail-head,
.library-page__features-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	max-width: 1200px;
	margin: 48px auto 0;
	padding: 0 20px;
}

.library-page__rail .library-page__section-title {
	margin: 0;
}

.library-page__section-more {
	flex-shrink: 0;
	font-size: 0.9rem;
	font-weight: bold;
	color: var(--library-accent);
}

.library-page__section-more:hover {
	text-decoration: underline;
}

/* Keywords */
.library-page__keywords {
	max-width: 1200px;
	margin: 24px auto 0;
	padding: 0 20px;
}

.library-page__keywords-title {
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: bold;
	color: var(--library-primary);
}

.library-page__keywords-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.library-page__keyword-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 14px;
	border: 1px solid #d7dee8;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: bold;
	color: var(--library-primary);
	background: #fff;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.library-page__keyword-chip:hover {
	color: #fff;
	border-color: var(--library-accent);
	background: var(--library-accent);
}

/* Features on landing */
.library-page__features {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.library-page__features-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.library-page__features .library-feature-card {
	height: 100%;
}

.library-page__features .library-feature-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: var(--library-radius);
	background: #fff;
	box-shadow: var(--library-shadow);
}

.library-page__features .library-feature-card__media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.library-page__features .library-feature-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.library-page__features .library-feature-card__body {
	padding: 16px;
}

.library-page__features .library-feature-card__title {
	margin: 0 0 8px;
	font-size: 1rem;
}

.library-page__features .library-feature-card__lead {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 0.85rem;
	color: #666;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

/* Ranking */
.library-page__ranking {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 20px;
}

.library-page__ranking-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
	margin-bottom: 24px;
}

.library-page__ranking-tab {
	padding: 10px 18px;
	border: 1px solid #d7dee8;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: bold;
	color: var(--library-primary);
	background: #fff;
	cursor: pointer;
	transition: all 0.2s;
}

.library-page__ranking-tab.is-active,
.library-page__ranking-tab:hover {
	color: #fff;
	border-color: var(--library-accent);
	background: var(--library-accent);
}

.library-page__ranking-panel {
	display: none;
}

.library-page__ranking-panel.is-active {
	display: block;
}

.library-page__ranking-list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}

.library-page__ranking-item {
	position: relative;
}

.library-page__ranking-number {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 0.8rem;
	font-weight: bold;
	color: #fff;
	background: rgba(20, 33, 61, 0.85);
}

.library-page__ranking-item--top1 .library-page__ranking-number {
	background: #d4a017;
}

.library-page__ranking-item--top2 .library-page__ranking-number {
	background: #9aa0a6;
}

.library-page__ranking-item--top3 .library-page__ranking-number {
	background: #b87333;
}

.library-page__ranking-item .library-page__card {
	width: 100%;
	flex-basis: auto;
}

.library-page__ranking-more-wrap {
	margin-top: 20px;
	text-align: center;
}

.library-page__ranking-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 220px;
	padding: 12px 20px;
	border-radius: var(--library-radius);
	font-weight: bold;
	color: #fff;
	background: var(--library-primary);
}

.library-page__ranking-more:hover {
	color: #fff;
	background: var(--library-accent);
}

/* Discovery cards */
.library-page__discovery {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.library-page__discovery-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.library-page__discovery-card {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	padding: 20px;
	border-radius: var(--library-radius);
	font-weight: bold;
	color: #fff;
	text-align: center;
	background: var(--library-primary);
	box-shadow: var(--library-shadow);
	transition: transform 0.2s, background 0.2s;
}

.library-page__discovery-card--purpose-1,
.library-page__discovery-card--purpose-2,
.library-page__discovery-card--purpose-3,
.library-page__discovery-card--purpose-4 {
	background: var(--library-primary);
}

.library-page__discovery-card-overlay {
	display: none;
}

.library-page__discovery-card-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
}

.library-page__discovery-card-label {
	font-size: 1rem;
}

.library-page__discovery-card-desc {
	font-size: 0.85rem;
	line-height: 1.5;
	opacity: 0.9;
}

.library-page__discovery-card:hover,
.library-page__discovery-card:focus-visible {
	background: var(--library-accent);
	transform: scale(1.02);
}

/* Schedule */
.library-page__schedule {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.library-page__schedule-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.library-page__schedule-card {
	padding: 20px;
	border-radius: var(--library-radius);
	background: #fff;
	box-shadow: var(--library-shadow);
}

.library-page__schedule-date {
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #edf2f7;
	font-size: 1rem;
	font-weight: bold;
	color: var(--library-badge);
}

.library-page__schedule-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.library-page__schedule-item + .library-page__schedule-item {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed #e9ecef;
}

.library-page__schedule-category {
	display: block;
	margin-bottom: 4px;
	font-size: 0.75rem;
	font-weight: bold;
	color: var(--library-accent);
}

.library-page__schedule-title {
	font-size: 0.92rem;
	font-weight: bold;
	color: var(--library-primary);
}

.library-page__schedule-title:hover {
	color: var(--library-accent);
}

/* Browse filters */
.library-browse__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-end;
	margin-bottom: 24px;
	padding: 16px;
	border-radius: var(--library-radius);
	background: #fff;
	box-shadow: var(--library-shadow);
}

.library-browse__filter {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 180px;
}

.library-browse__filter-label {
	font-size: 0.8rem;
	font-weight: bold;
	color: #666;
}

.library-browse__filter-select {
	padding: 8px 12px;
	border: 1px solid #d7dee8;
	border-radius: 6px;
	font-size: 0.9rem;
	background: #fff;
}

.library-page__bottom {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	max-width: 1200px;
	margin: 80px auto;
	padding: 0 20px;
}

.library-page__news-box {
	padding: 30px;
	background: #fff;
	border-radius: var(--library-radius);
	box-shadow: var(--library-shadow);
}

.library-page__news-head {
	display: flex;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 2px solid #f1f3f5;
}

.library-page__news-heading {
	margin: 0;
	font-size: 1.4rem;
	color: var(--library-primary);
}

.library-page__news-more {
	flex-shrink: 0;
	font-size: 0.85rem;
	font-weight: bold;
	color: var(--library-accent);
	text-decoration: none;
}

.library-page__news-more:hover {
	text-decoration: underline;
}

.library-page__news-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.library-page__news-item {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 14px;
	align-items: start;
	padding: 15px 0;
	border-bottom: 1px dashed #e9ecef;
}

.library-page__news-thumb-wrap {
	display: block;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 8px;
	background: #edf2f7;
}

.library-page__news-thumb-wrap--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
}

.library-page__news-thumb {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.library-page__news-thumb-placeholder {
	font-size: 0.7rem;
	font-weight: bold;
	color: #adb5bd;
}

.library-page__news-body {
	min-width: 0;
}

.library-page__news-item:last-child {
	border-bottom: none;
}

.library-page__news-date {
	margin-bottom: 4px;
	font-size: 0.85rem;
	font-weight: bold;
	color: #868e96;
}

.library-page__news-title {
	font-size: 0.95rem;
	font-weight: bold;
}

.library-page__category-box {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 15px;
}

.library-page__category-card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	border-radius: var(--library-radius);
	font-weight: bold;
	color: #fff;
	text-align: center;
	background: var(--library-primary);
	transition: transform 0.2s, background 0.2s;
}

.library-page__category-card--solo,
.library-page__category-card--ensemble,
.library-page__category-card--wind,
.library-page__category-card--method {
	background: var(--library-primary);
}

.library-page__category-card-overlay {
	display: none;
}

.library-page__category-card-label {
	position: relative;
	z-index: 1;
}

.library-page__category-card:hover {
	background: var(--library-accent);
	transform: scale(1.03);
}

.library-page__category-card--wide {
	grid-column: span 2;
}

/* Footer */
.library-page__footer {
	padding: 40px 20px;
	color: #fff;
	text-align: center;
	background: var(--library-primary);
}

.library-page__footer-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 20px;
	margin-bottom: 20px;
	font-size: 0.9rem;
}

.library-page__footer-links a {
	color: #adb5bd;
}

.library-page__footer-links a:hover {
	color: var(--library-accent);
}

.library-page__editor {
	max-width: 800px;
	margin: 40px auto;
	padding: 0 20px;
}

@media (max-width: 1024px) {
	.library-page__hero-wrap {
		--library-hero-visible: 2.8;
	}

	.library-page__ranking-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 768px) {
	body.library-menu-open {
		overflow: hidden;
		touch-action: none;
	}

	.library-page__header {
		flex-wrap: nowrap;
		gap: 12px;
		min-height: 64px;
		padding: 14px 4%;
	}

	.library-page__back-home {
		display: none;
	}

	.library-page__branding {
		flex: 1;
		min-width: 0;
	}

	.library-page__logo--svg svg,
	.library-page__logo-img {
		max-height: 40px;
		height: 40px;
		width: auto;
	}

	.library-page__header-tools {
		flex: 0 0 auto;
		flex-wrap: nowrap;
		gap: 10px;
		justify-content: flex-end;
		width: auto;
		min-width: 0;
	}

	.library-page__menu-toggle {
		display: inline-flex;
		order: 2;
	}

	.library-page__search {
		order: 1;
		width: min(52vw, 180px);
		min-width: 120px;
		max-width: 180px;
	}

	.library-page__nav {
		position: fixed;
		top: 0;
		right: 0;
		z-index: 120;
		display: flex;
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0;
		align-items: stretch;
		width: min(82vw, 320px);
		height: 100%;
		margin: 0;
		padding: 88px 24px 32px;
		overflow-y: auto;
		background: #fff;
		box-shadow: -12px 0 32px rgba(20, 33, 61, 0.12);
		transform: translateX(105%);
		transition: transform 0.25s ease;
		-webkit-overflow-scrolling: touch;
	}

	.library-page__nav.is-open {
		transform: translateX(0);
	}

	.library-page__nav > a {
		padding: 16px 4px;
		border-bottom: 1px solid #e8ecf1;
		font-size: 1rem;
		text-decoration: none;
	}

	.library-page__nav-store {
		display: inline-flex;
		margin-top: 12px;
		padding-top: 18px;
		border-bottom: 0;
		font-weight: 800;
		color: var(--library-accent);
	}

	.library-page__menu-backdrop {
		position: fixed;
		inset: 0;
		z-index: 110;
		display: block;
		background: rgba(20, 33, 61, 0.42);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.25s ease;
	}

	.library-page__menu-backdrop.is-open {
		opacity: 1;
		pointer-events: auto;
	}

	.library-page__hero-wrap {
		--library-hero-visible: 1.4;
	}

	.library-page__bottom {
		grid-template-columns: 1fr;
	}

	.library-page__features-grid,
	.library-page__discovery-grid,
	.library-page__schedule-grid {
		grid-template-columns: 1fr;
	}

	.library-page__ranking {
		padding-right: 0;
	}

	.library-page__ranking-tabs {
		justify-content: flex-start;
		padding: 0 20px;
		overflow-x: auto;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.library-page__ranking-tabs::-webkit-scrollbar {
		display: none;
	}

	.library-page__ranking-list {
		display: flex;
		flex-wrap: nowrap;
		gap: 14px;
		padding: 4px 20px 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.library-page__ranking-list::-webkit-scrollbar {
		display: none;
	}

	.library-page__ranking-item {
		flex: 0 0 220px;
		width: 220px;
		scroll-snap-align: start;
	}

	.library-page__ranking-item .library-page__card {
		width: 100%;
		flex-basis: auto;
	}

	.library-page__ranking-more-wrap {
		padding: 0 20px;
	}

	.library-page__rail-head,
	.library-page__features-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.library-page__products-btn--prev {
		left: 0;
	}

	.library-page__products-btn--next {
		right: 0;
	}

	.library-page__card {
		flex-basis: 220px;
		width: 220px;
	}

	.library-browse__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.library-browse__grid .library-page__card {
		width: 100%;
		flex-basis: auto;
	}

	.library-browse__grid .library-page__card-body {
		padding: 12px;
	}

	.library-browse__grid .library-page__card-title {
		font-size: 0.92rem;
	}
}

/* Wish Board teaser (landing) */
.library-page__wish-teaser {
	position: relative;
	max-width: 1200px;
	margin: 56px auto 0;
	padding: 0 20px;
	overflow: hidden;
}

.library-page__wish-teaser-board {
	position: absolute;
	inset: 12px 28px;
	pointer-events: none;
	z-index: 0;
}

.library-page__wish-teaser-note {
	position: absolute;
	max-width: 11em;
	padding: 10px 12px;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.45;
	color: var(--library-primary);
	background: #fff8e8;
	border: 1px solid rgba(20, 33, 61, 0.08);
	box-shadow: 2px 3px 0 rgba(20, 33, 61, 0.08);
	transform: rotate(calc(-8deg + var(--wish-note-i, 0) * 3deg));
	opacity: 0.72;
}

.library-page__wish-teaser-note--a { top: 14%; left: 4%; background: #fff1d6; }
.library-page__wish-teaser-note--b { top: 18%; right: 6%; background: #e8f1f8; transform: rotate(7deg); }
.library-page__wish-teaser-note--c { bottom: 18%; left: 8%; background: #f5e8ea; transform: rotate(-4deg); }
.library-page__wish-teaser-note--d { top: 52%; right: 10%; background: #eef6ea; transform: rotate(5deg); }
.library-page__wish-teaser-note--e { bottom: 12%; right: 28%; background: #efe8f6; transform: rotate(-6deg); }

.library-page__wish-teaser-inner {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 28px;
	align-items: center;
	min-height: 280px;
	padding: 40px 44px;
	border: 2px solid var(--library-primary);
	background:
		repeating-linear-gradient(
			0deg,
			transparent,
			transparent 23px,
			rgba(20, 33, 61, 0.04) 23px,
			rgba(20, 33, 61, 0.04) 24px
		),
		#fbfaf6;
}

.library-page__wish-teaser-mark {
	font-size: clamp(4.5rem, 12vw, 7.5rem);
	font-weight: 900;
	line-height: 0.85;
	letter-spacing: -0.04em;
	color: transparent;
	-webkit-text-stroke: 2px var(--library-primary);
	transform: rotate(-8deg);
	user-select: none;
}

.library-page__wish-teaser-copy {
	max-width: 28em;
}

.library-page__wish-teaser-title {
	margin: 0 0 12px;
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	font-weight: 900;
	letter-spacing: 0.02em;
	color: var(--library-primary);
}

.library-page__wish-teaser-lead {
	margin: 0 0 22px;
	line-height: 1.85;
	color: #3a4250;
}

.library-page__wish-teaser-cta {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	padding: 0;
	font-size: 1rem;
	font-weight: 800;
	color: var(--library-primary);
	background: transparent;
	border-bottom: 2px solid var(--library-primary);
	border-radius: 0;
}

.library-page__wish-teaser-cta:hover,
.library-page__wish-teaser-cta:focus-visible {
	color: var(--library-accent);
	border-bottom-color: var(--library-accent);
}

@media (max-width: 768px) {
	.library-page__wish-teaser-inner {
		grid-template-columns: 1fr;
		gap: 8px;
		min-height: 0;
		padding: 32px 22px 36px;
	}

	.library-page__wish-teaser-mark {
		font-size: 4.2rem;
		transform: rotate(-6deg);
	}

	.library-page__wish-teaser-note {
		display: none;
	}
}

/* Sales channels — flip cards */
.library-page__channels {
	max-width: 1200px;
	margin: 64px auto 0;
	padding: 0 20px;
}

.library-page__channels-head {
	margin-bottom: 28px;
	text-align: center;
}

.library-page__channels-title {
	margin: 0 0 10px;
	font-size: clamp(1.5rem, 3vw, 1.9rem);
	font-weight: 900;
	color: var(--library-primary);
}

.library-page__channels-lead {
	margin: 0 auto;
	max-width: 34em;
	line-height: 1.75;
	color: #555;
}

.library-page__channels-flips {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.library-page__square-flip {
	position: relative;
	float: none;
	width: 100%;
	min-width: 0;
	max-width: none;
	height: auto;
	aspect-ratio: 1 / 1;
	margin: 0;
	perspective: 1000px;
	transform: perspective(1000px);
	transform-style: preserve-3d;
}

.library-page__square,
.library-page__square2 {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	backface-visibility: hidden;
	transition: transform 0.6s cubic-bezier(0.5, 0.3, 0.3, 1);
}

.library-page__square {
	transform: rotateY(0deg);
	transform-style: preserve-3d;
	z-index: 1;
}

.library-page__square2 {
	transform: rotateY(180deg);
	transform-style: preserve-3d;
	z-index: 1;
}

.library-page__square-flip:hover .library-page__square,
.library-page__square-flip.is-flipped .library-page__square {
	transform: rotateY(-180deg);
	transform-style: preserve-3d;
}

.library-page__square-flip:hover .library-page__square2,
.library-page__square-flip.is-flipped .library-page__square2 {
	transform: rotateY(0deg);
	transform-style: preserve-3d;
}

.library-page__square-container,
.library-page__square-container2 {
	position: relative;
	top: 50%;
	z-index: 2;
	padding: 28px 22px;
	text-align: center;
	transition: transform 0.6s cubic-bezier(0.5, 0.3, 0.3, 1);
	transform-style: preserve-3d;
}

.library-page__square-container {
	transform: translateY(-50%) translateX(0) scale(1);
}

.library-page__square-flip:hover .library-page__square-container,
.library-page__square-flip.is-flipped .library-page__square-container {
	transform: translateY(-50%) translateX(-420px) scale(0.88);
}

.library-page__square-container2 {
	transform: translateY(-50%) translateX(420px) translateZ(60px) scale(0.88);
}

.library-page__square-flip:hover .library-page__square-container2,
.library-page__square-flip.is-flipped .library-page__square-container2 {
	transform: translateY(-50%) translateX(0) translateZ(0) scale(1);
}

.library-page__flip-overlay {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	width: 100%;
	height: 100%;
	background: rgba(20, 33, 61, 0.28);
	pointer-events: none;
}

.library-page__square-flip--has-image .library-page__square,
.library-page__square-flip--has-image .library-page__square2 {
	background-color: #f4f4f4;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.library-page__square-flip--domestic .library-page__flip-overlay,
.library-page__square-flip--piascore .library-page__flip-overlay,
.library-page__square-flip--taiwan .library-page__flip-overlay {
	background: rgba(20, 33, 61, 0.18);
}

.library-page__square-flip--korea .library-page__flip-overlay {
	background: rgba(10, 24, 18, 0.22);
}

.library-page__square-flip--domestic .library-page__square-title,
.library-page__square-flip--domestic .library-page__square-desc,
.library-page__square-flip--domestic .library-page__square-back-text,
.library-page__square-flip--piascore .library-page__square-title,
.library-page__square-flip--piascore .library-page__square-desc,
.library-page__square-flip--piascore .library-page__square-back-text,
.library-page__square-flip--taiwan .library-page__square-title,
.library-page__square-flip--taiwan .library-page__square-desc,
.library-page__square-flip--taiwan .library-page__square-back-text {
	color: #14213d;
	text-shadow: none;
}

.library-page__square-flip--korea .library-page__square-title,
.library-page__square-flip--korea .library-page__square-desc,
.library-page__square-flip--korea .library-page__square-back-text {
	color: #fff;
	text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.library-page__square-title {
	position: relative;
	z-index: 1;
	margin: 0 0 10px;
	font-size: 1.45rem;
	font-weight: 900;
	line-height: 1.25;
}

.library-page__square-desc {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.55;
}

.library-page__square-back-text {
	position: relative;
	z-index: 1;
	margin: 0 0 18px;
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1.5;
}

.library-page__square-btn {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 140px;
	padding: 14px 22px;
	font-size: 0.92rem;
	font-weight: 800;
	color: #fff !important;
	background: var(--library-badge);
	border-radius: 2px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.library-page__square-btn:hover,
.library-page__square-btn:focus-visible {
	color: #fff !important;
	background: #a83f37;
}

.library-page__channel-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 3;
	padding: 3px 9px;
	font-size: 0.65rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: #fff;
	background: var(--library-badge);
}

.library-page__square-flip--domestic .library-page__square,
.library-page__square-flip--domestic .library-page__square2 {
	background-color: #d9e3d5;
}

.library-page__square-flip--piascore .library-page__square,
.library-page__square-flip--piascore .library-page__square2 {
	background-color: #f5f5f5;
}

.library-page__square-flip--taiwan .library-page__square,
.library-page__square-flip--taiwan .library-page__square2 {
	background-color: #ececec;
}

.library-page__square-flip--korea .library-page__square,
.library-page__square-flip--korea .library-page__square2 {
	background-color: #1f3a2f;
}

@media (max-width: 1100px) {
	.library-page__channels-flips {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
		max-width: 640px;
		margin: 0 auto;
	}
}

@media (max-width: 640px) {
	.library-page__channels {
		padding: 0 16px;
	}

	.library-page__channels-flips {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
		max-width: none;
	}

	.library-page__square-container,
	.library-page__square-container2 {
		padding: 16px 12px;
	}

	.library-page__square-title {
		font-size: 1.05rem;
	}

	.library-page__square-desc,
	.library-page__square-back-text {
		font-size: 0.78rem;
	}

	.library-page__square-btn {
		min-width: 0;
		padding: 8px 12px;
		font-size: 0.78rem;
	}

	.library-page__square-flip:hover .library-page__square-container,
	.library-page__square-flip.is-flipped .library-page__square-container {
		transform: translateY(-50%) translateX(-200px) scale(0.88);
	}

	.library-page__square-container2 {
		transform: translateY(-50%) translateX(200px) translateZ(60px) scale(0.88);
	}
}

@media (hover: none) {
	.library-page__square-flip:hover .library-page__square {
		transform: rotateY(0deg);
	}

	.library-page__square-flip:hover .library-page__square2 {
		transform: rotateY(180deg);
	}

	.library-page__square-flip:hover .library-page__square-container {
		transform: translateY(-50%) translateX(0) scale(1);
	}

	.library-page__square-flip:hover .library-page__square-container2 {
		transform: translateY(-50%) translateX(420px) translateZ(60px) scale(0.88);
	}

	.library-page__square-flip.is-flipped .library-page__square {
		transform: rotateY(-180deg);
	}

	.library-page__square-flip.is-flipped .library-page__square2 {
		transform: rotateY(0deg);
	}

	.library-page__square-flip.is-flipped .library-page__square-container {
		transform: translateY(-50%) translateX(-420px) scale(0.88);
	}

	.library-page__square-flip.is-flipped .library-page__square-container2 {
		transform: translateY(-50%) translateX(0) translateZ(0) scale(1);
	}
}
