/* =========================================================
 * 作品ハブ（work-hub-pc / work-hub-sp）
 * ======================================================= */

/* 作品ヘッダー */
.workhead {
	margin: 16px var(--gutter) 0; border-radius: 16px; overflow: hidden; background: #1d2130; color: #fff;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
}
.workhead__img { min-height: 300px; }
.workhead__body { padding: 26px 30px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.workhead__badges { display: flex; gap: 6px; flex-wrap: wrap; }
.workhead__badges span { font-size: 11px; font-weight: 900; padding: 3px 9px; border-radius: 4px; white-space: nowrap; }
.workhead__title { margin: 0; font-size: clamp(24px, 2.8vw, 34px); font-weight: 900; line-height: 1.35; }
.workhead__lead { font-size: 14px; line-height: 1.8; color: #c8ccd8; word-break: auto-phrase; }
.workhead__upd { font-size: 12px; color: #9aa0b0; } /* 更新日と、情報を調べた日 */
.workhead__sep { margin: 0 6px; }
.workhead__facts { display: flex; gap: 16px; font-size: 12px; color: #c8ccd8; flex-wrap: wrap; }
.workhead__facts > span { white-space: nowrap; }
.workhead__fk { color: #9aa0b4; }
.workhead__facts b { font-weight: 700; color: #fff; }
.workhead__ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.workhead__btn { font-weight: 900; font-size: 14px; padding: 12px 22px; border-radius: 999px; white-space: nowrap; }
.workhead__btn--white { background: #fff; color: var(--navy); }
.workhead__btn--white:hover { background: var(--blue-bg); color: var(--navy); }
.workhead__btn--red { background: var(--btn); color: #fff; box-shadow: 0 3px 0 var(--btn-sh); }
.workhead__btn--red:hover { color: #fff; background: var(--btn-h); }
.workhead__fav {
	border: 1.5px solid var(--gold); background: transparent; color: #f0c040; font-size: 13px; padding: 10px 18px; font-family: inherit;
}
.workhead__fav.is-fav { background: var(--gold); color: #fff; }

/* よく調べられていること */
.answers { margin: 20px var(--gutter) 0; display: flex; flex-direction: column; gap: 12px; }
.answers__h { margin: 0; font-size: 19px; font-weight: 900; }
.answers__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.answer {
	border: 1px solid var(--bd); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px;
	transition: transform .15s, box-shadow .15s;
}
.answer:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(29, 33, 48, .1); }
.answer__q { font-size: 12px; font-weight: 900; color: var(--navy); }
.answer__a { font-size: 16px; font-weight: 900; line-height: 1.45; word-break: auto-phrase; }
.answer__hide {
	display: none; font-size: 13px; font-weight: 900; color: var(--amber); background: var(--amber-bg); border-radius: 6px;
	padding: 6px 8px; align-self: flex-start; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit;
}
.answer__more { font-size: 12px; color: var(--sub); margin-top: auto; }
.hub.is-anime .answer[data-level="manga"]:not(.is-revealed) .answer__a { display: none; }
.hub.is-anime .answer[data-level="manga"]:not(.is-revealed) .answer__hide { display: inline-block; }

/* 本体と横の欄 */
.hub-wrap {
	padding: 24px var(--gutter) 56px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start;
}
.hub-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.hub-bar {
	position: sticky; top: 0; z-index: 3; background: #fff; padding: 8px 0; display: flex; flex-direction: column; gap: 10px;
	border-bottom: 1px solid var(--bd);
}
.hub-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.hub-tab {
	flex-shrink: 0; border: 0; background: var(--bg1); color: var(--body); font-weight: 700; font-size: 13px; padding: 9px 16px;
	border-radius: 999px; white-space: nowrap; cursor: pointer; font-family: inherit;
}
.hub-tab:hover { background: #e3e8f2; }
.hub-tab.is-active { background: var(--navy); color: #fff; font-weight: 900; cursor: default; }
.hub-tab__n { opacity: .75; margin-left: 2px; }
.hub-spoil { background: transparent; padding: 0; }
.hub-spoil .spoil-range__tabs { background: var(--amber-bg); }

.hub-sec { display: flex; flex-direction: column; gap: 10px; }
.hub-sec__h { display: flex; align-items: center; border-left: 6px solid var(--navy); padding-left: 12px; gap: 12px; }
.hub-sec__h h2 { margin: 0; font-size: 20px; font-weight: 900; }
.hub-pv__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.hub-pv__item { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hub-pv__play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 10px; overflow: hidden; background: #000; cursor: pointer; }
.hub-pv__play img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hub-pv__icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 40px; border-radius: 10px; background: rgba(29, 33, 48, .85); color: #fff; font-size: 18px; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.hub-pv__play:hover .hub-pv__icon { background: var(--red); }
.hub-pv__frame { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.hub-pv__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hub-pv__cap { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 1.5; }
.hub-pv__cap span { font-size: 11px; color: var(--sub); }
.hub-sec__note { margin-left: auto; font-size: 12px; color: var(--sub); }
.hub-sec__more { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--navy); }
@media (min-width: 769px) { .hub-sec__note + .hub-sec__more { margin-left: 0; } } /* 「放送翌日に更新」の右に並べます */

/* 各話 */
.eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ep {
	border: 1px solid var(--bd); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px;
	background: #fff; color: var(--ink);
}
a.ep:hover { border-color: var(--navy); color: var(--ink); }
.ep.is-latest { border: 2px solid var(--red); background: var(--ebook-bg); }
.ep.is-future { opacity: .5; }
.ep__top { display: flex; justify-content: space-between; align-items: center; }
.ep__no { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--red); }
.ep__latest { background: var(--red); color: #fff; font-size: 10px; font-weight: 900; padding: 1px 6px; border-radius: 3px; }
.ep__title { font-size: 13px; font-weight: 900; line-height: 1.45; word-break: auto-phrase; }
.ep__meta { font-size: 11px; color: var(--sub); }

/* キャラクター */
.chars { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.char { border: 1px solid var(--bd); border-radius: 12px; padding: 12px; display: flex; gap: 10px; align-items: center; }
.char__img { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.char__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.char__name { font-size: 14px; font-weight: 900; white-space: nowrap; }
.char__role { font-size: 11px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.char__fate { align-self: flex-start; font-size: 10px; font-weight: 900; padding: 1px 7px; border-radius: 3px; background: var(--green-bg); color: var(--green); }
.char__fate.is-dead { background: var(--ink); color: #fff; }
.char__reveal {
	display: none; align-self: flex-start; border: 0; background: var(--amber-bg); color: var(--amber); font-size: 10px; font-weight: 900;
	padding: 2px 7px; border-radius: 3px; cursor: pointer; font-family: inherit;
}
.hub.is-anime .char__fate[data-level="manga"]:not(.is-revealed) { display: none; }
.hub.is-anime .char__fate[data-level="manga"]:not(.is-revealed) + .char__reveal { display: inline-block; }

/* 記事 */
.arts { display: flex; flex-direction: column; margin-top: -6px; }
.art { display: flex; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--row); color: var(--ink); transition: opacity .15s; }
.art:hover { background: #fafbfd; color: var(--ink); }
.art__img { width: 120px; flex-shrink: 0; border-radius: 6px; }
.art__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.art__meta { display: flex; gap: 6px; align-items: center; }
.art__cat { font-size: 11px; font-weight: 900; }
.art__title { font-size: 15px; font-weight: 700; line-height: 1.5; word-break: auto-phrase; }
.art__date { font-size: 11px; color: var(--sub); }
/* ネタバレの範囲で記事を半透明にする仕組みは、意味が伝わりにくいのでやめました（2026-11-03 ユーザーの決定） */

/* 配信・原作 */
.watchread { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.watchread__box { border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.watchread__box--watch { background: var(--blue-bg); }
.watchread__box--read { background: var(--ebook-bg); }
.watchread__h { font-size: 15px; font-weight: 900; }
.watchread__t { font-size: 13px; color: var(--body); line-height: 1.6; }
.watchread__btn { margin-top: auto; font-weight: 900; font-size: 13px; padding: 11px; box-shadow: none; }
.watchread__apps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-top: 1px dashed #f5d5d2; padding-top: 8px; font-size: 12px; } /* ほかのアプリ（base.css の .otaku-cont__app） */
.watchread__apps-h { font-weight: 700; color: var(--body); }
.watchread__apps .otaku-cont__app { padding: 3px 10px; font-size: 12px; }

/* 横の欄 */
.hub-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 20px; }
.side-box { border: 1px solid var(--bd); border-radius: 12px; overflow: hidden; }
.side-box__h { padding: 12px 16px; font-weight: 900; font-size: 14px; background: var(--bg2); }
.hub-data { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 9px 16px; border-top: 1px solid var(--row); font-size: 12px; }
.hub-data__k { color: var(--sub); font-weight: 700; }
.hub-data__v { line-height: 1.55; }
.hub-rel__item { padding: 10px 16px; border-top: 1px solid var(--row); display: flex; flex-direction: column; gap: 2px; color: var(--ink); }
.hub-rel__item:hover { background: var(--hover); color: var(--ink); }
.hub-rel__t { font-size: 13px; font-weight: 900; line-height: 1.5; }
.hub-rel__why { font-size: 11px; color: var(--sub); }

/* 少し狭いPC */
@media (max-width: 1000px) and (min-width: 769px) {
	.hub-wrap { grid-template-columns: 1fr; }
	.hub-side { position: static; }
	.workhead { grid-template-columns: 1fr; }
	.workhead__img { min-height: 0; aspect-ratio: 16 / 9; }
}

/* =========================================================
 * スマホ
 * ======================================================= */
@media (max-width: 768px) {
	.workhead { margin: 0; border-radius: 0; display: flex; flex-direction: column; }
	.workhead__img { min-height: 0; aspect-ratio: 16 / 9; }
	.workhead__body { padding: 16px; gap: 10px; }
	.workhead__badges span { font-size: 10px; padding: 2px 8px; }
	.workhead__title { font-size: 22px; line-height: 1.4; }
	.workhead__lead { font-size: 13px; line-height: 1.75; }
	.workhead__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
	.workhead__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 0; }
	.workhead__btn { font-size: 13px; padding: 12px 4px; text-align: center; }
	.workhead__fav { grid-column: 1 / -1; padding: 11px; }

	.answers { margin: 18px 0 0; gap: 10px; }
	.answers__h { margin: 0 16px; font-size: 16px; }
	.answers__grid { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; padding: 0 16px 4px; }
	.answers__grid::-webkit-scrollbar { display: none; }
	.answer { flex-shrink: 0; width: 200px; padding: 12px; }
	.answer:hover { transform: none; box-shadow: none; }
	.answer__q { font-size: 11px; }
	.answer__a { font-size: 15px; }
	.answer__hide { font-size: 12px; }
	.answer__more { font-size: 11px; }

	.hub-wrap { display: block; padding: 0; }
	.hub-hero + .hub-wrap, section:not(.answers) + .hub-wrap { padding-top: 24px; } /* 「よく調べられていること」が無い作品（放送前など）で、上の紺の枠と PV がくっつかないように。2026-11-02 */
	.hub-main { gap: 20px; }
	.hub-bar { top: 65px; margin-top: 14px; padding: 10px 0; gap: 8px; }
	.hub-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 0 16px; gap: 6px; }
	.hub-tabs::-webkit-scrollbar { display: none; }
	.hub-tab { font-size: 12px; padding: 10px 14px; }
	.hub-spoil { margin: 0 16px; }
	.hub-main > .hub-sec, .hub-sp-extra { margin: 0 16px; }
	.hub-main > .hub-sec:first-of-type { margin-top: -4px; }

	.hub-sec { gap: 8px; }
	.hub-sec__h { border-left-width: 5px; padding-left: 10px; }
	.hub-sec__h h2 { font-size: 16px; }

	.eps { grid-template-columns: 1fr 1fr; gap: 6px; }
	.ep { padding: 9px 10px; gap: 3px; }
	.ep__no { font-size: 11px; }
	.ep__latest { font-size: 9px; padding: 1px 5px; }
	.ep__title { font-size: 12px; line-height: 1.4; }

	.chars { display: flex; flex-direction: column; gap: 0; }
	.char { border: 0; border-bottom: 1px solid var(--row); border-radius: 0; padding: 8px 0; }
	.char__img { width: 40px; height: 40px; }
	.char__body { flex: 1; }
	.char__reveal { padding: 8px; border-radius: 6px; }

	.arts { margin-top: -2px; }
	.art { gap: 10px; padding: 10px 0; }
	.art__img { width: 96px; }
	.art__cat { font-size: 10px; }
	.art .lbl-spoil { font-size: 9px; padding: 1px 5px; }
	.art__title { font-size: 13px; }

	.watchread { display: flex; flex-direction: column; gap: 8px; }
	.watchread__box { padding: 14px; gap: 6px; }
	.watchread__h { font-size: 14px; }
	.watchread__t { font-size: 12px; }
	.watchread__btn { padding: 12px; }

	.hub-side { position: static; padding: 20px 16px 0; gap: 6px; }
	.hub-rel { border: 0; border-radius: 0; }
	.hub-rel .side-box__h { background: none; padding: 0 0 4px; font-size: 15px; }
	.hub-rel__item { padding: 10px 0; border-top: 0; border-bottom: 1px solid var(--row); }
	.hub-rel__t { font-size: 13px; }
}
