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

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: #333;
    background: #FFF9F0;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* ========================================
   ページ表示制御
======================================== */
.page {
    display: none;
    min-height: 100vh;
    padding: 40px 0;
}

.page.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

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

/* ========================================
   導入ページ
======================================== */
.intro-header {
    text-align: center;
    margin-bottom: 40px;
}

.main-title {
    font-size: 2.2rem;
    color: #8B4513;
    background: white;
    position: relative;
    font-weight: 900;
    letter-spacing: 0.05em;
}
.main-title img {
	width: 100%;
	height: auto;
}



.intro-content {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
    text-align: center;
    border: 2px solid #FFE4B5;
}

.intro-text {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #8B4513;
}

.intro-points {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #FFF5E6 0%, #FFE4B5 100%);
    border-radius: 15px;
    border-left: 5px solid #F5A623;
}

.intro-points p {
    margin: 15px 0;
    color: #666;
    font-size: 1.05rem;
}

.intro-description {
    font-size: 1.15rem;
    line-height: 2;
    margin: 35px 0;
    color: #555;
}

.intro-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 35px 0;
    padding: 25px;
    background: #FFF9E6;
    border-radius: 15px;
    border: 2px dashed #F5A623;
}

.intro-info p {
    font-weight: bold;
    color: #D2691E;
    font-size: 1.1rem;
}

.intro-note {
    margin-top: 25px;
    font-size: 0.95rem;
    color: #999;
}

/* ========================================
   ボタン
======================================== */
.btn-primary {
    background: linear-gradient(135deg, #F5A623 0%, #FF8C42 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 1.15rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
    letter-spacing: 0.05em;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.6);
    background: linear-gradient(135deg, #FF8C42 0%, #F5A623 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-large {
    padding: 22px 70px;
    font-size: 1.4rem;
    margin: 25px 0;
}

.btn-secondary {
    background: white;
    color: #F5A623;
    border: 3px solid #F5A623;
    padding: 15px 35px;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px 5px;
}

.btn-secondary:hover {
    background: #F5A623;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

/* ========================================
   プログレスバー
======================================== */
.progress-container {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #FFE4B5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid #F5DEB3;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #F5A623 0%, #FF8C42 100%);
    transition: width 0.5s ease;
    width: 0%;
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.5);
}

.progress-text {
    text-align: center;
    font-weight: bold;
    color: #D2691E;
    font-size: 1.2rem;
}

/* ========================================
   質問エリア
======================================== */
.question-container {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
    min-height: 450px;
    border: 2px solid #FFE4B5;
}

.question-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #8B4513;
}

.question-emoji {
    text-align: center;
    margin-bottom: 25px;
}

.question-emoji img {
	width: 100%;
	height: auto;
	max-width: 240px;
    object-fit: contain;
}

.question-text {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 35px;
    text-align: center;
    color: #8B4513;
    line-height: 1.8;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 35px;
}

.option-btn {
    background: white;
    border: 3px solid #FFE4B5;
    padding: 22px 25px;
    font-size: 1.1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: #555;
    font-weight: 500;
}

.option-btn:hover {
    border-color: #F5A623;
    background: #FFF9E6;
    transform: translateX(8px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.2);
}

.option-btn.selected {
    border-color: #F5A623;
    background: linear-gradient(135deg, #F5A623 0%, #FF8C42 100%);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.4);
    font-weight: bold;
}

/* ========================================
   ローディング画面
======================================== */
.loading-content {
    text-align: center;
    padding: 120px 20px;
}

.loading-title {
    font-size: 2.2rem;
    color: #8B4513;
    margin-bottom: 25px;
    font-weight: bold;
}

.loading-text {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 50px;
    line-height: 2;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #F5A623 0%, #FF8C42 100%);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
    box-shadow: 0 2px 8px rgba(245, 166, 35, 0.3);
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }
.dot:nth-child(4) { animation-delay: 0.16s; }
.dot:nth-child(5) { animation-delay: 0.32s; }
.dot:nth-child(6) { animation-delay: 0.48s; }
.dot:nth-child(7) { animation-delay: 0.64s; }

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.5);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ========================================
   結果ページ
======================================== */
.result-container {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(139, 69, 19, 0.1);
    border: 2px solid #FFE4B5;
}

.result-header {
    text-align: center;
    color: #F5A623;
    position: relative;
    overflow: hidden;
}

.result-label {
    font-size: 1.1rem;
    margin-bottom: 15px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.result-header img {
	width: 100%;
	height: auto;
	max-width: 240px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.result-type {
    font-size: 2.8rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    letter-spacing: 0.05em;
}

.result-section {
    margin: 35px 0;
    padding: 30px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF5E6 100%);
    border-radius: 15px;
    border-left: 6px solid #F5A623;
    box-shadow: 0 2px 10px rgba(139, 69, 19, 0.05);
}

.result-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #8B4513;
    font-weight: bold;
}

.result-section h2 {
    font-size: 1.6rem;
    color: #D2691E;
    margin: 20px 0;
    font-weight: bold;
}

.result-section p {
    line-height: 2;
    color: #555;
    margin: 12px 0;
    font-size: 1.05rem;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.checklist li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: #555;
    font-size: 1.05rem;
}

.checklist li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #F5A623;
    font-weight: bold;
    font-size: 1.3rem;
}

/* ========================================
   商品カード
======================================== */
.products-section {
    margin: 50px 0;
}

.products-section h2 {
    text-align: center;
    margin: 50px 0 20px;
    color: #8B4513;
    font-size: 2rem;
    font-weight: bold;
}

.products-section > p {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 1.1rem;
}

.product-card {
    background: white;
    border: 3px solid #FFE4B5;
    border-radius: 20px;
    padding: 30px;
    margin: 25px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(139, 69, 19, 0.05);
}

.product-card:hover {
    border-color: #F5A623;
    box-shadow: 0 8px 25px rgba(245, 166, 35, 0.2);
    transform: translateY(-5px);
}

.product-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.product-name {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 20px 0;
    color: #8B4513;
    line-height: 1.6;
}

.product-price {
    font-size: 1.8rem;
    color: #D2691E;
    font-weight: 900;
    margin: 15px 0;
}

.product-description {
    color: #666;
    line-height: 1.9;
    margin: 20px 0;
    font-size: 1.05rem;
}

.product-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #F5A623 0%, #FF8C42 100%);
    color: white;
    border: none;
    padding: 18px;
    font-size: 1.15rem;
    font-weight: bold;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.product-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
    background: linear-gradient(135deg, #FF8C42 0%, #F5A623 100%);
}

/* ========================================
   シェアボタン
======================================== */
.share-section {
    text-align: center;
    margin: 50px 0;
    padding: 40px;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF5E6 100%);
    border-radius: 20px;
    border: 2px solid #FFE4B5;
}

.share-section h3 {
    margin-bottom: 25px;
    color: #8B4513;
    font-size: 1.5rem;
    font-weight: bold;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.05rem;
}

.share-btn.twitter {
    background: #1DA1F2;
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.3);
}

.share-btn.line {
    background: #00B900;
    box-shadow: 0 4px 15px rgba(0, 185, 0, 0.3);
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   メール登録
======================================== */
.email-section {
    margin: 50px 0;
    padding: 40px;
    background: white;
    border: 3px solid #F5A623;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.1);
}

.email-section h3 {
    margin-bottom: 15px;
    color: #8B4513;
    font-size: 1.5rem;
    font-weight: bold;
}

.email-section p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.email-form {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.email-input {
    flex: 1;
    padding: 18px 20px;
    border: 3px solid #FFE4B5;
    border-radius: 12px;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.email-input:focus {
    outline: none;
    border-color: #F5A623;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.1);
}

.email-submit {
    background: linear-gradient(135deg, #F5A623 0%, #FF8C42 100%);
    color: white;
    border: none;
    padding: 18px 35px;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.3);
}

.email-submit:hover {
    background: linear-gradient(135deg, #FF8C42 0%, #F5A623 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.5);
}

/* ========================================
   注記
======================================== */
.disclaimer {
    margin-top: 50px;
    padding: 25px;
    background: #FFF3CD;
    border-left: 6px solid #FFC107;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #856404;
    line-height: 1.8;
}

/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-title {
        font-size: 1.6rem;
        padding: 25px 15px;
    }
    
    .intro-content {
        padding: 35px 25px;
    }
    
    .intro-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-large {
        padding: 20px 45px;
        font-size: 1.2rem;
    }
    
    .question-container {
        padding: 35px 25px;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .question-emoji img {
        width: 80px;
        height: 80px;
    }
    
    .option-btn {
        padding: 18px 20px;
        font-size: 1.05rem;
    }
    
    .result-type {
        font-size: 2.2rem;
    }
    
    .result-header img {
        width: 60px;
        height: 60px;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .product-card {
        padding: 25px 20px;
    }
    
    .result-section {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.4rem;
        padding: 20px 15px;
    }
    
    .question-emoji img {
        width: 70px;
        height: 70px;
    }
    
    .result-type {
        font-size: 1.9rem;
    }
    
    .result-header img {
        width: 50px;
        height: 50px;
    }
    
    .products-section h2 {
        font-size: 1.6rem;
    }
}
