/* ========================================
   縁診断アプリ - スタイルシート
   ======================================== */

/* リセット・基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-wood: #4CAF50;
    --color-fire: #FF5722;
    --color-earth: #795548;
    --color-metal: #9E9E9E;
    --color-water: #2196F3;
    --color-primary: #6366F1;
    --color-text: #333;
    --color-bg: #FAFAFA;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
}

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

/* ヒーローセクション */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    margin-bottom: 40px;
}

.title {
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* コンテンツセクション */
.content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.about-en {
    margin-bottom: 40px;
    padding: 24px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    border-left: 4px solid var(--color-primary);
}

.about-en h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.about-en p {
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.8;
}

.intro {
    margin-bottom: 40px;
}

.intro h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-primary);
}

.intro p {
    margin-bottom: 16px;
    font-size: 1.05rem;
}

/* タイプグリッド */
.types-preview {
    margin-bottom: 40px;
}

.types-preview h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}

.type-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.type-card {
    flex: 0 1 180px;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: #f5f5f5;
}

.type-card.wood { border-top: 4px solid var(--color-wood); }
.type-card.fire { border-top: 4px solid var(--color-fire); }
.type-card.earth { border-top: 4px solid var(--color-earth); }
.type-card.metal { border-top: 4px solid var(--color-metal); }
.type-card.water { border-top: 4px solid var(--color-water); }

.type-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.type-card h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.type-card p {
    font-size: 0.9rem;
    color: #666;
}

/* CTA */
.cta {
    text-align: center;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 48px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.note {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #666;
}

/* フッター */
footer {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 0.9rem;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .content {
        padding: 24px;
    }

    .about-en {
        padding: 20px;
    }

    .type-card {
        flex: 0 1 calc(50% - 10px);
        min-width: 140px;
    }
}
