/**
 * A/B診断コンテンツのスタイル（issue #23）
 *
 * 記事本文（.prose）内に埋め込まれるため、すべて .ultra-shindan 配下にスコープする。
 * Tailwind ビルドに依存させない独立CSS（JS生成マークアップのため）。
 */

.ultra-shindan {
    margin: 32px 0;
}

.ultra-shindan .shindan-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
}

.ultra-shindan .shindan-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    margin: 0 0 20px;
}

.ultra-shindan .shindan-progress {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px;
}

.ultra-shindan .shindan-question {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    margin: 0 0 16px;
}

.ultra-shindan button {
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s;
}

.ultra-shindan button:disabled {
    opacity: 0.6;
    cursor: default;
}

.ultra-shindan .shindan-choice {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
}

.ultra-shindan .shindan-choice:hover:not(:disabled) {
    background: #f3f4f6;
}

.ultra-shindan .shindan-next {
    display: block;
    width: 100%;
    padding: 12px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #111827;
    border: none;
    border-radius: 8px;
}

.ultra-shindan .shindan-next:hover {
    background: #374151;
}

.ultra-shindan .shindan-bar-row {
    margin-bottom: 10px;
}

.ultra-shindan .shindan-bar-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
}

.ultra-shindan .shindan-percent {
    color: #6b7280;
    white-space: nowrap;
}

/* 自分が選んだ側の行はラベル・%とも太字+サイズアップで目立たせる */
.ultra-shindan .shindan-bar-mine .shindan-bar-label {
    font-size: 15px;
    font-weight: 700;
}

.ultra-shindan .shindan-bar-mine .shindan-percent {
    color: #111827;
}

.ultra-shindan .shindan-bar-track {
    background: #e5e7eb;
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}

.ultra-shindan .shindan-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.4s ease;
}

/* バーの色は多数派/少数派を表す（同率は両方黄色） */
.ultra-shindan .shindan-fill-major {
    background: #10b981;
}

.ultra-shindan .shindan-fill-minor {
    background: #ef4444;
}

.ultra-shindan .shindan-fill-even {
    background: #f59e0b;
}

.ultra-shindan .shindan-note {
    font-size: 13px;
    color: #6b7280;
    margin: 8px 0 0;
}

.ultra-shindan .shindan-feedback {
    margin-top: 8px;
}

.ultra-shindan .shindan-result {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
}

.ultra-shindan .shindan-result-sub {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 4px;
}

.ultra-shindan .shindan-result-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
}

.ultra-shindan .shindan-result-desc {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

.ultra-shindan .shindan-result-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 12px;
}

.ultra-shindan .shindan-result-label {
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 8px;
}

.ultra-shindan .shindan-result-reco {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

.ultra-shindan .shindan-article {
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 4px;
}

.ultra-shindan .shindan-article a {
    color: #1d4ed8;
}

.ultra-shindan .shindan-recap {
    margin-top: 16px;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 20px;
}

.ultra-shindan .shindan-recap-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 16px;
}

.ultra-shindan .shindan-recap-item {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f3f4f6;
}

.ultra-shindan .shindan-recap-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ultra-shindan .shindan-recap-q {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 10px;
}
