/*
Theme Name: Ohio Child Drummer JAPAN
Theme URI: https://drummerjapan.com
Description: Drummer JAPAN専用 Ohio子テーマ。トップページをElementor非依存の黒×金エディトリアルデザインで再構築。他ページは親テーマOhio + Elementorで従来通り動作。
Author: Drummer JAPAN
Author URI: https://drummerjapan.com
Template: ohio
Version: 1.3.1
Text Domain: ohio-child-drummerjapan
*/

/* 変更履歴
   1.3.1 - data:image/svg+xml URIがesc_url()で除去されないよう、
           許可プロトコルにdata:を追加（最重要バグ修正）
   1.3.0 - ドラマー名鑑セクションを強制SVGプレースホルダーモードに
   1.2.0 - フォールバック画像をエディトリアル風SVGに変更
   1.1.0 - 名鑑セクション等でアイキャッチ未設定時の本文画像フォールバック追加
   1.0.0 - 初版
*/

/* =========================================================
   Drummer JAPAN フロントページ専用スタイル
   - 黒×金のエディトリアルデザイン
   - 他ページには影響しない（.dj-front スコープ内のみ適用）
   ========================================================= */

/* Google Fonts は functions.php で enqueue する */

.dj-front {
    background: #0a0a0a;
    color: #e8e6e0;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

.dj-front *,
.dj-front *::before,
.dj-front *::after {
    box-sizing: border-box;
}

.dj-front a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

.dj-front a:hover {
    opacity: 0.65;
}

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

.dj-front .dj-serif {
    font-family: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', Georgia, serif;
}

.dj-front .dj-gold { color: #C9A961; }
.dj-front .dj-muted { color: #8a8780; }

.dj-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.dj-hairline {
    border-top: 1px solid #2a2a2a;
}

/* ========== HERO ========== */
.dj-hero {
    padding: 6rem 2rem 5rem;
    border-bottom: 1px solid #2a2a2a;
    text-align: center;
}

.dj-hero-tag {
    display: inline-block;
    border-top: 1px solid #C9A961;
    border-bottom: 1px solid #C9A961;
    padding: 8px 24px;
    margin-bottom: 2.5rem;
    font-size: 11px;
    letter-spacing: 0.4em;
    color: #C9A961;
}

.dj-hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #f5f3ed;
    margin: 0 0 1rem;
    line-height: 1.3;
}

.dj-hero-en {
    font-size: 14px;
    letter-spacing: 0.2em;
    color: #8a8780;
    margin: 1.5rem 0 0;
}

.dj-hero-lead {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    line-height: 2;
    color: #a8a59c;
    margin: 2.5rem auto 0;
    max-width: 560px;
}

/* ========== SECTION COMMON ========== */
.dj-section {
    padding: 4rem 2rem;
}

.dj-section.dj-section-alt {
    background: #0d0d0d;
}

.dj-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dj-section-num {
    font-family: 'Noto Serif JP', serif;
    font-style: italic;
    font-size: 14px;
    color: #C9A961;
    letter-spacing: 0.1em;
}

.dj-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin: 0.5rem 0 0;
    color: #f5f3ed;
}

.dj-section-en {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #8a8780;
    text-transform: uppercase;
    margin-top: 0.5rem;
}

.dj-section-desc {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    color: #a8a59c;
    margin-top: 1rem;
    max-width: 480px;
    line-height: 1.8;
}

.dj-more-link {
    font-size: 12px;
    letter-spacing: 0.2em;
    color: #C9A961;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 1px solid #C9A961;
    white-space: nowrap;
}

/* ========== ARTICLE GRID ========== */
.dj-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.dj-grid-feature {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.dj-card {
    display: block;
    color: inherit;
}

.dj-thumb {
    aspect-ratio: 16 / 10;
    background: #1a1a1a;
    overflow: hidden;
    position: relative;
}

.dj-thumb-feature {
    aspect-ratio: 16 / 9;
}

.dj-thumb-portrait {
    aspect-ratio: 3 / 4;
}

.dj-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dj-card:hover .dj-thumb img {
    transform: scale(1.05);
}

.dj-thumb-rank {
    position: absolute;
    bottom: 12px;
    left: 12px;
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    color: #C9A961;
    background: rgba(10, 10, 10, 0.8);
    padding: 4px 10px;
    z-index: 2;
}

.dj-cat-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.25em;
    color: #C9A961;
    text-transform: uppercase;
    margin-top: 16px;
}

.dj-article-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    line-height: 1.5;
    color: #f5f3ed;
    font-weight: 500;
    margin: 12px 0 8px;
}

.dj-article-title-feature {
    font-size: 24px;
    line-height: 1.4;
}

.dj-article-excerpt {
    font-size: 13px;
    line-height: 1.7;
    color: #a8a59c;
    margin: 0;
}

.dj-article-date {
    font-size: 11px;
    letter-spacing: 0.15em;
    color: #6a6760;
    margin-top: 12px;
}

/* ========== WHAT'S NEW (featured + side list) ========== */
.dj-side-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.dj-side-item {
    padding-bottom: 24px;
    border-bottom: 1px solid #2a2a2a;
}

.dj-side-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* ========== STATS BANNER ========== */
.dj-stats-banner {
    border: 1px solid #C9A961;
    padding: 2rem;
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.dj-stats-cell {
    text-align: center;
}

.dj-stats-cell + .dj-stats-cell {
    border-left: 1px solid #2a2a2a;
}

.dj-stats-num {
    font-family: 'Noto Serif JP', serif;
    font-size: 36px;
    font-weight: 500;
    color: #C9A961;
}

.dj-stats-label {
    font-size: 11px;
    letter-spacing: 0.25em;
    color: #8a8780;
    margin-top: 4px;
}

/* ========== THE LIGHTNING ========== */
.dj-lightning {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, #0a0a0a 0%, #15110a 50%, #0a0a0a 100%);
}

.dj-lightning-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.dj-lightning-tag {
    font-size: 11px;
    letter-spacing: 0.4em;
    color: #C9A961;
    margin-bottom: 1rem;
}

.dj-lightning-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 42px;
    font-weight: 500;
    color: #f5f3ed;
    margin: 0 0 1rem;
    letter-spacing: 0.05em;
}

.dj-lightning-sub {
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    color: #C9A961;
    margin-bottom: 1.5rem;
}

.dj-lightning-desc {
    font-size: 14px;
    line-height: 2;
    color: #a8a59c;
    margin-bottom: 2rem;
}

.dj-btn-outline {
    display: inline-block;
    border: 1px solid #C9A961;
    color: #C9A961;
    padding: 12px 32px;
    font-size: 12px;
    letter-spacing: 0.3em;
}

.dj-lightning-thumb {
    aspect-ratio: 4 / 3;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
}

/* ========== MEMBERSHIP CTA ========== */
.dj-membership {
    text-align: center;
    padding: 4rem 2rem;
}

.dj-membership-inner {
    max-width: 720px;
    margin: 0 auto;
}

.dj-membership-lead {
    font-family: 'Noto Serif JP', serif;
    font-size: 17px;
    line-height: 2;
    color: #a8a59c;
    margin: 2rem 0 2.5rem;
}

.dj-btn-primary {
    display: inline-block;
    background: #C9A961;
    color: #0a0a0a;
    padding: 16px 48px;
    font-size: 13px;
    letter-spacing: 0.3em;
    font-weight: 500;
}

/* ========== ARCHIVE STATS (bottom) ========== */
.dj-archive-stats {
    padding: 4rem 2rem;
    background: #0d0d0d;
    border-top: 1px solid #2a2a2a;
}

.dj-archive-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.dj-archive-stats-cell {
    padding: 1rem;
}

.dj-archive-stats-cell + .dj-archive-stats-cell {
    border-left: 1px solid #2a2a2a;
}

.dj-archive-stats-num {
    font-family: 'Noto Serif JP', serif;
    font-size: 42px;
    font-weight: 500;
    color: #C9A961;
}

.dj-archive-stats-label {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: #8a8780;
    margin-top: 8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
    .dj-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .dj-grid-feature {
        grid-template-columns: 1fr;
    }
    .dj-lightning-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .dj-archive-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dj-archive-stats-cell:nth-child(3),
    .dj-archive-stats-cell:nth-child(4) {
        border-top: 1px solid #2a2a2a;
    }
    .dj-archive-stats-cell:nth-child(3) {
        border-left: none;
    }
}

@media (max-width: 600px) {
    .dj-section { padding: 3rem 1.25rem; }
    .dj-hero { padding: 4rem 1.25rem 3rem; }
    .dj-section-title { font-size: 26px; }
    .dj-grid-4 { grid-template-columns: 1fr; gap: 32px; }
    .dj-stats-banner { padding: 1.5rem 1rem; }
    .dj-stats-num { font-size: 28px; }
    .dj-archive-stats-num { font-size: 32px; }
    .dj-lightning { padding: 3rem 1.25rem; }
    .dj-lightning-title { font-size: 32px; }
}

/* ========== Elementor / 親テーマ干渉対策 ========== */
/* front-page.phpではElementorのフロントエンドを使わないため、
   万一表示時にElementor由来の余白が入っても問題ないよう保険 */
.dj-front .elementor,
.dj-front .elementor-section,
.dj-front .elementor-container {
    all: unset;
}
