/* EMDB: トップページ 新レイアウト（試験版）inc/emdb_front.php */
.emdb-fp, .emdb-fph {
	--fp-accent: #e9608a;
	--fp-ink: #2a2328;
	--fp-line: #e5e0e2;
	--fp-muted: #666;
	--fp-soft: #faf5f7;
}
.emdb-fp-sec { margin: 0 0 52px; }

/* ---- 見出し（左に見出し、右に操作。下に色の線） ---- */
.emdb-fp-head {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
	margin: 0 0 18px; padding: 0 0 10px; border-bottom: 3px solid var(--fp-accent);
}
.article .emdb-fp h2.emdb-fp-h {
	flex: 1 1 auto; margin: 0; padding: 0; border: 0; background: none;
	color: var(--fp-ink); font-size: 22px; font-weight: bold; line-height: 1.4; letter-spacing: .02em;
}
.article .emdb-fp h3.emdb-fp-h3 {
	margin: 0 0 10px; padding: 0 0 6px; border: 0; border-bottom: 1px solid var(--fp-line); background: none;
	color: var(--fp-ink); font-size: 15px; font-weight: bold; line-height: 1.4;
}

/* ---- 「すべて見る」: 右寄せのボタン ---- */
.emdb-fp-all { margin: 16px 0 0; text-align: right; }
.emdb-fp .emdb-fp-all a {
	display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 18px; box-sizing: border-box;
	border: 2px solid var(--fp-accent); border-radius: 6px; background: #fff;
	color: var(--fp-accent); font-size: 14px; font-weight: bold; text-decoration: none;
}
.emdb-fp .emdb-fp-all a:hover { background: var(--fp-accent); color: #fff; }

/* ---- 件数の帯 ---- */
.emdb-fp-stats {
	display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 36px;
	padding: 14px 20px; border-radius: 8px; background: var(--fp-soft);
}
.emdb-fp-stats__head { font-size: 14px; font-weight: bold; color: var(--fp-ink); margin-right: auto; }
.emdb-fp .emdb-fp-stats__item { display: flex; align-items: baseline; gap: 8px; color: var(--fp-ink); text-decoration: none; }
.emdb-fp-stats__label { font-size: 13px; color: var(--fp-muted); }
.emdb-fp-stats__num { font-size: 22px; font-weight: bold; line-height: 1.2; font-variant-numeric: tabular-nums; }
.emdb-fp .emdb-fp-stats__item:hover .emdb-fp-stats__label { text-decoration: underline; }

/* ---- 新着ムービー / 新着楽曲（カードは emdb-cards.css。列数だけここで） ---- */
@media screen and (min-width: 1024px) {
	.emdb-fp-new .emdb-cards__grid   { grid-template-columns: repeat(var(--fp-new-cols, 3), minmax(0, 1fr)); }
	.emdb-fp-music .emdb-cards__grid { grid-template-columns: repeat(var(--fp-music-cols, 2), minmax(0, 1fr)); }
}
@media screen and (max-width: 560px) {
	.emdb-fp-new .emdb-cards__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}
.emdb-fp-more { margin-top: 6px; font-size: 12px; color: var(--fp-accent); font-weight: bold; }

/* ---- 種別ボタン ---- */
.emdb-fp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.emdb-fp .emdb-fp-pill {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; box-sizing: border-box;
	border: 1px solid var(--fp-ink); border-radius: 6px; background: #fff; color: var(--fp-ink);
	font-size: 15px; font-weight: bold; text-decoration: none;
}
.emdb-fp .emdb-fp-pill:hover { background: var(--fp-ink); color: #fff; }
.emdb-fp-pill__n { font-size: 12px; font-weight: normal; color: var(--fp-muted); font-variant-numeric: tabular-nums; }
.emdb-fp .emdb-fp-pill:hover .emdb-fp-pill__n { color: #e0d6da; }

/* ---- ページ送り（新着ムービー・新着楽曲・発売月別タイトル共通） ---- */
.emdb-fp-rel__tabs { display: flex; gap: 6px; }
.emdb-fp-rel__tab,
.emdb-fp-rel__btn {
	min-height: 40px; border: 1px solid #cfc8cb; background: #fff; color: var(--fp-ink);
	font: inherit; font-size: 14px; cursor: pointer;
}
.emdb-fp-rel__tab { padding: 0 14px; border-radius: 6px; }
.emdb-fp-rel__tab small { font-size: 12px; margin-left: 2px; color: var(--fp-muted); }
.emdb-fp-rel__tab[aria-selected="true"] { background: var(--fp-ink); border-color: var(--fp-ink); color: #fff; font-weight: bold; }
.emdb-fp-rel__tab[aria-selected="true"] small { color: #fff; font-weight: normal; }
.emdb-fp-rel__ctrl { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.emdb-fp-rel__btn { width: 40px; border-radius: 50%; font-size: 16px; padding: 0; }
.emdb-fp-rel__btn:hover:not(:disabled) { border-color: var(--fp-ink); }
.emdb-fp-rel__btn:disabled { opacity: .35; cursor: default; }
.emdb-fp-rel__pos { min-width: 48px; text-align: center; font-size: 13px; color: #444; font-variant-numeric: tabular-nums; }
.emdb-fp-rel__switch { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 4px; border: 0; background: none; color: #444; font: inherit; font-size: 13px; cursor: pointer; }
.emdb-fp-rel__switch-track { position: relative; width: 40px; height: 22px; border-radius: 11px; background: #c4c4c4; transition: background .15s ease; }
.emdb-fp-rel__switch-knob { position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s ease; }
.emdb-fp-rel__switch[aria-checked="true"] .emdb-fp-rel__switch-track { background: var(--fp-accent); }
.emdb-fp-rel__switch[aria-checked="true"] .emdb-fp-rel__switch-knob { transform: translateX(18px); }
.emdb-fp-rel__tab:focus-visible, .emdb-fp-rel__btn:focus-visible, .emdb-fp-rel__switch:focus-visible { outline: 2px solid var(--fp-accent); outline-offset: 2px; }

/* ページは横に並べ、1 ページ分ずつ横へ送る（スマホは指で横スワイプ。高さはいちばん背の高いページに揃うので、めくっても下の要素が動かない） */
.emdb-fp-rel__pages {
	display: flex; overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none;
}
.emdb-fp-rel__pages::-webkit-scrollbar { display: none; }
.emdb-fp-rel__page {
	flex: 0 0 100%; min-width: 0; scroll-snap-align: start; box-sizing: border-box;
	display: grid; align-content: start;
	grid-template-columns: repeat(var(--fp-rel-per, 6), minmax(0, 1fr)); gap: 16px 14px;
}
.emdb-fp-rel__page.emdb-fp-rel__page--cards { display: block; }
.emdb-fp-rel__page.emdb-fp-rel__page--empty { display: block; color: var(--fp-muted); padding: 24px 0; }

/* ---- 発売月別タイトルの 1 本 ---- */
.emdb-fp .emdb-fp-rel__item { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: var(--fp-ink); text-decoration: none; }
.emdb-fp-rel__img {
	position: relative; display: flex; align-items: center; justify-content: center;
	aspect-ratio: 707 / 1000; border-radius: 5px; overflow: hidden; background: #f1eef0;
}
.emdb-fp-rel__img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .25s ease; }
.emdb-fp-rel__item:hover .emdb-fp-rel__img img { transform: scale(1.04); }
.emdb-fp-rel__noimg { font-size: 11px; color: #999; }
.emdb-fp-rel__date {
	position: absolute; left: 5px; top: 5px; padding: 1px 6px; border-radius: 3px;
	background: rgba(20, 16, 18, .85); color: #fff; font-size: 11px; font-weight: bold; line-height: 1.5;
}
.emdb-fp-rel__title {
	font-size: 12px; line-height: 1.45; font-weight: bold; text-decoration: underline; text-underline-offset: 3px;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.emdb-fp-rel__brand { font-size: 11px; line-height: 1.4; color: var(--fp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media screen and (max-width: 834px) {
	.emdb-fp-rel__page { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
	.emdb-fp-relsec .emdb-fp-rel__ctrl { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .emdb-fp-rel__img img { transition: none; } }

/* ---- 探す ---- */
.emdb-fp-findbox { margin: 0 0 28px; padding: 18px 20px; border-radius: 8px; background: var(--fp-soft); display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.emdb-fp-search { display: flex; flex: 1 1 320px; max-width: 560px; margin: 0; }
.emdb-fp-search input[type="search"] {
	flex: 1 1 auto; min-width: 0; height: 46px; padding: 0 14px; box-sizing: border-box; font: inherit; font-size: 15px; color: var(--fp-ink);
	border: 1px solid #bfb6ba; border-right: 0; border-radius: 6px 0 0 6px; background: #fff;
}
.emdb-fp-search button { flex: none; width: 52px; height: 46px; border: 0; border-radius: 0 6px 6px 0; background: var(--fp-accent); color: #fff; font-size: 16px; cursor: pointer; }
.emdb-fp-search input[type="search"]:focus-visible { outline: 2px solid var(--fp-accent); outline-offset: -1px; }
.emdb-fp-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.emdb-fp-seg__label { font-size: 13px; font-weight: bold; color: var(--fp-ink); }
.emdb-fp-seg__items { display: inline-flex; flex-wrap: wrap; border: 1px solid #bfb6ba; border-radius: 6px; overflow: hidden; background: #fff; }
.emdb-fp .emdb-fp-seg__items a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; box-sizing: border-box;
	color: var(--fp-ink); font-size: 14px; text-decoration: none; border-left: 1px solid #ddd5d8;
}
.emdb-fp .emdb-fp-seg__items a:first-child { border-left: 0; }
.emdb-fp .emdb-fp-seg__items a:hover { background: var(--fp-ink); color: #fff; }
.emdb-fp-find__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.emdb-fp-find__block { min-width: 0; }
.emdb-fp-find__block--wide { grid-column: 1 / -1; }
.emdb-fp-years { display: flex; flex-wrap: wrap; gap: 8px; }
.emdb-fp .emdb-fp-year {
	display: inline-flex; align-items: baseline; justify-content: center; gap: 6px; min-width: 76px; min-height: 40px; padding: 8px 10px;
	border: 1px solid #cfc8cb; border-radius: 6px; background: #fff; color: var(--fp-ink); font-size: 14px; font-weight: bold; box-sizing: border-box; text-decoration: none;
}
.emdb-fp .emdb-fp-year:hover { border-color: var(--fp-ink); background: var(--fp-ink); color: #fff; }
.emdb-fp-year__n { font-size: 11px; font-weight: normal; color: var(--fp-muted); }
.emdb-fp .emdb-fp-year:hover .emdb-fp-year__n { color: #e0d6da; }
.emdb-fp .emdb-fp-rank { list-style: none; margin: 0; padding: 0; }
.emdb-fp .emdb-fp-rank li { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--fp-line); font-size: 14px; }
.emdb-fp .emdb-fp-rank a { text-decoration: underline; text-underline-offset: 3px; }
.emdb-fp-rank__n { margin-left: auto; flex: none; font-size: 12px; color: var(--fp-muted); font-variant-numeric: tabular-nums; }
@media screen and (max-width: 834px) { .emdb-fp-find__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---- お知らせ・更新情報 ---- */
.emdb-fp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.emdb-fp-two > section { min-width: 0; }
.emdb-fp .emdb-fp-list { list-style: none; margin: 0; padding: 0; }
.emdb-fp .emdb-fp-list li {
	display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: baseline;
	margin: 0; padding: 10px 0; border-bottom: 1px solid var(--fp-line); font-size: 14px; line-height: 1.5;
}
.emdb-fp .emdb-fp-list--typed li { grid-template-columns: auto 5.5em minmax(0, 1fr); }
.emdb-fp-list time { font-size: 12px; color: var(--fp-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.emdb-fp-list__type { font-size: 11px; font-weight: bold; text-align: center; line-height: 1.7; border: 1px solid #b9aeb3; border-radius: 3px; color: #4a3f45; white-space: nowrap; }
.emdb-fp .emdb-fp-list a { text-decoration: underline; text-underline-offset: 3px; }
@media screen and (max-width: 834px) { .emdb-fp-two { grid-template-columns: minmax(0, 1fr); } }
@media screen and (max-width: 480px) {
	.emdb-fp .emdb-fp-list--typed li { grid-template-columns: auto auto minmax(0, 1fr); }
	.emdb-fp .emdb-fp-list--typed li a { grid-column: 1 / -1; }
	.emdb-fp-list__type { padding: 0 8px; }
}

/* ---- 表示パラメーター（編集権限者のみ） ---- */
.emdb-fp-panel { margin: 0 0 28px; border: 1px dashed #b9a7ae; border-radius: 8px; background: #fffafc; font-size: 13px; }
.emdb-fp-panel > summary { padding: 10px 14px; cursor: pointer; font-weight: bold; }
.emdb-fp-panel form { padding: 4px 14px 14px; }
.emdb-fp-panel__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 4px 12px; align-items: center; padding: 6px 8px; border-top: 1px solid #f0e4e9; }
.emdb-fp-panel__row.is-changed { background: #fdecf2; }
.emdb-fp-panel__row > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.emdb-fp-panel input[type="number"] { width: 80px; }
.emdb-fp-panel input, .emdb-fp-panel select { font: inherit; padding: 4px 6px; border: 1px solid #ccc; border-radius: 4px; background: #fff; max-width: 100%; }
.emdb-fp-panel .emdb-fp-panel__wide { width: 100%; }
.emdb-fp-panel code { font-size: 11px; color: #888; background: none; padding: 0; }
.emdb-fp-panel__hint { font-size: 11px; color: #777; }
.emdb-fp-panel__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; border-top: 1px solid #f0e4e9; }
.emdb-fp-panel__go { min-height: 38px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--fp-accent); color: #fff; font: inherit; font-weight: bold; cursor: pointer; }
@media screen and (max-width: 600px) { .emdb-fp-panel__row { grid-template-columns: minmax(0, 1fr); } }

/* ---- ヒーロー（fp_hero=new）: 全面ムービー＋中央にロゴと検索＋下端に操作の帯 ---- */
.emdb-fph {
	position: relative; width: 100%; overflow: hidden; background: #0d0b0e; color: #fff;
	height: calc(var(--fph-h, 100) * 1vh); min-height: 440px;
	display: flex; align-items: center; justify-content: center;
	container-type: size;
}
@supports (height: 1svh) { .emdb-fph { height: calc(var(--fph-h, 100) * 1svh); } }
.emdb-fph__bg, .emdb-fph__shade { position: absolute; inset: 0; }
.emdb-fph__slide {
	position: absolute; inset: 0; background: #0d0b0e center / cover no-repeat;
	opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s;
}
.emdb-fph__slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease; }
.emdb-fph__frame { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.emdb-fph__slide.is-playing .emdb-fph__frame { opacity: 1; }
/* 16:9 の映像で枠を埋める。--fph-zoom の分だけ大きくして、YouTube が上端に出す題名・下端のロゴを枠の外へ切る */
.emdb-fph__frame iframe {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); border: 0;
	width: calc(max(100vw, 177.78vh) * var(--fph-zoom, 1.15)); height: calc(max(56.25vw, 100vh) * var(--fph-zoom, 1.15));
	width: calc(max(100cqw, 177.78cqh) * var(--fph-zoom, 1.15)); height: calc(max(56.25cqw, 100cqh) * var(--fph-zoom, 1.15));
}
.emdb-fph__shade { z-index: 1; background: rgba(13, 11, 14, var(--fph-dim, .4)); }
.emdb-fph__content { position: relative; z-index: 2; width: 100%; max-width: 900px; padding: 0 20px 64px; box-sizing: border-box; text-align: center; }
.emdb-fph__greet { margin: 0 0 14px; font-size: 15px; letter-spacing: .15em; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.emdb-fph__logo { width: 70%; max-width: 340px; height: auto; margin: 0 auto 18px; display: block; filter: drop-shadow(0 2px 14px rgba(0, 0, 0, .6)); }
.emdb-fph .emdb-fph__tagline {
	margin: 0 0 28px; padding: 0; border: 0; background: none; color: #fff;
	font-size: clamp(15px, 2.4vw, 21px); font-weight: normal; letter-spacing: .12em; line-height: 1.6; text-shadow: 0 2px 12px rgba(0, 0, 0, .8);
}
.emdb-fph__tagline .fas { font-size: .7em; opacity: .7; margin: 0 4px; }
.emdb-fph .emdb-fp-search { max-width: 520px; margin: 0 auto; box-shadow: 0 4px 24px rgba(0, 0, 0, .35); border-radius: 6px; }
.emdb-fph .emdb-fp-search input[type="search"] { height: 50px; border-color: #fff; font-size: 16px; }
.emdb-fph .emdb-fp-search button { height: 50px; width: 56px; }
.emdb-fph__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.emdb-fph .emdb-fph__navbtn {
	display: inline-flex; align-items: center; min-height: 42px; padding: 0 20px; box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, .6); border-radius: 4px; background: rgba(255, 255, 255, .1);
	color: #fff; font-size: 14px; letter-spacing: .08em; text-decoration: none;
}
.emdb-fph .emdb-fph__navbtn:hover { background: rgba(255, 255, 255, .24); border-color: #fff; color: #fff; }

.emdb-fph__band { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; background: rgba(13, 11, 14, .82); }
.emdb-fph__band-in { max-width: 1256px; margin: 0 auto; padding: 10px 16px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; }
.emdb-fph__ctrl { display: flex; gap: 6px; flex: none; }
.emdb-fph__btn {
	width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45);
	background: transparent; color: #fff; font-size: 13px; cursor: pointer;
}
.emdb-fph__btn:hover { background: rgba(255, 255, 255, .18); }
.emdb-fph__btn:focus-visible, .emdb-fph__navbtn:focus-visible, .emdb-fph__title:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.emdb-fph .emdb-fph__title {
	flex: 1 1 auto; min-width: 0; color: #fff; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
	text-decoration: underline; text-underline-offset: 3px;
}
.emdb-fph .emdb-fph__title:hover { color: #fff; opacity: .75; }
.emdb-fph__pos { flex: none; font-size: 12px; color: #e6dde1; font-variant-numeric: tabular-nums; }
@media screen and (max-width: 600px) {
	.emdb-fph__band-in { flex-wrap: wrap; gap: 8px 10px; }
	.emdb-fph .emdb-fph__title { order: 5; flex-basis: 100%; font-size: 13px; }
	.emdb-fph__pos { margin-left: auto; }
	.emdb-fph__content { padding-bottom: 100px; }
	.emdb-fph__logo { max-width: 230px; }
	.emdb-fph .emdb-fph__navbtn { min-height: 40px; padding: 0 14px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .emdb-fph__slide, .emdb-fph__slide.is-active, .emdb-fph__frame { transition: none; } }

/* ---- ヒーロー中央のボタン（検索・詳細検索・ランダム）と半透明の検索窓、「下へ」 ---- */
.emdb-fph__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.emdb-fph .emdb-fph__act {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; box-sizing: border-box;
	border: 1px solid rgba(255, 255, 255, .6); border-radius: 22px; background: rgba(255, 255, 255, .12);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	color: #fff; font: inherit; font-size: 14px; letter-spacing: .06em; text-decoration: none; cursor: pointer;
}
.emdb-fph .emdb-fph__act:hover, .emdb-fph .emdb-fph__act[aria-expanded="true"] { background: rgba(255, 255, 255, .3); border-color: #fff; color: #fff; }
.emdb-fph__act:focus-visible, .emdb-fph__down:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.emdb-fph .emdb-fp-search { box-shadow: none; }
.emdb-fph .emdb-fp-search input[type="search"] {
	background: rgba(255, 255, 255, .16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	border-color: rgba(255, 255, 255, .6); color: #fff;
}
.emdb-fph .emdb-fp-search input[type="search"]:hover,
.emdb-fph .emdb-fp-search input[type="search"]:focus { background: rgba(255, 255, 255, .26); border-color: #fff; outline: none; }
.emdb-fph .emdb-fp-search button { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .6); border-left: 0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.emdb-fph .emdb-fp-search button:hover { background: rgba(255, 255, 255, .34); }
.emdb-fph__down {
	position: absolute; left: 50%; bottom: 60px; z-index: 3; transform: translateX(-50%); padding: 8px 14px 0;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	border: 0; background: none; color: #fff; font: inherit; cursor: pointer; opacity: .8;
}
.emdb-fph__down:hover { opacity: 1; }
.emdb-fph__down-text { font-size: 11px; letter-spacing: .32em; margin-right: -.32em; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.emdb-fph__down-line { position: relative; width: 1px; height: 44px; background: rgba(255, 255, 255, .35); overflow: hidden; transition: background-color .18s ease; }
.emdb-fph__down:hover .emdb-fph__down-line { background: rgba(255, 255, 255, .7); }
.emdb-fph__down-line::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: #fff; animation: emdb-fph-scroll 1.8s ease-in-out infinite; }
@keyframes emdb-fph-scroll { 0% { transform: translateY(-100%); } 100% { transform: translateY(200%); } }
.emdb-fph__actions { margin-top: 14px; }
.emdb-fph__content { padding-bottom: 150px; }
@media screen and (max-width: 600px) { .emdb-fph__down { bottom: 92px; } .emdb-fph__content { padding-bottom: 190px; } }
@media (prefers-reduced-motion: reduce) { .emdb-fph__down-line::after { animation: none; } }

/* ---- 押せるものは必ずホバーで色が変わる（位置は動かさない） ---- */
.emdb-fp a, .emdb-fp button, .emdb-fph a, .emdb-fph button, .emdb-fp-search input[type="search"] {
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
}
.emdb-fp .emdb-fp-stats__item:hover .emdb-fp-stats__num,
.emdb-fp .emdb-fp-stats__item:hover .emdb-fp-stats__label { color: var(--fp-accent); }
.emdb-fp-rel__tab:hover:not([aria-selected="true"]) { background: var(--fp-soft); border-color: var(--fp-ink); }
.emdb-fp-rel__btn:hover:not(:disabled) { background: var(--fp-ink); border-color: var(--fp-ink); color: #fff; }
.emdb-fp-rel__switch:hover { color: var(--fp-accent); }
.emdb-fp-rel__switch:hover .emdb-fp-rel__switch-track { background: #a9a9a9; }
.emdb-fp-rel__switch[aria-checked="true"]:hover .emdb-fp-rel__switch-track { background: var(--fp-accent); opacity: .75; }
.emdb-fp .emdb-fp-rel__item:hover .emdb-fp-rel__title { color: var(--fp-accent); }
.emdb-fp .emdb-fp-rank a:hover, .emdb-fp .emdb-fp-list a:hover { background: var(--fp-soft); }
.emdb-fp-search button:hover { opacity: .8; }
.emdb-fp-search input[type="search"]:hover { border-color: var(--fp-ink); }
.emdb-fp-panel__go:hover { opacity: .8; }
.emdb-fph .emdb-fph__btn:hover { background: rgba(255, 255, 255, .3); border-color: #fff; }
.emdb-fp .emdb-card--whole { transition: border-color .18s ease, box-shadow .18s ease; }
.emdb-fp .emdb-card--whole:hover { border-color: var(--fp-accent); box-shadow: 0 2px 10px rgba(42, 35, 40, .12); }
.emdb-fp .emdb-card--whole:hover .emdb-card__title a, .emdb-fp .emdb-card--whole:hover .emdb-card__title span { color: var(--fp-accent); }

/* 件数の帯: 中の文字にも色の変化のアニメーションを効かせる */
.emdb-fp-stats__num, .emdb-fp-stats__label, .emdb-fp-rel__title, .emdb-fp-year__n, .emdb-fp-pill__n { transition: color .18s ease; }
.emdb-fp .emdb-fp-stats__item:hover .emdb-fp-stats__label { text-decoration: none; }

/* ---- ヒーロー: Cocoon の iframe{max-width:100%} を外す（これが効くと映像が枠いっぱいに広がらない） ---- */
.emdb-fph__frame iframe { max-width: none; max-height: none; }

/* ---- スマホ・タブレット（下に固定メニュー 50px、上に固定ヘッダー）: 帯が固定メニューに隠れないように高さを詰める ---- */
@media screen and (max-width: 1023px) {
	.emdb-fph { height: calc(var(--fph-h, 100) * 1vh - 40px); }
	@supports (height: 1svh) { .emdb-fph { height: calc(var(--fph-h, 100) * 1svh - 40px); } }
}

/* ---- スマホ縦持ち（fp_hero_sp=fit）: 映像は上に 16:9 のまま全体を出し、その下に帯・ロゴ・検索を縦に並べる ---- */
@media screen and (max-width: 600px) and (orientation: portrait) {
	.emdb-fph.emdb-fph--spfit {
		height: auto; min-height: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start;
		container-type: normal; padding-top: 60px; /* 固定ヘッダーの下に潜る分 */
	}
	.emdb-fph--spfit .emdb-fph__bg { position: relative; inset: auto; order: 1; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
	.emdb-fph--spfit .emdb-fph__frame iframe { width: calc(100% * var(--fph-zoom, 1.15)); height: calc(100% * var(--fph-zoom, 1.15)); }
	.emdb-fph--spfit .emdb-fph__shade, .emdb-fph--spfit .emdb-fph__down { display: none; }
	.emdb-fph--spfit .emdb-fph__band { position: static; order: 2; background: #1a161a; }
	.emdb-fph--spfit .emdb-fph__content { order: 3; padding: 26px 20px 30px; }
	.emdb-fph--spfit .emdb-fph__logo { max-width: 220px; margin-bottom: 12px; }
	.emdb-fph--spfit .emdb-fph__tagline { margin-bottom: 20px; font-size: 14px; }
}

/* ---- 件数の帯（スマホ）: 2 列にそろえる ---- */
@media screen and (max-width: 600px) {
	.emdb-fp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; padding: 14px 16px; }
	.emdb-fp-stats__head { grid-column: 1 / -1; margin: 0; }
	.emdb-fp .emdb-fp-stats__item { justify-content: space-between; white-space: nowrap; }
}

/* ---- スマホ縦持ち（fp_hero_sp=center）: 全画面。ぼかしたサムネイルを背景に、ロゴ → 映像（16:9 全体）→ 検索 を中央に縦に並べる ---- */
.emdb-fph__blur { display: none; }
@media screen and (max-width: 600px) and (orientation: portrait) {
	.emdb-fph.emdb-fph--spcenter {
		container-type: normal; flex-direction: column; align-items: stretch; justify-content: center;
		padding: 60px 0 96px; box-sizing: border-box; /* 上: 固定ヘッダーの下に潜る分 / 下: 操作の帯 */
	}
	.emdb-fph--spcenter .emdb-fph__blur {
		display: block; position: absolute; inset: -40px; z-index: 0;
		background: #0d0b0e center / cover no-repeat; filter: blur(22px); transition: background-image .6s ease;
	}
	.emdb-fph--spcenter .emdb-fph__content { display: contents; }
	.emdb-fph--spcenter .emdb-fph__greet,
	.emdb-fph--spcenter .emdb-fph__logo,
	.emdb-fph--spcenter .emdb-fph__tagline,
	.emdb-fph--spcenter .emdb-fph__bg,
	.emdb-fph--spcenter .emdb-fp-search,
	.emdb-fph--spcenter .emdb-fph__actions,
	.emdb-fph--spcenter .emdb-fph__nav { position: relative; z-index: 2; flex: none; }
	.emdb-fph--spcenter .emdb-fph__greet   { order: 0; text-align: center; }
	.emdb-fph--spcenter .emdb-fph__logo    { order: 1; max-width: 220px; margin: 0 auto 10px; }
	.emdb-fph.emdb-fph--spcenter .emdb-fph__tagline { order: 2; margin: 0 10px 18px; text-align: center; font-size: 13px; letter-spacing: .04em; }
	.emdb-fph--spcenter .emdb-fph__bg      { order: 3; inset: auto; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; box-shadow: 0 6px 30px rgba(0, 0, 0, .5); }
	.emdb-fph.emdb-fph--spcenter .emdb-fp-search { order: 4; max-width: none; width: auto; margin: 20px 20px 0; }
	.emdb-fph--spcenter .emdb-fph__actions,
	.emdb-fph--spcenter .emdb-fph__nav     { order: 5; margin-top: 12px; }
	.emdb-fph--spcenter .emdb-fph__down    { display: none; }

	/* 小さく出す映像: 960×540 のプレーヤーを縮めて見せる（--fph-s は js が幅から計算） */
	.emdb-fph--spcenter .emdb-fph__frame iframe,
	.emdb-fph--spfit .emdb-fph__frame iframe {
		width: 960px; height: 540px; transform: translate(-50%, -50%) scale(var(--fph-s, .45));
	}
}

/* ---- ヒーロー: 読み込み中の印（サムネイルのまま待っている間だけ、サムネイルの上に出す） ---- */
.emdb-fph__spin { display: none; } /* 帯の中の印は使わない */
@keyframes emdb-fph-spin { to { transform: rotate(360deg); } }
/* 全面の配置（PC など）: 背景の一部として真ん中に（ロゴ・検索の後ろ） */
.emdb-fph.is-loading::after {
	content: ""; position: absolute; left: 50%; top: 50%; z-index: 1; width: 44px; height: 44px; margin: -22px 0 0 -22px; box-sizing: border-box;
	border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; pointer-events: none;
	animation: emdb-fph-spin .8s linear infinite; filter: drop-shadow(0 0 6px rgba(0, 0, 0, .6));
}
@media screen and (max-width: 600px) and (orientation: portrait) {
	/* 映像を枠で出す配置では、映像の中央に出す */
	.emdb-fph--spcenter.is-loading::after, .emdb-fph--spfit.is-loading::after { content: none; }
	.emdb-fph--spcenter.is-loading .emdb-fph__bg::after,
	.emdb-fph--spfit.is-loading .emdb-fph__bg::after {
		content: ""; position: absolute; left: 50%; top: 50%; z-index: 2; width: 36px; height: 36px; margin: -18px 0 0 -18px; box-sizing: border-box;
		border: 3px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%;
		animation: emdb-fph-spin .8s linear infinite; filter: drop-shadow(0 0 6px rgba(0, 0, 0, .6));
	}
}

/* ---- 発売月別タイトル: 月（タブ）が替わるときの動き ---- */
.emdb-fp-rel__panel.is-enter { animation: emdb-fp-panel-in .45s ease both; }
@keyframes emdb-fp-panel-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .emdb-fp-rel__panel.is-enter { animation: none; } }
.emdb-fp-relsec { overflow-x: clip; }
