/* 月一覧ページのスタイル */
.months-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.months-title {
    text-align: center;
    color: var(--text-primary);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.months-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* 月のグリッドレイアウト */
.months-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

/* 月のカード */
.month-card {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.month-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.month-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* 月のヘッダー */
.month-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color-dark));
    color: white;
    padding: 1.25rem;
    text-align: center;
}

.month-number {
    font-size: 2rem;
    font-weight: bold;
    margin: 0 0 0.25rem 0;
}

.month-name {
    font-size: 1.1rem;
    font-weight: 400;
    margin: 0;
    opacity: 0.95;
}

/* 月の概念データ */
.month-concepts {
    padding: 1rem;
}

.concept-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.concept-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.concept-name {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.concept-preview {
    display: block;
    padding-left: 1rem;;
}

.concept-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .months-container {
        padding: 1rem 0.75rem;
    }

    .months-title {
        font-size: 1.75rem;
    }

    .months-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .month-header {
        padding: 1rem;
    }

    .month-number {
        font-size: 1.5rem;
    }

    .month-name {
        font-size: 1rem;
    }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
    .month-card {
        background: var(--card-bg-dark);
    }

    .month-header {
        background: linear-gradient(135deg, var(--primary-color-dark), var(--primary-color-darker));
    }
}

/* 特定の誕生属性タイプに応じた色分け */
.concept-item[data-type="birthstone"] .concept-name {
    color: #9b59b6;
}

.concept-item[data-type="zodiac-sign"] .concept-name {
    color: #3498db;
}

.concept-item[data-type="birth-monster"] .concept-name {
    color: #e74c3c;
}

.concept-item[data-type="birth-tea"] .concept-name {
    color: #27ae60;
}

.concept-item[data-type="birth-coffee"] .concept-name {
    color: #8b4513;
}

.concept-item[data-type="birth-algorithm"] .concept-name {
    color: #34495e;
}