/* 基本スタイル */
:root {
    --primary: #2563EB;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --secondary: #475569;
    --background: #f8fafc;
    --text: #334155;
    --text-light: #64748b;
    --high: #ef4444;
    --medium: #f59e0b;
    --low: #10b981;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background-color: var(--background);
    line-height: 1.4;
    min-height: 100vh;
}

/* プレゼンテーションコンテナ */
.presentation-container {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* スライド */
.slide {
    width: 100%;
    min-height: 100vh;
    background-color: var(--background);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    flex: 1;
}

/* スライドヘッダー */
.slide-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.title-container {
    max-width: 70%;
    display: flex;
    align-items: flex-end;
    gap: 1rem;
}

.slide-title {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slide-title a {
    text-decoration: none;
}

.slide-subtitle {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 5px;
}

.date-source {
    text-align: right;
    color: var(--text-light);
    font-size: 14px;
}

.date, .source {
    margin-bottom: 0.25rem;
}

/* スライドコンテンツ */
.slide-content {
    display: flex;
    flex: 1;
    gap: 1.5rem;
    overflow: hidden;
}

.column-left {
    width: 60%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

.column-right {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
}

/* カード */
.card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.section-heading {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-heading i {
    color: var(--primary);
}

.subsection-heading {
    font-size: 16px;
    color: var(--secondary);
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
}

.description {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.highlight {
    color: var(--primary);
    font-weight: 500;
}

/* リスト */
.feature-list {
    list-style-type: none;
    margin-left: 0.5rem;
}

.feature-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-list li:before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* KPI カード */
.kpi-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.kpi-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow);
    padding: 1.25rem;
    text-align: center;
    flex: 1;
}

.kpi-value {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.kpi-label {
    font-size: 14px;
    color: var(--text-light);
}

/* タイムライン */
.timeline {
    margin-top: 1rem;
}

.timeline-item {
    display: flex;
    margin-bottom: 1rem;
    position: relative;
}

.timeline-marker {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.timeline-marker.high {
    background-color: var(--high);
}

.timeline-marker.medium {
    background-color: var(--medium);
}

.timeline-marker.low {
    background-color: var(--low);
}

.timeline-content h4 {
    font-size: 16px;
    margin-bottom: 0.25rem;
}

.timeline-content p {
    font-size: 14px;
    color: var(--text-light);
}

/* フッター */
.slide-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: var(--text-light);
}

.logo {
    font-weight: bold;
    color: var(--primary);
    font-size: 16px;
}

/* ファクターボックス */
.factor-box {
    background-color: rgba(37, 99, 235, 0.05);
    border-left: 3px solid var(--primary);
    padding: 1rem;
    margin: 1.25rem 0;
    border-radius: 0 8px 8px 0;
}

.factor-title {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
}

.factor-list {
    list-style-type: none;
}

.factor-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.factor-list li i {
    color: var(--primary);
    margin-right: 0.5rem;
    font-size: 14px;
}

/* テーブル */
.role-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.role-row {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.role-row.header {
    font-weight: bold;
    background-color: rgba(37, 99, 235, 0.05);
}

.role-cell {
    padding: 0.75rem;
    flex: 1;
}

/* モックアップ */
.mockup-container {
    margin-bottom: 1.5rem;
}

.mockup {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px var(--shadow);
    width: 100%;
    margin: 0 auto;
}

.mockup-header {
    background-color: #f1f5f9;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.mockup-controls {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background-color: #ef4444;
}

.control.yellow {
    background-color: #f59e0b;
}

.control.green {
    background-color: #10b981;
}

.mockup-title {
    font-size: 14px;
    color: var(--text-light);
}

.mockup-content {
    padding: 0.8rem;
}

/* ログインフォーム */
.login-form {
    max-width: 320px;
    margin: 0 auto;
}

.login-logo {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 14px;
    color: var(--text);
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    font-size: 13px;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox input {
    margin-right: 0.5rem;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
}

/* 共通ボタンスタイル */
.button-base {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

/* プライマリボタン（青色系） */
.login-button, .create-button, .save-button, .run-button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    background-color: var(--primary);
    color: white;
}

/* 特に新規作成ボタンのリンクスタイルを上書き */
a.create-button {
    text-decoration: none !important;
    color: white !important;
}

.login-button:hover, .create-button:hover, .save-button:hover, .run-button:hover {
    background-color: var(--primary-dark);
    text-decoration: none;
}

a.create-button:hover {
    text-decoration: none !important;
}

/* セカンダリボタン（グレー系） */
.cancel-button {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    background-color: #e2e8f0;
    color: var(--text);
}

.cancel-button:hover {
    background-color: #cbd5e1;
}

.oauth-options {
    margin-top: 1.5rem;
}

.oauth-button {
    width: 100%;
    padding: 0.75rem;
    background-color: #f1f5f9;
    color: var(--text);
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.oauth-button i {
    margin-right: 0.5rem;
}

.oauth-button.google i {
    color: #ea4335;
}

.oauth-button.github i {
    color: #333;
}

/* セキュリティメトリクス */
.metrics-container {
    margin-top: 1rem;
}

.metric {
    margin-bottom: 1rem;
}

.metric-title {
    font-size: 14px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}

.metric-bar {
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.metric-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
}

.metric-value {
    text-align: right;
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

/* プロジェクト一覧 */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.projects-header h3 {
    font-size: 18px;
    color: var(--text);
}

.create-button {
    padding: 0.5rem 1rem;
    width: auto;
}

.search-filter {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.search-filter input {
    flex: 2;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.search-filter select {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid transparent;
    position: relative;
}

.project-card-link {
    display: flex;
    align-items: center;
    flex: 1;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.project-card.active {
    border-left-color: var(--primary);
    background-color: rgba(37, 99, 235, 0.05);
}

.project-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 1rem;
}

.project-status.dev {
    background-color: var(--primary);
}

.project-status.test {
    background-color: var(--medium);
}

.project-status.staging {
    background-color: var(--low);
}

.project-status.prod {
    background-color: var(--high);
}

.project-info {
    flex: 1;
}

.project-info h4 {
    font-size: 16px;
    margin-bottom: 0.25rem;
}

.project-info p {
    font-size: 13px;
    color: var(--text-light);
}

.project-metrics {
    display: flex;
    gap: 1rem;
}

.project-metrics .metric {
    text-align: center;
    margin-bottom: 0;
}

.project-metrics .value {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary);
    display: block;
}

.project-metrics .label {
    font-size: 12px;
    color: var(--text-light);
}

.project-metrics {
    display: flex;
    gap: 1rem;
}

/* プロジェクト一覧のアクション */
.project-actions {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.project-invite {
    color: #2196f3;
    font-size: 16px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(33, 150, 243, 0.1);
}

.project-invite:hover {
    color: #1565c0;
    background-color: rgba(33, 150, 243, 0.2);
}

.project-settings {
    color: var(--text-light);
    font-size: 16px;
    opacity: 0.7;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(100, 116, 139, 0.1);
}

.project-settings:hover {
    color: var(--primary);
    opacity: 1;
    background-color: rgba(100, 116, 139, 0.2);
}

/* スマホ表示時のプロジェクトカード */
@media (max-width: 768px) {
    .projects-list .project-card {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
        position: relative !important;
        padding: 15px 10px !important;
        margin-bottom: 15px !important;
    }
    
    .projects-list .project-card-link {
        width: 100% !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    
    .projects-list .project-status {
        width: 8px !important;
        height: 100% !important;
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
        border-top-left-radius: 8px !important;
        border-bottom-left-radius: 8px !important;
    }
    
    .projects-list .project-info {
        width: 100% !important;
        padding-left: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .projects-list .project-metrics {
        width: 100% !important;
        justify-content: flex-start !important;
        padding-left: 10px !important;
        margin-bottom: 10px !important;
    }
    
    .projects-list .project-actions {
        width: 100% !important;
        margin-left: 0 !important;
        padding: 10px 0 !important;
        justify-content: center !important;
        display: flex !important;
        gap: 30px !important;
    }
    
    .projects-list .project-invite,
    .projects-list .project-settings {
        font-size: 20px !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* フォーム行 */
.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group.half {
    flex: 1;
}

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

.form-actions .cancel-button, .form-actions .create-button, .form-actions .save-button {
    flex: 1;
    width: auto;
}

/* プロジェクト分類 */
.project-types {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.project-type {
    text-align: center;
}

.project-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
}

.project-icon i {
    font-size: 20px;
    color: var(--primary);
}

.project-label {
    font-size: 13px;
}

/* チャート */
.chart-container {
    margin-top: 1rem;
}

.chart {
    width: 100%;
}

.chart-title {
    font-size: 14px;
    margin-bottom: 1rem;
    color: var(--text);
}

.pie-chart {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

.pie-segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip-path: polygon(50% 50%, 50% 0%, calc(50% + 50% * sin(var(--percentage) * 3.6deg)) calc(50% - 50% * cos(var(--percentage) * 3.6deg)));
    background-color: var(--color);
    transform: rotate(calc(var(--offset, 0) * 3.6deg));
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 0.5rem;
}

.bar-chart {
    margin-top: 1rem;
}

.bar-group {
    margin-bottom: 1rem;
}

.bar-label {
    font-size: 13px;
    margin-bottom: 0.25rem;
    display: flex;
    justify-content: space-between;
}

.bar-value {
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

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

.bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
}

/* API登録 */
.form-tabs {
    display: flex;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.tab {
    padding: 0.75rem 1.25rem;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    font-weight: 500;
}

.code-area {
    font-family: monospace;
    background-color: #f1f5f9;
}

/* Postmanスタイル API登録 */
.request-line {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.form-group.method {
    width: 100px;
    flex: none;
}

.method-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f1f5f9;
    font-weight: 500;
}

.form-group.url-input {
    flex: 1;
}

.form-group.send-button {
    width: 80px;
    flex: none;
}

.send-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.request-section {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.section-tabs {
    display: flex;
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.section-tab {
    padding: 0.75rem 1.25rem;
    font-size: 13px;
    cursor: pointer;
    border-right: 1px solid #e2e8f0;
}

.section-tab.active {
    background-color: white;
    font-weight: 500;
    color: var(--primary);
}

.section-content {
    padding: 1rem;
}

.headers-table {
    width: 100%;
}

.header-row {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.header-row.header-title {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-light);
}

.header-row .checkbox {
    width: 30px;
    flex: none;
}

.header-row .key {
    width: 30%;
    padding-right: 0.5rem;
}

.header-row .value {
    width: 40%;
    padding-right: 0.5rem;
}

.header-row .description {
    width: 30%;
}

.header-row input[type="text"] {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 13px;
}

.request-body {
    padding: 1rem;
    display: none;
}

.json-body {
    width: 100%;
    min-height: 400px;
    padding: 1rem;
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background-color: #f8fafc;
    color: #334155;
    resize: vertical;
}

.save-button {
    background-color: #64748b;
    color: white;
}

.save-button:hover {
    background-color: #475569;
}

/* API タイプ */
.api-types {
    display: flex;
    justify-content: space-between;
    margin: 1.25rem 0;
}

.api-type {
    text-align: center;
}

.api-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
}

.api-icon i {
    font-size: 20px;
    color: var(--primary);
}

.api-name {
    font-size: 13px;
}

/* 認証設定 */
.auth-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.auth-option {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.auth-option input {
    margin-right: 0.5rem;
}

.auth-details {
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 8px;
}

/* テスト設定 */
.test-types {
    display: flex;
    justify-content: space-between;
    margin: 1.25rem 0;
}

/* プロジェクトページ共通スタイル */
.project-content {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    flex: 1;
}

/* プロジェクトページのスライド構造 */
.project-slide {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* フッター位置の統一 */
.project-footer {
    margin-top: auto;
    width: 100%;
    display: flex;
    justify-content: stretch;
}

.project-footer .slide-footer {
    width: 100%;
}

/* 会話シナリオ設定 */
.settings-section {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background-color: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.settings-section-title {
    font-size: 16px;
    color: var(--primary-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.conversation-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.conversation-turn {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background-color: white;
}

.turn-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background-color: #f1f5f9;
    cursor: pointer;
}

.turn-number {
    font-weight: 500;
    color: var(--primary-dark);
}

.turn-toggle {
    color: var(--text-light);
}

.turn-content {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
}

.add-conversation-btn {
    margin-top: 1rem;
    text-align: center;
}

.add-conversation-btn button {
    padding: 0.5rem 1rem;
    background-color: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.add-conversation-btn button:hover {
    background-color: rgba(37, 99, 235, 0.05);
    border-color: var(--primary-light);
}

/* 会話アクション */
.conversation-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.reset-button {
    padding: 0.5rem 0.75rem;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.reset-button i {
    margin-right: 0.25rem;
    font-size: 12px;
}

.reset-button:hover {
    background-color: #e2e8f0;
}

.ai-generate-button {
    padding: 0.5rem 0.75rem;
    background-color: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 4px;
    color: #4f46e5;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.ai-generate-button i {
    margin-right: 0.25rem;
    font-size: 12px;
}

.ai-generate-button:hover {
    background-color: rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
}

.test-type {
    text-align: center;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.test-type:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

.test-type.selected {
    background-color: rgba(37, 99, 235, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.test-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    transition: all 0.2s ease;
}

.test-type.selected .test-icon {
    background-color: rgba(37, 99, 235, 0.2);
}

.test-icon i {
    font-size: 20px;
    color: var(--primary);
}

.test-type.selected .test-icon i {
    color: var(--primary-dark);
}

.test-name {
    font-size: 13px;
}

.test-type.selected .test-name {
    font-weight: 500;
    color: var(--primary-dark);
}

.test-settings-form .factor-box {
    margin: 0.75rem 0;
    background-color: rgba(37, 99, 235, 0.03);
}

/* プロジェクト詳細ページのスタイル */
.slide-navigation {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.slide-navigation .nav-button {
    padding: 8px 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.slide-navigation .nav-button:hover {
    background-color: var(--primary-dark);
}

.slide-navigation .nav-button.disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

/* 単体のナビゲーションボタン */
.nav-button {
    padding: 8px 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
}

.nav-button:hover {
    background-color: var(--primary-dark);
}

.nav-button.disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

/* スマホ表示時のナビゲーションボタン */
@media (max-width: 768px) {
    .slide-navigation {
        bottom: 10px;
        right: 10px;
    }
    
    .slide-navigation .nav-button,
    .nav-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.project-header {
    /*display: flex;*/
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.project-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* スマホ表示時のプロジェクトヘッダー */
@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
        align-items: center;
    }
    
    .project-title {
        margin-bottom: 15px;
        width: 100%;
        text-align: center;
    }
    
    .project-title h2 {
        font-size: 18px;
        margin-right: 10px;
        white-space: normal;
        word-break: break-word;
    }
}

.project-status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.project-status-badge.dev {
    background-color: #e0f7fa;
    color: #006064;
}

.project-status-badge.test {
    background-color: #fff9c4;
    color: #f57f17;
}

.project-status-badge.staging {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.project-status-badge.prod {
    background-color: #ffebee;
    color: #b71c1c;
}

.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* スマホ表示時のプロジェクトアクション */
@media (min-width: 768px) {
    .project-header {
        display: flex;
    }

    .project-actions {
        display: flex;
        flex-direction: row;
        justify-content: flex-end;  /* 中身を右端へ */
        margin-left: auto;          /* 親の中で自分を右端へ (任意) */
        gap: 8px;                   /* ボタン間の余白 (任意) */
        height: 44px;
        min-width: 140px;
    }

    .project-actions button {
        padding: 12px 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
    }
}

.project-info-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}


.project-metrics {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.metric-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.metric-label {
    font-size: 14px;
    color: var(--text);
}

.project-description {
    margin-top: 10px;
    color: var(--text);
    line-height: 1.5;
}

.project-meta {
    margin-top: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.project-meta span {
    margin-right: 15px;
}

.section-title {
    margin: 30px 0 15px;
    font-size: 18px;
    color: var(--text);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

/* テスト実行一覧テーブル */
.test-runs-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 14px;
}

.test-runs-table th {
    background-color: rgba(37, 99, 235, 0.05);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid #e2e8f0;
}

.test-runs-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.test-runs-table tr:hover {
    background-color: rgba(37, 99, 235, 0.02);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    min-width: 80px;
}

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

.status-badge.running {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
}

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

.status-badge.failed {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--high);
}

/* ローディングスピナーのアニメーション */
/* テスト評価指標部分のスタイル */
.executive-dashboard {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    text-align: left !important;
}

.metric-card {
    background-color: white;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-header {
    background-color: rgba(37, 99, 235, 0.8);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid #e9ecef;
}

.metric-header i {
    margin-right: 8px;
    color: #ffffff;
}

.metric-body {
    padding: 20px;
    text-align: left !important;
    justify-content: flex-start !important;
}

.response-time-body {
    padding: 15px;
}

.response-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.response-time-item {
    text-align: left !important;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
}

.response-time-status-item {
    text-align: left !important;
    grid-column: span 1;
}

.response-time-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.response-time-status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.response-time-status.error {
    background-color: #ffebee;
    color: #d32f2f;
}

.response-time-status i {
    margin-right: 5px;
}

.metric-value-container {
    text-align: left !important;
    flex: 1;
}

.metric-label {
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: #212529;
}

.metric-unit {
    font-size: 16px;
    font-weight: 400;
    margin-left: 2px;
}

.metric-divider {
    width: 1px;
    background-color: #e9ecef;
    margin: 0 20px;
}

.metric-summary {
    display: flex;
    align-items: center;
    justify-content: flex-start !important;
    margin-bottom: 20px;
    text-align: left !important;
}

.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: flex-start !important;
    text-align: left !important;
}

.keyword-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    text-align: left !important;
}

.keyword-item.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.keyword-item.error {
    background-color: #ffebee;
    color: #d32f2f;
}

.keyword-text {
    margin-right: 5px;
}

.metric-empty {
    text-align: left !important;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
}

.metric-empty i {
    margin-right: 5px;
}

/* レスポンシブデザイン対応 */
@media (min-width: 768px) {
    .metric-body {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .metric-summary {
        margin-bottom: 0;
        margin-right: 20px;
    }
    
    .response-time-grid {
        justify-items: start;
    }
    
    .response-time-item {
        text-align: left;
    }
    
    .response-time-status-item {
        text-align: left;
    }
}

/* スマホ対応 */
@media (max-width: 767px) {
    .executive-dashboard {
        padding: 10px;
        text-align: left !important;
    }
    
    .metric-body {
        padding: 15px;
        flex-direction: column;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    .metric-summary {
        margin-bottom: 15px;
        width: 100%;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    .response-time-grid {
        grid-template-columns: 1fr 1fr;
        justify-items: start !important;
        text-align: left !important;
    }
    
    .response-time-status-item {
        grid-column: span 2;
        margin-top: 10px;
        text-align: left !important;
    }
    
    .keyword-list {
        justify-content: flex-start !important;
        text-align: left !important;
    }

    /* プロジェクトアクションボタンの縦並び対応 */
    .project-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
        max-width: 100%;
    }

    .project-actions .settings-button,
    .project-actions .run-button {
        width: 100%;
        text-align: center;
        padding: 10px 16px;
        border-radius: 6px;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        box-sizing: border-box;
    }
    .project-actions .run-button {
        height: 44px;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

/* プロジェクト統計カード */
.project-stats {
    display: flex;
    gap: 1.5rem;
    font-size: 14px;
    margin-top: 20px;
}

.stat-card {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 1rem;
    min-width: 120px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.stat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.stat-icon {
    font-size: 16px;
    color: var(--primary);
}

.stat-title {
    font-weight: 600;
}

.stat-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
}

.stat-actions {
    display: flex;
    gap: 1rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

.action-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.action-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.nav-button, .settings-button, .run-button {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    text-decoration: none;
}

.nav-button, .settings-button {
    background-color: #f3f4f6;
    color: var(--text);
    border: 1px solid #e5e7eb;
}

.nav-button:hover, .settings-button:hover {
    background-color: #e5e7eb;
}

.run-button {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.run-button:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* テストケースリストページのスタイル */
.test-list-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 14px;
}

.test-list-table th {
    background-color: rgba(37, 99, 235, 0.05);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid #e2e8f0;
}

.test-list-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.test-list-table tr:hover {
    background-color: rgba(37, 99, 235, 0.02);
}

.test-actions {
    display: flex;
    gap: 0.5rem;
}

.action-button {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.action-button:hover {
    color: var(--primary-dark);
}

.action-button i {
    margin-right: 5px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    gap: 0.5rem;
}

.page-button {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background-color: white;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
}

.page-button.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-button:hover:not(.active) {
    background-color: #f8fafc;
}

.project-header-container {
    margin-bottom: 1.5rem;
}

.search-filter {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.search-filter input {
    flex: 2;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.search-filter select {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.test-create-button {
    padding: 8px 15px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.test-create-button:hover {
    background-color: var(--primary-dark);
}

.test-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.test-status.done {
    background-color: var(--low);
}

.test-status.failed {
    background-color: var(--high);
}

.test-status.running {
    background-color: var(--medium);
}

.test-status.pending {
    background-color: var(--text-light);
}

/* 品質スコアバッジのスタイル */
.score-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    min-width: 40px;
    position: relative;
    cursor: pointer;
}

.score-tooltip {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 6px 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 100;
    font-size: 12px;
    white-space: nowrap;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

/* スコア情報ボタンのスタイル */
.score-info-button {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #A1A5AB;
    color: white;
    font-size: 12px;
    text-align: center;
    line-height: 16px;
    cursor: pointer;
    margin-left: 5px;
    vertical-align: middle;
}

.score-info-popup {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    width: 200px;
    z-index: 100;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.score-badge.high {
    background-color: rgba(16, 185, 129, 0.1);
    color: var(--low);
}

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

.score-badge.low {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--high);
}

/* テスト実行詳細ページのスタイル */
.test-results-conversation-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 15px;
    padding-left: 45px; /* Added padding to make room for AI avatar */
    max-height: none;
    overflow-y: visible;
    background-color: #f0f0f0;
    position: relative; /* Added for positioning context */
}

.message {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    border-radius: 8px;
    padding: 12px 15px;
}

.message-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 12px;
    color: var(--text-light);
}

.user-message .message-header {
    flex-direction: row-reverse;
}

.user-message {
    background-color: #f0f7ff;
    border-right: none;
    border-left: none;
    align-self: flex-end;
    border-radius: 20px 0 20px 20px;
    color: #000;
    max-width: 70%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
}

.ai-message {
    background-color: #FFFFFF;
    border-left: none;
    align-self: flex-start;
    border-radius: 0 20px 20px 20px;
    max-width: 70%;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    position: relative;
    padding-left: 15px;
    white-space: pre-line;
}

.ai-message::before {
    content: "\f4fb";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: -35px;
    top: 10px;
    width: 25px;
    height: 25px;
    background-color: #6c757d;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.ai-message.error {
    background-color: #fff5f5;
    border-left: none;
}

.ai-message.warning {
    background-color: #fff9e6;
    border-left: none;
}

.message-content {
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    max-width: 100%;
}

.issue-tag {
    display: inline-block;
    padding: 0px 3px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 600;
    margin-top: 4px;
    position: relative;
    cursor: help;
    overflow: visible;
}

.issue-tag.error {
    background-color: #ffebee;
    color: #d32f2f;
}

.issue-tag.warning {
    background-color: #fff8e1;
    color: #ff8f00;
}

.issue-tag.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.issue-tag::after,
.response-time-status.error[data-tooltip]::after,
.keyword-item.error[data-tooltip]::after {
    content: attr(data-tooltip);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: auto;
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.issue-tag:hover::after,
.response-time-status.error[data-tooltip]:hover::after,
.keyword-item.error[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* エグゼクティブダッシュボードスタイル */
.executive-dashboard {

}

/* キーワードリストのスタイル */
.keyword-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    overflow: visible !important;
    position: relative;
}

.keyword-item {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    position: relative;
    cursor: help;
}

.keyword-item.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.keyword-item.error {
    background-color: #ffebee;
    color: #d32f2f;
}

.keyword-text {
    margin-right: 5px;
}

/* 応答時間カード専用スタイル */
.response-time-body {
    padding: 15px;
}

.response-time-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.response-time-item {
    text-align: center;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 6px;
}

.response-time-status-item {
    text-align: center;
    grid-column: span 1;
}

.response-time-status {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.response-time-status.success {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.response-time-status.error {
    background-color: #ffebee;
    color: #d32f2f;
}

/* 応答時間アイコンのツールチップスタイル */
.response-time-status i {
    margin-right: 5px;
}

.response-time-icon {
    margin: 0 5px;
    font-size: 12px;
    cursor: help;
    position: relative;
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
}

.response-time-ok {
    color: var(--low);
}

.response-time-ng {
    color: var(--high);
}

.response-time-icon i {
    position: relative;
}

.response-time-icon i::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 100;
}

.response-time-icon i:hover::after {
    visibility: visible;
    opacity: 1;
}

/* レスポンシブデザイン対応 */

/* プロジェクト一覧テーブルのスタイル */
.projects-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 14px;
}

.projects-table th {
    background-color: rgba(37, 99, 235, 0.05);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid #e2e8f0;
}

.projects-table td {
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.projects-table tr:hover {
    background-color: rgba(37, 99, 235, 0.02);
}

.project-name-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.project-name-link:hover {
    text-decoration: underline;
}

/* タブレットサイズ向けの設定 (768px以下) */
@media (max-width: 768px) {
    .slide {
        padding: 1rem; /* パディングを縮小 */
    }
    
    .mockup {
        border-radius: 0; /* 角丸を削除 */
        box-shadow: none; /* 影を削除 */
        width: 100%; /* 幅を最大化 */
    }
    
    .mockup-header {
        display: none; /* ヘッダー部分を非表示 */
    }
    
    /* ヘッダーのサブタイトルを非表示 */
    .slide-subtitle {
        display: none;
    }
    
    /* プロジェクト詳細ページの調整 */
    .project-stats {
        flex-wrap: wrap;
    }
    
    .stat-card {
        flex: 1 1 45%;
        margin-bottom: 10px;
    }
    
    /* テーブルの調整 */
    .test-runs-table th,
    .test-runs-table td,
    .test-list-table th,
    .test-list-table td,
    .projects-table th,
    .projects-table td {
        padding: 0.5rem;
    }
    
    /* Test Run ID列と終了時間列を非表示 */
    .test-runs-table th:nth-child(1),
    .test-runs-table td:nth-child(1),
    .test-runs-table th:nth-child(5),
    .test-runs-table td:nth-child(5) {
        display: none;
    }
    
    /* テストケースリストの対象AI列を非表示 */
    .test-list-table th:nth-child(3),
    .test-list-table td:nth-child(3) {
        display: none;
    }
    
    /* プロジェクト一覧の説明列を非表示 */
    .projects-table th:nth-child(3),
    .projects-table td:nth-child(3) {
        display: none;
    }
    
    /* スコアバッジのツールチップをカスタマイズ */
    .score-tooltip {
        display: none !important; /* JSによるツールチップを完全に無効化 */
    }
    
    /* アクションボタンを縦並びにして表示 */
    .test-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-button {
        white-space: nowrap;
        padding: 0.25rem 0;
    }
    
    /* スコア情報カードのレイアウト調整 */
    #score-sample {
        display: none !important; /* スコア凡例を非表示 */
    }
    
    /* プロジェクトスコアカードを全幅表示 */
    .stat-card {
        flex: 1 1 100% !important;
        width: 100%;
    }
}

/* スマホサイズ向けの設定 (480px以下) */
@media (max-width: 480px) {
    .slide {
        padding: 0; /* パディングを削除して画面いっぱいに表示 */
    }
    
    /* slide-content project-contentを画面いっぱいに */
    .slide-content.project-content {
        width: 100%;
        padding: 0;
    }
    
    /* ヘッダー要素の調整 */
    .project-header {
        flex-direction: column; /* ヘッダー要素を縦並びに */
        align-items: flex-start;
    }
    
    .project-actions {
        margin-top: 1rem;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .nav-button, .settings-button, .run-button {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* テーブルのレスポンシブ対応 */
    .test-list-table,
    .test-runs-table,
    .projects-table {
        font-size: 12px; /* フォントサイズを縮小 */
    }
    
    /* プロジェクト一覧テーブルのAI数とテスト数列を非表示 */
    .projects-table th:nth-child(4),
    .projects-table td:nth-child(4),
    .projects-table th:nth-child(5),
    .projects-table td:nth-child(5) {
        display: none;
    }
    
    /* テーブルのアクション列を調整 */
    .projects-table th:last-child,
    .projects-table td:last-child,
    .test-list-table th:last-child,
    .test-list-table td:last-child,
    .test-runs-table th:last-child,
    .test-runs-table td:last-child {
        width: auto !important;
    }
    
    /* テスト結果詳細ページの調整 */
    .executive-summary > div {
        flex-direction: column;
    }
    
    .stat-card {
        flex: 1 1 100%;
    }
    
    /* メッセージの幅調整 */
    .user-message,
    .ai-message {
        max-width: 90%;
    }
}

/* プロジェクト関連ページ共通スタイル */

/* 1. プロジェクト一覧 > プロジェクト詳細 の位置 */
.navigation-path {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.navigation-path .nav-link {
    display: flex;
    align-items: center;
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.navigation-path .separator {
    margin: 0 8px;
    color: #6b7280;
}

.navigation-path .current {
    color: #1f2937;
    font-size: 14px;
    font-weight: 500;
}

/* 2. プロジェクト名の表示の適切さ */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.project-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

/* 3. プロジェクト一覧 > プロジェクト詳細 の外にある枠のデザイン */
.project-info-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* 4. 自動テスト開始 ボタンが右端にあること */
.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.project-actions .run-button,
.project-actions .ai-register-button,
.project-actions .test-create-button {
    /* 横幅は内容＋パディングのみ */
    flex: 0 0 auto;
    /* 左側を全部空けて右端へ */
    margin-left: auto;

    /* テキスト中央寄せ用 */
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px 15px;
    box-sizing: border-box;
    font-size: 14px;
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.project-actions .run-button:hover,
.project-actions .ai-register-button:hover,
.project-actions .test-create-button:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-title {
        margin-bottom: 15px;
        width: 100%;
    }
    
    .project-actions {
        width: 100%;
    }
    
    .project-actions .run-button,
    .project-actions .ai-register-button,
    .project-actions .test-create-button {
        padding: 6px 12px;
        font-size: 12px;
    }
}
