:root {
    /* フルーティス公式に合わせたカラー */
    --color-primary: #E85298;
    --color-primary-light: #FFF0F5;
    --color-primary-dark: #D84190;

    /* グラデーション */
    --gradient-pink: linear-gradient(180deg, #FFF5F8 0%, #FFE8F0 50%, #FFF0F5 100%);
    --gradient-header: linear-gradient(135deg, #E85298 0%, #F06CA9 100%);

    /* アクセントカラー（フルーツ系） */
    --color-strawberry: #E85298;
    --color-grape: #9C6ADE;
    --color-peach: #FFB5C5;
    --color-muscat: #A8D86E;

    /* テキスト */
    --color-text-main: #4A4A4A;
    --color-text-sub: #777;
    --color-text-light: #AAA;

    /* 背景 */
    --color-bg: #FFF8FA;
    --color-bg-card: #FFFFFF;

    /* フォント */
    --font-main: 'M PLUS Rounded 1c', 'Noto Sans JP', 'Hiragino Sans', sans-serif;

    /* 角丸 */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background: var(--gradient-pink);
    color: var(--color-text-main);
    line-height: 1.7;
    min-height: 100vh;
}

/* ========================================
   Container
======================================== */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    background: transparent;
    min-height: 100vh;
}

/* ========================================
   Header
======================================== */
.site-header {
    padding: 14px 20px;
    text-align: center;
    background: var(--gradient-header);
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 20px rgba(232, 82, 152, 0.2);
}

.logo {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.05em;
}

.logo-icon-svg {
    width: 22px;
    height: 22px;
}

/* ========================================
   Screen
======================================== */
main {
    position: relative;
}

.screen {
    width: 100%;
    min-height: calc(100vh - 56px);
    padding: 32px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease;
}

.screen.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.hidden {
    display: none !important;
}

/* ========================================
   Start Screen
======================================== */
#start-screen {
    justify-content: flex-start;
    text-align: center;
    padding: 16px 0 0 0;
}

/* ヒーローバナー（フル幅） */
.hero-banner {
    width: 100%;
    padding: 0 16px;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

/* スタート画面コンテンツ */
.start-content {
    padding: 32px 24px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.main-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.6;
    color: var(--color-text-main);
}

.subtitle {
    font-size: 0.9rem;
    color: var(--color-primary);
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.title-highlight {
    color: var(--color-primary);
}

/* キャンペーン賞品ボックス */
.campaign-prize-box {
    background: linear-gradient(135deg, #FFF5F8, #FFE8F0);
    border: 2px solid rgba(232, 82, 152, 0.25);
    border-radius: var(--radius-md);
    padding: 16px 24px;
    margin: 4px 0 20px;
    width: 100%;
    max-width: 320px;
}

.prize-label {
    font-size: 0.75rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.prize-product {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    margin-bottom: 4px;
}

.prize-winners {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.prize-winners strong {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.description {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    margin-bottom: 28px;
    line-height: 1.9;
}

.description strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* ========================================
   Buttons
======================================== */
.btn {
    width: 100%;
    max-width: 280px;
    padding: 18px 28px;
    border-radius: var(--radius-full);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-arrow-svg {
    width: 18px;
    height: 18px;
    margin-left: 4px;
}

.btn-icon-svg {
    width: 18px;
    height: 18px;
}

.primary-btn {
    background: var(--gradient-header);
    color: white;
    box-shadow: 0 4px 16px rgba(232, 82, 152, 0.35);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(232, 82, 152, 0.45);
}

.start-note {
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.retry-btn {
    background: white;
    color: var(--color-text-main);
    border: 2px solid #eee;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.retry-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-primary-light);
}

.back-btn {
    background: transparent;
    color: var(--color-text-sub);
    border: none;
    font-size: 0.9rem;
    padding: 14px 20px;
    margin-top: 20px;
}

.back-btn:hover {
    color: var(--color-primary);
}

/* ========================================
   Question Screen
======================================== */
#question-screen {
    padding-top: 70px;
}

.progress-bar-container {
    width: calc(100% - 40px);
    height: 8px;
    background: rgba(232, 82, 152, 0.15);
    position: absolute;
    top: 20px;
    left: 20px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-header);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: var(--radius-full);
}

.question-number {
    font-size: 0.9rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 16px;
    background: white;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(232, 82, 152, 0.1);
}

.question-text {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 28px;
    padding: 24px 20px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 16px rgba(232, 82, 152, 0.1);
    color: var(--color-text-main);
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    max-width: 360px;
}

.option-btn {
    background: white;
    border: 2px solid rgba(232, 82, 152, 0.2);
    padding: 20px 18px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1rem;
    color: var(--color-text-main);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.option-btn:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 82, 152, 0.15);
}

/* ========================================
   Loading Screen
======================================== */
#loading-screen {
    justify-content: center;
}

.loading-content {
    text-align: center;
    background: white;
    padding: 48px 32px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(232, 82, 152, 0.1);
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(232, 82, 152, 0.2);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.05rem;
    color: var(--color-text-sub);
    line-height: 1.8;
}

.loading-text strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* ========================================
   Result Screen
======================================== */
#result-screen {
    padding-top: 24px;
}

.result-wrapper {
    width: 100%;
    max-width: 400px;
}

.result-header {
    text-align: center;
    margin-bottom: 24px;
    background: white;
    padding: 28px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(232, 82, 152, 0.1);
}

.result-label {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.result-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0;
    line-height: 1.5;
    /* No.34: 2行になる場合の改行を綺麗に */
    word-break: keep-all;
    overflow-wrap: break-word;
    text-align: center;
    max-width: 100%;
}

.result-tags {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ========================================
   Recommendation Card
======================================== */
.recommendation-card {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.rec-image-container {
    width: 100%;
    background: linear-gradient(180deg, #FFF8FA 0%, #FFE8F0 100%);
}

.rec-image-container a {
    display: block;
    width: 100%;
    height: 240px;
}

.rec-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    -webkit-touch-callout: default;
    -webkit-user-select: auto;
    user-select: auto;
    pointer-events: auto;
}

.image-save-hint {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-align: center;
    padding: 10px 0;
    background: rgba(232, 82, 152, 0.05);
}

.rec-content {
    padding: 24px;
}

.rec-label {
    font-size: 0.7rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 0.1em;
}

.rec-product-name {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--color-text-main);
}

/* 商品ボトル */
.product-bottle-section {
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.bottle-label {
    font-size: 0.75rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.bottle-display {
    display: flex;
    align-items: center;
    gap: 14px;
}

.product-bottle-image {
    width: 65px;
    height: auto;
    object-fit: contain;
}

.product-bottle-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.product-info {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-flavor,
.product-style {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.recipe-box {
    background: #FFF8FA;
    border-left: 4px solid var(--color-primary);
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.recipe-title {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-primary);
}

.recipe-text {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    white-space: pre-line;
    line-height: 1.8;
}

.rec-desc {
    font-size: 0.95rem;
    color: var(--color-text-sub);
    line-height: 1.8;
}

/* ========================================
   SNS Share Section
======================================== */
.share-section {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(232, 82, 152, 0.08);
    border: 2px solid var(--color-primary-light);
}

.share-section .section-title {
    text-align: center;
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.share-description {
    font-size: 0.9rem;
    color: var(--color-text-sub);
    margin-bottom: 20px;
    text-align: center;
}

.sns-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.sns-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.sns-icon {
    font-size: 1.2rem;
}

.x-btn {
    background: #000;
    color: white;
}

.x-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.ig-btn {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
    color: white;
}

.ig-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(131, 58, 180, 0.3);
}

.tt-btn {
    background: #000;
    color: white;
}

.tt-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hashtag-info {
    font-size: 0.85rem;
    color: var(--color-text-sub);
    text-align: center;
}

.hashtag-info strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* ========================================
   Main Links Section
======================================== */
.main-links-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--color-text-main);
}

.main-links-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.main-link-card {
    display: flex;
    align-items: center;
    background: white;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.main-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 82, 152, 0.12);
}

.link-arrow-svg {
    color: var(--color-text-light);
    flex-shrink: 0;
}

.main-link-card:hover .link-arrow-svg {
    color: var(--color-primary);
}

.link-content {
    flex: 1;
}

.link-title {
    display: block;
    font-weight: 700;
    color: var(--color-text-main);
    font-size: 0.95rem;
}

.link-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

/* ========================================
   Action Buttons
======================================== */
.action-buttons {
    margin-bottom: 32px;
}

/* ========================================
   Footer
======================================== */
footer {
    text-align: center;
    padding: 24px 20px;
    background: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: 20px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

footer small {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 480px) {
    .main-title {
        font-size: 1.3rem;
    }

    .question-text {
        font-size: 1.15rem;
        padding: 20px 16px;
    }

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

    .rec-product-name {
        font-size: 1.15rem;
    }
}
