/*
Theme Name: fanza-full-luxury
Theme URI: https://fanza-full-books.site/
Author: Manus AI
Author URI: https://help.manus.im
Description: fanza-full-books.site向けのLuxury ElegantコンセプトのWordPressテーマ。ネイビー、ゴールド、ホワイトを基調とし、セリフフォントと豊富な余白で高級感を演出します。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready
Text Domain: fanza-full-luxury
*/

/* --- カラーパレット --- */
:root {
    --color-navy: #0A1931;
    --color-gold: #FFD700;
    --color-white: #F5F5F5;
    --color-text: #0A1931;
    --color-text-light: #F5F5F5;
    --color-accent: #FFD700;
    --font-serif: 'Playfair Display', Georgia, serif; /* Google Fontsから読み込むことを想定 */
    --font-sans: 'Lato', 'Noto Sans JP', sans-serif;
    --spacing-unit: 1.5rem;
    --shadow-elegant: 0 4px 12px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 215, 0, 0.2); /* ゴールドの縁取りを意識したシャドウ */
}

/* --- リセットと基本設定 --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.7;
    padding-top: 80px; /* 固定ヘッダーのスペース */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-unit);
    color: var(--color-navy);
}

a {
    color: var(--color-navy);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

/* --- レイアウトコンテナ --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* --- Luxury Elegantの基本スタイル --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: calc(var(--spacing-unit) * 3);
    position: relative;
    color: var(--color-navy);
    letter-spacing: 0.1em;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
    margin: 10px auto 0;
    box-shadow: 0 0 10px var(--color-accent);
}

/* --- ヘッダーとナビゲーション --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-navy);
    color: var(--color-text-light);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 3px solid var(--color-accent); /* ゴールドのアクセント */
}

.site-branding h1 {
    margin: 0;
    font-size: 1.8rem;
    font-family: var(--font-serif);
    letter-spacing: 0.15em;
}

.site-branding a {
    color: var(--color-text-light);
}

.main-navigation ul {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.main-navigation li {
    margin-left: var(--spacing-unit);
}

.main-navigation a {
    color: var(--color-text-light);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    padding: 0.5rem 0;
    position: relative;
}

.main-navigation a:hover {
    color: var(--color-accent);
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

/* --- アフィリエイトボタンの強調 --- */
.affiliate-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, #FFEB3B 100%);
    color: var(--color-navy);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4), 0 0 0 2px var(--color-navy);
    transition: all 0.3s ease;
    letter-spacing: 0.1em;
    animation: pulse 2s infinite;
}

.affiliate-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6), 0 0 0 3px var(--color-navy);
    color: var(--color-navy);
}

@keyframes pulse {
    0% { box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4), 0 0 0 2px var(--color-navy); }
    50% { box-shadow: 0 5px 20px rgba(255, 215, 0, 0.8), 0 0 0 2px var(--color-navy); }
    100% { box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4), 0 0 0 2px var(--color-navy); }
}

/* --- 記事カードの魅力的なデザイン --- */
.post-card {
    background-color: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-elegant);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: calc(var(--spacing-unit) * 2);
    border: 1px solid rgba(10, 25, 49, 0.05);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 0 3px var(--color-accent);
}

.post-card-image {
    height: 200px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

.post-card-content {
    padding: var(--spacing-unit);
}

.post-card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-serif);
}

.post-card-title a {
    color: var(--color-navy);
}

.post-card-meta {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: var(--spacing-unit);
}

/* --- グリッドレイアウト (index.phpで使用) --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
    padding: calc(var(--spacing-unit) * 2) 0;
}

/* --- モバイル対応 --- */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .header {
        padding: 0.5rem 0;
    }

    .site-branding h1 {
        font-size: 1.5rem;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        display: none; /* モバイルメニューは別途JavaScriptでトグル */
    }

    .main-navigation li {
        margin: 0.5rem 0;
    }

    .posts-grid {
        gap: var(--spacing-unit);
    }

    .section-title {
        font-size: 2rem;
    }
}
