/* ========== Contact Hero ========== */
.contact-hero {
  position: relative;
  width: 100%;
  height: 350px;
  padding-top: 70px;
  overflow: hidden;
  background-color: #1c2330;
}

.contact-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.contact-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-hero__overlay {
  display: none;
}

.contact-hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
}

.contact-hero__title {
  font-family: "Source Han Serif JP", serif;
  font-size: 36px;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0 0 20px;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.contact-hero__sub {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.08em;
  margin: 0;
}

/* ========== Form Section ========== */
.contact-form-section {
  background: #eef0f4;
  padding: 80px 24px 100px;
}

.contact-form-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-form {
  background: #fdfdfd;
  padding: 60px 64px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: center;
  padding: 22px 0;
}

.contact-form__row--textarea {
  align-items: flex-start;
}

.contact-form__label {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #15181c;
  letter-spacing: 0.04em;
  margin: 0;
}

.contact-form__required {
  display: inline-block;
  margin-left: 2px;
  color: #d8424b;
}

/* テキスト入力 */
.contact-form__field input[type="text"],
.contact-form__field input[type="email"],
.contact-form__field input[type="tel"],
.contact-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8dce2;
  background: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: #15181c;
  letter-spacing: 0.03em;
  border-radius: 3px;
  transition: border-color 0.2s;
}

.contact-form__field input[type="text"]:focus,
.contact-form__field input[type="email"]:focus,
.contact-form__field input[type="tel"]:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: #136db6;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: #b5bac1;
}

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

/* ラジオボタン */
.contact-form__field {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.contact-form__row:not(:has(.contact-form__radio)) .contact-form__field {
  display: block;
}

.contact-form__radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: #15181c;
}

.contact-form__radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.contact-form__radio-mark {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
  border: 1.5px solid #15181c;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-form__radio input[type="radio"]:checked + .contact-form__radio-mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #15181c;
}

.contact-form__radio input[type="radio"]:focus-visible + .contact-form__radio-mark {
  outline: 2px solid #136db6;
  outline-offset: 2px;
}

/* 同意チェックボックス */
.contact-form__agree {
  margin-top: 32px;
  text-align: center;
}

.contact-form__checkbox {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: #15181c;
  letter-spacing: 0.03em;
}

.contact-form__privacy-link {
  color: #136db6;
  text-decoration: underline;
}

.contact-form__privacy-link:hover {
  opacity: 0.8;
}

.contact-form__checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.contact-form__checkbox-mark {
  position: relative;
  display: inline-flex;
  width: 18px;
  height: 18px;
  border: 1.5px solid #15181c;
  flex-shrink: 0;
}

.contact-form__checkbox input[type="checkbox"]:checked + .contact-form__checkbox-mark::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 5px;
  width: 6px;
  height: 11px;
  border: solid #15181c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 送信ボタン */
.contact-form__submit {
  margin-top: 28px;
  text-align: center;
}

.contact-form__submit-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 16px 32px;
  background: #15181c;
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.contact-form__submit-btn:hover {
  background: #2a3a64;
  transform: translateY(-1px);
}

/* ========== Responsive ========== */
@media screen and (max-width: 1024px) {
  .contact-hero {
    height: 220px;
  }

  .contact-hero__title {
    font-size: 36px;
  }

  .contact-form {
    padding: 48px 40px;
  }

  .contact-form__row {
    grid-template-columns: 200px 1fr;
    gap: 24px;
  }
}

@media screen and (max-width: 768px) {
  .contact-hero {
    height: 180px;
  }

  .contact-hero__title {
    font-size: 28px;
    letter-spacing: 0.15em;
  }

  .contact-hero__sub {
    font-size: 12px;
  }

  .contact-form-section {
    padding: 48px 16px 64px;
  }

  .contact-form {
    padding: 32px 20px;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .contact-form__field {
    gap: 20px;
  }

  .contact-form__submit-btn {
    min-width: 0;
    padding: 14px 50px;
  }
}

/* ========== Contact Confirm ========== */
.contact-confirm__lead {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  color: #4a5462;
  text-align: center;
  margin: 0 0 32px;
  line-height: 1.8;
}

.contact-confirm {
  margin: 0 0 40px;
  border-top: 1px solid #e3e6ec;
}

.contact-confirm__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border-bottom: 1px solid #e3e6ec;
}

.contact-confirm__label {
  background: #f5f6f8;
  padding: 18px 24px;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #1f2c4d;
  letter-spacing: 0.04em;
}

.contact-confirm__value {
  background: #fff;
  padding: 18px 24px;
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #2a2a2a;
  word-break: break-word;
}

.contact-confirm__value--pre {
  white-space: pre-wrap;
}

.contact-confirm__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-confirm__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 16px 32px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.contact-confirm__btn--back {
  background: #fff;
  color: #1f2c4d;
  border: 1px solid #c8ccd2;
}

.contact-confirm__btn--back:hover {
  background: #f5f6f8;
}

.contact-confirm__btn--submit {
  background: #1f2c4d;
  color: #fff;
  border: 1px solid #1f2c4d;
}

.contact-confirm__btn--submit:hover {
  opacity: 0.88;
}

@media screen and (max-width: 768px) {
  .contact-confirm__row {
    grid-template-columns: 1fr;
  }

  .contact-confirm__label {
    padding: 12px 16px;
    font-size: 13px;
  }

  .contact-confirm__value {
    padding: 14px 16px;
    font-size: 13px;
  }

  .contact-confirm__actions {
    flex-direction: column-reverse;
    align-items: center;
  }

  .contact-confirm__btn {
    width: 100%;
    max-width: 320px;
    min-width: 0;
  }
}

/* ========== Contact Complete ========== */
.contact-complete {
  text-align: center;
  padding: 40px 0 20px;
}

.contact-complete__icon {
  display: inline-flex;
  margin: 0 0 24px;
  color: #1f2c4d;
}

.contact-complete__title {
  font-family: "Noto Serif JP", "Source Han Serif JP", serif;
  font-size: 26px;
  font-weight: 600;
  color: #15181c;
  margin: 0 0 28px;
  letter-spacing: 0.05em;
}

.contact-complete__text {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 2;
  color: #4a5462;
  margin: 0 0 40px;
}

.contact-complete__br--sm {
  display: none;
}

.contact-complete__back {
  margin: 0;
}

.contact-complete__home-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 16px 32px;
  background: #1f2c4d;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-complete__home-btn:hover {
  opacity: 0.88;
}

@media screen and (max-width: 768px) {
  .contact-complete__title {
    font-size: 21px;
  }

  .contact-complete__text {
    font-size: 13px;
  }

  .contact-complete__br--sm {
    display: inline;
  }
}
