/*
 * Theme Override: Project Chimera v5.2 (Color Correction)
 */

/* === 1. フォントのインポート === */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital@0;1&family=Source+Code+Pro:wght@400;700&display=swap');

/* ★変更点: デザインシステムを琥珀色（オレンジ系）のテーマカラーに戻します === */
:root {
	--color-bg-dark: #1a1e23;
	--color-bg-content: #22282f;
	--color-text-primary: #EAC696;
	--color-text-secondary: rgba(234, 198, 150, 0.6);
	--color-accent-glow: #ffa726;
    --color-accent-hover: #ffb74d;
	--color-border-dark: rgba(255, 255, 255, 0.15);
	--shadow-glow: 0 0 20px rgba(255, 167, 38, 0.4);
	--font-family-serif: 'Lora', serif;
	--font-family-mono: 'Source Code Pro', monospace;
}

/* === 3. 全体のスタイル調整 === */
body {
	color: var(--color-text-primary);
	font-family: var(--font-family-serif);
	background-color: var(--color-bg-dark);
    position: relative;
    overflow-x: hidden;
}

/* === 4. 背景 === */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    background-image: url('https://skrgbenkyo.com/wp-content/uploads/2025/08/unnamed-2.png');
    background-size: cover;
    background-position: center;
    animation: pan-and-zoom 35s ease-in-out infinite alternate;
}
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 167, 38, 0.1) 0%, transparent 40%),
        linear-gradient(rgba(26, 30, 35, 0.92), rgba(26, 30, 35, 0.96));
    animation: shifting-light 25s ease-in-out infinite alternate;
}
@keyframes pan-and-zoom {
    0% { transform: scale(1.05) translate(0, 0); }
    100% { transform: scale(1.1) translate(2%, -2%); }
}
@keyframes shifting-light {
    0% { background-position: 50% 50%, 0 0; }
    50% { background-position: 70% 30%, 0 0; }
    100% { background-position: 50% 50%, 0 0; }
}


/* === 5. ヘッダーのデザイン === */
.site-header {
    position: sticky;
    border-bottom: 1px solid rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    box-shadow: inset 0 -2px 5px rgba(0,0,0,0.3), 0 2px 3px rgba(0,0,0,0.2);
    overflow: hidden; 
    animation: pulse-dark 3s ease-in-out infinite alternate;
}
@keyframes pulse-dark {
    from {
        background-color: rgba(25, 25, 25, 0.9);
    }
    to {
        background-color: rgba(50, 50, 50, 0.9);
    }
}

.site-header.is-scrolled {
    box-shadow: inset 0 -2px 5px rgba(0,0,0,0.3), 0 5px 20px rgba(0,0,0,0.3);
}
.site-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent-glow), transparent);
    animation: scan-light 4s linear infinite;
    box-shadow: 0 0 10px var(--color-accent-glow);
}
@keyframes scan-light {
    0% { left: -100%; }
    100% { left: 100%; }
}
.site-title a {
    color: var(--color-accent-glow);
    text-decoration: none;
    transition: all 0.3s ease;
}
.site-title a:hover {
    color: var(--color-accent-hover);
    text-shadow: 0 0 10px var(--color-accent-glow);
}


/* === 6. ヒーローセクション === */
.hero-section { height: 60vh; display: flex; align-items: center; justify-content: center; position: relative; background: transparent; }
.hero-content { z-index: 1; }
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem); 
    font-weight: 700; 
    color: transparent;
    -webkit-text-stroke: 1px var(--color-text-secondary);
    text-stroke: 1px var(--color-text-secondary);
    transition: all 0.5s ease;
    position: relative;
    background: none;
    animation: none;
    opacity: 0.4; 
}
.hero-title:hover {
    color: var(--color-accent-hover);
    -webkit-text-stroke: 1px var(--color-accent-hover);
    text-stroke: 1px var(--color-accent-hover);
    text-shadow: 0 0 15px var(--color-accent-glow);
    opacity: 1;
}
.hero-button { display: inline-block; margin-top: 2rem; padding: 1rem 2.5rem; font-family: var(--font-family-mono); color: #fff; background: transparent; border: 2px solid var(--color-accent-glow); border-radius: 50px; transition: all 0.3s ease; }
.hero-button:hover { background: var(--color-accent-glow); color: var(--color-bg-dark); box-shadow: var(--shadow-glow); transform: translateY(-3px); }


/* === 7. 既存の動的機能（プリローダー、スクロールアニメーションなど） === */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: var(--color-bg-dark); z-index: 9999; transition: opacity 0.5s ease, visibility 0.5s ease; }
#preloader.is-loaded { opacity: 0; visibility: hidden; }
.loader { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.spinner { width: 50px; height: 50px; background-color: var(--color-accent-glow); border-radius: 50%; animation: pulse 1.5s infinite ease-in-out; }
@keyframes pulse { 0% { transform: scale(0); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.scroll-animate { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.scroll-animate.is-visible { opacity: 1; transform: translateY(0); }
.post-card:nth-child(2) { transition-delay: 0.1s; }
.post-card:nth-child(3) { transition-delay: 0.2s; }
.post-card { background: linear-gradient(145deg, #2a3038, var(--color-bg-content)); border: 1px solid var(--color-border-dark); box-shadow: inset 0 0 15px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.5); }
.post-card:hover { transform: translateY(-5px) scale(1.02); border-color: var(--color-accent-glow); box-shadow: inset 0 0 15px rgba(0,0,0,0.5), var(--shadow-glow); }
#cursor-spotlight { position: fixed; top: -250px; left: -250px; width: 500px; height: 500px; background: radial-gradient(circle, var(--color-accent-glow) 0%, rgba(255, 167, 38, 0) 60%); border-radius: 50%; opacity: 0.1; pointer-events: none; z-index: 9998; transition: transform 0.2s ease, opacity 0.3s ease; }
#cursor-spotlight.is-active { transform: scale(0.8); opacity: 0.15; }

/* === 8. フッターのスタイル === */
.site-footer {
    border-top: 1px solid var(--color-border-dark);
    background: var(--color-bg-dark);
}
.footer-main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-link-item {
    font-family: var(--font-family-mono);
    color: var(--color-text-secondary);
    font-size: 1.1rem;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.footer-link-item:hover {
    color: var(--color-accent-hover);
    border-color: var(--color-border-dark);
    background-color: var(--color-bg-content);
    box-shadow: var(--shadow-glow);
    text-shadow: 0 0 8px var(--color-accent-glow);
}
.footer-bottom-bar {
    background-color: #121212;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* === 9. 記事詳細ページ（single.php）の背景修正 === */
.single .entry-content {
    background: var(--color-bg-content);
    box-shadow: var(--shadow-glow);
}

/* === 11. レスポンシブ対応（スマホ表示の最適化）- 統合版 === */
@media (max-width: 768px) {

    /* ヒーローセクションの調整 */
    .hero-section {
        height: 50vh;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        -webkit-text-stroke-width: 1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
        padding: 0 1rem;
    }

    /* ★ここから下を追記★ */
    /* 記事詳細ページ（投稿ページ）の調整 */
    .single .entry-title {
        font-size: 1.8rem; /* 投稿ページのタイトルサイズを調整 */
        line-height: 1.4;
    }

    .single .entry-body p {
        font-size: 1rem; /* 本文の文字サイズを調整 */
        line-height: 1.7;
    }
    /* ★ここまでを追記★ */

    /* 記事カードを縦一列に並べる */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* フッターの項目を中央揃えで縦に並べる */
    .footer-main {
        flex-direction: column;
        text-align: center;
    }

    /* コンテンツ全体の左右の余白を調整 */
    .site-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

