/*
Theme Name: anoerone JA（パチンコ素材集）
Theme URI: https://anoerone.com/ja/
Description: パチンコ・スロット編集者向けフリー素材サイト用 子テーマ（Twenty Twenty-Five ベース・軽量）。
Template: twentytwentyfive
Author: anoerone
Version: 0.9.4
Text Domain: anoerone-ja
*/

:root {
  --aj-bg: #0c0c12;
  --aj-surface: #15151d;
  --aj-line: #2c2c38;
  --aj-text: #e8e9ee;
  --aj-muted: #9a9aa8;
  --aj-gold: #ffc93c;
  --aj-red: #ff4d6d;
  --aj-green: #3ddc84;
  --aj-cyan: #29d9ff;
  --aj-purple: #b07cff;
  --aj-orange: #ff9f2e;
}

body { background: var(--aj-bg); color: var(--aj-text); }

/* ===== header ===== */
.aj-header-wrap { border-bottom: 1px solid var(--aj-line); background: #101018; }
.aj-header { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.aj-brandbar { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 0 10px; }
.aj-brand { font-size: 20px; font-weight: 600; letter-spacing: 1px; color: var(--aj-text); text-decoration: none; }
.aj-brand:hover { color: #fff; }
.aj-brand-sub { margin-left: 8px; font-size: 13px; color: var(--aj-gold); font-weight: 500; }
.aj-brand-note { font-size: 12px; color: var(--aj-muted); }
.aj-scenes { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 0 12px; }
.aj-chip { font-size: 12px; line-height: 1; padding: 6px 12px; border-radius: 999px; text-decoration: none; border: 1px solid currentColor; background: transparent; }
.aj-chip:hover { background: var(--aj-surface); }
.aj-chip--gold   { color: var(--aj-gold); }
.aj-chip--red    { color: var(--aj-red); }
.aj-chip--green  { color: var(--aj-green); }
.aj-chip--cyan   { color: var(--aj-cyan); }
.aj-chip--purple { color: var(--aj-purple); }
.aj-chip--orange { color: var(--aj-orange); }

/* ===== generic dark surfaces (cards etc., used from D-2) ===== */
.aj-card { background: var(--aj-surface); border: 1px solid var(--aj-line); border-radius: 10px; overflow: hidden; }
.aj-muted { color: var(--aj-muted); }

@media (max-width: 600px) {
  .aj-brand { font-size: 18px; }
  .aj-scenes { gap: 6px; }
  .aj-chip { font-size: 11.5px; padding: 6px 10px; }
}

/* ===== D-2: front page ===== */
.aj-main { max-width: 1140px; margin: 0 auto; padding: 0 16px 40px; }
.aj-gold { color: var(--aj-gold); }
.aj-hero { text-align: center; padding: 44px 0 28px; }
.aj-hero-title { font-size: clamp(26px, 4.5vw, 38px); line-height: 1.3; margin: 0 0 10px; color: #f0f1f5; }
.aj-hero-sub { font-size: 14px; color: var(--aj-muted); margin: 0 0 20px; }
.aj-hero-cta { margin: 0; }
.aj-btn { display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none; padding: 10px 22px; border-radius: 8px; }
.aj-btn--cyan { background: var(--aj-cyan); color: #0c0c12; }
.aj-btn--cyan:hover { background: #5fe4ff; color: #0c0c12; }
.aj-section { padding: 18px 0 8px; }
.aj-section-title { font-size: 16px; letter-spacing: 1px; color: var(--aj-muted); margin: 0 0 14px; font-weight: 600; }
.aj-scene-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.aj-scene-card { display: flex; flex-direction: column; gap: 4px; background: var(--aj-surface); border: 1px solid var(--aj-line); border-top-width: 2px; border-radius: 10px; padding: 14px 16px; text-decoration: none; }
.aj-scene-card:hover { border-color: #4a4a58; background: #1a1a24; }
.aj-scene-name { font-size: 14px; font-weight: 600; color: var(--aj-text); }
.aj-scene-count { font-size: 12px; color: var(--aj-muted); }
.aj-acc--gold   { border-top-color: var(--aj-gold); }
.aj-acc--red    { border-top-color: var(--aj-red); }
.aj-acc--green  { border-top-color: var(--aj-green); }
.aj-acc--cyan   { border-top-color: var(--aj-cyan); }
.aj-acc--purple { border-top-color: var(--aj-purple); }
.aj-acc--orange { border-top-color: var(--aj-orange); }
.aj-post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.aj-post-card { display: flex; flex-direction: column; text-decoration: none; border-top-width: 2px; }
.aj-post-card:hover { border-color: #4a4a58; }
.aj-thumb { display: block; aspect-ratio: 16/9; background: #1c1c26; overflow: hidden; }
.aj-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aj-post-meta { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; }
.aj-post-title { font-size: 13px; line-height: 1.5; color: var(--aj-text); }
.aj-tagchip { align-self: flex-start; font-size: 11px; line-height: 1; padding: 4px 9px; border-radius: 999px; border: 1px solid currentColor; }
@media (max-width: 600px) {
  .aj-hero { padding: 30px 0 20px; }
  .aj-post-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

/* ===== D-3: single post ===== */
.aj-single { max-width: 860px; margin: 0 auto; padding: 28px 0 20px; }
.aj-single-title { font-size: clamp(20px, 3.4vw, 28px); line-height: 1.4; margin: 0 0 10px; color: #f0f1f5; }
.aj-single-meta { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 12px; }
.aj-player { margin: 0 0 16px; }
.aj-player video { width: 100%; aspect-ratio: 16/9; background: #1c1c26; border: 1px solid var(--aj-line); border-radius: 10px; display: block; }
.aj-player-note { font-size: 11.5px; margin: 6px 2px 0; }
.aj-cta { background: var(--aj-surface); border: 1px solid var(--aj-line); border-radius: 10px; padding: 16px; margin: 0 0 24px; }
.aj-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }
.aj-btn--green { background: var(--aj-green); color: #0c0c12; }
.aj-btn--green:hover { background: #6ce8a3; color: #0c0c12; }
.aj-btn--gold { background: var(--aj-gold); color: #0c0c12; }
.aj-btn--gold:hover { background: #ffd76b; color: #0c0c12; }
.aj-btn--disabled { opacity: 0.55; cursor: default; }
.aj-cta-note { font-size: 11.5px; margin: 10px 2px 0; }
.aj-content { font-size: 14.5px; line-height: 1.8; color: #d4d6de; }
.aj-content h2 { color: #f0f1f5; font-size: 17px; margin: 26px 0 8px; }
.aj-content a { color: var(--aj-cyan); }
.aj-content table { border: 1px solid var(--aj-line); font-size: 13px; }
.aj-content th, .aj-content td { border: 1px solid var(--aj-line); }
.aj-content iframe, .aj-content video, .aj-content img { max-width: 100%; border-radius: 8px; }
.aj-content .w3eden .card, .aj-content .link-template-default { background: var(--aj-surface) !important; border: 1px solid var(--aj-line) !important; color: var(--aj-text) !important; }
@media (max-width: 600px) { .aj-single { padding-top: 18px; } }

/* ===== D-4: mobile overflow safety for legacy content ===== */
.aj-content iframe { width: 100%; aspect-ratio: 16/9; height: auto; }
.aj-content ins.adsbygoogle { max-width: 100% !important; }
.aj-content table { display: block; overflow-x: auto; max-width: 100%; }
.aj-content td, .aj-content th { overflow-wrap: anywhere; }
.aj-content .w3eden .media { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ===== archive grid + pagination ===== */
.aj-archive-head { padding: 26px 0 14px; }
.aj-archive-title { font-size: clamp(20px, 3.2vw, 26px); margin: 0 0 4px; color: #f0f1f5; }
.aj-archive-count { font-size: 13px; margin: 0; }
.aj-pagination { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 26px 0 8px; }
.aj-pagination .page-numbers { font-size: 13px; color: var(--aj-muted); border: 1px solid var(--aj-line); border-radius: 8px; padding: 7px 13px; text-decoration: none; }
.aj-pagination a.page-numbers:hover { color: var(--aj-text); border-color: #4a4a58; }
.aj-pagination .page-numbers.current { color: #0c0c12; background: var(--aj-cyan); border-color: var(--aj-cyan); font-weight: 600; }
.aj-pagination .page-numbers.dots { border: none; }

/* ===== JA完結DL: 本文内の旧WPDMカードを非表示（DBは無変更・CSSのみ＝可逆） ===== */
.aj-content .w3eden { display: none; }

/* ===== grid: PC=4列固定 / narrow=auto (>=160px) ===== */
.aj-post-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) {
  .aj-post-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
}

/* ===== lazy hover/tap preview ===== */
.aj-thumb { position: relative; }
.aj-thumb video, .aj-player--lazy video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .15s; }
.aj-thumb.is-playing video, .aj-player--lazy.is-playing video { opacity: 1; }
.aj-player--lazy { position: relative; aspect-ratio: 16/9; background: #1c1c26; border: 1px solid var(--aj-line); border-radius: 10px; overflow: hidden; cursor: pointer; }
.aj-player--lazy .aj-player-poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.aj-play-badge { position: absolute; left: 10px; bottom: 10px; z-index: 2; font-size: 12px; color: #0c0c12; background: rgba(255, 201, 60, .92); padding: 5px 11px; border-radius: 999px; font-weight: 600; pointer-events: none; }
.aj-player--lazy.is-playing .aj-play-badge { display: none; }
.aj-has-video .aj-content iframe[src*="youtube"] { display: none; }

/* ===== 有料導線: BOOTH主役＋他プラットフォーム控えめ（functions.php の the_content フィルタとセット） ===== */
.aj-content .aj-booth-cta { clear: both; background: var(--aj-surface); border: 1px solid var(--aj-line); border-left: 3px solid var(--aj-gold); border-radius: 10px; padding: 16px; margin: 24px 0 10px; }
.aj-booth-cta-title { margin: 0 0 12px; font-weight: 600; color: #f0f1f5; font-size: 14.5px; }
.aj-booth-cta .aj-btn { font-size: 13.5px; }
.aj-content .aj-other-platforms { clear: both; font-size: 12.5px; color: var(--aj-muted); margin: 4px 0 24px; }
/* 保険: 旧記事の崩れたマークアップで万一flexコンテナ内に取り込まれても全幅の行として表示する */
.aj-content .aj-booth-cta, .aj-content .aj-other-platforms { flex-basis: 100%; }

/* ===== 固定ページ（templates/page.html） ===== */
.aj-page { max-width: 860px; margin: 0 auto; padding: 28px 16px 48px; }
.aj-page-title { font-size: clamp(22px, 3.4vw, 28px); line-height: 1.4; margin: 0 0 22px; color: #f0f1f5; }
.aj-page .aj-content h2 { margin-top: 32px; }
.aj-page .aj-content ul { padding-left: 1.4em; }
.aj-page .aj-content li { margin: 4px 0; }
.aj-content .aj-other-platforms a { color: var(--aj-muted); }
.aj-content .aj-other-platforms a:hover { color: var(--aj-text); }
.aj-booth-pending { color: var(--aj-muted); font-size: .92em; }
