/* ==================================================
   全体設定 & TOHOカラーテーマ
   ================================================== */
:root {
  --sidebar-dark: #1e2b37;       /* 折りたたみ時の背景 */
  --sidebar-active: #2c3e50;     /* メニューの背景 */
  --toho-blue: #0073ea;          /* メインアクセント */
  --toho-blue-hover: #005bac;
  --bg-main: #f4f7f9;
  --card-bg: #ffffff;
  --text-main: #333333;
  --text-sub: #7f8c8d;
  --border-color: #e0e6ed;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100vh;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

/* ==================================================
   1. ログイン画面
   ================================================== */
#login-view, #password-request-view, #password-setup-view, #password-complete-view {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--bg-main);
  padding: 20px;
}

.login-container {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.login-logo-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--sidebar-dark);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-logo-title .badge {
  background-color: var(--toho-blue);
  color: #ffffff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
}

.login-heading {
  font-size: 20px;
  color: var(--text-sub);
  margin-bottom: 20px;
  font-weight: normal;
}

.form-group {
  margin-bottom: 10px;
  text-align: left;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  outline: none;
  background-color: #ffffff;
}

.form-group input:focus {
  border-color: var(--toho-blue);
  box-shadow: 0 0 0 2px rgba(0, 115, 234, 0.15);
}

.login-action-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 15px;
  gap: 15px;
}

.btn-login {
  padding: 10px 28px;
  background-color: var(--toho-blue);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-login:hover {
  background-color: var(--toho-blue-hover);
}

.login-links {
  text-align: right;
  font-size: 13px;
  line-height: 1.8;
}

.login-links a {
  color: var(--toho-blue);
  text-decoration: none;
}

.login-subtext {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-sub);
}

.login-footer {
  margin-top: 50px;
  font-size: 12px;
  color: #95a5a6;
  text-align: center;
  line-height: 1.8;
}

/* ==================================================
   2. サイドバー（スマレジ再現：デフォルト展開状態）
   ================================================== */
#app-view {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
}

.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 220px;
  background-color: var(--sidebar-active);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  transition: width 0.2s ease-in-out;
  overflow: hidden;
  user-select: none;
  z-index: 1000;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
}

/* 折りたたみ時（アイコンのみ） */
.sidebar.collapsed {
  width: 60px;
  background-color: var(--sidebar-dark);
}

.sidebar-user {
  padding: 15px 12px;
  background-color: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.user-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--toho-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.user-info {
  white-space: nowrap;
  transition: opacity 0.15s;
}

.sidebar.collapsed .user-info {
  display: none;
}

.user-name {
  font-size: 14px;
  font-weight: bold;
}

.user-role {
  font-size: 11px;
  color: #a0aec0;
}

.nav-menu {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  color: #e2e8f0;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

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

.nav-item.active {
  background-color: var(--toho-blue);
  color: #ffffff;
}

.nav-icon {
  font-size: 18px;
  min-width: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-text {
  font-size: 14px;
  margin-left: 12px;
  flex: 1;
}

.sidebar.collapsed .nav-text,
.sidebar.collapsed .arrow-icon {
  display: none;
}

.arrow-icon {
  font-size: 10px;
  transition: transform 0.2s ease;
}

.arrow-icon.open {
  transform: rotate(180deg);
}

/* アコーディオンサブメニュー */
.submenu {
  background-color: rgba(0, 0, 0, 0.25);
  display: none;
}

.submenu.open {
  display: block;
}

.sidebar.collapsed .submenu {
  display: none !important;
}

.submenu .nav-item {
  padding-left: 54px;
  font-size: 13px;
}

.sidebar-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.15);
  transition: background 0.15s;
}

.sidebar-footer:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==================================================
   3. メインコンテンツエリア
   ================================================== */
.main-wrapper {
  margin-left: 60px;
  width: calc(100vw - 60px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header {
  height: 55px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
}

.header-title {
  font-size: 18px;
  font-weight: bold;
}

.btn-logout {
  padding: 7px 15px;
  background-color: #e74c3c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: bold;
}

.content-area {
  flex: 1;
  padding: 25px;
  overflow-y: auto;
}

/* ダッシュボード 出退勤状況カード */
#page-dashboard {
  max-width: 1000px;
  margin: 0 auto;
}

.attendance-status-card {
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.card-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg-main);
}

.card-header-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--sidebar-dark);
}

.date-display {
  font-size: 15px;
  color: var(--text-sub);
  font-weight: 500;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.status-column {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.status-column-header {
  padding: 12px 16px;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.header-working {
  background-color: #eef7ed;
  color: #27ae60;
}

.header-finished {
  background-color: #f4f6f8;
  color: #7f8c8d;
}

.badge-count {
  background-color: #ffffff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  border: 1px solid currentColor;
}

.member-list {
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
}

.member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #f0f3f6;
  font-size: 14px;
}

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

.member-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.dot-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot-working { background-color: #27ae60; }
.dot-finished { background-color: #95a5a6; }

.time-text {
  font-size: 13px;
  color: var(--text-sub);
}

/* モーダル */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000 !important;
}

.modal-body {
  background: white;
  padding: 30px;
  border-radius: 8px;
  width: 320px;
  text-align: center;
}

.modal-btn {
  margin-top: 20px;
  padding: 8px 20px;
  background: var(--toho-blue);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* ==================================================
   従業員一覧用デザイン (スマレジ再現 × TOHOカラー)
   ================================================== */
#page-employees {
  max-width: 1000px;
  margin: 0 auto;
}

.emp-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--toho-blue);
}

.emp-btn-group .btn-primary {
  background-color: var(--toho-blue);
  color: white;
  border: none;
  padding: 9px 16px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
}

.emp-btn-group .btn-primary:hover {
  background-color: var(--toho-blue-hover);
}

.emp-filter-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 15px 20px;
  margin-bottom: 20px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-label {
  font-size: 13px;
  font-weight: bold;
  color: var(--text-sub);
  min-width: 70px;
}

.initial-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tab-btn {
  background: #f4f6f8;
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  color: var(--text-main);
}

.tab-btn:hover {
  background: #e2e8f0;
}

.tab-btn.active {
  background: var(--toho-blue);
  color: white;
  border-color: var(--toho-blue);
}

.emp-list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.emp-card-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.emp-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #eef7ed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.emp-info-main {
  flex: 1;
}

.emp-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.emp-name {
  font-size: 15px;
  font-weight: bold;
  color: var(--toho-blue);
  text-decoration: none;
}

.emp-name:hover {
  text-decoration: underline;
}

.badge-tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: bold;
}

.badge-admin {
  background: #27ae60;
  color: white;
}

.badge-disabled {
  background: #7f8c8d;
  color: white;
}

.badge-regular {
  background: #e8f4fd;
  color: var(--toho-blue);
}

.emp-meta-row {
  font-size: 12px;
  color: var(--text-sub);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.emp-action-menu {
  position: relative;
}

.btn-more {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  color: var(--text-sub);
  font-weight: bold;
}

.btn-more:hover {
  background: #f4f6f8;
}

.emp-popover-menu {
  position: absolute;
  right: 0;
  top: 35px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  width: 210px;
  z-index: 10;
  overflow: hidden;
}

.emp-popover-menu div {
  padding: 10px 15px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #f0f3f6;
}

.emp-popover-menu div:last-child {
  border-bottom: none;
}

.emp-popover-menu div:hover {
  background: #f4f7f9;
}

.emp-popover-menu .text-danger {
  color: #e74c3c;
}

/* ==================================================
   月表示（マトリクス表）デザイン (改行崩れ防止 & 改良版)
   ================================================== */
.monthly-container {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 20px;
}

.monthly-header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 25px;
  gap: 15px;
}

.month-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.monthly-actions {
  text-align: right;
}

.current-month-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--sidebar-dark);
}

.month-btn-group {
  display: flex;
  gap: 2px;
}

.btn-sub {
  background: #f4f6f8;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  border-radius: 3px;
  color: var(--text-main);
}

.btn-sub:hover {
  background: #e2e8f0;
}

.select-period {
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  outline: none;
}

.btn-print {
  background-color: var(--toho-blue);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
}

.btn-print:hover {
  background-color: var(--toho-blue-hover);
}

/* スクロール可能なマトリクス表 */
.matrix-scroll-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.monthly-matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  text-align: center;
}

.monthly-matrix-table th, 
.monthly-matrix-table td {
  border: 1px solid var(--border-color);
  padding: 6px 1px;
  vertical-align: middle;
  line-height: 1.4;
  min-width: 32px; /* 全画面表示に綺麗に収まるサイズへ最適化 */
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.monthly-matrix-table th {
  background-color: #f8fafc;
  font-weight: bold;
  color: var(--sidebar-dark);
  font-size: 10px;
}

.monthly-matrix-table th.sat {
  color: #0073ea;
}

.monthly-matrix-table th.sun {
  color: #e74c3c;
}

/* 行ごとのストライプ（白・薄いTOHOカラー）設定 */
.monthly-matrix-table tbody tr:nth-child(even) td {
  background-color: #f0f7ff;
}
.monthly-matrix-table tbody tr:nth-child(odd) td {
  background-color: #ffffff;
}

.col-emp-name {
  position: sticky;
  left: 0;
  background-color: #ffffff !important; /* ★スクロール時に背後が透けないように背景色固定 */
  font-weight: bold;
  z-index: 10;
  text-align: left;
  padding-left: 8px !important;
  min-width: 110px !important;
  color: var(--toho-blue);
  font-size: 12px;
  box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.monthly-matrix-table tbody tr:nth-child(even) .col-emp-name {
  background-color: #f0f7ff !important;
}

.col-sum {
  background-color: #f8fafc !important;
  font-weight: bold;
  color: var(--text-sub);
  min-width: 75px !important;
}

.cell-click {
  cursor: pointer;
  position: relative;
  height: 45px;
  font-size: 10px;
}

.cell-click:hover {
  background-color: #eef7ff !important;
}

/* 管理者修正による赤文字 */
.time-edited {
  color: #e74c3c;
  font-weight: bold;
  white-space: nowrap !important;
}

/* 退職日以降の無効化セル */
.cell-retired {
  cursor: not-allowed !important;
  pointer-events: none;
}

.cell-readonly {
  position: relative;
  height: 45px;
  font-size: 10px;
}

.retired-time-box {
  background-color: #e2e8f0;
  display: block;
  margin: -6px -2px 0 -2px;
  padding: 6px 2px 2px 2px;
}

.memo-icon {
  color: transparent;
  font-size: 14px;
  display: inline-block;
  width: 13px;
  height: 13px;
  position: absolute;
  top: 2px;
  right: 2px;
  cursor: pointer;
  z-index: 5;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%232b3856" d="M20 2H4C2.9 2 2 2.9 2 4v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"/><circle cx="8" cy="10" r="1.5" fill="%23fff"/><circle cx="12" cy="10" r="1.5" fill="%23fff"/><circle cx="16" cy="10" r="1.5" fill="%23fff"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

td:hover .memo-icon::after,
td:hover .memo-icon::before {
  display: block !important;
}

.memo-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  background: #111111;
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: normal;
  white-space: pre-line;
  text-align: left;
  line-height: 1.4;
  display: none;
  z-index: 3000;
  width: max-content;
  max-width: 200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  pointer-events: none;
}

.memo-icon::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: -2px;
  border: 5px solid transparent;
  border-top-color: #111111;
  display: none;
  z-index: 3001;
  pointer-events: none;
}

/* セルポップオーバーメニュー */
.cell-popover {
  position: absolute;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  width: 180px;
  z-index: 100;
  overflow: hidden;
}

.popover-header {
  background: var(--sidebar-dark);
  color: white;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: bold;
}

.popover-item {
  padding: 10px 14px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #f0f3f6;
}

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

.popover-item:hover {
  background: #f4f7f9;
  color: var(--toho-blue);
}

/* ==================================================
   日表示デザイン (スマレジ1枚目完全再現 × TOHOカラー)
   ================================================== */
#page-daily {
  max-width: 1000px;
  margin: 0 auto;
}

.daily-container {
  background: white;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  padding: 20px;
}

.daily-title-row {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--toho-blue);
}

.daily-main-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--sidebar-dark);
}

.daily-control-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.control-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-office-select {
  background: white;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-main);
}

.office-badge {
  background-color: #27ae60;
  color: white;
  border-radius: 50%;
  padding: 1px 6px;
  font-size: 11px;
}

.daily-date-text {
  font-size: 22px;
  font-weight: bold;
  color: #4a5568;
}

.btn-web-stamp {
  background-color: var(--toho-blue);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.btn-web-stamp:hover {
  background-color: var(--toho-blue-hover);
}

.daily-table-wrapper {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  overflow: visible;
}

.daily-status-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.daily-status-table th, 
.daily-status-table td {
  border-bottom: 1px solid var(--border-color);
  border-right: 1px solid #edf2f7;
  padding: 12px 16px;
  vertical-align: middle;
  position: relative;
}

.daily-status-table th {
  background-color: #edf2f7;
  font-weight: bold;
  color: var(--sidebar-dark);
}

.btn-table-filter {
  background: #27ae60;
  color: white;
  border: none;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  margin-left: 8px;
  cursor: pointer;
}

.emp-name-cell {
  font-weight: bold;
}

.emp-name-cell .dot-status {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

.emp-name-cell .emp-link {
  vertical-align: middle;
}

.emp-link {
  color: var(--toho-blue);
  text-decoration: none;
}

.emp-link:hover {
  text-decoration: underline;
}

.text-sub-col {
  color: var(--text-sub);
}

/* スマレジ再現：アバター＆📍地図バッジ (重複コードを整理統合) */
.avatar-map-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 54px;
  position: relative;
  z-index: 100;
}

.avatar-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--toho-blue);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-circle svg {
  width: 26px;
  height: 26px;
  stroke: var(--toho-blue);
}

.btn-map-badge {
  position: absolute;
  bottom: -4px;
  background-color: #27ae60; /* ★デフォルトを緑バッジに統一 */
  color: white;
  border: none;
  border-radius: 10px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.btn-map-badge:hover {
  background-color: #219150;
}

/* アイコンホバー時のツールチップ表示 */
.avatar-circle.has-tooltip {
  position: relative;
  cursor: pointer;
}

.avatar-circle.has-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 30, 40, 0.95);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 11px;
  white-space: pre-line;
  text-align: center;
  line-height: 1.5;
  display: none;
  z-index: 9999;
  width: max-content;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.avatar-circle.has-tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(120% - 10px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(20, 30, 40, 0.95);
  display: none;
  z-index: 9999;
}

.avatar-circle.has-tooltip:hover::after,
.avatar-circle.has-tooltip:hover::before {
  display: block;
}

/* 地図モーダル専用スタイル */
.map-modal-body {
  width: 700px !important;
  padding: 0 !important;
  text-align: left !important;
  overflow: hidden;
}

.map-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border-color);
  background: #ffffff;
}

.map-modal-header h3 {
  font-size: 16px;
  font-weight: bold;
  color: #333333;
}

.map-modal-content {
  padding: 15px 20px 20px 20px;
  background: #ffffff;
  display: flex;
  gap: 20px;
}

.map-modal-wide {
  width: 960px !important; 
}

.map-preview {
  width: 100%;
  height: 500px;
  background: #e5e3df;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.map-address-text {
  margin-top: 12px;
  font-size: 13px;
  color: #333333;
  text-align: left;
}

.map-pin {
  font-size: 36px;
  animation: bounce 1s infinite alternate;
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}

.map-watermark {
  position: absolute;
  bottom: 6px;
  right: 10px;
  font-size: 10px;
  color: #777;
}

/* ==================================================
   従業員詳細・編集画面デザイン (TOHOカラー)
   ================================================== */
.detail-header-row {
  display: flex;
  align-items: center;
  padding: 15px 30px;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
}

.btn-back {
  background: white;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  color: var(--text-main);
  margin-right: 20px;
}

.btn-back:hover {
  background: #edf2f7;
}

.detail-title {
  font-size: 20px;
  color: var(--sidebar-dark);
}

.detail-tabs {
  display: flex;
  padding: 0 30px;
  border-bottom: 1px solid var(--border-color);
  background: white;
}

.detail-tab {
  padding: 15px 20px;
  font-weight: bold;
  font-size: 14px;
  color: var(--text-sub);
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.detail-tab.active {
  color: var(--toho-blue);
  border-bottom-color: var(--toho-blue);
}

.detail-content-area {
  padding: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.detail-banner {
  background: #eef7ff;
  border: 1px solid #bce0fd;
  padding: 15px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-main);
  margin-bottom: 30px;
}

.detail-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.detail-section-header h3 {
  font-size: 18px;
  color: var(--sidebar-dark);
}

.btn-primary {
  background-color: var(--toho-blue);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

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

.detail-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.detail-info-table th {
  text-align: left;
  padding: 16px 0;
  color: var(--sidebar-dark);
  font-weight: bold;
  width: 250px;
}

.detail-info-table td {
  padding: 16px 0;
  color: var(--text-main);
}

.badge-req {
  background: #e74c3c;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ==================================================
   従業員編集フォーム & トースト通知 (TOHOカラー)
   ================================================== */
.edit-form-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.edit-form-table th {
  text-align: left;
  padding: 20px 0;
  color: var(--sidebar-dark);
  font-weight: bold;
  width: 300px;
  vertical-align: top;
  border-bottom: 1px solid #f0f3f6;
}

.edit-form-table td {
  padding: 20px 0;
  color: var(--text-main);
  vertical-align: top;
  border-bottom: 1px solid #f0f3f6;
}

.form-help {
  font-size: 11px;
  color: var(--text-sub);
  font-weight: normal;
  display: block;
  margin-top: 4px;
}

.form-input {
  width: 100%;
  max-width: 400px;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}

.form-input:focus {
  border-color: var(--toho-blue);
  box-shadow: 0 0 0 2px rgba(0, 115, 234, 0.15);
}

.form-select {
  width: 200px;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  outline: none;
}

.form-footer-action {
  margin-top: 40px;
  text-align: right;
}

.btn-save {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
}

.btn-save:hover {
  background-color: #219150;
}

/* トースト通知 (画面中央表示) */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--toho-blue);
  color: white;
  padding: 15px 40px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

/* ==================================================
   新規従業員作成画面専用デザイン (TOHOカラー)
   ================================================== */
.create-page-title {
  font-size: 22px;
  color: var(--toho-blue);
  border-bottom: 2px solid var(--toho-blue);
  padding-bottom: 12px;
  margin-bottom: 30px;
}

.create-section-title {
  font-size: 18px;
  color: var(--sidebar-dark);
  margin-bottom: 15px;
  font-weight: bold;
}

/* ==================================================
   月表示 セルクリック モーダル専用デザイン (TOHOカラー)
   ================================================== */
.record-modal-body {
  background: white;
  border-radius: 6px;
  width: 550px;
  max-width: 90%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}

.record-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border-color);
}

.record-modal-header h3 {
  font-size: 16px;
  color: var(--sidebar-dark);
}

.btn-close-icon {
  background: none;
  border: none;
  font-size: 20px;
  color: #999;
  cursor: pointer;
}

.btn-close-icon:hover {
  color: #333;
}

.record-modal-content {
  padding: 20px;
}

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

.record-form-table th {
  text-align: left;
  padding: 12px 10px;
  width: 140px;
  color: var(--sidebar-dark);
  border-bottom: 1px solid #f0f3f6;
  font-weight: bold;
}

.record-form-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f0f3f6;
}

.time-select-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-select-sm {
  width: 60px;
  height: 32px;
  padding: 2px 4px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
  outline: none;
  background-color: #ffffff;
  color: var(--text-main);
  cursor: pointer;
  text-align: center;
}

.form-select-sm:focus {
  border-color: var(--toho-blue);
  box-shadow: 0 0 0 2px rgba(0, 115, 234, 0.15);
}

/* メール内容アコーディオン */
.accordion-mail-box {
  margin-top: 20px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}

.accordion-mail-header {
  background: #f8fafc;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  color: var(--toho-blue);
  display: flex;
  justify-content: space-between;
}

.accordion-mail-header:hover {
  background: #edf2f7;
}

.accordion-mail-body {
  padding: 15px;
  font-size: 13px;
  color: var(--text-main);
  background: white;
  border-top: 1px solid var(--border-color);
  line-height: 1.6;
}

/* モーダルフッター */
.record-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-radius: 0 0 6px 6px;
}

.flex-space-between {
  justify-content: space-between;
}

.btn-cancel {
  background: white;
  border: 1px solid #ccc;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn-cancel:hover {
  background: #f4f6f8;
}

.btn-danger {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.btn-danger:hover {
  background: #c0392b;
}

/* ==================================================
   詳細タイムライン (ガントチャート) デザイン (TOHOカラー)
   ================================================== */
.gantt-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: white;
}

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

.gantt-table th,
.gantt-table td {
  border: 1px solid var(--border-color);
}

.gantt-table th {
  background-color: #f8fafc;
  padding: 8px 0;
  color: var(--sidebar-dark);
  font-weight: normal;
  text-align: center;
}

.gantt-emp-col {
  width: 150px;
  min-width: 150px;
  position: sticky;
  left: 0;
  background: white;
  z-index: 2;
  padding: 10px 15px !important;
  font-weight: bold;
  color: var(--sidebar-dark);
}

.gantt-table th.gantt-emp-col {
  background-color: #f8fafc;
  z-index: 3;
}

.gantt-track {
  position: relative;
  height: 45px;
  padding: 0 !important;
  background-size: calc(100% / 22) 100%;
  background-image: linear-gradient(to right, transparent 98%, #f0f3f6 100%);
}

.gantt-bar {
  position: absolute;
  top: 8px;
  height: 29px;
  background-color: var(--toho-blue);
  color: white;
  font-size: 11px;
  line-height: 29px;
  border-radius: 3px;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 4px rgba(0, 115, 234, 0.2);
  z-index: 1;
}

.gantt-bar-stripe {
  position: absolute;
  top: 8px;
  height: 29px;
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.2) 5px,
    transparent 5px,
    transparent 10px
  );
  border-radius: 3px 0 0 3px;
  z-index: 2;
  pointer-events: none;
}

/* ==================================================
   残業時間集計表 デザイン
   ================================================== */
#page-overtime {
  max-width: 1000px;
  margin: 0 auto;
}

.overtime-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: center;
  background: white;
}

.overtime-table th {
  background-color: #edf2f7;
  color: var(--sidebar-dark);
  font-weight: bold;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
}

.overtime-table th:hover {
  background-color: #e2e8f0;
}

.overtime-table td {
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.overtime-table tbody tr:hover {
  background-color: #f8fafc;
}

.summary-row {
  background-color: #eef7ff;
  font-weight: bold;
}

.summary-row td {
  color: var(--toho-blue);
}

.sort-icon {
  font-size: 12px;
  color: var(--toho-blue);
  margin-left: 4px;
  display: inline-block;
  transition: opacity 0.15s;
}

.overtime-table th:hover .sort-icon {
  opacity: 1 !important;
}

/* ==================================================
   印刷用スタイル設定
   ================================================== */
@media print {
  @page {
    size: landscape;
    margin: 10mm;
  }

  .sidebar,
  .header,
  .month-btn-group,
  .btn-print,
  .toast,
  .modal-overlay {
    display: none !important;
  }

  .main-wrapper {
    margin-left: 0 !important;
    width: 100% !important;
  }

  .content-area {
    padding: 0 !important;
    overflow: visible !important;
  }

  .matrix-scroll-wrapper {
    overflow: visible !important;
    border: none !important;
  }

  .monthly-container,
  #page-overtime {
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .monthly-matrix-table th, 
  .monthly-matrix-table td {
    font-size: 8pt !important;
    padding: 2px !important;
  }
}

/* ==================================================
   スマレジ風 年月選択ポップアップ デザイン
   ================================================== */
.smaregi-picker-card {
  position: absolute;
  z-index: 3000;
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 12px;
  width: 280px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

.smaregi-picker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 4px 8px;
}

.smaregi-arrow-btn {
  background: none;
  border: none;
  font-size: 11px;
  color: #666;
  cursor: pointer;
  padding: 4px 8px;
}

.smaregi-arrow-btn:hover {
  color: #000;
}

.smaregi-year-select-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: bold;
  font-size: 14px;
}

.smaregi-year-select-wrapper select {
  font-size: 15px;
  font-weight: bold;
  border: 1px solid var(--border-color);
  border-radius: 3px;
  padding: 2px 6px;
  outline: none;
  background: #f8fafc;
}

.smaregi-month-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.smaregi-month-btn {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 10px 0;
  font-size: 13px;
  cursor: pointer;
  color: var(--text-main);
  transition: all 0.15s;
}

.smaregi-month-btn:hover {
  background: #eef7ff;
  border-color: var(--toho-blue);
  color: var(--toho-blue);
}

.smaregi-month-btn.active {
  background: var(--toho-blue);
  color: white;
  border-color: var(--toho-blue);
  font-weight: bold;
}

/* 日表示: 出退勤マルチアバターレイアウト (スマレジ再現) */
.avatar-slot-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar-empty {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px dashed #cbd5e1;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-empty svg {
  width: 26px;
  height: 26px;
  stroke: #cbd5e1;
}

/* 直行・直帰用デザイン（オレンジ色） */
.avatar-circle.direct-style {
  border-color: #e67e22;
}

.avatar-circle.direct-style svg {
  stroke: #e67e22;
}

.btn-map-badge.direct-badge {
  background-color: #e67e22;
}

.btn-map-badge.direct-badge:hover {
  background-color: #d35400;
}

/* ==================================================
   休日設定 カレンダーデザイン
   ================================================== */
.holiday-calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  background: white;
}
.holiday-calendar-table th,
.holiday-calendar-table td {
  border: 1px solid var(--border-color);
}
.holiday-calendar-table th {
  padding: 12px 0;
  background-color: #f8fafc;
  font-weight: bold;
  text-align: center;
}
.holiday-calendar-table th.sun { color: #e74c3c; }
.holiday-calendar-table th.sat { color: #0073ea; }

.holiday-cell {
  height: 90px;
  vertical-align: top;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.15s;
}
.holiday-cell:hover {
  background-color: #f0f7ff;
}
.holiday-cell.is-holiday {
  background-color: #fff0f0;
  border: 2px solid #ffcccc;
}
.holiday-date-num {
  font-size: 15px;
  font-weight: bold;
  display: block;
  text-align: left;
  margin-bottom: 5px;
  color: var(--sidebar-dark);
}
.holiday-label {
  font-size: 12px;
  color: #e74c3c;
  font-weight: bold;
  display: none;
  text-align: center;
  margin-top: 15px;
  background: #ffeaea;
  padding: 4px;
  border-radius: 4px;
}
.holiday-cell.is-holiday .holiday-label {
  display: block;
}
/* マトリクス表の時間文字の途中折返し防止 & レスポンシブ最適化 */
.monthly-matrix-table th, 
.monthly-matrix-table td {
  min-width: 32px;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.col-emp-name {
  min-width: 95px !important;
  background-color: #ffffff !important;
}

.col-sum {
  min-width: 55px !important;
}
/* メモアイコンの個別ホバー表示制御 */
.monthly-matrix-table div {
  position: relative !important;
}

.memo-icon {
  position: absolute !important;
  top: 0px !important;
  right: 0px !important;
  font-size: 11px !important;
  line-height: 1 !important;
  z-index: 2 !important;
  cursor: pointer;
}

/* 他の予定のホバーに連動して表示されないよう非表示を強制 */
.monthly-matrix-table .memo-icon::before,
.monthly-matrix-table .memo-icon::after {
  display: none !important;
  opacity: 0 !important;
}

/* マウスが直接乗っている予定のメモアイコンのみ表示 */
.monthly-matrix-table .memo-icon:hover::before,
.monthly-matrix-table .memo-icon:hover::after,
.monthly-matrix-table div:hover > .memo-icon::before,
.monthly-matrix-table div:hover > .memo-icon::after {
  display: block !important;
  opacity: 1 !important;
  z-index: 9999 !important;
}

/* ホバー時の吹き出し位置調整 */
.memo-icon[data-tooltip]:hover::after {
  transform: translate(20%, -100%) !important;
}

/* ==========================================
   Web打刻画面（NEXT出退勤画面）TOHOスタイル（完全フルスクリーン化）
   ========================================== */
#page-web-timeclock {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999 !important;
  background: #ffffff;
  padding: 0 !important;
}

.timeclock-container {
  display: flex;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: #f4f7f9;
}

/* 左側：TOHOブルーパネル */
.timeclock-left-panel {
  flex: 1;
  background: linear-gradient(135deg, #0073ea 0%, #005bb5 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
}

.timeclock-header-title {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.clock-display-box {
  text-align: center;
  margin-bottom: 30px;
}

.clock-date {
  font-size: 18px;
  letter-spacing: 1px;
  opacity: 0.85;
  margin-bottom: 5px;
}

.clock-time {
  font-size: 64px;
  font-weight: bold;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.selected-user-display {
  font-size: 22px;
  font-weight: bold;
  height: 40px;
  margin-bottom: 30px;
  padding: 6px 24px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
}

/* 打刻ボタン 4つ並び */
.timeclock-action-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 10px;
}

.tc-action-btn {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tc-action-btn:not(.disabled):hover {
  background: #ffffff;
  color: #0073ea;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.tc-action-btn.disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.tc-btn-icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.tc-btn-label {
  font-size: 13px;
  font-weight: bold;
}

/* 右側：従業員一覧パネル */
.timeclock-right-panel {
  width: 420px;
  background: #ffffff;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.tc-right-header {
  height: 50px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.tc-tab-title {
  font-weight: bold;
  color: var(--toho-blue);
  font-size: 15px;
}

.tc-panel-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.tc-emp-list-wrapper {
  flex: 1;
  overflow-y: auto;
}

.tc-emp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid #f0f4f8;
  cursor: pointer;
  transition: background 0.15s ease;
}

.tc-emp-row:hover {
  background-color: #f0f7ff;
}

.tc-emp-row.selected {
  background-color: #e6f0fa;
  border-left: 4px solid var(--toho-blue);
}

.tc-emp-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tc-emp-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.tc-emp-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-main);
}

.tc-status-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: bold;
}

.tc-badge-working {
  background-color: #e8f8f0;
  color: #27ae60;
}

.tc-badge-not-started {
  background-color: #fcf3cf;
  color: #d35400;
}

.tc-badge-finished {
  background-color: #f2f4f4;
  color: #7f8c8d;
}

/* 右端 イニシャル縦タブ */
.tc-initial-sidebar {
  width: 45px;
  background: #f8fafc;
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px 0;
  gap: 2px;
  overflow-y: auto;
}

.tc-initial-btn {
  width: 36px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 11px;
  color: var(--text-sub);
  cursor: pointer;
  border-radius: 4px;
}

.tc-initial-btn.active, .tc-initial-btn:hover {
  background: var(--toho-blue);
  color: #ffffff;
  font-weight: bold;
}

/* 位置情報ON/OFFボタン */
.tc-loc-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  background: #ffffff;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tc-loc-btn.off {
  color: #7f8c8d;
  border-color: #bdc3c7;
}

.tc-loc-btn.on {
  background: #27ae60;
  color: #ffffff;
  border-color: #27ae60;
}