/*
Theme Name: EROzapper Blog
Theme URI: https://erozapper.com/
Author: EROzapper
Description: EROzapperの動画紹介ブログ専用テーマ
Version: 1.4.0
License: GNU General Public License v2 or later
Text Domain: erozapper-blog
*/

:root {
  color-scheme: dark;
  --bg: #080808;
  --panel: #111;
  --panel-soft: #171217;
  --line: #2d2529;
  --text: #f7f4f5;
  --muted: #aaa1a5;
  --accent: #e80046;
  --accent-light: #ff4d7e;
  --content: 780px;
  --wide: 1180px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.8; }
body.age-locked { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid #ffffff18;
  background: #090909e8; backdrop-filter: blur(14px);
}
.header-inner { width: min(var(--wide), calc(100% - 32px)); min-height: 64px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand-name { font-size: 22px; font-weight: 900; letter-spacing: -.04em; }
.brand-name span { color: var(--accent-light); }
.brand-badge { padding: 2px 7px; border: 1px solid #ffffff55; border-radius: 4px; color: #ddd; font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav > ul { display: flex; align-items: center; gap: 20px; margin: 0; padding: 0; list-style: none; }
.site-nav a { color: #ddd; text-decoration: none; font-size: 14px; font-weight: 700; }
.site-nav a:hover { color: #fff; }
.feed-link { padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #fff !important; }
.menu-toggle { display: none; border: 1px solid #444; border-radius: 8px; padding: 8px 11px; background: #171717; color: #fff; font: inherit; }

.blog-hero { border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 10%, #6f092b66, transparent 38%), linear-gradient(145deg, #19070d, #080808 58%); }
.blog-hero-inner { width: min(var(--wide), calc(100% - 32px)); margin: auto; padding: 72px 0 58px; }
.eyebrow { margin: 0 0 10px; color: var(--accent-light); font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.blog-hero h1 { max-width: 760px; margin: 0; font-size: clamp(36px, 6vw, 68px); line-height: 1.1; letter-spacing: -.05em; }
.blog-hero-copy { max-width: 650px; margin: 18px 0 0; color: #d5cdd0; font-size: 16px; }

.site-main { width: min(var(--wide), calc(100% - 32px)); margin: 0 auto; padding: 48px 0 80px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(25px, 3vw, 38px); }
.section-head span { color: var(--muted); font-size: 13px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); transition: transform .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-3px); border-color: #e8004677; }
.post-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, #251016, #101010); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card-image img.api-card-image.is-package { object-fit: contain; padding: 10px; background: #160d11; }
.post-card:hover .post-card-image img { transform: scale(1.025); }
.post-card-placeholder { display: grid; place-items: center; height: 100%; color: #8d7c82; font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.post-card-body { padding: 20px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 12px; }
.post-card h2 { margin: 9px 0 10px; font-size: 21px; line-height: 1.45; }
.post-card h2 a { text-decoration: none; }
.post-card p { margin: 0; color: #c9c1c4; font-size: 14px; }
.read-more { display: inline-block; margin-top: 15px; color: var(--accent-light); text-decoration: none; font-size: 13px; font-weight: 800; }

.article-wrap { width: min(var(--content), calc(100% - 32px)); margin: 0 auto; padding: 46px 0 84px; }
.breadcrumbs { margin-bottom: 26px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { color: #ccc; text-decoration: none; }
.article-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.article-label { display: inline-flex; margin-bottom: 15px; padding: 4px 9px; border: 1px solid #e8004666; border-radius: 999px; color: var(--accent-light); background: #e8004615; font-size: 11px; font-weight: 900; letter-spacing: .1em; }
.article-header h1 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.22; letter-spacing: -.035em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.article-thumbnail { overflow: hidden; margin: 30px 0 0; border-radius: 16px; background: #111; }
.article-thumbnail img { display: block; width: 100%; }
.ad-disclosure { margin: 24px 0; padding: 10px 14px; border-left: 3px solid var(--accent); color: #c8bec2; background: #181014; font-size: 12px; }
.article-content { font-size: 17px; line-height: 1.95; overflow-wrap: anywhere; }
.article-content > * { margin-top: 1.5em; margin-bottom: 1.5em; }
.article-content h2 { margin-top: 2.4em; padding-bottom: 10px; border-bottom: 2px solid var(--accent); font-size: 29px; line-height: 1.45; }
.article-content h3 { margin-top: 2em; padding-left: 12px; border-left: 3px solid var(--accent-light); font-size: 23px; line-height: 1.5; }
.article-content a { color: #ff799f; }
.article-content blockquote { margin-left: 0; padding: 14px 20px; border-left: 3px solid #777; background: #141414; color: #d2c9cc; }
.article-content img { border-radius: 12px; }
.article-content iframe { width: 100%; max-width: 100%; border: 0; border-radius: 12px; background: #000; }
.article-content .wp-block-button__link { border-radius: 999px; padding: 13px 22px; background: var(--accent); color: #fff; font-weight: 800; text-decoration: none; }
.product-media { margin: 52px 0; }
.product-media > h2, .product-box > h2 { margin-top: 0; }
.video-frame { overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid #3a3034; border-radius: 14px; background: #000; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.sample-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sample-gallery a { overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid #392d32; border-radius: 10px; background: #111; }
.sample-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.product-box { margin: 52px 0 24px; padding: 24px; border: 1px solid #43363b; border-radius: 14px; background: linear-gradient(145deg, #171217, #0e0e0e); }
.product-details { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 24px; align-items: start; }
.product-package { margin: 0; padding: 10px; border: 1px solid #3b3034; border-radius: 10px; background: #0a0a0a; }
.product-package img { display: block; width: 100%; max-height: 330px; object-fit: contain; border-radius: 6px; }
.product-box dl { margin: 0 0 24px; }
.product-box dl > div { display: grid; grid-template-columns: 130px 1fr; border-top: 1px solid #332a2d; }
.product-box dt, .product-box dd { margin: 0; padding: 11px 10px; }
.product-box dt { color: #cfc5c8; font-weight: 800; }
.affiliate-cta { display: block; width: min(520px, 100%); margin: 24px auto 8px; padding: 15px 24px; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #ff2e68); color: #fff !important; text-align: center; text-decoration: none; font-weight: 900; }
.product-box small { display: block; color: var(--muted); text-align: center; }
.dmm-credit { margin: 14px 0 0; color: var(--muted); text-align: center; font-size: 11px; }
.product-missing { padding: 14px; border: 1px dashed #544; color: var(--muted); }
.related-posts { margin-top: 60px; }
.related-posts h2 { padding-left: 12px; border-left: 3px solid var(--accent); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related-card { display: grid; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; }
.related-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.related-card strong { font-size: 14px; line-height: 1.5; }
.related-card small { color: var(--muted); }
.article-footer { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-categories { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.post-categories a { display: inline-block; padding: 6px 11px; border: 1px solid #444; border-radius: 999px; color: #ddd; text-decoration: none; font-size: 12px; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
.post-navigation a { display: block; min-height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-decoration: none; font-size: 13px; }
.post-navigation .nav-next { text-align: right; }

.empty-state, .page-content { width: min(var(--content), 100%); margin: auto; padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.links-intro { margin-bottom: 28px; color: #d3c9cd; }
.links-content ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 24px 0; padding: 0; list-style: none; }
.links-content li { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: #161216; }
.links-content li a { color: var(--accent-light); font-weight: 800; }
.links-note { margin-top: 28px; padding: 14px 16px; border-left: 3px solid var(--accent); background: #181014; color: var(--muted); font-size: 13px; }
.pagination { margin-top: 38px; }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination a, .pagination span { min-width: 38px; padding: 7px 11px; border: 1px solid #3b3437; border-radius: 8px; text-align: center; text-decoration: none; }
.pagination .current { border-color: var(--accent); background: var(--accent); }

.site-footer { border-top: 1px solid var(--line); background: #060606; }
.footer-inner { width: min(var(--wide), calc(100% - 32px)); margin: auto; padding: 34px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #8e8588; font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: #bbb; text-decoration: none; }

.age-gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; background: #050505f2; backdrop-filter: blur(12px); }
.age-gate.is-hidden { display: none; }
.age-card { width: min(440px, 100%); padding: 34px; border: 1px solid #ffffff22; border-radius: 18px; background: #111; box-shadow: 0 20px 70px #000; text-align: center; }
.age-card .eyebrow { color: var(--accent-light); }
.age-card h2 { margin: 5px 0 12px; font-size: 32px; }
.age-card p { color: #c8c0c3; font-size: 14px; }
.age-enter { width: 100%; margin-top: 12px; border: 0; border-radius: 999px; padding: 13px 20px; background: var(--accent); color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.age-exit { display: inline-block; margin-top: 16px; color: #aaa; font-size: 12px; }

@media (max-width: 900px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .header-inner { width: min(100% - 24px, var(--wide)); min-height: 58px; }
  .brand-name { font-size: 18px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 58px; right: 12px; display: none; width: min(270px, calc(100vw - 24px)); padding: 10px; border: 1px solid #3b3437; border-radius: 12px; background: #111; box-shadow: 0 18px 48px #000c; }
  .site-nav.is-open { display: grid; }
  .site-nav > ul { display: grid; gap: 2px; }
  .site-nav a { padding: 9px 10px; }
  .feed-link { text-align: center; }
  .blog-hero-inner { padding: 48px 0 40px; }
  .blog-hero h1 { font-size: 40px; }
  .site-main { padding-top: 32px; }
  .post-grid { grid-template-columns: 1fr; }
  .links-content ul { grid-template-columns: 1fr; }
  .sample-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-box dl > div { grid-template-columns: 92px 1fr; }
  .product-details { grid-template-columns: 1fr; }
  .product-package { width: min(260px, 100%); margin: 0 auto; }
  .related-grid { grid-template-columns: 1fr; }
  .article-wrap { padding-top: 28px; }
  .article-header h1 { font-size: 34px; }
  .article-content { font-size: 16px; }
  .article-content h2 { font-size: 25px; }
  .article-content h3 { font-size: 21px; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-navigation .nav-next { text-align: left; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
