:root {
  --brand: #7D00BE;
  --brand-weak: #e8e0f1;
  --bg: #fdfaf6;
  --text: #2d2d2d;
  --ok: #177245;
  --warn: #db5a33;
  --line: #e6e6ea;
  --card: #ffffff;
  --muted: #666;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .06);
  --shadow-sm: 0 6px 16px rgba(0, 0, 0, .05);
  --focus-ring: 0 0 0 3px var(--brand-weak);
  --control-h: 44px;
}

html,
body {
  height: 100%;
  font-size: 16px;
  line-height: 1.6;
}

body {
  margin: 0;
  color: var(--text);
  background: white;
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", Roboto, Helvetica, Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  opacity: .8;
}

p {
  font-size: .9em;
}

.container {
  max-width: 960px;
  margin-inline: auto;
  padding: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .02em;
}

.brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--brand)
}

.hero-info {
  padding: 48px 20px 24px;
  text-align: center;
}

.hero-info h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3.4vw, 34px);
}

.hero-info p {
  margin: 0;
  color: var(--muted)
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card .contact-inner {
  padding: 22px;
}

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

.grid-2 .fullwidth {
  grid-column: 1 / -1;
}

@media (min-width:720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
    align-items: start
  }
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px
}

label {
  font-weight: 600
}

.req {
  font-size: .85em;
  font-weight: 700;
  color: var(--warn);
  margin-left: .4em
}

.opt {
  font-size: .85em;
  font-weight: 600;
  color: #888;
  margin-left: .4em
}

.hint {
  font-size: .85em;
  color: #777;
  min-height: 1.2em
}

.error {
  font-size: .9em;
  color: var(--warn);
  display: none;
  min-height: 1.2em
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea {
  appearance: none;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 16px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"] {
  height: var(--control-h);
  line-height: calc(var(--control-h) - 2px)
}

input[type="date"] {
  min-height: var(--control-h)
}

textarea {
  min-height: 140px;
  resize: vertical
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring)
}

.invalid {
  border-color: var(--warn) !important
}

.choices {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.chip input {
  accent-color: var(--brand)
}

.agree {
  display: flex;
  flex-direction: column;
  /* 縦並びに */
  gap: 8px;
  /* 説明文とチェックの間隔 */
  padding: 14px;
  border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--brand) 10%, transparent);
}

.agree-text {
  font-size: 0.95em;
  color: #333;
  line-height: 1.5;
}

.agree-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.agree-check input {
  accent-color: var(--brand);
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 48px;
  font-weight: 700;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn[disabled] {
  opacity: .6;
  cursor: not-allowed
}

.foot {
  color: #777;
  font-size: .9em;
  text-align: center;
  padding: 20px
}

.toast {
  position: fixed;
  inset: auto 16px 16px auto;
  background: #0f5132;
  color: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none
}

.toast.error {
  background: #842029
}

.grid-2 .fullwidth {
  grid-column: 1 / -1
}

.hidden {
  display: none !important;
}

.done-view {
  text-align: center;
  max-width: 600px;
  margin: 80px auto;
  padding: 20px;
}

.done-view h2 {
  margin-bottom: 16px;
  font-size: 1.6rem;
}

.done-view p {
  margin-bottom: 12px;
  line-height: 1.6;
}