/* --- 合同会社 vs 株式会社 診断シミュレーター --- */

.shindan-widget {
    background: #fff;
    border: 2px solid #08c656;
    border-radius: 12px;
    padding: 2em;
    margin: 40px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.shindan-step[hidden] {
    display: none;
}

/* --- イントロ画面 --- */
.shindan-step[data-step="intro"] {
    text-align: center;
}

.shindan-kicker {
    margin: 0 0 0.6em 0;
}

.shindan-kicker-badge {
    display: inline-block;
    background: #08c656;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.5;
    padding: 5px 16px;
    border-radius: 999px;
}

.shindan-intro-title {
    font-size: 22px;
    font-weight: bold;
    color: #333;
    line-height: 1.4;
    margin: 0 0 0.6em 0;
}

.shindan-intro-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin: 0 0 1.5em 0;
}

/* --- 質問画面 --- */
.shindan-progress {
    margin-bottom: 1.5em;
}

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

.shindan-progress-fill {
    background-color: #08c656;
    height: 100%;
    transition: width 0.3s ease;
}

.shindan-progress-label {
    font-size: 13px;
    color: #888;
    margin: 0.5em 0 0 0;
    text-align: right;
}

.shindan-question-title {
    font-size: 19px;
    font-weight: bold;
    color: #333;
    line-height: 1.5;
    margin: 0 0 1.25em 0;
}

.shindan-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- 共通ボタン ---
   Elementorのグローバルkitスタイル（.elementor-kit-X button 等）は
   「クラス+要素」の詳細度で当たってくるため、#houjin-shindan を前置して確実に勝たせる */
#houjin-shindan .shindan-start-button,
#houjin-shindan .shindan-option,
#houjin-shindan .shindan-cta-button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

#houjin-shindan .shindan-start-button,
#houjin-shindan .shindan-cta-button {
    background-color: #ffdd00;
    color: #333 !important;
    font-weight: bold;
    font-size: 18px;
    padding: 16px 20px;
    border: none;
    text-decoration: none !important;
}

#houjin-shindan .shindan-cta-button {
    margin-bottom: 1em;
}

#houjin-shindan .shindan-start-button:hover,
#houjin-shindan .shindan-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 221, 0, 0.4);
}

#houjin-shindan .shindan-option {
    min-height: 52px;
    padding: 14px 18px;
    background-color: #f8f8f8;
    color: #333;
    border: 2px solid #ddd;
    text-align: left;
    line-height: 1.6;
}

#houjin-shindan .shindan-option:hover,
#houjin-shindan .shindan-option:active {
    border-color: #08c656;
    background-color: #f0faf4;
}

/* --- 計算中画面 --- */
.shindan-step[data-step="loading"] {
    text-align: center;
    padding: 2em 0;
}

.shindan-spinner {
    width: 36px;
    height: 36px;
    border: 4px solid #eee;
    border-top-color: #08c656;
    border-radius: 50%;
    margin: 0 auto 1em auto;
    animation: shindan-spin 0.8s linear infinite;
}

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

.shindan-loading-text {
    font-size: 15px;
    color: #666;
    margin: 0;
}

/* --- 結果画面 --- */
.shindan-result-badge {
    display: inline-block;
    background-color: #08c656;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    padding: 0.35em 1em;
    border-radius: 999px;
    margin: 0 0 0.75em 0;
}

.shindan-result-heading {
    font-size: 22px;
    font-weight: bold;
    color: #08c656;
    line-height: 1.4;
    margin: 0 0 1.25em 0;
}

.shindan-meter {
    margin-bottom: 1.5em;
}

.shindan-meter-track {
    background-color: #eee;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.shindan-meter-fill {
    background-color: #08c656;
    height: 100%;
    transition: width 0.6s ease;
}

.shindan-meter-label {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin: 0.5em 0 0 0;
}

.shindan-reasons {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5em 0;
}

.shindan-reasons li {
    position: relative;
    font-size: 15px;
    line-height: 1.7;
    color: #333;
    padding-left: 1.4em;
    margin-bottom: 0.75em;
}

.shindan-reasons li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #08c656;
}

.shindan-disclaimer {
    font-size: 12px;
    line-height: 1.7;
    color: #888;
    margin: 0 0 1.5em 0;
}

#houjin-shindan .shindan-restart {
    display: block;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    padding: 12px 20px;
    margin: 0;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

#houjin-shindan .shindan-restart:hover {
    border-color: #08c656;
    color: #08c656;
    background-color: #f0faf4;
}

/* --- 768px以下（スマホなど） --- */
@media (max-width: 768px) {
    .shindan-widget {
        padding: 1.25em 1em;
    }

    .shindan-intro-title,
    .shindan-result-heading {
        font-size: 19px;
    }

    .shindan-question-title {
        font-size: 17px;
    }
}
