 :root {
    --sidebar-width: 12.5em;
    --sidebar-bg: #ffffff;
    --active-bg: #eef2ff;
    --text-color: #1a1a1a;
    --accent-color: #ff5a5f;
    --border-color: #e2e8f0;
}

body {
  margin: 0;
  font-size: clamp(0px,(100vw / 105), 16px);
  font-family: 'Ubuntu', 'Noto Sans JP', sans-serif; 
  line-height: 1.6;
  color: #1a1a1a;
  background: #f4f7f6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (max-width: 769px) {
  body {
    margin: 0 auto;
    width: 96%;
    font-size: clamp(0px, (100vw / 25), 16px);
  }
}



.top-nav {
  background: #fff;
  border-bottom: 0.0625em solid var(--border);
  padding: 0 1.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5em;
  flex-shrink: 0;
  box-shadow: 0 0.0625em 0.125em rgba(0, 0, 0, 0.03);
}





.prev { margin-bottom: 1em; }
.prev a { font-size: .9375em; font-weight: bold; text-decoration: none; color: inherit; }
.prev a svg { margin-right: .5em; width: 1em; vertical-align: middle; }









/*--------------------------------------------------------------
/index.php
--------------------------------------------------------------*/




label { display: block; font-size: 0.8rem; font-weight: bold; margin-bottom: 5px; }
input { padding: 1em; width: 100%; font-size: 1rem; border: none; border-radius: .375em; background: #fff; box-sizing: border-box; outline: none; }
.btn-login { margin-top: .5em; padding: 1em; width: 100%; font-size: 1rem; font-weight: bold; color: #fff; border: none; border-radius: .375em; background: #ff5a5f; box-sizing: border-box; outline: none; cursor: pointer; }
.error { margin-bottom: 1em; font-size: .75em !important; font-weight: bold; color: #d32f2f; }

/*.stats*/
.dashboard .stats {
  display: flex;
  gap: .5em;
  margin-bottom: 1em;
  text-align: left;
}
.dashboard .stats .stat-box {
  flex: 1;
  background: #f8f9fa;
  padding: 1em;
  border-radius: .25em;
}
.dashboard .stats .stat-box h3 {
  margin: 0 0 .5em;
  font-size: .75em;
  font-weight: bold;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 4px;
}
.dashboard .stats .stat-box table {
  width: 100%;
  font-size: .75em;
  border-collapse: collapse;
  border: none;
}
.dashboard .stats .stat-box table tbody {
  
}
.dashboard .stats .stat-box table tbody tr {
  
}
.dashboard .stats .stat-box table tbody tr th {
  width: 50%;
  font-weight: normal;
}
.dashboard .stats .stat-box table tbody tr td {
  width: 50%;
  text-align: right;
}
/*.menu*/
.dashboard .menu {
  display: grid;
  margin: 2em auto;
  gap: .5em;
}
.dashboard .menu .item {
  position: relative;
  display: block;
  text-align: center;
  text-decoration: none;
  color: #1a1a1a;
  border-radius: .375em;
  background: var(--white);
  border-radius: 0.375em;
  padding: 1.25em;
  box-shadow: 0 0.25em 0.375em -0.0625em rgba(0, 0, 0, 0.05);
  background: #fff;
  transition: all 0.2s;
}
.dashboard .menu .item h3 {
  margin: 0 0 .25em;
  font-size: 1em;
}
.dashboard .menu .item p {
  margin: 0;
  font-size: .875em;
}
.dashboard .menu .item .badge {
  position: absolute;
  top: .75em;
  right: .75em;
  padding: .75em;
  width: 1em;
  height: 1em;
  font-size: 0.75em;
  font-weight: bold;
  line-height: 1;
  color: white;
  background: #c1272d;
  border-radius: 50%;
}
.dashboard .btn-logout {
  display: block;
  font-size: .875em;
  color: #c1272d;
  text-align: center;
  text-decoration: none;
}






.date-nav { display: flex; justify-content: center; align-items: center; margin-bottom: .5em; }
.current-date-display { flex: 1; max-width: 300px; text-align: center; font-weight: bold; font-size: 1.25em; background: #fff; padding: 10px; border-radius: 5px; position: relative; cursor: pointer; }
#hidden-date-picker { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.shop-select { -webkit-appearance: none; appearance: none; display: block; margin: 2em auto; padding: .75em; width: 90%; max-width: 300px; color: #1a1a1a; border: .0625em solid #1a1a1a; border-radius: .25em; background-color: white; }
.filter-nav { display: flex; flex-wrap: nowrap; gap: 6px; margin: 1em 0; padding: .125em .5em; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.filter-nav::-webkit-scrollbar { display: none; }
.filter-btn { display: block; text-decoration: none; font-size: .75em; padding: .5em 1.25em; border-radius: 20px; background: #fff; color: #1a1a1a; border: 1px solid #1a1a1a; font-weight: bold; white-space: nowrap; flex-shrink: 0; }
.filter-btn.active { background: #007bff; color: #fff; border-color: #007bff; }
.status-badge { padding: 3px 6px; border-radius: 4px; font-size: 0.75em; font-weight: bold; display: inline-block; }
.status-来店前 { background: #ffeeba; color: #856404; }
.status-チェックイン済 { background: #d1ecf1; color: #0c5460; }
.status-施術中 { background: #007bff; color: #fff; }
.status-会計済 { background: #d4edda; color: #155724; }
.status-キャンセル { background: #f8d7da; color: #721c24; }        
.late-badge { background: #c1272d; color: #fff; margin-left: 4px; }
.memo-indicator { color: #007bff; font-size: 0.8em; margin-left: 4px; }

.res-list { padding: 0; margin: 0; list-style: none; }
.swipe-item { position: relative; margin-bottom: 1em; overflow: hidden; border-radius: 8px; box-shadow: 1px 1px .5em 0 rgba(0,0,0,.25); }
.swipe-item.to-checkin { background: #28a745; }
.swipe-item.to-detail { background: #007bff; }
.swipe-content { position: relative; padding: 1em; background-color: #fff; z-index: 2; transition: transform 0.2s ease-out; touch-action: pan-y; -webkit-user-select: none; }
.swipe-action-label { position: absolute; top: 0; height: 100%; display: flex; align-items: center; color: #fff; font-weight: bold; z-index: 1; padding: 0 20px; }
.action-left { left: 0; }
.action-right { right: 0; }
.res-time { font-weight: bold; white-space: nowrap; }
.res-name { margin-bottom: .25em; font-weight: bold; }
.res-row-sub { margin-top: .75em; font-size: 0.75em; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 9999; justify-content: center; align-items: center; }
.modal-content { background: white; width: 90%; max-width: 400px; border-radius: 15px; padding: 20px; box-sizing: border-box; text-align: center; color: #000; }
.tag-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 20px 0; }
.tag-btn { padding: 12px 0; border: 1px solid #ddd; border-radius: 8px; background: #f8f9fa; cursor: pointer; font-size: 1rem; color: #000; }
.tag-btn:active { background: #007bff; color: white; }
.confirm-btn-group { display: flex; gap: 10px; margin-top: 20px; }
.btn-yes { flex: 1; padding: 15px; background: #007bff; color: white; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }
.btn-no { flex: 1; padding: 15px; background: #eee; color: #333; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; }
textarea.memo-input { width: 100%; height: 100px; padding: 10px; box-sizing: border-box; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; margin: 10px 0; font-family: inherit; }



/*--------------------------------------------------------------
/reservation/index.php
--------------------------------------------------------------*/



