/* YES/NO診断 フロントスタイル */

.yesno-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.yesno-title {
    text-align: center;
    font-size: 24px;
    margin: 0 0 25px;
    color: #333;
}

/* スタート画面 */
.yesno-start {
    text-align: center;
    margin-bottom: 30px;
}

.start-image {
    margin-bottom: 20px;
}

.start-image img {
    max-width: 100%;
    max-height: 250px;
    border-radius: 10px;
}

.start-description {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: left;
    background: #f8f9ff;
    padding: 20px;
    border-radius: 10px;
}

/* 質問一覧 */
.yesno-questions {
    margin-bottom: 30px;
}

.yesno-question-item {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.yesno-question-item.answered {
    border-color: #667eea;
    background: #f8f9ff;
}

.question-text {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.question-number {
    background: #667eea;
    color: #fff;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* 回答オプション */
.answer-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.answer-option {
    flex: 1;
    min-width: 100px;
}

.answer-option input[type="radio"] {
    display: none;
}

.option-label {
    display: block;
    text-align: center;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    background: #fff;
}

.option-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.answer-option input[type="radio"]:checked + .option-label {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

/* 診断ボタン */
.yesno-submit-area {
    text-align: center;
    margin-top: 30px;
}

.yesno-submit-btn {
    display: inline-block;
    padding: 18px 50px;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.yesno-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.yesno-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.submit-note {
    margin-top: 10px;
    font-size: 13px;
    color: #999;
}

/* 結果画面 */
.yesno-result {
    text-align: center;
}

.result-loading {
    padding: 50px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.result-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.result-title {
    font-size: 28px;
    color: #667eea;
    margin: 0 0 20px;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
    border-radius: 10px;
}

.yesno-result-image {
    margin: 25px auto !important;
    text-align: center !important;
}

.yesno-result-image img {
    width: 100% !important;
    max-width: 450px !important;
    height: auto !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
    display: block !important;
    margin: 0 auto !important;
}

.result-description {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: left;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

/* スコアバー */
.result-chart-container {
    max-width: 100%;
    margin: 20px auto 30px;
    padding: 20px 15px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.score-bar-wrapper {
    margin-bottom: 10px;
}

.score-bar-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.score-bar-label {
    color: #333;
    font-weight: bold;
}

.score-bar-value {
    color: #667eea;
    font-weight: bold;
}

.score-bar-track {
    position: relative;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.score-bar-track::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(90deg, 
        transparent 0%, transparent 19.8%, rgba(255,255,255,0.5) 19.8%, rgba(255,255,255,0.5) 20.2%,
        transparent 20.2%, transparent 39.8%, rgba(255,255,255,0.5) 39.8%, rgba(255,255,255,0.5) 40.2%,
        transparent 40.2%, transparent 59.8%, rgba(255,255,255,0.5) 59.8%, rgba(255,255,255,0.5) 60.2%,
        transparent 60.2%, transparent 79.8%, rgba(255,255,255,0.5) 79.8%, rgba(255,255,255,0.5) 80.2%,
        transparent 80.2%, transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

.score-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: width 0.6s ease;
}

/* シェアボタン */
.share-label {
    font-size: 14px;
    color: #666;
    margin: 30px 0 15px;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 25px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.share-twitter {
    background: #000;
}

.share-line {
    background: #06c755;
}

.share-facebook {
    background: #1877f2;
}

.share-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    color: #fff;
}

/* リトライボタン */
.yesno-retry {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    color: #667eea;
    background: #fff;
    border: 2px solid #667eea;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.yesno-retry:hover {
    background: #667eea;
    color: #fff;
}

/* ============================================
   カラーテーマ
   ============================================ */

/* ロマンティック（ピンク） */
.yesno-theme-romantic .question-number {
    background: #e84393;
}
.yesno-theme-romantic .yesno-question-item.answered {
    border-color: #e84393;
    background: #fff5f8;
}
.yesno-theme-romantic .option-label:hover {
    border-color: #e84393;
    background: #fff5f8;
}
.yesno-theme-romantic .answer-option input[type="radio"]:checked + .option-label {
    background: #e84393;
    border-color: #e84393;
}
.yesno-theme-romantic .yesno-submit-btn {
    background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%);
    box-shadow: 0 4px 15px rgba(232, 67, 147, 0.4);
}
.yesno-theme-romantic .result-title {
    color: #e84393;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe3ec 100%);
}
.yesno-theme-romantic .score-bar-fill {
    background: linear-gradient(90deg, #e84393 0%, #fd79a8 100%);
}
.yesno-theme-romantic .score-bar-value {
    color: #e84393;
}
.yesno-theme-romantic .yesno-retry {
    border-color: #e84393;
    color: #e84393;
}
.yesno-theme-romantic .yesno-retry:hover {
    background: #e84393;
    color: #fff;
}

/* ビジネス（ネイビー×ゴールド） */
.yesno-theme-business .question-number {
    background: #2c3e50;
}
.yesno-theme-business .yesno-question-item.answered {
    border-color: #2c3e50;
    background: #f8f9fa;
}
.yesno-theme-business .option-label:hover {
    border-color: #2c3e50;
    background: #f8f9fa;
}
.yesno-theme-business .answer-option input[type="radio"]:checked + .option-label {
    background: #2c3e50;
    border-color: #2c3e50;
}
.yesno-theme-business .yesno-submit-btn {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.4);
}
.yesno-theme-business .result-title {
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef0f2 100%);
    border-left: 4px solid #c9a227;
}
.yesno-theme-business .score-bar-fill {
    background: linear-gradient(90deg, #2c3e50 0%, #c9a227 100%);
}
.yesno-theme-business .score-bar-value {
    color: #c9a227;
}
.yesno-theme-business .yesno-retry {
    border-color: #2c3e50;
    color: #2c3e50;
}
.yesno-theme-business .yesno-retry:hover {
    background: #2c3e50;
    color: #fff;
}

/* シンプル（モノトーン） */
.yesno-theme-simple .question-number {
    background: #333;
}
.yesno-theme-simple .yesno-question-item.answered {
    border-color: #333;
    background: #f5f5f5;
}
.yesno-theme-simple .option-label:hover {
    border-color: #333;
    background: #f5f5f5;
}
.yesno-theme-simple .answer-option input[type="radio"]:checked + .option-label {
    background: #333;
    border-color: #333;
}
.yesno-theme-simple .yesno-submit-btn {
    background: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.yesno-theme-simple .result-title {
    color: #333;
    background: #f5f5f5;
}
.yesno-theme-simple .score-bar-fill {
    background: linear-gradient(90deg, #333 0%, #666 100%);
}
.yesno-theme-simple .score-bar-value {
    color: #333;
}
.yesno-theme-simple .yesno-retry {
    border-color: #333;
    color: #333;
}
.yesno-theme-simple .yesno-retry:hover {
    background: #333;
    color: #fff;
}

/* パステル（柔らかめ） */
.yesno-theme-pastel .question-number {
    background: #a29bfe;
}
.yesno-theme-pastel .yesno-question-item.answered {
    border-color: #a29bfe;
    background: #f8f7ff;
}
.yesno-theme-pastel .option-label:hover {
    border-color: #a29bfe;
    background: #f8f7ff;
}
.yesno-theme-pastel .answer-option input[type="radio"]:checked + .option-label {
    background: #a29bfe;
    border-color: #a29bfe;
}
.yesno-theme-pastel .yesno-submit-btn {
    background: linear-gradient(135deg, #a29bfe 0%, #74b9ff 100%);
    box-shadow: 0 4px 15px rgba(162, 155, 254, 0.4);
}
.yesno-theme-pastel .result-title {
    color: #6c5ce7;
    background: linear-gradient(135deg, #f8f7ff 0%, #f0efff 100%);
}
.yesno-theme-pastel .score-bar-fill {
    background: linear-gradient(90deg, #a29bfe 0%, #74b9ff 100%);
}
.yesno-theme-pastel .score-bar-value {
    color: #6c5ce7;
}
.yesno-theme-pastel .yesno-retry {
    border-color: #a29bfe;
    color: #6c5ce7;
}
.yesno-theme-pastel .yesno-retry:hover {
    background: #a29bfe;
    color: #fff;
}

/* ナチュラル（緑×ベージュ） */
.yesno-theme-natural .question-number {
    background: #27ae60;
}
.yesno-theme-natural .yesno-question-item.answered {
    border-color: #27ae60;
    background: #f5faf7;
}
.yesno-theme-natural .option-label:hover {
    border-color: #27ae60;
    background: #f5faf7;
}
.yesno-theme-natural .answer-option input[type="radio"]:checked + .option-label {
    background: #27ae60;
    border-color: #27ae60;
}
.yesno-theme-natural .yesno-submit-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}
.yesno-theme-natural .result-title {
    color: #27ae60;
    background: linear-gradient(135deg, #f5faf7 0%, #e8f5ec 100%);
}
.yesno-theme-natural .score-bar-fill {
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
}
.yesno-theme-natural .score-bar-value {
    color: #27ae60;
}
.yesno-theme-natural .yesno-retry {
    border-color: #27ae60;
    color: #27ae60;
}
.yesno-theme-natural .yesno-retry:hover {
    background: #27ae60;
    color: #fff;
}

/* レスポンシブ */
@media (max-width: 600px) {
    .yesno-container {
        margin: 20px 15px;
        padding: 20px 15px;
    }
    
    .yesno-title {
        font-size: 20px;
    }
    
    .question-text {
        font-size: 14px;
    }
    
    .answer-options {
        gap: 8px;
    }
    
    .option-label {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .yesno-submit-btn {
        padding: 15px 40px;
        font-size: 16px;
    }
    
    .result-title {
        font-size: 22px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
}
