@charset "UTF-8";
/* CSS Document */

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

        body {
            font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
            background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 50%, #fce4b6 100%);
            min-height: 100vh;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }

        /* 和風の背景パターン */
        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 70%, rgba(255, 182, 193, 0.05) 0%, transparent 50%);
            pointer-events: none;
        }

        .container {
            max-width: 600px;
            margin: 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 40px rgba(139, 69, 19, 0.15);
            overflow: hidden;
            position: relative;
            border: 3px solid #d4a574;
        }

        .header {
            background: linear-gradient(135deg, #c94b4b 0%, #d86a6a 50%, #e08989 100%);
            padding: 30px 20px;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
        }

.header h1 img {
    width: 100%;
    height: auto;
}
        /* 和風の装飾 */
        .header::before,
        .header::after {
            content: "";
            position: absolute;
            width: 60px;
            height: 60px;
            background-image: url('../images/sakura.png');
            background-size: contain;
            background-repeat: no-repeat;
            opacity: 0.2;
        }

        .header::before {
            top: -10px;
            left: -10px;
        }

        .header::after {
            bottom: -10px;
            right: -10px;
        }

        .header-icon {
            width: 50px;
            height: 50px;
            display: inline-block;
            vertical-align: middle;
            margin: 0 10px;
        }

        .header h1 {
            font-size: 24px;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .header p {
            font-size: 14px;
            opacity: 0.95;
            position: relative;
            z-index: 1;
        }

        .content {
            padding: 30px 20px;
            position: relative;
        }

        /* ===== スタート画面 ===== */
        .start-screen {
            text-align: center;
        }

        .start-screen h2 {
            font-size: 22px;
            color: #8b4513;
            margin-bottom: 20px;
        }

        /* 豆が動くアニメーション */
        .beans-animation {
            position: relative;
            height: 150px;
            margin: 30px 0;
            overflow: hidden;
        }

        .bean {
            position: absolute;
            width: 40px;
            height: 40px;
            animation: float 3s ease-in-out infinite;
        }

        .bean img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .bean:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 3s; }
        .bean:nth-child(2) { left: 30%; animation-delay: 0.5s; animation-duration: 3.5s; }
        .bean:nth-child(3) { left: 50%; animation-delay: 1s; animation-duration: 4s; }
        .bean:nth-child(4) { left: 70%; animation-delay: 1.5s; animation-duration: 3.2s; }
        .bean:nth-child(5) { left: 90%; animation-delay: 2s; animation-duration: 3.8s; }

        @keyframes float {
            0%, 100% {
                transform: translateY(0px) rotate(0deg);
            }
            25% {
                transform: translateY(-30px) rotate(10deg);
            }
            50% {
                transform: translateY(-50px) rotate(-10deg);
            }
            75% {
                transform: translateY(-30px) rotate(5deg);
            }
        }

        .start-screen .description {
            background: linear-gradient(135deg, #fff8e7 0%, #ffeaa7 100%);
            padding: 20px;
            border-radius: 15px;
            margin-bottom: 25px;
            text-align: left;
            border: 2px solid #d4a574;
            box-shadow: 0 4px 10px rgba(139, 69, 19, 0.1);
        }

        .start-screen .description h3 {
            font-size: 16px;
            color: #c94b4b;
            margin-bottom: 10px;
        }

        .start-screen .description ul {
            list-style: none;
            padding-left: 0;
        }

        .start-screen .description li {
            padding: 8px 0 8px 35px;
            border-bottom: 1px dashed #d4a574;
            position: relative;
        }

        .start-screen .description li:last-child {
            border-bottom: none;
        }

        .start-screen .description li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 8px;
            width: 25px;
            height: 25px;
            background-image: url('../images/bean-small.png');
            background-size: contain;
            background-repeat: no-repeat;
        }

        .btn {
            display: inline-block;
            padding: 15px 40px;
            background: linear-gradient(135deg, #c94b4b 0%, #d86a6a 100%);
            color: white;
            text-decoration: none;
            border-radius: 50px;
            font-size: 18px;
            font-weight: bold;
            border: 3px solid #8b4513;
            cursor: pointer;
            transition: transform 0.3s, box-shadow 0.3s;
            box-shadow: 0 5px 15px rgba(201, 75, 75, 0.3);
        }

        .btn:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 7px 20px rgba(201, 75, 75, 0.4);
        }

        /* ===== 質問画面 ===== */
        .question-screen {
            display: none;
        }

        .progress-bar {
            background: #f0e5d8;
            height: 8px;
            border-radius: 10px;
            margin-bottom: 20px;
            overflow: hidden;
            border: 2px solid #d4a574;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, #c94b4b 0%, #d86a6a 100%);
            transition: width 0.3s;
        }

        /* 豆のプログレス表示 */
        .bean-progress {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 30px;
            padding: 20px 0;
        }

        .progress-bean {
            width: 45px;
            height: 45px;
            transition: all 0.5s ease;
            filter: grayscale(100%) brightness(1.5);
            opacity: 0.3;
            transform: scale(0.9);
        }

        .progress-bean img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .progress-bean.completed {
            filter: grayscale(0%) brightness(1);
            opacity: 1;
            transform: scale(1.2);
            animation: beanPop 0.5s ease;
        }

        @keyframes beanPop {
            0% { transform: scale(0.9); }
            50% { transform: scale(1.4) rotate(15deg); }
            100% { transform: scale(1.2) rotate(0deg); }
        }

        .question-number {
            color: #c94b4b;
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 10px;
            text-align: center;
        }

        .question-text {
            font-size: 20px;
            color: #8b4513;
            margin-bottom: 25px;
            font-weight: bold;
            text-align: center;
            padding: 0 10px;
        }

        .options {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .option-btn {
            padding: 18px 20px 18px 55px;
            background: linear-gradient(135deg, #ffffff 0%, #fef9f0 100%);
            border: 2px solid #d4a574;
            border-radius: 12px;
            text-align: left;
            cursor: pointer;
            transition: all 0.3s;
            font-size: 16px;
            color: #333;
            position: relative;
            overflow: hidden;
        }

        .option-btn::before {
            content: "";
            position: absolute;
            left: 15px;
            top: 50%;
            transform: translateY(-50%);
            width: 30px;
            height: 30px;
            background-image: url('../images/bean-small.png');
            background-size: contain;
            background-repeat: no-repeat;
        }

        .option-btn:hover {
            background: linear-gradient(135deg, #fff8e7 0%, #ffeaa7 100%);
            border-color: #c94b4b;
            transform: translateX(5px);
            box-shadow: 0 4px 10px rgba(201, 75, 75, 0.2);
        }

        /* ===== 結果画面 ===== */
        .result-screen {
            display: none;
            text-align: center;
        }

        .result-title {
            font-size: 28px;
            color: #c94b4b;
            margin-bottom: 20px;
            font-weight: bold;
        }

        .result-description {
            background: linear-gradient(135deg, #fff8e7 0%, #ffeaa7 100%);
            padding: 25px;
            border-radius: 15px;
            margin-bottom: 25px;
            text-align: left;
            border: 2px solid #d4a574;
        }

        .result-description p {
            line-height: 1.8;
            color: #555;
            margin-bottom: 15px;
        }

        .result-keywords {
            background: white;
            padding: 15px;
            border-radius: 10px;
            margin: 15px 0;
            border: 2px solid #d4a574;
        }

        .result-keywords h4 {
            font-size: 14px;
            color: #c94b4b;
            margin-bottom: 10px;
        }

        .result-keywords p {
            font-size: 15px;
            color: #333;
        }

        .coupon-box {
            background: linear-gradient(135deg, #fff3cd 0%, #ffe4b3 100%);
            padding: 20px;
            border-radius: 15px;
            margin: 25px 0;
            border: 3px dashed #c94b4b;
            position: relative;
        }

        .coupon-box::before,
        .coupon-box::after {
            content: "";
            position: absolute;
            width: 40px;
            height: 40px;
            background-image: url('../images/bean-small.png');
            background-size: contain;
            background-repeat: no-repeat;
        }

        .coupon-box::before {
            top: 10px;
            left: 10px;
        }

        .coupon-box::after {
            bottom: 10px;
            right: 10px;
        }

        .coupon-icon {
            width: 40px;
            height: 40px;
            display: inline-block;
            vertical-align: middle;
            margin: 0 5px;
        }

        .coupon-box h3 {
            color: #c94b4b;
            font-size: 18px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .coupon-code {
            background: white;
            padding: 15px;
            border-radius: 8px;
            font-size: 24px;
            font-weight: bold;
            color: #c94b4b;
            letter-spacing: 2px;
            margin: 10px 0;
            border: 2px solid #d4a574;
        }

        .coupon-note {
            font-size: 12px;
            color: #666;
        }

        .recommended-products {
            background: linear-gradient(135deg, #fef5e7 0%, #fdebd0 100%);
            padding: 20px;
            border-radius: 15px;
            margin: 25px 0;
            text-align: left;
            border: 2px solid #d4a574;
        }

        .recommended-products h3 {
            color: #c94b4b;
            font-size: 18px;
            margin-bottom: 15px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .product-icon {
            width: 50px;
            height: 50px;
            display: inline-block;
            border-radius: 8px;
            object-fit: cover;
            border: 2px solid #d4a574;
        }

        .product-item {
            background: white;
            padding: 15px;
            border-radius: 10px;
            margin-bottom: 12px;
            border: 2px solid #d4a574;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .product-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 10px rgba(139, 69, 19, 0.15);
        }

        .product-info {
            flex: 1;
        }

        .product-item h4 {
            color: #8b4513;
            font-size: 16px;
            margin-bottom: 5px;
            font-weight: bold;
        }

        .product-item p {
            font-size: 14px;
            color: #c94b4b;
            margin: 3px 0;
            font-weight: bold;
        }

        .product-link {
            display: inline-block;
            margin-top: 8px;
            padding: 8px 16px;
            background: linear-gradient(135deg, #c94b4b 0%, #d86a6a 100%);
            color: white;
            text-decoration: none;
            border-radius: 20px;
            font-size: 13px;
            font-weight: bold;
            transition: all 0.3s;
            white-space: nowrap;
        }

        .product-link:hover {
            background: linear-gradient(135deg, #b03a3a 0%, #c94b4b 100%);
            transform: scale(1.05);
        }

        .share-buttons {
            display: flex;
            gap: 10px;
            justify-content: center;
            margin: 25px 0;
            flex-wrap: wrap;
        }

        .share-btn {
            padding: 12px 25px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: bold;
            transition: transform 0.2s;
        }

        .share-btn:hover {
            transform: scale(1.05);
        }

        .share-btn.instagram {
            background: #E4405F;
            color: white;
        }

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

        .share-btn.line {
            background: #06C755;
            color: white;
        }

        .retry-btn {
            background: linear-gradient(135deg, #8b7355 0%, #a68a6a 100%);
            color: white;
            padding: 12px 30px;
            border-radius: 50px;
            border: 2px solid #6d5a44;
            cursor: pointer;
            font-size: 16px;
            margin-top: 15px;
            transition: all 0.3s;
        }

        .retry-btn:hover {
            background: linear-gradient(135deg, #6d5a44 0%, #8b7355 100%);
            transform: scale(1.05);
        }

        .percentage {
            color: #8b7355;
            font-size: 14px;
            margin-top: 15px;
            font-weight: bold;
        }

        @media (max-width: 480px) {
            .header h1 {
                font-size: 20px;
            }

            .header-icon {
                width: 40px;
                height: 40px;
            }
            
            .question-text {
                font-size: 18px;
            }
            
            .result-title {
                font-size: 24px;
            }

            .progress-bean {
                width: 35px;
                height: 35px;
            }

            .bean-progress {
                gap: 10px;
            }

            .product-item {
                flex-direction: column;
                text-align: center;
            }

            .product-icon {
                width: 80px;
                height: 80px;
            }
        }
.shop-btn {
    background: linear-gradient(135deg, #c94b4b 0%, #d86a6a 100%);
    color: #ffffff;
    text-align: center;
    width: 100%;
    display: block;
    text-decoration: none;
    border-radius: 100px;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
}