/* =================================
   基本設定
================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ご褒美コンセプトのカラーパレット */
    --reward-gold: #d4af37;
    --reward-pink: #ffb7d5;
    --reward-orange: #ffa07a;
    --primary-pink: #f4e4e2;
    --secondary-pink: #f9f0ef;
    --accent-pink: #e8d1cf;
    --warm-beige: #f5ebe8;
    --soft-brown: #c4a89d;
    --fresh-green: #a8d5a3;
    --text-primary: #4a4a4a;
    --text-secondary: #7a7a7a;
    --white: #ffffff;
    --shadow: rgba(196, 168, 157, 0.15);
    --shadow-hover: rgba(196, 168, 157, 0.25);
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #fff5f7 0%, #ffe4e9 50%, var(--warm-beige) 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

/* =================================
   ヘッダー
================================= */
.header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.title {
    font-family: 'Noto Serif JP', serif;
    font-size: 3.5rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--reward-gold) 0%, var(--reward-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px var(--shadow);
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 10px;
}

.description {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* =================================
   選択パネル
================================= */
.selection-panel {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 8px 30px var(--shadow);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.option-group {
    margin-bottom: 35px;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-title {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-left: 5px;
}

.button-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.day-group, .mood-group, .budget-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.option-btn {
    flex: 1;
    min-width: 140px;
    background: var(--secondary-pink);
    border: 3px solid transparent;
    border-radius: 20px;
    padding: 20px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: 'Noto Sans JP', sans-serif;
}

.option-btn:hover {
    background: var(--primary-pink);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.option-btn.active {
    background: linear-gradient(135deg, var(--reward-gold) 0%, var(--reward-orange) 100%);
    border-color: var(--reward-gold);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    color: white;
}

.option-btn.active .text,
.option-btn.active .budget-detail {
    color: white;
}

.icon-svg {
    display: block;
    transition: transform 0.3s ease;
}

.option-btn:hover .icon-svg {
    transform: scale(1.1);
}

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

.budget-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* =================================
   アクションセクション
================================= */
.action-section {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.generate-btn {
    background: linear-gradient(135deg, var(--reward-gold) 0%, var(--reward-orange) 100%);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 22px 50px;
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: 'Noto Sans JP', sans-serif;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.6);
}

.generate-btn:active:not(:disabled) {
    transform: translateY(-1px) scale(1.02);
}

.generate-btn:disabled {
    background: linear-gradient(135deg, #d4d4d4 0%, #b8b8b8 100%);
    cursor: not-allowed;
    opacity: 0.6;
}

.generate-btn .btn-icon {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.hint-text {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =================================
   結果表示エリア
================================= */
.result-section {
    opacity: 1;
    transition: all 0.5s ease;
}

.result-section.hidden {
    display: none;
    opacity: 0;
}

.result-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 45px;
    box-shadow: 0 12px 40px var(--shadow-hover);
    backdrop-filter: blur(10px);
    border: 3px solid var(--reward-gold);
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.result-category {
    background: linear-gradient(135deg, var(--reward-gold) 0%, var(--reward-orange) 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.result-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--reward-gold) 0%, var(--reward-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.3;
}

.result-description {
    font-size: 1.15rem;
    color: var(--text-primary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.result-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.meta-tag {
    background: var(--secondary-pink);
    color: var(--text-primary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 400;
}

.regenerate-btn {
    background: var(--primary-pink);
    color: var(--reward-gold);
    border: 2px solid var(--reward-gold);
    border-radius: 50px;
    padding: 14px 30px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Noto Sans JP', sans-serif;
}

.regenerate-btn:hover {
    background: linear-gradient(135deg, var(--reward-gold) 0%, var(--reward-orange) 100%);
    color: var(--white);
    border-color: var(--reward-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.regenerate-icon {
    font-size: 1.2rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.regenerate-btn:hover .regenerate-icon {
    transform: rotate(180deg);
}

/* =================================
   フッター
================================= */
.footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid var(--accent-pink);
    color: var(--text-secondary);
    font-size: 1rem;
    animation: fadeIn 1s ease-out 0.6s backwards;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* =================================
   レスポンシブ対応
================================= */
@media (max-width: 768px) {
    .container {
        padding: 30px 15px;
    }

    .title {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .selection-panel {
        padding: 30px 25px;
    }

    .option-title {
        font-size: 1.1rem;
    }

    .button-group {
        flex-direction: column;
    }

    .day-group, .mood-group, .budget-group {
        grid-template-columns: 1fr;
    }

    .option-btn {
        min-width: 100%;
    }

    .generate-btn {
        font-size: 1.1rem;
        padding: 18px 35px;
    }

    .result-card {
        padding: 35px 25px;
    }

    .result-title {
        font-size: 2rem;
    }

    .result-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }

    .selection-panel {
        padding: 25px 20px;
    }

    .result-title {
        font-size: 1.7rem;
    }

    .result-meta {
        flex-direction: column;
    }
}
