:root {
  --ink: #1f2933;
  --muted: #667085;
  --line: #d8dee6;
  --paper: #f8fafc;
  --accent: #0f766e;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Yu Gothic", "Meiryo", system-ui, sans-serif;
}
a { color: var(--accent); }
.top {
  padding: 24px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.top h1 { margin: 4px 0 0; font-size: clamp(24px, 4vw, 36px); }
.brand-header {
  display: grid;
  gap: 10px;
}
.brand-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  color: inherit;
  text-decoration: none;
}
.brand-logo {
  display: block;
  width: auto;
  max-width: min(100%, 44vw);
  object-fit: contain;
}
.brand-logo-m2plant {
  height: 64px;
}
.brand-logo-katsuda {
  height: 72px;
}
.brand-separator {
  width: 1px;
  height: clamp(42px, 6vw, 72px);
  margin: 0 4px;
  background: var(--line);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.eyebrow { margin: 0; color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; }
main { padding: 28px clamp(16px, 4vw, 48px) 56px; }
.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border: 1px solid #f4d58d;
  border-radius: 8px;
  background: #fff8e6;
  color: #5f3f00;
}
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}
.panel h2 { margin: 0 0 18px; font-size: 20px; }
.grid { display: grid; gap: 14px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; color: #344054; }
.field-hint { color: var(--muted); font-size: 12px; font-weight: 400; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font: inherit;
}
textarea { resize: vertical; }
.divider { height: 1px; margin: 22px 0; background: var(--line); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-top: 10px; }
.slot {
  position: relative;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.slot.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.slot:disabled {
  cursor: not-allowed;
  opacity: 1;
  background: #f1f3f5;
  color: #98a2b3;
}
.slot.booked {
  text-decoration: line-through;
}
.slot-mark {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  color: var(--danger);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.primary, .danger, .ghost {
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
}
.primary { width: 100%; margin-top: 18px; background: var(--accent); color: #fff; }
.danger { background: #fff1f0; color: var(--danger); }
.ghost { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.summary { display: grid; gap: 10px; margin: 0; }
.summary div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; }
.message { margin-bottom: 18px; padding: 14px 16px; border-radius: 8px; background: #e6f5f3; color: #115e59; }
.error { background: #fff1f0; color: var(--danger); }
.muted { color: var(--muted); }
.selected-store {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}
.selected-store span {
  color: var(--muted);
  font-size: 13px;
}
.store-phone {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #e6f5f3;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}
.store-phone:hover {
  background: #d9efeb;
}
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.nav { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .layout, .two, .actions { grid-template-columns: 1fr; }
  .brand-logo { max-width: 86vw; }
  .brand-logo-m2plant { height: 50px; }
  .brand-logo-katsuda { height: 58px; }
  .brand-separator { display: none; }
}
