/* リセットCSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本設定 */
:root {
    /* カラーパレット - 優しく温かみのある色合い */
    --primary-color: #E8A09A;      /* 優しいピンク */
    --secondary-color: #9BBEC8;    /* 落ち着いたブルー */
    --accent-color: #FBD8B0;       /* 温かみのあるベージュ */
    --text-primary: #4A4A4A;       /* ダークグレー */
    --text-secondary: #6B6B6B;     /* ミディアムグレー */
    --bg-light: #FFF8F5;           /* クリーム色の背景 */
    --bg-white: #FFFFFF;
    --shadow: rgba(0, 0, 0, 0.08);
    
    /* フォント */
    --font-primary: 'Noto Sans JP', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.8;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
header {
    background-color: var(--bg-white);
    padding: 30px 0;
    box-shadow: 0 2px 10px var(--shadow);
}

.site-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 10px;
}

.site-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    font-weight: 400;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, #FFF8F5 0%, #FFE8E3 100%);
    padding: 60px 0;
}

.hero-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero-text {
    font-size: 18px;
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ジャンルセクション */
.genres {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ジャンルカード */
.genre-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.genre-card {
    background-color: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 20px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.genre-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.genre-card:hover::before {
    opacity: 1;
}

.genre-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 30px;
}

.genre-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.genre-highlight {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 20px;
}

.genre-features {
    list-style: none;
    margin-bottom: 20px;
}

.genre-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.genre-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.genre-point {
    background-color: var(--bg-light);
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-primary);
    border-left: 4px solid var(--accent-color);
}

/* カードの色分け */
.genre-card[data-genre="beauty"] .genre-number { color: #E8A09A; }
.genre-card[data-genre="home"] .genre-number { color: #9BBEC8; }
.genre-card[data-genre="finance"] .genre-number { color: #A8D5BA; }
.genre-card[data-genre="fortune"] .genre-number { color: #D4A5A5; }
.genre-card[data-genre="love"] .genre-number { color: #FFB6C1; }
.genre-card[data-genre="career"] .genre-number { color: #B8A9C9; }
.genre-card[data-genre="gadget"] .genre-number { color: #87CEEB; }
.genre-card[data-genre="ai"] .genre-number { color: #FFA07A; }
.genre-card[data-genre="parenting"] .genre-number { color: #FBD8B0; }

/* ヒントセクション */
.tips {
    background-color: var(--bg-white);
    padding: 80px 0;
}

.tips-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tip-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.tip-card h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.tip-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* まとめセクション */
.conclusion {
    background: linear-gradient(135deg, #FFE8E3 0%, #FFF8F5 100%);
    padding: 80px 0;
}

.conclusion-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.conclusion-content p {
    font-size: 18px;
    line-height: 2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.conclusion-content strong {
    color: var(--primary-color);
    font-weight: 700;
}

.cta-button {
    margin-top: 40px;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(232, 160, 154, 0.3);
}

.btn-primary:hover {
    background-color: #D89088;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 160, 154, 0.4);
}

/* フッター */
footer {
    background-color: var(--text-primary);
    color: white;
    padding: 30px 0;
    text-align: center;
}

footer p {
    font-size: 14px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .genre-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .genre-card {
        padding: 25px;
    }
    
    .genre-number {
        font-size: 36px;
    }
    
    .genre-title {
        font-size: 20px;
    }
    
    .tips-content {
        grid-template-columns: 1fr;
    }
}

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

.genre-card {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.genre-card:nth-child(1) { animation-delay: 0.1s; }
.genre-card:nth-child(2) { animation-delay: 0.2s; }
.genre-card:nth-child(3) { animation-delay: 0.3s; }
.genre-card:nth-child(4) { animation-delay: 0.4s; }
.genre-card:nth-child(5) { animation-delay: 0.5s; }
.genre-card:nth-child(6) { animation-delay: 0.6s; }
.genre-card:nth-child(7) { animation-delay: 0.7s; }
.genre-card:nth-child(8) { animation-delay: 0.8s; }
.genre-card:nth-child(9) { animation-delay: 0.9s; }