/* ==========================================================================
   Pure Simple V2 — Salon Reservation SaaS (STEP 1 Menu Selection)
   Concept: "上質な日本のプライベートサロンが採用したくなる、徹底的に洗練されたミニマルデザイン"
   ========================================================================== */

:root {
  /* Brand Color (Configurable live via demo panel) */
  --brand-color: #181818;
  --brand-contrast-text: #ffffff;
  --brand-subtle-bg: rgba(24, 24, 24, 0.04);
  --brand-border: #181818;
  --brand-focus-ring: rgba(24, 24, 24, 0.18);

  /* Clean Neutrals */
  --bg-page: #ffffff;
  --text-primary: #121212;
  --text-secondary: #4a4a4a;
  --text-muted: #767676;
  --border-hairline: #e8e8e8;
  --border-light: #f0f0f0;

  /* Typography */
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "Cormorant Garamond", "Didot", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;

  /* Layout */
  --content-max-width: 640px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Main Content Container (Seamless pure white, no boxed widget frame)
   ========================================================================== */
.reservation-layout {
  flex: 1;
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 56px 24px 120px;
}

/* Salon Header Branding */
.salon-brand-section {
  text-align: center;
  margin-bottom: 48px;
}

.salon-brand-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-primary);
  line-height: 1.15;
}

.salon-brand-sub {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 8px;
  font-weight: 400;
}

.salon-brand-divider {
  width: 32px;
  height: 1px;
  background-color: #222222;
  margin: 20px auto 0;
  opacity: 0.8;
}

/* Section Header */
.section-intro {
  margin-bottom: 32px;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.section-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Menu List — Refined Hairline Divider Presentation (No Boxed Cards)
   ========================================================================== */
.menu-list-v2 {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-hairline);
}

.menu-item-row {
  border-bottom: 1px solid var(--border-hairline);
  padding: 24px 12px;
  margin: 0 -12px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.15s ease;
  user-select: none;
}

.menu-item-row:hover {
  background-color: #fafafa;
}

.menu-item-row.is-selected {
  background-color: var(--brand-subtle-bg);
}

/* Radio Indicator */
.menu-radio-wrap {
  padding-top: 3px;
  flex-shrink: 0;
}

.menu-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #cccccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  background: #ffffff;
}

.menu-item-row:hover .menu-radio {
  border-color: #999999;
}

.menu-item-row.is-selected .menu-radio {
  border-color: var(--brand-color);
  background: var(--brand-color);
}

.radio-inner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-contrast-text);
  display: none;
}

.menu-item-row.is-selected .radio-inner-dot {
  display: block;
}

/* Menu Body */
.menu-content {
  flex: 1;
  min-width: 0;
}

.menu-header-line {
  margin-bottom: 4px;
}

.menu-name {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.menu-pricing-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.menu-price {
  font-size: 16.5px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.menu-price-sub {
  color: var(--text-muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.menu-duration {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.menu-tags-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.menu-tag-pill {
  font-size: 10.5px;
  padding: 1px 6px;
  border: 1px solid var(--border-hairline);
  border-radius: 2px;
  color: var(--text-secondary);
  background: #ffffff;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Summary & Collapsible Details */
.menu-summary-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.menu-toggle-btn {
  background: transparent;
  border: none;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}

.menu-toggle-btn:hover {
  color: var(--text-primary);
}

.menu-toggle-icon {
  font-size: 9px;
  transition: transform 0.2s ease;
}

.menu-full-description {
  display: none;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-hairline);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.menu-full-description.is-open {
  display: block;
}

/* Authentic Photography Thumbnail (Optional, no dummy placeholder if absent) */
.menu-photo-wrap {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #eeeeee;
  background-color: #fafafa;
}

.menu-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Sticky Bottom Action Bar
   ========================================================================== */
.action-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-hairline);
  padding: 14px 24px;
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.03);
}

.action-bottom-inner {
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.action-selection-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.action-selection-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.action-selection-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.action-selection-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
  margin-left: 6px;
}

.btn-primary-v2 {
  min-height: 48px;
  height: 50px;
  padding: 0 28px;
  background-color: var(--brand-color);
  color: var(--brand-contrast-text);
  border: none;
  border-radius: 4px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary-v2:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-primary-v2:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   Separated Demo Control Panel (Floating Drawer, not part of salon page)
   ========================================================================== */
.demo-floating-trigger {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1000;
  background: #181818;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.demo-floating-trigger:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

.demo-control-modal {
  display: none;
  position: fixed;
  top: 58px;
  right: 18px;
  z-index: 1000;
  width: 280px;
  background: #ffffff;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  font-size: 12px;
}

.demo-control-modal.is-active {
  display: block;
}

.demo-control-title {
  font-weight: 600;
  font-size: 13px;
  color: #111111;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-swatch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.demo-swatch-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease;
}

.demo-swatch-circle:hover {
  transform: scale(1.15);
}

.demo-swatch-circle.is-active {
  border-color: #111111;
  transform: scale(1.1);
}

.demo-hex-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.demo-hex-row input[type="color"] {
  width: 22px;
  height: 22px;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  padding: 0;
}

.demo-hex-row input[type="text"] {
  flex: 1;
  padding: 4px 8px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.demo-contrast-badge {
  background: #f4f4f4;
  padding: 4px 8px;
  border-radius: 4px;
  color: #555555;
  font-size: 11px;
  margin-bottom: 12px;
}

.demo-switch-link {
  display: block;
  text-align: center;
  padding: 6px;
  background: #f8f8f8;
  border: 1px solid #eeeeee;
  border-radius: 4px;
  color: #555555;
  text-decoration: none;
  font-size: 11.5px;
  transition: background 0.15s ease;
}

.demo-switch-link:hover {
  background: #eaeaea;
  color: #111111;
}

/* ==========================================================================
   Responsive Adaptations (Mobile iPhone priority)
   ========================================================================== */
@media (max-width: 640px) {
  .reservation-layout {
    padding: 32px 20px 110px;
  }

  .salon-brand-section {
    margin-bottom: 36px;
  }

  .salon-brand-title {
    font-size: 30px;
  }

  .section-title {
    font-size: 21px;
  }

  .menu-item-row {
    padding: 20px 8px;
    margin: 0 -8px;
  }

  .menu-photo-wrap {
    width: 64px;
    height: 64px;
  }

  .action-bottom-bar {
    padding: 12px 18px;
  }

  .btn-primary-v2 {
    padding: 0 20px;
    font-size: 14px;
    height: 48px;
  }

  .demo-floating-trigger {
    top: auto;
    bottom: 84px;
    right: 14px;
    padding: 5px 12px;
    font-size: 11px;
  }

  .demo-control-modal {
    top: auto;
    bottom: 124px;
    right: 14px;
  }
}
