@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap");
:root {
  --ink: #203b34;
  --muted: #73817a;
  --green: #245b48;
  --lime: #d8e5a8;
  --paper: #f6f7f3;
  --line: #dfe5dc;
  --white: #fff;
  --red: #ad453d;
  --shadow: 0 10px 35px #18372c08;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.8 "Noto Sans JP",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a4b860;
  outline-offset: 4px;
}
a {
  color: var(--green);
}
button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 9px;
  padding: 11px 18px;
  transition: 0.15s;
}
button:hover:not(:disabled) {
  border-color: var(--green);
  transform: translateY(-1px);
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.danger {
  color: var(--red);
}
.quiet {
  background: transparent;
}
.small {
  padding: 5px 11px;
  font-size: 12px;
}
.eyebrow {
  font-family: Outfit, sans-serif;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: 0.03em;
  line-height: 1.5;
}
h2 {
  font-size: 22px;
  line-height: 1.5;
}
h3 {
  font-size: 16px;
}
.muted {
  color: var(--muted);
}
.top {
  height: 86px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 20px);
}
.brand {
  text-decoration: none;
  color: var(--ink);
  line-height: 1.15;
}
.brand strong {
  font-size: 27px;
  letter-spacing: -1px;
}
.brand span {
  font-size: 10px;
  letter-spacing: 0.16em;
  display: block;
  margin-top: 8px;
}
.toplinks {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 12px;
}
.statusdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8fa55e;
  display: inline-block;
  margin-right: 7px;
}
.wrap {
  max-width: 1160px;
  margin: auto;
  padding: 40px 24px 70px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 0 0 27px;
}
.intro p {
  margin-bottom: 0;
}
.intro h1 {
  margin: 8px 0 12px;
}
.intro-mark {
  width: 130px;
  height: 130px;
  border: 1px solid #bacab8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transform: rotate(10deg);
  color: #66866a;
  font:
    13px Outfit,
    sans-serif;
  letter-spacing: 0.1em;
}
.intro-mark b {
  font-size: 35px;
  font-weight: 400;
}
.notice {
  border: 1px solid #e2d8ae;
  background: #faf6e7;
  padding: 12px 18px;
  font-size: 12px;
  border-radius: 8px;
  margin-bottom: 22px;
}
.steps {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  padding: 23px 0 28px;
  list-style: none;
  margin: 0;
}
.steps li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
}
.steps li:not(:last-child):after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
  margin: 0 15px;
}
.steps i {
  font:
    13px Outfit,
    sans-serif;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-style: normal;
}
.steps .active {
  color: var(--green);
  font-weight: 700;
}
.steps .active i {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.section-heading {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 20px;
}
.section-heading .num {
  font: 14px Outfit;
  color: #809a79;
}
.section-heading h2 {
  margin: 0;
  font-size: 19px;
}
.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chips button[aria-pressed="true"],
.selected {
  background: #edf3e8 !important;
  border-color: #4f755a !important;
  color: var(--green) !important;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.menu-card {
  text-align: left;
  padding: 0;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}
.menu-card .art {
  height: 98px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf0e7;
  overflow: hidden;
}
.menu-card .art svg {
  width: 58px;
  height: 58px;
  stroke: #698875;
  stroke-width: 1.3;
  fill: none;
}
.menu-card:nth-child(2n) .art {
  background: #f3eee5;
}
.menu-card:nth-child(3n) .art {
  background: #e9eff0;
}
.menu-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-card .caption {
  padding: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}
.breadcrumb {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  margin: 20px 0 12px;
}
.breadcrumb button {
  font-size: 12px;
  padding: 4px 8px;
  border: 0;
  text-decoration: underline;
  background: none;
}
.service {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 13px;
  padding: 16px;
  margin-top: 10px;
  text-align: left;
}
.service .check {
  border: 1px solid #b9c7b9;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.service.selected .check {
  background: var(--green);
  color: white;
}
.service .service-text {
  flex: 1;
}
.service small {
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.service strong {
  font-family: Outfit, sans-serif;
  font-size: 20px;
  white-space: nowrap;
}
.service img {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}
.summary {
  position: sticky;
  top: 24px;
}
.summary .panel {
  padding: 24px;
}
.summary-label {
  font-size: 12px;
  letter-spacing: 0.05em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.basket-item {
  display: flex;
  align-items: start;
  gap: 8px;
  justify-content: space-between;
  padding: 11px 0;
  font-size: 12px;
  border-bottom: 1px solid #eef0eb;
}
.basket-item button {
  padding: 0;
  border: 0;
  background: none;
  color: #8d9990;
}
.basket-empty {
  padding: 32px 8px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
.sumtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 20px;
}
.sumtotal strong {
  font:
    32px Outfit,
    sans-serif;
  letter-spacing: -0.03em;
}
.sumtotal small {
  font-size: 10px;
}
.duration {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 22px;
}
.summary .primary {
  width: 100%;
}
.note-small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 15px;
}
.secure {
  padding: 0 20px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.full {
  grid-column: 1/-1;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  background: #fff;
  color: var(--ink);
  min-height: 44px;
}
input[type="checkbox"] {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
  vertical-align: middle;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.timegrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.timegrid button {
  padding: 10px 3px;
  font-family: Outfit;
}
.month-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.calendar .dow {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 7px;
}
.calendar button {
  padding: 8px 3px;
  min-height: 42px;
  border-color: transparent;
}
.calendar button:disabled {
  background: #f7f7f4;
}
.calendar .today {
  border-color: var(--line);
}
.calendar button.selected {
  border-color: var(--green);
}
.actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
}
.policy {
  background: var(--paper);
  padding: 17px;
  border-radius: 8px;
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
}
.error {
  color: var(--red);
  background: #fff0ec;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 12px 0;
  white-space: pre-wrap;
}
.success {
  color: var(--green);
  background: #edf3e8;
  padding: 16px;
  border-radius: 8px;
}
.hidden {
  display: none !important;
}
footer {
  max-width: 1112px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 23px 0 40px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  background: #edf3e8;
  color: var(--green);
  border-radius: 5px;
  font-size: 11px;
  white-space: nowrap;
}
.badge.warn {
  background: #faf1d7;
  color: #8b6d22;
}
.badge.gray {
  background: #eff0ef;
  color: #748079;
}
.admin-shell {
  display: grid;
  grid-template-columns: 215px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #203f34;
  color: #e4ebdf;
  padding: 30px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  color: white;
  display: block;
  margin-bottom: 44px;
}
.sidebar button {
  display: block;
  width: 100%;
  text-align: left;
  color: #c7d6ca;
  border: 0;
  background: none;
  margin-bottom: 8px;
}
.sidebar button.active {
  background: #355547;
  color: white;
}
.sidebar .bottom {
  position: absolute;
  bottom: 25px;
  font-size: 11px;
}
.admin-main {
  padding: 35px;
  max-width: 1450px;
  width: 100%;
  overflow: hidden;
}
.admin-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 26px;
}
.admin-head h1 {
  font-size: 27px;
  margin: 4px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 25px;
}
.stat {
  background: white;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.stat strong {
  font: 30px Outfit;
  display: block;
  margin-top: 4px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  padding: 13px;
  background: var(--paper);
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
td {
  padding: 16px 13px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.editor-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
}
.tree {
  max-height: 650px;
  overflow: auto;
}
.tree button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  border-radius: 5px;
  padding: 7px;
  font-size: 12px;
}
.tree button:hover {
  background: var(--paper);
}
.tree button.active {
  background: #eaf0e3;
}
.toolbar {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.login {
  max-width: 480px;
  margin: 8vh auto;
  padding: 25px;
}
.rule-card {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
  margin: 12px 0;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #142c2670;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.dialog {
  background: white;
  border-radius: 14px;
  padding: 28px;
  max-width: 630px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
}
.dialog h2 {
  font-size: 20px;
}
.code {
  font-family: monospace;
  word-break: break-all;
  display: block;
  padding: 15px;
  background: var(--paper);
  border-radius: 7px;
  font-size: 15px;
}
.footnote {
  font-size: 12px;
  color: var(--muted);
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 8px;
  overflow: auto;
}
.daycol {
  background: var(--paper);
  min-height: 220px;
  border-radius: 8px;
  padding: 10px;
  font-size: 12px;
}
.daybooking {
  background: white;
  padding: 10px;
  margin-top: 8px;
  border-left: 3px solid var(--green);
  border-radius: 4px;
  cursor: pointer;
}
.daybooking:hover {
  background: #edf3e8;
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
  }
  .summary .panel {
    margin-bottom: 0;
  }
  .intro-mark {
    display: none;
  }
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }
  .sidebar .brand {
    margin-bottom: 15px;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  .sidebar button {
    width: auto;
    white-space: nowrap;
    margin: 0;
  }
  .sidebar .bottom {
    display: none;
  }
  .admin-main {
    padding: 22px 16px;
  }
  .editor-layout {
    grid-template-columns: 1fr;
  }
  .tree {
    max-height: 210px;
  }
  .summary {
    padding-bottom: 40px;
  }
  .mobile-total {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: white;
    border-top: 1px solid var(--line);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -5px 20px #203b3408;
  }
  .mobile-total strong {
    font: 24px Outfit;
  }
  .mobile-total button {
    padding: 10px 25px;
  }
  footer {
    padding: 22px 20px 90px;
  }
  .toplinks a:first-child {
    display: none;
  }
}
@media (min-width: 851px) {
  .mobile-total {
    display: none;
  }
}
@media (max-width: 520px) {
  .top {
    height: 74px;
    padding: 0 20px;
  }
  .brand strong {
    font-size: 23px;
  }
  .toplinks {
    font-size: 11px;
  }
  .wrap {
    padding: 28px 16px 40px;
  }
  h1 {
    font-size: 27px;
  }
  .intro p {
    font-size: 12px;
  }
  .panel {
    padding: 20px 16px;
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    padding: 18px 0;
  }
  .steps li {
    font-size: 10px;
    gap: 5px;
  }
  .steps li:not(:last-child):after {
    margin: 0 6px;
  }
  .steps i {
    width: 23px;
    height: 23px;
  }
  .formgrid {
    grid-template-columns: 1fr;
  }
  .timegrid {
    grid-template-columns: repeat(4, 1fr);
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 12px;
  }
  .stat strong {
    font-size: 24px;
  }
  .stat span {
    font-size: 10px;
  }
  .admin-head {
    align-items: start;
  }
  .admin-head h1 {
    font-size: 23px;
  }
  .service strong {
    font-size: 17px;
  }
  .intro h1 {
    margin-top: 5px;
  }
  .dialog {
    padding: 20px;
  }
  .full {
    grid-column: auto;
  }
}

/* v1.3: stable category colours, independent of menu order */
.menu-card .category-art {
  background: var(--category-bg, #edf1ec);
  color: var(--category-ink, #466452);
  position: relative;
  overflow: hidden;
}
.category-art.category-campaign {
  --category-bg: #fff0cc;
  --category-ink: #8c5914;
}
.category-art.category-hair {
  --category-bg: #e4f1e7;
  --category-ink: #32684a;
}
.category-art.category-white {
  --category-bg: #e0f2f7;
  --category-ink: #276579;
}
.category-art.category-pulse {
  --category-bg: #ece7fa;
  --category-ink: #66508d;
}
.category-art.category-set {
  --category-bg: #f9e4de;
  --category-ink: #975444;
}
.category-art.category-headspa {
  --category-bg: #e2efed;
  --category-ink: #386b65;
}
.category-art.category-student {
  --category-bg: #edf2d8;
  --category-ink: #606e30;
}
.category-art.category-ladies {
  --category-bg: #f6e5ec;
  --category-ink: #884c67;
}
.category-art.category-men {
  --category-bg: #e4ecf7;
  --category-ink: #46648a;
}
.category-illustration {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff99;
  display: grid;
  place-items: center;
}
.category-art .category-illustration svg {
  width: 66px;
  height: 66px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.menu-card:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
