@import url(common.css);

/* ============================================================
   contact.css
   お問い合わせページ専用CSS
   ============================================================ */

/* ============================================================
   ヘッダー固定分
   ============================================================ */

main {
  padding-top: 70px;
}

/* ============================================================
   メインビジュアル
   ============================================================ */

.contact-visual {
  width: 100%;
  padding: 55px 20px 50px;
  background: #fffdf9;
  box-sizing: border-box;
}

.contact-visual-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
  box-sizing: border-box;
}

.contact-visual p {
  order: 1;

  margin: 0 0 10px;

  color: #eaa317;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  line-height: 1.5;
}

.contact-visual h2 {
  order: 2;

  margin: 0;

  color: #333;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.5;
}

.contact-visual h2::after {
  content: "";

  display: block;

  width: 48px;
  height: 2px;

  margin: 20px auto 0;

  background: #eaa317;
  border-radius: 10px;
}

/* ============================================================
   お問い合わせセクション
   ============================================================ */

.contact-section {
  width: 100%;
  padding: 0 20px 100px;

  background: #fffdf9;

  box-sizing: border-box;
}

.contact-container {
  width: 100%;
  max-width: 1000px;

  margin: 0 auto;

  box-sizing: border-box;
}

.contact-heading {
  margin: 0 0 45px;
  text-align: center;
}

.contact-heading h3 {
  margin: 0 0 20px;

  color: #333;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.6;
}

.contact-heading p {
  margin: 0;

  color: #555;
  font-size: 14px;
  line-height: 1.9;
}

.contact-heading p + p {
  margin-top: 5px;
}

/* ============================================================
   フォーム
   ============================================================ */

.contact-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-table {
  width: 100%;
  max-width: 100%;

  border-top: 1px solid #ddd;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;

  background: #fff;

  box-sizing: border-box;
}

.form-row {
  display: flex;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  margin: 0;

  border-bottom: 1px solid #ddd;

  box-sizing: border-box;
}

.form-row > label {
  display: flex;
  align-items: center;

  width: 30%;
  min-width: 30%;

  margin: 0;
  padding: 18px 20px;

  border-right: 1px solid #ddd;

  background: #fffaf0;

  color: #333;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;

  box-sizing: border-box;
}

.form-field {
  display: flex;
  align-items: center;

  flex: 1;
  min-width: 0;

  padding: 14px 20px;

  box-sizing: border-box;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="number"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  display: block;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  margin: 0;
  padding: 11px 13px;

  border: 1px solid #ddd;
  border-radius: 4px;

  background: #fff;

  color: #333;

  font-family: inherit;
  font-size: 15px;
  line-height: 1.6;

  box-sizing: border-box;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #eaa317;
}

/* ============================================================
   電話番号
   ============================================================ */

.tel-group {
  display: flex;
  align-items: center;

  width: 100%;
  max-width: 100%;
  min-width: 0;

  gap: 8px;

  box-sizing: border-box;
}

.tel-group input[type="tel"] {
  width: 90px;
  max-width: 90px;
  min-width: 0;

  flex: 0 1 90px;

  padding: 11px 8px;

  box-sizing: border-box;
}

.tel-group span {
  flex: 0 0 auto;

  color: #555;
  font-size: 15px;
}

/* ============================================================
   性別
   ============================================================ */

.gender-group {
  display: flex;
  align-items: center;

  gap: 20px;

  box-sizing: border-box;
}

.gender-option {
  display: flex;
  align-items: center;

  gap: 6px;

  width: auto;

  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.gender-option input[type="radio"] {
  width: auto;
  margin: 0;
}

/* ============================================================
   年齢
   ============================================================ */

.age-group {
  display: flex;
  align-items: center;

  gap: 8px;
}

.age-group input[type="number"] {
  width: 80px;
  max-width: 80px;
}

.age-group span {
  color: #555;
  font-size: 15px;
}

.age-group input[type="number"]::-webkit-inner-spin-button,
.age-group input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.age-group input[type="number"] {
  appearance: textfield;
}

/* ============================================================
   必須
   ============================================================ */

.required {
  display: inline-block;

  margin-left: 8px;
  padding: 2px 6px;

  border-radius: 3px;

  background: #eaa317;
  color: #fff;

  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;

  vertical-align: middle;
}

/* ============================================================
   プライバシー
   ============================================================ */

.privacy-box {
  margin: 40px 0 30px;
  padding: 25px;

  border: 1px solid #ddd;
  border-radius: 8px;

  background: #fff;

  box-sizing: border-box;
}

.privacy-box .privacy-title {
  margin: 0 0 15px;

  color: #333;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
}

.privacy-box p {
  margin: 0 0 15px;

  color: #333;
  font-size: 14px;
  line-height: 1.8;
}

.privacy-box p:last-child {
  margin-bottom: 0;
}

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

/* ============================================================
   送信ボタン
   ============================================================ */

.form-submit {
  margin-top: 30px;

  text-align: center;
}

.form-submit button {
  display: inline-block;

  min-width: 280px;

  padding: 15px 30px;

  border: 0;
  border-radius: 5px;

  background: #eaa317;
  color: #fff;

  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;

  cursor: pointer;

  transition: opacity 0.3s ease;

  box-sizing: border-box;
}

.form-submit button:hover {
  opacity: 0.8;
}

.form-submit button span {
  margin-left: 8px;
}

/* ============================================================
   確認画面ボタン
   ============================================================ */

.confirm-buttons {
  display: flex;

  justify-content: center;
  align-items: center;

  gap: 20px;

  flex-wrap: wrap;
}

.confirm-buttons button:first-child {
  background: #999;
}

.confirm-buttons button:first-child:hover {
  background: #777;
  opacity: 1;
}
/* ============================================================
   スマートフォン表示
   ============================================================ */

@media screen and (max-width: 768px) {
  /* ------------------------------------------------------------
     お問い合わせページ全体
     ------------------------------------------------------------ */

  .contact-visual {
    height: 180px;
  }

  .contact-section {
    padding: 50px 15px;
  }

  .contact-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .contact-heading {
    margin-bottom: 35px;
    font-size: 26px;
    text-align: center;
  }

  /* ------------------------------------------------------------
     フォーム
     ------------------------------------------------------------ */

  .contact-form {
    width: 100%;
  }

  .form-table {
    width: 100%;
  }

  .form-row {
    display: block;
    width: 100%;
  }

  .form-row > label {
    display: block;
    width: 100%;
    margin-bottom: 8px;
  }

  .form-field {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
  }

  /* ------------------------------------------------------------
     通常の入力欄
     ------------------------------------------------------------ */

  .form-field input[type="text"],
  .form-field input[type="email"],
  .form-field input[type="tel"],
  .form-field input[type="number"],
  .form-field select,
  .form-field textarea {
    box-sizing: border-box;
    max-width: 100%;
    font-size: 16px;
  }

  .form-field input[type="text"],
  .form-field input[type="email"],
  .form-field select {
    width: 100%;
    height: 42px;
    padding: 6px 10px;
  }

  .form-field textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
  }

  /* ------------------------------------------------------------
     電話番号
     ------------------------------------------------------------ */

  .form-field.tel-group {
    display: flex;
    align-items: center;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 10px 15px;

    gap: 6px;
    box-sizing: border-box;
  }

  .form-field.tel-group input[type="tel"] {
    flex: 1;
    min-width: 0;
    width: auto;

    height: 42px;
    padding: 6px 8px;

    box-sizing: border-box;
    font-size: 16px;
  }

  .form-field.tel-group span {
    flex-shrink: 0;
  }

  /* ------------------------------------------------------------
     性別
     ------------------------------------------------------------ */

  .form-field.gender-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;

    width: 100%;
    box-sizing: border-box;
  }

  .gender-option {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
  }

  /* ------------------------------------------------------------
     年齢
     ------------------------------------------------------------ */

  .form-field.age-group {
    display: flex;
    align-items: center;

    width: 100%;
    max-width: 100%;
    min-width: 0;

    margin: 0;
    padding: 10px 15px;

    box-sizing: border-box;
  }

  .form-field.age-group input[type="number"] {
    width: 90px;
    height: 42px;

    padding: 6px 8px;

    box-sizing: border-box;
    font-size: 16px;
  }

  .form-field.age-group span {
    margin-left: 6px;
  }

  /* ------------------------------------------------------------
     個人情報保護方針
     ------------------------------------------------------------ */

  .privacy-box {
    width: 100%;
    box-sizing: border-box;
    margin-top: 30px;
    padding: 20px 15px;
  }

  /* ------------------------------------------------------------
     確認・送信ボタン
     スマホでは縦並び
     ------------------------------------------------------------ */

  .form-submit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;

    width: 100%;
    margin-top: 30px;
  }

  .form-submit button,
  .form-submit input[type="submit"],
  .form-submit input[type="button"] {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 360px;
    min-height: 52px;

    padding: 12px 20px;

    box-sizing: border-box;

    /* ボタンの文字を改行させない */
    white-space: nowrap;
    word-break: keep-all;
  }

  /* ------------------------------------------------------------
     確認画面の戻る・送信ボタン
     ------------------------------------------------------------ */

  .confirm-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;

    width: 100%;
  }

  .confirm-buttons button,
  .confirm-buttons input[type="submit"],
  .confirm-buttons input[type="button"] {
    width: 100%;
    max-width: 360px;
    min-height: 52px;

    padding: 12px 20px;

    box-sizing: border-box;

    white-space: nowrap;
    word-break: keep-all;
  }
}
