/*
Theme Name: Stylish SEO Theme
Theme URI: [https://example.com/](https://example.com/)
Author: Gemini
Description: グリッドレイアウトと美しいタイポグラフィを採用したモダンなWordPressテーマ。
Version: 2.0
License: GNU General Public License v2 or later
*/

/* --- 1. 変数定義 --- */
:root {
    --primary-color: #2c3e50;
    --accent-color: #3498db;
    --accent-hover: #2980b9;
    --bg-color: #f8f9fb;
    --card-bg: #ffffff;
    --text-color: #444444;
    --meta-color: #888888;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.03);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.06);
    --radius-md: 12px;
}

/* --- 2. 基本設定 --- */
body {
    font-family: 'Noto Sans JP', "Helvetica Neue", sans-serif;
    color: var(--text-color);
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 3. ヘッダー (Glassmorphism) --- */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.05em;
}

.site-title a {
    color: var(--primary-color);
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.main-navigation a {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.main-navigation a:hover {
    color: var(--accent-color);
}

/* --- 4. 記事一覧 (Grid Layout) --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* カードスタイル */
.post-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.post-thumbnail {
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-title {
    font-size: 1.25rem;
    margin: 0 0 10px;
    line-height: 1.4;
}

.post-title a {
    color: var(--primary-color);
}

.post-meta {
    font-size: 0.8rem;
    color: var(--meta-color);
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.cat-links {
    background: #eef2f7;
    color: var(--accent-color);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.75rem;
}

.post-excerpt {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.read-more-btn {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-top: auto;
}

/* --- 5. 個別記事スタイル --- */
.single-post article {
    background: var(--card-bg);
    padding: 60px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-top: 40px;
}

.entry-header {
    text-align: center;
    margin-bottom: 50px;
}

.entry-title {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.entry-content {
    font-size: 1.05rem;
}

.entry-content h2 {
    font-size: 1.6rem;
    margin: 60px 0 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
    color: var(--primary-color);
}

/* 目次デザイン */
.ai-toc {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 30px;
    border-radius: var(--radius-md);
    margin: 3rem 0;
}

.ai-toc .toc-title {
    font-weight: 700;
    color: var(--accent-color);
    margin-top: 0;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
}

/* FAQデザイン */
.faq-item {
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    padding: 30px;
    background: #fff;
    margin-bottom: 20px;
}

.faq-question {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* パンくず */
.breadcrumb {
    margin: 20px 0;
    font-size: 0.85rem;
}

/* --- 6. レスポンシブ --- */
@media (max-width: 768px) {
    .post-grid {
        grid-template-columns: 1fr;
    }
    .single-post article {
        padding: 30px 20px;
    }
    .entry-title {
        font-size: 1.6rem;
    }
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }
}
