@charset "UTF-8";

/* ============================================
   お問い合わせページ（デザイントークンは global.css）
   ============================================ */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--c-blue-bg);
}

[hidden] {
  display: none !important;
}

/* ---------- Header ---------- */
.page-header {
  background: var(--c-white);
  box-shadow: 0 2px 12px rgba(38, 65, 199, 0.08);
}

.page-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

.page-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-header__back {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-blue);
  white-space: nowrap;
}

.page-header__back:hover,
.page-footer a:hover,
.agree a:hover {
  text-decoration: underline;
}

/* ---------- Main ---------- */
.contact {
  flex: 1;
  padding: 64px 0 96px;
  background-image: linear-gradient(var(--c-blue-band), var(--c-blue-bg));
  background-repeat: no-repeat;
  background-size: 100% 190px;
}

.contact__lead {
  margin-top: 24px;
  text-align: center;
  font-size: 16px;
  line-height: 1.9;
}

.card {
  max-width: 760px;
  margin: 40px auto 0;
  padding: 48px 56px 56px;
  background: var(--c-white);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(38, 65, 199, 0.1);
}

/* ---------- Form ---------- */
.form__alert {
  margin-bottom: 32px;
  padding: 14px 18px;
  border: 1px solid #e0245e;
  border-radius: 8px;
  background: #fff1f5;
  color: #b3123f;
  font-size: 15px;
  font-weight: 700;
}

/* ボット対策の入力欄は画面外へ */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--c-gray);
  color: var(--c-dimgray);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.badge--required {
  background: #e0245e;
  color: var(--c-white);
}

.input {
  display: block;
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #c9d3e3;
  border-radius: 8px;
  background: var(--c-white);
  color: var(--c-black);
  font: inherit;
  font-size: 16px;
  line-height: 1.6;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input--short {
  max-width: 320px;
}

textarea.input {
  resize: vertical;
  min-height: 160px;
}

.input::placeholder {
  color: #a3acba;
}

.input:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(43, 138, 242, 0.25);
}

.input[aria-invalid="true"] {
  border-color: #e0245e;
  background: #fff8fa;
}

.field__error {
  margin-top: 8px;
  color: #b3123f;
  font-size: 14px;
  font-weight: 700;
}

/* お問い合わせ種別 */
.type-choice {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.type-choice__item {
  position: relative;
  cursor: pointer;
}

.type-choice__item input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.type-choice__item span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding-inline: 8px;
  border: 2px solid #c9d3e3;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.type-choice__item input:checked + span {
  border-color: var(--c-blue);
  background: var(--c-blue-bg);
  color: var(--c-blue);
}

.type-choice__item input:focus-visible + span {
  outline: 3px solid var(--c-blue);
  outline-offset: 3px;
}

/* 同意チェック */
.field--agree {
  margin-top: 36px;
  text-align: center;
}

.agree {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  cursor: pointer;
}

.agree input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--c-blue);
}

.agree a {
  color: var(--c-blue);
  text-decoration: underline;
}

.form__submit {
  width: 320px;
  margin: 8px auto 0;
  border-radius: 4px;
  cursor: pointer;
}

.form__submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* ---------- Thanks ---------- */
.thanks {
  text-align: center;
  font-size: 16px;
  line-height: 1.9;
}

.thanks__title {
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 900;
  color: var(--c-blue);
}

.thanks__button {
  width: 300px;
  margin: 36px auto 0;
  font-size: 18px;
}

/* ---------- Footer ---------- */
.page-footer {
  padding: 28px 20px;
  background: var(--c-dark);
  color: var(--c-white);
  text-align: center;
  font-size: 13px;
}

.page-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 12px;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 750px) {
  .page-header__inner {
    height: 60px;
  }

  .page-logo img:last-child {
    width: 148px;
  }

  .contact {
    padding: 44px 0 64px;
  }

  .sec-head__title {
    font-size: 30px;
  }

  .contact__lead {
    font-size: 15px;
    text-align: left;
  }

  .contact__lead br,
  .thanks br {
    display: none;
  }

  .card {
    margin-top: 28px;
    padding: 28px 20px 36px;
    border-radius: 12px;
  }

  .type-choice {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .type-choice__item span {
    height: 50px;
  }

  .input--short {
    max-width: none;
  }

  .form__submit {
    width: 100%;
    font-size: 20px;
  }

  .thanks {
    text-align: left;
  }

  .thanks__title {
    font-size: 19px;
    text-align: center;
  }

  .thanks__button {
    width: 100%;
  }
}
