:root {
  --purple: #6a1f8a;
  --purple-dark: #53186d;
  --purple-light: #f3ebf8;
  --text: #222;
  --muted: #666;
  --border: #d9d9e0;
  --bg: #f4f4f8;
  --req: #6a1f8a;
  --opt: #777;
  --radius: 10px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 14px;
}
a { color: var(--purple); }
[hidden] { display: none !important; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner {
  max-width: 1040px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.logo { text-decoration: none; color: var(--text); display: inline-flex; align-items: center; }
.logo img { height: 26px; width: auto; display: block; }
.header-title { font-size: 12px; font-weight: 700; border-left: 1px solid var(--border); padding-left: 14px; }
.header-link { margin-left: auto; font-size: 12px; font-weight: 700; text-decoration: none; }

/* hero */
.container { max-width: 1040px; margin: 0 auto; padding: 0 16px 40px; }
.hero { padding: 24px 0 8px; }
.hero-lead { margin: 0; color: var(--purple); font-weight: 700; }
.hero h1 { margin: 6px 0; font-size: 28px; line-height: 1.3; }
.hero-sub { margin: 0; font-size: 13px; }

/* steps */
.steps { list-style: none; display: flex; align-items: center; gap: 8px; padding: 0; margin: 20px 0; }
.step {
  background: #e4e4ea; color: #777; border-radius: 999px;
  padding: 7px 16px; font-size: 12px; font-weight: 700; white-space: nowrap;
}
.step span { margin-right: 6px; }
.step.active { background: var(--purple); color: #fff; }
.step-line { flex: 1; height: 1px; background: #bbb; min-width: 12px; }

/* layout */
.layout { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 880px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .layout > .form-card { grid-column: 1; }
  .side { grid-column: 2; grid-row: 1 / span 3; }
}
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.form-card { padding: 22px 20px; }
.note { margin: 0 0 18px; }

/* form */
.section-title {
  font-size: 17px; margin: 24px 0 14px; padding-left: 10px;
  border-left: 4px solid var(--purple);
}
.section-title:first-of-type { margin-top: 0; }
.field { margin-bottom: 16px; }
.field > label, .field-label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.badge {
  display: inline-block; font-style: normal; font-size: 10px; font-weight: 700;
  color: #fff; border-radius: 4px; padding: 0 7px; margin-left: 6px; line-height: 18px;
  vertical-align: middle;
}
.badge.req { background: var(--req); }
.badge.opt { background: var(--opt); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 12px; font: inherit; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: var(--purple); }
textarea { resize: vertical; background: #fafafc; }
.hint { margin: 4px 0 8px; font-size: 12px; color: var(--muted); }
.error { margin: 4px 0 0; font-size: 12px; color: #c0262d; min-height: 0; }
.invalid { border-color: #c0262d !important; }
.radio-row { display: flex; gap: 24px; }
.radio, .check { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--purple); width: 16px; height: 16px; }
.check-grid { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 8px; justify-content: start; }
@media (max-width: 420px) { .check-grid { grid-template-columns: repeat(2, auto); } }
.tel-field { margin-top: 8px; }
.privacy { border-top: 1px solid var(--border); padding-top: 16px; margin: 20px 0 14px; }

/* buttons */
.btn-primary, .btn-secondary {
  display: block; width: 100%; border: 0; border-radius: 8px;
  padding: 13px 16px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-dark); }
.btn-secondary { background: #fff; color: var(--purple); border: 1px solid var(--purple); }
.btn-row { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 560px) { .btn-row { grid-template-columns: 1fr 1.4fr; } }
.submit-note { text-align: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }

/* confirm */
.confirm-list { margin: 0; }
.confirm-list dt { font-weight: 700; font-size: 12px; color: var(--muted); margin-top: 12px; }
.confirm-list dd { margin: 2px 0 0; padding-bottom: 8px; border-bottom: 1px solid #eee; white-space: pre-wrap; word-break: break-all; }

/* side */
.side { display: grid; gap: 16px; }
.side-card { padding: 18px 16px; }
.side-title { margin: 0 0 12px; font-size: 16px; padding-left: 10px; border-left: 4px solid var(--purple); }
.flow { list-style: none; padding: 0; margin: 0; }
.flow li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #eee; }
.flow li:last-child { border-bottom: 0; }
.flow strong { display: block; }
.flow p { margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.num {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--purple); color: #fff; font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
.fee-card { background: var(--purple-light); border-color: #dcc7ea; }
.fee-card p { margin: 6px 0; }
.fee-card .small { font-size: 12px; color: var(--muted); }
.fee-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; margin-bottom: 12px; }
.fee-table th { text-align: left; padding: 10px 12px; font-size: 12px; }
.fee-table td { text-align: right; padding: 10px 12px; color: var(--purple); font-size: 28px; font-weight: 800; }
.fee-table td small { font-size: 16px; }
.fee-table tr + tr { border-top: 1px solid #eee; }

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--border); }
.footer-inner {
  max-width: 1040px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 11px;
}
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo img { height: 20px; width: auto; display: block; }
.footer-company-logo { display: inline-flex; align-items: center; }
.footer-company-logo img { height: 20px; width: auto; display: block; }
.logo-placeholder {
  display: inline-block; padding: 2px 10px; border: 1px dashed var(--border);
  border-radius: 4px; color: var(--muted); font-size: 10px; letter-spacing: .08em;
}
.footer-privacy { margin-left: auto; }

/* =========================================
   STEP 3: 完了画面のスタイル（紫色テーマ）
   ========================================= */
.done-card {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.done-icon {
  width: 72px;
  height: 72px;
  background-color: var(--purple); /* 画像の紫色に変更 */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(106, 31, 138, 0.2); /* 紫に合わせた影 */
}

.done-icon svg {
  margin-top: 2px;
}

.done-title {
  font-size: 26px;
  font-weight: 800;
  color: #333;
  margin: 0 0 20px 0;
  letter-spacing: 0.02em;
}

.done-text {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin: 0 0 32px 0;
  font-weight: 500;
}

.done-btn {
  display: inline-block;
  background-color: var(--purple); /* 画像の紫色に変更 */
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 40px;
  border-radius: 8px;
  transition: background-color 0.2s, opacity 0.2s;
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.done-btn:hover {
  background-color: var(--purple-dark); /* ホバー時は少し濃い紫に */
  opacity: 0.9;
}