﻿/*
Theme Name: Adult Manga Classic
Theme URI: https://adult-manga.net/
Author: adult-manga.net
Description: Lightweight classic WordPress theme for DMM Books/FANZA adult manga article sites.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: adult-manga-classic
*/

:root {
	--amc-bg: #ffffff;
	--amc-surface: #f7f7f4;
	--amc-surface-2: #efefea;
	--amc-card: #ffffff;
	--amc-card-2: #f7f7f4;
	--amc-text: #171717;
	--amc-muted: #696969;
	--amc-border: #deded8;
	--amc-accent: #d93462;
	--amc-accent-soft: #fff1f5;
	--amc-radius: 0px;
	--amc-wrap: 1120px;
}

* { box-sizing: border-box; }
html { background: var(--amc-bg); color: var(--amc-text); overflow-x: clip; }
body {
	margin: 0;
	overflow-x: clip;
	background: var(--amc-bg);
	color: var(--amc-text);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--amc-accent); }
img { max-width: 100%; height: auto; vertical-align: middle; }

/* Header */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--amc-border);
}
.site-header__inner,
.site-footer__inner,
.site-main,
.amc-wrap {
	width: min(100% - 32px, var(--amc-wrap));
	margin-inline: auto;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 24px 0;
	gap: 24px;
}
.site-brand {
	display: block;
	font-size: 24px;
	font-weight: 700;
	font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
	line-height: 1;
	color: #333;
	flex-shrink: 0;
}
.site-brand a { color: #333; }
.site-nav {
	display: flex;
	flex-wrap: nowrap;
	gap: 0 24px;
	justify-content: flex-end;
	font-size: 14px;
	font-weight: 800;
}
.site-nav a { color: var(--amc-muted); }
.site-nav a[aria-current="page"],
.site-nav a.is-active { color: var(--amc-accent); }

/* Main / Footer */
.site-main { padding: 0 0 56px; }
.site-footer { border-top: 1px solid var(--amc-border); color: var(--amc-muted); font-size: .86rem; }
.site-footer__inner { padding: 20px 0; }
.site-footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; }
.site-footer__nav a { white-space: nowrap; }
.site-footer__copy { margin: 0; font-size: .82rem; white-space: nowrap; }
.footer-pre-links {
	border-top: 1px solid var(--amc-border);
	text-align: center;
	padding: 14px 16px;
	font-size: .84rem;
	background: var(--amc-surface);
}
.footer-pre-links a { color: var(--amc-muted); margin: 0 6px; }
.footer-pre-links a:hover { color: var(--amc-accent); }

/* Hero */
.amc-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 14px 0 10px; }
.amc-breadcrumb { display: flex; align-items: center; gap: 6px; padding: 8px 0 0; font-size: .78rem; font-weight: 700; color: var(--amc-muted); }
.amc-breadcrumb a { color: var(--amc-accent); }
.amc-breadcrumb__sep { color: var(--amc-muted); }
.amc-eyebrow { margin: 0 0 8px; color: var(--amc-accent); font-size: .86rem; font-weight: 900; }
.amc-eyebrow a { color: var(--amc-accent); }
.amc-header-top { display: none; }
.amc-hero h1 { margin: 0; font-size: 1.9rem; line-height: 1.25; overflow-wrap: break-word; }
.amc-hero .lead { max-width: 68ch; margin: 10px 0 0; color: var(--amc-muted); font-size: .98rem; }
.amc-url-box { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--amc-border); background: var(--amc-surface); }
.amc-url-box code {
	display: block; padding: 9px 12px;
	border: 1px solid var(--amc-border); background: #fff; color: #333;
	font: 800 .86rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
	white-space: nowrap; overflow-x: auto;
}
.amc-url-item {
	display: grid; gap: 2px; padding: 8px 12px;
	border: 1px solid var(--amc-border); background: #fff;
	text-decoration: none; transition: border-color .15s;
}
.amc-url-item:hover { border-color: var(--amc-accent); }
.amc-url-label { font-size: .78rem; font-weight: 800; color: var(--amc-muted); }
.amc-url-item code {
	display: block; padding: 0;
	border: none; background: none; color: var(--amc-accent);
	font: 800 .86rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* Genre nav panel (hero right column) */
.amc-genre-nav-panel {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 4px;
	align-content: start;
}
.amc-genre-nav-item {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 7px 2px;
	border: 1px solid var(--amc-border);
	background: var(--amc-card);
	font-size: .72rem;
	font-weight: 800;
	color: var(--amc-text);
	text-align: center;
	border-radius: 4px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: border-color .15s, color .15s;
}
.amc-genre-nav-item:hover { border-color: var(--amc-accent); color: var(--amc-accent); }
.amc-genre-nav-item.is-active { border-color: var(--amc-accent); background: var(--amc-accent-soft); color: var(--amc-accent); }
.amc-genre-nav-item.is-empty { color: var(--amc-muted); border-style: dashed; pointer-events: none; }

/* Pills */
.amc-pills { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 2px; scrollbar-width: none; }
.amc-pills::-webkit-scrollbar { display: none; }
.amc-pill {
	display: inline-flex; align-items: center;
	min-height: 36px; padding: 6px 13px;
	border: 1px solid var(--amc-border); background: #fff;
	font-size: .9rem; font-weight: 800; white-space: nowrap; color: var(--amc-text);
}
.amc-pill.is-active,
.amc-pill[aria-current="page"] { border-color: var(--amc-accent); background: var(--amc-accent-soft); color: var(--amc-accent); }
.amc-pill:hover { color: var(--amc-accent); }

/* Section */
.section { margin-top: 36px; }
.section:first-child { margin-top: 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section__title, .page-title, .entry-title { margin: 0; line-height: 1.35; letter-spacing: 0; }
.section__title {
	font-size: 1.4rem;
	padding-left: 12px;
	border-left: 4px solid var(--amc-accent);
}
.page-title { margin-bottom: 20px; font-size: 1.45rem; }
.entry-title { font-size: 1.55rem; }
.section__link { color: var(--amc-accent); font-size: .9rem; font-weight: 900; white-space: nowrap; }

/* Section variants */
.section--popular .section__title { border-left-color: #e87820; }
.section--genre { border-top: 1px solid var(--amc-border); padding-top: 28px; margin-top: 28px; }
.section--genre .section__title { font-size: 1.2rem; }

/* FANZA banner */
.amc-fanza-banner { margin-top: 20px; margin-bottom: 4px; text-align: center; }
.amc-fanza-banner img { max-width: 100%; height: auto; }

/* Category genre pills (横スクロール) */
.amc-genre-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 16px 0 4px;
}
.amc-genre-pill {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 6px 14px;
	border: 1px solid var(--amc-border);
	background: var(--amc-card);
	font-size: .85rem; font-weight: 800;
	color: var(--amc-text);
	white-space: nowrap;
	border-radius: 2px;
	transition: border-color .15s, color .15s;
}
.amc-genre-pill:hover { border-color: var(--amc-accent); color: var(--amc-accent); }
.amc-genre-pill.is-active { border-color: var(--amc-accent); background: var(--amc-accent-soft); color: var(--amc-accent); }
.amc-genre-pill.is-home { font-weight: 900; }

/* スクロールトップボタン */
.amc-scroll-top {
	position: fixed;
	right: 20px;
	bottom: 24px;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: var(--amc-accent);
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 1.2rem;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s, visibility .25s;
	box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.amc-scroll-top.is-visible { opacity: 1; visibility: visible; }
.amc-scroll-top:hover { background: #b82a52; }

/* Layout */
.amc-layout { display: grid; grid-template-columns: 1fr; gap: 28px; margin-top: 36px; }
.amc-side { display: grid; gap: 14px; align-content: start; }
.amc-panel { padding: 14px; border: 1px solid var(--amc-border); background: var(--amc-surface); }
.amc-panel h3 { margin: 0 0 8px; font-size: 1rem; }
.amc-panel p { margin: 6px 0 0; color: var(--amc-muted); font-size: .86rem; }
.amc-panel ul { margin: 8px 0 0; padding: 0; list-style: none; color: var(--amc-muted); font-size: .86rem; }
.amc-panel ul li + li { margin-top: 5px; }
.amc-panel ul li::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--amc-accent); vertical-align: 1px; }

/* Genre Card */
.amc-genre-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.amc-genre-card { display: grid; grid-template-columns: 80px 1fr; min-height: 100px; overflow: hidden; border: 1px solid var(--amc-border); background: var(--amc-card); border-radius: 8px; position: relative; }
.amc-genre-title a::after { content: ''; position: absolute; inset: 0; }
.amc-genre-thumb {
	display: flex; align-items: center; justify-content: center;
	background: var(--genre-color, var(--amc-accent));
	border-right: 1px solid transparent;
}
.amc-genre-thumb img { display: none; }
.amc-genre-thumb::after {
	content: attr(data-label);
	color: #fff;
	font-size: .95rem;
	font-weight: 900;
	writing-mode: vertical-rl;
	letter-spacing: .08em;
	text-shadow: 0 1px 2px rgba(0,0,0,.2);
	position: static;
}

.amc-genre-body { padding: 13px; }
.amc-genre-title { margin: 0; font-size: 1rem; line-height: 1.45; }
.amc-genre-desc { margin: 6px 0 0; color: var(--amc-muted); font-size: .86rem; }
.amc-genre-url { display: inline-block; margin-top: 8px; color: var(--amc-accent); font-size: .8rem; font-weight: 900; }

/* Post Grid */
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.amc-accordion {
	max-height: 0;
	overflow: hidden;
	transition: max-height .6s ease-out;
	margin-top: 14px;
}
.amc-accordion.is-open { transition: max-height .5s ease-in; }
.amc-more-wrap { display: flex; justify-content: center; margin-top: 20px; }
.amc-more-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 160px; padding: 10px 28px;
	background: none; border: 1px solid var(--amc-accent);
	color: var(--amc-accent); font-size: .9rem; font-weight: 900;
	white-space: nowrap; cursor: pointer;
}
.amc-more-btn:hover { background: var(--amc-accent-soft); }
.post-card { display: block; overflow: hidden; background: var(--amc-card); border: 1px solid var(--amc-border); border-radius: 8px; position: relative; }
.post-card__title a::after { content: ''; position: absolute; inset: 0; }
.post-card__thumb-wrap { position: relative; }
.post-card__thumb { display: block; aspect-ratio: 4 / 3; background: var(--amc-surface); overflow: hidden; border-radius: 8px 8px 0 0; }
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.post-card__placeholder { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, #f5f5f3, #f5f5f3 10px, #eeecea 10px, #eeecea 20px); }
.post-card__body { padding: 10px; }
.post-card__title { display: -webkit-box; min-height: 2.9em; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: .86rem; line-height: 1.5; }
.post-card__meta { margin-top: 7px; color: var(--amc-muted); font-size: .78rem; }
.post-card--large .post-card__title { font-size: 1.1rem; }

/* Chip */
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; min-height: 34px; padding: 5px 12px; border: 1px solid var(--amc-border); background: var(--amc-surface); color: var(--amc-text); font-size: .88rem; font-weight: 700; }

/* Breadcrumb */
.breadcrumb { margin-bottom: 14px; color: var(--amc-muted); font-size: .82rem; }
.breadcrumb a { color: var(--amc-muted); }
.breadcrumb span { margin-inline: 6px; }

/* Single */
.amc-hero--single { grid-template-columns: 1fr !important; }

.single-product { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
.single-cover { align-self: start; }
.cover-main { position: relative; cursor: zoom-in; border: 1px solid var(--amc-border); border-radius: 4px; overflow: hidden; }
.cover-main img { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top center; display: block; }
.single-meta { display: flex; flex-direction: column; gap: 14px; }

.amc-tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.amc-tag-chip { display: inline-flex; align-items: center; padding: 2px 9px; border: 1px solid var(--amc-border); background: var(--amc-surface); font-size: .8rem; color: var(--amc-muted); border-radius: 2px; }
.amc-tag-chip:hover { border-color: var(--amc-accent); color: var(--amc-accent); }
@media (min-width: 680px) {
	.amc-tag-list { display: inline; }
	.amc-tag-chip { display: inline; padding: 0; border: none; background: none; border-radius: 0; font-size: .88rem; }
	.amc-tag-chip + .amc-tag-chip::before { content: " ／ "; color: var(--amc-border); }
	.amc-tag-chip:hover { border: none; background: none; color: var(--amc-accent); }
}

.single-story { background: var(--amc-surface); border: 1px solid var(--amc-border); border-radius: 4px; padding: 16px 18px; }
.single-story p { margin: 0 0 .8em; color: var(--amc-muted); font-size: .95rem; line-height: 1.85; }
.single-story p:last-child { margin-bottom: 0; }

.amc-sample-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.amc-sample-item { aspect-ratio: 3/4; overflow: hidden; border: 1px solid var(--amc-border); border-radius: 3px; cursor: zoom-in; background: var(--amc-surface); }
.amc-sample-item img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.amc-sample-item:hover img { opacity: .85; }

.amc-related-links { display: flex; flex-wrap: wrap; gap: 8px; }
.amc-related-link { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 14px; border: 1px solid var(--amc-border); background: var(--amc-surface); font-size: .88rem; font-weight: 700; overflow: hidden; }
.amc-related-link:hover { border-color: var(--amc-accent); color: var(--amc-accent); }
.amc-related-link__label { color: var(--amc-muted); font-size: .76rem; font-weight: 400; white-space: nowrap; flex-shrink: 0; }
.amc-related-link span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.amc-lightbox {
	display: none; position: fixed; inset: 0; z-index: 200;
	background: rgba(0,0,0,.92);
	flex-direction: column; align-items: center; justify-content: center;
	touch-action: none; overscroll-behavior: contain;
}
.amc-lightbox.is-open { display: flex; }
.amc-lb-body { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; flex: 1; overflow: hidden; padding: 8px 12px 0; cursor: pointer; }
.amc-lb-img { max-height: 78vh; max-width: 100%; object-fit: contain; display: block; border-radius: 2px; }
.amc-lb-nav { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 12px 0 16px; }
.amc-lb-arrow { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(255,255,255,.15); color: #fff; font-size: 1.5rem; font-weight: 900; border: 1px solid rgba(255,255,255,.2); cursor: pointer; border-radius: 4px; user-select: none; flex-shrink: 0; }
.amc-lb-arrow:hover { background: rgba(255,255,255,.28); }
.amc-lb-close { position: absolute; top: 14px; right: 16px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: rgba(255,255,255,.15); color: #fff; font-size: 1.4rem; border: none; cursor: pointer; border-radius: 50%; z-index: 201; }
.amc-lb-close:hover { background: rgba(255,255,255,.28); }
.amc-lb-counter { color: rgba(255,255,255,.75); font-size: .9rem; font-weight: 700; min-width: 60px; text-align: center; }
.entry-content { overflow-wrap: anywhere; overflow-x: hidden; }
.entry-content img { max-width: 100% !important; height: auto !important; }
.entry-content a { color: var(--amc-accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content p { margin: 0 0 1.2em; }
.entry-content h2, .entry-content h3 { margin: 1.8em 0 .7em; line-height: 1.45; }

/* DMM / FAPG / DBPG */
.dmm-meta { margin: 18px 0; padding: 14px; background: var(--amc-surface); border: 1px solid var(--amc-border); }
.dmm-meta__title { margin: 0 0 10px; font-size: 1rem; }
.dmm-meta__table, .dbpg-info-table { width: 100%; border-collapse: collapse; font-size: .92rem; color: var(--amc-text); background: transparent; }
.dmm-meta__table th, .dmm-meta__table td, .dbpg-info-table th, .dbpg-info-table td { padding: 9px 10px !important; border: 1px solid var(--amc-border) !important; vertical-align: top; }
.dmm-meta__table th, .dbpg-info-table th { width: 92px; background: var(--amc-surface-2) !important; color: var(--amc-muted) !important; font-weight: 700; text-align: left; }
.dmm-story { margin-top: 12px; color: var(--amc-muted); font-size: .92rem; }
.fapg-gallery-container, .dbpg-gallery-container { margin: 22px 0; }
.fapg-gallery-item, .dbpg-gallery-item { margin: 0 0 14px; text-align: center; }
.fapg-gallery-item img, .dbpg-gallery-item img { background: var(--amc-surface); }
.fapg-review-expander, .dbpg-review-expander { margin: 20px 0; border: 1px solid var(--amc-border) !important; overflow: hidden; background: var(--amc-card); }
.fapg-review-expander-trigger, .dbpg-review-expander-trigger { display: block; padding: 12px 14px; background: var(--amc-surface) !important; color: var(--amc-text) !important; cursor: pointer; font-weight: 800; }
.fapg-review-expander-body, .dbpg-review-expander-body { background: var(--amc-card) !important; }
.fapg-review-expander-inner, .dbpg-review-expander-inner { padding: 14px; color: var(--amc-text) !important; }

/* CTA */
.amc-cta { margin: 20px 0; text-align: center; }
.amc-cta__button, .swell-block-button a { display: inline-flex !important; align-items: center; justify-content: center; width: min(100%, 420px); min-height: 50px; padding: 12px 20px !important; border: 0 !important; border-radius: 999px !important; background: var(--amc-accent) !important; color: #fff !important; font-weight: 900; text-decoration: none !important; box-shadow: none !important; }

/* Pagination */
.pagination { margin-top: 28px; text-align: center; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.page-numbers { min-width: 36px; padding: 6px 10px; border: 1px solid var(--amc-border); background: var(--amc-surface); color: var(--amc-text); }
.page-numbers.current { background: var(--amc-accent); border-color: var(--amc-accent); color: #fff; }

/* Misc */
.not-found { padding: 42px 0; text-align: center; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Responsive */
@media (max-width: 719px) {
	.amc-url-box { display: none; }
}
@media (max-width: 639px) {
	.site-header__inner { padding: 12px 0; }
	.site-nav { display: none; }
	.site-brand { font-size: 18px; }
	.amc-header-top { display: inline-flex; align-items: center; padding: 3px 10px; border: 1px solid var(--amc-accent); border-radius: 3px; color: var(--amc-accent); font-size: .78rem; font-weight: 900; white-space: nowrap; margin-left: auto; }
	.amc-hero { padding: 10px 0 6px; gap: 12px; }
	.amc-hero h1 { font-size: 1.25rem; }
	.amc-hero .lead { font-size: .88rem; }
	.entry-title { font-size: 1.15rem; }
	.page-title { font-size: 1.1rem; }
	.dmm-meta { overflow-x: auto; }
	.dmm-meta__table, .dbpg-info-table { display: block; overflow-x: auto; }

	/* ジャンルカード: 1列・説明文2行表示 */
	.amc-genre-grid { grid-template-columns: 1fr; gap: 3px; }
	.amc-genre-card { grid-template-columns: 40px 1fr; height: 110px; overflow: hidden; border-radius: 4px; }
	.amc-genre-thumb::after { font-size: .62rem; letter-spacing: .04em; }
	.amc-genre-body { padding: 6px 10px; display: flex; flex-direction: column; justify-content: center; }
	.amc-genre-title { font-size: .88rem; }
	.section { margin-top: 20px; }
	.section__head { margin-bottom: 10px; }
	.amc-genre-desc {
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
		font-size: .78rem;
		margin: 3px 0 0;
	}

	/* ジャンルピル: コンパクト化 */
	.amc-pills { gap: 6px; padding: 8px 0 2px; }
	.amc-pill { min-height: 28px; padding: 4px 10px; font-size: .78rem; }

	/* ページネーション: 1行に収める */
	.nav-links { flex-wrap: nowrap; gap: 4px; }
	.page-numbers { min-width: 28px; padding: 5px 7px; font-size: .82rem; flex-shrink: 0; }
}
@media (max-width: 480px) {
	.amc-hero h1 { font-size: 1.1rem; }
}
@media (min-width: 560px) {
	.amc-sample-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 639px) {
	.post-grid { grid-template-columns: 1fr; gap: 8px; }
	.post-card { display: grid; grid-template-columns: 110px 1fr; height: 110px; overflow: hidden; }
	.post-card__thumb-wrap { overflow: hidden; border-radius: 8px 0 0 8px; }
	.post-card__thumb { aspect-ratio: unset; height: 110px; border-radius: 0; }
	.post-card__body { padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
	.post-card__title { min-height: 0; -webkit-line-clamp: 3; font-size: .85rem; }
}
@media (min-width: 640px) {
	.amc-genre-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	/* アーカイブグリッド: 3列で最終行が1件だけの場合は非表示 */
	.post-grid--archive > *:last-child:nth-child(3n+1):not(:only-child) { display: none; }
}
@media (min-width: 680px) {
	.single-product { grid-template-columns: 260px 1fr; }
}
@media (min-width: 720px) {
	.amc-hero h1 { font-size: 2.4rem; }
	/* PCではヒーロー右のジャンルパネルを非表示（ヘッダーナビと重複） */
	.amc-hero .amc-genre-nav-panel { display: none; }
}
@media (min-width: 920px) {
	.post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	/* アーカイブグリッド: 4列で最終行が1件だけの場合は非表示 */
	.post-grid--archive > *:last-child:nth-child(4n+1):not(:only-child) { display: none; }
	.amc-layout { grid-template-columns: minmax(0, 1fr) 300px; }
	.entry-title { font-size: 2rem; }
	.amc-sample-grid { grid-template-columns: repeat(8, 1fr); }
}
