/*
Theme Name: Sukkiri Night
Theme URI: https://sukkiri-shinight.com/
Description: スッキリしNight専用テーマ（夜の濃紺デザイン・年齢確認ゲート・PR表記・記事用ショートコード）
Author: スッキリしNight編集部
Version: 1.2.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sukkiri-night
*/

:root {
  --bg: #0d1024;
  --bg-2: #141833;
  --card: #1a1f40;
  --line: #2a3060;
  --text: #e9ebf7;
  --muted: #a3a8c9;
  --accent: #ff4f8b;
  --accent-2: #8b7bff;
  --gold: #ffcf5a;
  --ok: #3ccf91;
  --warn: #ffb347;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
  font-size: 16px;
}
a { color: #9fb2ff; }
a:hover { color: #c7d2ff; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* PR bar */
.pr-bar {
  background: #080a18;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 6px 16px;
  border-bottom: 1px solid var(--line);
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 16, 36, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; letter-spacing: .02em; }
.logo .moon { width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 70% 35%, var(--bg) 42%, var(--gold) 43%); }
.logo small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: .1em; }
.gnav { display: flex; gap: 4px; }
.gnav a { color: var(--text); text-decoration: none; font-size: 14px; padding: 8px 12px; border-radius: 999px; }
.gnav a:hover { background: var(--card); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 14px; }

@media (max-width: 760px) {
  .gnav { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .gnav.open { display: flex; }
  .menu-btn { display: block; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse at 80% 10%, rgba(139,123,255,.35), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(255,79,139,.25), transparent 55%),
    linear-gradient(180deg, #111536, var(--bg));
  text-align: center;
}
.hero .stars { position: absolute; inset: 0; background-image: radial-gradient(1px 1px at 20% 30%, #fff8, transparent), radial-gradient(1px 1px at 70% 20%, #fff6, transparent), radial-gradient(1.5px 1.5px at 40% 70%, #fff5, transparent), radial-gradient(1px 1px at 85% 60%, #fff7, transparent), radial-gradient(1px 1px at 10% 55%, #fff5, transparent); pointer-events: none; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); margin: 0 0 8px; line-height: 1.3; letter-spacing: .02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { color: var(--gold); font-weight: 700; margin: 0 0 16px; letter-spacing: .1em; }
.hero p.lead { color: var(--muted); max-width: 560px; margin: 0 auto; font-size: 15px; }

/* Sections */
.section { padding: 48px 0; }
.section-title { text-align: center; margin: 0 0 8px; font-size: clamp(22px, 4vw, 28px); }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 28px; font-size: 14px; }

/* Route cards */
.routes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.route {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; color: var(--text); text-decoration: none;
  transition: transform .15s, border-color .15s;
}
.route:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--text); }
.route .icon { font-size: 28px; }
.route h3 { margin: 0; font-size: 18px; }
.route p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; flex: 1; }
.route .go { color: var(--accent); font-size: 13px; font-weight: 700; }
.route.soon { opacity: .5; pointer-events: none; }
.route.soon .go { color: var(--muted); }
@media (max-width: 900px) { .routes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .routes { grid-template-columns: 1fr; } }

/* Purpose guide */
.purpose { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.purpose .box { background: var(--card); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--accent); }
.purpose .box.home { border-top-color: var(--accent-2); }
.purpose h3 { margin: 0 0 10px; }
.purpose ul { margin: 0 0 14px; padding-left: 1.2em; }
.purpose li { margin-bottom: 6px; }
@media (max-width: 760px) { .purpose { grid-template-columns: 1fr; } }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
th { background: #232955; font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 700; white-space: nowrap; }
.scroll-hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; display: none; }
@media (max-width: 700px) { .scroll-hint { display: block; } }
.note { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Policy */
.policy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: p; }
.policy .item { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.policy .item::before { counter-increment: p; content: "0" counter(p); font-weight: 800; font-size: 26px; color: var(--accent); display: block; }
.policy h3 { margin: 4px 0 6px; font-size: 16px; }
.policy p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .policy { grid-template-columns: 1fr; } }

/* Article list */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card:hover { border-color: var(--accent-2); color: var(--text); }
.card .thumb { aspect-ratio: 16/9; display: grid; place-items: center; font-weight: 800; font-size: 18px; padding: 12px; text-align: center; }
.thumb.t1 { background: linear-gradient(135deg, #2b2f6b, #5b3f8f); }
.thumb.t2 { background: linear-gradient(135deg, #3a2350, #7a2c5c); }
.thumb.t3 { background: linear-gradient(135deg, #1d3b5a, #2c5f7a); }
.card .body { padding: 14px 16px 16px; }
.card .cat { font-size: 11px; color: var(--accent); font-weight: 700; }
.card h3 { font-size: 15px; margin: 4px 0 0; line-height: 1.55; }
.card .date { font-size: 12px; color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cards { grid-template-columns: 1fr; } }

/* Caution list */
.caution-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.caution-list .c { background: var(--bg-2); border-left: 4px solid var(--warn); border-radius: 10px; padding: 14px 16px; }
.caution-list b { display: block; margin-bottom: 2px; }
.caution-list span { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .caution-list { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; list-style: none; display: flex; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--accent); font-weight: 800; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq .a { padding: 12px 16px 16px 40px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(90deg, var(--accent), #ff7a59);
  color: #fff; font-weight: 800; text-decoration: none;
  padding: 14px 28px; border-radius: 999px; box-shadow: 0 6px 18px rgba(255,79,139,.3);
  border: none; cursor: pointer; font-size: 16px;
}
.btn:hover { color: #fff; filter: brightness(1.08); }
.btn.sub { background: transparent; border: 1px solid var(--line); box-shadow: none; font-weight: 700; }
.btn.block { display: flex; width: 100%; max-width: 420px; margin: 0 auto; }
.btn .pr { font-size: 11px; font-weight: 400; opacity: .85; }
.cta-lead { text-align: center; color: var(--gold); font-weight: 700; margin: 18px 0 8px; font-size: 14px; }
.text-link { color: var(--accent); font-weight: 700; text-decoration: none; }

/* Footer */
.site-footer { background: #080a18; border-top: 1px solid var(--line); padding: 32px 0 24px; margin-top: 40px; font-size: 13px; color: var(--muted); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ===== Article layout ===== */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding-top: 24px; }
@media (max-width: 960px) { .layout { grid-template-columns: 1fr; } }
.breadcrumb { font-size: 12px; color: var(--muted); padding: 12px 0 0; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.article { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px clamp(16px, 4vw, 40px) 40px; min-width: 0; }
.article .cat-label { display: inline-block; background: var(--accent-2); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.article h1 { font-size: clamp(22px, 4.2vw, 30px); line-height: 1.45; margin: 12px 0; }
.article .meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.article .pr-note { font-size: 12px; background: #232955; border-radius: 8px; padding: 8px 12px; margin: 14px 0 20px; color: var(--muted); }
.eyecatch { aspect-ratio: 16/8; border-radius: 12px; background: linear-gradient(135deg, #2b2f6b, #7a2c5c); display: grid; place-items: center; text-align: center; font-size: clamp(18px, 4vw, 26px); font-weight: 800; padding: 16px; margin-bottom: 24px; }
.eyecatch small { display: block; font-size: 13px; font-weight: 400; color: var(--gold); margin-top: 6px; }
.article h2 {
  font-size: clamp(19px, 3.6vw, 23px); line-height: 1.5;
  margin: 48px 0 18px; padding: 12px 16px;
  background: linear-gradient(90deg, rgba(255,79,139,.18), transparent);
  border-left: 5px solid var(--accent); border-radius: 6px;
}
.article h3 { font-size: 18px; margin: 30px 0 10px; padding-bottom: 6px; border-bottom: 2px dotted var(--line); }
.article p { margin: 0 0 16px; }
.article strong { color: #fff; background: linear-gradient(transparent 62%, rgba(255,207,90,.35) 62%); }

.toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
.toc .t { font-weight: 800; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.3em; font-size: 14px; }
.toc a { color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); }

.box { border-radius: 12px; padding: 16px 18px; margin: 20px 0; position: relative; }
.box .label { font-weight: 800; font-size: 13px; display: inline-block; margin-bottom: 4px; }
.box.point { background: rgba(60,207,145,.08); border: 1px solid rgba(60,207,145,.4); }
.box.point .label { color: var(--ok); }
.box.caution { background: rgba(255,179,71,.08); border: 1px solid rgba(255,179,71,.4); }
.box.caution .label { color: var(--warn); }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; }
.steps li { position: relative; padding: 10px 12px 10px 52px; background: var(--card); border-radius: 10px; margin-bottom: 8px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }

.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 16px 0 24px; }
.service-card .head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.service-card .logo-ph { width: 56px; height: 56px; border-radius: 12px; background: #fff; color: #333; display: grid; place-items: center; font-size: 10px; text-align: center; flex-shrink: 0; }
.service-card .name { font-weight: 800; font-size: 18px; }
.service-card .tag { font-size: 11px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; margin-right: 4px; color: var(--muted); }
.service-card dl { display: grid; grid-template-columns: 7.5em 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: 14px; }
.service-card dt { color: var(--muted); }
.service-card dd { margin: 0; }
.todo { border: 1px dashed var(--line); border-radius: 12px; padding: 14px; color: var(--muted); font-size: 13px; text-align: center; margin: 12px 0 20px; }

.summary-box { background: var(--card); border: 2px solid var(--accent-2); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; }
.summary-box ul { margin: 0; padding-left: 1.2em; }
.recommend { border: 2px solid var(--accent); border-radius: var(--radius); padding: 20px; margin: 28px 0; background: linear-gradient(180deg, rgba(255,79,139,.08), transparent); }
.recommend .t { text-align: center; font-weight: 800; margin-bottom: 12px; }
.related { display: grid; gap: 10px; }
.related a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--text); font-size: 14px; }
.related a::before { content: "関連記事"; display: block; font-size: 11px; color: var(--accent); font-weight: 700; }
.sources { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.widget { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.widget h4 { margin: 0 0 10px; font-size: 15px; border-left: 4px solid var(--accent); padding-left: 8px; }
.widget ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.widget li { border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: none; }
.widget li a { display: block; padding: 9px 2px; color: var(--text); text-decoration: none; }
.widget li a:hover { color: var(--accent); }
.widget li.soon a { color: var(--muted); pointer-events: none; }
.widget .about-mini { font-size: 13px; color: var(--muted); margin: 0; }
@media (min-width: 961px) { .sidebar .sticky { position: sticky; top: 76px; } }

/* Age gate */
.age-gate { position: fixed; inset: 0; z-index: 100; background: rgba(5,6,16,.96); display: grid; place-items: center; padding: 16px; }
.age-gate[hidden] { display: none; }
.age-gate .panel { max-width: 440px; width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 28px 22px; text-align: center; }
.age-gate h2 { margin: 8px 0; font-size: 22px; }
.age-gate p { color: var(--muted); font-size: 14px; }
.age-gate .q { color: var(--text); font-weight: 800; font-size: 17px; margin: 18px 0 14px; }
.age-gate .actions { display: grid; gap: 10px; }
.age-gate small { display: block; margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.6; }

/* ===== WordPress 追加分 ===== */
.gnav ul, .footer-menu ul { list-style: none; margin: 0; padding: 0; display: contents; }
.gnav li { display: contents; }
.footer-menu ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer .links ul { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0; padding: 0; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.article img { border-radius: 10px; height: auto; }
.article ul, .article ol { padding-left: 1.4em; }
.article li { margin-bottom: 4px; }
.article table { min-width: 0; }
.article .wp-block-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 16px; }
.article .wp-block-table table { min-width: 560px; }
.article .wp-block-table td, .article .wp-block-table th { border-color: var(--line); }
.article blockquote { border-left: 4px solid var(--accent-2); margin: 16px 0; padding: 8px 16px; background: var(--card); border-radius: 6px; color: var(--muted); }
.article hr { border: none; border-top: 1px solid var(--line); margin: 32px 0; }
.article details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.article details summary { cursor: pointer; padding: 14px 16px; font-weight: 700; }
.article details > *:not(summary) { padding: 0 16px 12px; color: var(--muted); }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text, figcaption { font-size: 12px; color: var(--muted); text-align: center; }
.post-list { display: grid; gap: 16px; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 24px 0; }
.pagination .page-numbers { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); text-decoration: none; }
.pagination .current { background: var(--accent); border-color: var(--accent); }
.search-form { display: flex; gap: 8px; }
.search-form input[type=search] { flex: 1; background: var(--card); border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 8px 10px; }
.search-form button { background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 8px 14px; font-weight: 700; }
.widget p { font-size: 14px; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }
.fanza-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 16px 0 24px; }
.fanza-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.fanza-item img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 0; }
.fanza-item .body { padding: 10px; font-size: 13px; line-height: 1.5; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.fanza-item .btn { padding: 8px 12px; font-size: 13px; margin-top: auto; }
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* ===== Logo ===== */
.logo img { height: 44px; width: auto; display: block; }
.logo .tagline { font-size: 11px; color: var(--muted); letter-spacing: .08em; white-space: nowrap; }
@media (max-width: 480px) { .logo img { height: 36px; } .logo .tagline { display: none; } }
.age-gate .gate-logo { width: min(320px, 80%); height: auto; margin: 0 auto 6px; }
.footer-logo { height: 40px; width: auto; margin-bottom: 14px; }

/* ===== FANZA ===== */
.fanza-item a img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; background: #232955; }
.fanza-title { font-weight: 700; color: var(--text); }
.fanza-actress { color: var(--muted); font-size: 12px; }
.fanza-section .note { text-align: center; }
