:root {
  color-scheme: light;
  --paper: oklch(96% 0.018 82);
  --paper-2: oklch(92% 0.028 74);
  --ink: oklch(25% 0.018 52);
  --muted: oklch(48% 0.025 56);
  --line: oklch(83% 0.028 70);
  --rose: oklch(62% 0.17 11);
  --rose-deep: oklch(44% 0.14 12);
  --brass: oklch(63% 0.1 74);
  --green: oklch(62% 0.11 155);
  --mint: oklch(90% 0.055 164);
  --white: oklch(99% 0.006 82);
  --shadow: 0 24px 70px oklch(30% 0.03 60 / 0.15);
  --radius: 8px;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-display: "Noto Serif JP", "Yu Mincho", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, oklch(30% 0.03 56 / 0.04) 1px, transparent 1px) 0 0 / 72px 72px,
    var(--paper);
  font-family: var(--font-body);
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  min-height: 44px;
}

.noscript {
  margin: 24px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 20px clamp(14px, 2vw, 28px) 96px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font: 900 27px/1 var(--font-display);
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.brand-lockup h1,
.section-heading h2,
.hero-band h2 {
  font-family: var(--font-display);
}

.brand-lockup h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
}

.view-tabs {
  display: flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  background: oklch(98% 0.012 82 / 0.85);
  border-radius: 999px;
}

.tab-button,
.hero-actions a,
.hero-actions button,
.ghost-button,
.primary-button,
.mobile-summary button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.tab-button {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.tab-button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(290px, 360px) minmax(0, 1fr) minmax(270px, 330px);
  gap: 18px;
  align-items: start;
}

.booking-panel,
.summary-panel,
.booking-main {
  min-width: 0;
}

.booking-panel,
.summary-panel {
  position: sticky;
  top: 16px;
}

.flow-rail,
.panel-section,
.calendar-section,
.customer-card,
.confirm-card,
.done-card,
.summary-card,
.policy-card,
.compare-view,
.data-view,
.staff-panel,
.empty-next-step {
  border: 1px solid var(--line);
  background: oklch(99% 0.008 82 / 0.9);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 oklch(100% 0 0 / 0.7) inset;
}

.flow-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-bottom: 12px;
  padding: 8px;
}

.flow-rail span {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.flow-rail .is-done {
  background: var(--paper-2);
  color: var(--ink);
}

.flow-rail .is-current {
  background: var(--rose);
  color: var(--white);
}

.panel-section,
.summary-card,
.policy-card {
  padding: 18px;
  margin-bottom: 12px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.section-heading h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.18;
}

.service-group + .service-group {
  margin-top: 18px;
}

.service-group h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.service-list {
  display: grid;
  gap: 8px;
}

.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.service-card.is-selected {
  border-color: var(--rose);
  box-shadow: inset 4px 0 0 var(--rose);
}

.service-main strong,
.service-main small,
.service-price span,
.service-price small {
  display: block;
}

.service-main strong {
  font-size: 15px;
  line-height: 1.3;
}

.service-main small,
.service-price small,
.hint-text,
.summary-card p,
.policy-card li,
.empty-next-step {
  color: var(--muted);
}

.service-price {
  text-align: left;
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.staff-panel img,
.profile-card-full img {
  object-fit: cover;
  background: var(--paper-2);
}

.avatar-fallback {
  width: 44px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: var(--mint);
  font-weight: 900;
}

.hint-text {
  margin: 12px 0 0;
  font-size: 13px;
}

.hero-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 20px 22px;
  border: 1px solid oklch(42% 0.035 54 / 0.28);
  border-radius: var(--radius);
  color: var(--paper);
  background:
    linear-gradient(110deg, oklch(24% 0.03 54 / 0.96), oklch(35% 0.045 38 / 0.94)),
    url("https://imgbp.hotp.jp/CSP/IMG_SRC/54/51/B233805451/B233805451.jpg?impolicy=HPB_policy_default&w=720&h=540") center / cover;
  box-shadow: 0 16px 44px oklch(30% 0.03 60 / 0.13);
}

.hero-band .eyebrow {
  color: oklch(86% 0.08 74);
}

.hero-band h2 {
  max-width: 760px;
  margin: 0 0 5px;
  font-size: 34px;
  line-height: 1.14;
}

.hero-band p:not(.eyebrow) {
  margin: 0;
  color: oklch(90% 0.028 77);
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-actions a,
.hero-actions button,
.hero-actions span,
.ghost-button {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid oklch(100% 0 0 / 0.35);
  border-radius: 999px;
  background: oklch(100% 0 0 / 0.12);
  color: inherit;
  font-weight: 900;
}

.hero-actions span {
  cursor: default;
  background: oklch(82% 0.08 76 / 0.22);
}

.calendar-section,
.customer-card,
.confirm-card,
.done-card,
.empty-next-step {
  padding: clamp(16px, 2.5vw, 26px);
  margin-bottom: 16px;
}

.calendar-heading {
  align-items: center;
}

.calendar-meta,
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.calendar-meta span,
.badge-row span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.calendar-filter {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-context {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.filter-label {
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 900;
}

.service-context strong,
.filter-heading strong {
  font-size: 18px;
}

.service-context small {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.service-context button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
}

.stylist-filter {
  min-width: 0;
}

.filter-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.stylist-filter-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.stylist-filter-item {
  min-width: 0;
}

.stylist-filter-chip {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 64px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.stylist-filter-item.is-selected .stylist-filter-chip {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.stylist-filter-item.is-disabled .stylist-filter-chip {
  background: oklch(92% 0.01 80);
  color: var(--muted);
  cursor: not-allowed;
}

.stylist-filter-chip img,
.stylist-filter-chip .avatar-fallback {
  width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.stylist-filter-chip strong,
.stylist-filter-chip small,
.stylist-filter-item em {
  display: block;
}

.stylist-filter-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.stylist-filter-chip small {
  color: inherit;
  opacity: 0.75;
  font-size: 11px;
  line-height: 1.3;
}

.filter-profile-link {
  min-height: 28px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--rose-deep);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.stylist-filter-item em {
  min-height: 30px;
  color: var(--muted);
  font-style: normal;
  font-size: 11px;
  line-height: 1.3;
}

.date-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(92px, 1fr);
  gap: 8px;
  margin: 6px 0 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.date-strip button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
  text-align: left;
}

.date-strip button.is-selected {
  border-color: var(--rose);
  background: oklch(96% 0.04 10);
}

.date-strip button.is-closed {
  color: var(--muted);
  background: oklch(91% 0.01 80);
  cursor: not-allowed;
}

.date-strip span,
.date-strip small {
  display: block;
}

.date-strip span {
  font-weight: 900;
}

.availability-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  overflow: hidden;
  border-radius: var(--radius);
}

.availability-grid th,
.availability-grid td {
  border: 1px solid var(--line);
  background: var(--white);
  text-align: center;
}

.availability-grid th {
  padding: 8px 5px;
  background: var(--paper-2);
  font-size: 12px;
}

.slot-cell {
  width: 100%;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.slot-cell.is-open {
  color: var(--rose);
  cursor: pointer;
  font-weight: 900;
}

.slot-cell.is-selected {
  background: var(--rose);
  color: var(--white);
}

.mobile-times {
  display: none;
}

.time-group + .time-group {
  margin-top: 14px;
}

.time-group h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.time-group > div {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.time-pill {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.time-pill:disabled {
  color: var(--muted);
  background: oklch(92% 0.01 80);
  cursor: not-allowed;
}

.time-pill.is-selected {
  border-color: var(--rose);
  background: var(--rose);
  color: var(--white);
}

.staff-panel {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
}

.staff-panel img {
  width: 86px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}

.staff-panel h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.staff-panel h2 small {
  color: var(--muted);
  font-size: 13px;
}

.staff-panel p {
  margin-bottom: 10px;
}

.customer-form {
  display: grid;
  gap: 13px;
}

.customer-form label {
  display: grid;
  gap: 7px;
}

.customer-form span {
  font-weight: 900;
}

.customer-form b {
  color: var(--rose);
  font-size: 12px;
}

.customer-form input,
.customer-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 12px;
}

.customer-form em {
  color: var(--rose-deep);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.notice-check {
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--paper-2);
}

.notice-check input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.notice-check small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.6;
}

.primary-button {
  display: inline-grid;
  place-items: center;
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: var(--rose);
  color: var(--white);
  font-weight: 900;
  box-shadow: 0 12px 24px oklch(47% 0.13 14 / 0.22);
}

.summary-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.summary-card dl,
.confirm-list {
  display: grid;
  gap: 0;
  margin: 0 0 14px;
}

.summary-card dl div,
.confirm-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.summary-card dt,
.confirm-list dt {
  color: var(--muted);
  font-weight: 700;
}

.summary-card dd,
.confirm-list dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
}

.summary-card dd small,
.confirm-list dd small {
  display: block;
  color: var(--rose-deep);
  font-size: 12px;
  font-weight: 900;
}

.policy-card ul {
  margin: 0;
  padding-left: 19px;
}

.policy-card li + li {
  margin-top: 8px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

.confirm-actions .ghost-button {
  color: var(--ink);
  border-color: var(--line);
  background: var(--white);
  border-radius: var(--radius);
}

.done-card {
  text-align: center;
}

.done-mark {
  display: inline-grid;
  place-items: center;
  width: 70px;
  aspect-ratio: 1;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 36px;
  font-weight: 900;
}

.empty-next-step {
  color: var(--muted);
}

.compare-view,
.data-view {
  padding: clamp(20px, 4vw, 44px);
}

.compare-grid,
.data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compare-grid article,
.data-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: clamp(18px, 3vw, 28px);
}

.compare-grid article.is-positive {
  background: var(--ink);
  color: var(--paper);
}

.compare-grid h3 {
  font-family: var(--font-display);
  font-size: 28px;
}

.compare-grid li + li {
  margin-top: 12px;
}

.data-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.data-grid strong,
.data-grid span {
  display: block;
}

.data-grid strong {
  color: var(--rose);
  font: 900 56px/1 var(--font-display);
}

.data-grid span {
  margin: 4px 0 10px;
  font-weight: 900;
}

pre {
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
}

.profile-sheet {
  position: fixed;
  inset: auto 0 0;
  z-index: 40;
  display: none;
  padding: 22px;
  background: oklch(20% 0.018 52 / 0.52);
}

.profile-open .profile-sheet {
  display: block;
}

.profile-card-full {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  width: min(1000px, 100%);
  max-height: min(80vh, 760px);
  margin: 0 auto;
  overflow: auto;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.profile-card-full > img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
}

.profile-copy {
  position: relative;
}

.sheet-close {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 24px;
}

.profile-copy h2 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 44px;
}

.profile-copy h2 small {
  color: var(--muted);
  font: 700 14px/1 var(--font-body);
}

.profile-copy h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.profile-facts {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}

.profile-facts div {
  padding-left: 12px;
  border-left: 5px solid var(--rose);
}

.profile-facts span,
.profile-facts strong {
  display: block;
}

.profile-facts span {
  color: var(--rose-deep);
  font-weight: 900;
}

blockquote {
  margin: 18px 0 0;
  padding: 16px;
  background: oklch(94% 0.035 78);
  border-left: 4px solid var(--brass);
}

blockquote b {
  display: block;
  margin-bottom: 8px;
}

.mobile-summary {
  display: none;
}

@media (max-width: 1180px) {
  .booking-layout {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  }

  .summary-panel {
    grid-column: 1 / -1;
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 820px) {
  .app-shell {
    padding: 10px 12px 96px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: 14px;
  }

  .view-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }

  .tab-button {
    min-width: 0;
    padding: 0;
    font-size: 14px;
  }

  .booking-layout,
  .summary-panel,
  .compare-grid,
  .data-grid {
    grid-template-columns: 1fr;
  }

  .booking-panel,
  .summary-panel {
    position: static;
  }

  .hero-band {
    align-items: stretch;
    flex-direction: column;
  }

  .calendar-filter {
    grid-template-columns: 1fr;
  }

  .service-context {
    display: grid;
    gap: 5px;
  }

  .service-context button {
    justify-self: start;
  }

  .stylist-filter-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(148px, 42vw);
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .desktop-calendar {
    display: none;
  }

  .mobile-times {
    display: block;
  }

  .staff-panel {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .staff-panel img {
    width: 68px;
  }

  .staff-panel .ghost-button {
    grid-column: 1 / -1;
    width: 100%;
    color: var(--ink);
    border-color: var(--line);
  }

  .summary-panel {
    display: none;
  }

  .mobile-summary {
    position: fixed;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--paper);
    box-shadow: var(--shadow);
  }

  .mobile-summary strong,
  .mobile-summary span {
    display: block;
  }

  .mobile-summary span {
    color: oklch(86% 0.035 76);
    font-size: 12px;
  }

  .mobile-summary button {
    flex: 0 0 auto;
    padding: 0 16px;
    border-radius: var(--radius);
    background: var(--rose);
    color: var(--white);
    font-weight: 900;
  }

  .profile-sheet {
    padding: 10px;
  }

  .profile-card-full {
    grid-template-columns: 1fr;
    max-height: 88vh;
    padding: 16px;
  }

  .profile-card-full > img {
    width: min(220px, 56vw);
  }

  .brand-lockup h1 {
    font-size: 28px;
  }

  .hero-band h2 {
    font-size: 32px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .profile-copy h2 {
    font-size: 32px;
  }
}

@media (max-width: 480px) {
  .brand-mark {
    width: 42px;
  }

  .brand-lockup h1 {
    font-size: 24px;
  }

  .hero-band h2 {
    font-size: 28px;
  }

  .flow-rail span {
    font-size: 12px;
  }

  .panel-section,
  .calendar-section,
  .customer-card,
  .confirm-card,
  .done-card {
    padding: 14px;
  }

  .service-card {
    grid-template-columns: 1fr;
  }

  .stylist-filter-list {
    grid-auto-columns: minmax(142px, 72vw);
  }

  .service-price {
    text-align: left;
  }

  .service-price small {
    line-height: 1.35;
  }

  .time-group > div {
    grid-template-columns: repeat(2, 1fr);
  }

  .confirm-actions {
    grid-template-columns: 1fr;
  }
}
