:root {
  --ink: #29433f;
  --muted: #617773;
  --accent-dark: #466f62;
  --accent-soft: #eaf2ee;
  --paper: #fbfdfb;
  --surface: rgb(255 255 255 / 92%);
  --line: rgb(117 156 142 / 30%);
  --danger: #a64040;
  --danger-soft: #fff3f2;
  --shadow: 0 26px 80px rgb(55 91 82 / 11%);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}
button, input, textarea { font: inherit; }

.page-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: clamp(28px, 6vw, 72px) 20px;
  background: radial-gradient(circle at 50% 28%, rgb(255 255 255 / 98%) 0 18%, transparent 58%), linear-gradient(145deg, #f5faf7 0%, #fff 55%, #f2f7f4 100%);
}

.contact-card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(32px, 6vw, 64px) clamp(20px, 6vw, 68px);
  border: 1px solid var(--line);
  border-radius: clamp(20px, 4vw, 34px);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand-lockup { width: 100%; margin: 0 auto clamp(24px, 5vw, 42px); text-align: center; }
.brand-link { display: block; width: min(620px, 100%); margin: 0 auto; border-radius: 8px; }
.brand-link:focus-visible, .button:focus-visible { outline: 3px solid rgb(114 156 140 / 45%); outline-offset: 4px; }
.brand-logo { display: block; width: 100%; height: auto; max-height: 240px; object-fit: contain; }
.brand-english { margin: 14px auto 0; color: #17221f; font-family: Georgia, "Times New Roman", serif; font-size: clamp(.78rem, 2.5vw, 1.3rem); line-height: 1.35; letter-spacing: .01em; }
.heading-block { margin-bottom: clamp(28px, 5vw, 42px); text-align: center; }
.heading-block h1 {
  margin: 0;
  font-family: "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(1.65rem, 5vw, 2.35rem);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: 1.5;
}
.form-guidance { margin: 20px 0 0; color: var(--muted); font-size: clamp(.92rem, 2.6vw, 1rem); }
.contact-purpose { margin: 24px auto 0; padding: 20px 22px; border: 1px solid var(--line); border-left: 4px solid var(--accent-dark); border-radius: 14px; background: #f6faf8; text-align: left; }
.contact-purpose p { margin: 0; }
.contact-purpose-ja { color: var(--ink); font-size: clamp(.92rem, 2.5vw, 1rem); line-height: 1.9; }
.contact-purpose-en { margin-top: 14px !important; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: clamp(.82rem, 2.2vw, .92rem); line-height: 1.7; }
.eyebrow { margin: 0 0 8px; color: var(--accent-dark); font-family: Arial, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .24em; }
.contact-form, .field { display: grid; }
.contact-form { gap: 24px; }
.field { gap: 8px; }
.field label { font-weight: 700; letter-spacing: .02em; }
.field-label-en { color: var(--muted); font-size: .88em; font-weight: 500; letter-spacing: .01em; }
.required {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: .72rem;
  vertical-align: .12em;
}
.optional { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #f1f3f2; color: var(--muted); font-size: .72rem; font-weight: 700; vertical-align: .12em; }
.contact-method-guidance { padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); font-size: .9rem; }
.contact-method-guidance p, .field-note p { margin: 0; }
.contact-method-guidance p[lang="en"], .field-note p[lang="en"] { margin-top: 3px; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: .88em; line-height: 1.55; }
.contact-method-guidance-error { border: 1px solid rgb(166 64 64 / 35%); background: var(--danger-soft); color: var(--danger); }
.field-note { margin: -2px 0 2px; color: var(--muted); font-size: .86rem; line-height: 1.55; }
.choice-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice-field legend { margin-bottom: 8px; padding: 0; font-weight: 700; letter-spacing: .02em; }
.choice-list { display: grid; gap: 10px; }
.choice-option { display: flex; min-height: 64px; align-items: center; gap: 14px; padding: 11px 14px; border: 1px solid #aebfba; border-radius: 12px; background: #fff; cursor: pointer; }
.choice-option:hover { border-color: var(--accent-dark); background: #fbfdfc; }
.choice-option input[type="radio"] { flex: 0 0 22px; width: 22px; min-height: 22px; height: 22px; margin: 0; padding: 0; accent-color: var(--accent-dark); }
.choice-option:has(input:focus-visible) { border-color: var(--accent-dark); outline: 3px solid rgb(114 156 140 / 28%); outline-offset: 2px; }
.choice-option-text { line-height: 1.45; }
.choice-option-en { display: block; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: .82rem; font-weight: 400; }

input, textarea {
  width: 100%;
  border: 1px solid #aebfba;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
input { min-height: 50px; padding: 10px 14px; }
textarea { min-height: 180px; padding: 13px 14px; line-height: 1.75; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent-dark); outline: none; box-shadow: 0 0 0 4px rgb(114 156 140 / 18%); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-help, .field-error { margin: 0; font-size: .84rem; }
.field-help { color: var(--muted); }
.field-error { color: var(--danger); font-weight: 700; }

.error-summary { margin: 0 0 28px; padding: 18px 20px; border: 1px solid rgb(166 64 64 / 28%); border-radius: 14px; background: var(--danger-soft); color: #783333; }
.error-summary h2 { margin: 0 0 6px; font-size: 1rem; }
.error-summary ul { margin: 0; padding-left: 1.4em; font-size: .9rem; }

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--accent-dark); color: #fff; box-shadow: 0 10px 24px rgb(70 111 98 / 20%); }
.button-primary:hover { background: #385e53; }
.button-secondary { border-color: var(--line); background: #fff; color: var(--accent-dark); }
.button-full { width: 100%; margin-top: 8px; }

.confirm-list { margin: 0; border-top: 1px solid var(--line); }
.confirm-list > div { display: grid; grid-template-columns: minmax(130px, .32fr) 1fr; gap: 20px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.confirm-list dt { color: var(--accent-dark); font-weight: 700; }
.confirm-list dt [lang="en"] { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }
.confirm-list dd { min-width: 0; margin: 0; }
.break-word, .preserve-lines { overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-wrap; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; margin-top: 32px; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.completion-card { max-width: 690px; text-align: center; }
.completion-icon { width: 76px; height: 76px; margin: 0 auto 22px; color: var(--accent-dark); }
.completion-icon svg { display: block; width: 100%; height: 100%; fill: var(--accent-soft); }
.completion-icon circle { stroke: currentColor; stroke-width: 2; }
.completion-icon path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.completion-heading { margin-bottom: 24px; }
.completion-note { margin: 0 auto 34px; padding: 20px; border-radius: 16px; background: var(--accent-soft); }
.completion-note p { margin: 0; }
.completion-note .small-note { margin-top: 8px; color: var(--muted); font-size: .84rem; }
.completion-button { width: min(320px, 100%); }

.ambient { position: absolute; border-radius: 999px; pointer-events: none; }
.ambient-one { top: -16vw; right: -12vw; width: min(560px, 70vw); aspect-ratio: 1; background: rgb(177 208 195 / 20%); }
.ambient-two { bottom: -20vw; left: -16vw; width: min(620px, 78vw); aspect-ratio: 1; background: rgb(221 231 208 / 29%); }

@media (max-width: 640px) {
  .page-shell { align-items: start; padding: 14px; }
  .contact-card { padding: 30px 18px 36px; border-radius: 20px; }
  .brand-lockup { margin-bottom: 24px; }
  .heading-block h1 { letter-spacing: .04em; }
  .contact-purpose { padding: 16px; }
  .confirm-list > div { grid-template-columns: 1fr; gap: 6px; padding: 18px 2px; }
  .confirm-actions { grid-template-columns: 1fr; }
  .confirm-actions .button-primary { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
