@charset "UTF-8";

/* ===================================
   共通設定
=================================== */
.logo {
  padding: 30.25px 50px;
  background-color: #E40055;
}
.logo h1 {
  max-width: 400px;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: #fff;
  color: #222;
  margin: 0;
  padding: 0;
  line-height: 1.7;
}

main.contact-wrapper,
main.thanks-wrapper {
  max-width: 900px;
  margin: 35px auto;
  padding: 50px 40px;
  background: #fff;
  border: 2px solid #e40055;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

/* ===================================
   見出し
=================================== */
main.contact-wrapper h2 {
  font-size: 2.6rem;
  font-weight: 700;
  text-align: center;
  color: #e40055;
  margin-bottom: 40px;
  border-bottom: 3px solid #e40055;
  padding-bottom: 10px;
  letter-spacing: 0.05em;
}

/* ===================================
   入力フォーム・確認画面共通
=================================== */
form {
  width: 100%;
}

.form-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  font-size: 1.5rem;
}

.form-table th,
.form-table td {
  border-bottom: 1px solid #ddd;
  padding: 16px 12px;
  vertical-align: top;
}

.form-table th {
  width: 30%;
  background-color: #f8f8f8;
  font-weight: 700;
  color: #333;
  text-align: center;
  vertical-align: middle;
}

.form-table td {
  color: #444;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table input[type="date"],
.form-table textarea,
.form-table select {
  width: 100%;
  padding: 10px 12px;
  font-size: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  transition: 0.2s;
}

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

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.4;
}

/* ===================================
   確認画面専用
=================================== */
.confirm-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 40px;
  font-size: 1.5rem;
}

.confirm-table th,
.confirm-table td {
  border-bottom: 1px solid #ddd;
  padding: 16px 12px;
  vertical-align: top;
}

.confirm-table th {
  width: 30%;
  background-color: #f8f8f8;
  font-weight: 700;
  color: #333;
}

.confirm-table td {
  color: #444;
  word-break: break-word;
  text-align: center;
  vertical-align: middle;
}

/* ===================================
   ボタンエリア
=================================== */
.form-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.form-buttons button,
.form-buttons input[type="submit"],
.form-buttons input[type="button"] {
  font-size: 1.6rem;
  font-weight: 700;
  padding: 14px 40px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

button.back-btn,
input.back-btn {
  background-color: #ddd;
  color: #333;
}

button.back-btn:hover,
input.back-btn:hover {
  background-color: #bbb;
}

button.submit-btn,
input.submit-btn {
  background-color: #e40055;
  color: #fff;
}

button.submit-btn:hover,
input.submit-btn:hover {
  background-color: #c00045;
}

/* ===================================
   完了ページ
=================================== */
main.thanks-wrapper h2 {
  font-size: 4.6rem;
  font-weight: 700;
  text-align: center;
  color: #e40055;
  margin-bottom: 40px;
  border-bottom: 3px solid #e40055;
  padding-bottom: 10px;
  letter-spacing: 0.05em;
}
.thanks-message {
  text-align: center;
  font-size: 5.8rem;
  color: #333;
  line-height: 1.8;
}

.thanks-message p {
  font-size: 2.4rem;
  text-align: center;
  line-height: 1.8;
  margin: 28px;
}

.thanks-message strong {
  color: #e40055;
  font-weight: 700;
}

.thanks-message a {
  display: inline-block;
  margin-top: 30px;
  padding: 20px 40px;
  font-size: 2.6rem;
  background-color: #e40055;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
}

.thanks-message a:hover {
  background-color: #c00045;
}

/* ===================================
   スマホ対応
=================================== */
@media screen and (max-width: 768px) {
  .logo {
    padding: 30.25px 50px 30.25px 55px;
    background-color: #E40055;
  }
  .logo h1 {
    max-width: 400px;
  }


  main.thanks-wrapper {
    height: 475px;
    margin: 30px 10px;
    padding: 10px;
  }


  main.contact-wrapper h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }

  .form-table th,
  .form-table td,
  .confirm-table th,
  .confirm-table td {
    display: block;
    width: 100%;
    padding: 10px;
    border-bottom: none;
  }

  .form-table th,
  .confirm-table th {
    background-color: transparent;
    color: #e40055;
    font-size: 1.4rem;
    margin-top: 20px;
  }

  .form-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .form-buttons button,
  .form-buttons input {
    width: 100%;
  }

  main.thanks-wrapper h2 {
    font-size: 3.7rem;
  }

  .thanks-message p {
    font-size: 19px;
  } 

  .thanks-message a {
      display: inline-block;
      margin-top: -10px;
      padding: 20px 40px;
      font-size: 1.6rem;
      background-color: #e40055;
      color: #fff;
      border-radius: 23px;
      text-decoration: none;
      transition: 0.3s;
  }
}
