:root {
  --primary:       #7B5B3A;  /* ウォームブラウン */
  --primary-light: #F5EDE0;  /* クリーム・ベージュ */
  --accent:        #A07855;  /* ミディアムブラウン */
  --dark:          #3D2B1F;  /* エスプレッソブラウン */
  --gray-bg:       #FAF6F0;  /* ウォームオフホワイト */
}

body {
  background: var(--gray-bg);
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: #333;
}

/* ---- ヘッダー ---- */
.site-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: #fff;
  padding: 1rem 0;
  text-align: center;
}
.site-header .header-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
}
.site-header .tagline {
  font-size: .75rem;
  opacity: .75;
  letter-spacing: .18em;
  margin-top: .2rem;
}

/* ---- ステップバー ---- */
.step-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: .6rem 0;
  overflow-x: auto;
}
.step-item {
  display: flex;
  align-items: center;
  font-size: .72rem;
  color: #aaa;
  white-space: nowrap;
}
.step-item .num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ddd;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-right: 4px;
  font-size: .7rem;
}
.step-item.active { color: var(--primary); }
.step-item.active .num { background: var(--primary); }
.step-item.done .num  { background: var(--accent); }
.step-item + .step-item::before {
  content: '›';
  margin: 0 6px;
  color: #ccc;
}

/* ---- カード ---- */
.card { border: none; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,.07); }
.card-header-palms {
  background: var(--primary);
  color: #fff;
  border-radius: 12px 12px 0 0 !important;
  font-weight: 600;
  letter-spacing: .05em;
}

/* ---- ボタン ---- */
.btn-palms {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: .6rem 2rem;
  font-weight: 600;
  letter-spacing: .05em;
  transition: background .2s;
}
.btn-palms:hover { background: var(--accent); color: #fff; }
.btn-outline-palms {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 25px;
  padding: .5rem 1.5rem;
  font-weight: 600;
  background: transparent;
  transition: all .2s;
}
.btn-outline-palms:hover { background: var(--primary); color: #fff; }

/* ---- フォーム ---- */
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 .2rem rgba(224,122,171,.25);
}
.form-label { font-weight: 600; font-size: .9rem; color: var(--dark); }
.form-control::placeholder { color: #cccccc; }
::-webkit-input-placeholder { color: #cccccc; }
::-moz-placeholder          { color: #cccccc; }
:-ms-input-placeholder      { color: #cccccc; }

/* ---- Now Printing ---- */
.artist-photo {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--primary-light);
  display: block;
}
.now-printing {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px dashed var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .5rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .06em;
  text-align: center;
  line-height: 1.4;
}

/* ---- アーティストカード ---- */
.artist-card {
  border-radius: 12px;
  border: 2px solid transparent;
  transition: border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.artist-card:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(181,69,122,.15); }
.artist-card img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; border: 3px solid var(--primary-light); }
.artist-card .artist-name { font-weight: 700; color: var(--dark); }
.artist-card .artist-sex  { font-size: .75rem; color: #999; }

/* ---- 時間選択ボタン ---- */
.time-btn {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 8px;
  padding: .5rem 1rem;
  font-weight: 600;
  background: #fff;
  transition: all .2s;
  text-decoration: none;
  display: inline-block;
}
.time-btn:hover { background: var(--primary); color: #fff; }

/* ---- 確認テーブル ---- */
.confirm-table th {
  background: var(--primary-light);
  color: var(--dark);
  font-weight: 600;
  width: 38%;
  font-size: .9rem;
}
.confirm-table td { font-size: .95rem; }

/* ---- 管理画面 ---- */
.admin-sidebar {
  min-height: 100vh;
  background: var(--dark);
  padding-top: 1rem;
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.7);
  padding: .7rem 1.2rem;
  border-radius: 8px;
  margin: 2px 8px;
  font-size: .9rem;
}
.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: var(--primary);
  color: #fff;
}
.admin-sidebar .nav-link i { width: 20px; }
.admin-logo {
  padding: .8rem 1rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: .5rem;
  text-align: center;
}
.admin-logo img {
  height: auto;
  width: 100%;
  max-width: 160px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ---- カレンダー ---- */
.cal-table { border-collapse: collapse; width: 100%; }
.cal-table th, .cal-table td { border: 1px solid #e0d0d8; padding: 4px 6px; font-size: .8rem; }
.cal-table th { background: var(--primary); color: #fff; text-align: center; }
.cal-table th.sun, .cal-table td.sun { color: #e05a5a; }
.cal-table th.sat, .cal-table td.sat { color: #4a7fd4; }
.cal-table td.today { background: #fff9e6; font-weight: 700; }
.cal-table td a { text-decoration: none; color: inherit; display: block; text-align: center; }
.cal-table td a:hover { background: var(--primary-light); border-radius: 4px; }
.cal-table td.target a { background: var(--primary); color: #fff; border-radius: 4px; }

/* ---- 予約タイムグリッド ---- */
.rsv-grid { font-size: .78rem; }
.rsv-grid th { background: var(--primary-light); font-weight: 600; }
.rsv-cell-empty { color: #ccc; }
.rsv-cell-booked  { background: #fce8f3; color: var(--dark); border-radius: 4px; padding: 2px 4px; font-size: .75rem; display: block; }
.rsv-cell-omakase { background: #e8f0fb; color: var(--dark); border-radius: 4px; padding: 2px 4px; font-size: .75rem; display: block; border-left: 3px solid #4a7fd4; }
.rsv-cell-rest    { background: #e8e8e8; color: #888; border-radius: 4px; padding: 2px 4px; font-size: .75rem; text-align: center; }
/* おまかせバッジ */
.badge-oma {
  display: inline-block;
  background: #4a7fd4;
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  margin-bottom: 2px;
  letter-spacing: .03em;
}

/* ---- バッジ ---- */
.badge-palms { background: var(--primary); color: #fff; }

/* ---- フッター ---- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  text-align: center;
  padding: 1.2rem;
  font-size: .8rem;
  margin-top: 3rem;
}

/* ---- 予約カレンダー ---- */
.booking-cal-wrap {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.booking-cal-month {
  flex: 1;
  min-width: 240px;
}
.booking-cal-title {
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .4rem;
  font-size: .95rem;
}
.booking-cal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.booking-cal-table th {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 4px 2px;
  font-weight: 600;
}
.booking-cal-table th.sun { background: #c0445a; }
.booking-cal-table th.sat { background: #4a7fd4; }
.booking-cal-table td {
  text-align: center;
  padding: 3px 2px;
  height: 34px;
  vertical-align: middle;
}
.booking-cal-table td span {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  border-radius: 50%;
}
/* 予約可能日 */
.booking-cal-table td.cal-available { cursor: pointer; }
.booking-cal-table td.cal-available:hover span { background: var(--primary-light); }
.booking-cal-table td.cal-available.sun span { color: #c0445a; }
.booking-cal-table td.cal-available.sat span { color: #4a7fd4; }
/* 選択中 */
.booking-cal-table td.cal-selected span {
  background: var(--primary);
  color: #fff !important;
  font-weight: 700;
}
/* 過去・定休日 */
.booking-cal-table td.cal-past span  { color: #ccc; }
.booking-cal-table td.cal-holiday span {
  color: #bbb;
  text-decoration: line-through;
}
.booking-cal-table td.cal-holiday {
  background: #f5f5f5;
}

/* 選択日表示ボックス */
.date-display-box {
  background: var(--primary-light);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: .5rem 1rem;
  min-height: 2.2rem;
  font-size: .95rem;
}

/* 凡例 */
.cal-legend { font-size: .75rem; }
.holiday-legend { color: #ccc; }

/* 予約日注記バッジ */
.badge-note {
  display: inline-block;
  font-size: .72rem;
  font-weight: normal;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 1px 9px;
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: 0;
}

/* 管理カレンダー定休日（グレー表示のみ・リンクは有効） */
.cal-table td.cal-hol { background: #f0f0f0; }
.cal-table td.cal-hol a { color: #bbb; text-decoration: none; }
.cal-table td.cal-hol a:hover { background: var(--primary-light); border-radius: 4px; color: var(--primary); }

/* ---- モバイル管理トップバー ---- */
.mobile-topbar {
  background: var(--dark);
  color: #fff;
  padding: .6rem 1rem;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.mobile-topbar-title {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .05em;
}
.hamburger-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0 .2rem;
  cursor: pointer;
}
.hamburger-btn:hover { color: var(--accent); }

/* offcanvas nav-link */
.offcanvas-body .nav-link {
  color: rgba(255,255,255,.75);
  padding: .7rem 1.2rem;
  border-radius: 8px;
  margin: 2px 8px;
  font-size: .9rem;
  display: block;
  text-decoration: none;
}
.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link.active {
  background: var(--primary);
  color: #fff;
}

/* ---- 週間カレンダー ---- */
.weekly-cal-wrap { overflow-x: auto; }

.weekly-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .4rem 0 .6rem;
  gap: .5rem;
}
.weekly-nav-month {
  font-weight: 700;
  color: var(--primary);
  font-size: .95rem;
  text-align: center;
  flex: 1;
}
.weekly-nav-btn {
  color: var(--primary);
  text-decoration: none;
  font-size: .82rem;
  white-space: nowrap;
  padding: .3rem .6rem;
  border: 1px solid var(--primary);
  border-radius: 20px;
  background: #fff;
  transition: all .2s;
}
.weekly-nav-btn:hover { background: var(--primary); color: #fff; }
.weekly-nav-btn.disabled { color: #ccc; border-color: #ccc; pointer-events: none; }

.weekly-cal-table {
  border-collapse: collapse;
  font-size: .78rem;
  min-width: 480px;
  width: 100%;
}
.weekly-cal-table th, .weekly-cal-table td {
  border: 1px solid #e0d0d8;
  text-align: center;
  padding: 3px 2px;
  vertical-align: middle;
}
.weekly-cal-table th {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 5px 3px;
}
.weekly-cal-table th.sun { background: #c0445a; }
.weekly-cal-table th.sat { background: #4a7fd4; }
.weekly-cal-table th.wcal-today { background: #e07aab; }
.weekly-cal-table .time-col {
  background: var(--primary-light);
  color: var(--dark);
  font-weight: 600;
  width: 42px;
  font-size: .72rem;
}
/* 空き ◎ */
.wcal-ok { background: #fff; }
.wcal-circle {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: block;
  line-height: 1.8;
  transition: color .15s;
}
.wcal-circle:hover { color: var(--accent); background: var(--primary-light); }
/* 埋まり × */
.wcal-ng { background: #fafafa; }
.wcal-x  { color: #bbb; font-size: .85rem; display: block; line-height: 1.8; }
/* 休業・範囲外 */
.wcal-closed { background: #f0f0f0; }
.wcal-closed .wcal-x { color: #aaa; font-size: .72rem; }
.wcal-out { background: #f8f8f8; color: #ccc; font-size: .72rem; }
/* 日・土 */
.weekly-cal-table td.sun { background: #fff5f5; }
.weekly-cal-table td.sat { background: #f5f8ff; }
.weekly-cal-table td.sun.wcal-closed,
.weekly-cal-table td.sat.wcal-closed,
.weekly-cal-table td.sun.wcal-out,
.weekly-cal-table td.sat.wcal-out { background: #f0f0f0; }

/* 個人休日設定スロット */
.slot-check-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.slot-check-label {
  font-size: .78rem;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  white-space: nowrap;
}
.slot-chk:checked + .slot-check-label {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

/* ---- レスポンシブ ---- */
@media (max-width: 576px) {
  .step-bar { font-size: .65rem; }
  .step-item + .step-item::before { margin: 0 3px; }
  .btn-palms { padding: .55rem 1.5rem; }
  .artist-card img { width: 60px; height: 60px; }
  .weekly-cal-table { font-size: .7rem; }
  .weekly-cal-table .time-col { width: 34px; font-size: .65rem; }
}
