/* ========== Contact Page ========== */
.contact-section {
  background-color: var(--color-dark-2);
  padding: 100px 60px;
}

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

/* ヘッダー */
.contact-section__heading {
  font-family: "Noto Serif JP", serif;
  font-size: 75px;
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
}

.contact-section__subheading {
  font-family: "Noto Serif JP", serif;
  font-size: 23px;
  color: #C8C1B3;
  margin-top: 16px;
  margin-bottom: 48px;
}

/* フォームボックス */
.contact-section__box {
  border: 3px solid #7D7D7D;
  padding: 80px 50px;
  background: var(--color-dark);
}

.contact-section__box-title {
  font-family: "Noto Serif JP", serif;
  font-size: 45px;
  color: var(--color-white);
  margin-bottom: 40px;
}

/* 送信完了・エラーメッセージ */
.contact-form__notice {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  padding: 16px 20px;
  margin-bottom: 36px;
  border-left: 4px solid;
}

.contact-form__notice--success {
  color: #a8d5b0;
  border-color: #a8d5b0;
  background: rgba(168, 213, 176, 0.08);
}

.contact-form__notice--error {
  color: #e8a0a0;
  border-color: #e8a0a0;
  background: rgba(232, 160, 160, 0.08);
}

/* フォーム行 */
.contact-form__row {
  margin-bottom: 50px;
}

.contact-form__label {
  font-family: "Noto Serif JP", serif;
  font-size: 25px;
  font-weight: 500;
  color: #C8C1B3;
  display: block;
  margin-bottom: 10px;
}

.contact-form__required {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  font-weight: 500;
  color: #FED88C;
  margin-left: 8px;
}

/* 入力フィールド共通 */
.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  width: 100%;
  background-color: #2f2f2f;
  border: 3px solid rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.contact-form__input:focus,
.contact-form__select:focus,
.contact-form__textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
}

/* セレクト */
.contact-form__select-wrap {
  position: relative;
}

.contact-form__select-wrap::after {
  content: '∨';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  pointer-events: none;
}

.contact-form__select option {
  background-color: #2e2e2e;
  color: var(--color-white);
}

/* テキストエリア */
.contact-form__textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.8;
}

/* 注記 */
.contact-form__note {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  color: #C8C1B3;
  margin-top: 12px;
}

/* 同意チェックボックス */
.contact-form__agree-wrap {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 20px;
  margin-bottom: 70px;
  background-color: #2f2f2f;
}

.contact-form__agree {
  display: flex;
  align-items: center;
  gap: 25px;
  cursor: pointer;
}

.contact-form__agree input[type="checkbox"] {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  cursor: pointer;
}

.contact-form__agree span {
  font-family: "Noto Serif JP", serif;
  font-size: 18px;
  color: #C8C1B3;
}

/* 送信ボタン */
.contact-form__submit-wrap {
  display: flex;
  justify-content: center;
}

.contact-form__submit {
  font-family: "Noto Serif JP", serif;
  font-size: 28px;
  font-weight: 500;
  color: #C8C1B3;
  background: #2f2f2f;
  border: 2px solid #7D7D7D;
  padding: 16px 80px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.contact-form__submit:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

/* ========== Tablet ========== */
@media (max-width: 1024px) {
  .contact-section {
    padding: 80px 40px;
  }

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

  .contact-section__heading {
    font-size: 52px;
  }
}

/* ========== Mobile ========== */
@media (max-width: 768px) {
  .contact-section {
    padding: 50px 20px;
  }

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

  .contact-section__subheading {
    font-size: 16px;
    margin-top: 10px;
    margin-bottom: 32px;
  }

  .contact-section__box {
    border-width: 2px;
    padding: 24px 16px 32px;
  }

  .contact-section__box-title {
    font-size: 28px;
    margin-bottom: 28px;
  }

  .contact-form__row {
    margin-bottom: 32px;
  }

  .contact-form__label {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .contact-form__required {
    font-size: 15px;
  }

  .contact-form__input,
  .contact-form__select,
  .contact-form__textarea {
    font-size: 16px; /* iOS zoom 防止 */
    padding: 12px 14px;
  }

  .contact-form__note {
    font-size: 14px;
    margin-top: 8px;
  }

  .contact-form__agree-wrap {
    padding: 14px 16px;
    margin-bottom: 40px;
  }

  .contact-form__agree {
    gap: 14px;
  }

  .contact-form__agree input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  .contact-form__agree span {
    font-size: 16px;
  }

  .contact-form__submit {
    font-size: 22px;
    padding: 14px 0;
    width: 100%;
  }
}
