:root {
  --ink: #0c2f36;
  --ink-2: #134049;
  --ink-line: rgba(231, 240, 238, 0.16);
  --paper: #f3f6f4;
  --white: #ffffff;
  --text: #16282c;
  --muted: #4a6065;
  --on-ink: #e8f0ee;
  --on-ink-muted: #a9c1be;
  --brass: #d4aa5c;
  --brass-deep: #8a6420;
  --mist: #cfdcd9;
  --short: #d4aa5c;
  --over: transparent;
  --err: #a3281e;
  --radius: 4px;
  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--ink);
  color: var(--on-ink);
  padding: 0 clamp(1.25rem, 5vw, 4.5rem) clamp(3rem, 8vw, 6rem);
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--ink-line);
}
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1.15; }
.wordmark-name { font-family: var(--display); font-size: 1.5rem; font-weight: 500; letter-spacing: 0; }
.wordmark-note { font-size: 0.8125rem; color: var(--on-ink-muted); }
.bar nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); }
.bar nav a { text-decoration: none; font-size: 0.9375rem; color: var(--on-ink); padding: 0.25rem 0; border-bottom: 1px solid transparent; }
.bar nav a:hover { border-bottom-color: var(--brass); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  padding-top: clamp(2.5rem, 7vw, 5.5rem);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.4rem); font-weight: 300; max-width: 15ch; }
.lede { margin-top: 1.5rem; font-size: 1.1875rem; color: var(--on-ink-muted); max-width: 34rem; }
.actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.75rem; }
.btn {
  display: inline-block;
  background: var(--brass);
  color: #1a1407;
  font-weight: 600;
  text-decoration: none;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius);
  border: 0;
  font-family: var(--body);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover { background: #e3bd72; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.textlink { color: var(--on-ink); font-size: 1rem; text-underline-offset: 4px; }

/* Staffing board */
.board {
  margin: 0;
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  padding: clamp(1rem, 2.5vw, 1.75rem);
}
.board figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.board-title { font-family: var(--display); font-size: 1.375rem; }
.board-tag { font-size: 0.8125rem; color: var(--on-ink-muted); }
.grid {
  display: grid;
  grid-template-columns: minmax(5.5rem, 7.5rem) repeat(7, 1fr);
  gap: 6px;
  align-items: center;
}
.g-day { font-size: 0.75rem; color: var(--on-ink-muted); text-align: center; }
.g-dept { font-size: 0.8125rem; color: var(--on-ink); line-height: 1.2; padding-right: 0.5rem; }
.c { display: block; height: 2.1rem; border-radius: 3px; background: #2b6b6b; font-style: normal; }
.c.short { background: var(--short); }
.c.over { background: transparent; box-shadow: inset 0 0 0 1.5px #5f8f8c; }
.grid .c { animation: settle 0.5s ease both; }
.grid .c:nth-of-type(8n+1) { animation-delay: 0.05s; }
.grid .c:nth-of-type(8n+2) { animation-delay: 0.1s; }
.grid .c:nth-of-type(8n+3) { animation-delay: 0.15s; }
.grid .c:nth-of-type(8n+4) { animation-delay: 0.2s; }
.grid .c:nth-of-type(8n+5) { animation-delay: 0.25s; }
.grid .c:nth-of-type(8n+6) { animation-delay: 0.3s; }
.grid .c:nth-of-type(8n+7) { animation-delay: 0.35s; }
@keyframes settle { from { opacity: 0; transform: scaleY(0.4); } to { opacity: 1; transform: none; } }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 1.25rem 0 0; padding: 0; font-size: 0.8125rem; color: var(--on-ink-muted); }
.legend li { display: flex; align-items: center; gap: 0.5rem; }
.legend .c { width: 1.1rem; height: 0.8rem; animation: none; }

/* ---------- Services ---------- */
.services {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.25rem, 5vw, 4.5rem);
}
@media (min-width: 900px) { .services { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } .services-intro { position: sticky; top: 2rem; align-self: start; } }
.services h2, .approach h2, .contact h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; }
.services-intro p { margin-top: 1.25rem; color: var(--muted); max-width: 30rem; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { padding: 1.75rem 0; border-top: 1px solid var(--mist); }
.service-list li:last-child { border-bottom: 1px solid var(--mist); }
.service-list h3 { font-size: 1.625rem; }
.service-list p { margin-top: 0.6rem; color: var(--muted); max-width: 38rem; }

/* ---------- Approach ---------- */
.approach {
  background: var(--ink);
  color: var(--on-ink);
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.25rem, 5vw, 4.5rem);
}
.approach-head { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 760px) { .approach-head { grid-template-columns: auto 1fr; gap: 3rem; } }
.kanji { font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif; font-size: clamp(4.5rem, 12vw, 9rem); line-height: 1; color: var(--brass); letter-spacing: 0.04em; }
.approach-head p { margin-top: 1rem; color: var(--on-ink-muted); max-width: 40rem; }
.steps {
  list-style: none;
  counter-reset: step;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.steps li { counter-increment: step; border-top: 1px solid var(--ink-line); padding-top: 1.25rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 1.125rem; color: var(--brass); display: block; margin-bottom: 0.75rem; }
.steps h3 { font-size: 1.625rem; }
.steps p { margin-top: 0.6rem; color: var(--on-ink-muted); font-size: 1rem; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(3.5rem, 9vw, 7rem) clamp(1.25rem, 5vw, 4.5rem);
}
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.contact-intro p { margin-top: 1.25rem; color: var(--muted); max-width: 28rem; }
.form-card { background: var(--white); border: 1px solid var(--mist); border-radius: 6px; padding: clamp(1.25rem, 3.5vw, 2.5rem); }
.form-note { color: var(--muted); }

form.inquiry { display: grid; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label, .field .legend-label { font-weight: 500; font-size: 0.9375rem; }
.req { color: var(--brass-deep); margin-inline: 0.15em; }
.help { font-size: 0.875rem; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"],
.field input[type="number"], .field input[type="date"], .field input[type="time"], .field input[type="datetime-local"],
.field input[type="password"], .field select, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #fbfcfb;
  border: 1px solid #9fb2af;
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--brass); outline-offset: 1px; border-color: var(--brass-deep); }
.field [aria-invalid="true"] { border-color: var(--err); }
.err { color: var(--err); font-size: 0.875rem; min-height: 0; }
.err:empty { display: none; }
.choice { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400 !important; }
.form-error { color: var(--err); font-weight: 500; }
.form-error:empty { display: none; }
.form-row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.thanks h3 { font-size: 1.875rem; }
.thanks p { margin-top: 0.8rem; color: var(--muted); }
.skeleton { display: grid; gap: 1rem; }
.skeleton i { display: block; height: 2.6rem; border-radius: var(--radius); background: #e7eeec; }

/* ---------- Footer ---------- */
.foot {
  background: var(--ink);
  color: var(--on-ink-muted);
  font-size: 0.875rem;
  padding: 2rem clamp(1.25rem, 5vw, 4.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
  align-items: baseline;
}
.foot .wordmark-name { color: var(--on-ink); font-size: 1.25rem; }