:root {
  color-scheme: light;
  --brand: #0069d6;
  --brand-hover: #0075ee;
  --brand-dark: #05192e;
  --bg: #f5faff;
  --card: #ffffff;
  --border: #dbe7f2;
  --text: #0b2540;
  --muted: #5c7086;
  --accent-soft: #eaf3fd;
  --accent-soft-2: #d9e9fa;
  --danger: #c0392b;
  --danger-bg: #fdecea;
  --danger-border: #f3c3bf;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 2px rgba(5, 25, 46, 0.04), 0 10px 30px -14px rgba(5, 25, 46, 0.18);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.site-header__logo {
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.site-header__logo svg { height: 24px; width: auto; display: block; }
.site-header__divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}
.site-header__tag {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: -0.01em;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}
.site-footer__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 2.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.site-footer__inner a { color: var(--brand); text-decoration: none; }
.site-footer__inner a:hover { text-decoration: underline; }

/* Layout */
.container {
  max-width: 820px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 3rem;
}

h1 {
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-dark);
  margin: 0 0 0.35rem;
}
h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin-top: 2.25rem;
}
p.lead { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.75rem; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

fieldset {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem 1.35rem;
  margin: 0 0 1.25rem;
  background: var(--card);
}

legend {
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 0.5rem;
  color: var(--brand-dark);
}

label { display: block; margin: 0.55rem 0 0.3rem; font-weight: 500; font-size: 0.92rem; }

input[type="text"], input[type="email"], input[type="password"], select, textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--accent-soft-2);
}

textarea { min-height: 5rem; resize: vertical; }

/* Day / slot picker */
.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.day-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  background: var(--bg);
}
.day-card__date {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-dark);
  margin: 0 0 0.65rem;
}

.slot-option { display: block; margin: 0 0 0.5rem; font-weight: normal; }
.slot-option:last-child { margin-bottom: 0; }
.slot-option input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.slot-option__chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.slot-option__time { font-weight: 600; color: var(--text); }
.slot-option__free { color: var(--muted); font-size: 0.8rem; }

.slot-option input:checked + .slot-option__chip {
  border-color: var(--brand);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--brand) inset;
}
.slot-option input:checked + .slot-option__chip .slot-option__time { color: var(--brand-dark); }
.slot-option input:checked + .slot-option__chip .slot-option__free { color: var(--brand); font-weight: 600; }

.slot-option input:disabled + .slot-option__chip {
  cursor: not-allowed;
  background: #f3f4f5;
  border-color: var(--border);
  color: var(--muted);
}
.slot-option input:focus-visible + .slot-option__chip {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.tag-full {
  display: inline-block;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  width: fit-content;
}

.radio-row { display: flex; align-items: flex-start; gap: 0.5rem; margin: 0.4rem 0; font-weight: normal; }
.radio-row input { width: auto; margin-top: 0.25rem; }

button, .button {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s;
}
button:hover, .button:hover { background: var(--brand-hover); }

.error-box {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
}

.notice-box {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  color: var(--brand-dark);
}

table.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data-table th, table.data-table td { border: 1px solid var(--border); padding: 0.5rem 0.6rem; text-align: left; }
table.data-table th { background: var(--accent-soft); color: var(--brand-dark); font-weight: 700; }
table.data-table tr:nth-child(even) td { background: #fbfdff; }

.hidden { display: none; }
.muted { color: var(--muted); }
