/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* カラーパレット */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #7c3aed;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* メイン */
.main {
    padding: 3rem 0;
    min-height: calc(100vh - 200px);
}

/* スクリーン管理 */
.screen {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.screen.active {
    display: block;
}

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

/* ウェルカムカード */
.welcome-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.welcome-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-align: center;
}

.description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* 評価領域カード */
.assessment-areas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.area-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.area-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.area-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.area-card p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* インフォボックス */
.info-box {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.info-box h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.info-box ul {
    list-style: none;
    padding-left: 0;
}

.info-box li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.info-box li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* 企業情報フォーム */
.company-info-form {
    background: var(--bg-secondary);
    border-left: 4px solid var(--secondary-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.company-info-form h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.form-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.required {
    color: var(--danger-color);
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ボタン */
.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-primary);
    border-color: var(--primary-color);
}

.btn-large {
    width: 100%;
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
}

.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 進捗バー */
.progress-container {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
}

.progress-text {
    color: var(--text-primary);
}

.current-category {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.progress-bar {
    height: 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    transition: width 0.5s ease;
    width: 0%;
}

/* 質問カード */
.question-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.question-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.question-text {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

/* 回答オプション */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.answer-option {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.answer-option:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(5px);
}

.answer-option.selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: var(--primary-color);
    border-width: 3px;
}

.answer-radio {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.answer-option.selected .answer-radio {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.answer-option.selected .answer-radio::after {
    content: "✓";
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.answer-text {
    flex: 1;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* ナビゲーションボタン */
.navigation-buttons {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.navigation-buttons button {
    flex: 1;
}

/* 結果画面 */
.result-header {
    text-align: center;
    margin-bottom: 3rem;
    color: white;
}

.result-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.result-date {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.company-info-display {
    font-size: 1.3rem;
    font-weight: 600;
    opacity: 0.95;
    margin-top: 0.5rem;
}

/* 総合スコアカード */
.overall-score-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.overall-score-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.overall-comment {
    margin-top: 2rem;
    text-align: left;
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
}

.overall-comment h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.comment-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.comment-text p {
    margin-bottom: 1rem;
}

/* AI導入提案カード */
.ai-proposal-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.ai-proposal-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.proposal-content {
    display: grid;
    gap: 1.5rem;
}

.proposal-step {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.proposal-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.step-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.step-details ul {
    margin-left: 1.5rem;
    color: var(--text-primary);
}

.step-details li {
    margin-bottom: 0.5rem;
}

/* 業界分析カード */
.industry-analysis-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.industry-analysis-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.analysis-content {
    margin-top: 2rem;
}

.analysis-section {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.analysis-section h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.analysis-section p {
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.analysis-section ul {
    margin-left: 1.5rem;
    color: var(--text-primary);
}

.analysis-section li {
    margin-bottom: 0.5rem;
}

/* 補助金カード */
.subsidy-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.subsidy-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.subsidy-content {
    display: grid;
    gap: 1.5rem;
}

.subsidy-item {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-left: 4px solid var(--success-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.subsidy-item h4 {
    font-size: 1.3rem;
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.subsidy-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.subsidy-tag {
    background: white;
    color: var(--success-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.subsidy-description {
    color: var(--text-primary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.subsidy-details {
    display: grid;
    gap: 0.5rem;
}

.subsidy-detail-item {
    display: flex;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.subsidy-detail-label {
    font-weight: 600;
    min-width: 100px;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
    .company-info-display {
        font-size: 1.1rem;
    }
    
    .proposal-step-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.score-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

.score-value {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
}

.score-max {
    font-size: 1.5rem;
    opacity: 0.8;
}

.maturity-level {
    text-align: left;
}

.level-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: inline-block;
}

.level-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 400px;
}

/* チャートカード */
.chart-card,
.benchmark-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.chart-card h3,
.benchmark-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.chart-container {
    max-width: 600px;
    margin: 0 auto;
    height: 400px;
}

.benchmark-chart-container {
    height: 300px;
}

/* 詳細スコア */
.detailed-scores {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.detailed-scores h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.category-scores {
    display: grid;
    gap: 1.5rem;
}

.category-score-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 1.5rem;
}

.category-score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
}

.category-score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.category-bar {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.category-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    transition: width 1s ease;
}

.category-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 推奨事項 */
.recommendations-card {
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
}

.recommendations-card h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.recommendations-list {
    display: grid;
    gap: 1.5rem;
}

.recommendation-item {
    background: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.recommendation-category {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recommendation-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.recommendation-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.recommendation-priority {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.priority-high {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
}

.priority-medium {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.priority-low {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
}

/* 結果アクション */
.result-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--bg-primary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.result-actions button {
    flex: 1;
    min-width: 200px;
}

/* フッター */
.footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 3rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .welcome-card {
        padding: 2rem;
    }

    .welcome-card h2 {
        font-size: 2rem;
    }

    .assessment-areas {
        grid-template-columns: 1fr;
    }

    .question-card {
        padding: 2rem;
    }

    .question-text {
        font-size: 1.4rem;
    }

    .score-display {
        flex-direction: column;
        gap: 2rem;
    }

    .maturity-level {
        text-align: center;
    }

    .navigation-buttons {
        flex-direction: column;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions button {
        min-width: 100%;
    }
}
