:root {
  --bg: #f4f4f4;
  --text: #231815;
  --border: #c9c9c9;
  --box: #d9d9d9;
  --accent: #24110d;
  --required: #e60012;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

.wrap {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 48px 20px 96px;
}

.page-title {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 52px;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.page-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #8e8e8e;
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 76px;
}

.step {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #cfcfcf;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.step.active {
  background: var(--accent);
}

.step-arrow {
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
}

.field {
  margin-bottom: 34px;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
}

.required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 34px;
  padding: 0 10px;
  background: var(--required);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.text-input,
.confirm-box,
.radio-box {
  width: 100%;
  min-height: 62px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 16px 18px;
  font-size: 1rem;
  color: var(--text);
}

.text-input:focus {
  outline: 2px solid #8b8b8b;
  outline-offset: 2px;
}

.text-input {
  background: #f7f7f7 !important;
}

.text-input:focus {
  background: #f7f7f7 !important;
}

input.text-input:-webkit-autofill,
input.text-input:-webkit-autofill:hover,
input.text-input:-webkit-autofill:focus,
input.text-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #f7f7f7 inset !important;
  box-shadow: 0 0 0 1000px #f7f7f7 inset !important;
}

.radio-list {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  padding-top: 6px;
}

.radio-list label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  cursor: pointer;
}

.privacy-title {
  margin: 72px 0 12px;
  font-size: 1rem;
  font-weight: 700;
}

.privacy-box {
  border: 1px solid var(--border);
  background: var(--white);
  padding: 18px 20px;
  height: 220px;
  overflow-y: auto;
  font-size: 0.95rem;
}

.privacy-box h3 {
  margin: 0 0 1em;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.6;
}

.privacy-box h4 {
  margin: 1.6em 0 0.6em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.6;
}

.privacy-box h5 {
  margin: 1.2em 0 0.5em;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.6;
}

.privacy-box p {
  margin: 0 0 0.9em;
  line-height: 1.8;
}

.privacy-box ul,
.privacy-box ol {
  margin: 0 0 1em 1.4em;
  padding: 0;
}

.privacy-box li {
  margin: 0 0 0.4em;
  line-height: 1.7;
}

.privacy-box ol ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.privacy-box a {
  color: inherit;
  text-decoration: underline;
}

.privacy-contact {
  margin: 1.2em 0;
  padding: 1em;
  background: #f8f8f8;
  border: 1px solid var(--border);
}

.privacy-contact dl {
  margin: 0 0 1em;
}

.privacy-contact dt {
  font-weight: 700;
  margin-top: 0.5em;
}

.privacy-contact dd {
  margin: 0.2em 0 0.5em;
  line-height: 1.7;
}

.privacy-end,
.privacy-date {
  text-align: right;
}

@media screen and (max-width: 767px) {
  .privacy-box {
    padding: 15px;
    height: 220px;
    font-size: 0.9rem;
  }

  .privacy-box h3 {
    font-size: 1rem;
  }

  .privacy-box h4 {
    font-size: 0.95rem;
  }

  .privacy-box ul,
  .privacy-box ol {
    margin-left: 1.2em;
  }

  .privacy-contact {
    padding: 0.8em;
  }
}

.consent {
  margin: 34px 0 10px;
  display: flex;
  justify-content: center;
}

.consent label {
  display: inline-flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  cursor: pointer;
}

.consent input {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  flex: 0 0 auto;
}

.button-row {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
  margin-top: 56px;
}

.btn {
  min-width: 320px;
  height: 68px;
  border: 1px solid var(--border);
  background: #d0d0d0;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  position: relative;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-primary {
  background: #d0d0d0;
  border-color: #d0d0d0;
  color: var(--white);
}

.btn-primary.is-ready {
  background: var(--accent);
  border-color: var(--accent);
}

.error-list {
  display: none;
  margin: 0 0 28px;
  padding: 16px 20px;
  border: 1px solid #d64b4b;
  background: #fff2f2;
  color: #9b1c1c;
  font-size: 0.95rem;
}

.error-list.is-active {
  display: block;
}

.field-error {
  margin-top: 8px;
  color: #b42318;
  font-size: 0.9rem;
  display: none;
}

.field-error.is-active {
  display: block;
}

.confirm-box,
.radio-box {
  background: var(--box);
  border: none;
  display: flex;
  align-items: center;
}

.thanks {
  text-align: center;
  padding: 140px 20px 40px;
}

.thanks-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.3;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.thanks-line {
  width: 200px;
  height: 2px;
  margin: 28px auto 34px;
  background: #bdbdbd;
}

.thanks-text {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.notice-text {
  margin-top: 18px;
  font-size: 0.95rem;
}

.top-link-wrap {
  display: flex;
  justify-content: center;
  margin-top: 70px;
}

.top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 360px;
  height: 68px;
  background: #d0d0d0;
  color: var(--white);
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  position: relative;
}

.top-link::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 767px) {
  .wrap {
    padding: 32px 16px 72px;
  }

  .page-title {
    gap: 14px;
    margin-bottom: 32px;
    font-size: 1.8rem;
  }

  .steps {
    gap: 8px;
    margin-bottom: 44px;
  }

  .step {
    height: 48px;
    font-size: 0.9rem;
  }

  .step-arrow {
    font-size: 1.4rem;
  }

  .text-input,
  .confirm-box,
  .radio-box {
    min-height: 56px;
    padding: 14px;
  }

  .radio-list {
    gap: 22px;
  }

  .privacy-title {
    margin-top: 48px;
  }

  .privacy-box {
    height: 180px;
    padding: 14px;
  }

  .consent {
    justify-content: flex-start;
  }

  .button-row {
    gap: 16px;
  }

  .btn,
  .top-link {
    width: 100%;
    min-width: 0;
  }

  .thanks {
    padding-top: 80px;
  }

  .thanks-line {
    width: 140px;
  }
}
