/* MEGURO SHOOTING — Reservation System Design Theme
   Bootstrap 5 変数オーバーライドと共通スタイル
   ------------------------------------------------ */

/* ── デザイントークン ── */
:root {
  --ms-accent:     #ea580c;
  --ms-accent-dark:#9a3412;
  --ms-accent-soft:#fff1e6;
  --ms-ink:        #0f1419;
  --ms-ink-2:      #2a2f37;
  --ms-ink-3:      #5a6068;
  --ms-line:       #e6e3dd;
  --ms-paper:      #faf7f2;
  --ms-paper-2:    #f3efe7;
  --ms-white:      #ffffff;

  /* フォント */
  --ms-f-display: "Antonio", "Bebas Neue", sans-serif;
  --ms-f-jp:      "Zen Kaku Gothic New", "Noto Sans JP", sans-serif;
  --ms-f-body:    "Noto Sans JP", "Inter", sans-serif;

  /* Bootstrap 5 変数オーバーライド */
  --bs-primary:          #ea580c;
  --bs-primary-rgb:      234, 88, 12;
  --bs-body-bg:          #faf7f2;
  --bs-body-color:       #0f1419;
  --bs-body-font-family: "Noto Sans JP", "Inter", sans-serif;
  --bs-border-color:     #e6e3dd;
  --bs-light:            #f3efe7;
  --bs-light-rgb:        243, 239, 231;
  --bs-secondary-color:  #5a6068;
  --bs-link-color:       #ea580c;
  --bs-link-hover-color: #9a3412;
}

/* ── ベース ── */
body {
  background: var(--ms-paper);
  color: var(--ms-ink);
  font-family: var(--ms-f-body);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ms-f-jp);
}

/* ── ナビバー ── */
.rs-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ms-line);
}
.rs-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.rs-nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ms-ink);
}
.rs-nav__logo img { display: block; }
.rs-nav__user-badge {
  display: none;
}
.rs-nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.rs-nav__user {
  font-size: 13px;
  color: var(--ms-ink-2);
  white-space: nowrap;
}
.rs-nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ms-ink-2);
  text-decoration: none;
  transition: color .15s;
  white-space: nowrap;
}
.rs-nav__link:hover { color: var(--ms-accent); }

/* ハンバーガーボタン */
.rs-nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
}
.rs-nav__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ms-ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.rs-nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.rs-nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.rs-nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .rs-nav__link,
  .rs-nav__user { display: none; }
  .rs-nav__burger { display: flex; }
  .rs-nav__user-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--ms-ink-2);
    white-space: nowrap;
    max-width: 170px;
    overflow: hidden;
  }
  .rs-nav__user-badge i {
    font-size: 15px;
    flex-shrink: 0;
    color: var(--ms-accent);
  }
  .rs-nav__user-badge-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ── モバイルドロワー ── */
.rs-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
}
.rs-drawer.is-open { display: block; }
.rs-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 25, .5);
  animation: rsOverlayIn .25s ease;
}
.rs-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: var(--ms-paper);
  display: flex;
  flex-direction: column;
  padding: 20px 24px 40px;
  overflow-y: auto;
  animation: rsPanelIn .25s ease;
}
.rs-drawer__panel a {
  font-family: var(--ms-f-jp);
  font-size: 16px;
  font-weight: 600;
  color: var(--ms-ink-2);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--ms-line);
  display: block;
  transition: color .15s;
}
.rs-drawer__panel a:hover { color: var(--ms-accent); }
.rs-drawer__close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--ms-ink-3);
  padding: 4px 8px;
  margin-bottom: 8px;
  line-height: 1;
}
.rs-drawer__user {
  font-size: 13px;
  color: var(--ms-ink-3);
  padding: 0 0 12px;
  border-bottom: 1px solid var(--ms-line);
  margin-bottom: 0;
}
@keyframes rsOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rsPanelIn { from { transform: translateX(100%); } to { transform: translateX(0); } }

/* ── フッター ── */
.rs-footer {
  background: var(--ms-ink);
  color: rgba(255, 255, 255, .7);
  padding-block: 56px 28px;
  margin-top: 80px;
}
.rs-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.rs-footer__brand img { display: block; }
.rs-footer__brand p {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 16px;
  color: rgba(255, 255, 255, .6);
}
.rs-footer__col h4 {
  font-family: var(--ms-f-display);
  font-size: 12px;
  letter-spacing: .15em;
  color: #fff;
  margin: 0 0 14px;
}
.rs-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rs-footer__col li,
.rs-footer__col a {
  font-size: 13px;
  color: rgba(255, 255, 255, .65);
  text-decoration: none;
  transition: color .15s;
}
.rs-footer__col a:hover { color: var(--ms-accent); }
.rs-footer__bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
}
.rs-footer__legal { display: flex; gap: 20px; }
.rs-footer__legal a {
  color: rgba(255, 255, 255, .4);
  text-decoration: none;
  font-size: 11px;
  transition: color .15s;
}
.rs-footer__legal a:hover { color: rgba(255, 255, 255, .8); }

@media (max-width: 820px) {
  .rs-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .rs-footer__grid { grid-template-columns: 1fr; }
}

/* ── ボタン ── */
.btn {
  border-radius: 999px;
  font-weight: 700;
  font-family: "Noto Sans JP", sans-serif;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn-primary {
  background-color: var(--ms-accent) !important;
  border-color: var(--ms-accent) !important;
  color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--ms-accent-dark) !important;
  border-color: var(--ms-accent-dark) !important;
  color: #fff !important;
}
.btn-secondary {
  background-color: var(--ms-ink-2);
  border-color: var(--ms-ink-2);
  color: #fff;
}
.btn-secondary:hover {
  background-color: var(--ms-ink);
  border-color: var(--ms-ink);
}
.btn-outline-primary {
  color: var(--ms-accent) !important;
  border-color: var(--ms-accent) !important;
}
.btn-outline-primary:hover {
  background-color: var(--ms-accent) !important;
  border-color: var(--ms-accent) !important;
  color: #fff !important;
}
.btn-outline-secondary {
  color: var(--ms-ink-3) !important;
  border-color: var(--ms-line) !important;
}
.btn-outline-secondary:hover {
  background-color: var(--ms-paper-2) !important;
  color: var(--ms-ink) !important;
}
.btn-member {
  background-color: #ffcb20 !important;
  border-color: #ffc107 !important;
  color: var(--ms-ink) !important;
  border-radius: 999px;
}
.btn-member:hover {
  background-color: #ffc107 !important;
}

/* ── カード ── */
.card {
  border-color: var(--ms-line);
  border-radius: 12px;
  background: var(--ms-white);
  box-shadow: 0 1px 4px rgba(15, 20, 25, 0.06);
}
.card.border-primary {
  border-color: var(--ms-accent) !important;
}
.card-title {
  color: var(--ms-ink);
  font-weight: 700;
}
.bg-light {
  background-color: var(--ms-paper-2) !important;
}

/* ── バッジ ── */
.badge.bg-primary {
  background-color: var(--ms-accent) !important;
}
.badge.bg-secondary {
  background-color: var(--ms-ink-3) !important;
}

/* ── 利用規約チェックボックス ── */
.terms-check {
  width: 1.4em;
  height: 1.4em;
  margin-top: 0.15em;
  border: 2px solid var(--ms-ink-2);
  cursor: pointer;
  flex-shrink: 0;
}
.terms-check:checked {
  background-color: var(--ms-accent);
  border-color: var(--ms-accent);
}

/* ── フォーム ── */
.form-control,
.form-select {
  border-color: var(--ms-line);
  background-color: var(--ms-white);
  color: var(--ms-ink);
  border-radius: 8px;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--ms-accent);
  box-shadow: 0 0 0 0.2rem rgba(234, 88, 12, 0.18);
  background-color: var(--ms-white);
}
.form-label {
  font-weight: 500;
  color: var(--ms-ink-2);
  font-size: 14px;
}

/* ── メニュー詳細トグル（menu_list.html） ── */
.details-toggle {
  color: var(--ms-ink-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  background-color: var(--ms-paper-2);
  border: 1px solid var(--ms-line);
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
  flex: 1;
  margin: 0;
}
.details-toggle:hover,
.details-toggle.active {
  color: var(--ms-accent);
  border-color: var(--ms-accent);
  background-color: var(--ms-accent-soft);
}
.details-toggle.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
}
.details-toggle::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ms-ink-3);
  border-bottom: 2px solid var(--ms-ink-3);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-top: -5px;
  flex-shrink: 0;
}
.details-toggle:hover::after,
.details-toggle.active::after {
  border-color: var(--ms-accent);
}
.details-toggle.active::after {
  margin-top: 5px;
  transform: rotate(-135deg);
}
.menu-details {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-out;
  opacity: 0;
  background-color: var(--ms-paper-2);
  border: 1px solid var(--ms-line);
  border-top: none;
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  margin-top: -1px;
}
.menu-details.show {
  max-height: 500px;
  opacity: 1;
  padding: 1rem;
  margin-bottom: 1rem;
  border-color: var(--ms-accent);
}

/* ── メニューカード補助（menu_list.html） ── */
.member-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.75rem;
  background: var(--ms-accent);
  border-radius: 50px;
  font-size: 0.7rem;
  font-family: var(--ms-f-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.4);
}
.action-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.action-buttons .btn {
  flex: 2;
}
.category-badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  z-index: 1;
}
.category-badges .badge {
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.member-only-card {
  border-color: var(--ms-accent) !important;
}
.btn-member-login {
  background: #1c1c1e;
  color: #fff;
  font-weight: 700;
  border: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.btn-member-login:hover {
  background: #333;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* ── アラート ── */
.alert {
  border-radius: 8px;
  font-size: 14px;
}
.alert-success {
  background-color: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
  border-left: 3px solid #16a34a;
}
.alert-danger {
  background-color: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
  border-left: 3px solid #dc2626;
}
.alert-info {
  background-color: var(--ms-accent-soft);
  border-color: #fed7aa;
  color: var(--ms-accent-dark);
  border-left: 3px solid var(--ms-accent);
}

/* ── テーブル ── */
.table {
  color: var(--ms-ink);
  border-color: var(--ms-line);
}
.table thead th {
  background: var(--ms-paper-2);
  color: var(--ms-ink-2);
  font-weight: 600;
  font-size: 13px;
  border-color: var(--ms-line);
}
.table-hover > tbody > tr:hover {
  background-color: var(--ms-accent-soft);
}

/* ── 予約カレンダー（reservation_form.html） ── */
.time-grid {
  width: 100%;
  table-layout: fixed;
  font-size: 0.9rem;
}
.time-grid th:first-child,
.time-grid td:first-child {
  width: 70px;
  min-width: 70px;
}
.time-grid th:not(:first-child),
.time-grid td:not(:first-child) {
  width: calc((100% - 70px) / 7);
}
.date-cell {
  text-align: center;
  padding: 2px;
}
.date-number {
  font-size: 1rem;
  font-weight: 700;
}
.date-day {
  font-size: 0.75rem;
  color: var(--ms-ink-3);
}
.sunday .date-number,
.sunday .date-day,
.holiday .date-number,
.holiday .date-day { color: #dc3545; }
.saturday .date-number,
.saturday .date-day { color: #2563eb; }
.text-muted .date-number,
.text-muted .date-day { color: var(--ms-ink-3); opacity: 0.6; }

/* 週ナビ */
.nav-week-btn { border-radius: 999px; font-size: 13px; }
.current-month {
  font-family: var(--ms-f-display);
  font-size: 1.1rem;
  letter-spacing: .05em;
  color: var(--ms-ink);
}

@media (max-width: 576px) {
  .time-grid { font-size: 0.8rem; }
  .time-grid th:first-child,
  .time-grid td:first-child { width: 60px; min-width: 60px; }
  .time-grid td { padding: 4px 2px; }
  .date-cell { white-space: nowrap; }
  .date-number { font-size: 0.9rem; }
}

/* ── カレンダー（calendar.html） ── */
.time-slot.available {
  background-color: var(--ms-accent-soft) !important;
  border-color: #fed7aa !important;
  color: var(--ms-accent-dark);
}
.time-slot.selected {
  background-color: var(--ms-accent) !important;
  border-color: var(--ms-accent) !important;
  color: #fff !important;
}
.time-slot {
  border-color: var(--ms-line) !important;
  border-radius: 8px !important;
}

/* ── フッター ── */
.footer {
  background: var(--ms-paper-2) !important;
  border-top: 1px solid var(--ms-line);
}
.footer .text-muted {
  color: var(--ms-ink-3) !important;
}
.footer a {
  color: var(--ms-ink-3) !important;
  text-decoration: none;
  transition: color 0.15s;
}
.footer a:hover {
  color: var(--ms-accent) !important;
}

/* ── テキスト補助 ── */
.text-muted {
  color: var(--ms-ink-3) !important;
}
.text-primary {
  color: var(--ms-accent) !important;
}

/* ── 価格・数字表示（Antonio） ── */
.ms-price {
  font-family: var(--ms-f-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--ms-accent);
  line-height: 1;
  letter-spacing: .01em;
}
.ms-price--sm {
  font-size: 1.6rem;
}
.ms-price--lg {
  font-size: 3rem;
}
.ms-price-unit {
  font-size: 0.8rem;
  color: var(--ms-ink-3);
  margin-left: 2px;
}

/* ── フォーム内セクションラベル ── */
.ms-section-label {
  font-family: var(--ms-f-display);
  font-size: 11px;
  letter-spacing: .2em;
  font-weight: 600;
  color: var(--ms-ink-3);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.75rem;
}
.ms-section-label::before {
  content: "";
  width: 16px;
  height: 1.5px;
  background: var(--ms-accent);
  flex-shrink: 0;
}

/* ── Eyebrow ラベル（セクション上部の小見出し） ── */
.ms-eyebrow {
  font-family: var(--ms-f-display);
  font-size: 12px;
  letter-spacing: .28em;
  font-weight: 500;
  color: var(--ms-accent);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.ms-eyebrow::before {
  content: "";
  width: 24px;
  height: 1.5px;
  background: var(--ms-accent);
  flex-shrink: 0;
}
