/* 診断メーカー フロントエンドCSS */

.shindan-container {
    max-width: 600px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
}

/* ヘッダー */
.shindan-header {
    text-align: center;
    margin-bottom: 30px;
}

.shindan-title {
    font-size: 24px;
    margin: 0 0 20px;
    color: #333;
}

.shindan-progress {
    background: #e0e0e0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.shindan-progress-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    transition: width 0.3s ease;
}

.shindan-progress-text {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

/* スタート画面 */
.shindan-start {
    text-align: center;
    padding: 20px 0;
    animation: fadeIn 0.4s ease;
}

.shindan-body {
    min-height: 400px;
}

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

.start-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.start-title {
    font-size: 22px;
    color: #333;
    margin: 0 0 15px;
}

.start-description {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
    padding: 0 10px;
}

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

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

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

/* 質問 */
.shindan-question {
    display: none;
    animation: fadeIn 0.4s ease;
}

.shindan-question.active {
    display: block;
}

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

.question-text {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.6;
}

.question-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-btn {
    display: block;
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    text-align: left;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.choice-btn:hover {
    border-color: #667eea;
    background: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.choice-btn:active {
    transform: translateY(0);
}

.choice-btn.selected {
    border-color: #667eea;
    background: #667eea;
    color: #fff;
}

/* 結果 */
.shindan-result {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.result-loading {
    padding: 60px 0;
}

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

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

.result-loading p {
    color: #666;
    font-size: 16px;
}

.result-content {
    padding: 20px 0;
}

.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;
}

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

.shindan-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);
}

.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bar-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 5px;
}

.bar-label {
    font-size: 14px;
    color: #333;
}

.bar-score {
    font-size: 14px;
    font-weight: bold;
    color: #667eea;
}

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

.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;
}

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

.bar-winner .bar-label {
    font-weight: bold;
    color: #667eea;
}

.bar-winner .bar-score {
    color: #667eea;
}

/* シェアボタン */
.result-share {
    margin: 30px 0;
}

.result-share > p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

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

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 14px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.2s ease;
}

.share-twitter {
    background: #000;
    color: #fff;
}

.share-twitter:hover {
    background: #333;
    color: #fff;
}

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

.share-line:hover {
    background: #05b34c;
    color: #fff;
}

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

.share-facebook:hover {
    background: #166fe5;
    color: #fff;
}

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

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

/* レスポンシブ */
@media (max-width: 600px) {
    .shindan-container {
        margin: 20px 15px;
    }
    
    .shindan-title {
        font-size: 20px;
    }
    
    .question-text {
        font-size: 16px;
    }
    
    .choice-btn {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .result-title {
        font-size: 22px;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
}

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

/* ------------------------------------------
   1. スタンダード（青紫） - デフォルト
   メイン: #667eea / サブ: #764ba2
   ------------------------------------------ */
/* デフォルトスタイルがそのまま適用 */

/* ------------------------------------------
   2. ロマンティック（ピンク）
   メイン: #e84393 / サブ: #fd79a8
   ------------------------------------------ */
.shindan-theme-romantic .shindan-progress-bar {
    background: linear-gradient(90deg, #e84393 0%, #fd79a8 100%);
}
.shindan-theme-romantic .shindan-start-btn {
    background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%);
    box-shadow: 0 4px 15px rgba(232, 67, 147, 0.4);
}
.shindan-theme-romantic .shindan-start-btn:hover {
    box-shadow: 0 6px 20px rgba(232, 67, 147, 0.5);
}
.shindan-theme-romantic .choice-btn:hover {
    border-color: #e84393;
    background: #fff5f8;
    box-shadow: 0 4px 12px rgba(232, 67, 147, 0.15);
}
.shindan-theme-romantic .choice-btn.selected {
    border-color: #e84393;
    background: #e84393;
}
.shindan-theme-romantic .result-title {
    color: #e84393;
    background: linear-gradient(135deg, #fff5f8 0%, #ffe3ec 100%);
}
.shindan-theme-romantic .bar-fill {
    background: linear-gradient(90deg, #e84393 0%, #fd79a8 100%);
}
.shindan-theme-romantic .bar-winner .bar-label {
    color: #e84393;
}
.shindan-theme-romantic .bar-score {
    color: #e84393;
}
.shindan-theme-romantic .shindan-retry {
    border-color: #e84393;
    color: #e84393;
}
.shindan-theme-romantic .shindan-retry:hover {
    background: #e84393;
    color: #fff;
}

/* ------------------------------------------
   3. ビジネス（ネイビー×ゴールド）
   メイン: #2c3e50 / サブ: #c9a227
   ------------------------------------------ */
.shindan-theme-business .shindan-progress-bar {
    background: linear-gradient(90deg, #2c3e50 0%, #c9a227 100%);
}
.shindan-theme-business .shindan-start-btn {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.4);
}
.shindan-theme-business .shindan-start-btn:hover {
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.5);
}
.shindan-theme-business .choice-btn:hover {
    border-color: #2c3e50;
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(44, 62, 80, 0.15);
}
.shindan-theme-business .choice-btn.selected {
    border-color: #2c3e50;
    background: #2c3e50;
}
.shindan-theme-business .result-title {
    color: #2c3e50;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef0f2 100%);
    border-left: 4px solid #c9a227;
}
.shindan-theme-business .bar-fill {
    background: linear-gradient(90deg, #2c3e50 0%, #c9a227 100%);
}
.shindan-theme-business .bar-winner .bar-label {
    color: #2c3e50;
}
.shindan-theme-business .bar-score {
    color: #c9a227;
}
.shindan-theme-business .shindan-retry {
    border-color: #2c3e50;
    color: #2c3e50;
}
.shindan-theme-business .shindan-retry:hover {
    background: #2c3e50;
    color: #fff;
}

/* ------------------------------------------
   4. シンプル（モノトーン）
   メイン: #333333 / サブ: #666666
   ------------------------------------------ */
.shindan-theme-simple .shindan-progress-bar {
    background: linear-gradient(90deg, #333 0%, #666 100%);
}
.shindan-theme-simple .shindan-start-btn {
    background: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.shindan-theme-simple .shindan-start-btn:hover {
    background: #444;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.shindan-theme-simple .choice-btn:hover {
    border-color: #333;
    background: #f5f5f5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.shindan-theme-simple .choice-btn.selected {
    border-color: #333;
    background: #333;
}
.shindan-theme-simple .result-title {
    color: #333;
    background: #f5f5f5;
}
.shindan-theme-simple .bar-fill {
    background: linear-gradient(90deg, #333 0%, #666 100%);
}
.shindan-theme-simple .bar-winner .bar-label {
    color: #333;
}
.shindan-theme-simple .bar-score {
    color: #333;
}
.shindan-theme-simple .shindan-retry {
    border-color: #333;
    color: #333;
}
.shindan-theme-simple .shindan-retry:hover {
    background: #333;
    color: #fff;
}

/* ------------------------------------------
   5. パステル（柔らかめ）
   メイン: #a29bfe / サブ: #dfe6e9
   ------------------------------------------ */
.shindan-theme-pastel .shindan-progress-bar {
    background: linear-gradient(90deg, #a29bfe 0%, #74b9ff 100%);
}
.shindan-theme-pastel .shindan-start-btn {
    background: linear-gradient(135deg, #a29bfe 0%, #74b9ff 100%);
    box-shadow: 0 4px 15px rgba(162, 155, 254, 0.4);
}
.shindan-theme-pastel .shindan-start-btn:hover {
    box-shadow: 0 6px 20px rgba(162, 155, 254, 0.5);
}
.shindan-theme-pastel .choice-btn:hover {
    border-color: #a29bfe;
    background: #f8f7ff;
    box-shadow: 0 4px 12px rgba(162, 155, 254, 0.15);
}
.shindan-theme-pastel .choice-btn.selected {
    border-color: #a29bfe;
    background: #a29bfe;
}
.shindan-theme-pastel .result-title {
    color: #6c5ce7;
    background: linear-gradient(135deg, #f8f7ff 0%, #f0efff 100%);
}
.shindan-theme-pastel .bar-fill {
    background: linear-gradient(90deg, #a29bfe 0%, #74b9ff 100%);
}
.shindan-theme-pastel .bar-winner .bar-label {
    color: #6c5ce7;
}
.shindan-theme-pastel .bar-score {
    color: #6c5ce7;
}
.shindan-theme-pastel .shindan-retry {
    border-color: #a29bfe;
    color: #6c5ce7;
}
.shindan-theme-pastel .shindan-retry:hover {
    background: #a29bfe;
    color: #fff;
}

/* ------------------------------------------
   6. ナチュラル（緑×ベージュ）
   メイン: #27ae60 / サブ: #a8d5ba
   ------------------------------------------ */
.shindan-theme-natural .shindan-progress-bar {
    background: linear-gradient(90deg, #27ae60 0%, #a8d5ba 100%);
}
.shindan-theme-natural .shindan-start-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
}
.shindan-theme-natural .shindan-start-btn:hover {
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}
.shindan-theme-natural .choice-btn:hover {
    border-color: #27ae60;
    background: #f5faf7;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
}
.shindan-theme-natural .choice-btn.selected {
    border-color: #27ae60;
    background: #27ae60;
}
.shindan-theme-natural .result-title {
    color: #27ae60;
    background: linear-gradient(135deg, #f5faf7 0%, #e8f5ec 100%);
}
.shindan-theme-natural .bar-fill {
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
}
.shindan-theme-natural .bar-winner .bar-label {
    color: #27ae60;
}
.shindan-theme-natural .bar-score {
    color: #27ae60;
}
.shindan-theme-natural .shindan-retry {
    border-color: #27ae60;
    color: #27ae60;
}
.shindan-theme-natural .shindan-retry:hover {
    background: #27ae60;
    color: #fff;
}
