/*
Theme Name: Dream Uranai PRO V2
Author: HAKONIWA
Description: High-End Media Style
Version: 2.0
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

:root {
    --primary: #2D2B55;    /* 知的な紺色 */
    --accent: #D4AF37;     /* 落ち着いたゴールド */
    --text-main: #333333;
    --text-sub: #666666;
    --bg-body: #F7F9FB;    /* ほんのり青みがかった白 */
    --bg-white: #FFFFFF;
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.05); /* 柔らかい影 */
    --radius: 12px;
}

/* リセット & ベース */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Noto Sans JP', sans-serif; /* 美しい日本語フォント */
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.8;
    font-size: 16px;
    letter-spacing: 0.03em;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; display: block; }

/* コンテナ */
.container {
    width: 100%;
    max-width: 1100px; /* 少し広げて今風に */
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.site-header {
    background: var(--bg-white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 999;
}
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-title a::before {
    content: '🌙'; /* ロゴ代わりのアイコン */
}

/* ナビゲーション（PC） */
.site-nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
}
.site-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 8px 0;
    position: relative;
}
.site-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}
.site-nav a:hover::after { width: 100%; }

/* ナビゲーション（スマホ） */
@media (max-width: 768px) {
    .site-nav {
        display: none; /* 今回はシンプルにするためハンバーガーなしで非表示（またはフッター固定にする） */
    }
    .site-header .container { justify-content: center; }
}

/* メインコンテンツエリア */
.site-main { margin: 40px 0; }

/* 記事カード（一覧ページ） */
.post-list-item {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    border: 1px solid rgba(0,0,0,0.02);
}
.post-thumb-link {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.post-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.post-list-item:hover .post-thumb-link img { transform: scale(1.05); }

.entry-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}
.post-excerpt {
    font-size: 0.9rem;
    color: var(--text-sub);
    margin-bottom: 10px;
}
.post-meta {
    font-size: 0.8rem;
    color: #999;
    font-family: monospace;
}

/* 記事詳細ページ（single.php） */
.post-content article {
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}
.single .entry-title {
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--accent);
    padding-bottom: 15px;
}

/* 本文の見出し装飾 */
.entry-content h2 {
    font-size: 1.6rem;
    background: #f0f4f8;
    padding: 15px 20px;
    border-left: 5px solid var(--primary);
    border-radius: 4px;
    margin: 40px 0 20px;
    color: var(--primary);
}
.entry-content h3 {
    font-size: 1.3rem;
    border-bottom: 2px dashed #ddd;
    padding-bottom: 5px;
    margin: 30px 0 15px;
}
.entry-content p {
    margin-bottom: 1.8em;
    font-size: 1.05rem;
}

/* 夢占い判定ボックス（V2） */
.dream-result {
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
}
.dream-result.good {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
    border: 2px solid #ffcccc;
    color: #cc0000;
}
.dream-result.bad {
    background: linear-gradient(135deg, #f0f0f5 0%, #dcdce6 100%);
    border: 2px solid #aaaabf;
    color: #2D2B55;
}
.result-label {
    display: inline-block;
    background: var(--bg-white);
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

/* ボタン装飾 */
.btn-tel-uranai {
    background: linear-gradient(45deg, #4B0082, #800080);
    color: white !important;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(75, 0, 130, 0.3);
    transition: transform 0.2s;
}
.btn-tel-uranai:hover { transform: translateY(-3px); }

/* モバイル調整 */
@media (max-width: 768px) {
    .post-content article { padding: 20px; } /* 余白を狭く */
    .post-list-item { flex-direction: column; } /* カードを縦積みに */
    .post-thumb-link { width: 100%; height: 180px; }
    .single .entry-title { font-size: 1.5rem; }
    .entry-content h2 { font-size: 1.3rem; }
}

.post-thumbnail img {
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    max-height: 400px; /* 高さを制限 */
    width: 100%;
    object-fit: cover;
}

/* フッターの本格化デザイン */
.site-footer {
    background-color: var(--primary); /* 紺色にする */
    color: white;
    padding: 40px 0 20px;
    margin-top: 60px;
    text-align: center;
}

/* フッターメニュー（横並び） */
.footer-nav-area ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    padding: 0;
}
.footer-nav-area a {
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    text-decoration: none;
}
.footer-nav-area a:hover { color: white; }

/* 監修者バッジ */
.supervisor-badge {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 5px 15px;
    border-radius: 30px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.supervisor-badge .role {
    color: var(--accent); /* 金色 */
    margin-right: 10px;
    font-weight: bold;
}

.copyright {
    font-size: 0.75rem;
    opacity: 0.6;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .footer-nav-area ul { flex-direction: column; gap: 10px; }
}