/* 診断メーカー フロントエンド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-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;
    }
}
