/* ──────────────────────────────────────────────────────────────────────────────
   評価シートアプリ - 共通CSS (モバイルファースト)
   ────────────────────────────────────────────────────────────────────────────── */

/* --------------------------------------------------------------------------
   リセット & ベース
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body.pr-app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   カラーテーマ (CSS変数)
   -------------------------------------------------------------------------- */
:root {
    --pr-primary: #2d5016;
    --pr-primary-light: #3a6b1e;
    --pr-primary-dark: #1e3a0f;
    --pr-accent: #d4a843;
    --pr-bg: #f0f2f5;
    --pr-card-bg: #ffffff;
    --pr-text: #1a1a2e;
    --pr-text-muted: #6b7280;
    --pr-border: #e5e7eb;
    --pr-error: #dc3545;
    --pr-success: #28a745;
    --pr-radius: 12px;
    --pr-shadow: 3px 4px 12px rgba(0, 0, 0, 0.08);
    --pr-shadow-lg: 5px 8px 20px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------------------------
   ヘッダー
   -------------------------------------------------------------------------- */
.pr-header {
    padding: 1rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--pr-primary), var(--pr-primary-light));
    color: white;
}

.pr-header__logo {
    height: 2.5rem;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 0.25rem;
}

.pr-header__subtitle {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    opacity: 0.85;
}

.pr-header__app-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   メインコンテンツ
   -------------------------------------------------------------------------- */
.pr-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

/* --------------------------------------------------------------------------
   カード
   -------------------------------------------------------------------------- */
.pr-card {
    background: var(--pr-card-bg);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    width: 100%;
    max-width: 400px;
    overflow: hidden;
}

.pr-card__header {
    background: linear-gradient(135deg, var(--pr-primary), var(--pr-primary-light));
    padding: 1.25rem 1.5rem;
    color: white;
    text-align: center;
}

.pr-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.pr-card__body {
    padding: 1.5rem;
}

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

.pr-form-group:last-child {
    margin-bottom: 0;
}

.pr-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--pr-text);
    margin-bottom: 0.4rem;
}

.pr-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid var(--pr-border);
    border-radius: 8px;
    background: #fafbfc;
    color: var(--pr-text);
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.pr-input:focus {
    outline: none;
    border-color: var(--pr-primary);
    background: white;
    box-shadow: 0 0 0 3px rgba(45, 80, 22, 0.12);
}

.pr-input::placeholder {
    color: #9ca3af;
}

/* --------------------------------------------------------------------------
   ボタン
   -------------------------------------------------------------------------- */
.pr-btn {
    display: block;
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: 0.05em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.pr-btn--primary {
    background: linear-gradient(135deg, var(--pr-primary), var(--pr-primary-light));
    color: white;
    box-shadow: 3px 4px 10px rgba(45, 80, 22, 0.3);
}

.pr-btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 4px 6px 14px rgba(45, 80, 22, 0.4);
}

.pr-btn--primary:active {
    transform: translateY(0);
}

.pr-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* --------------------------------------------------------------------------
   エラーメッセージ
   -------------------------------------------------------------------------- */
.pr-error {
    display: none;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--pr-error);
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 8px;
    text-align: center;
}

.pr-error.show {
    display: block;
}

/* --------------------------------------------------------------------------
   フッター
   -------------------------------------------------------------------------- */
.pr-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid var(--pr-border);
    background: white;
}

.pr-footer__text {
    font-size: 0.8rem;
    color: var(--pr-text-muted);
}

/* --------------------------------------------------------------------------
   ローディング
   -------------------------------------------------------------------------- */
.pr-loading {
    display: none;
    text-align: center;
    padding: 0.5rem 0;
}

.pr-loading.show {
    display: block;
}

.pr-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid var(--pr-border);
    border-top-color: var(--pr-primary);
    border-radius: 50%;
    animation: pr-spin 0.6s linear infinite;
}

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

/* --------------------------------------------------------------------------
   アニメーション
   -------------------------------------------------------------------------- */
@keyframes pr-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pr-card {
    animation: pr-fadeInUp 0.5s ease-out;
}

/* --------------------------------------------------------------------------
   確認モーダル
   -------------------------------------------------------------------------- */
.pr-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
    animation: pr-fadeIn 0.2s ease-out;
}

@keyframes pr-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pr-confirm-modal {
    background: #fff;
    border-radius: 20px;
    border: 2px solid #00c8d5;
    padding: 36px 28px 28px;
    text-align: center;
    width: 100%;
    max-width: 320px;
    animation: pr-fadeInUp 0.3s ease-out;
}

.pr-confirm-modal__icon {
    margin-bottom: 20px;
}

.pr-confirm-modal__text {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #40405a;
    margin-bottom: 8px;
}

.pr-confirm-modal__sub {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    margin-bottom: 24px;
}

.pr-confirm-modal__actions {
    display: flex;
    gap: 12px;
}

.pr-confirm-modal__btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 50px;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: transform 0.15s;
    -webkit-appearance: none;
    appearance: none;
}

.pr-confirm-modal__btn:hover {
    transform: translateY(-1px);
}

.pr-confirm-modal__btn--yes {
    background: #4db8e8;
    box-shadow: 3px 3px 10px rgba(77, 184, 232, 0.4);
}

.pr-confirm-modal__btn--no {
    background: #e85757;
    box-shadow: 3px 3px 10px rgba(232, 87, 87, 0.4);
}

/* --------------------------------------------------------------------------
   情報ボタン (?) + 説明ポップアップ
   -------------------------------------------------------------------------- */
.pr-info-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #00c8d5;
    background: #fff;
    color: #00c8d5;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    -webkit-appearance: none;
    appearance: none;
}

.pr-info-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 24px;
    animation: pr-fadeIn 0.2s ease-out;
}

.pr-info-overlay[hidden] {
    display: none;
}

.pr-info-modal {
    background: #fff;
    border-radius: 20px;
    border: 2px solid #00c8d5;
    width: 100%;
    max-width: 360px;
    max-height: 80vh;
    overflow-y: auto;
    animation: pr-fadeInUp 0.3s ease-out;
}

.pr-info-modal__header {
    background: linear-gradient(to left, #00d6cf, #00c8d5);
    color: #fff;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 20px;
    border-radius: 18px 18px 0 0;
    letter-spacing: 1px;
}

.pr-info-modal__body {
    padding: 20px;
}

.pr-info-modal__section-title {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #40405a;
    margin: 16px 0 8px;
}

.pr-info-modal__section-title:first-child {
    margin-top: 0;
}

.pr-info-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
}

.pr-info-table th {
    background: #f0f0f0;
    font-weight: 600;
    color: #40405a;
    padding: 8px 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.pr-info-table td {
    padding: 8px 12px;
    color: #555;
    border-bottom: 1px solid #eee;
}

/* 1列目(日付など短い識別子)は折り返さない */
.pr-info-table td:first-child {
    white-space: nowrap;
}

.pr-info-table tr:last-child td {
    border-bottom: none;
}

.pr-info-table__num {
    text-align: right;
    white-space: nowrap;
}

.pr-detail-legend {
    margin: 12px 0 0;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 13px;
    color: #2563eb;
}

.pr-detail-empty {
    margin: 0;
    padding: 12px;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 13px;
    color: #888;
    text-align: center;
}

.pr-info-list {
    margin: 0;
    padding-left: 20px;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 13px;
    color: #555;
    line-height: 1.8;
}

.pr-info-modal__close {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    padding: 12px;
    border: none;
    border-radius: 50px;
    background: #4db8e8;
    box-shadow: 3px 3px 10px rgba(77, 184, 232, 0.4);
    color: #fff;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

/* --------------------------------------------------------------------------
   方針共有点: クリック可能な回数
   -------------------------------------------------------------------------- */
.pr-policy-count {
    cursor: pointer;
    color: #00a0aa;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.pr-policy-count__icon {
    font-size: 16px;
    color: #00a0aa;
}

/* --------------------------------------------------------------------------
   メイン (上寄せバリアント: ダッシュボード等)
   -------------------------------------------------------------------------- */
.pr-main--top {
    justify-content: flex-start;
}

/* --------------------------------------------------------------------------
   ユーザーバー
   -------------------------------------------------------------------------- */
.pr-user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 500px;
    background: var(--pr-card-bg);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    animation: pr-fadeInUp 0.4s ease-out;
}

.pr-user-bar__info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.pr-user-bar__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pr-text);
}

.pr-user-bar__meta {
    font-size: 0.75rem;
    color: var(--pr-text-muted);
}

.pr-user-bar__logout {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--pr-text-muted);
    background: none;
    border: 1px solid var(--pr-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.pr-user-bar__logout:hover {
    color: var(--pr-error);
    border-color: var(--pr-error);
}

/* --------------------------------------------------------------------------
   セクション
   -------------------------------------------------------------------------- */
.pr-section {
    width: 100%;
    max-width: 500px;
    margin-bottom: 1.5rem;
    animation: pr-fadeInUp 0.5s ease-out;
}

.pr-section__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pr-primary);
    margin-bottom: 0.6rem;
    padding-left: 0.25rem;
}

/* --------------------------------------------------------------------------
   シート一覧
   -------------------------------------------------------------------------- */
.pr-sheet-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.pr-sheet-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--pr-card-bg);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: var(--pr-text);
    transition: transform 0.15s, box-shadow 0.15s;
}

.pr-sheet-item:hover {
    transform: translateY(-1px);
    box-shadow: var(--pr-shadow-lg);
}

.pr-sheet-item:active {
    transform: translateY(0);
}

.pr-sheet-item__period {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.pr-sheet-item__name {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.pr-sheet-item__detail {
    flex: 1;
    display: flex;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--pr-text-muted);
}

.pr-sheet-item__arrow {
    font-size: 1.4rem;
    color: var(--pr-text-muted);
    line-height: 1;
}

/* --------------------------------------------------------------------------
   空状態
   -------------------------------------------------------------------------- */
.pr-empty {
    background: var(--pr-card-bg);
    border-radius: var(--pr-radius);
    padding: 2rem 1rem;
    text-align: center;
}

.pr-empty__text {
    font-size: 0.85rem;
    color: var(--pr-text-muted);
}

/* --------------------------------------------------------------------------
   新規作成プロンプト
   -------------------------------------------------------------------------- */
.pr-create-prompt {
    background: var(--pr-card-bg);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    padding: 1.25rem 1rem;
    text-align: center;
    border: 2px dashed var(--pr-accent);
}

.pr-create-prompt__text {
    font-size: 0.85rem;
    color: var(--pr-text);
    margin-bottom: 0.85rem;
    line-height: 1.5;
}

.pr-create-prompt__btn {
    display: inline-block;
    width: auto;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
}

/* --------------------------------------------------------------------------
   カード (幅広バリアント)
   -------------------------------------------------------------------------- */
.pr-card--wide {
    max-width: 500px;
}

/* --------------------------------------------------------------------------
   フォーム表示値 (読み取り専用テキスト)
   -------------------------------------------------------------------------- */
.pr-form-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--pr-text);
    padding: 0.6rem 0;
}

/* --------------------------------------------------------------------------
   ハブメニュー (シート詳細画面)
   -------------------------------------------------------------------------- */
.pr-hub-menu {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: pr-fadeInUp 0.5s ease-out;
}

.pr-hub-menu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--pr-card-bg);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: var(--pr-text);
    transition: transform 0.15s, box-shadow 0.15s;
}

a.pr-hub-menu__item:hover {
    transform: translateY(-1px);
    box-shadow: var(--pr-shadow-lg);
}

a.pr-hub-menu__item:active {
    transform: translateY(0);
}

.pr-hub-menu__item--disabled {
    opacity: 0.5;
    cursor: default;
}

.pr-hub-menu__label {
    font-size: 0.95rem;
    font-weight: 600;
}

.pr-hub-menu__arrow {
    font-size: 1.4rem;
    color: var(--pr-text-muted);
    line-height: 1;
}

.pr-hub-menu__soon {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--pr-text-muted);
    background: var(--pr-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 10px;
}

/* --------------------------------------------------------------------------
   プロフィールサマリー (作成画面の基本情報)
   -------------------------------------------------------------------------- */
.pr-profile-summary {
    text-align: center;
    padding: 0.5rem 0 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--pr-border);
}

.pr-profile-summary__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.85rem;
    border-radius: 20px;
    background: rgba(45, 80, 22, 0.1);
    color: var(--pr-primary);
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.pr-profile-summary__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pr-text);
    margin-bottom: 0.2rem;
}

.pr-profile-summary__meta {
    font-size: 0.8rem;
    color: var(--pr-text-muted);
}

/* --------------------------------------------------------------------------
   ラジオボタングループ
   -------------------------------------------------------------------------- */
.pr-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pr-radio-group--inline {
    flex-wrap: nowrap;
}

.pr-radio {
    position: relative;
    cursor: pointer;
}

.pr-radio input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pr-radio__label {
    display: block;
    padding: 0.5rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pr-text-muted);
    background: #fafbfc;
    border: 2px solid var(--pr-border);
    border-radius: 8px;
    transition: all 0.2s;
    text-align: center;
    min-width: 3.5rem;
}

.pr-radio input:checked + .pr-radio__label {
    color: white;
    background: #2ec4b6;
    border-color: #2ec4b6;
    font-weight: 600;
}

/* 各選択肢を等幅にする (例: ○（実施） / ×（未実施）) */
.pr-radio-group--equal .pr-radio {
    flex: 1 1 0;
}

.pr-radio-group--equal .pr-radio__label {
    width: 100%;
}

/* --------------------------------------------------------------------------
   詳細ヘッダー (戻るボタン付き)
   -------------------------------------------------------------------------- */
.pr-header--detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

.pr-header__back {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
    white-space: nowrap;
}

.pr-header__back:hover {
    background: rgba(255, 255, 255, 0.15);
}

.pr-header__center {
    flex: 1;
    text-align: center;
}

.pr-header__spacer {
    width: 3.5rem;
}

/* --------------------------------------------------------------------------
   シート情報
   -------------------------------------------------------------------------- */
.pr-sheet-info {
    width: 100%;
    max-width: 500px;
    background: var(--pr-card-bg);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    animation: pr-fadeInUp 0.4s ease-out;
}

.pr-sheet-info__name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--pr-text);
    margin-bottom: 0.2rem;
}

.pr-sheet-info__meta {
    font-size: 0.8rem;
    color: var(--pr-text-muted);
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   評価モードバッジ
   -------------------------------------------------------------------------- */
.pr-eval-mode-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.pr-eval-mode-badge--self {
    background: rgba(45, 80, 22, 0.1);
    color: var(--pr-primary);
}

.pr-eval-mode-badge--supervisor {
    background: rgba(212, 168, 67, 0.15);
    color: #8b6914;
}

/* --------------------------------------------------------------------------
   月タブ
   -------------------------------------------------------------------------- */
.pr-month-tabs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.35rem;
    width: 100%;
    max-width: 500px;
    margin-bottom: 1rem;
    animation: pr-fadeInUp 0.5s ease-out;
}

.pr-month-tab {
    padding: 0.55rem 0;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--pr-text-muted);
    background: var(--pr-card-bg);
    border: 2px solid var(--pr-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.pr-month-tab:hover {
    border-color: var(--pr-primary-light);
    color: var(--pr-text);
}

.pr-month-tab--active {
    background: var(--pr-primary);
    color: white;
    border-color: var(--pr-primary);
    font-weight: 600;
}

.pr-month-tab--filled::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pr-success);
}

.pr-month-tab--active.pr-month-tab--filled::after {
    background: var(--pr-success);
}

.pr-month-tab--other-filled::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f5a623;
}

/* ---------- 採点基準ヘルプ ---------- */
.pr-score-guide {
    display: flex;
    background: #f7f7f8;
    border-radius: 10px;
    margin-bottom: 12px;
    max-width: 480px;
    width: 100%;
    overflow: hidden;
}

.pr-score-guide__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0 14px;
    font-family: 'M PLUS 1', sans-serif;
    position: relative;
}

/* 区切り線なし */

.pr-score-guide__stars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1px;
    margin-bottom: 2px;
    height: 14px;
}

.pr-star {
    display: block;
}

.pr-star--sm {
    width: 10px;
    height: 10px;
}

.pr-star--lg {
    width: 14px;
    height: 14px;
    margin-top: -3px;
    align-self: flex-start;
}

.pr-score-guide__number {
    font-size: 20px;
    font-weight: 700;
    color: #f6778a;
    line-height: 1.2;
}

.pr-score-guide__label {
    font-size: 12px;
    font-weight: 400;
    color: #555;
    line-height: 1;
    margin-top: 2px;
}

/* --------------------------------------------------------------------------
   評価フォーム
   -------------------------------------------------------------------------- */
.pr-eval-form {
    width: 100%;
    max-width: 500px;
    animation: pr-fadeInUp 0.6s ease-out;
}

.pr-eval-item {
    background: var(--pr-card-bg);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pr-eval-item__label {
    flex: 1;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pr-text);
    line-height: 1.4;
}

.pr-eval-item__input {
    width: 4rem;
    text-align: center;
    padding: 0.6rem 0.4rem;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   保存ボタン領域
   -------------------------------------------------------------------------- */
.pr-eval-actions {
    margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   成功メッセージ
   -------------------------------------------------------------------------- */
.pr-success {
    display: none;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--pr-success);
    background: rgba(40, 167, 69, 0.08);
    border: 1px solid rgba(40, 167, 69, 0.2);
    border-radius: 8px;
    text-align: center;
}

.pr-success.show {
    display: block;
}

/* --------------------------------------------------------------------------
   業績評価カード
   -------------------------------------------------------------------------- */
.pr-biz-card {
    background: var(--pr-card-bg);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.pr-biz-card__header {
    background: linear-gradient(135deg, var(--pr-primary), var(--pr-primary-light));
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.pr-biz-card__body {
    padding: 1rem;
}

.pr-biz-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--pr-border);
}

.pr-biz-row:last-child {
    border-bottom: none;
}

.pr-biz-row__label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pr-text);
}

.pr-biz-row__value {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--pr-primary);
}

.pr-biz-row__input {
    width: 7rem;
    text-align: right;
    padding: 0.5rem 0.6rem;
    flex-shrink: 0;
}

.pr-biz-calc {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0 0;
    margin-top: 0.5rem;
    border-top: 2px solid var(--pr-border);
}

.pr-biz-calc__item {
    flex: 1;
    text-align: center;
}

.pr-biz-calc__label {
    display: block;
    font-size: 0.75rem;
    color: var(--pr-text-muted);
    margin-bottom: 0.2rem;
}

.pr-biz-calc__value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pr-primary);
}

.pr-biz-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--pr-card-bg);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    padding: 0.85rem 1.25rem;
    margin-bottom: 0.75rem;
}

.pr-biz-total__label {
    font-size: 0.95rem;
    font-weight: 600;
}

.pr-biz-total__value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pr-primary);
}

/* --------------------------------------------------------------------------
   タブレット ポートレート (768px〜)
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
    .pr-main {
        padding: 2.5rem 2rem;
    }

    .pr-card {
        max-width: 460px;
        box-shadow: var(--pr-shadow-lg);
    }

    .pr-card--wide {
        max-width: 640px;
    }

    .pr-user-bar,
    .pr-section {
        max-width: 640px;
    }

    .pr-sheet-info,
    .pr-month-tabs,
    .pr-eval-form,
    .pr-hub-menu {
        max-width: 640px;
    }

    .pr-hub-menu__item {
        padding: 1.15rem 1.5rem;
    }

    .pr-hub-menu__label {
        font-size: 1rem;
    }

    .pr-eval-item {
        padding: 1rem 1.25rem;
    }

    .pr-eval-item__label {
        font-size: 0.9rem;
    }

    .pr-biz-card__header {
        font-size: 0.95rem;
        padding: 0.85rem 1.25rem;
    }

    .pr-biz-row__label {
        font-size: 0.9rem;
    }

    .pr-reveal-section {
        margin-top: 24px;
    }
}

/* --------------------------------------------------------------------------
   タブレット ランドスケープ (1024px〜)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
    .pr-card {
        max-width: 480px;
    }

    .pr-card--wide {
        max-width: 720px;
    }

    .pr-user-bar,
    .pr-section {
        max-width: 720px;
    }

    .pr-sheet-info,
    .pr-month-tabs,
    .pr-eval-form,
    .pr-hub-menu {
        max-width: 720px;
    }
}

/* --------------------------------------------------------------------------
   上司選択 (オートコンプリート + タグ)
   -------------------------------------------------------------------------- */
.pr-supervisor-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pr-supervisor-input-wrap {
    position: relative;
}

.pr-autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #d1d5db;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 3px 4px 10px rgba(0, 0, 0, 0.1);
}

.pr-autocomplete-dropdown.show {
    display: block;
}

.pr-autocomplete-item {
    padding: 10px 12px;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.pr-autocomplete-item:last-child {
    border-bottom: none;
}

.pr-autocomplete-item:active,
.pr-autocomplete-item.highlighted {
    background: #f3f4f6;
}

.pr-autocomplete-item mark {
    background: rgba(89, 89, 191, 0.15);
    color: #f6778a;
    font-weight: 600;
}

.pr-autocomplete-item__kid {
    color: #888;
    font-size: 0.85em;
    margin-left: 4px;
}

.pr-supervisor-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pr-supervisor-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #e8e0d8;
    color: #1a1a2e;
    border-radius: 16px;
    font-size: 0.82rem;
    font-weight: 500;
}

.pr-supervisor-tag__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: none;
    background: rgba(0, 0, 0, 0.15);
    color: #1a1a2e;
    border-radius: 50%;
    font-size: 0.7rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.pr-supervisor-tag__remove:active {
    background: rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   月タブ - 開示済みステータス
   -------------------------------------------------------------------------- */
.pr-month-tab--opened {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

.pr-month-tab--opened::after {
    content: none;
}

/* --------------------------------------------------------------------------
   相手の評価 (開示セクション)
   -------------------------------------------------------------------------- */
.pr-reveal-section {
    margin-top: 20px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.06);
}

.pr-reveal-section__header {
    padding: 12px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
}

.pr-reveal-section__pending {
    padding: 24px 16px;
    text-align: center;
    font-size: 0.85rem;
    color: #999;
}

.pr-reveal-section__scores {
    padding: 8px 0;
}

.pr-reveal-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.pr-reveal-row:last-child {
    border-bottom: none;
}

.pr-reveal-row__label {
    font-size: 0.85rem;
    color: #555;
    flex: 1;
}

.pr-reveal-row__value {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    min-width: 32px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   ダッシュボード - KPIスコアカード
   -------------------------------------------------------------------------- */
.pr-scorecard {
    padding: 0.75rem 1rem;
}

/* 総合計 */
.pr-scorecard__hero {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.6rem;
    background: rgba(45, 80, 22, 0.07);
    border-radius: 8px;
}

.pr-scorecard__hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pr-text-muted);
}

.pr-scorecard__hero-num {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--pr-primary);
    line-height: 1;
}

.pr-scorecard__hero-unit {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--pr-text-muted);
}

/* カテゴリ別 KPI グリッド */
.pr-scorecard__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
}

.pr-scorecard__kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.45rem 0.25rem;
    background: #f6f8f4;
    border-radius: 8px;
    border: 1px solid rgba(45, 80, 22, 0.08);
}

.pr-scorecard__kpi-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--pr-primary-dark);
    line-height: 1.2;
}

.pr-scorecard__kpi-label {
    font-size: 0.62rem;
    font-weight: 500;
    color: var(--pr-text-muted);
    margin-top: 0.1rem;
    white-space: nowrap;
}

/* 未入力状態 */
.pr-scorecard__kpi--empty {
    background: #fafafa;
    border-color: var(--pr-border);
}

.pr-scorecard__kpi--empty .pr-scorecard__kpi-val {
    color: #ccc;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   ダッシュボード - シートカード (上司表示付き)
   -------------------------------------------------------------------------- */
.pr-sheet-card {
    background: var(--pr-card-bg);
    border-radius: var(--pr-radius);
    box-shadow: var(--pr-shadow);
    overflow: hidden;
}

.pr-sheet-card .pr-sheet-item {
    box-shadow: none;
    border-radius: 0;
}

/* --------------------------------------------------------------------------
   ダッシュボード - 上司情報
   -------------------------------------------------------------------------- */
.pr-sheet-supervisors {
    padding: 0 1rem 0.75rem;
}

.pr-sheet-supervisors__display {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
}

.pr-sheet-supervisors__label {
    color: var(--pr-text-muted);
    white-space: nowrap;
    flex-shrink: 0;
}

.pr-sheet-supervisors__names {
    color: var(--pr-text);
    font-weight: 500;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pr-sheet-supervisors__edit-btn {
    padding: 0.2rem 0.6rem;
    font-size: 0.72rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--pr-primary);
    background: none;
    border: 1px solid var(--pr-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.pr-sheet-supervisors__edit-btn:hover {
    background: rgba(45, 80, 22, 0.08);
}

/* --------------------------------------------------------------------------
   ダッシュボード - 上司編集エリア
   -------------------------------------------------------------------------- */
.pr-sheet-supervisors__editor {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--pr-border);
}

.pr-sheet-supervisors__editor .pr-input {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
}

.pr-sheet-supervisors__actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   ボタン - 小バリアント
   -------------------------------------------------------------------------- */
.pr-btn--sm {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    width: auto;
    flex: 1;
}

/* --------------------------------------------------------------------------
   ボタン - アウトラインバリアント
   -------------------------------------------------------------------------- */
.pr-btn--outline {
    background: none;
    color: var(--pr-text-muted);
    border: 1px solid var(--pr-border);
}

.pr-btn--outline:hover {
    background: var(--pr-bg);
}

/* ==========================================================================
   ログイン画面 専用スタイル (Figmaデザイン準拠)
   ========================================================================== */

/* ページ全体 */
.pr-login-page {
    background: #fff;
    overflow-x: hidden;
}

/* ---------- ヘッダー (大型・角丸) ---------- */
.pr-login-header {
    background: linear-gradient(to top, #13ccc6, #16bcc7);
    border-radius: 0 0 30px 30px;
    min-height: 50svh;  /* svh = キーボード表示に影響されない固定ビューポート高さ */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 16px 100px;
    text-align: center;
    position: relative;
    box-shadow: 2px 9px 14.5px rgba(0, 0, 0, 0.05);
}

.pr-login-header__company {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
}

.pr-login-header__divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin-bottom: 24px;
}

.pr-login-header__icon-area {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.pr-login-header__icon {
    width: 70px;
    height: auto;
}

.pr-login-header__title {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 6px;
}

/* ---------- メインコンテンツ ---------- */
.pr-login-main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0 27px 2rem;
    margin-top: -80px;
    position: relative;
    z-index: 1;
}

/* ---------- カード ---------- */
.pr-login-card {
    background: #f7f7f8;
    border-radius: 15px;
    width: 100%;
    max-width: 336px;
    animation: pr-fadeInUp 0.5s ease-out;
}

.pr-login-card__body {
    padding: 31px 24px;
}

/* ---------- フォーム ---------- */
.pr-login-form-group {
    margin-bottom: 24px;
}

.pr-login-form-group:last-child {
    margin-bottom: 0;
}

.pr-login-form-group--btn {
    margin-top: 6px;
}

.pr-login-label {
    display: block;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #40405a;
    margin-bottom: 6px;
}

.pr-login-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'M PLUS 1', sans-serif;
    border: none;
    border-radius: 50px;
    background: #fff;
    color: #40405a;
    box-shadow: 2px 9px 14.5px -5px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.pr-login-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 214, 207, 0.25);
}

.pr-login-input::placeholder {
    color: #d4d8df;
}

/* ---------- ログインボタン ---------- */
.pr-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #f6778a;
    border-radius: 50px;
    background: linear-gradient(to right, #fe98a7, #ff7b8f 22.6%, #ea7c8d);
    box-shadow: 0 4px 9.5px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.pr-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
}

.pr-login-btn:active {
    transform: translateY(0);
}

.pr-login-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pr-login-btn__text {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

.pr-login-btn__arrow {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 18px;
}

/* ---------- フッター ---------- */
.pr-login-footer {
    padding: 17px 16px;
    text-align: center;
    background: linear-gradient(to left, #00d6cf, #00c8d5);
    border-top: 1px solid #00d6cf;
}

.pr-login-footer__text {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 12.8px;
    color: #fff;
}

/* ---------- タブバーフッター (ハブ・各評価画面共通) ---------- */
.pr-tab-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: safe center;
    gap: 12px;
    background: linear-gradient(to top, #13ccc6, #16bcc7);
    border-top: 1px solid #00d6cf;
    padding: 8px 6px 8px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 100;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
}

.pr-tab-footer::-webkit-scrollbar {
    display: none;
}

.pr-tab-footer__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.15s;
    min-width: 44px;
    flex-shrink: 0;
}

.pr-tab-footer__item--active {
    color: #fff;
}

.pr-tab-footer__item:hover {
    color: #fff;
}

.pr-tab-footer__icon {
    font-size: 24px;
}

.pr-tab-footer__label {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* タブバーフッターがある画面のbodyにbottom余白を追加 */
.pr-has-tab-footer {
    padding-bottom: 90px;
}

/* ---------- 縦幅が狭い端末 (iPhone SE等) ---------- */
@media (max-height: 700px) and (max-width: 400px) {
    .pr-login-header {
        min-height: 40vh;
        padding: 24px 16px 70px;
    }

    .pr-login-header__company {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .pr-login-header__divider {
        margin-bottom: 16px;
    }

    .pr-login-header__icon-area {
        margin-bottom: 8px;
    }

    .pr-login-header__icon {
        width: 50px;
    }

    .pr-login-header__title {
        font-size: 18px;
    }

    .pr-login-main {
        margin-top: -50px;
    }

    .pr-login-card__body {
        padding: 24px 20px;
    }

    .pr-login-form-group {
        margin-bottom: 16px;
    }
}

/* ---------- タブレット以上 ---------- */
@media (min-width: 768px) {
    .pr-login-main {
        padding: 0 2rem 2rem;
        align-items: flex-start;
    }

    .pr-login-card {
        max-width: 380px;
    }
}

/* ==========================================================================
   ハブ画面 専用スタイル (Figmaデザイン準拠)
   ========================================================================== */

/* ページ全体 */
.pr-hub-page {
    background: #fff;
    overflow-x: hidden;
}

/* ---------- ヘッダー (詳細画面用・コンパクト固定) ---------- */
.pr-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to top, #13ccc6, #16bcc7);
    height: 68px;
    padding: 0 16px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.pr-detail-header + main {
    padding-top: calc(68px + 32px);
}

/* ---------- ヘッダー (大型・角丸) ---------- */
.pr-hub-header {
    background: linear-gradient(to top, #13ccc6, #16bcc7);
    padding: 19px 16px 24px;
    position: relative;
}

.pr-hub-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.pr-hub-header__back {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #fff;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
    transition: background 0.2s;
}

.pr-hub-header__back:hover {
    background: rgba(255, 255, 255, 0.15);
}

.pr-hub-header__back-icon {
    width: 16px;
    height: 16px;
}

.pr-hub-header__title {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
}

.pr-hub-header__spacer {
    width: 56px;
}

.pr-hub-header__logout {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    padding: 4px 12px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background 0.2s;
}

.pr-hub-header__logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

.pr-hub-header__divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin-bottom: 28px;
}

.pr-hub-header__info {
    padding: 0 10px;
    margin-bottom: 16px;
    text-align: center;
}

.pr-hub-header__period-label {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.pr-hub-header__name {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 6px;
    margin-bottom: 10px;
}

.pr-hub-header__meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.pr-hub-header__meta-tag {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 3px 12px;
    letter-spacing: 1px;
}

.pr-hub-header__badge-area {
    padding: 0 10px;
}

.pr-hub-badge {
    display: inline-block;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #fff;
    background: #5959bf;
    border-radius: 20px;
    padding: 2px 10px;
    letter-spacing: 1px;
}

/* ---------- メインコンテンツ ---------- */
.pr-hub-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 32px 27px 2rem;
}

/* ---------- ナビゲーション ---------- */
.pr-hub-nav {
    width: 100%;
    max-width: 480px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    animation: pr-fadeInUp 0.5s ease-out;
}

.pr-hub-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 18px 8px;
    text-decoration: none;
    color: #333;
    transition: transform 0.15s, box-shadow 0.15s;
}

.pr-hub-nav__item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.pr-hub-nav__item:active {
    transform: translateY(0);
}

.pr-hub-nav__icon {
    font-size: 28px;
    color: #2ec4b6;
}

.pr-hub-nav__label {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

/* ---------- スコアサマリー (ハブ画面・ナビ下) ---------- */
.pr-hub-scores {
    width: 100%;
    max-width: 480px;
    margin-top: 24px;
    padding: 16px;
    background: #f7f7f8;
    border-radius: 14px;
}

.pr-hub-scores__header {
    margin-bottom: 8px;
    text-align: center;
}

.pr-hub-scores__title {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #40405a;
    letter-spacing: 0.03em;
}

.pr-hub-scores__categories {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pr-hub-scores__item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 4px;
    border-bottom: 1px solid #f0f0f0;
}

.pr-hub-scores__item:last-child {
    border-bottom: none;
}

.pr-hub-scores__label {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #666;
}

.pr-hub-scores__value {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

/* ---------- スコアテーブル (通常グループ) ---------- */
.pr-hub-scores__table {
    width: 100%;
    border-collapse: collapse;
}

.pr-hub-scores__th {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #999;
    padding: 4px 2px 6px;
    text-align: right;
    white-space: nowrap;
}

.pr-hub-scores__th:first-child {
    text-align: left;
}

.pr-hub-scores__th--total {
    color: #00a0aa;
}

.pr-hub-scores__tr {
    border-bottom: 1px solid #f0f0f0;
}

.pr-hub-scores__tr:last-child {
    border-bottom: none;
}

.pr-hub-scores__td {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    padding: 7px 2px;
    text-align: right;
}

.pr-hub-scores__td--label {
    font-size: 13px;
    font-weight: 400;
    color: #40405a;
    text-align: left;
}

.pr-hub-scores__td--total {
    font-weight: 600;
    color: #40405a;
}

.pr-hub-scores__total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding: 10px 4px 2px;
    border-top: 2px solid rgba(0, 0, 0, 0.12);
}

.pr-hub-scores__total-label {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #40405a;
}

.pr-hub-scores__total-value {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #f6778a;
}

.pr-hub-scores__unit {
    font-size: 13px;
    font-weight: 500;
    margin-left: 2px;
}

/* ---------- 最終評価バッジ ---------- */
.pr-grade-badge {
    display: flex;
    justify-content: center;
    margin-top: 8px;
}

.pr-grade-badge__img {
    width: 170px;
    height: auto;
}

.pr-grade-badge__pending {
    font-size: 16px;
    color: #999;
}

/* ---------- 上司セクション (ハブ画面・ナビ下) ---------- */
.pr-hub-supervisors {
    width: 100%;
    max-width: 480px;
    margin-top: 24px;
    padding: 17px;
    background: #f7f7f8;
    border-radius: 14px;
}

.pr-hub-supervisors__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pr-hub-supervisors__title {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #40405a;
    letter-spacing: 0.03em;
}

.pr-hub-supervisors__edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #40405a;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: opacity 0.15s;
}

.pr-hub-supervisors__edit:active {
    opacity: 0.7;
}

.pr-hub-supervisors__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pr-hub-supervisors__tag {
    display: inline-block;
    padding: 6px 14px;
    background: #fff;
    border-radius: 20px;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #40405a;
}

.pr-hub-supervisors__empty {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    color: #888;
    font-style: italic;
}

/* ---------- タブレット以上 ---------- */
@media (min-width: 768px) {
    .pr-hub-main {
        padding: 32px 2rem 2rem;
    }

    .pr-hub-nav {
        max-width: 540px;
    }

    .pr-hub-scores {
        max-width: 540px;
    }

    .pr-hub-supervisors {
        max-width: 540px;
    }
}

/* ==========================================================================
   詳細画面 共通スタイル (各種手当て等 - Figmaデザイン準拠)
   pr-hub-page / pr-hub-header / pr-hub-main を再利用
   ========================================================================== */

/* ---------- コンテンツ幅制限 ---------- */
.pr-detail-content {
    width: 100%;
    max-width: 336px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: pr-fadeInUp 0.5s ease-out;
}

.pr-detail-content + .pr-detail-content {
    margin-top: 16px;
}

/* ---------- 注意書き ---------- */
.pr-detail-notice {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* ---------- カード ---------- */
.pr-detail-card {
    background: #f7f7f8;
    border-radius: 10px;
    overflow: hidden;
}

.pr-detail-card--overflow {
    overflow: visible;
}

.pr-detail-card__header {
    background: linear-gradient(to left, rgba(0, 214, 207, 0.1), rgba(0, 200, 213, 0.1));
    color: #1d696e;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 20px;
    letter-spacing: 1px;
    border-radius: 10px 10px 0 0;
}

.pr-detail-card__body {
    padding: 16px 20px;
}

/* ---------- データ行 ---------- */
.pr-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pr-detail-row:last-child,
.pr-detail-total + .pr-detail-row,
.pr-detail-row:has(+ .pr-detail-total),
.pr-detail-row:has(+ .pr-detail-calc) {
    border-bottom: none;
}

.pr-detail-row__label {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #40405a;
}

.pr-detail-row__date {
    font-size: 11px;
    font-weight: 400;
    color: #8e8ea0;
    margin-left: 20px;
}

/* ─────────────────────────────────────────────────────────────
   ナビゲーション中ローディング (主に /sheet/{id} メニュー遷移)
   ───────────────────────────────────────────────────────────── */
.pr-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.pr-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: pr-loading-spin 0.8s linear infinite;
}

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

.pr-detail-row__badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 500;
    color: #4a6fa5;
    background-color: #e8eef5;
    border-radius: 10px;
    padding: 2px 8px;
    margin-left: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.pr-detail-row__value {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #40405a;
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: 12px;
}

/* 入力欄を含むカード内の .pr-detail-row__value を入力欄と縦揃え */
.pr-detail-card__body:has(.pr-detail-input) > .pr-detail-row > .pr-detail-row__value {
    width: 6rem;
    text-align: right;
    padding-right: 12px;
    flex-shrink: 0;
}

/* ---------- 合計行 ---------- */
.pr-detail-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0 0;
    margin-top: 4px;
    border-top: 2px solid rgba(0, 0, 0, 0.12);
}

.pr-detail-total__label {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #40405a;
}

.pr-detail-total__value {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #f6778a;
}

/* ---------- 入力欄 ---------- */
.pr-detail-input {
    width: 6rem;
    padding: 8px 12px;
    font-size: 15px;
    font-family: 'M PLUS 1', sans-serif;
    text-align: right;
    border: none;
    border-radius: 50px;
    background: #fafbfc;
    color: #40405a;
    transition: box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
}

.pr-detail-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 214, 207, 0.25);
}

/* 縦積みフィールド (ラベル上 + 全幅入力)。長文入力用 */
.pr-detail-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pr-detail-field__label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--pr-text-muted);
}

.pr-detail-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 15px;
    font-family: 'M PLUS 1', sans-serif;
    line-height: 1.5;
    color: #40405a;
    background: #fafbfc;
    border: 1px solid var(--pr-border);
    border-radius: 12px;
    resize: vertical;
    transition: box-shadow 0.2s;
}

.pr-detail-textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 214, 207, 0.25);
}

.pr-detail-textarea::placeholder {
    color: #b9bcc6;
}

.pr-detail-input::placeholder {
    color: #d4d8df;
}

.pr-detail-input.pr-input-error {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
}

.pr-detail-input--wide {
    width: 100%;
    text-align: left;
}

/* ネイティブ日付入力 (YYYY/MM/DD + ピッカー) が見切れない幅・枠線常時表示 */
.pr-detail-input--date {
    width: 11rem;
    text-align: left;
    border: 2px solid #00d6cf;
    box-sizing: border-box;
    min-height: 2.5rem;     /* 値が空でも iOS/Safari で潰れないよう高さを確保 */
    line-height: 1.4;
}

.pr-detail-input--date:disabled {
    opacity: 0.45;
}

/* ---------- 保存ボタン ---------- */
.pr-detail-actions {
    margin-top: 4px;
}

.pr-detail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    padding: 0 18px;
    border: 2px solid #f6778a;
    border-radius: 50px;
    background: linear-gradient(to right, #fe98a7, #ff7b8f 22.6%, #ea7c8d);
    box-shadow: 0px 4px 9.5px 0px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
}

.pr-detail-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0px 6px 12px 0px rgba(0, 0, 0, 0.2);
}

.pr-detail-btn:active {
    transform: translateY(0);
}

.pr-detail-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ---------- 計算結果 (2カラム: 達成度 / 評価点) ---------- */
.pr-detail-calc {
    display: flex;
    gap: 12px;
    padding: 12px 0 0;
    margin-top: 4px;
    border-top: 2px solid rgba(0, 0, 0, 0.12);
}

.pr-detail-calc__item {
    flex: 1;
    text-align: center;
}

.pr-detail-calc__label {
    display: block;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-bottom: 2px;
}

.pr-detail-calc__value {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #f6778a;
}

/* ---------- ハイライトカード (合計行) ---------- */
.pr-detail-card--highlight {
    background: #f7f7f8;
    border-radius: 14px;
}

.pr-detail-card--highlight__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}

/* ---------- 横並びカード (評価項目 + セレクト) ---------- */
.pr-detail-card--row {
    display: flex;
    align-items: flex-start;
    padding: 19px 12px 19px 15px;
    gap: 14px;
}

.pr-eval-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    min-width: 25px;
    border-radius: 50%;
    background: #00a0aa;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-top: 3px;
}

.pr-detail-card__label {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #40405a;
    flex: 1;
    line-height: 1.4;
}

/* ---------- セレクトボックス ---------- */
.pr-detail-select {
    width: 4.5rem;
    padding: 8px 12px;
    font-size: 15px;
    font-family: 'M PLUS 1', sans-serif;
    text-align: center;
    border: none;
    border-radius: 50px;
    background: #fafbfc;
    color: #40405a;
    transition: box-shadow 0.2s;
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2340405a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 26px;
}

.pr-detail-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 214, 207, 0.25);
}

.pr-detail-select--wide {
    width: 100%;
    text-align: left;
    padding-right: 28px;
}

/* ---------- 開示セクション (未開示メッセージ) ---------- */
.pr-detail-reveal-pending {
    padding: 24px 0;
    text-align: center;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    color: #999;
}

/* ---------- 月タブ (新デザインオーバーライド) ---------- */
.pr-hub-page .pr-month-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 336px;
    margin-bottom: 16px;
}

.pr-hub-page .pr-month-tab,
.pr-hub-page .pr-month-tab:hover,
.pr-hub-page .pr-month-tab:focus,
.pr-hub-page .pr-month-tab:active {
    flex: 1 1 0;
    min-width: 0;
    max-width: 46px;
    aspect-ratio: 1 / 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ecedee;
    border: none;
    border-radius: 50%;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 12px;
    color: #40405a;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
    outline: none;
}

.pr-hub-page .pr-month-tab--active,
.pr-hub-page .pr-month-tab--active:hover,
.pr-hub-page .pr-month-tab--active:focus,
.pr-hub-page .pr-month-tab--active:active {
    background: #5959bf;
    color: #fff;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.15);
}

.pr-hub-page .pr-month-tab--filled::after {
    background: #00d6cf;
}

.pr-hub-page .pr-month-tab--active.pr-month-tab--filled::after {
    background: #00d6cf;
}

.pr-hub-page .pr-month-tab--other-filled::before {
    background: #f5a623;
}

.pr-hub-page .pr-month-tab--opened {
    background: #d4edda;
    color: #155724;
}

/* ---------- プロセス評価 行ベースレイアウト ---------- */
.pr-process-eval {
    max-width: 336px;
}

/* 各行: 左(項目) + 右(点数) */
.pr-process-row {
    display: flex;
    gap: 0;
}

.pr-process-row__main {
    flex: 1;
    min-width: 0;
}

/* 右側の開示カラム: モバイルでは非表示 */
.pr-process-row__reveal {
    display: none;
}

/* モバイル用の開示セクション (従来通り下部に表示) */
.pr-process-reveal-mobile {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

/* 開示セル内の表示切替 */
.pr-process-reveal__pending-cell { display: none; }
.pr-process-reveal__score { display: none; }

/* ---------- タブレット以上 ---------- */
@media (min-width: 768px) {
    .pr-detail-content {
        max-width: 400px;
    }

    .pr-hub-page .pr-month-tabs {
        max-width: 400px;
    }

    /* プロセス評価: 行内に開示カラム表示 */
    .pr-process-eval {
        max-width: 460px;
    }

    .pr-process-row {
        gap: 8px;
    }

    .pr-process-row__reveal {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        min-width: 56px;
        flex-shrink: 0;
    }

    /* ヘッダー行の開示カラム */
    .pr-process-row--header .pr-process-row__reveal {
        font-size: 12px;
        text-align: center;
        padding: 0;
    }

    /* 開示セル: 点数表示 */
    .pr-process-reveal__score {
        display: none;
        font-family: 'M PLUS 1', sans-serif;
        font-size: 16px;
        font-weight: 600;
        color: #40405a;
    }

    /* 未開示セル */
    .pr-process-reveal__pending-cell {
        display: none;
        font-size: 14px;
        color: #ccc;
    }

    /* 状態に応じた表示切替はJSで制御 */
    .pr-process-row__reveal[data-revealed="true"] .pr-process-reveal__score {
        display: inline;
    }
    .pr-process-row__reveal[data-revealed="true"] .pr-process-reveal__pending-cell {
        display: none;
    }
    .pr-process-row__reveal[data-revealed="false"] .pr-process-reveal__pending-cell {
        display: inline;
    }
    .pr-process-row__reveal[data-revealed="false"] .pr-process-reveal__score {
        display: none;
    }

    /* モバイル用の開示セクションは非表示 */
    .pr-process-reveal-mobile {
        display: none;
    }
}

/* ==========================================================================
   ダッシュボード 専用スタイル (Figmaデザイン準拠)
   ========================================================================== */

/* ---------- ヘッダー (ログイン風・大型) ---------- */
.pr-dash-header {
    background: linear-gradient(to left, #00d6cf, #00c8d5);
    border-radius: 0 0 30px 30px;
    padding: 25px 16px 32px;
    text-align: center;
    position: relative;
}

.pr-dash-header__company {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    margin-bottom: 12px;
}

.pr-dash-header__divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.pr-dash-header__icon-area {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.pr-dash-header__icon {
    width: 56px;
    height: auto;
}

.pr-dash-header__title {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 6px;
}

/* ---------- ユーザーバー ---------- */
.pr-dash-user {
    width: 100%;
    max-width: 336px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ecedee;
    border-radius: 20px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    padding: 14px 20px;
    margin-bottom: 20px;
    animation: pr-fadeInUp 0.4s ease-out;
}

.pr-dash-user__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pr-dash-user__name {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #40405a;
}

.pr-dash-user__meta {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

.pr-dash-user__logout {
    padding: 6px 14px;
    font-size: 13px;
    font-family: 'M PLUS 1', sans-serif;
    font-weight: 400;
    color: #999;
    background: #fafbfc;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.pr-dash-user__logout:hover {
    color: #dc3545;
    background: #fff;
}

/* ---------- 期フィルター ---------- */
.pr-dash-period-filter {
    display: flex;
    justify-content: center;
}

.pr-dash-period-select {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #40405a;
    background: #ecedee;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2340405a' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.pr-dash-period-label {
    display: inline-block;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #40405a;
    background: #ecedee;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

.pr-dash-period-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(89, 89, 191, 0.25);
}

/* ---------- セクションタイトル ---------- */
.pr-dash-section-title {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #f6778a;
    margin-bottom: 8px;
    padding-left: 4px;
    letter-spacing: 1px;
}

/* ---------- 新規作成プロンプト ---------- */
.pr-dash-create {
    background: #ecedee;
    border-radius: 20px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    padding: 24px 20px;
    text-align: center;
}

.pr-dash-create__text {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    color: #40405a;
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ---------- シートカードリンク ---------- */
.pr-dash-sheet-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none;
    color: #40405a;
    transition: background 0.15s;
}

.pr-dash-sheet-link:hover {
    background: rgba(0, 0, 0, 0.02);
}

.pr-dash-sheet-link__left {
    flex: 1;
    min-width: 0;
}

.pr-dash-sheet-link__period,
.pr-dash-sheet-link__name {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #40405a;
}

.pr-dash-sheet-link__detail {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #999;
    margin-top: 2px;
}

/* ---------- スコアカード ---------- */
.pr-dash-scorecard {
    padding: 0 20px 16px;
}

.pr-dash-scorecard__hero {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 8px 12px;
    margin-bottom: 8px;
    background: rgba(89, 89, 191, 0.08);
    border-radius: 12px;
}

.pr-dash-scorecard__hero-label {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #999;
}

.pr-dash-scorecard__hero-num {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #f6778a;
    line-height: 1;
}

.pr-dash-scorecard__hero-unit {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: #999;
    margin-left: 2px;
}

.pr-dash-scorecard__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pr-dash-scorecard__kpi {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 4px;
    background: #fafbfc;
    border-radius: 10px;
}

.pr-dash-scorecard__kpi-val {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #f6778a;
    line-height: 1.2;
}

.pr-dash-scorecard__kpi-label {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 10px;
    font-weight: 400;
    color: #999;
    margin-top: 2px;
    white-space: nowrap;
}

.pr-dash-scorecard__kpi--empty .pr-dash-scorecard__kpi-val {
    color: #ccc;
    font-weight: 500;
}

/* ---------- 上司セクション (既存クラス維持、新デザインオーバーライド) ---------- */
.pr-hub-page .pr-sheet-supervisors {
    padding: 0 20px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pr-hub-page .pr-sheet-supervisors__display {
    padding-top: 12px;
}

.pr-hub-page .pr-sheet-supervisors__edit-btn {
    font-family: 'M PLUS 1', sans-serif;
    color: #f6778a;
    border-color: #5959bf;
    border-radius: 50px;
}

.pr-hub-page .pr-sheet-supervisors__edit-btn:hover {
    background: rgba(89, 89, 191, 0.08);
}

.pr-hub-page .pr-sheet-supervisors__save-btn {
    background: #5959bf;
    color: #fff;
    border: none;
    border-radius: 50px;
    box-shadow: 3px 3px 10px rgba(89, 89, 191, 0.3);
}

.pr-hub-page .pr-sheet-supervisors__save-btn:hover {
    box-shadow: 3px 4px 14px rgba(89, 89, 191, 0.4);
}

.pr-hub-page .pr-sheet-supervisors__cancel-btn {
    border-radius: 50px;
}

/* ---------- ダッシュボード - アクションボタン ---------- */
.pr-dash-actions {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    padding-top: 24px;
}

.pr-dash-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 16px 18px;
    border: none;
    border-radius: 50px;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
}

.pr-dash-action-btn--self {
    background: linear-gradient(to right, #2ec4b6, #40d0c4);
    color: #fff;
}

.pr-dash-action-btn--staff {
    background: linear-gradient(to right, #2ec4b6, #40d0c4);
    color: #fff;
}

.pr-dash-action-btn__arrow {
    font-size: 18px;
    position: absolute;
    right: 14px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #fff;
}

.pr-dash-action-btn--self .pr-dash-action-btn__arrow {
    color: #fff;
}

.pr-dash-action-btn--staff .pr-dash-action-btn__arrow {
    color: #fff;
}

.pr-dash-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pr-dash-action-btn:active {
    transform: translateY(0);
}

/* ---------- ダッシュボード - メッセージ ---------- */
.pr-dash-message {
    background: #fff3e0;
    border-radius: 12px;
    padding: 14px 18px;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    color: #e65100;
    text-align: center;
    line-height: 1.6;
}

.pr-dash-message a {
    color: #f6778a;
    font-weight: 700;
    text-decoration: underline;
}

/* ---------- 部下一覧 ---------- */
.pr-staff-list {
    width: 100%;
    border-top: 1px solid #d1d5db;
}

.pr-staff-row {
    display: flex;
    align-items: center;
    padding: 14px 4px;
    border-bottom: 1px solid #d1d5db;
    gap: 12px;
}

.pr-staff-row__code {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    min-width: 56px;
}

.pr-staff-row__name {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #40405a;
    flex: 1;
}

.pr-staff-row__btn {
    font-family: 'M PLUS 1', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: #00c8d5;
    border-radius: 50px;
    padding: 5px 14px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background 0.2s;
}

.pr-staff-row__btn:hover {
    background: #00b5c1;
}

/* ---------- 空状態 ---------- */
.pr-dash-empty {
    background: #ecedee;
    border-radius: 20px;
    padding: 32px 20px;
    text-align: center;
    font-family: 'M PLUS 1', sans-serif;
    font-size: 14px;
    color: #999;
}

/* ---------- ロックバナー・アイコン ---------- */
.pr-lock-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 200, 213, 0.08);
    border-radius: 8px;
    padding: 8px 16px;
    margin: 0 16px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #1d696e;
}

.pr-lock-banner__icon {
    font-size: 16px;
}


/* ---------- 残業: 固定残業時間バナー ---------- */
.pr-overtime-fixed {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(0, 200, 213, 0.08);
    border-radius: 8px;
    padding: 8px 16px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #555;
}

.pr-overtime-fixed__label {
    font-weight: 600;
    color: #1d696e;
    margin-right: 4px;
}

.pr-overtime-fixed__item strong {
    font-weight: 700;
    color: #333;
}

.pr-overtime-fixed__sep {
    color: #bbb;
}

.pr-overtime-section-label {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-align: center;
    padding: 10px 0 4px;
    border-top: 1px dashed #ddd;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.pr-overtime-section-label:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

/* ---------- タブレット以上 ---------- */
@media (min-width: 768px) {
    .pr-dash-user {
        max-width: 400px;
    }
}
