/*
Theme Name: 八幡平のしあわせたまご
Theme URI: https://hachimantai-tamago.jp
Description: 岩手県八幡平の平飼い鶏卵農場向けメルヘンチックテーマ。WooCommerce対応。
Author: Your Name
Author URI: https://example.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shiawase-tamago
Tags: e-commerce, blog, custom-menu, featured-images, threaded-comments
*/

/* ==========================================
   基本設定
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'メイリオ', 'Meiryo', sans-serif;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe4d4 100%);
    color: #5a4a3a;
    overflow-x: hidden;
    line-height: 1.6;
}


/* ==========================================
   ヘッダー & ナビゲーション
   ※ header.php内で定義済みのため、ここでは省略
   ========================================== */

/* ==========================================
   ヒーローセクション
   ========================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #ffd9a5 0%, #ffb88c 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '🐔';
    position: absolute;
    font-size: 15rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   セクション共通
   ========================================== */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #ff9a5a;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   カード共通
   ========================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ff9a5a;
}

.card p {
    color: #666;
    line-height: 1.8;
}

/* ==========================================
   ブログセクション
   ========================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #ffd9a5, #ffb88c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

.blog-content {
    padding: 1.5rem;
}

.blog-date {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-content h3 {
    color: #5a4a3a;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.blog-content h3 a {
    color: #5a4a3a;
    text-decoration: none;
    transition: color 0.3s;
}

.blog-content h3 a:hover {
    color: #ff9a5a;
}

.blog-content p {
    color: #666;
    line-height: 1.8;
}

/* ==========================================
   お問い合わせセクション
   ========================================== */
.contact-card {
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    margin: 1rem 0;
    color: #666;
}

.contact-info p {
    margin: 0.8rem 0;
    font-size: 1.1rem;
}

.contact-info strong {
    color: #ff9a5a;
}

/* ==========================================
   フッター
   ========================================== */
footer {
    background: #5a4a3a;
    color: white;
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-tagline {
    margin: 1rem 0;
    font-style: italic;
    opacity: 0.9;
}

.footer-copyright {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ==========================================
   装飾要素
   ========================================== */
.decorative-element {
    position: fixed;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
}

.bird1 {
    top: 10%;
    left: 5%;
    font-size: 3rem;
    animation: float 4s ease-in-out infinite;
}

.bird2 {
    top: 40%;
    right: 10%;
    font-size: 2.5rem;
    animation: float 5s ease-in-out infinite 1s;
}

.egg1 {
    bottom: 20%;
    left: 15%;
    font-size: 4rem;
    animation: float 6s ease-in-out infinite 2s;
}

/* ==========================================
   WordPress標準クラス
   ========================================== */
.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

.sticky {
    /* スティッキー投稿用 */
}

.bypostauthor {
    /* 投稿者コメント用 */
}

.gallery-caption {
    font-size: 0.9rem;
    color: #666;
}

/* ==========================================
   ページネーション
   ========================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-numbers {
    background: white;
    color: #5a4a3a;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: #ff9a5a;
    color: white;
}

/* ==========================================
   レスポンシブデザイン
   ========================================== */
@media (max-width: 768px) {
    .nav-links {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .section {
        padding: 3rem 1rem;
    }

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

    .cards {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero::before {
        font-size: 8rem;
    }
}