@charset "UTF-8";
/*
 * 作品詳細（01）
 *
 * 星5〜1の棒グラフはデータが無いため、平均を1本のバーで見せる形にしてある。
 */

/* ============================================================ ヒーロー */

.md-ihero {
	display: flex;
	gap: 36px;
	align-items: flex-start;
	margin: 0 0 36px;
}

.md-ihero__gallery {
	width: 400px;
	flex: none;
}

.md-igal {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.md-igal__stage {
	position: relative;
	height: 520px;
	border-radius: 8px;
	background: var(--md-surface-2);
	border: 1px solid var(--md-line-4);
	overflow: hidden;
	touch-action: pan-y;
	user-select: none;
	cursor: grab;
}

.md-igal__stage:active { cursor: grabbing; }

.md-igal__stage .md-card__slide { padding: 14px 0; }

.md-igal__counter {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 3;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(29, 28, 26, .72);
	color: #fff;
	font-family: var(--md-font-mono);
	font-size: 11px;
}

.md-igal__thumbs {
	display: flex;
	gap: 7px;
	overflow-x: auto;
	padding-bottom: 4px;
	scrollbar-width: thin;
}

.md-igal__thumb {
	width: 44px;
	height: 62px;
	flex: none;
	padding: 0;
	border: 1px solid var(--md-line-2);
	border-radius: 4px;
	overflow: hidden;
	background: var(--md-surface-2);
	cursor: pointer;
}

.md-igal__thumb.is-on { border: 2px solid var(--md-red); }

.md-igal__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.md-ihero__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.md-ihero__maker {
	margin: 0;
	font-size: 13.5px;
}

.md-ihero__maker a { color: var(--md-red); }

.md-ihero__score {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.md-ihero__price {
	margin: 0;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 10px;
}

.md-ihero__now {
	font-family: var(--md-font-round);
	font-weight: 800;
	font-size: 34px;
	line-height: 1.1;
	color: var(--md-red);
}

.md-ihero__old {
	font-size: 13px;
	color: var(--md-ink-3);
}

.md-ihero__btn {
	width: 100%;
	height: 64px;
}

.md-ihero__btn .md-btn3d__label { font-size: 19px; }

.md-ispec {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 20px;
	margin: 6px 0 0;
	font-size: 13.5px;
}

.md-ispec dt {
	color: var(--md-ink-3);
	font-weight: 400;
}

.md-ispec dd {
	margin: 0;
	color: var(--md-ink);
}

.md-igenres {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}

/* ============================================================== 評価 */

.md-ireview {
	margin: 0 0 32px;
}

.md-ireview__body {
	padding: 22px 24px;
	border: 1.5px solid var(--md-line);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.md-ireview__main {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
}

.md-ireview__score {
	font-family: var(--md-font-round);
	font-weight: 800;
	font-size: 40px;
	line-height: 1;
	color: var(--md-ink);
}

.md-ireview__max {
	font-size: 13px;
	color: var(--md-ink-3);
}

.md-ireview__stars {
	font-size: 18px;
	color: var(--md-red);
	letter-spacing: .05em;
}

.md-ireview__bar {
	height: 10px;
	border-radius: 999px;
	background: var(--md-surface-3);
	overflow: hidden;
}

.md-ireview__bar span {
	display: block;
	height: 100%;
	background: var(--md-red);
	border-radius: 999px;
}

.md-ireview__count {
	margin: 0;
	font-size: 13.5px;
	color: var(--md-ink-2);
}

.md-ireview__corrected {
	display: flex;
	align-items: baseline;
	gap: 9px;
	padding: 12px 16px;
	border-radius: 10px;
	background: #dff8f6;
}

.md-ireview__clabel {
	font-size: 12.5px;
	color: var(--md-teal-ink);
}

.md-ireview__cvalue {
	font-family: var(--md-font-round);
	font-weight: 800;
	font-size: 22px;
	color: var(--md-teal-3);
}

.md-ireview__cmax {
	font-size: 11.5px;
	color: var(--md-teal-shadow);
}

.md-ireview__note {
	margin: 0;
	font-size: 12px;
	line-height: 1.8;
	color: var(--md-ink-3);
}

/* ====================================================== 記事末のCTA */

.md-ictabox {
	padding: 26px 28px;
	border: 1.5px solid var(--md-line);
	border-radius: 14px;
	background: var(--md-surface);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 0 0 32px;
}

.md-ictabox__title {
	margin: 0;
	font-family: var(--md-font-round);
	font-weight: 800;
	font-size: 16px;
	line-height: 1.6;
	color: var(--md-ink);
}

.md-ictabox__price {
	margin: 0;
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.md-ictabox__btn {
	width: 100%;
	max-width: 420px;
	height: 64px;
}

.md-ictabox__btn .md-btn3d__label { font-size: 19px; }

.md-ictabox__note {
	margin: 0;
	font-size: 11.5px;
	color: var(--md-ink-3);
}

/* ================================================ 同じサークルの作品 */

.md-circleworks { margin: 32px 0 0; }

.md-circleworks__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.md-circlework {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: 12px;
	border: 1.5px solid var(--md-line);
	border-radius: 12px;
	text-decoration: none !important;
}

.md-circlework:hover {
	border-color: var(--md-line-5);
	background: var(--md-surface);
}

.md-circlework__cover {
	width: 44px;
	height: 62px;
	flex: none;
	border-radius: 4px;
	border: 1px solid var(--md-line-2);
	overflow: hidden;
	background: var(--md-surface-2);
	display: block;
}

.md-circlework__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.md-circlework__body {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.md-circlework__title {
	font-size: 12.5px;
	font-weight: 700;
	line-height: 1.45;
	color: var(--md-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.md-circlework__price {
	font-family: var(--md-font-round);
	font-weight: 800;
	font-size: 13px;
	color: var(--md-red);
}

/* ================================================= SPの購入バー（固定） */

.md-buybar { display: none; }

/* ======================================================= レスポンシブ */

@media screen and (max-width: 1023px) {
	.md-ihero { gap: 24px; }
	.md-ihero__gallery { width: 320px; }
	.md-igal__stage { height: 420px; }
	.md-circleworks__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 834px) {
	.md-ihero {
		flex-direction: column;
		gap: 18px;
		margin-bottom: 26px;
	}

	.md-ihero__gallery { width: 100%; }
	.md-igal__stage { height: 380px; }
	.md-igal__stage .md-card__nav { display: none; }

	.md-ihero__now { font-size: 28px; }
	.md-ihero__btn { height: 56px; }
	.md-ihero__btn .md-btn3d__label { font-size: 17px; }

	.md-ireview__body { padding: 16px; }
	.md-ireview__score { font-size: 32px; }

	.md-ictabox { padding: 18px 16px; }
	.md-ictabox__btn { height: 56px; }

	.md-circleworks__list { grid-template-columns: minmax(0, 1fr); }

	/*
	 * 画面下に価格と購入ボタンを貼り付ける。
	 * Cocoon の「モバイルフッターボタン」を使っている場合は重なるので、
	 * Cocoon 側で非表示にするか mdc_item_sticky_bar フィルタで false にする。
	 */
	.single-doujin .md-buybar {
		display: flex;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 90;
		align-items: center;
		gap: 12px;
		padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, .96);
		border-top: 1px solid var(--md-line);
		box-shadow: 0 -6px 16px rgba(0, 0, 0, .06);
	}

	.md-buybar__price {
		display: flex;
		align-items: baseline;
		gap: 7px;
		flex: none;
	}

	.md-buybar__off {
		padding: 2px 7px;
		border-radius: 4px;
		background: var(--md-red);
		color: #fff;
		font-family: var(--md-font-round);
		font-weight: 800;
		font-size: 11px;
	}

	.md-buybar__now {
		font-family: var(--md-font-round);
		font-weight: 800;
		font-size: 20px;
		color: var(--md-red);
	}

	.md-buybar__btn {
		flex: 1;
		height: 48px;
	}

	.md-buybar__btn .md-btn3d__label { font-size: 15px; }

	/* 固定バーに隠れないよう、フッターの下に余白を足す */
	.single-doujin .footer { padding-bottom: 76px; }
}
