/*
Theme Name: 本気ギャル
Description: ギャル系AV専門レビューブログ向けフルスクラッチ・クラシックPHPテーマ。ゴールド×ダークトーンにピンク/オレンジのアクセントを効かせたビジュアルアイデンティティ。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: honki-gyaru
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* =========================================================
   0. Design tokens
   ========================================================= */
:root {
	--hg-c-bg: #150e10;
	--hg-c-bg-soft: #1f1416;
	--hg-c-surface: #2b1a1e;
	--hg-c-surface-2: #352025;

	--hg-c-gold: #d8ac66;
	--hg-c-gold-light: #f4d896;
	--hg-c-gold-deep: #9c7738;

	--hg-c-pink: #ff2e78;
	--hg-c-pink-deep: #b8144f;
	--hg-c-orange: #ff7a3d;
	--hg-c-noir: #a06bff;

	--hg-c-text: #f7ece0;
	--hg-c-text-muted: #cbb3a6;
	--hg-c-border: rgba(216, 172, 102, 0.35);

	--hg-font-heading: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic Medium", "Yu Gothic", "Meiryo", sans-serif;
	--hg-font-body: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;

	--hg-radius-card: 18px;
	--hg-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
	--hg-container: 1160px;
}

/* Per-category accent colors — used sparingly (card border/badge, category
   page title) as a wayfinding aid. Deliberately NOT applied to the header
   or hero nav, which stay a single calm color so the persistent chrome
   doesn't compete for attention with five different bright borders. */
.hg_review-card--gold,
.hg_archive--gold .hg_archive__title,
.hg_review--gold .hg_review__category {
	--hg-accent: var(--hg-c-gold);
	--hg-accent-light: var(--hg-c-gold-light);
}
.hg_review-card--noir,
.hg_archive--noir .hg_archive__title,
.hg_review--noir .hg_review__category {
	--hg-accent: var(--hg-c-noir);
	--hg-accent-light: #d3bbff;
}
.hg_review-card--orange,
.hg_archive--orange .hg_archive__title,
.hg_review--orange .hg_review__category {
	--hg-accent: var(--hg-c-orange);
	--hg-accent-light: #ffb185;
}
.hg_review-card--pink,
.hg_archive--pink .hg_archive__title,
.hg_review--pink .hg_review__category {
	--hg-accent: var(--hg-c-pink);
	--hg-accent-light: #ff85ac;
}
.hg_review-card--crown,
.hg_archive--crown .hg_archive__title,
.hg_review--crown .hg_review__category {
	--hg-accent: var(--hg-c-gold-light);
	--hg-accent-light: #fff4cf;
}

/* =========================================================
   1. Reset & base
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background-color: var(--hg-c-bg);
	color: var(--hg-c-text);
	font-family: var(--hg-font-body);
	font-size: 16px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--hg-c-gold-light);
	text-decoration-color: rgba(244, 216, 150, 0.5);
}

ul,
ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1,
h2,
h3,
h4 {
	font-family: var(--hg-font-heading);
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 0.6em;
}

p {
	margin: 0 0 1.2em;
}

button {
	font-family: inherit;
}

/* Accessible focus ring everywhere, invisible motion aside */
:focus-visible {
	outline: 3px solid var(--hg-c-gold-light);
	outline-offset: 3px;
	border-radius: 4px;
}

.hg_skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 1000;
	background: var(--hg-c-gold-light);
	color: var(--hg-c-bg);
	padding: 0.8em 1.2em;
	font-weight: 700;
	border-radius: 0 0 8px 0;
}
.hg_skip-link:focus {
	left: 0;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
		scroll-behavior: auto !important;
	}
}

/* =========================================================
   2. Layout helpers
   ========================================================= */
.hg_section__inner,
.hg_archive__inner,
.hg_hero__inner,
.hg_site-header__inner,
.hg_site-footer__inner {
	max-width: var(--hg-container);
	margin: 0 auto;
	padding: 0 20px;
}

.hg_section {
	padding: 48px 0;
}

.hg_section__title {
	font-size: 1.5rem;
	color: var(--hg-c-gold-light);
	display: flex;
	align-items: center;
	gap: 0.4em;
	margin-bottom: 1.2em;
}

.hg_section__more {
	display: inline-block;
	margin-top: 1.4em;
	color: var(--hg-c-pink);
	font-weight: 700;
}

/* =========================================================
   3. Header / signature branding
   ========================================================= */
.hg_site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--hg-c-bg);
	border-bottom: 2px solid var(--hg-c-border);
}

.hg_site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 12px;
	padding-bottom: 12px;
	flex-wrap: wrap;
}

.hg_site-branding__mark {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	line-height: 1.1;
}

/* The signature visual element of the site: a solid gold wordmark. Kept
   deliberately plain (no animation, no glow) — everything else on the
   site stays even plainer, so this is still the one "face" without
   adding visual noise to a page real readers scan quickly. */
.hg_site-branding__title {
	display: inline-block;
	font-family: var(--hg-font-heading);
	font-size: clamp(1.4rem, 4vw, 2rem);
	font-weight: 800;
	letter-spacing: 0.02em;
	color: var(--hg-c-gold-light);
}

.hg_site-branding__tagline {
	font-size: 0.7rem;
	color: var(--hg-c-text-muted);
	letter-spacing: 0.08em;
	margin-top: 4px;
}

.hg_site-branding__logo img {
	max-height: 64px;
	width: auto;
}

/* Nav toggle (mobile) */
.hg_nav-toggle {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background: transparent;
	border: 1px solid var(--hg-c-border);
	border-radius: 10px;
	padding: 8px 12px;
	cursor: pointer;
}

.hg_nav-toggle__bar {
	width: 22px;
	height: 2px;
	background: var(--hg-c-gold-light);
	border-radius: 2px;
}

.hg_nav-toggle__label {
	font-size: 0.6rem;
	color: var(--hg-c-text-muted);
	margin-top: 2px;
}

.hg_primary-nav {
	flex-basis: 100%;
}

/* Nav is visible by default so it works with JS disabled; main.js adds
   is-collapsed on init and toggles it, so the hamburger only ever hides
   content for users who actually have the script that can reopen it. */
.hg_primary-nav.is-collapsed {
	display: none;
}

.hg_primary-nav__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 12px;
}

.hg_primary-nav__link,
.hg_hero__nav-item {
	display: inline-block;
	padding: 0.5em 1.1em;
	border-radius: 6px;
	border: 1px solid var(--hg-c-border);
	color: var(--hg-c-text);
	text-decoration: none;
	font-weight: 700;
	font-size: 0.85rem;
	background: var(--hg-c-surface);
	transition: border-color 0.15s ease, color 0.15s ease;
}

.hg_primary-nav__link:hover,
.hg_hero__nav-item:hover {
	border-color: var(--hg-c-gold-light);
	color: var(--hg-c-gold-light);
}

@media (min-width: 860px) {
	.hg_nav-toggle {
		display: none;
	}
	.hg_primary-nav,
	.hg_primary-nav.is-collapsed {
		display: block;
		flex-basis: auto;
	}
	.hg_primary-nav__list {
		flex-direction: row;
		gap: 10px;
		padding-top: 0;
	}
}

/* =========================================================
   4. Hero (front page)
   ========================================================= */
.hg_hero {
	padding: 48px 0;
	text-align: center;
	background-color: var(--hg-c-bg-soft);
	border-bottom: 1px solid var(--hg-c-border);
}

.hg_hero__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

.hg_hero__title {
	font-size: clamp(1.8rem, 6vw, 2.6rem);
	color: var(--hg-c-gold-light);
}

.hg_hero__lede {
	max-width: 46ch;
	color: var(--hg-c-text-muted);
}

.hg_hero__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

/* =========================================================
   5. Card grid & review card (purikura sticker)
   ========================================================= */
.hg_card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
}

@media (min-width: 640px) {
	.hg_card-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 22px;
	}
}

@media (min-width: 980px) {
	.hg_card-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.hg_review-card {
	position: relative;
	background: var(--hg-c-surface);
	border: 1px solid var(--hg-accent, var(--hg-c-border));
	border-radius: var(--hg-radius-card);
	box-shadow: var(--hg-shadow-card);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hg_review-card:hover,
.hg_review-card:focus-within {
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}

.hg_review-card__thumb {
	position: relative;
	aspect-ratio: 3 / 4;
	background: linear-gradient(160deg, var(--hg-c-surface-2), var(--hg-c-bg));
}

.hg_review-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hg_review-card__img--placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--hg-accent, var(--hg-c-gold));
	opacity: 0.6;
}

.hg_review-card__badge {
	position: absolute;
	top: 8px;
	left: 8px;
	background: var(--hg-accent, var(--hg-c-gold));
	color: var(--hg-c-bg);
	font-size: 0.65rem;
	font-weight: 800;
	padding: 0.3em 0.7em;
	border-radius: 4px;
}

.hg_review-card__body {
	padding: 12px 14px 16px;
}

.hg_review-card__title {
	font-size: 0.95rem;
	margin-bottom: 0.5em;
}

.hg_review-card__link {
	color: var(--hg-c-text);
	text-decoration: none;
}

.hg_review-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.hg_review-card__link:hover {
	color: var(--hg-accent-light, var(--hg-c-gold-light));
}

.hg_review-card__excerpt {
	font-size: 0.8rem;
	color: var(--hg-c-text-muted);
	margin-bottom: 0.6em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* =========================================================
   6. Tag chips
   ========================================================= */
.hg_tag-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.hg_tag-chips__link {
	position: relative;
	z-index: 2;
	display: inline-block;
	font-size: 0.72rem;
	color: var(--hg-c-text-muted);
	background: var(--hg-c-surface);
	border: 1px solid var(--hg-c-border);
	border-radius: 4px;
	padding: 0.2em 0.7em;
	text-decoration: none;
}

.hg_tag-chips__link:hover {
	color: var(--hg-c-gold-light);
	border-color: var(--hg-c-gold-light);
}

/* =========================================================
   7. Ranking — front page highlight strip
   ========================================================= */
.hg_ranking-highlight__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hg_ranking-highlight__link {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--hg-c-surface);
	border: 1px solid var(--hg-c-border);
	border-radius: 12px;
	padding: 14px 18px;
	text-decoration: none;
	color: var(--hg-c-text);
}

.hg_ranking-highlight__link:hover {
	border-color: var(--hg-c-gold-light);
}

.hg_ranking-highlight__rank {
	font-family: var(--hg-font-heading);
	font-size: 1.6rem;
	color: var(--hg-c-gold-light);
	min-width: 1.4em;
}

.hg_ranking-highlight__title {
	font-weight: 700;
}

/* =========================================================
   8. Ranking category archive — magazine feature layout
   ========================================================= */
.hg_ranking-feature {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hg_ranking-feature__link {
	position: relative;
	display: grid;
	grid-template-columns: auto 96px 1fr;
	gap: 16px;
	align-items: center;
	background: linear-gradient(120deg, var(--hg-c-surface), var(--hg-c-bg-soft));
	border: 1px solid var(--hg-c-border);
	border-radius: 16px;
	padding: 16px;
	text-decoration: none;
	color: var(--hg-c-text);
}

.hg_ranking-feature__rank {
	font-family: var(--hg-font-heading);
	font-size: 2.2rem;
	font-weight: 800;
	color: var(--hg-c-gold-light);
	line-height: 1;
	width: 1.2em;
	text-align: center;
}

.hg_ranking-feature__thumb {
	width: 96px;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border-radius: 10px;
	background: var(--hg-c-bg);
}

.hg_ranking-feature__title {
	display: block;
	font-weight: 700;
	margin-bottom: 0.3em;
}

.hg_ranking-feature__excerpt {
	display: block;
	font-size: 0.85rem;
	color: var(--hg-c-text-muted);
}

@media (min-width: 640px) {
	.hg_ranking-feature__link {
		grid-template-columns: auto 140px 1fr;
		padding: 20px 24px;
	}
	.hg_ranking-feature__thumb {
		width: 140px;
	}
}

/* =========================================================
   9. Archive header (category / index fallback)
   ========================================================= */
.hg_archive {
	padding: 40px 0 64px;
}

.hg_archive__header {
	margin-bottom: 32px;
	text-align: center;
}

.hg_archive__eyebrow {
	font-size: 0.75rem;
	letter-spacing: 0.15em;
	color: var(--hg-c-text-muted);
	margin-bottom: 0.4em;
}

.hg_breadcrumbs {
	max-width: var(--hg-container);
	margin: 0 auto;
	padding: 16px 20px 0;
	font-size: 0.78rem;
	color: var(--hg-c-text-muted);
}

.hg_breadcrumbs a {
	color: var(--hg-c-text-muted);
	text-decoration: underline;
	text-decoration-color: var(--hg-c-border);
}

.hg_breadcrumbs a:hover {
	color: var(--hg-c-gold-light);
}

.hg_archive__title {
	font-size: clamp(1.6rem, 5vw, 2.4rem);
	color: var(--hg-accent-light, var(--hg-c-gold-light));
}

.hg_archive__description {
	max-width: 60ch;
	margin: 0 auto;
	color: var(--hg-c-text-muted);
}

.hg_archive__empty {
	text-align: center;
	color: var(--hg-c-text-muted);
}

/* =========================================================
   10. Pagination
   ========================================================= */
.hg_pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.hg_pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--hg-c-border);
	border-radius: 10px;
	color: var(--hg-c-text-muted);
	text-decoration: none;
}

.hg_pagination .page-numbers.current {
	background: var(--hg-c-gold);
	color: var(--hg-c-bg);
	font-weight: 700;
	border-color: var(--hg-c-gold);
}

/* =========================================================
   11. Single review post
   ========================================================= */
.hg_review {
	max-width: 760px;
	margin: 0 auto;
	padding: 40px 20px 0;
}

.hg_review__categories {
	display: flex;
	gap: 8px;
	margin-bottom: 1em;
}

.hg_review__category {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 800;
	color: var(--hg-c-bg);
	background: var(--hg-accent, var(--hg-c-gold));
	padding: 0.3em 0.8em;
	border-radius: 4px;
	text-decoration: none;
}

.hg_review__title {
	font-size: clamp(1.5rem, 5vw, 2.2rem);
	color: var(--hg-c-text);
}

.hg_review__meta {
	color: var(--hg-c-text-muted);
	font-size: 0.85rem;
}

.hg_review__thumb {
	margin: 24px 0;
	border-radius: var(--hg-radius-card);
	overflow: hidden;
	border: 2px solid var(--hg-accent, var(--hg-c-gold));
}

.hg_entry-content {
	font-size: 1rem;
}

.hg_entry-content h2 {
	position: relative;
	font-size: 1.35rem;
	color: var(--hg-c-gold-light);
	margin-top: 2em;
	padding-bottom: 0.4em;
	border-bottom: 2px solid var(--hg-c-border);
}

.hg_entry-content h3 {
	font-size: 1.1rem;
	color: var(--hg-c-pink);
}

.hg_entry-content a {
	color: var(--hg-c-pink);
}

.hg_entry-content img {
	border-radius: 14px;
}

/* 作品情報テーブル（作品名・出演者・収録時間・メーカー等）用のスタイル */
.hg_entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.4em 0;
	font-size: 0.92rem;
}

.hg_entry-content th,
.hg_entry-content td {
	border: 1px solid var(--hg-c-border);
	padding: 0.6em 0.9em;
	text-align: left;
	vertical-align: top;
}

.hg_entry-content th {
	width: 32%;
	background: var(--hg-c-surface);
	color: var(--hg-c-gold-light);
	font-weight: 700;
}

@media (max-width: 480px) {
	.hg_entry-content th,
	.hg_entry-content td {
		display: block;
		width: 100%;
	}
	.hg_entry-content th {
		border-bottom: none;
	}
	.hg_entry-content td {
		border-top: none;
		margin-bottom: 0.6em;
	}
}

/* Optional boxed treatment for the 作品情報 section; applied by the editor
   via a custom block class, never generated by the theme. */
.hg_entry-content .hg_product-info {
	background: var(--hg-c-surface);
	border: 1px solid var(--hg-c-gold);
	border-radius: 16px;
	padding: 20px 24px;
	margin: 1.6em 0;
}

/* =========================================================
   12. Related reviews / post nav
   ========================================================= */
.hg_related {
	max-width: var(--hg-container);
	margin: 0 auto;
}

.hg_post-nav {
	max-width: 760px;
	margin: 40px auto 0;
	padding: 20px 20px 60px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	border-top: 1px solid var(--hg-c-border);
}

.hg_post-nav a {
	color: var(--hg-c-text-muted);
	text-decoration: none;
	font-size: 0.9rem;
}

.hg_post-nav a:hover {
	color: var(--hg-c-gold-light);
}

/* =========================================================
   13. Static page
   ========================================================= */
.hg_page {
	max-width: 760px;
	margin: 0 auto;
	padding: 48px 20px 80px;
}

.hg_page__title {
	color: var(--hg-c-gold-light);
	font-size: clamp(1.5rem, 5vw, 2rem);
}

/* =========================================================
   14. Footer
   ========================================================= */
.hg_site-footer {
	border-top: 1px solid var(--hg-c-border);
	padding: 32px 0 40px;
	text-align: center;
	color: var(--hg-c-text-muted);
	font-size: 0.85rem;
}

.hg_site-footer__brand {
	color: var(--hg-c-gold-light);
	font-family: var(--hg-font-heading);
	font-weight: 700;
	font-size: 1.1rem;
}

.hg_site-footer__nav {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
	margin: 12px 0;
}

.hg_site-footer__nav a {
	color: var(--hg-c-text-muted);
	text-decoration: none;
}

.hg_site-footer__nav a:hover {
	color: var(--hg-c-gold-light);
}

.hg_site-footer__note {
	max-width: 60ch;
	margin: 0 auto 12px;
	font-size: 0.75rem;
	opacity: 0.8;
}
