:root {
  --green: #028760;
  --green-dark: #006b4b;
  --green-soft: #e7f5f0;
  --ink: #21332d;
  --muted: #65766f;
  --line: #d9e3df;
  --surface: #ffffff;
  --background: #f4f7f6;
  --danger: #b42318;
  --warning: #8a4b08;
  --shadow: 0 10px 28px rgba(17, 54, 42, .08);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.65;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  color: #fff;
  background: var(--green);
  box-shadow: 0 2px 10px rgba(0, 70, 48, .2);
}
.app-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  width: min(100% - 28px, 980px);
  min-height: 58px;
  margin: auto;
}
.app-header strong, .app-header small { display: block; line-height: 1.25; }
.app-header small { opacity: .78; font-size: 11px; }
.app-mark, .preview-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--green);
  background: #fff;
  border-radius: 10px;
  font-weight: 800;
}
.header-link { color: #fff; font-size: 13px; font-weight: 700; }

.page-shell {
  width: min(100% - 28px, 760px);
  margin: 0 auto;
  padding: 34px 0 110px;
}
.page-shell--admin { width: min(100% - 28px, 1060px); }
.hero { padding: 10px 2px 24px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(25px, 7vw, 38px); line-height: 1.3; }
.hero p { margin: 0; color: var(--muted); }
.eyebrow, .step-label {
  margin: 0 0 3px !important;
  color: var(--green) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
}

.panel {
  margin-bottom: 18px;
  padding: clamp(18px, 4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
}
.panel--soft { background: var(--green-soft); box-shadow: none; }
.panel h2 { margin: 0 0 18px; font-size: 21px; line-height: 1.4; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin-bottom: 15px; }

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 0 0 18px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.status-grid div { padding: 12px; background: #fff; }
.status-grid dt { color: var(--muted); font-size: 12px; }
.status-grid dd { margin: 1px 0 0; font-weight: 700; }
.notice { margin: 0; padding: 12px 14px; border-radius: 8px; background: #eef4ff; color: #254b87; font-weight: 700; }
.notice[data-tone="warning"] { color: var(--warning); background: #fff4e5; }
.notice[data-tone="danger"] { color: var(--danger); background: #fff0ef; }
.notice[data-tone="success"] { color: var(--green-dark); background: var(--green-soft); }

.steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.step-card { display: grid; grid-template-columns: 38px 1fr; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; }
.step-card h3 { margin: 0 0 3px; font-size: 17px; }
.step-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.step-number { display: grid; place-items: center; align-self: start; width: 34px; height: 34px; color: #fff; background: var(--green); border-radius: 50%; font-weight: 800; }

.button-row { display: flex; flex-wrap: wrap; gap: 8px; }
.button {
  min-height: 43px;
  padding: 9px 16px;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 9px;
  cursor: pointer;
  font-weight: 700;
}
.button:hover { background: var(--green-dark); }
.button:focus-visible { outline: 3px solid rgba(2, 135, 96, .25); outline-offset: 2px; }
.button:disabled { cursor: default; opacity: .62; }
.button--secondary { color: var(--green-dark); background: var(--green-soft); }
.button--quiet { min-height: 36px; padding: 6px 11px; color: var(--ink); background: #fff; border-color: var(--line); }
.button--block { width: 100%; }

.check-list { display: grid; gap: 8px; padding-left: 1.4em; }
.fine-print { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.app-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 15;
  display: flex;
  justify-content: center;
  gap: 44px;
  padding: 11px 12px calc(11px + env(safe-area-inset-bottom));
  color: #fff;
  background: #202b27;
}
.app-footer a { color: #fff; font-size: 13px; font-weight: 700; }

.guide-dialog { width: min(92vw, 500px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 80px rgba(0, 0, 0, .3); }
.guide-dialog::backdrop { background: rgba(12, 25, 21, .58); }
.guide-dialog form { position: relative; padding: 26px; }
.guide-dialog h2 { margin-top: 0; }
.dialog-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.guide-steps { padding-left: 1.4em; }
.guide-steps li { margin-bottom: 12px; }
.share-symbol { white-space: nowrap; font-weight: 800; }

.toast { position: fixed; z-index: 100; right: 16px; bottom: 82px; left: 16px; max-width: 560px; margin: auto; padding: 13px 16px; color: #fff; background: var(--green-dark); border-radius: 10px; box-shadow: var(--shadow); font-weight: 700; text-align: center; }
.toast[data-tone="error"] { background: var(--danger); }

.admin-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); gap: 18px; }
.field { display: block; margin-bottom: 18px; }
.field > span { display: block; margin-bottom: 5px; font-weight: 700; }
.field b { padding: 2px 5px; color: var(--danger); background: #fff0ef; border-radius: 4px; font-size: 10px; }
.field input, .field textarea { width: 100%; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #bccbc5; border-radius: 8px; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(2, 135, 96, .15); border-color: var(--green); }
.field small { display: block; margin-top: 3px; color: var(--muted); text-align: right; }
.field--short { max-width: 160px; }
.demo-badge { padding: 4px 9px; color: var(--warning); background: #fff4e5; border-radius: 99px; font-size: 11px; font-weight: 800; }

.phone-preview { min-height: 420px; padding: 28px 13px; color: #fff; background: linear-gradient(150deg, #275d4e, #0c2820 60%, #071712); border: 8px solid #1c211f; border-radius: 34px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.phone-preview__time { margin-bottom: 105px; text-align: center; font-size: 28px; font-weight: 300; }
.notification-preview { padding: 12px; color: #19201d; background: rgba(255, 255, 255, .93); border-radius: 15px; backdrop-filter: blur(10px); }
.notification-preview__head { display: grid; grid-template-columns: 23px 1fr auto; align-items: center; gap: 6px; margin-bottom: 7px; color: #69746f; font-size: 9px; }
.preview-icon { width: 23px; height: 23px; color: #fff; background: var(--green); border-radius: 6px; }
.notification-preview strong { display: block; font-size: 13px; }
.notification-preview p { margin: 1px 0 0; font-size: 12px; line-height: 1.4; }
.future-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.future-grid div { display: grid; padding: 13px; background: #fff; border-radius: 9px; }
.future-grid span { color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .admin-layout { grid-template-columns: 1fr; }
  .future-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .status-grid { grid-template-columns: 1fr; }
  .panel-heading { align-items: flex-start; }
  .step-card { grid-template-columns: 32px 1fr; padding: 14px; }
  .step-number { width: 30px; height: 30px; }
  .button { width: 100%; }
  .panel-heading .button, .dialog-close { width: auto; }
  .future-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
