:root {
  color-scheme: light;
  font-family: "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", sans-serif;
  color: #17201c;
  background: #f2f5f3;
  --green: #245c46;
  --green-dark: #184232;
  --green-soft: #e5f0eb;
  --border: #cbd6d0;
  --muted: #607068;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 5%, rgba(94, 154, 124, 0.17), transparent 34rem),
    #f2f5f3;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.card {
  width: min(100%, 560px);
  padding: clamp(26px, 6vw, 46px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(28, 56, 44, 0.1);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--green);
  border-radius: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2rem);
  line-height: 1.25;
}

.intro {
  margin: 24px 0 28px;
  color: var(--muted);
  line-height: 1.75;
}

form {
  display: grid;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field-group {
  display: grid;
  gap: 10px;
}

.common-groups {
  min-width: 0;
  margin: 10px 0 2px;
  padding: 15px;
  border: 1px solid #aebdb5;
  border-radius: 12px;
}

.common-groups legend {
  padding: 0 6px;
  font-size: 0.9rem;
  font-weight: 700;
}

.field-help,
.empty-option {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.checkbox-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.checkbox-option {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  margin: 0;
  padding: 11px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.checkbox-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
}

.checkbox-option input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.checkbox-option span,
.checkbox-option strong,
.checkbox-option small {
  display: block;
  min-width: 0;
}

.checkbox-option strong {
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.checkbox-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

label {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 700;
}

select,
input,
button {
  width: 100%;
  min-height: 50px;
  border-radius: 10px;
  font: inherit;
}

select,
input {
  padding: 0 14px;
  color: #17201c;
  background: #fff;
  border: 1px solid #aebdb5;
}

input[readonly] {
  color: #405048;
  background: #f3f6f4;
}

select:focus,
input:focus,
button:focus-visible {
  outline: 3px solid rgba(36, 92, 70, 0.23);
  outline-offset: 2px;
}

button {
  margin-top: 16px;
  padding: 0 18px;
  border: 0;
  color: #fff;
  background: var(--green);
  font-weight: 800;
  cursor: pointer;
  transition: background 140ms ease, transform 140ms ease;
}

button:hover:not(:disabled) {
  background: var(--green-dark);
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.52;
}

.status {
  min-height: 1.5em;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.status.error {
  color: #a12a2a;
}

.note {
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--green-soft);
}

.note h2 {
  margin: 0 0 6px;
  font-size: 0.94rem;
}

.note p {
  margin: 0;
  color: #3d5148;
  font-size: 0.86rem;
  line-height: 1.65;
}

@media (max-width: 440px) {
  .page-shell {
    padding: 0;
    align-items: stretch;
  }

  .card {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .checkbox-list {
    grid-template-columns: 1fr;
  }
}
