:root {
  --bg: #ececec;
  --text: #5b5b5b;
  --label: #525252;
  --line: #d0d0d0;
  --white: #ffffff;
  --required: #ff1414;
  --optional: #9dc9b0;
  --submit: #8ac4a3;
  --link: #3345d2;
}

* {
  box-sizing: border-box;
}

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

/* Keep top-page menu behavior/shape on contact page without word wrapping */
.contact-form-page .menu__wrapper {
  width: 760px;
}

.contact-form-page .menu__item {
  width: calc(50% - 56px);
  line-height: 1.05;
}

.contact-form-page .menu__item a {
  display: inline-block;
  white-space: nowrap;
}

.contact-form-page .menu__item:nth-child(2n) {
  margin-left: 56px;
}

.contact-page {
  min-height: 100dvh;
  padding: 150px 16px 40px;
}

.contact-wrap {
  width: min(720px, 100%);
  margin: 0 auto;
}

.contact-form {
  width: 100%;
}

.form-item {
  margin-bottom: 26px;
}

.label-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.label-row label {
  color: var(--label);
  font-size: 36px;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 26px;
  padding: 0 8px;
  color: var(--white);
  font-size: 0.85rem;
  line-height: 1;
  font-weight: 700;
}

.required {
  background: var(--required);
}

.optional {
  background: var(--optional);
}

input,
textarea {
  width: 100%;
  border: 2px solid var(--line);
  background: var(--bg);
  border-radius: 24px;
  color: #6a6a6a;
  font-size: 1.45rem;
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  font-family: inherit;
  padding: 16px 20px;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #979797;
}

input:focus,
textarea:focus {
  border-color: #9ab1a2;
  background: #f0f2ef;
}

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

.privacy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 32px;
  color: #5e5e5e;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 600;
}

.privacy-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  border-radius: 4px;
  padding: 0;
}

.privacy-row a {
  color: var(--link);
  text-decoration: none;
  font-weight: 700;
}

.submit-wrap {
  text-align: center;
}

.submit-btn {
  width: min(360px, 100%);
  border: 0;
  border-radius: 0;
  background: var(--submit);
  color: var(--white);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 18px 16px;
  cursor: pointer;
}

.submit-btn:hover {
  filter: brightness(0.97);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .contact-form-page .menu__wrapper {
    width: 100%;
  }

  .contact-form-page .menu__item {
    width: 100%;
    line-height: 1.15;
  }

  .contact-form-page .menu__item a {
    white-space: normal;
  }

  .contact-form-page .menu__item:nth-child(2n) {
    margin-left: 0;
  }

  .contact-page {
    padding: 98px 14px 28px;
  }

  .form-item {
    margin-bottom: 20px;
  }

  input,
  textarea {
    border-radius: 18px;
    padding: 14px 16px;
  }

  .badge {
    min-width: 40px;
    height: 24px;
    font-size: 0.78rem;
  }

  .privacy-row {
    align-items: flex-start;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .label-row {
    gap: 8px;
    margin-bottom: 8px;
  }

  .label-row label {
    font-size: 1.15rem;
  }

  .submit-btn {
    width: 100%;
    padding: 16px 12px;
  }
}
