/* =====================================================
   BeautySpace MVP — Salon Luxe Theme
   サロンブランドの上品さを意識したリデザイン
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
  /* ベースカラー: クリーム × ダスティローズ × シャンパンゴールド */
  --bg:           #fbf7f1;       /* 温かみのあるアイボリー */
  --bg-alt:       #f5ede4;
  --surface:      #ffffff;
  --surface-soft: #fdfaf6;

  --primary:      #b8857a;       /* ダスティローズ */
  --primary-dark: #8a5d54;
  --primary-soft: #ead6cf;

  --accent:       #c9a96e;       /* シャンパンゴールド */
  --accent-dark:  #a4884f;

  --text:         #2a2125;       /* ウォームチャコール */
  --text-soft:    #54484e;
  --muted:        #8b7e83;

  --border:       #ede5dd;
  --border-soft:  #f3ede6;
  --shadow-sm:    0 1px 3px rgba(60, 30, 40, 0.04);
  --shadow-md:    0 4px 16px rgba(60, 30, 40, 0.06);
  --shadow-lg:    0 12px 32px rgba(60, 30, 40, 0.08);

  --weekend:      #fbeee8;
  --success:      #6b8e7f;
  --success-bg:   #e8efea;
  --warn:         #c08a3a;
  --warn-bg:      #faf0de;
  --error:        #a8413f;
  --error-bg:     #fbe7e6;

  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    16px;
  --radius-xl:    24px;
}

* { box-sizing: border-box; }

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(at 100% 0%, rgba(201, 169, 110, 0.06), transparent 50%),
    radial-gradient(at 0% 100%, rgba(184, 133, 122, 0.06), transparent 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.7;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Playfair Display", "Noto Sans JP", serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
}

h2 { font-size: 26px; margin: 0 0 16px; }
h3 { font-size: 18px; margin: 24px 0 12px; font-weight: 700; letter-spacing: 0.03em; }
h4 { font-size: 15px; margin: 20px 0 10px; font-weight: 700; }

/* =====================================================
   ヘッダー
   ===================================================== */
header#topbar {
  background: linear-gradient(135deg, #3a2a2e 0%, #5a3f44 100%);
  color: #f9f1e7;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(201, 169, 110, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 2px;
}
.brand::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
#userInfo {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: rgba(249, 241, 231, 0.85);
}
#userInfo button {
  background: transparent;
  border: 1px solid rgba(249, 241, 231, 0.3);
  color: #f9f1e7;
  border-radius: 999px;
  padding: 5px 14px;
  cursor: pointer;
  margin-left: 12px;
  font-size: 11px;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}
#userInfo button:hover {
  background: rgba(249, 241, 231, 0.1);
  border-color: var(--accent);
}

/* =====================================================
   レイアウト
   ===================================================== */
.view {
  padding: 40px 32px 80px;
  max-width: 1180px;
  margin: 0 auto;
}
.hidden { display: none !important; }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}

/* =====================================================
   ログインカード
   ===================================================== */
.login-card {
  max-width: 460px;
  margin: 80px auto;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.login-card h2 {
  font-size: 32px;
  margin: 0 0 8px;
  color: var(--primary-dark);
}
.login-card h2::after {
  content: '';
  display: block;
  margin: 16px auto 24px;
  width: 40px;
  height: 1px;
  background: var(--accent);
}
.login-card label { text-align: left; }
/* 認証タブ */
.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin: 0 0 24px;
  gap: 0;
}
.auth-tabs button {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 12px 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 13px;
  letter-spacing: 0.06em;
  margin: 0;
  font-weight: 400;
  transition: all 0.2s ease;
}
.auth-tabs button:hover { color: var(--primary-dark); background: transparent; }
.auth-tabs button.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
  font-weight: 500;
}
.auth-form { animation: fadeIn 0.25s ease; text-align: left; }
.auth-form .form-section {
  font-family: "Playfair Display", "Noto Sans JP", serif;
  font-size: 13px;
  color: var(--primary-dark);
  font-weight: 500;
  margin: 22px 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-soft);
  letter-spacing: 0.06em;
}
.auth-form .form-section:first-child { margin-top: 4px; }
.auth-form .hint { font-size: 11.5px; padding: 10px 12px; }

/* 予約からの遷移時に表示する誘導バナー */
.auth-prompt {
  background: linear-gradient(135deg, var(--primary-soft) 0%, #f7e7d8 100%);
  color: var(--primary-dark);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 13px;
  text-align: left;
  border: 1px solid var(--primary-soft);
  letter-spacing: 0.02em;
}
.auth-prompt strong { font-family: "Playfair Display", serif; font-weight: 500; }

.demo-accounts {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 12px;
  margin-top: 28px;
  text-align: left;
  border: 1px solid var(--border-soft);
}
.demo-accounts strong { color: var(--primary-dark); display: block; margin-bottom: 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.demo-accounts ul { padding-left: 18px; margin: 4px 0; line-height: 1.9; }
.demo-accounts code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11.5px;
  color: var(--primary-dark);
  border: 1px solid var(--border-soft);
}

/* =====================================================
   フォーム要素
   ===================================================== */
label {
  display: block;
  margin: 14px 0;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
label input,
label select,
label textarea,
input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  letter-spacing: normal;
  text-transform: none;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184, 133, 122, 0.12);
}

/* =====================================================
   ボタン
   ===================================================== */
button {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  transition: all 0.18s ease;
  letter-spacing: 0.02em;
}
button:hover { border-color: var(--primary); color: var(--primary-dark); }
button.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 12px 28px;
}
button.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
button.danger {
  background: transparent;
  color: var(--error);
  border-color: var(--error);
}
button.danger:hover {
  background: var(--error-bg);
}
button:disabled { opacity: 0.35; cursor: not-allowed; }

/* =====================================================
   タブ
   ===================================================== */
nav.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  padding: 0;
}
nav.tabs button {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 14px 22px;
  font-weight: 400;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0;
}
nav.tabs button:hover {
  color: var(--primary-dark);
  background: transparent;
}
nav.tabs button.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
  font-weight: 500;
}
.tab-pane { padding: 8px 0; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* =====================================================
   ツールバー / 行レイアウト
   ===================================================== */
.toolbar {
  display: flex;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
}
.toolbar label { margin: 0; }
.row { display: flex; gap: 14px; align-items: end; flex-wrap: wrap; margin-bottom: 20px; }
.row label { flex: 1; margin: 0; min-width: 130px; }
.row button { align-self: flex-end; }

.error { color: var(--error); margin-top: 8px; font-size: 13px; }
.hint {
  background: var(--warn-bg);
  border-left: 3px solid var(--warn);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  font-size: 13px;
  color: var(--text-soft);
}
/* アバター画像プレビュー */
.avatar-preview {
  display: block;
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
  margin: 8px 0 10px;
}
.hint-small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.02em;
  text-transform: none;
}
input[type="file"] {
  padding: 6px 4px;
  cursor: pointer;
  font-size: 12px;
  background: var(--surface-soft);
}
input[type="file"]::-webkit-file-upload-button {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 12px;
  color: var(--primary-dark);
  font-size: 12px;
  margin-right: 8px;
  cursor: pointer;
}

/* シフト時の部屋ピッカー */
.room-picker {
  background: var(--surface-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 16px 0;
}
.room-picker .hint { margin-top: 0; }
.room-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 14px 0;
}
.room-btn {
  padding: 18px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.room-btn.available {
  border-color: var(--primary-soft);
  color: var(--primary-dark);
}
.room-btn.available:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-1px);
}
.room-btn.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
.room-btn.taken {
  background: var(--bg-alt);
  color: #c9bdb4;
  border-color: var(--border-soft);
  cursor: not-allowed;
}
.room-btn .check { color: var(--success); font-size: 18px; margin-left: 4px; }
.room-btn .cross { color: var(--error); font-size: 16px; margin-left: 4px; }
.room-btn small { display: block; font-weight: normal; margin-top: 4px; font-size: 10px; }

.copy-status {
  display: inline-block;
  margin-left: 10px;
  padding: 3px 10px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  animation: fadeIn 0.2s ease;
}
.hint a { color: var(--primary-dark); text-decoration: none; border-bottom: 1px solid var(--primary-soft); }

/* =====================================================
   テーブル
   ===================================================== */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}
th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  font-size: 13px;
}
th {
  background: var(--surface-soft);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
tr:last-child td { border-bottom: none; }
tr.weekend td { background: var(--weekend); }

/* =====================================================
   バッジ
   ===================================================== */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.badge-confirmed { background: var(--success-bg); color: var(--success); }
.badge-cancel { background: var(--error-bg); color: var(--error); }
.badge-same-day { background: var(--warn-bg); color: var(--warn); }
.badge-room {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--primary-soft);
  text-transform: none;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 12px;
}

/* =====================================================
   稼働カレンダー
   ===================================================== */
.cal-grid {
  display: grid;
  grid-template-columns: 70px repeat(7, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 11px;
  box-shadow: var(--shadow-sm);
}
.cal-grid .cell {
  background: var(--surface);
  padding: 6px 8px;
  min-height: 42px;
}
.cal-grid .cell.head {
  background: var(--surface-soft);
  font-weight: 500;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 6px;
}
.cal-grid .cell.weekend { background: var(--weekend); }
.cal-grid .cell.head.weekend { background: #f5e3dc; }
.cal-grid .cell.row-time {
  text-align: right;
  color: var(--muted);
  font-family: "Playfair Display", serif;
  font-size: 12px;
  font-style: italic;
  align-self: center;
}
.cal-grid .cell .booking {
  font-size: 10.5px;
  border-radius: 4px;
  padding: 3px 6px;
  margin-bottom: 2px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.cal-grid .cell .booking.A { background: #ead6cf; color: #6b3a30; }
.cal-grid .cell .booking.B { background: #d8e4dc; color: #3d5b4f; }
.cal-grid .cell .booking.C { background: #efe1c8; color: #6e5424; }

/* =====================================================
   公開ビューティストページ
   ===================================================== */
.profile-hero {
  display: flex;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, var(--surface-soft) 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  margin: 16px 0 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 70%);
  opacity: 0.5;
}
.profile-hero img.avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
  position: relative;
  z-index: 1;
}
.profile-hero > div { position: relative; z-index: 1; flex: 1; }
.profile-hero h2 {
  margin: 0 0 8px;
  font-size: 30px;
  color: var(--primary-dark);
}
.profile-hero p {
  color: var(--text-soft);
  margin: 8px 0 16px;
  font-size: 14px;
  max-width: 540px;
}
.sns-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.sns-links a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  text-decoration: none;
  border-radius: 999px;
  font-size: 12px;
  transition: all 0.2s ease;
}
.sns-links a:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* =====================================================
   メニューカード
   ===================================================== */
#publicMenus h3 {
  font-size: 22px;
  margin: 32px 0 20px;
  color: var(--text);
  position: relative;
  padding-left: 20px;
}
#publicMenus h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}
.menu-list { display: grid; gap: 14px; }
.menu-item {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}
.menu-item:hover {
  border-color: var(--primary-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.menu-item .info { flex: 1; }
.menu-item .info strong {
  font-size: 17px;
  font-family: "Playfair Display", serif;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}
.menu-item .info small {
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.04em;
}
.menu-item .info > div { color: var(--text-soft); margin-top: 6px; font-size: 13px; }

/* =====================================================
   予約フロー (ステップ + 時間グリッド)
   ===================================================== */
ol.steps {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  gap: 8px;
}
ol.steps li {
  flex: 1;
  padding: 14px 12px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  text-align: center;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  font-weight: 500;
}
ol.steps li::before {
  content: counter(step);
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--muted);
  font-family: "Playfair Display", serif;
  font-size: 12px;
  line-height: 22px;
  margin-right: 8px;
  text-transform: none;
  font-weight: 700;
}
ol.steps { counter-reset: step; }
ol.steps li { counter-increment: step; }
ol.steps li.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
ol.steps li.active::before { background: #fff; color: var(--primary); }
ol.steps li.done {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--primary-soft);
}
ol.steps li.done::before { background: var(--primary); color: #fff; }

.hour-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 18px 0;
}
.hour-grid button {
  padding: 14px 10px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
}
.hour-grid button.available {
  background: var(--surface);
  border-color: var(--primary-soft);
  color: var(--primary-dark);
}
.hour-grid button.available:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  transform: translateY(-1px);
}
.hour-grid button.unavailable {
  background: var(--bg-alt);
  color: #c9bdb4;
  border-color: var(--border-soft);
  cursor: not-allowed;
}
.hour-grid button.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* =====================================================
   予約完了画面
   ===================================================== */
.success-card {
  background: linear-gradient(135deg, #3a2a2e 0%, #5a3f44 100%);
  color: #f9f1e7;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  margin: 24px 0;
}
.success-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(201, 169, 110, 0.25) 0%, transparent 60%);
}
.success-card > div { position: relative; }
.success-card .code {
  font-family: "Playfair Display", serif;
  font-size: 64px;
  font-weight: 500;
  letter-spacing: 16px;
  margin: 24px 0 16px;
  color: var(--accent);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.success-card hr {
  border: none;
  border-top: 1px solid rgba(201, 169, 110, 0.3);
  margin: 24px auto;
  max-width: 60%;
}
.success-card strong { color: var(--accent); font-weight: 500; }

/* =====================================================
   その他
   ===================================================== */
hr { border: none; border-top: 1px solid var(--border-soft); margin: 28px 0; }
code {
  background: var(--surface-soft);
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--primary-dark);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  border: 1px solid var(--border-soft);
}
a { color: var(--primary-dark); }
a:hover { color: var(--primary); }

/* スクロールバー (WebKit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-soft); }

/* =====================================================
   トップページ: 部屋紹介セクション
   ===================================================== */
.room-showcase {
  margin: 32px auto 24px;
  max-width: 1100px;
  padding: 0 24px;
}
.room-showcase-title {
  text-align: center;
  font-size: 26px;
  margin-bottom: 24px;
  color: var(--primary-dark);
  position: relative;
}
.room-showcase-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: var(--accent);
  margin: 14px auto 0;
}
.room-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.room-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}
.room-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.room-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg-alt);
}
.room-card-img.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  color: var(--muted);
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--surface-soft) 100%);
}
.room-card-title {
  margin: 18px 22px 6px;
  font-size: 20px;
  font-family: "Playfair Display", serif;
  color: var(--primary-dark);
}
.room-card-desc {
  margin: 0 22px 12px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.6;
}
.room-card-features {
  margin: 0 22px 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.room-card-features li {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}

/* =====================================================
   オーナー: ルーム管理
   ===================================================== */
#ownerRoomsBody {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 20px;
}
.owner-room-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.owner-room-card h3 {
  margin: 0 0 14px;
  font-size: 19px;
  color: var(--primary-dark);
}
.owner-room-img-wrap {
  position: relative;
  margin-bottom: 12px;
}
.owner-room-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.owner-room-img-placeholder {
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  border: 1px dashed var(--border);
}
.owner-room-card input[type=file] {
  margin: 8px 0;
  font-size: 12px;
}
.owner-room-card textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  margin-top: 4px;
}
.owner-room-card label {
  display: block;
  font-size: 12px;
  color: var(--text-soft);
  margin: 12px 0 6px;
  font-weight: 500;
}
.owner-room-card h4 {
  margin: 18px 0 8px;
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}
.feature-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.feature-row input {
  flex: 1;
  padding: 8px 12px;
  font-size: 13px;
}
.small-btn {
  font-size: 12px;
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  cursor: pointer;
  margin-top: 6px;
}
.small-btn:hover { background: var(--bg-alt); }
.small-btn.danger {
  color: var(--error);
  border-color: var(--error-bg);
  background: var(--error-bg);
}
.small-btn.danger:hover { background: var(--error); color: #fff; }
.owner-room-card button.primary {
  margin-top: 14px;
  width: 100%;
}

/* =====================================================
   稼働カレンダー: 週/月 切替トグル
   ===================================================== */
.view-mode-toggle {
  display: inline-flex;
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
}
.mode-btn {
  padding: 8px 16px;
  font-size: 13px;
  border: none;
  background: transparent;
  color: var(--text-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.mode-btn.active {
  background: var(--surface);
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* 月表示カレンダー */
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 12px;
}
.month-cell {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 8px;
  min-height: 92px;
  font-size: 12px;
  position: relative;
}
.month-cell.head {
  background: var(--bg-alt);
  text-align: center;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  min-height: auto;
  padding: 10px 4px;
}
.month-cell.head.weekend { color: var(--primary-dark); }
.month-cell.empty { background: transparent; border: none; min-height: 60px; }
.month-cell.weekend { background: var(--weekend); }
.month-day-num {
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 13px;
}
.month-cell.weekend .month-day-num { color: var(--primary-dark); }
.month-bookings {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.month-room-line {
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
}
.month-room-line.A { background: #ead6cf; color: #6b3a30; }
.month-room-line.B { background: #d8e4dc; color: #3d5b4f; }
.month-room-line.C { background: #efe1c8; color: #6e5424; }

/* =====================================================
   予約完了画面 (シンプル化)
   ===================================================== */
.success-card .success-title {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--accent);
}

/* =====================================================
   レスポンシブ
   ===================================================== */
@media (max-width: 720px) {
  .month-cell { min-height: 68px; padding: 4px 5px; font-size: 10.5px; }
  .month-day-num { font-size: 12px; }
  .month-room-line { font-size: 9.5px; padding: 1px 4px; }
  .room-showcase-grid { grid-template-columns: 1fr; }
  #ownerRoomsBody { grid-template-columns: 1fr; }
}
