/*
Theme Name: raw-hitomi-playful
Theme URI: https://raw-hitomi-free.site/
Author: Manus AI
Author URI: https://help.manus.im
Description: Playful Cartoonコンセプトに基づいた、ビビッドカラーとバウンスアニメーションが特徴のWordPressテーマ。丸みとポップなデザインで、楽しい閲覧体験を提供します。
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: playful, cartoon, vivid-color, rounded, animation, pop
Text Domain: raw-hitomi-playful
*/

/* --- 1. カラーパレットと基本設定 --- */
:root {
    --color-primary: #FFD700; /* ビビッドイエロー */
    --color-secondary: #FF4500; /* ビビッドレッド */
    --color-accent: #1E90FF; /* ビビッドブルー */
    --color-text: #333333;
    --color-background: #F8F8F8;
    --border-radius-large: 25px;
    --box-shadow-pop: 0 10px 20px rgba(255, 215, 0, 0.4), 0 6px 6px rgba(255, 69, 0, 0.2);
}

body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', sans-serif; /* ポップなフォントの代替 */
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* --- 2. アニメーション定義 (バウンス効果) --- */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes pop-in {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* --- 3. レイアウトとコンテナ --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 20px 0;
    box-shadow: var(--box-shadow-pop);
    margin-bottom: 30px;
    border-bottom-left-radius: var(--border-radius-large);
    border-bottom-right-radius: var(--border-radius-large);
}

.site-title a {
    color: white;
    text-decoration: none;
    font-size: 2.5em;
    text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
    animation: bounce 4s infinite;
    display: inline-block;
}

/* --- 4. 記事カードのデザイン (丸みとポップ) --- */
.post-card {
    background-color: white;
    border-radius: var(--border-radius-large);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    margin-bottom: 30px;
    animation: pop-in 0.5s ease-out;
}

.post-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--box-shadow-pop);
}

.post-card-image {
    border-top-left-radius: var(--border-radius-large);
    border-top-right-radius: var(--border-radius-large);
    height: 200px;
    background-size: cover;
    background-position: center;
}

.post-card-content {
    padding: 20px;
}

.post-card h2 a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.5em;
}

/* --- 5. アフィリエイトボタンの強調 --- */
.affiliate-button {
    display: block;
    width: 80%;
    margin: 20px auto;
    padding: 15px 20px;
    background-color: var(--color-secondary);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    border-radius: 50px; /* 非常に丸い */
    box-shadow: 0 5px 0px var(--color-accent); /* 3D効果 */
    transition: all 0.1s;
    animation: bounce 2s infinite 0.5s; /* 常にバウンス */
}

.affiliate-button:active {
    box-shadow: 0 2px 0px var(--color-accent);
    transform: translateY(3px);
}

/* --- 6. モバイル対応 (グリッドとレスポンシブ) --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
    .site-title a {
        font-size: 2em;
    }
    .affiliate-button {
        width: 95%;
    }
}

/* --- 7. その他のポップな要素 --- */
.category-tag {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    margin-right: 10px;
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}
