/* ======================================================= */
/* モダンビジネスカラーパレット & Pro-SPIRE固有スタイル */
/* ======================================================= */

:root {
    /* --- モダンビジネスカラーパレット --- */
    --primary: #2563eb;        /* プロフェッショナルブルー */
    --primary-light: #3b82f6;
    --primary-dark: #1e40af;
    
    --accent-purple: #7c3aed;  /* 深い紫 */
    --accent-pink: #db2777;    /* 深いマゼンタ */
    --accent-blue: #0284c7;    /* 濃い空色 */
    --accent-teal: #0d9488;    /* 濃いティール */
    --accent-orange: #ea580c;  /* 濃いオレンジ */
    
    --text-dark: #111827;
    --text-light: #6b7280;
    --white-bg: #ffffff;
    --light-bg: #f3f4f6;
    --border-color: #d1d5db;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 6px 0 rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px 0 rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 25px 0 rgba(0, 0, 0, 0.15);
    --radius-lg: 0.375rem;
    --radius-xl: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --font-sm: 0.9rem;
    --font-md: 0.98rem;
    --font-lg: 1.1rem;

    /* --- ステータスカラー --- */
    --success: #059669;
    --success-light: #ecfdf5;
    --warning: #d97706;
    --warning-light: #fef3c7;
    --danger: #dc2626;
    --danger-light: #fee2e2;
    --info: #0284c7;
    --info-light: #e0f2fe;
}

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

body {
    background: #f9fafb;
    color: var(--text-dark);
    font-family: 'Segoe UI', 'Inter', 'Helvetica Neue', sans-serif;
    font-size: 15.5px;
    margin: 0;
    line-height: 1.6;
}

/* --- フォームコントロール --- */
input, select, textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    outline: none;
}

/* ======================================================= */
/* ページレイアウト / フォーム構造                         */
/* ======================================================= */

.page-screen {
    background: linear-gradient(180deg, #1e3a8a 0%, #1e40af 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.page-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.brand-logo {
    max-width: 140px;
    height: auto;
    margin: 0 auto 24px;
    display: block;
}

.page-heading {
    margin-bottom: 20px;
    line-height: 1.4;
}

.brand-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.page-heading__subtitle {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
}

.page-heading__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.login-card {
    width: 100%;
    text-align: center;
}

.login-card__content {
    padding: 2rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.login-btn {
    width: 100%;
    padding: 10px 24px;
    font-size: 1rem;
}

.google-signin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 12px 24px;
    background-color: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    font-family: 'Roboto', arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.google-signin-btn:hover {
    background-color: #f7f8f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.google-signin-btn:active {
    background-color: #eef0f1;
}

.google-signin-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.login-footer {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
    text-align: left;
}

.form-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 25px;
}

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

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

.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.action-bar--center {
    justify-content: center;
}

.form-panel .action-bar .c-btn {
    width: auto;
}

.form-panel .c-btn {
    width: 100%;
}

.btn-close-invert {
    filter: invert(0.3);
}

/* ======================================================= */
/* ナビゲーション & サイドバー                          */
/* ======================================================= */

.app-container {
    display: block;
    min-height: 100vh;
}

.sidebar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 248px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    box-shadow: 6px 0 24px rgba(17, 24, 39, 0.18);
    z-index: 999;
    flex-shrink: 0;
}

.sidebar-header {
    padding: 24px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.sidebar {
    flex-grow: 1;
    padding: 16px 0;
    overflow-y: auto;
}

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

.menu-list a {
    display: block;
    padding: 10px 18px;
    margin: 5px 10px;
    background: transparent;
    border-left: 3px solid transparent;
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.menu-list a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary);
    padding-left: 24px;
}

/* --- サイドバー：開閉式サブメニュー --- */
.menu-group__details {
    margin: 5px 0;
}

.menu-group__summary {
    display: block;
    padding: 10px 18px;
    margin: 0 10px;
    border-left: 3px solid transparent;
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: all 0.3s ease;
}

/* デフォルトの三角マーカーを消して独自マーカーに差し替える */
.menu-group__summary::-webkit-details-marker {
    display: none;
}

.menu-group__summary::after {
    content: '\25BE';
    float: right;
    transition: transform 0.3s ease;
}

.menu-group__details[open] > .menu-group__summary::after {
    transform: rotate(-180deg);
}

.menu-group__summary:hover,
.menu-group__details[open] > .menu-group__summary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary);
}

.submenu-list {
    list-style: none;
    padding: 0;
    margin: 4px 0 8px;
}

.submenu-list a,
.submenu-link--disabled {
    display: block;
    padding: 8px 18px 8px 32px;
    margin: 2px 10px;
    border-left: 3px solid transparent;
    border-radius: var(--radius-lg);
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submenu-list a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-left-color: var(--primary);
    padding-left: 38px;
}

.submenu-link--disabled {
    color: rgba(255, 255, 255, 0.35);
    cursor: default;
}

.menu-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.7rem;
    font-weight: 600;
    vertical-align: middle;
}

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.logout-button {
    width: 90%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

/* ======================================================= */
/* メインコンテンツエリア                               */
/* ======================================================= */

.content-area {
    margin-left: 248px;
    padding: 34px 36px;
    overflow-y: auto;
    min-height: 100vh;
}

.content-area .card {
    border-color: var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.content-area .card .card-body {
    padding: var(--space-lg);
}

.content-area .form-label {
    font-size: var(--font-sm);
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.45rem;
}

.content-area .text-muted {
    color: #64748b !important;
}

.main-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.6rem;
}

/* テーブル内スクロール用コンテナ */
.c-table-scroll-container {
    max-height: 300px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.c-table-scroll-container table {
    margin-bottom: 0;
}

.c-table-scroll-container thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #f3f4f6;
}

/* ======================================================= */
/* カード / グリッド                                       */
/* ======================================================= */

.card-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.c-card--accent {
    background: var(--white-bg);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.c-card--accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.c-card--accent:hover {
    transform: none;
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.c-card--accent h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    min-height: 80px;
    font-size: var(--font-sm);
    color: var(--text-light);
}

/* ======================================================= */
/* ボタン                                                 */
/* ======================================================= */

.btn {
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: var(--font-md);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
}

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

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

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

.btn-danger:hover {
    box-shadow: var(--shadow-md);
}

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

.btn-success:hover {
    box-shadow: var(--shadow-md);
}

/* ======================================================= */
/* フォーム & テーブル                                   */
/* ======================================================= */

.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white-bg);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white-bg);
}

table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    font-size: var(--font-sm);
    letter-spacing: 0.01em;
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: var(--font-md);
}

table tbody tr {
    transition: all 0.2s ease;
}

table tbody tr:hover {
    background: var(--light-bg);
}

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
}

.form-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white-bg);
}

.form-table thead {
    background: var(--primary);
    color: white;
}

.form-table th {
    padding: 14px;
    text-align: left;
    font-weight: 700;
}

.form-table td {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
}

.form-table tbody tr:hover {
    background: var(--light-bg);
}

/* ======================================================= */
/* アラート                                               */
/* ======================================================= */

.alert {
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 5px solid;
}

.alert-success {
    background: var(--success-light);
    border-left-color: var(--success);
    color: #065f46;
}

.alert-danger {
    background: var(--danger-light);
    border-left-color: var(--danger);
    color: #7f1d1d;
}

.alert-warning {
    background: var(--warning-light);
    border-left-color: var(--warning);
    color: #78350f;
}

.alert-info {
    background: var(--info-light);
    border-left-color: var(--info);
    color: #164e63;
}

.alert-dismissible .btn-close {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert-dismissible .btn-close:hover {
    opacity: 1;
}

/* ======================================================= */
/* Badge                                                  */
/* ======================================================= */

.badge {
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.badge-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

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

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

.badge-info {
    background: var(--info);
    color: white;
}

.badge-light {
    background: var(--light-bg);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

/* ======================================================= */
/* アコーディオン                                          */
/* ======================================================= */

.accordion-button {
    padding: 16px 20px;
    background: var(--white-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.accordion-button:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-color: var(--primary);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.accordion-body {
    padding: 24px;
    background: var(--light-bg);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
}

/* ======================================================= */
/* レスポンシブ設計                                      */
/* ======================================================= */

@media (max-width: 768px) {
    .sidebar-wrapper {
        position: relative;
        width: 100%;
        height: auto;
        min-height: auto;
        top: auto;
        left: auto;
    }

    .app-container {
        display: block;
    }

    .content-area {
        margin-left: 0;
        padding: 22px 14px;
    }

    .main-title {
        font-size: 23px;
        margin-bottom: 20px;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 20px;
    }

    table th, table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }

    .form-table th, .form-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .content-area {
        padding: 14px 12px;
    }

    .main-title {
        font-size: 19px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 0.95rem;
    }

    .action-bar {
        flex-direction: column;
    }

    .action-bar button,
    .action-bar .c-btn {
        width: 100%;
    }
}

/* ======================================================= */
/* ユーティリティ                                        */
/* ======================================================= */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-4 { margin-top: 24px; }
.mb-4 { margin-bottom: 24px; }
.gap-20 { gap: 20px; }
.hidden { display: none !important; }

.bg-light-green {
    background: linear-gradient(135deg, #f0fdf4, #f0fdf4);
}

.bg-gradient-purple-blue {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
}

/* ======================================================= */
/* 共通コンポーネント/ユーティリティ                      */
/* ======================================================= */

.c-surface--info {
    background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
    border: 1px solid #bfdbfe;
}

.c-table__head {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.c-table__head th {
    font-size: var(--font-sm);
    font-weight: 700;
}

.c-alert--success {
    background: var(--success-light);
    border-left: 5px solid var(--success);
    color: #065f46;
    white-space: pre-wrap;
}

.c-alert--danger {
    background: var(--danger-light);
    border-left: 5px solid var(--danger);
    color: #7f1d1d;
    white-space: pre-wrap;
}

.c-alert--info {
    background: var(--info-light);
    border-left: 5px solid var(--info);
    color: #164e63;
    white-space: pre-wrap;
}

.c-alert--warning {
    background: var(--warning-light);
    border-left: 5px solid var(--warning);
    color: #78350f;
    white-space: pre-wrap;
}

.c-alert--hint {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: var(--radius-lg);
    color: #065f46;
    white-space: pre-wrap;
}

.u-text-brand {
    color: var(--primary-dark) !important;
}

.u-text-success {
    color: #059669 !important;
}

.u-text-success-dark {
    color: #065f46 !important;
}

.u-text-danger {
    color: var(--danger) !important;
}

.u-required {
    color: var(--danger);
    font-weight: 700;
    font-size: 0.85em;
}

.modal-header-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.modal-header-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
}

.u-note {
    display: block;
    margin-top: 1rem;
    color: var(--text-light);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: left;
}

.u-rounded-top-start {
    border-top-left-radius: var(--radius-lg);
}

.u-rounded-top-end {
    border-top-right-radius: var(--radius-lg);
}

.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    color: #475569;
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 0.7rem 1rem;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-dark);
    background: #eef2ff;
}

.nav-tabs .nav-link.active {
    color: var(--primary-dark);
    background: #eef2ff;
    border-bottom-color: var(--primary);
}

.c-card {
    background: var(--white-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.c-card__header {
    background: var(--primary);
    color: white;
    padding: 0.9rem 1.2rem;
}

.c-card__title {
    margin: 0;
    font-weight: 700;
    font-size: 1.05rem;
}

.c-card__body {
    padding: 1rem;
}

.c-card__body--flush {
    padding: 0;
}

.c-btn {
    padding: 9px 18px;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: var(--font-md);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.c-btn--lg {
    padding: 12px 22px;
    font-size: 1rem;
}

.c-btn--sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

.c-btn--primary {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.c-btn--primary:hover {
    box-shadow: var(--shadow-lg);
}

.c-btn--success {
    background: var(--success);
    color: white;
    box-shadow: var(--shadow-md);
}

.c-btn--success:hover {
    box-shadow: var(--shadow-lg);
}

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

.c-btn--secondary:hover {
    background: var(--border-color);
    transform: translateY(-2px);
}

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

.c-btn--danger:hover {
    box-shadow: var(--shadow-md);
}

.c-alert {
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    border-left: 5px solid transparent;
}

.c-alert--dismissible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.c-table--fixed {
    table-layout: fixed;
    width: 100%;
}

.c-table-wrap {
    overflow-x: auto;
}

.c-flow-arrow {
    font-size: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    position: relative;
}

.c-flow-arrow::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-top: 50px solid #2563eb;
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.3));
}

@keyframes arrow-pulse {
    0%, 100% {
        transform: translateY(-10px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(0px);
        opacity: 1;
    }
}

.c-card--tab-panel {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.u-hidden {
    display: none;
}

.u-checkbox-on-dark {
    accent-color: white;
}

.dashboard-caption {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.dashboard-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dashboard-kpi {
    background: var(--white-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1rem 1.1rem;
    box-shadow: var(--shadow-sm);
}

.dashboard-kpi__label {
    margin: 0 0 0.4rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

.dashboard-kpi__value {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-dark);
}

.dashboard-section {
    margin-bottom: 1rem;
}

.dashboard-progress-note {
    margin: 0.85rem 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ======================================================= */
/* カードヘッダー 内部レイアウト                           */
/* ======================================================= */

/* c-card__header 内で flex 並びが必要なときのコンテナ */
.c-card__header-content {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* ヘッダー内の小タグバッジ（着色ヘッダー上の半透明ピル） */
.c-header-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 99px;
    white-space: nowrap;
}

/* ヘッダー内のサブタイトルテキスト */
.c-header-sub {
    font-size: 1rem;
    font-weight: 700;
}

/* ======================================================= */
/* KPI 行 (ラベル / 値 ペア)                              */
/* ======================================================= */

/* ラベルと値を左右に並べる行。カード内の詳細表示に利用 */
.c-kpi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-color);
}

.c-kpi-row--noborder {
    border-bottom: none;
}

/* KPI のラベル（左側の小さいテキスト） */
.c-kpi__label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
}

/* KPI の値（右側または中央の大きいテキスト） */
.c-kpi__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* 汎用区切り線（<hr> に適用） */
.c-divider {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 0.35rem 0;
}

/* KPI セクションのフッター（達成率 + ステータスバッジ行） */
.c-kpi-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
}

/* フッター内の主要レート表示 */
.c-kpi-footer__rate {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ======================================================= */
/* タブナビ                                               */
/* ======================================================= */

/* カード内でタブを使う場合のナビゲーションラッパー */
.c-tab-nav {
    padding: 0.75rem 1rem 0;
    background: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
}

.c-tab-nav .nav-tabs {
    border-bottom: none;
}

/* ======================================================= */
/* メトリクスバー (横並び KPI 概要)                        */
/* ======================================================= */

/* 複数の KPI 指標を等幅で横並びにするコンテナ */
.c-metrics-bar {
    display: flex;
    border-bottom: 2px solid var(--border-color);
}

.c-metrics-bar__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    border-right: 1px solid var(--border-color);
}

.c-metrics-bar__item:last-child {
    border-right: none;
}


