/* ============================================================
   DagoEasy グローバルスタイルシート
   ============================================================ */

/* ── CSS カスタムプロパティ（テーマカラー） ── */
:root {
    --color-primary:      #4a6cf7;
    --color-primary-dark: #3a5ce4;
    --color-dark:         #1a1a2e;
    --color-danger:       #e74c3c;
    --color-danger-dark:  #c0392b;
    --color-success:      #27ae60;
    --color-warning:      #f39c12;
    --color-border:       #e0e3ea;
    --color-bg:           #f5f6fa;
    --color-bg-card:      #ffffff;
    --color-text:         #1a1a2e;
    --color-text-muted:   #666666;
    --header-height:      56px;
    --nav-height:         44px;
    --radius:             8px;
    --shadow:             0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md:          0 4px 16px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    /* ページ全体の横スクロールを抑止。テーブル等の広いコンテンツは
       admin-section の overflow-x: auto で個別にスクロールさせる。
       clip は hidden と違い position: sticky を破壊しないモダンCSS */
    overflow-x: clip;
}

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

a:hover {
    text-decoration: underline;
}

/* ════════════════════════════════════════
   サイトヘッダー
   ════════════════════════════════════════ */
.site-header {
    background-color: var(--color-dark);
    color: #ffffff;
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 200;
    /* 上面ハイライト + 下方ソフトシャドウで境界を表現（線を引かずに分離） */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 2px 10px rgba(0, 0, 0, 0.22);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 24px;
    max-width: 1440px;
    margin: 0 auto;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.header-system-name {
    font-size: 15px;
    font-weight: normal;
    color: #c8d6f0;
}

.header-separator {
    color: #8a9bbd;
    font-size: 15px;
}

.header-client-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #ffffff;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-username {
    font-size: 14px;
    color: #c8d6f0;
}

.logout-form {
    display: inline-flex;
}

.btn-logout {
    background: transparent;
    border: 1px solid #4a6cf7;
    color: #8aaaf7;
    border-radius: var(--radius);
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.btn-logout:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

/* ════════════════════════════════════════
   サイトナビゲーション
   ════════════════════════════════════════ */
.site-nav {
    background-color: #252a48;
    height: var(--nav-height);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
    /* 細い線ではなくソフトシャドウで分離（横スクロール時にも切れない） */
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05),
                0 4px 12px rgba(0, 0, 0, 0.12);
}

.nav-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 24px;
    max-width: 1440px;
    margin: 0 auto;
    gap: 4px;
    overflow: visible;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 500;
    color: #b0bedc;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
    text-decoration: none;
    border-bottom-color: var(--color-primary);
}

.nav-link.active {
    color: #ffffff;
    border-bottom-color: var(--color-primary);
}

/* ── ドロップダウンナビ ────────────────────────────────────── */
.nav-dropdown {
    position: relative;
    height: 100%;
    display: inline-flex;
    align-items: center;
}

.nav-dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.nav-dropdown-toggle::after {
    content: ' ▾';
    font-size: 10px;
    opacity: 0.7;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #1e2340;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 6px 6px;
    min-width: 150px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
    z-index: 300;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #b0bedc;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
    border-left: 3px solid transparent;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-left-color: var(--color-primary);
}

/* ════════════════════════════════════════
   ヘッダーなし画面の body レイアウト
   ════════════════════════════════════════ */
body.page-with-header {
    background-color: var(--color-bg);
}

/* ════════════════════════════════════════
   メインコンテンツエリア
   ════════════════════════════════════════ */
.main-content {
    padding: 28px 24px 48px;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}

.welcome-text {
    font-size: 17px;
    color: #444;
}

/* ════════════════════════════════════════
   アラート / フラッシュメッセージ
   ════════════════════════════════════════ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    margin-bottom: 20px;
    border-left: 4px solid transparent;
}

.alert-success {
    background-color: #f0faf4;
    border-left-color: var(--color-success);
    color: #1e6b40;
}

.alert-error {
    background-color: #fff5f5;
    border-left-color: var(--color-danger);
    color: #8b1a1a;
}

/* ════════════════════════════════════════
   管理セクション（カード）
   ════════════════════════════════════════ */
.admin-section {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ════════════════════════════════════════
   テーブル
   ════════════════════════════════════════ */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-table th {
    background-color: #f0f2f8;
    color: #555;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 2px solid var(--color-border);
}

.admin-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #f0f2f5;
    color: var(--color-text);
    vertical-align: middle;
}

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

.admin-table tr:hover td {
    background-color: #fafbff;
}

.empty-message {
    text-align: center;
    color: var(--color-text-muted);
    padding: 32px !important;
    font-style: italic;
}

.action-cell {
    /* display: flex を外す → td はテーブルセルとして高さ計算に参加させる */
}

.action-cell-inner {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
    min-height: 27px; /* btn-sm と同じ高さを保証 */
}

.result-count {
    font-size: 13px;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-left: 8px;
}

/* ════════════════════════════════════════
   フォーム
   ════════════════════════════════════════ */
/* 名前グリッド（姓・名 を 2列 → スマホ縦並び） */
.form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
/* 郵便番号 + 住所（160px : 1fr → スマホ縦並び） */
.form-row-postal {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 16px;
}
@media (max-width: 768px) {
    .form-row-2col,
    .form-row-postal {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    /*display: block;*/
    font-size: 15px;
    font-weight: 600;
    color: #444;
    /*margin-bottom: 6px;*/
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="tel"],
.form-group input[type="search"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 9px 12px;
    /* 16px は iOS のフォーカス時自動ズーム抑止のため必須 */
    font-size: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.25);
}

.form-group small {
    display: block;
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 4px;
}

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 8px;
}

.required {
    color: var(--color-danger);
    margin-left: 2px;
}

.field-error,
.field-validation-msg,
.form-group small.field-validation-msg {
    display: block;
    font-size: 13px;
    color: var(--color-danger);
    margin-top: 4px;
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
    border-color: var(--color-danger);
}

.form-select {
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--color-text);
}

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

/* インラインフォーム（ボタンのみ） */
.inline-form {
    display: inline-flex;
}

/* ════════════════════════════════════════
   ボタン
   ════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.18s, border-color 0.18s, color 0.18s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.btn:hover {
    text-decoration: none;
}

/* Primary（青） */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #ffffff;
}

/* Secondary（グレー） */
.btn-secondary {
    background-color: #f0f2f5;
    border-color: var(--color-border);
    color: #555;
}

.btn-secondary:hover {
    background-color: #e4e7ee;
    color: var(--color-text);
}

/* 編集（アウトライン青） */
.btn-edit {
    background-color: #eef1fd;
    border-color: #c5cdf9;
    color: var(--color-primary);
}

.btn-edit:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
}

/* 危険操作（赤） */
.btn-danger {
    background-color: var(--color-danger);
    border-color: var(--color-danger);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: var(--color-danger-dark);
    border-color: var(--color-danger-dark);
    color: #ffffff;
}

/* 小サイズ */
.btn-sm {
    padding: 6px 14px;
    font-size: 13px;
}

/* ════════════════════════════════════════
   バッジ・タグ
   ════════════════════════════════════════ */
.permission-badge {
    display: inline-flex;
    align-items: center;
    background-color: #eef1fd;
    color: var(--color-primary);
    border-radius: 4px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 600;
    margin: 1px 2px;
}

/* ════════════════════════════════════════
   チェックボックスリスト（権限割り当て）
   ════════════════════════════════════════ */
.permission-checkbox-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 8px;
}

.permission-checkbox-item {
    background: #f8f9fb;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 8px 12px;
    transition: background-color 0.15s;
}

.permission-checkbox-item:hover {
    background: #eef1fd;
    border-color: #c5cdf9;
}

.permission-checkbox-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.permission-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
    flex-shrink: 0;
}

.permission-code {
    font-weight: 600;
    color: var(--color-text);
    font-size: 12px;
}

.permission-desc {
    font-size: 11px;
    color: var(--color-text-muted);
}

/* ════════════════════════════════════════
   ページネーション
   ════════════════════════════════════════ */
.pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 8px;
    font-size: 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #ffffff;
    color: var(--color-text);
    text-decoration: none;
    transition: background-color 0.15s, border-color 0.15s;
}

.btn-page:hover {
    background-color: #eef1fd;
    border-color: #c5cdf9;
    text-decoration: none;
}

.btn-page-current {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #ffffff;
    font-weight: 700;
}

.btn-page-disabled {
    color: var(--color-text-muted);
    background: #f8f9fb;
    cursor: not-allowed;
}

.page-info {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 8px;
    text-align: right;
}

.page-link-area {
    margin-top: 16px;
}

/* ════════════════════════════════════════
   検索フォーム
   ════════════════════════════════════════ */
.search-form {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 260px;
}

.search-group label {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

.search-group input,
.search-group select {
    padding: 10px 12px;
    font-size: 15px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: #ffffff;
}

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

.search-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ════════════════════════════════════════
   操作ログ アクション種別カラー
   ════════════════════════════════════════ */
.log-action-CREATE  { color: var(--color-success); font-weight: 600; }
.log-action-UPDATE  { color: var(--color-primary); font-weight: 600; }
.log-action-DELETE  { color: var(--color-danger);  font-weight: 600; }
.log-action-LOGIN   { color: #16a085; font-weight: 600; }
.log-action-LOGOUT  { color: var(--color-text-muted); font-weight: 600; }
.log-action-READ    { color: #7f8c8d; font-weight: 600; }
.log-action-EXPORT  { color: var(--color-warning); font-weight: 600; }
.log-action-ERROR   { color: #fff; background-color: var(--color-danger); font-weight: 700; padding: 2px 8px; border-radius: 4px; }

/* ════════════════════════════════════════
   設定画面専用
   ════════════════════════════════════════ */
.setting-key {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: var(--color-text);
    font-weight: 700;
    background: #f0f2f5;
    padding: 2px 6px;
    border-radius: 3px;
}

.setting-desc {
    font-size: 12px;
    color: var(--color-text-muted);
}

.setting-edit-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.setting-edit-form input[type="text"] {
    flex: 1;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.setting-edit-form input[type="text"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.12);
}

/* ════════════════════════════════════════
   テナント管理専用
   ════════════════════════════════════════ */
.badge-enabled  { color: var(--color-success); font-weight: 700; }
.badge-disabled { color: var(--color-danger);  font-weight: 700; }

.provisioning-box {
    background: #f0f7ff;
    border: 1px solid #bee3f8;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.provisioning-box h4 {
    font-size: 14px;
    font-weight: 700;
    color: #2b6cb0;
    margin-bottom: 8px;
}

.provisioning-box pre {
    background: var(--color-dark);
    color: #a8d8ff;
    padding: 12px;
    border-radius: 4px;
    font-size: 12px;
    overflow-x: auto;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
}

.provisioning-box p {
    font-size: 13px;
    color: #555;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ════════════════════════════════════════
   テナント設定専用
   ════════════════════════════════════════ */
.tenant-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.tenant-card-header {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.tenant-code {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-bottom: 16px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.settings-block {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
}

.settings-block h4 {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 12px;
}

.logo-preview {
    max-height: 80px;
    width: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 4px;
    background: #fafafa;
    display: block;
    margin-bottom: 8px;
}

.no-logo {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    font-style: italic;
}

.file-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.file-input-group input[type="file"] {
    flex: 1;
    font-size: 13px;
}

/* ロール選択エリア */
.role-select-area {
    margin-bottom: 16px;
}

.assignment-area {
    margin-top: 12px;
}

.assignment-area h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
}

/* ════════════════════════════════════════
   ホーム画面 管理メニューカード
   ════════════════════════════════════════ */
.admin-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 8px;
}

.admin-menu-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
    box-shadow: var(--shadow);
}

.admin-menu-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(74, 108, 247, 0.18);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--color-text);
}

.admin-menu-card .card-icon {
    font-size: 36px;
    margin-bottom: 8px;
    display: block;
    color: inherit;
}

.admin-menu-card .card-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-text);
}

.admin-menu-card .card-desc {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* ────────────────────────────────────────
   モバイルナビ内ログアウトボタン
   デスクトップでは非表示、モバイルのハンバーガーメニュー内に表示
   ──────────────────────────────────────── */
.nav-mobile-footer {
    display: none; /* デスクトップでは非表示 */
    padding-top: 8px;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-logout-btn {
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    color: #ff9a9a;
    font-size: 13px;
}

.nav-logout-btn:hover {
    color: #ff6b6b;
    background-color: rgba(255, 70, 70, 0.08);
    border-left-color: #ff6b6b;
}

@media (max-width: 768px) {
    .nav-mobile-footer {
        display: block;
    }
}

/* ════════════════════════════════════════
   Safe Area Inset（ノッチ / ホームインジケーター対応）
   viewport-fit=cover と組み合わせて使用する
   ════════════════════════════════════════ */

/* ヘッダー上部の Safe Area（ノッチ・ダイナミックアイランド対応） */
.site-header {
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
}

.header-inner {
    height: var(--header-height); /* safe-area を除いた可視部分の高さ */
}

/* ナビゲーションの sticky 位置を safe-area 込みのヘッダー高に合わせる */
.site-nav {
    top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
}

/* メインコンテンツ下部にホームインジケーター分の余白を確保する */
.main-content {
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
}

/* ════════════════════════════════════════
   ハンバーガーメニュー（CSS のみ・JS 不使用）
   ════════════════════════════════════════ */

/* チェックボックストグル（非表示 / キーボード操作は label 経由） */
.nav-menu-toggle {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* ハンバーガーアイコンボタン（デスクトップでは非表示） */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius);
    transition: background-color 0.15s;
    flex-shrink: 0;
}

.nav-hamburger:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ハンバーガーの3本線 */
.hamburger-bar {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #b0bedc;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

/* チェック時（メニューオープン）: バーを × 形に変形 */
.nav-menu-toggle:checked ~ .nav-inner .nav-hamburger .hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-menu-toggle:checked ~ .nav-inner .nav-hamburger .hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-menu-toggle:checked ~ .nav-inner .nav-hamburger .hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════════════════════════════
   タブレット（769px〜1024px）
   ════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
    .admin-menu-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    .admin-menu-card {
        padding: 20px;
    }
    .admin-menu-card .card-icon { font-size: 32px; }
    .admin-menu-card .card-title { font-size: 16px; }
    .settings-grid {
        grid-template-columns: 1fr 1fr;
    }
    .content-wrapper {
        padding: 0 8px;
    }
}

/* ════════════════════════════════════════
   レスポンシブ（デスクトップ基準: 768px 以上）
   ════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── ヘッダー ── */
    .header-inner { padding: 0 16px; }
    /* header-client-name / header-separator はスマホでも表示する
       フォントを少し縮めて header-right の logout ボタンと共存 */
    .header-client-name  { font-size: 14px; letter-spacing: 0; }
    .header-separator    { font-size: 13px; }
    .header-system-name  { font-size: 13px; }
    .header-username     { display: none; } /* ハンバーガーメニュー内に移動 */

    /* ── ナビゲーション（ハンバーガー化） ── */
    /* site-nav は固定高さのまま。展開メニューは絶対配置のパネルとして真下に */
    .site-nav {
        position: sticky;
        top: var(--header-height);
        z-index: 150;
        overflow: visible;     /* 子のドロップダウンパネルがはみ出すため */
    }

    .nav-inner {
        padding: 0 16px;
        position: relative;
        align-items: center;
        height: var(--nav-height);
        gap: 0;
    }

    /* ハンバーガーボタンを右端に表示 */
    .nav-hamburger {
        display: flex;
        margin-left: auto;
        z-index: 2;
    }

    /* ナビリンクは「site-nav の真下に降りる固定パネル」
       横スクロールが発生していても常に viewport に追従するため position: fixed */
    .nav-links {
        display: none;
        position: fixed;
        top: calc(var(--header-height) + var(--nav-height));
        left: 0;
        right: 0;
        flex-direction: column;
        background: #1e2340;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
        max-height: calc(100vh - var(--header-height) - var(--nav-height));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
        z-index: 180;
    }

    /* チェックボックスがオンの時にメニューパネルを表示 */
    .nav-menu-toggle:checked ~ .nav-inner .nav-links {
        display: flex;
        animation: navSlideDown 0.15s ease-out;
    }
    @keyframes navSlideDown {
        from { transform: translateY(-8px); opacity: 0; }
        to   { transform: translateY(0);    opacity: 1; }
    }

    /* モバイルのナビリンクは縦並び・タッチしやすいサイズに */
    .nav-link {
        height: 52px;
        padding: 0 20px;
        border-bottom: none;
        border-left: 3px solid transparent;
        border-radius: 0;
        color: #d6def0;
    }

    .nav-link:hover,
    .nav-link.active {
        border-left-color: var(--color-primary);
        border-bottom-color: transparent;
        background-color: rgba(255, 255, 255, 0.06);
    }

    /* ── ドロップダウン（モバイル）── */
    /* タッチデバイスは :hover が機能しないため、モバイルでは常に展開表示 */
    .nav-dropdown {
        display: block;
        width: 100%;
        height: auto;
    }
    .nav-dropdown-toggle {
        display: flex;
        align-items: center;
        height: 48px;
        width: 100%;
        padding: 0 20px;
        color: #ffffff;
        font-weight: 700;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        background: rgba(255, 255, 255, 0.04);
        cursor: default;
    }
    .nav-dropdown-toggle::after {
        margin-left: auto;
        content: '';     /* モバイルでは ▾ 不要 */
    }
    .nav-dropdown-menu {
        display: block !important;
        position: static;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    .nav-dropdown-menu a {
        height: 48px;
        padding: 0 32px;     /* インデントで階層を表現 */
        display: flex;
        align-items: center;
        border-left: 3px solid transparent;
    }

    /* ── メインコンテンツ ── */
    .main-content    { padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
    .content-wrapper { padding: 0; }

    /* ── フォーム ── */
    .admin-form   { max-width: 100%; }
    .form-actions { flex-wrap: wrap; }
    .search-form  { flex-direction: column; align-items: stretch; }
    .search-group { min-width: unset; }
    .search-actions { flex-wrap: wrap; }

    /* ── テーブル ── */
    /* テーブルはセクション内で個別に横スクロール。
       ページ自体（タイトル・ナビ）は固定のまま、リスト部分だけが動く */
    .admin-section { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .admin-table   { min-width: 600px; }

    /* セクションタイトルはテーブル横スクロール時も左端に貼り付ける
       → タイトル下の border-bottom が常に viewport 幅で見えるようになる */
    .admin-section .section-title {
        position: sticky;
        left: 0;
    }

    /* ── ボタン（タッチターゲット最低 44px） ── */
    .btn           { min-height: 44px; }
    .btn-sm        { min-height: 36px; }
    .action-cell-inner { gap: 8px; flex-wrap: wrap; }

    /* ── グリッドレイアウト ── */
    .settings-grid      { grid-template-columns: 1fr; }
    .admin-menu-grid    { grid-template-columns: repeat(2, 1fr);
        gap: 12px; }
    .permission-checkbox-list { grid-template-columns: 1fr; }

    /* ── ページネーション ── */
    .pagination   { justify-content: center; }
    .btn-page     { min-width: 40px; height: 40px; }

    /* ── テナントカード ── */
    .tenant-card  { padding: 16px; }

    /* ── ファイルアップロード ── */
    .file-input-group { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
    .admin-menu-grid { grid-template-columns: 1fr; }
    .header-system-name { font-size: 14px; }
}

/* ════════════════════════════════════════
   ログイン画面のモバイル対応
   ════════════════════════════════════════ */

/* ブラウザツールバーを考慮した動的ビューポート高（min-height に使用） */
.login-page-body {
    min-height: 100vh;           /* フォールバック */
    min-height: 100dvh;          /* 動的ビューポート高（ツールバー考慮） */
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
}

/* ログインカードのモバイル余白調整 */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 24px 28px;
        border-radius: 12px;
    }
}

/* ════════════════════════════════════════
   オートコンプリート / 飼い主検索モーダル / 状態バッジ
   ════════════════════════════════════════ */

.autocomplete-wrap {
    position: relative;
    width: 100%;
}

.autocomplete-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 2px 0 0;
    padding: 0;
    list-style: none;
    background: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 1500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.autocomplete-list.open {
    display: block;
}

.autocomplete-item {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border-bottom: 1px solid #f0f2f5;
}

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

.autocomplete-item:hover,
.autocomplete-item.active {
    background: #e8f0ff;
    color: #1a1a2e;
}

/* 飼い主選択モーダル */
.picker-modal .picker-box {
    max-width: 720px;
    width: 90%;
}

.picker-search-input {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.picker-list-wrap {
    max-height: 380px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.picker-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.picker-table th,
.picker-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f2f5;
    text-align: left;
}

.picker-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    position: sticky;
    top: 0;
    z-index: 1;
}

.picker-row {
    cursor: pointer;
    transition: background 0.1s;
}

.picker-row:hover {
    background: #e8f0ff;
}

/* 状態バッジ（一覧の削除済み・出禁マーク） */
.status-badge {
    display: inline-block;
    padding: 1px 6px;
    margin-left: 4px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    line-height: 1.4;
    vertical-align: middle;
}

.status-badge.deleted {
    background: #e0e0e0;
    color: #555;
}

.status-badge.banned {
    background: #e74c3c;
    color: #ffffff;
}

.row-deleted {
    background: #f5f5f5;
    color: #888;
}

.row-deleted a {
    color: #777;
}

.row-banned {
    background: #fff5f5;
}

/* ════════════════════════════════════════
   画面下部 戻るボタン領域
   ════════════════════════════════════════ */
.bottom-back-wrapper {
    text-align: center;
    margin-top: 32px;
    padding: 24px 16px calc(32px + env(safe-area-inset-bottom, 0px));
    position: relative;
}
/* 上方向にフェード分離（直線ではなくグラデーションで「カッコよく」） */
.bottom-back-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(to right,
        transparent,
        rgba(0, 0, 0, 0.15),
        transparent);
}

/* ════════════════════════════════════════
   共通モーダル（owner-detail, picker などで使用）
   ════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
}

.modal-box h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 700;
}

.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 16px;
    flex-wrap: wrap;
}

/* モバイル時はモーダルを画面いっぱい寄りに */
@media (max-width: 480px) {
    .modal-overlay { padding: 8px; }
    .modal-box {
        padding: 20px 16px;
        border-radius: 8px;
        max-width: 100%;
    }
    .modal-actions { gap: 6px; }
    .modal-actions .btn { flex: 1; min-width: 0; }
}

/* ── WarnDialog 確認・警告ダイアログ ──────────────────────────── */
.warn-dialog-box {
    text-align: center;
    border-top: 4px solid #c8cfea;   /* デフォルト（上書きされる） */
}
.warn-dialog-icon {
    font-size: 44px;
    line-height: 1;
    margin-bottom: 12px;
}
.warn-dialog-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
}
.warn-dialog-msg {
    font-size: 14px;
    color: #555;
    line-height: 1.75;
    margin: 0;
    white-space: pre-line;
}
.warn-dialog-actions {
    justify-content: center;
    margin-top: 20px;
    gap: 12px;
}
/* type 別ボーダーカラー */
.warn-dialog-warning { border-top-color: #e67e22 !important; }
.warn-dialog-confirm  { border-top-color: #4a6cf7 !important; }
.warn-dialog-error    { border-top-color: #e74c3c !important; }

/* ════════════════════════════════════════
   スケジュールカレンダーウィジェット
   ════════════════════════════════════════ */
.schedule-widget-section {
    margin-bottom: 32px;
}
.schedule-widget {
    display: flex;
    gap: 20px;
    height: 460px;
}
.schedule-event-panel {
    flex: 0 0 300px;
    border: 1px solid #e0e3ea;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.schedule-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}
.schedule-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    overflow-y: auto;
}
.schedule-event-item {
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    border-left: 3px solid #4a6cf7;
    margin-bottom: 6px;
    background: #f5f7ff;
}
.schedule-event-item:hover {
    background: #e8ecff;
}
.schedule-birthday-item {
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #c0661a;
    border-left: 3px solid #e67e22;
    margin-bottom: 6px;
    background: #fff8f0;
}
.schedule-empty-msg {
    color: #aaa;
    font-size: 13px;
    padding: 8px 0;
    list-style: none;
}
.schedule-calendar-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.cal-nav-btn {
    padding: 4px 14px;
    border: 1px solid #e0e3ea;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}
.cal-nav-btn:hover {
    background: #f0f3ff;
}
.cal-nav-title {
    font-size: 16px;
    font-weight: 700;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    margin-bottom: 2px;
}
.cal-header span {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #888;
    padding: 4px 0;
}
.cal-cell {
    border: 1px solid #e0e3ea;
    border-radius: 4px;
    padding: 4px 6px;
    cursor: pointer;
    position: relative;
    font-size: 13px;
    min-height: 52px;
    flex: 1;
}
.cal-cell:hover {
    background: #f0f3ff;
}
.cal-cell.cal-today {
    border-color: #4a6cf7;
    background: #eef0ff;
}
.cal-cell.selected {
    border-color: #4a6cf7;
    background: #dde1ff;
}
.cal-cell.cal-other-month {
    opacity: 0.4;
}
.cal-day-num {
    font-weight: 600;
    display: block;
}
.cal-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin-right: 2px;
    margin-top: 2px;
}
.cal-dot-event    { background: #4a6cf7; }
.cal-dot-birthday { background: #e67e22; }

@media (max-width: 768px) {
    .schedule-widget {
        flex-direction: column;
        height: auto;
    }
    .schedule-event-panel {
        flex: none;
        height: 220px;
    }
    .schedule-calendar-panel {
        flex: none;
    }
}

/* ── 色スウォッチ選択（予定フォーム） ── */
.color-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
}
.color-swatch-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    gap: 4px;
}
.color-swatch-label input[type="radio"] {
    display: none;
}
.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid transparent;
    display: block;
    transition: border-color 0.15s, transform 0.1s;
}
.color-swatch-label input[type="radio"]:checked + .color-swatch {
    border-color: #333;
    transform: scale(1.15);
}
.color-swatch-none {
    background: #fff;
    border: 1px solid var(--color-border);
    background-image: linear-gradient(to top right,
        transparent calc(50% - 1px), var(--color-danger), transparent calc(50% + 1px));
}
.color-swatch-label:hover .color-swatch {
    transform: scale(1.1);
}
.color-swatch-name {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
}
.color-swatch-lg {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}

/* ── 色ラベル管理リスト ── */
.color-label-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 480px;
}
.color-label-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.color-label-input {
    flex: 1;
}

/* ── 確認画面 diff テーブル ───────────────────────── */
.diff-table { width:100%; border-collapse:collapse; }
.diff-table th, .diff-table td { padding:10px 14px; border:1px solid #dee2e6; font-size:14px; }
.diff-table th { width:160px; background:#f8f9fa; color:#555; font-size:13px; }
.diff-before { color:#888; }
.diff-after  { color:#1a1a2e; font-weight:600; }
.diff-changed { background:#fff9e6; }
.diff-arrow { color:#aaa; padding:0 8px; }
.no-change { color:#bbb; font-style:italic; font-size:13px; }

/* ── 入場区分・料金プレビュー共通 ───────────────────── */
.fee-section-label {
    font-size: 12px; font-weight: 700; color: #888;
    text-transform: uppercase; letter-spacing: 0.06em;
    display: block; margin-bottom: 8px;
}
.fee-row-3col {
    display: grid; grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 16px; align-items: start; margin-top: 4px;
}
@media (max-width: 900px) { .fee-row-3col { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fee-row-3col { grid-template-columns: 1fr; } }

.price-preview {
    background: #f8f9ff; border: 1px solid #c8cfea; border-radius: 10px;
    padding: 14px 16px; margin-top: 16px;
}
.price-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 0; border-bottom: 1px solid #e8ecf8; font-size: 14px;
}
.price-row:last-child { border-bottom: none; }
.price-label { color: #666; }
.price-val { font-weight: 600; color: #2c3460; }
.discount-row .price-label,
.discount-row .price-val { color: #e67e22; }
.price-total-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0 0; border-top: 2px solid #c8cfea; margin-top: 6px;
    font-size: 14px; font-weight: 700; color: #2c3460;
}
.price-total-amount { font-size: 22px; font-weight: 800; color: #4a6cf7; }

/* ── 入場区分・セグメントコントロール ───────────────── */
.entry-type-cards {
    display: flex; flex-wrap: wrap; gap: 0;
    border: 1px solid #c8cfea; border-radius: 10px;
    overflow: hidden; background: #f0f2fb;
}
.entry-type-card {
    flex: 1; min-width: 100px; border-right: 1px solid #c8cfea;
    padding: 10px 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    gap: 7px; transition: background 0.15s; background: transparent;
}
.entry-type-card:last-child { border-right: none; }
.entry-type-card:hover { background: #e4e8f8; }
.entry-type-card:has(input[type="radio"]:checked) {
    background: #4a6cf7; box-shadow: inset 0 1px 3px rgba(0,0,0,0.15);
}
.entry-type-card:has(input[type="radio"]:checked) .entry-card-icon { color: rgba(255,255,255,0.85); }
.entry-type-card:has(input[type="radio"]:checked) .entry-card-name { color: #fff; }
.entry-type-card:has(input[type="radio"]:checked) .entry-card-badge { background: rgba(255,255,255,0.22); color: #fff; }
.entry-type-card input[type="radio"] { display: none; }
.entry-card-icon { font-size: 14px; color: #7a8ab0; }
.entry-card-name { font-size: 14px; font-weight: 700; color: #2c3460; white-space: nowrap; }
.entry-card-badge { font-size: 11px; color: #4a6cf7; background: #dde3fc; border-radius: 4px; padding: 2px 6px; font-weight: 600; white-space: nowrap; }

/* ── 飼い主様入場料・セグメントコントロール ─────────── */
.pricing-type-cards {
    display: flex; gap: 0;
    border: 1px solid #c8cfea; border-radius: 8px;
    overflow: hidden; background: #f0f2fb;
}
.pricing-type-card {
    flex: 1; border-right: 1px solid #c8cfea;
    padding: 9px 8px; cursor: pointer; text-align: center;
    transition: background 0.15s; background: transparent;
}
.pricing-type-card:last-child { border-right: none; }
.pricing-type-card:hover { background: #e4e8f8; }
.pricing-type-card:has(input:checked) { background: #4a6cf7; box-shadow: inset 0 1px 3px rgba(0,0,0,0.15); }
.pricing-type-card:has(input:checked) .pricing-card-label { color: #fff; }
.pricing-type-card input[type="radio"] { display: none; }
.pricing-card-label { font-size: 14px; font-weight: 700; color: #2c3460; display: block; }

/* ── 来場者数ステッパー ──────────────────────────────── */
.visitor-count-wrap {
    margin-top: 5px; display: inline-flex; align-items: stretch;
    border: 1px solid #c8cfea; border-radius: 8px; overflow: hidden; height: 38px;
}
.count-btn {
    width: 34px; border: none; background: #f0f2fb;
    color: #4a6cf7; font-size: 17px; font-weight: 700;
    cursor: pointer; transition: background 0.15s; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.count-btn:hover { background: #dde3f8; }
.count-input {
    width: 52px !important; border: none;
    border-left: 1px solid #c8cfea; border-right: 1px solid #c8cfea;
    text-align: center; font-size: 15px !important; font-weight: 700;
    color: #1a1a2e; outline: none; padding: 0 !important; background: #fff;
    border-radius: 0 !important;
}
.count-input::-webkit-outer-spin-button,
.count-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── 割引入力 ────────────────────────────────────────── */
.discount-wrap { display: flex; flex-direction: column; gap: 6px; }
.discount-select { width: 100%; padding: 8px 10px; font-size: 14px; border: 1px solid #c8cfea; border-radius: 8px; background: #fff; color: #2c3460; }
.discount-amount-wrap { display: flex; align-items: center; gap: 6px; }
.discount-amount-input { flex: 1; min-width: 0; padding: 8px 10px; font-size: 14px; border: 1px solid #c8cfea; border-radius: 8px; color: #2c3460; }
.discount-unit { font-size: 13px; color: #888; white-space: nowrap; }

/* ── スタンプ無料ラベル ──────────────────────────────── */
.stamp-free-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    padding: 9px 14px; background: #f0faf2;
    border: 1px solid #27ae60; border-radius: 8px; color: #1a7a40;
}
.stamp-free-label input[type="checkbox"] { width: 15px; height: 15px; }

/* ── 確認画面 選択値テキスト ─────────────────────────── */
.confirm-value-text {
    font-weight: 700; color: #2c3460;
    padding: 9px 14px; background: #eef2ff;
    border: 1px solid #c8cfea; border-radius: 8px;
    display: inline-block; font-size: 14px;
}
.confirm-value-text.primary { background: #4a6cf7; color: #fff; border-color: #4a6cf7; }
