:root {
  --plum-950: #2f1d27;
  --plum-900: #3f2734;
  --plum-800: #5b3a4a;
  --plum-700: #70495a;
  --rose-300: #d7b3bb;
  --rose-200: #ead4d9;
  --rose-100: #f5e9ec;
  --ivory-100: #fbf8f5;
  --ivory-200: #f4eee9;
  --gold-500: #a77a35;
  --gold-200: #ead8b7;
  --charcoal: #292629;
  --muted: #71696d;
  --line: #e4dcd8;
  --white: #ffffff;
  --success: #24634f;
  --success-soft: #e8f3ee;
  --warning: #8a5a13;
  --warning-soft: #fff4dc;
  --danger: #9b3434;
  --danger-soft: #fbeaea;
  --info: #315b72;
  --info-soft: #e9f2f7;
  --shadow: 0 16px 44px rgba(63, 39, 52, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--charcoal);
  background:
    radial-gradient(circle at 8% 3%, rgba(215, 179, 187, .25), transparent 24rem),
    radial-gradient(circle at 95% 14%, rgba(234, 216, 183, .28), transparent 21rem),
    var(--ivory-100);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 12px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--plum-900);
  color: white;
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.site-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 12px clamp(18px, 4vw, 44px);
  color: var(--white);
  background: rgba(47, 29, 39, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(30, 17, 24, .15);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rose-300), var(--gold-200));
  color: var(--plum-950);
  font-size: 23px;
  font-weight: 800;
}
.brand-copy { min-width: 0; }
.brand-title { display: block; font-size: 18px; font-weight: 800; line-height: 1.25; }
.brand-subtitle { display: block; margin-top: 2px; color: #eadfe4; font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-badge {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 64px; }
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 28px;
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid rgba(91, 58, 74, .09);
  border-radius: var(--radius-xl);
  background: linear-gradient(130deg, rgba(255,255,255,.96), rgba(245,233,236,.86));
  box-shadow: var(--shadow);
}
.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167,122,53,.18), rgba(215,179,187,.08) 55%, transparent 70%);
  pointer-events: none;
}
.eyebrow { margin: 0 0 8px; color: var(--plum-700); font-size: 14px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; color: var(--plum-950); font-size: clamp(30px, 5vw, 48px); line-height: 1.2; letter-spacing: -.025em; }
h2 { margin-bottom: 14px; color: var(--plum-900); font-size: clamp(25px, 3.4vw, 34px); line-height: 1.3; }
h3 { margin-bottom: 8px; color: var(--plum-900); font-size: 21px; line-height: 1.4; }
.lead { max-width: 700px; margin-bottom: 0; color: #51494d; font-size: clamp(18px, 2.2vw, 21px); }
.hero-art { position: relative; display: grid; min-height: 230px; place-items: center; }
.cosmetic-orbit { position: relative; width: 230px; height: 230px; }
.orbit-ring { position: absolute; inset: 10px; border: 1px solid rgba(91,58,74,.18); border-radius: 50%; }
.orbit-center {
  position: absolute; inset: 54px;
  display: grid; place-items: center;
  border-radius: 36% 64% 53% 47% / 49% 39% 61% 51%;
  background: linear-gradient(145deg, var(--plum-800), var(--plum-950));
  color: white;
  font-size: 50px;
  box-shadow: 0 20px 38px rgba(63,39,52,.24);
}
.orbit-dot { position: absolute; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: white; border: 1px solid var(--line); box-shadow: 0 10px 24px rgba(63,39,52,.13); font-size: 29px; }
.orbit-dot.one { top: 0; left: 86px; }
.orbit-dot.two { right: 0; top: 88px; }
.orbit-dot.three { bottom: 0; left: 86px; }
.orbit-dot.four { left: 0; top: 88px; }

.status-area { margin-top: 26px; }
.card {
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 22px; }
.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.card-header p { margin-bottom: 0; color: var(--muted); }
.status-icon { display: grid; place-items: center; width: 58px; height: 58px; flex: 0 0 58px; border-radius: 18px; background: var(--rose-100); font-size: 29px; }

.loading-card { text-align: center; }
.spinner { width: 48px; height: 48px; margin: 0 auto 16px; border: 5px solid var(--rose-200); border-top-color: var(--plum-800); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { margin-bottom: 20px; padding: 15px 17px; border-radius: var(--radius-md); border: 1px solid transparent; font-size: 16px; font-weight: 650; }
.alert.info { color: var(--info); background: var(--info-soft); border-color: #cbdde7; }
.alert.success { color: var(--success); background: var(--success-soft); border-color: #c4dfd2; }
.alert.warning { color: var(--warning); background: var(--warning-soft); border-color: #ead6a9; }
.alert.danger { color: var(--danger); background: var(--danger-soft); border-color: #edc7c7; }

.welcome-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.member-name { margin-bottom: 4px; font-size: clamp(26px, 4vw, 38px); }
.member-meta { margin: 0; color: var(--muted); font-size: 16px; }
.avatar { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(145deg, var(--rose-200), var(--gold-200)); color: var(--plum-900); font-size: 32px; font-weight: 900; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.summary-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.summary-item { padding: 16px; border-radius: var(--radius-md); background: var(--ivory-100); border: 1px solid var(--line); }
.summary-label { display: block; color: var(--muted); font-size: 13px; font-weight: 800; }
.summary-value { display: block; margin-top: 4px; color: var(--plum-900); font-size: 18px; font-weight: 900; }

.menu-section { margin-top: 28px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-heading p { margin-bottom: 0; color: var(--muted); font-size: 15px; }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.menu-button {
  position: relative;
  min-height: 142px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(63,39,52,.06);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.menu-button:hover, .menu-button:focus-visible { transform: translateY(-3px); border-color: var(--rose-300); box-shadow: 0 14px 28px rgba(63,39,52,.12); outline: none; }
.menu-button.primary { color: white; border-color: var(--plum-800); background: linear-gradient(145deg, var(--plum-800), var(--plum-950)); }
.menu-icon { display: block; margin-bottom: 10px; font-size: 31px; }
.menu-title { display: block; font-size: 18px; font-weight: 900; line-height: 1.35; }
.menu-desc { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.menu-button.primary .menu-desc { color: #eadfe4; }
.coming-soon { position: absolute; top: 12px; right: 12px; padding: 4px 8px; border-radius: 999px; background: var(--rose-100); color: var(--plum-700); font-size: 11px; font-weight: 900; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 7px; color: var(--plum-900); font-size: 16px; font-weight: 850; }
.required { margin-left: 7px; color: var(--danger); font-size: 12px; white-space: nowrap; }
.hint { display: block; margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
input[type="text"], input[type="tel"], input[type="email"], input[type="date"], textarea, select {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1.5px solid #cfc5c0;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--charcoal);
  font-size: 18px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--plum-700); box-shadow: 0 0 0 4px rgba(112,73,90,.13); }
input[aria-invalid="true"] { border-color: var(--danger); }
.check-list { display: grid; gap: 12px; margin: 22px 0; }
.check-row { display: grid; grid-template-columns: 26px 1fr; gap: 11px; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--ivory-100); }
.check-row input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--plum-800); }
.check-row label { margin: 0; font-weight: 750; }
.check-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s, opacity .16s, box-shadow .16s;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); outline: none; }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.btn.primary { background: var(--plum-800); color: white; box-shadow: 0 10px 20px rgba(91,58,74,.18); }
.btn.secondary { border-color: var(--plum-800); background: white; color: var(--plum-800); }
.btn.soft { border-color: var(--line); background: var(--ivory-100); color: var(--plum-900); }
.btn.danger { background: var(--danger); color: white; }
.btn.full { width: 100%; }

.demo-switcher { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.demo-switcher a { padding: 8px 12px; border-radius: 10px; background: var(--ivory-200); color: var(--plum-800); font-size: 14px; font-weight: 800; text-decoration: none; }

.definition-list { display: grid; grid-template-columns: minmax(150px, .35fr) minmax(0, 1fr); margin: 0; border-top: 1px solid var(--line); }
.definition-list dt, .definition-list dd { margin: 0; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.definition-list dt { color: var(--muted); font-size: 14px; font-weight: 800; }
.definition-list dd { font-weight: 700; overflow-wrap: anywhere; }
.timeline-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ivory-100); }
.timeline-card + .timeline-card { margin-top: 12px; }
.timeline-label { color: var(--muted); font-size: 13px; font-weight: 800; }
.timeline-value { margin: 3px 0 0; font-weight: 850; }
.status-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 3px 10px; border-radius: 999px; background: var(--rose-100); color: var(--plum-800); font-size: 13px; font-weight: 900; }

.footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 0 0 34px; color: var(--muted); text-align: center; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 100; width: min(520px, calc(100% - 30px)); padding: 14px 18px; border-radius: 14px; background: var(--plum-950); color: white; box-shadow: 0 16px 38px rgba(0,0,0,.22); transform: translate(-50%, 18px); opacity: 0; pointer-events: none; transition: .22s; text-align: center; font-size: 15px; font-weight: 800; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { min-height: 190px; }
  .cosmetic-orbit { transform: scale(.88); }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .topbar { min-height: 64px; padding: 10px 14px; }
  .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .brand-subtitle { max-width: 185px; }
  .main { width: min(100% - 20px, 1180px); padding-top: 14px; }
  .hero { padding: 24px 20px; border-radius: 20px; }
  .hero-art { display: none; }
  .card { padding: 22px 18px; border-radius: 20px; }
  .card-header { gap: 12px; }
  .status-icon { width: 50px; height: 50px; flex-basis: 50px; }
  .welcome-grid { grid-template-columns: 1fr; }
  .avatar { width: 66px; height: 66px; grid-row: 1; }
  .summary-strip { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-button { min-height: 118px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .form-actions { display: grid; grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .section-heading { flex-direction: column; align-items: stretch; }
  .section-heading > p { align-self: flex-start; }
  .section-heading .btn { width: 100%; }
  .definition-list { grid-template-columns: 1fr; }
  .definition-list dt { padding-bottom: 3px; border-bottom: 0; }
  .definition-list dd { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* STEP COSMETICS-4：美容相談予約 */
.consultation-main { padding-bottom: 64px; }
.consultation-page-heading { margin-bottom: 20px; }
.card-header.compact { margin-bottom: 14px; }
.reservation-summary-card { margin-bottom: 22px; }
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 22px;
  align-items: start;
}
.booking-form-column { display: grid; gap: 20px; min-width: 0; }
.booking-step { margin: 0 !important; }
.step-heading { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; margin-bottom: 18px; }
.step-heading h2 { margin: 0 0 3px; font-size: clamp(22px, 3vw, 28px); }
.step-heading p { margin: 0; color: var(--muted); font-size: 15px; }
.step-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(145deg, var(--plum-800), var(--plum-950));
  color: white;
  font-size: 20px;
  font-weight: 900;
}
.choice-grid { display: grid; gap: 14px; }
.menu-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.staff-choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-card {
  display: flex;
  min-width: 0;
  min-height: 150px;
  padding: 18px;
  flex-direction: column;
  align-items: flex-start;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  background: white;
  color: var(--charcoal);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(63,39,52,.05);
  transition: border-color .16s, box-shadow .16s, transform .16s, background .16s;
}
.choice-card:hover, .choice-card:focus-visible { border-color: var(--rose-300); transform: translateY(-2px); outline: none; }
.choice-card.selected { border-color: var(--plum-800); background: var(--rose-100); box-shadow: 0 0 0 4px rgba(91,58,74,.09); }
.choice-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 10px; border-radius: 14px; background: var(--ivory-200); font-size: 24px; }
.staff-initial { color: var(--plum-900); font-weight: 900; }
.choice-title { display: block; font-size: 18px; font-weight: 900; line-height: 1.35; }
.choice-description { display: block; margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.choice-meta { display: block; margin-top: auto; padding-top: 10px; color: var(--plum-700); font-size: 13px; font-weight: 850; }
.date-control-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: end; }
.date-control-row .btn { min-width: 180px; }
.slot-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.slot-button {
  min-height: 72px;
  padding: 11px 8px;
  border: 2px solid var(--line);
  border-radius: var(--radius-md);
  background: white;
  color: var(--charcoal);
  cursor: pointer;
  text-align: center;
  transition: .16s;
}
.slot-button:hover, .slot-button:focus-visible { border-color: var(--rose-300); transform: translateY(-1px); outline: none; }
.slot-button.selected { border-color: var(--plum-800); background: var(--plum-800); color: white; box-shadow: 0 8px 18px rgba(91,58,74,.18); }
.slot-time { display: block; font-size: 20px; font-weight: 900; line-height: 1.25; }
.slot-meta { display: block; margin-top: 3px; font-size: 12px; font-weight: 750; opacity: .82; }
.booking-confirm-column { position: sticky; top: 86px; }
.booking-confirm-card { margin: 0 !important; }
.booking-definition-list { display: grid; grid-template-columns: 105px minmax(0, 1fr); margin: 18px 0; border-top: 1px solid var(--line); }
.booking-definition-list dt, .booking-definition-list dd { margin: 0; padding: 13px 7px; border-bottom: 1px solid var(--line); }
.booking-definition-list dt { color: var(--muted); font-size: 13px; font-weight: 850; }
.booking-definition-list dd { color: var(--plum-900); font-size: 15px; font-weight: 850; overflow-wrap: anywhere; }
.booking-confirm-card .btn + .btn { margin-top: 10px; }
.booking-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.empty-state { display: grid; place-items: center; min-height: 120px; padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); text-align: center; }
.empty-state span { font-size: 30px; }
.empty-state p { margin: 6px 0 0; }
.reservation-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ivory-100); }
.reservation-card + .reservation-card { margin-top: 12px; }
.reservation-card h3 { margin: 7px 0 3px; color: var(--plum-900); font-size: 21px; }
.reservation-card p { margin: 0; }
.reservation-request { margin-top: 7px !important; color: var(--muted); font-size: 14px; }
.reservation-number { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; }
.reservation-card-actions { display: grid; gap: 9px; min-width: 132px; }
.reservation-card-actions .btn { min-height: 46px; padding: 9px 14px; }
.modal-dialog { width: min(620px, calc(100% - 24px)); padding: 0; border: 0; border-radius: var(--radius-xl); background: transparent; }
.modal-dialog::backdrop { background: rgba(47,29,39,.58); backdrop-filter: blur(3px); }
.modal-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: white; box-shadow: 0 24px 70px rgba(0,0,0,.24); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory-100); color: var(--plum-900); font-size: 25px; cursor: pointer; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

@media (max-width: 980px) {
  .booking-layout { grid-template-columns: 1fr; }
  .booking-confirm-column { position: static; }
  .booking-confirm-card { position: static; }
}
@media (max-width: 760px) {
  .staff-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reservation-card { grid-template-columns: 1fr; }
  .reservation-card-actions { grid-template-columns: 1fr 1fr; min-width: 0; }
}
@media (max-width: 640px) {
  .menu-choice-grid, .staff-choice-grid { grid-template-columns: 1fr; }
  .choice-card { min-height: 126px; }
  .date-control-row { grid-template-columns: 1fr; }
  .date-control-row .btn { width: 100%; min-width: 0; }
  .slot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot-button { min-height: 68px; }
  .booking-definition-list { grid-template-columns: 88px minmax(0, 1fr); }
  .reservation-card-actions { grid-template-columns: 1fr; }
  .modal-card { padding: 22px 18px; }
  .modal-actions { display: grid; grid-template-columns: 1fr; }
}
.member-section-actions { margin-top: 16px; }

/* STEP COSMETICS-5：商品取り置き・購入履歴からの再購入 */
.coming-soon.available { background: #f7ecef; color: var(--plum-800); }
.pickup-main { padding-bottom: 64px; }
.pickup-page-heading { margin-bottom: 20px; }
.active-hold-card { margin-bottom: 22px; }
.pickup-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 390px); gap: 22px; align-items: start; }
.pickup-catalog-column { display: grid; gap: 20px; min-width: 0; }
.pickup-cart-column { position: relative; min-width: 0; }
.pickup-cart-card { position: sticky; top: 20px; }
.pickup-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.pickup-tab { min-height: 52px; padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 13px; background: var(--ivory-100); color: var(--plum-900); font-size: 15px; font-weight: 900; cursor: pointer; }
.pickup-tab.is-active { border-color: var(--plum-800); background: var(--plum-800); color: white; box-shadow: 0 8px 18px rgba(91,58,74,.18); }
.product-filter-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(180px, .7fr); gap: 14px; }
.product-section { min-width: 0; }
.compact-step-heading { grid-template-columns: 48px minmax(0, 1fr); }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.product-card { display: flex; min-width: 0; padding: 18px; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: 0 8px 22px rgba(63,39,52,.06); }
.product-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--rose-100); font-size: 25px; }
.favorite-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--ivory-100); color: #9b8772; font-size: 24px; cursor: pointer; }
.favorite-button.is-favorite { color: #9b722d; background: #fff4da; border-color: #e8cf99; }
.product-brand { margin: 13px 0 2px; color: var(--muted); font-size: 13px; font-weight: 850; letter-spacing: .03em; }
.product-card h3 { margin: 0; font-size: 21px; line-height: 1.35; }
.variant-detail { margin: 7px 0 0; color: var(--plum-800); font-size: 15px; font-weight: 800; }
.product-description { min-height: 48px; margin: 8px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.purchase-date { margin: 8px 0 14px; color: var(--muted); font-size: 14px; }
.product-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; margin-bottom: 14px; }
.inventory-pill { display: inline-flex; min-height: 29px; padding: 4px 9px; align-items: center; border-radius: 999px; background: var(--ivory-200); color: var(--plum-800); font-size: 12px; font-weight: 900; }
.inventory-pill.status-in_stock { background: #e3f3eb; color: #276449; }
.inventory-pill.status-low_stock { background: #fff0d9; color: #865b18; }
.inventory-pill.status-backorder { background: #f5e7ec; color: #7c4158; }
.product-empty { grid-column: 1 / -1; }
.empty-state { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); text-align: center; background: var(--ivory-100); }
.compact-empty { padding: 16px; }
.cart-items { display: grid; gap: 12px; margin-bottom: 14px; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--ivory-100); }
.cart-item-copy { display: grid; gap: 2px; min-width: 0; }
.cart-item-copy strong { overflow-wrap: anywhere; }
.cart-item-copy span { color: var(--muted); font-size: 13px; }
.quantity-control { display: grid; grid-template-columns: 38px 34px 38px; gap: 3px; align-items: center; }
.quantity-control button { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--plum-900); font-size: 20px; cursor: pointer; }
.quantity-control strong { text-align: center; }
.remove-item-button { grid-column: 1 / -1; justify-self: end; padding: 4px 8px; border: 0; background: transparent; color: var(--danger); font-size: 13px; font-weight: 850; cursor: pointer; }
.cart-summary { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; margin: 16px 0 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cart-summary dt, .cart-summary dd { margin: 0; }
.cart-summary dt { color: var(--muted); font-size: 14px; }
.cart-summary dd { color: var(--plum-900); font-weight: 900; text-align: right; }
.pickup-cart-card .field + .field { margin-top: 16px; }
.hold-card { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--ivory-100); }
.hold-card + .hold-card { margin-top: 12px; }
.hold-card-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.hold-card-heading h3 { margin: 8px 0 2px; font-size: 19px; }
.hold-card-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.hold-item-list { display: grid; gap: 7px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.hold-item-list > div { display: flex; justify-content: space-between; gap: 12px; }
.hold-item-list span { color: var(--muted); font-size: 14px; text-align: right; }
.duplicate-dialog-card { width: min(720px, calc(100vw - 28px)); }
.duplicate-list { display: grid; gap: 10px; margin: 16px 0; }
.duplicate-card { display: grid; gap: 2px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--ivory-100); }
.duplicate-card span { color: var(--muted); font-size: 14px; }
.duplicate-choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.duplicate-choice { display: grid; gap: 5px; min-height: 112px; padding: 16px; border: 2px solid var(--line); border-radius: 16px; background: white; color: var(--plum-900); text-align: left; cursor: pointer; }
.duplicate-choice:hover, .duplicate-choice:focus-visible { border-color: var(--plum-700); outline: none; box-shadow: 0 8px 20px rgba(91,58,74,.12); }
.duplicate-choice strong { font-size: 17px; }
.duplicate-choice span { color: var(--muted); font-size: 14px; line-height: 1.5; }

@media (max-width: 980px) {
  .pickup-layout { grid-template-columns: 1fr; }
  .pickup-cart-column, .pickup-cart-card { position: static; }
}
@media (max-width: 720px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-filter-grid { grid-template-columns: 1fr; }
  .hold-card-heading { flex-direction: column; }
  .hold-card-heading .btn { width: 100%; }
}
@media (max-width: 640px) {
  .pickup-tabs { grid-template-columns: 1fr; }
  .pickup-tab { width: 100%; }
  .cart-item { grid-template-columns: 1fr; }
  .quantity-control { justify-self: start; }
  .remove-item-button { grid-column: auto; justify-self: start; }
  .hold-item-list > div { display: grid; gap: 2px; }
  .hold-item-list span { text-align: left; }
  .duplicate-choice-grid { grid-template-columns: 1fr; }
}


/* STEP COSMETICS-6：オーナーPC管理画面 */
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }
.full-width { width:100%; }
.btn.compact { min-height:44px; padding:8px 14px; font-size:14px; }
.btn.ghost { color:white; border-color:rgba(255,255,255,.3); background:rgba(255,255,255,.08); }
.btn.danger { color:white; border-color:var(--danger); background:var(--danger); }
.owner-body { background:var(--ivory-100); }
.owner-login-shell { display:grid; min-height:100vh; padding:32px; place-items:center; background:radial-gradient(circle at 15% 10%,rgba(215,179,187,.32),transparent 28rem),radial-gradient(circle at 90% 90%,rgba(234,216,183,.3),transparent 25rem),var(--ivory-100); }
.owner-login-card { width:min(680px,100%); padding:clamp(28px,6vw,52px); border:1px solid var(--line); border-radius:30px; background:white; box-shadow:0 24px 70px rgba(63,39,52,.16); }
.owner-login-brand { margin-bottom:38px; }
.owner-login-card h1 { font-size:clamp(33px,5vw,48px); }
.owner-login-form { margin-top:30px; padding-top:26px; border-top:1px solid var(--line); }
.management-code-control { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:8px; }
.management-code-control input { min-width:0; }
.code-action-button { min-width:72px; border:1px solid var(--line); border-radius:12px; background:var(--ivory-100); color:var(--plum-900); font-weight:900; cursor:pointer; }
.danger-text { color:var(--danger); }
.owner-app { min-height:100vh; }
.owner-topbar { position:sticky; top:0; z-index:50; display:flex; min-height:76px; padding:12px 24px; align-items:center; justify-content:space-between; gap:18px; color:white; background:var(--plum-950); box-shadow:0 8px 24px rgba(30,17,24,.16); }
.owner-topbar-actions { display:flex; align-items:center; gap:10px; }
.owner-layout { display:grid; grid-template-columns:260px minmax(0,1fr); min-height:calc(100vh - 76px); }
.owner-sidebar { position:sticky; top:76px; align-self:start; height:calc(100vh - 76px); padding:24px 18px; border-right:1px solid var(--line); background:white; overflow-y:auto; }
.owner-nav { display:grid; gap:9px; }
.owner-nav-button { display:flex; min-height:54px; padding:12px 15px; align-items:center; gap:11px; border:1px solid transparent; border-radius:14px; background:transparent; color:var(--plum-900); font-weight:900; text-align:left; cursor:pointer; }
.owner-nav-button span { font-size:21px; }
.owner-nav-button:hover,.owner-nav-button:focus-visible { border-color:var(--rose-200); background:var(--rose-100); outline:none; }
.owner-nav-button.is-active { color:white; background:linear-gradient(145deg,var(--plum-800),var(--plum-950)); box-shadow:0 10px 22px rgba(63,39,52,.18); }
.owner-sidebar-note { margin-top:28px; padding:15px; border-radius:14px; background:var(--info-soft); color:var(--info); font-size:13px; }
.owner-sidebar-note p { margin:5px 0 0; }
.owner-main { width:100%; min-width:0; padding:32px clamp(20px,4vw,48px) 64px; }
.owner-page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-bottom:22px; }
.owner-page-heading h1 { margin-bottom:7px; font-size:clamp(32px,4vw,46px); }
.owner-page-heading p { margin-bottom:0; color:var(--muted); }
.owner-loading { position:fixed; inset:76px 0 0 260px; z-index:45; display:grid; place-content:center; background:rgba(251,248,245,.76); backdrop-filter:blur(2px); text-align:center; }
.owner-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:22px; }
.owner-stat-card { display:grid; min-height:150px; padding:20px; align-content:start; border:1px solid var(--line); border-radius:20px; background:white; box-shadow:0 10px 28px rgba(63,39,52,.07); }
.owner-stat-card > span { font-size:28px; }
.owner-stat-card small { margin-top:10px; color:var(--muted); font-weight:850; }
.owner-stat-card strong { margin-top:2px; color:var(--plum-900); font-size:27px; }
.owner-two-column { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-bottom:22px; }
.owner-panel { margin-top:0!important; padding:24px; }
.owner-panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:18px; }
.owner-panel-heading h2 { margin-bottom:0; font-size:27px; }
.owner-mini-row { display:grid; grid-template-columns:145px minmax(0,1fr); gap:2px 14px; padding:13px 0; border-bottom:1px solid var(--line); }
.owner-mini-row:last-child { border-bottom:0; }
.owner-mini-row span { grid-row:1/3; color:var(--plum-700); font-weight:900; }
.owner-mini-row strong { overflow-wrap:anywhere; }
.owner-mini-row small { color:var(--muted); }
.owner-customer-mini-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.owner-customer-mini { display:grid; padding:15px; gap:3px; border:1px solid var(--line); border-radius:14px; background:var(--ivory-100); color:var(--charcoal); text-align:left; cursor:pointer; }
.owner-customer-mini:hover { border-color:var(--plum-700); }
.owner-customer-mini span,.owner-customer-mini small { color:var(--muted); }
.owner-search-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; }
.owner-search-row input[type="search"],.owner-filter-grid input[type="search"] { width:100%; min-height:54px; padding:12px 14px; border:1.5px solid #cfc5c0; border-radius:var(--radius-sm); background:white; font-size:18px; }
.owner-list-stack { display:grid; gap:16px; margin-top:20px; }
.owner-record-card { margin:0!important; padding:24px; }
.owner-record-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.owner-record-heading h2 { margin:7px 0 0; font-size:25px; }
.owner-record-heading > strong { color:var(--plum-700); font-size:14px; overflow-wrap:anywhere; }
.owner-record-meta { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:15px; padding:13px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--muted); font-size:14px; }
.owner-record-meta strong { color:var(--charcoal); }
.owner-count-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.owner-count-row span { padding:5px 10px; border-radius:999px; background:var(--rose-100); color:var(--plum-700); font-size:13px; font-weight:900; }
.owner-record-note { margin-top:14px; padding:12px 14px; border-radius:12px; background:var(--info-soft); color:var(--info); }
.owner-action-row { display:flex; flex-wrap:wrap; gap:9px; margin-top:16px; }
.owner-filter-grid { display:grid; grid-template-columns:repeat(4,minmax(150px,1fr)) auto; gap:13px; align-items:end; }
.owner-filter-grid-short { grid-template-columns:minmax(180px,.6fr) minmax(260px,1.4fr) auto; }
.owner-filter-button { min-height:54px; }
.status-pill { display:inline-flex; padding:5px 9px; border-radius:999px; background:var(--ivory-200); color:var(--plum-800); font-size:12px; font-weight:900; }
.status-requested,.status-new { background:#fff1d8; color:#80540f; }
.status-confirmed,.status-secured { background:#e9efff; color:#375b8a; }
.status-checked_in,.status-ready,.status-active { background:#e3f3eb; color:#276449; }
.status-in_service,.status-checking { background:#e8f0f4; color:#315b72; }
.status-completed,.status-picked_up { background:#ece8f5; color:#584b7c; }
.status-backorder { background:#f6e8ed; color:#81445a; }
.status-cancelled,.status-no_show,.status-expired { background:var(--danger-soft); color:var(--danger); }
.owner-item-list { display:grid; gap:7px; margin-top:14px; padding:13px; border-radius:13px; background:var(--ivory-100); }
.owner-item-list > div { display:flex; justify-content:space-between; gap:12px; }
.owner-item-list > div span:last-child { color:var(--muted); font-size:14px; }
.owner-definition-list { display:grid; grid-template-columns:180px minmax(0,1fr); margin:0; }
.owner-definition-list dt,.owner-definition-list dd { margin:0; padding:13px 0; border-bottom:1px solid var(--line); }
.owner-definition-list dt { color:var(--muted); font-weight:850; }
.owner-definition-list dd { font-weight:900; }
.owner-info-box { margin:22px 0 0; }
.owner-detail-dialog { width:min(960px,calc(100% - 28px)); }
.owner-detail-dialog .modal-card { max-height:90vh; overflow-y:auto; }
.owner-detail-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.owner-detail-summary > div { padding:13px; border:1px solid var(--line); border-radius:12px; background:var(--ivory-100); }
.owner-detail-summary dt { color:var(--muted); font-size:13px; font-weight:850; }
.owner-detail-summary dd { margin:3px 0 0; color:var(--plum-900); font-weight:900; overflow-wrap:anywhere; }
.owner-detail-section { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.owner-detail-section h3 { font-size:21px; }
.owner-note,.owner-history-row { display:grid; gap:4px; padding:12px 13px; border:1px solid var(--line); border-radius:12px; background:var(--ivory-100); }
.owner-note + .owner-note,.owner-history-row + .owner-history-row { margin-top:8px; }
.owner-note p { margin:0; }
.owner-note small,.owner-history-row span { color:var(--muted); font-size:13px; }
.owner-note.restricted { border-color:#edc7c7; background:var(--danger-soft); }
@media(max-width:1180px){
  .owner-stat-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .owner-customer-mini-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .owner-filter-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .owner-filter-button { width:100%; }
}
@media(max-width:900px){
  .owner-layout { grid-template-columns:1fr; }
  .owner-sidebar { position:sticky; top:76px; z-index:40; height:auto; padding:10px 14px; border-right:0; border-bottom:1px solid var(--line); overflow-x:auto; }
  .owner-nav { display:flex; min-width:max-content; }
  .owner-nav-button { min-height:48px; }
  .owner-sidebar-note { display:none; }
  .owner-loading { inset:134px 0 0; }
  .owner-two-column { grid-template-columns:1fr; }
}
@media(max-width:680px){
  .owner-login-shell { padding:16px; }
  .owner-login-card { padding:24px 18px; }
  .management-code-control { grid-template-columns:minmax(0,1fr) auto; }
  .management-code-control .danger-text { grid-column:1/-1; min-height:46px; }
  .owner-topbar { align-items:flex-start; padding:12px 14px; }
  .owner-topbar-actions { display:grid; grid-template-columns:1fr 1fr; }
  .owner-topbar-actions .demo-badge { grid-column:1/-1; text-align:center; }
  .owner-main { padding:24px 14px 50px; }
  .owner-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .owner-stat-card { min-height:130px; padding:15px; }
  .owner-stat-card strong { font-size:22px; }
  .owner-panel,.owner-record-card { padding:19px 16px; }
  .owner-panel-heading,.owner-record-heading { display:grid; }
  .owner-panel-heading .btn { width:100%; }
  .owner-customer-mini-grid { grid-template-columns:1fr; }
  .owner-search-row,.owner-filter-grid,.owner-filter-grid-short { grid-template-columns:1fr; }
  .owner-record-heading > strong { max-width:100%; }
  .owner-record-meta { display:grid; gap:7px; }
  .owner-action-row { display:grid; grid-template-columns:1fr; }
  .owner-action-row .btn { width:100%; }
  .owner-item-list > div { display:grid; }
  .owner-detail-summary { grid-template-columns:1fr; }
  .owner-definition-list { grid-template-columns:1fr; }
  .owner-definition-list dt { padding-bottom:2px; border-bottom:0; }
  .owner-definition-list dd { padding-top:2px; }
}


/* STEP COSMETICS-7：オーナー・スタッフ用iPad接客画面 */
.ipad-body { background:var(--ivory-100); }
.ipad-login-shell {
  display:grid; min-height:100vh; padding:30px; place-items:center;
  background:
    radial-gradient(circle at 15% 15%,rgba(215,179,187,.34),transparent 28rem),
    radial-gradient(circle at 90% 88%,rgba(234,216,183,.34),transparent 27rem),
    var(--ivory-100);
}
.ipad-login-card {
  width:min(760px,100%); padding:clamp(30px,6vw,56px);
  border:1px solid var(--line); border-radius:32px; background:white;
  box-shadow:0 25px 72px rgba(63,39,52,.16);
}
.ipad-login-card h1 { margin-top:14px; font-size:clamp(35px,5vw,52px); }
.ipad-login-form { margin-top:32px; padding-top:26px; border-top:1px solid var(--line); }

.ipad-app { min-height:100vh; }
.ipad-topbar {
  position:sticky; top:0; z-index:60; display:flex; min-height:82px;
  padding:12px 20px; align-items:center; justify-content:space-between; gap:18px;
  color:white; background:var(--plum-950); box-shadow:0 8px 24px rgba(30,17,24,.17);
}
.ipad-topbar-controls { display:flex; align-items:center; gap:9px; }
.ipad-topbar-controls label { font-size:13px; font-weight:900; }
.ipad-topbar-controls select {
  min-width:205px; min-height:48px; padding:8px 38px 8px 12px;
  border:1px solid rgba(255,255,255,.34); border-radius:12px;
  color:white; background-color:rgba(255,255,255,.1); font-size:16px; font-weight:850;
}
.ipad-topbar-controls select option { color:var(--charcoal); background:white; }

.ipad-tabbar {
  position:sticky; top:82px; z-index:55; display:grid; grid-template-columns:repeat(3,1fr);
  gap:10px; padding:12px max(18px,calc((100vw - 1280px)/2));
  border-bottom:1px solid var(--line); background:rgba(251,248,245,.96);
  backdrop-filter:blur(12px);
}
.ipad-tab-button {
  display:flex; min-height:58px; align-items:center; justify-content:center; gap:9px;
  border:1px solid var(--line); border-radius:16px; color:var(--plum-900);
  background:white; font-size:17px; font-weight:900; cursor:pointer;
}
.ipad-tab-button span { font-size:23px; }
.ipad-tab-button.is-active {
  color:white; border-color:var(--plum-800);
  background:linear-gradient(145deg,var(--plum-800),var(--plum-950));
  box-shadow:0 10px 22px rgba(63,39,52,.18);
}

.ipad-main { width:min(1280px,100%); margin:0 auto; padding:30px 20px 70px; }
.ipad-loading {
  position:fixed; inset:152px 0 0; z-index:70; display:grid; place-content:center;
  background:rgba(251,248,245,.78); backdrop-filter:blur(3px); text-align:center;
}
.ipad-page-heading {
  display:flex; margin-bottom:22px; align-items:flex-end; justify-content:space-between; gap:20px;
}
.ipad-page-heading h1 { margin-bottom:6px; font-size:clamp(34px,4.2vw,50px); }
.ipad-page-heading p { margin-bottom:0; color:var(--muted); }
.ipad-summary-cards { display:grid; grid-template-columns:repeat(4,minmax(112px,1fr)); gap:9px; }
.ipad-summary-card {
  display:grid; min-height:82px; padding:13px 15px; align-content:center;
  border:1px solid var(--line); border-radius:15px; background:white;
  box-shadow:0 8px 20px rgba(63,39,52,.06);
}
.ipad-summary-card small { color:var(--muted); font-weight:850; }
.ipad-summary-card strong { color:var(--plum-900); font-size:19px; overflow-wrap:anywhere; }

.ipad-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.ipad-work-card { margin:0!important; padding:22px; }
.ipad-work-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; }
.ipad-work-card-head h2 { margin:9px 0 4px; font-size:27px; }
.ipad-work-card-head p { margin:0; color:var(--muted); }
.ipad-time-badge {
  display:grid; min-width:68px; min-height:68px; padding:8px; place-items:center;
  border-radius:18px; color:var(--plum-800); background:var(--rose-100);
  font-size:19px; font-weight:950;
}
.ipad-avatar {
  display:grid; min-width:68px; min-height:68px; place-items:center;
  border-radius:50%; color:var(--plum-900);
  background:linear-gradient(145deg,#f2dde1,#ead8b7); font-size:24px; font-weight:950;
}
.ipad-work-meta { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:15px; padding:13px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line); color:var(--muted); font-size:14px; }
.ipad-work-meta strong { color:var(--charcoal); }
.ipad-work-note { margin-top:14px; padding:12px 14px; border-radius:12px; color:var(--info); background:var(--info-soft); }
.ipad-work-action { width:100%; min-height:56px; margin-top:16px; font-size:17px; }
.ipad-action-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; margin-top:16px; }
.ipad-action-grid .btn { min-height:54px; }
.priority-pill { display:inline-flex; margin-left:6px; padding:5px 9px; border-radius:999px; font-size:12px; font-weight:900; }
.priority-low { color:#54646a; background:#e9eff1; }
.priority-normal { color:#4e5b82; background:#e9edfa; }
.priority-high { color:#87560f; background:#fff0d1; }
.priority-urgent { color:var(--danger); background:var(--danger-soft); }
.urgent-card { border-color:#dfa9a9!important; box-shadow:0 10px 26px rgba(154,55,55,.12)!important; }

.ipad-recent-panel,.ipad-search-panel { margin-top:22px!important; padding:23px; }
.ipad-panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:17px; }
.ipad-panel-heading h2 { margin-bottom:0; font-size:27px; }
.ipad-customer-strip { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.ipad-customer-chip {
  display:grid; gap:3px; min-height:112px; padding:14px; align-content:center;
  border:1px solid var(--line); border-radius:14px; color:var(--charcoal);
  background:var(--ivory-100); text-align:left; cursor:pointer;
}
.ipad-customer-chip:hover,.ipad-customer-chip:focus-visible { border-color:var(--plum-700); outline:none; }
.ipad-customer-chip span,.ipad-customer-chip small { color:var(--muted); }
.ipad-search-row { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; }
.ipad-search-row input[type="search"] {
  width:100%; min-height:58px; padding:13px 15px; border:1.5px solid #cfc5c0;
  border-radius:var(--radius-sm); background:white; font-size:18px;
}
.ipad-empty-card { grid-column:1/-1; min-height:180px; }

.ipad-session-dialog {
  width:calc(100% - 20px); max-width:1500px; height:calc(100% - 20px);
  max-height:none; padding:0; border:0; border-radius:26px; overflow:hidden;
  background:var(--ivory-100);
}
.ipad-session-dialog::backdrop { background:rgba(33,20,27,.62); backdrop-filter:blur(3px); }
.ipad-session-shell { display:grid; grid-template-rows:auto minmax(0,1fr); height:100%; }
.ipad-session-header {
  display:flex; min-height:92px; padding:18px 24px; align-items:center;
  justify-content:space-between; gap:18px; border-bottom:1px solid var(--line); background:white;
}
.ipad-session-header h2 { margin:3px 0; font-size:32px; }
.ipad-session-header p { margin:0; color:var(--muted); }
.ipad-session-layout { display:grid; grid-template-columns:340px minmax(0,1fr); min-height:0; }
.ipad-customer-history {
  padding:20px; border-right:1px solid var(--line); background:white; overflow-y:auto;
}
.ipad-customer-history section + section { margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.ipad-customer-history h3 { margin-bottom:11px; font-size:19px; }
.ipad-definition-list { display:grid; grid-template-columns:105px minmax(0,1fr); margin:0; }
.ipad-definition-list dt,.ipad-definition-list dd { margin:0; padding:8px 0; border-bottom:1px solid var(--line); }
.ipad-definition-list dt { color:var(--muted); font-size:13px; font-weight:850; }
.ipad-definition-list dd { font-weight:900; overflow-wrap:anywhere; }
.ipad-history-row,.ipad-note {
  display:grid; gap:4px; padding:10px 11px; border:1px solid var(--line);
  border-radius:11px; background:var(--ivory-100);
}
.ipad-history-row + .ipad-history-row,.ipad-note + .ipad-note { margin-top:7px; }
.ipad-history-row span,.ipad-note small { color:var(--muted); font-size:12px; }
.ipad-note p { margin:0; font-size:14px; }
.ipad-note.restricted { border-color:#e5b4b4; background:var(--danger-soft); }

.ipad-session-form { padding:22px; overflow-y:auto; }
.ipad-form-section { position:relative; margin:0 0 18px!important; padding:24px; }
.ipad-form-section > div:nth-child(2) { padding-left:54px; margin-bottom:17px; }
.ipad-form-section h3 { margin-bottom:3px; font-size:26px; }
.ipad-form-section p { margin-bottom:0; color:var(--muted); }
.ipad-section-number {
  position:absolute; top:22px; left:22px; display:grid; width:38px; height:38px;
  place-items:center; border-radius:12px; color:white; background:var(--plum-900); font-weight:950;
}
.ipad-inline-builder {
  display:grid; grid-template-columns:1.2fr .7fr 1.3fr auto; gap:11px;
  align-items:end; padding:15px; border-radius:15px; background:var(--ivory-100);
}
.ipad-inline-builder.purchase-builder { grid-template-columns:1.5fr .45fr .55fr auto; }
.ipad-inline-builder.sample-builder { grid-template-columns:1.2fr .42fr 1fr 1fr auto; }
.ipad-inline-builder .field { margin:0; }
.small-field { min-width:110px; }
.ipad-selected-list { display:grid; gap:8px; margin-top:14px; }
.ipad-selected-item {
  display:flex; min-height:64px; padding:11px 13px; align-items:center;
  justify-content:space-between; gap:13px; border:1px solid var(--line);
  border-radius:13px; background:white;
}
.ipad-selected-item > div { display:grid; gap:3px; }
.ipad-selected-item span { color:var(--muted); font-size:13px; }
.small-icon { width:42px!important; min-width:42px!important; height:42px!important; min-height:42px!important; }
.ipad-total-row {
  display:flex; margin-top:15px; padding:15px 0 0; align-items:center;
  justify-content:flex-end; gap:20px; border-top:1px solid var(--line);
}
.ipad-total-row strong { min-width:140px; color:var(--plum-900); font-size:27px; text-align:right; }
.ipad-toggle-row {
  display:flex; min-height:58px; padding:13px 15px; align-items:center; gap:12px;
  border:1px solid var(--line); border-radius:14px; background:var(--ivory-100);
  font-weight:900; cursor:pointer;
}
.ipad-toggle-row input { width:25px; height:25px; accent-color:var(--plum-800); }
.ipad-save-section { position:sticky; bottom:-22px; z-index:10; border-color:var(--rose-200)!important; box-shadow:0 -12px 30px rgba(63,39,52,.10)!important; }
.ipad-save-button { width:100%; min-height:64px; margin-top:15px; font-size:19px; }

@media(max-width:1150px) {
  .ipad-page-heading { display:grid; }
  .ipad-summary-cards { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .ipad-card-grid { grid-template-columns:1fr; }
  .ipad-customer-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ipad-session-layout { grid-template-columns:285px minmax(0,1fr); }
  .ipad-inline-builder,.ipad-inline-builder.purchase-builder,.ipad-inline-builder.sample-builder {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .ipad-inline-builder .btn { width:100%; min-height:54px; }
}
@media(max-width:850px) {
  .ipad-topbar { display:grid; position:relative; }
  .ipad-topbar-controls { display:grid; grid-template-columns:minmax(0,1fr) auto auto auto; }
  .ipad-topbar-controls label { grid-column:1/-1; }
  .ipad-topbar-controls select { min-width:0; width:100%; }
  .ipad-tabbar { top:0; }
  .ipad-summary-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ipad-customer-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ipad-session-layout { grid-template-columns:1fr; overflow-y:auto; }
  .ipad-customer-history { max-height:none; border-right:0; border-bottom:1px solid var(--line); overflow:visible; }
  .ipad-session-form { overflow:visible; }
  .ipad-session-shell { overflow-y:auto; }
  .ipad-action-grid { grid-template-columns:1fr; }
}
@media(max-width:620px) {
  .ipad-login-shell { padding:14px; }
  .ipad-login-card { padding:24px 17px; }
  .ipad-topbar { padding:12px; }
  .ipad-topbar-controls { grid-template-columns:1fr 1fr; }
  .ipad-topbar-controls label,.ipad-topbar-controls select { grid-column:1/-1; }
  .ipad-topbar-controls .btn { width:100%; }
  .ipad-tabbar { padding:9px; gap:6px; }
  .ipad-tab-button { min-height:56px; padding:7px; font-size:14px; }
  .ipad-tab-button span { font-size:19px; }
  .ipad-main { padding:22px 12px 50px; }
  .ipad-summary-cards { grid-template-columns:1fr 1fr; }
  .ipad-summary-card { min-height:75px; padding:11px; }
  .ipad-work-card,.ipad-recent-panel,.ipad-search-panel { padding:18px 15px; }
  .ipad-work-card-head { display:grid; }
  .ipad-time-badge { min-width:0; min-height:48px; width:100%; }
  .ipad-work-meta { display:grid; gap:7px; }
  .ipad-customer-strip { grid-template-columns:1fr; }
  .ipad-search-row { grid-template-columns:1fr; }
  .ipad-session-dialog { width:100%; height:100%; border-radius:0; }
  .ipad-session-header { padding:14px; }
  .ipad-session-header h2 { font-size:25px; }
  .ipad-customer-history,.ipad-session-form { padding:14px; }
  .ipad-form-section { padding:20px 15px; }
  .ipad-form-section > div:nth-child(2) { padding-left:48px; }
  .ipad-section-number { left:15px; }
  .ipad-inline-builder,.ipad-inline-builder.purchase-builder,.ipad-inline-builder.sample-builder { grid-template-columns:1fr; }
  .ipad-selected-item { align-items:flex-start; }
  .ipad-save-section { bottom:-14px; }
}


/* STEP COSMETICS-7-R1：iPad上部操作欄の視認性修正 */
.ipad-topbar-controls {
  flex-wrap: nowrap;
}
.ipad-topbar-controls label {
  min-width: 72px;
  color: #ffffff;
  line-height: 1.35;
  white-space: nowrap;
}
.ipad-topbar-controls .btn {
  min-width: 76px;
  padding-inline: 12px;
  white-space: nowrap;
}
.ipad-topbar-controls select {
  min-width: 310px;
}
@media(max-width:1050px) {
  .ipad-topbar-controls select {
    min-width: 220px;
  }
}
@media(max-width:850px) {
  .ipad-topbar-controls label {
    min-width: 0;
  }
  .ipad-topbar-controls select {
    min-width: 0;
  }
}


/* STEP COSMETICS-8：店舗運営設定 */
.operations-body { background:var(--ivory-100); }
.operations-layout { display:grid; grid-template-columns:250px minmax(0,1fr); min-height:calc(100vh - 70px); }
.operations-sidebar {
  position:sticky; top:70px; align-self:start; display:grid; gap:9px;
  min-height:calc(100vh - 70px); padding:22px 14px; border-right:1px solid var(--line); background:white;
}
.operations-nav {
  display:flex; min-height:58px; padding:13px 15px; align-items:center; gap:10px;
  border:1px solid transparent; border-radius:14px; color:var(--plum-900);
  background:transparent; font-weight:900; text-align:left; cursor:pointer;
}
.operations-nav.is-active { color:white; background:linear-gradient(145deg,var(--plum-800),var(--plum-950)); box-shadow:0 10px 20px rgba(63,39,52,.18); }
.operations-main { position:relative; min-width:0; padding:32px clamp(18px,4vw,48px) 70px; }
.operations-form { margin:0!important; }
.operations-subheading { margin:30px 0 14px; padding-top:24px; border-top:1px solid var(--line); font-size:27px; }
.business-hours-editor { display:grid; gap:10px; }
.business-day-row {
  display:grid; grid-template-columns:90px 140px 150px 30px 150px; gap:10px;
  min-height:62px; padding:10px 13px; align-items:center; border:1px solid var(--line); border-radius:14px; background:var(--ivory-100);
}
.business-day-row input[type="time"] { min-height:46px; }
.compact-check { min-height:46px!important; padding:8px!important; }
.operations-check {
  display:flex; min-height:54px; padding:12px 14px; align-items:center; gap:11px;
  border:1px solid var(--line); border-radius:13px; background:var(--ivory-100); cursor:pointer;
}
.operations-check input { width:23px; height:23px; accent-color:var(--plum-800); }
.operations-save { width:100%; min-height:62px; margin-top:24px; font-size:18px; }
.operations-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
.operations-record { margin:0!important; padding:22px; }
.operations-record-head { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; }
.operations-record-head h2 { margin:8px 0 3px; font-size:25px; }
.operations-record-head p { margin:0; color:var(--muted); }
.operations-record-actions { display:flex; gap:7px; }
.operations-search { margin:0 0 18px!important; padding:16px; }
.operations-search input { width:100%; min-height:54px; }
.operations-dialog { width:min(760px,calc(100% - 24px)); }
.wide-dialog { width:min(980px,calc(100% - 24px)); }
.operations-launch-card { display:flex; margin-bottom:18px; align-items:center; justify-content:space-between; gap:20px; }
.status-in_stock { color:var(--success); background:var(--success-soft); }
.status-low_stock,.status-backorder { color:var(--warning); background:var(--warning-soft); }
.status-check_required { color:var(--info); background:var(--info-soft); }
.status-discontinued { color:var(--muted); background:#ece8e8; }
@media(max-width:1000px) {
  .operations-layout { grid-template-columns:1fr; }
  .operations-sidebar {
    position:sticky; top:70px; z-index:20; display:flex; min-height:0; padding:10px;
    overflow-x:auto; border-right:0; border-bottom:1px solid var(--line);
  }
  .operations-nav { flex:0 0 auto; min-width:190px; }
  .operations-card-grid { grid-template-columns:1fr; }
}
@media(max-width:700px) {
  .operations-main { padding:24px 12px 55px; }
  .business-day-row { grid-template-columns:1fr 1fr; }
  .business-day-row > strong { grid-column:1/-1; }
  .business-day-row > span { display:none; }
  .operations-record-head,.operations-launch-card { display:grid; }
  .operations-record-actions { width:100%; }
  .operations-record-actions .btn { flex:1; }
}


/* STEP COSMETICS-8-R1：営業時間を30分刻みの選択式へ統一 */
.business-day-row .half-hour-select,
.operations-dialog .half-hour-select {
  width:100%;
  min-height:48px;
  padding:10px 38px 10px 13px;
  border:1.5px solid #cfc5c0;
  border-radius:12px;
  color:var(--charcoal);
  background-color:#fff;
  font-size:16px;
  font-weight:850;
  font-variant-numeric:tabular-nums;
}
.business-day-row .half-hour-select:disabled,
.operations-dialog .half-hour-select:disabled {
  color:#9a9094;
  background:#f2eeee;
  cursor:not-allowed;
}


/* =========================================================
   STEP COSMETICS-9：問合せ・フォロー・再購入・キャンペーン
   ========================================================= */

.inquiry-page { width:min(1120px,100%); }
.inquiry-member-card {
  display:flex; margin-bottom:20px; padding:24px 28px;
  align-items:center; justify-content:space-between; gap:20px;
}
.inquiry-member-card h2 { margin-bottom:4px; font-size:31px; }
.inquiry-member-card p { margin:0; color:var(--muted); }
.inquiry-form-card { margin-bottom:30px; padding:28px; }
.inquiry-type-grid {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  gap:11px; margin-bottom:20px;
}
.inquiry-type-option { cursor:pointer; }
.inquiry-type-option input {
  position:absolute; width:1px; height:1px; opacity:0; pointer-events:none;
}
.inquiry-type-option span {
  display:grid; min-height:118px; padding:15px; align-content:center; gap:4px;
  border:1.5px solid var(--line); border-radius:15px; background:var(--ivory-100);
  transition:.18s ease;
}
.inquiry-type-option span > :first-child { font-size:24px; }
.inquiry-type-option strong { color:var(--plum-950); font-size:17px; }
.inquiry-type-option small { color:var(--muted); }
.inquiry-type-option input:checked + span {
  border-color:var(--plum-700); background:var(--rose-100);
  box-shadow:0 0 0 2px rgba(96,56,76,.08);
}
.inquiry-type-option input:focus-visible + span {
  outline:3px solid rgba(71,122,150,.26); outline-offset:2px;
}
.inquiry-history-section { margin-top:30px; }
.inquiry-history-list { display:grid; gap:16px; }
.inquiry-history-card { margin:0!important; padding:24px; }
.inquiry-history-head {
  display:flex; align-items:flex-start; justify-content:space-between; gap:18px;
}
.inquiry-history-head h3 { margin:10px 0 4px; font-size:24px; }
.inquiry-history-head p { margin:0; color:var(--muted); }
.inquiry-type-label,.campaign-type {
  display:inline-flex; margin-left:6px; padding:5px 9px; border-radius:999px;
  color:var(--plum-800); background:var(--rose-100); font-size:12px; font-weight:900;
}
.inquiry-priority,.priority-display {
  display:grid; min-width:68px; min-height:48px; padding:8px;
  place-items:center; border-radius:13px; font-size:14px; font-weight:950;
}
.priority-low { color:#55636a; background:#e9eff1; }
.priority-normal { color:#4d5c82; background:#e8edfb; }
.priority-high { color:#87560f; background:#fff0d1; }
.priority-urgent { color:var(--danger); background:var(--danger-soft); }
.inquiry-related,.engagement-related {
  margin-top:14px; padding:10px 13px; border-radius:11px;
  color:var(--info); background:var(--info-soft); font-size:14px;
}
.inquiry-message,.engagement-message {
  margin-top:14px; padding:15px; border:1px solid var(--line);
  border-radius:13px; background:var(--ivory-100); white-space:pre-wrap;
}
.inquiry-message p,.inquiry-response p,.engagement-response-preview p { margin:6px 0 0; white-space:pre-wrap; }
.inquiry-response,.engagement-response-preview {
  margin-top:14px; padding:16px; border:1px solid #b9d6c8;
  border-radius:13px; background:var(--success-soft);
}
.inquiry-response small { color:var(--muted); }
.inquiry-waiting {
  margin-top:14px; padding:14px; border-radius:12px;
  color:var(--muted); background:#f1eded; text-align:center;
}

.campaigns-page { background:var(--ivory-100); }
.campaign-hero {
  display:flex; min-height:245px; padding:36px clamp(24px,5vw,56px);
  align-items:center; justify-content:space-between; gap:30px;
  border:1px solid var(--line); border-radius:28px;
  background:
    radial-gradient(circle at 85% 30%,rgba(213,174,185,.35),transparent 18rem),
    linear-gradient(145deg,#fff,#f6ece9);
  box-shadow:var(--shadow);
}
.campaign-hero h1 { margin:10px 0; font-size:clamp(38px,5.6vw,62px); }
.campaign-hero p { max-width:700px; margin:0; color:var(--muted); font-size:18px; }
.campaign-hero-icon {
  display:grid; min-width:130px; min-height:130px; place-items:center;
  border-radius:50%; color:white; background:var(--plum-900);
  box-shadow:0 18px 40px rgba(63,39,52,.20); font-size:55px;
}
.page-actions { display:flex; margin:18px 0; justify-content:flex-end; }
.public-campaign-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.public-campaign-card {
  display:grid; grid-template-columns:72px minmax(0,1fr); gap:18px;
  margin:0!important; padding:25px;
}
.public-campaign-icon {
  display:grid; width:72px; height:72px; place-items:center;
  border-radius:19px; background:var(--rose-100); font-size:34px;
}
.public-campaign-card h2 { margin:9px 0 4px; font-size:27px; }
.campaign-period { color:var(--muted); font-size:14px; }
.campaign-content { margin-top:15px; line-height:1.9; }
.campaign-consent-note { margin-top:22px!important; padding:24px; }
.campaign-consent-note h2 { font-size:24px; }
.campaign-consent-note p { margin-bottom:0; color:var(--muted); }

.engagement-body { background:var(--ivory-100); }
.engagement-tabbar {
  position:sticky; top:70px; z-index:45;
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px;
  padding:12px max(16px,calc((100vw - 1380px)/2));
  border-bottom:1px solid var(--line); background:rgba(251,248,245,.96);
  backdrop-filter:blur(12px);
}
.engagement-tab {
  min-height:58px; padding:10px 14px; border:1px solid var(--line);
  border-radius:15px; color:var(--plum-900); background:white;
  font-size:16px; font-weight:900; cursor:pointer;
}
.engagement-tab.is-active {
  color:white; border-color:var(--plum-800);
  background:linear-gradient(145deg,var(--plum-800),var(--plum-950));
  box-shadow:0 10px 22px rgba(63,39,52,.16);
}
.engagement-main {
  position:relative; width:min(1380px,100%); margin:0 auto;
  padding:30px 20px 70px;
}
.engagement-summary {
  display:grid; grid-template-columns:repeat(6,minmax(0,1fr));
  gap:11px; margin-bottom:28px;
}
.engagement-summary-card {
  display:grid; min-height:112px; padding:15px; align-content:center; gap:4px;
  border:1px solid var(--line); border-radius:17px; background:white;
  box-shadow:0 8px 24px rgba(63,39,52,.07);
}
.engagement-summary-card > span { font-size:24px; }
.engagement-summary-card small { color:var(--muted); font-weight:850; }
.engagement-summary-card strong { color:var(--plum-950); font-size:23px; }
.engagement-filter {
  display:grid; grid-template-columns:230px 230px minmax(260px,1fr);
  gap:10px; margin:0 0 18px!important; padding:15px;
}
.engagement-filter select,.engagement-filter input {
  width:100%; min-height:52px; padding:11px 38px 11px 13px;
  border:1.5px solid #cfc5c0; border-radius:12px; background:white; font-size:16px;
}
.engagement-card-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:17px; }
.engagement-record { margin:0!important; padding:22px; }
.engagement-record.urgent-card { border-color:#dda4a4!important; box-shadow:0 12px 30px rgba(154,55,55,.12)!important; }
.engagement-record.high-card { border-color:#e4c078!important; }
.engagement-record.overdue-card { border-left:6px solid var(--danger)!important; }
.engagement-record-head {
  display:flex; align-items:flex-start; justify-content:space-between; gap:18px;
}
.engagement-record-head h2 { margin:9px 0 4px; font-size:25px; }
.engagement-record-head p { margin:0; color:var(--muted); }
.engagement-type-badge {
  display:inline-flex; margin-left:5px; padding:5px 9px;
  border-radius:999px; color:var(--plum-800); background:var(--rose-100);
  font-size:12px; font-weight:900;
}
.engagement-empty { grid-column:1/-1; min-height:180px; }
.engagement-dialog { width:min(780px,calc(100% - 24px)); }
.inquiry-original {
  margin:15px 0 20px; padding:16px; border:1px solid var(--line);
  border-radius:13px; background:var(--ivory-100);
}
.inquiry-original p { white-space:pre-wrap; }
.inquiry-original small { color:var(--muted); }
.engagement-check {
  display:flex; min-height:54px; padding:12px 14px; align-items:center; gap:11px;
  border:1px solid var(--line); border-radius:13px; background:var(--ivory-100); cursor:pointer;
}
.engagement-check input { width:23px; height:23px; accent-color:var(--plum-800); }
.engagement-customer-search { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:9px; margin-top:7px; }
.customer-search-results { display:grid; gap:7px; margin-top:9px; max-height:220px; overflow-y:auto; }
.customer-result-button {
  display:grid; gap:3px; padding:11px 13px; border:1px solid var(--line);
  border-radius:11px; background:white; text-align:left; cursor:pointer;
}
.customer-result-button:hover,.customer-result-button:focus-visible { border-color:var(--plum-700); }
.customer-result-button span { color:var(--muted); font-size:13px; }
.selected-customer {
  display:grid; gap:3px; margin:13px 0; padding:13px 15px;
  border:1px solid #b9d6c8; border-radius:12px; background:var(--success-soft);
}
.selected-customer span { color:var(--muted); }
.repurchase-days {
  display:grid; min-width:80px; min-height:64px; place-items:center;
  border-radius:17px; color:var(--plum-900); background:var(--rose-100);
  font-size:20px; font-weight:950;
}
.campaign-admin-layout {
  display:grid; grid-template-columns:minmax(0,1fr) 390px; gap:18px; align-items:start;
}
.campaign-target-panel {
  position:sticky; top:155px; margin:0!important; padding:22px;
}
.campaign-target-panel h2 { margin:5px 0; font-size:26px; }
.campaign-target-panel > div:first-child p { color:var(--muted); }
.campaign-target-panel label { display:block; margin:16px 0 6px; font-weight:900; }
.campaign-target-panel select {
  width:100%; min-height:50px; padding:10px 38px 10px 12px;
  border:1.5px solid #cfc5c0; border-radius:12px; background:white; font-size:15px;
}
.campaign-target-panel .btn { margin-top:9px; }
.campaign-admin-content {
  margin-top:14px; padding:14px; border-radius:12px;
  background:var(--ivory-100); line-height:1.75;
}
.campaign-record.selected-campaign { border-color:var(--plum-700)!important; box-shadow:0 0 0 3px rgba(96,56,76,.09)!important; }
.campaign-target-list { display:grid; gap:8px; margin-top:17px; max-height:590px; overflow-y:auto; }
.campaign-target-item {
  display:grid; gap:8px; padding:12px; border:1px solid var(--line);
  border-radius:12px; background:var(--ivory-100);
}
.campaign-target-item > div { display:grid; gap:3px; }
.campaign-target-item small { color:var(--muted); }
.campaign-target-item select { min-height:44px; }
.status-active,.status-approved,.status-resolved,.status-completed,.status-converted,.status-responded {
  color:var(--success); background:var(--success-soft);
}
.status-new,.status-open,.status-pending,.status-draft {
  color:var(--info); background:var(--info-soft);
}
.status-in_progress,.status-scheduled,.status-contacted,.status-waiting,.status-waiting_customer,.status-waiting_manufacturer,.status-paused,.status-sent {
  color:var(--warning); background:var(--warning-soft);
}
.status-closed,.status-cancelled,.status-not_needed,.status-excluded,.status-failed {
  color:var(--muted); background:#ece8e8;
}

@media(max-width:1180px) {
  .engagement-summary { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .campaign-admin-layout { grid-template-columns:1fr; }
  .campaign-target-panel { position:static; }
  .campaign-target-list { max-height:none; }
}
@media(max-width:900px) {
  .engagement-tabbar { top:0; overflow-x:auto; grid-template-columns:repeat(4,minmax(180px,1fr)); }
  .engagement-card-list,.public-campaign-grid { grid-template-columns:1fr; }
  .engagement-filter { grid-template-columns:1fr; }
  .inquiry-type-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
  .campaign-hero { display:grid; min-height:0; padding:27px 20px; }
  .campaign-hero-icon { min-width:90px; min-height:90px; width:90px; font-size:38px; }
  .public-campaign-card { grid-template-columns:1fr; }
  .engagement-main { padding:22px 12px 55px; }
  .engagement-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .engagement-tabbar { padding:8px; gap:6px; }
  .engagement-tab { min-width:155px; font-size:14px; }
  .engagement-record-head,.inquiry-history-head { display:grid; }
  .priority-display,.inquiry-priority,.repurchase-days { width:100%; min-width:0; min-height:45px; }
  .inquiry-type-grid { grid-template-columns:1fr; }
  .inquiry-member-card { display:grid; }
  .engagement-customer-search { grid-template-columns:1fr; }
}


/* =========================================================
   STEP COSMETICS-9-R1：公開3画面の横幅・余白最適化
   ========================================================= */

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.inquiry-page {
  width: min(1120px, calc(100% - 32px));
}

.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.page-title-row > div {
  min-width: 0;
}

.page-title-row > .btn {
  flex: 0 0 auto;
}

.public-campaign-grid.single-item,
.engagement-card-list.single-item {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 650px) {
  .page-shell,
  .inquiry-page {
    width: min(100% - 24px, 1180px);
    padding-top: 22px;
  }

  .page-title-row {
    display: grid;
    gap: 16px;
  }

  .page-title-row > .btn {
    width: 100%;
  }
}


/* =========================================================
   STEP COSMETICS-10：営業前system-check
   ========================================================= */

.system-check-body {
  background:
    radial-gradient(circle at 8% 5%, rgba(215,179,187,.22), transparent 25rem),
    radial-gradient(circle at 94% 18%, rgba(234,216,183,.25), transparent 23rem),
    var(--ivory-100);
}

.system-check-main {
  width: min(1380px, calc(100% - 36px));
  margin: 0 auto;
  padding: 32px 0 72px;
}

.system-check-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(245,233,236,.88));
  box-shadow: var(--shadow);
}

.system-check-hero h1 {
  margin-bottom: 8px;
}

.system-check-hero p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.system-check-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
  min-width: 440px;
}

.system-check-overall {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(280px, auto);
  align-items: center;
  gap: 24px;
  margin: 0 0 22px !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.system-check-overall.is-success {
  border-color: #a9d1bf;
  box-shadow: 0 16px 44px rgba(36,99,79,.11);
}

.system-check-overall.is-failure {
  border-color: #e0aaaa;
  box-shadow: 0 16px 44px rgba(155,52,52,.10);
}

.system-check-overall-icon {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 24px;
  color: white;
  background: var(--muted);
  font-size: 42px;
  font-weight: 950;
}

.system-check-overall.is-success .system-check-overall-icon {
  background: var(--success);
}

.system-check-overall.is-failure .system-check-overall-icon {
  background: var(--danger);
}

.system-check-overall h2 {
  margin: 3px 0 7px;
}

.system-check-overall p {
  margin-bottom: 0;
  color: var(--muted);
}

.system-check-meta {
  display: grid;
  min-width: 300px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.system-check-meta > div {
  display: grid;
  grid-template-columns: 92px minmax(0,1fr);
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
}

.system-check-meta > div:last-child {
  border-bottom: 0;
}

.system-check-meta dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.system-check-meta dd {
  margin: 0;
  color: var(--plum-950);
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.system-check-section {
  margin-top: 32px;
}

.system-check-section-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.system-check-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

.system-check-group {
  margin: 0 !important;
  padding: 20px;
}

.system-check-group.is-success {
  border-color: #bfdbcf;
}

.system-check-group.is-failure {
  border-color: #e2b4b4;
}

.system-check-group-heading {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr) 40px;
  align-items: center;
  gap: 11px;
  margin-bottom: 15px;
}

.system-check-group-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: var(--rose-100);
  font-size: 25px;
}

.system-check-group-heading h3 {
  margin: 0;
  font-size: 19px;
}

.system-check-group-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.system-check-state {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--danger);
  font-size: 20px;
  font-weight: 950;
}

.system-check-group.is-success .system-check-state {
  background: var(--success);
}

.system-check-list {
  display: grid;
  gap: 7px;
}

.system-check-row {
  display: grid;
  grid-template-columns: 24px minmax(0,1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 7px 8px;
  border-radius: 9px;
  background: var(--ivory-100);
  font-size: 13px;
  font-weight: 800;
}

.system-check-row-icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--danger);
  font-size: 12px;
}

.system-check-row.is-success .system-check-row-icon {
  background: var(--success);
}

.system-check-row small {
  color: var(--muted);
  font-size: 11px;
}

.system-check-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 11px;
}

.system-check-page-card {
  display: grid;
  grid-template-columns: 46px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  box-shadow: 0 7px 22px rgba(63,39,52,.06);
}

.system-check-page-card.is-success {
  border-color: #bfdccd;
}

.system-check-page-card.is-failure {
  border-color: #e2b4b4;
}

.system-check-page-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 13px;
  color: white;
  background: var(--danger);
  font-size: 21px;
  font-weight: 950;
}

.system-check-page-card.is-success .system-check-page-icon {
  background: var(--success);
}

.system-check-page-card > div {
  display: grid;
  gap: 2px;
}

.system-check-page-card strong {
  color: var(--plum-950);
}

.system-check-page-card span,
.system-check-page-card small {
  color: var(--muted);
  font-size: 12px;
}

.system-check-page-card a {
  padding: 7px 10px;
  border: 1px solid var(--plum-700);
  border-radius: 9px;
  color: var(--plum-800);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.system-check-security-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.system-check-security-card {
  display: grid;
  grid-template-columns: 52px minmax(0,1fr);
  gap: 13px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}

.system-check-security-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: var(--danger);
  font-weight: 950;
}

.system-check-security-card.state-pass {
  border-color: #bfdccd;
}

.system-check-security-card.state-pass .system-check-security-icon {
  background: var(--success);
}

.system-check-security-card.state-safe {
  border-color: #bdd6e3;
}

.system-check-security-card.state-safe .system-check-security-icon {
  background: var(--info);
  font-size: 12px;
}

.system-check-security-card.state-warning {
  border-color: #ead6a9;
}

.system-check-security-card.state-warning .system-check-security-icon {
  background: var(--warning);
}

.system-check-security-card strong {
  color: var(--plum-950);
}

.system-check-security-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.system-check-links {
  display: grid;
  grid-template-columns: minmax(260px,.55fr) minmax(0,1.45fr);
  gap: 24px;
  align-items: start;
  margin-top: 34px !important;
}

.system-check-links p {
  color: var(--muted);
}

.system-check-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
}

.system-check-screen-link {
  display: flex;
  min-height: 52px;
  padding: 11px 13px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ivory-100);
  color: var(--plum-900);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.system-check-screen-link:hover,
.system-check-screen-link:focus-visible {
  border-color: var(--plum-700);
  background: var(--rose-100);
}

@media (max-width: 1200px) {
  .system-check-group-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .system-check-page-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media (max-width: 900px) {
  .system-check-hero {
    display: grid;
  }

  .system-check-actions {
    min-width: 0;
  }

  .system-check-overall {
    grid-template-columns: 74px minmax(0,1fr);
  }

  .system-check-overall-icon {
    width: 68px;
    height: 68px;
  }

  .system-check-meta {
    grid-column: 1 / -1;
    width: 100%;
  }

  .system-check-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px) {
  .system-check-main {
    width: min(100% - 24px, 1380px);
    padding-top: 22px;
  }

  .system-check-actions,
  .system-check-group-grid,
  .system-check-page-grid,
  .system-check-security-grid,
  .system-check-link-grid {
    grid-template-columns: 1fr;
  }

  .system-check-overall {
    grid-template-columns: 1fr;
  }

  .system-check-overall-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .system-check-meta > div {
    grid-template-columns: 80px minmax(0,1fr);
  }

  .system-check-page-card {
    grid-template-columns: 44px minmax(0,1fr);
  }

  .system-check-page-card a {
    grid-column: 1 / -1;
    text-align: center;
  }
}
