/* ============================================================
   GW Tarot — TOPページセクション用スタイル
   すべて .gw-tarot-top 内にスコープ
   ============================================================ */

.gw-tarot-top {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 20px;
    background: #f8f7f4;
    border-radius: 12px;
    box-sizing: border-box;
}

/* ── タグ ── */
.gw-tarot-top__tag {
    display: inline-block;
    font-size: 11px;
    color: #fff;
    background: var(--theme-palette-color-2);
    border-radius: 20px;
    padding: 3px 12px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

/* ── メインエリア（カード + テキスト） ── */
.gw-tarot-top__main {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 18px;
}

/* ── カード裏面アート ── */
.gw-tarot-top__card-art {
    width: 100px;
    min-width: 100px;
    height: 150px;
    background: linear-gradient(135deg, #1a3a4a 0%, var(--theme-palette-color-2) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.gw-tarot-top__star {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    font-size: 16px;
}
.gw-tarot-top__star:nth-child(1) { top: 12px; left: 14px; }
.gw-tarot-top__star:nth-child(2) { top: 30px; right: 18px; }
.gw-tarot-top__star:nth-child(3) { bottom: 20px; left: 22px; }
.gw-tarot-top__star:nth-child(4) { bottom: 40px; right: 12px; }

.gw-tarot-top__q {
    color: rgba(255, 255, 255, 0.7);
    font-size: 28px;
    font-weight: 500;
    font-family: 'Sawarabi Mincho', serif;
}

/* ── テキストエリア ── */
.gw-tarot-top__text {
    flex: 1;
}

.gw-tarot-top__date {
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

.gw-tarot-top__title {
    font-size: 19px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    font-family: 'Sawarabi Mincho', serif;
    line-height: 1.4;
}

.gw-tarot-top__badge-free {
    display: inline-block;
    font-size: 10px;
    color: #854F0B;
    background: #FAEEDA;
    border-radius: 20px;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.gw-tarot-top__desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* ── カードを引くボタン ── */
.gw-tarot-top__btn-draw {
    display: inline-block;
    background: var(--theme-palette-color-2);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    margin-bottom: 0;
}
.gw-tarot-top__btn-draw:hover {
    opacity: 0.9;
    color: #fff;
    text-decoration: none;
}

/* ── 区切り線 ── */
.gw-tarot-top__sep {
    border: none;
    border-top: 1px solid #e5e3de;
    margin: 16px 0;
}

/* ── テーマから選ぶ ── */
.gw-tarot-top__cat-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.gw-tarot-top__cat-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.gw-tarot-top__cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e5e3de;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.gw-tarot-top__cat-btn:hover {
    border-color: var(--theme-palette-color-2);
    background: color-mix(in srgb, var(--theme-palette-color-2) 4%, transparent);
    color: #333;
    text-decoration: none;
}

.gw-tarot-top__cat-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.gw-tarot-top__cat-arrow {
    color: #999;
    font-size: 12px;
    margin-left: 2px;
}

.gw-tarot-top__all-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--theme-palette-color-2);
    text-decoration: none;
    padding: 9px 4px;
    cursor: pointer;
}
.gw-tarot-top__all-link:hover {
    text-decoration: underline;
    color: var(--theme-palette-color-2);
}

/* ── モバイル対応 ── */
@media (max-width: 480px) {
    .gw-tarot-top {
        padding: 20px 16px;
    }

    .gw-tarot-top__main {
        gap: 14px;
    }

    .gw-tarot-top__card-art {
        width: 80px;
        min-width: 80px;
        height: 120px;
    }

    .gw-tarot-top__title {
        font-size: 16px;
    }

    .gw-tarot-top__desc {
        font-size: 12px;
    }

    .gw-tarot-top__cat-row {
        gap: 6px;
    }

    .gw-tarot-top__cat-btn {
        padding: 8px 11px;
        font-size: 12px;
    }
}
