/*
 * カスタムトップページ用CSS
 * Cocoon Child Theme用
 */

/* ===========================
   カラー変数
   =========================== */
:root {
    --primary-pink: #FFB5C5;
    --soft-blue: #7BA8C7;
    --cream: #FFF8F0;
    --text-dark: #3A3A3A;
    --accent-coral: #FF8FA3;
}

/* ===========================
   カスタムヘッダー
   =========================== */
.custom-header {
    background: linear-gradient(135deg, var(--primary-pink) 0%, #FFDDE6 100%);
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

/* 装飾的な猫の足跡 */
.custom-header::before {
    content: '🐾';
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 3rem;
    opacity: 0.3;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-header .logo a {
    font-family: 'Zen Maru Gothic', 'Hiragino Sans', 'Meiryo', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: 0.05em;
    text-decoration: none;
}

/* ===========================
   ナビゲーションメニュー
   =========================== */
.main-nav {
    display: flex;
    gap: 2rem;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ===========================
   メインビジュアル
   =========================== */
.hero {
    position: relative;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.hero-content {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    position: relative;
}

/* タイトル部分 */
.hero-title-section {
    background: linear-gradient(to right, var(--soft-blue), #9CC5DB);
    padding: 3rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero-title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255,255,255,0.15) 0%, transparent 50%);
}

.hero-title {
    font-family: 'Zen Maru Gothic', 'Hiragino Sans', 'Meiryo', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.2);
    letter-spacing: 0.08em;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
    text-align: center;
    color: white;
    font-size: 1.1rem;
    margin-top: 1rem;
    font-weight: 400;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

/* メイン画像エリア */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 画像の上にグラデーションオーバーレイ */
.hero-image-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
}

/* ===========================
   CTAボタン
   =========================== */
.cta-buttons {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.cta-button {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    display: inline-block;
}

.cta-primary {
    background: var(--accent-coral);
    color: white;
}

.cta-primary:hover {
    background: #FF7690;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255,143,163,0.4);
}

.cta-secondary {
    background: white;
    color: var(--soft-blue);
    border: 2px solid var(--soft-blue);
}

.cta-secondary:hover {
    background: var(--soft-blue);
    color: white;
    transform: translateY(-3px);
}

/* ===========================
   コンテンツセクション
   =========================== */
.content-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.section-title {
    font-family: 'Zen Maru Gothic', 'Hiragino Sans', 'Meiryo', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--soft-blue);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-coral);
    border-radius: 2px;
}

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

.card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

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

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--soft-blue);
    margin-bottom: 1rem;
}

.card-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.card-link {
    color: var(--accent-coral);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #FF7690;
}

/* ===========================
   最新記事セクション
   =========================== */
.latest-posts-section {
    background: var(--cream);
    padding: 4rem 2rem;
    margin: 0;
    max-width: 100%;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.post-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-title a:hover {
    color: var(--soft-blue);
}

.post-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--accent-coral);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #FF7690;
}

/* ===========================
   アニメーション
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   レスポンシブ対応
   =========================== */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-title-section {
        padding: 2rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 90%;
        bottom: 30px;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
        text-align: center;
    }

    .hero-image-wrapper {
        height: 350px;
    }

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

@media (max-width: 480px) {
    .custom-header {
        padding: 1rem;
    }

    .custom-header .logo a {
        font-size: 1.4rem;
    }

    .hero {
        padding: 0 1rem;
        margin: 2rem auto;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-title-section {
        padding: 1.5rem;
    }

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