/* リセットとベース設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background: #f8fafc;
    --surface: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
}

/* コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ナビゲーション */
.navbar {
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0;
}

.logo-struct {
    color: #2563eb;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-note {
    color: #64748b;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

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

/* ヒーローセクション */
.hero {
    text-align: center;
    padding: 3rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* セクション */
section {
    margin-bottom: 4rem;
}

section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* フィーチャーカード */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* フレームワークグリッド */
.frameworks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.framework-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.framework-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.framework-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.framework-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.framework-theory {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
}

.framework-theory strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.framework-theory p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.framework-uses {
    margin-bottom: 1.5rem;
}

.framework-uses strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.framework-uses ul {
    list-style: none;
    padding-left: 0;
}

.framework-uses li {
    padding: 0.25rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.framework-uses li:before {
    content: "→ ";
    color: var(--primary-color);
    font-weight: bold;
}

.framework-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.framework-actions .btn {
    flex: 1;
    min-width: 120px;
    white-space: nowrap;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
}

/* プロセスステップ */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.process-step {
    text-align: center;
    padding: 1.5rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.process-step h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

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

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

.btn-secondary:hover {
    background: #475569;
}

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

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

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* CTA セクション */
.cta-section {
    text-align: center;
    padding: 3rem 0;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* フッター */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-secondary);
}

/* パンくずリスト */
.breadcrumb {
    padding: 1rem 0;
    color: var(--text-secondary);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* 詳細ページ */
.detail-hero {
    text-align: center;
    padding: 2rem 0 3rem;
}

.detail-content {
    max-width: 800px;
    margin: 0 auto;
}

.detail-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.structure-list,
.use-cases-list {
    padding-left: 1.5rem;
}

.structure-list li,
.use-cases-list li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.tips-box {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.tips-box ul {
    padding-left: 1.5rem;
}

.tips-box li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* トレーニングページ */
.training-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.training-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.sidebar-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.structure-guide {
    padding-left: 1.5rem;
}

.structure-guide li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.hints p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.hints strong {
    color: var(--primary-color);
}

.training-main {
    min-height: 500px;
}

.editor-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.editor-instruction {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* フォーム */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

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

textarea.form-control {
    resize: vertical;
    min-height: 150px;
}

.form-help {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.char-count {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.editor-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* 分析結果 */
.analysis-result {
    margin-top: 2rem;
    background: var(--background);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.analysis-summary {
    margin-bottom: 2rem;
}

.score-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.score {
    font-size: 3rem;
}

.structure-check {
    margin-bottom: 2rem;
}

.check-list {
    list-style: none;
    padding: 0;
}

.check-list li {
    padding: 1rem;
    margin-bottom: 0.5rem;
    background: var(--surface);
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.check-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.check-good {
    border-left: 4px solid var(--success-color);
}

.check-good .check-icon {
    color: var(--success-color);
}

.check-warning {
    border-left: 4px solid var(--warning-color);
}

.check-warning .check-icon {
    color: var(--warning-color);
}

.check-unknown {
    border-left: 4px solid var(--secondary-color);
}

.check-unknown .check-icon {
    color: var(--secondary-color);
}

.suggestions-list {
    list-style: none;
    padding: 0;
}

.suggestions-list li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--surface);
    border-radius: 8px;
}

.priority-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.priority-high .priority-badge {
    background: var(--danger-color);
    color: white;
}

.priority-medium .priority-badge {
    background: var(--warning-color);
    color: white;
}

.priority-low .priority-badge {
    background: var(--secondary-color);
    color: white;
}

/* メッセージ */
.message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.message.success {
    background: #d1fae5;
    color: #065f46;
    border-left: 4px solid var(--success-color);
}

/* 添削ページ */
.correction-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
}

.correction-main {
    min-height: 500px;
}

.input-section {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.result-section {
    margin-top: 2rem;
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.score-value {
    font-size: 2.5rem;
    font-weight: bold;
}

.score-label {
    font-size: 1rem;
}

.framework-info h3 {
    margin-bottom: 0.5rem;
}

.evaluation {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-weight: 600;
}

.evaluation-excellent {
    background: #d1fae5;
    color: #065f46;
}

.evaluation-good {
    background: #dbeafe;
    color: #1e40af;
}

.evaluation-fair {
    background: #fef3c7;
    color: #92400e;
}

.evaluation-poor {
    background: #fee2e2;
    color: #991b1b;
}

.structure-checks,
.suggestions-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.check-item,
.suggestion-item {
    padding: 1.5rem;
    background: var(--background);
    border-radius: 8px;
}

.check-header,
.suggestion-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.status-good {
    border-left: 4px solid var(--success-color);
}

.status-warning {
    border-left: 4px solid var(--warning-color);
}

.status-unknown {
    border-left: 4px solid var(--secondary-color);
}

.check-message,
.suggestion-message {
    color: var(--text-secondary);
    line-height: 1.6;
}

.suggestion-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.result-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.no-suggestions {
    padding: 2rem;
    text-align: center;
    color: var(--success-color);
    background: var(--background);
    border-radius: 8px;
}

.correction-sidebar .sidebar-card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.correction-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.correction-sidebar ul {
    padding-left: 1.5rem;
}

.correction-sidebar li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

/* 実践演習ページ */
.steps-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.theme-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.theme-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.theme-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.theme-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.recommended {
    background: var(--background);
    padding: 0.75rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.recommended strong {
    color: var(--primary-color);
}

.theme-select {
    width: 100%;
}

.frameworks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.framework-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.framework-info-compact h4 {
    margin-bottom: 0.25rem;
}

.framework-info-compact p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.framework-actions-compact {
    display: flex;
    gap: 0.75rem;
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--surface);
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 2rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
}

.framework-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.framework-select-card {
    padding: 1.5rem;
    background: var(--background);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    border: 2px solid transparent;
}

.framework-select-card:hover {
    background: var(--surface);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.framework-select-card h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.framework-select-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* 履歴ページ */
.history-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.history-list h2 {
    margin-bottom: 1.5rem;
}

.history-item {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.history-title {
    flex: 1;
}

.history-title h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.framework-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

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

.history-preview p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.history-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty-state h2 {
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .training-layout,
    .correction-layout {
        grid-template-columns: 1fr;
    }

    .training-sidebar {
        position: static;
    }

    .frameworks-grid,
    .themes-grid {
        grid-template-columns: 1fr;
    }

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

    .framework-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }
}

/* 視覚セクション */
.visual-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2.5rem !important;
}

.visual-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.visual-section #visualFramework {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    min-height: 400px;
}

/* AI機能のスタイル */
.ai-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.ai-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b42a0 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.ai-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    text-align: center;
}

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

.ai-section {
    border-left: 4px solid #667eea !important;
}

.ai-score {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

.ai-evaluation {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.ai-good-points {
    list-style: none;
    padding: 0;
}

.ai-good-points li {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #d1fae5;
    border-left: 4px solid var(--success-color);
    border-radius: 6px;
}

.ai-improvement-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--background);
    border-radius: 8px;
    border-left: 4px solid var(--warning-color);
}

.ai-improvement-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.improvement-current {
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #fee2e2;
    border-radius: 4px;
}

.improvement-suggestion {
    padding: 0.5rem;
    background: #dbeafe;
    border-radius: 4px;
}

.ai-improved-example {
    padding: 1.5rem;
    background: var(--background);
    border-radius: 8px;
    line-height: 1.8;
    font-size: 1.05rem;
    border: 2px dashed var(--primary-color);
}

.ai-suggestion-box {
    padding: 2rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.ai-suggestion-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-primary);
    margin-top: 1rem;
}

/* フレームワーク使用率チャート */
.framework-usage-chart {
    margin-top: 1.5rem;
}

.framework-usage-item {
    margin-bottom: 1.5rem;
}

.framework-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.usage-bar-container {
    position: relative;
    height: 40px;
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.usage-bar {
    height: 100%;
    transition: width 0.6s ease;
    border-radius: 8px;
    position: relative;
}

.usage-bar.usage-high {
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
}

.usage-bar.usage-medium {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.usage-bar.usage-low {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.usage-percentage {
    position: absolute;
    right: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.primary-framework {
    padding: 1rem;
    background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary-color);
}

.ai-comment {
    line-height: 1.8;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
    color: var(--text-primary);
}

.ai-suggestions-list {
    list-style: none;
    padding: 0;
}

.ai-suggestions-list li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--background);
    border-left: 4px solid var(--secondary-color);
    border-radius: 6px;
    line-height: 1.6;
}

/* StructNote追加スタイル */
.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 0.5rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.feature-card {
    text-align: center;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* ヒーローセクションの追加スタイル */
.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-struct {
    color: #2563eb;
    font-weight: 800;
}

.hero-note {
    color: #1e293b;
    font-weight: 600;
}

.hero .subtitle {
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 500;
}

/* ナビゲーションバーの認証関連スタイル */
.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    color: var(--text-primary);
    font-weight: 600;
}

.btn-logout,
.btn-login,
.btn-signup {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-logout {
    background: #f1f5f9;
    color: #64748b;
}

.btn-logout:hover {
    background: #e2e8f0;
    color: #334155;
}

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

.btn-login:hover {
    background: #eff6ff;
}

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

.btn-signup:hover {
    background: #1d4ed8;
    color: white !important;
}
