:root {
  color-scheme: light;
  --page: #f5f7f1;
  --ink: #283126;
  --muted: #5f685a;
  --panel: #ffffff;
  --field: #fbfcf8;
  --line: #dbe3d4;
  --accent: #86b84f;
  --accent-dark: #4f742d;
  --accent-soft: #eaf4dc;
  --sun: #f4c342;
  --coral: #df6b5e;
  --danger: #a13f35;
  --focus: #416c24;
  --shadow: 0 22px 70px rgba(48, 68, 35, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 8%, rgba(244, 195, 66, 0.12), transparent 18rem),
    var(--page);
  font-family: "Zen Maru Gothic", "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.7;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
label {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: white;
  background: var(--accent-dark);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  gap: 32px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
  align-items: start;
}

.intro-panel {
  position: sticky;
  top: 24px;
  min-height: calc(100vh - 80px);
  padding: 32px;
  border: 1px solid #cbdcae;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), transparent 40%),
    var(--accent-soft);
  overflow: hidden;
}

.intro-panel::after {
  content: "";
  position: absolute;
  right: -72px;
  bottom: -72px;
  width: 230px;
  aspect-ratio: 1;
  border: 28px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
}

.brand-lockup,
.intro-copy,
.privacy-card,
.contact-note {
  position: relative;
  z-index: 1;
}

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

.brand-mark {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  place-items: center;
  border: 4px solid white;
  border-radius: 50%;
  background: white;
  box-shadow: 0 8px 24px rgba(79, 116, 45, 0.15);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark span {
  content: "";
  position: absolute;
  background: var(--accent);
}

.brand-mark::before {
  width: 8px;
  height: 34px;
  border-radius: 10px;
  transform: rotate(-5deg);
}

.brand-mark::after,
.brand-mark span {
  top: 18px;
  width: 22px;
  height: 13px;
  border-radius: 100% 0 100% 0;
}

.brand-mark::after {
  left: 13px;
  transform: rotate(20deg);
}

.brand-mark span {
  right: 13px;
  transform: scaleX(-1) rotate(20deg);
}

.brand-name,
.brand-subtitle,
.eyebrow,
.lead,
.privacy-card p,
.contact-note {
  margin: 0;
}

.brand-name {
  color: var(--accent-dark);
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.78rem;
}

.intro-copy {
  margin-top: 52px;
}

.eyebrow,
.privacy-kicker {
  color: var(--accent-dark);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 0;
  font-size: clamp(2.15rem, 4vw, 3.05rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
}

h1 span {
  color: var(--accent-dark);
}

.lead {
  max-width: 30rem;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 2;
}

.privacy-card {
  margin-top: 42px;
  padding: 20px;
  border: 1px solid rgba(79, 116, 45, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
}

.privacy-card h2 {
  margin: 4px 0 8px;
  font-size: 1rem;
}

.privacy-card p:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.8;
}

.contact-note {
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.72rem;
}

.contact-note a {
  color: var(--accent-dark);
  font-weight: 700;
  text-underline-offset: 3px;
}

.form-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 22px;
  background: #fbfcf8;
}

.form-heading::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 7px;
  background: var(--sun);
}

.form-heading p,
.form-heading h2,
.form-heading span {
  margin: 0;
}

.form-heading p {
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.form-heading h2 {
  margin-top: 4px;
  font-size: clamp(1.18rem, 3vw, 1.5rem);
  line-height: 1.5;
}

.form-heading > div:first-child > span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.77rem;
}

.progress-copy {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--muted);
}

.progress-copy strong {
  color: var(--accent-dark);
  font-size: 1.45rem;
}

.progressbar {
  height: 5px;
  background: #edf1e8;
}

.progressbar span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--sun));
  transition: width 280ms ease;
}

form {
  padding: 30px;
}

.form-step[hidden],
.conditional-field[hidden],
.complete-panel[hidden],
.schedule-next-step[hidden],
.form-actions[hidden],
button[hidden] {
  display: none !important;
}

.field-stack,
.form-step {
  display: grid;
  gap: 22px;
}

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

.field {
  display: block;
}

.field > span,
legend {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 0.89rem;
  font-weight: 700;
}

em {
  margin-left: 5px;
  color: var(--danger);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--field);
}

textarea {
  min-height: 120px;
  line-height: 1.8;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
.choice-grid label:has(input:focus-visible) {
  border-color: var(--focus);
  outline: 3px solid rgba(134, 184, 79, 0.3);
  outline-offset: 1px;
}

.field small,
.optional-note,
.pending-note {
  display: block;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}

.pending-note {
  color: #80692b;
}

.choice-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step > .choice-fieldset,
.form-step > .field,
.form-step > .notice-card,
.form-step > .consent-card {
  margin-top: 24px;
}

.form-step > :first-child {
  margin-top: 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.inquiry-grid {
  grid-template-columns: 1fr;
}

.choice-grid label {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 52px;
  align-items: center;
  gap: 11px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--field);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.choice-grid label:hover {
  border-color: #aac78d;
  transform: translateY(-1px);
}

.choice-grid label:has(input:checked) {
  border-color: var(--accent-dark);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-dark);
}

.choice-grid input,
.consent-check input,
.lifestyle-table input {
  width: 19px;
  height: 19px;
  min-height: 0;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--accent-dark);
}

.choice-grid span {
  min-width: 0;
  font-size: 0.84rem;
}

.inquiry-grid b,
.inquiry-grid small {
  display: block;
}

.inquiry-grid b {
  font-size: 0.92rem;
}

.inquiry-grid small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.weekday-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-grid label {
  justify-content: center;
  padding: 11px 6px;
}

.weekday-grid input {
  position: absolute;
  opacity: 0;
}

.conditional-field {
  margin-top: 14px;
  padding: 16px;
  border-left: 4px solid var(--sun);
  background: #fffaf0;
}

.notice-card,
.consent-card,
.confirm-intro {
  padding: 18px 20px;
  border: 1px solid #eddba2;
  border-radius: 9px;
  background: #fffaf0;
}

.notice-card.neutral {
  border-color: var(--line);
  background: #f7f9f4;
}

.notice-card strong,
.confirm-intro strong {
  font-size: 0.9rem;
}

.notice-card p,
.confirm-intro p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.published-events {
  margin: 10px 0 0;
  padding-left: 1.2rem;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.consent-card {
  padding: 24px;
  border-color: #b8d29a;
  background: #f2f8ea;
}

.consent-card h3 {
  margin: 5px 0 12px;
  font-size: 1.15rem;
}

.consent-card ul {
  margin: 0;
  padding-left: 1.3rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #a7c782;
  border-radius: 8px;
  background: white;
  cursor: pointer;
}

.consent-check span {
  font-size: 0.83rem;
  font-weight: 700;
}

.lifestyle-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lifestyle-head,
.lifestyle-table > fieldset {
  display: grid;
  grid-template-columns: minmax(170px, 1.5fr) repeat(3, minmax(90px, 1fr));
  align-items: stretch;
}

.lifestyle-head {
  background: #f1f5ec;
  font-size: 0.69rem;
  font-weight: 700;
  text-align: center;
}

.lifestyle-head span,
.lifestyle-table > fieldset > legend,
.lifestyle-table > fieldset > label {
  display: grid;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 10px;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lifestyle-head span:first-child,
.lifestyle-table > fieldset > legend {
  place-items: center start;
  text-align: left;
}

.lifestyle-table > fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.lifestyle-table > fieldset:last-child > * {
  border-bottom: 0;
}

.lifestyle-table > fieldset > label:last-child,
.lifestyle-head span:last-child {
  border-right: 0;
}

.lifestyle-table label {
  cursor: pointer;
}

.lifestyle-table label span {
  display: none;
}

.confirmation {
  display: grid;
  gap: 18px;
}

.confirmation-section {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}

.confirmation-section h3 {
  margin: 0;
  padding: 13px 16px;
  color: var(--accent-dark);
  background: #f2f6ee;
  font-size: 0.88rem;
}

.confirmation-section dl {
  margin: 0;
}

.confirmation-section dt,
.confirmation-section dd {
  margin: 0;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.confirmation-section dt {
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
}

.confirmation-section dd {
  padding-top: 2px;
  border-top: 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.primary-button,
.secondary-button {
  min-height: 49px;
  padding: 0 20px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  display: inline-flex;
  min-width: 158px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--accent-dark);
  color: white;
  background: var(--accent-dark);
  box-shadow: 0 9px 24px rgba(79, 116, 45, 0.18);
}

.primary-button:hover {
  background: #3f6424;
  transform: translateY(-1px);
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none !important;
}

.form-status {
  min-height: 1.7em;
  margin: 24px 0 -12px;
  padding: 0;
  font-size: 0.8rem;
}

.form-status[data-type="error"] {
  color: var(--danger);
}

.form-status[data-type="pending"] {
  color: var(--accent-dark);
}

.complete-panel {
  padding: 50px 20px;
  text-align: center;
}

.complete-mark {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--accent-dark);
  font-size: 1.8rem;
}

.complete-panel h2 {
  margin: 7px 0 10px;
  font-size: 1.5rem;
}

.complete-panel > p:not(.eyebrow) {
  color: var(--muted);
}

.receipt-note {
  margin-top: 20px;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.schedule-next-step {
  width: min(480px, 100%);
  margin: 28px auto 0;
  padding: 20px;
  border: 1px solid #b8d29a;
  border-radius: 10px;
  background: #f2f8ea;
}

.schedule-next-step strong {
  display: block;
  font-size: 1rem;
}

.schedule-next-step p {
  margin: 6px 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.primary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 7px;
  color: white;
  background: var(--accent-dark);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-link:hover {
  background: #3f6424;
}

.primary-link:focus-visible {
  outline: 3px solid rgba(134, 184, 79, 0.3);
  outline-offset: 3px;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
    width: min(760px, calc(100% - 28px));
    padding-top: 24px;
  }

  .intro-panel {
    position: relative;
    top: 0;
    min-height: 0;
  }

  .intro-copy {
    margin-top: 34px;
  }

  .privacy-card {
    margin-top: 28px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: 100%;
    gap: 14px;
    padding: 0;
  }

  .intro-panel,
  .form-panel {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .intro-panel {
    padding: 24px 20px 28px;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  h1 {
    font-size: 2rem;
  }

  .lead {
    font-size: 0.86rem;
  }

  .privacy-card {
    display: none;
  }

  .form-heading {
    padding: 21px 20px 18px;
  }

  .form-heading > div:first-child > span {
    display: none;
  }

  form {
    padding: 22px 20px 26px;
  }

  .choice-grid,
  .compact-grid,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .weekday-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lifestyle-head {
    display: none;
  }

  .lifestyle-table {
    display: grid;
    gap: 12px;
    border: 0;
    overflow: visible;
  }

  .lifestyle-table > fieldset {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .lifestyle-table > fieldset > legend,
  .lifestyle-table > fieldset > label {
    display: flex;
    min-height: 0;
    padding: 6px;
    place-items: initial;
    border: 0;
  }

  .lifestyle-table > fieldset > legend {
    width: 100%;
    padding-bottom: 8px;
    font-size: 0.83rem;
  }

  .lifestyle-table > fieldset > label {
    align-items: center;
    gap: 9px;
  }

  .lifestyle-table label span {
    display: inline;
    font-size: 0.75rem;
  }

  .form-actions {
    position: sticky;
    z-index: 4;
    bottom: 0;
    margin: 24px -20px -26px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
  }

  .primary-button {
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
