/*
Theme Name: ROLE Web Magazine
Theme URI: https://roleweb.jp/
Author: ROLE inc. Creative Team
Description: High-end editorial magazine theme inspired by HOUYHNHNM. Featuring multi-section layout and bold typography.
Version: 1.1.0
License: GNU General Public License v2 or later
Text Domain: role-webmagazine
*/

/* Reset & Base */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    color: #000;
    background-color: #ffffff;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: opacity 0.3s; }
a:hover { opacity: 0.7; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

/* Entry Content Images Fix */
.entry-content img,
.entry-content .wp-block-image img,
.entry-content figure img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 40px auto;
}

.entry-content iframe,
.entry-content video,
.entry-content embed {
    max-width: 100% !important;
    height: auto !important;
}

.entry-content figure {
    margin: 40px 0;
    max-width: 100%;
}

.entry-content figcaption {
    font-size: 12px;
    color: #888;
    text-align: center;
    margin-top: 10px;
}

/* Typography */
h1, h2, h3, h4, h5 { font-weight: 900; letter-spacing: -0.05em; margin: 0; line-height: 1.1; }
.section-title {
    font-size: 40px;
    text-transform: uppercase;
    border-bottom: 5px solid #000;
    padding-bottom: 15px;
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.section-title span { font-size: 14px; letter-spacing: 0.2em; }

/* Header */
.site-header { padding: 40px 0; background: #fff; border-bottom: 2px solid #000; position: sticky; top: 0; z-index: 1000; }
.site-title { font-size: 48px; text-align: center; font-weight: 900; text-transform: uppercase; }
.nav-menu ul { list-style: none; padding: 0; margin: 20px 0 0; display: flex; justify-content: center; gap: 40px; font-size: 12px; font-weight: 900; text-transform: uppercase; }

/* --- MAGAZINE SECTIONS --- */

/* 1. FEATURE (Hero Slider Style) */
.mag-feature { margin: 60px 0 100px; display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.feature-main { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.feature-main img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: 0.8s; }
.feature-main:hover img { transform: scale(1.05); }
.feature-content { position: absolute; bottom: 40px; left: 40px; color: #fff; max-width: 80%; }
.feature-cat { background: #fff; color: #000; padding: 4px 12px; font-size: 11px; font-weight: 900; margin-bottom: 15px; display: inline-block; }
.feature-title { font-size: 52px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }

.feature-sub { display: flex; flex-direction: column; gap: 20px; }
.feature-sub-item { position: relative; flex: 1; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.feature-sub-item img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; }
.feature-sub-content { position: absolute; bottom: 20px; left: 20px; color: #fff; }
.feature-sub-title { font-size: 20px; font-weight: 900; }

/* 2. LATEST NEWS (Compact List) */
.mag-latest { margin-bottom: 100px; display: grid; grid-template-columns: 1fr 3fr; gap: 60px; border-top: 1px solid #eee; padding-top: 60px; }
.latest-info h2 { font-size: 80px; line-height: 0.8; color: #eee; position: relative; }
.latest-info h2::after { content: "NEWS"; position: absolute; top: 40px; left: 0; font-size: 24px; color: #000; letter-spacing: 0.3em; }

.news-list { list-style: none; padding: 0; margin: 0; }
.news-item { border-bottom: 1px solid #eee; padding: 20px 0; display: flex; align-items: baseline; gap: 30px; }
.news-date { font-size: 12px; font-weight: 900; color: #888; width: 80px; }
.news-title { font-size: 18px; font-weight: 700; flex: 1; }

/* 3. MAIN GRID (The Core Content) */
.magazine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 30px; margin-bottom: 120px; }
.grid-image { aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 20px; background: #f7f7f7; }
.grid-image img { width: 100%; height: 100%; object-fit: cover; }
.grid-cat { font-size: 10px; font-weight: 900; background: #000; color: #fff; padding: 2px 8px; display: inline-block; margin-bottom: 10px; }
.grid-title { font-size: 20px; line-height: 1.3; font-weight: 900; }

/* 4. RANKING (Side or Bottom) */
.mag-ranking { background: #f9f9f9; padding: 100px 0; margin-bottom: 100px; }
.ranking-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 40px; }
.rank-item { position: relative; display: flex; flex-direction: column; }
.rank-num { position: absolute; top: -30px; left: -15px; font-size: 72px; font-weight: 900; color: rgba(0,0,0,0.08); font-style: italic; z-index: 1; pointer-events: none; }
.rank-content { position: relative; z-index: 2; width: 100%; }
.rank-image { aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 15px; background: #eee; }
.rank-image img { width: 100%; height: 100%; object-fit: cover; }
.rank-title { font-size: 14px; font-weight: 900; line-height: 1.4; color: #000; }

/* Footer */
.site-footer { padding: 100px 0; background: #000; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; margin-bottom: 60px; }
.footer-logo { font-size: 32px; font-weight: 900; }
.footer-nav h4 { font-size: 12px; letter-spacing: 0.2em; margin-bottom: 30px; color: #666; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 15px; font-size: 14px; font-weight: 700; }

/* Responsive */
@media (max-width: 1024px) {
    .mag-feature { grid-template-columns: 1fr; }
    .mag-latest { grid-template-columns: 1fr; }
    .magazine-grid { grid-template-columns: repeat(2, 1fr); }
    .ranking-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
    .magazine-grid { grid-template-columns: 1fr; }
    .ranking-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-title { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; }
}
