/* ===================================
   テーマ一覧セクション専用スタイル
   =================================== */

/* テーマセクション全体 */
.themes-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 100px 0;
}

/* セクション見出し */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title-jp {
    font-family: 'Yusei Magic', sans-serif;
    font-size: 48px;
    color: var(--text-purple);
    margin: 0 0 12px 0;
}

.section-title-en {
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: #5a5fa0;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* サブセクション見出し */
.subsection-header {
    margin: 80px 0 40px 0;
}

.subsection-header:first-of-type {
    margin-top: 0;
}

.subsection-title {
    font-family: 'Yusei Magic', sans-serif;
    font-size: 32px;
    color: var(--text-purple);
    margin: 0 0 8px 0;
}

.subsection-subtitle {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: #5a5fa0;
    margin: 0;
}

/* テーマグリッド */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

/* テーマカード */
.theme-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.theme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* キーボードフォーカス時のスタイル */
.theme-card:focus {
    outline: 3px solid var(--text-purple);
    outline-offset: 4px;
}

.theme-card:focus:not(:focus-visible) {
    outline: none;
}

.theme-card:focus-visible {
    outline: 3px solid var(--text-purple);
    outline-offset: 4px;
}

/* テーマ画像 */
.theme-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.theme-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* バッジコンテナ */
.theme-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 8px;
}

/* OFFICIALバッジ */
.badge-official {
    background: var(--btn-green);
    color: #1e5343;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* テーマタイプバッジ */
.badge-type {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
}

/* カードコンテンツ */
.theme-content {
    padding: 24px;
}

.theme-name {
    font-family: 'Nunito', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--text-purple);
    margin: 0 0 8px 0;
}

.theme-description {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0 0 20px 0;
}

/* CTAボタン風スタイル */
.theme-cta {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

/* 公式テーマ（緑ボタン） */
.theme-card[href*="movaone"] .theme-cta,
.theme-card[href*="easychic"] .theme-cta,
.theme-card[href*="enyoi"] .theme-cta,
.theme-card[href*="mobiki"] .theme-cta {
    background: var(--btn-green);
    color: #1e5343;
}

/* 私的テーマ（青ボタン） */
.theme-card[href*="blanky"] .theme-cta,
.theme-card[href*="maihime"] .theme-cta,
.theme-card[href*="reborno"] .theme-cta {
    background: var(--btn-blue);
    color: #3e5a84;
}

/* カードボタン */
.theme-card .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .themes-section {
        padding: 60px 24px;
    }

    .section-title-jp {
        font-size: 36px;
    }

    .subsection-title {
        font-size: 28px;
    }

    .theme-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .subsection-header {
        margin: 60px 0 30px 0;
    }
}
