/* サブページ：Contact（お問い合わせ） */
#contact {
  a {
    color: #1d1b14;
  }
  .contact-text {
    padding-bottom: 1rem;
  }
  .formtable {
    width: 100%;
    border-collapse: collapse;
  }
  .formtable th,
  .formtable td {
    border: 1px solid #707070;
  }
  .formtable th {
    background: #aaaaaa;
    font-weight: 500;
    text-align: left;
    padding: 2rem 1.2rem;
    width: 13rem;
  }
  .formtable td {
    background: #f2f2f2;
  }
  .formtable input[type="radio"] {
    margin: 0;
    width: 1rem !important;
    accent-color: #1d1b14;
  }
  .formtable .wpcf7-radio {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    padding: 1rem;
  }
  .formtable .wpcf7-radio .wpcf7-list-item {
    padding: 0 !important;
  }
  .formtable input,
  .formtable textarea {
    width: 100%;
    border: none;
    background: #f2f2f2;
    box-sizing: border-box;
    padding: 2rem 1rem;
    line-height: 1.6em;
    font-size: 1rem;
  }
  .formtable textarea {
    resize: vertical;
  }
  .formtable textarea {
    resize: vertical;
  }
  .wpcf7-list-item {
    margin: 0 !important;
    padding-top: 1.5rem;
  }
  input[type="checkbox"] {
    margin-left: 0.2rem;
    accent-color: #1d1b14;
    transform: scale(1.5);
  }
  .submit-btn {
    display: inline-block;
    position: relative;
    margin-top: 4rem;
    height: 59px;
    width: 252px;
  }
  .submit-btn::after {
    position: absolute;
    font-family: "Font Awesome 6 Free";
    content: "\f138";
    font-weight: 900;
    color: #fff;
    right: 5rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .submit-btn p {
    width: 100%;
    height: 100%;
  }
  input[type="submit"] {
    width: 100%;
    background: #1d1b14;
    color: #ffffff;
    border-radius: 100px;
    font-size: var(--font-size-m);
    cursor: pointer;
    text-decoration: none;
    height: 100%;
    border: none;
    padding-right: 2rem;
  }
  .wpcf7-spinner {
    display: none;
  }
  input[type="submit"]:disabled {
    background: #cccccc;
    cursor: not-allowed;
  }
  @media screen and (max-width: 1330px) {
    .formtable th {
      width: 11rem;
    }
  }
  @media screen and (max-width: 959px) {
    .wpcf7-form > p:last-of-type {
      display: flex;
      justify-content: center;
    }
    .formtable .wpcf7-radio {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      padding: 1rem;
    }
    .submit-btn {
      height: 100%;
      width: 100%;
      display: flex;
      justify-content: center;
    }
    .submit-btn p {
      height: 59px;
      width: 252px;
      position: relative;
    }
    .submit-btn::after {
      display: none;
    }
    .submit-btn p::after {
      position: absolute;
      font-family: "Font Awesome 6 Free";
      content: "\f138";
      font-weight: 900;
      color: #fff;
      right: 5rem;
      top: 50%;
      transform: translateY(-50%);
    }
  }
  @media screen and (max-width: 599px) {
    .formtable th,
    .formtable td{
      width: 100%;
      display: block;
      box-sizing: border-box;
    }
    .formtable td {
      border-left: 1px solid #707070;
      border-right: 1px solid #707070;
      border-top: none;
      border-bottom: none;
    }
    .formtable tr:last-child td{
      border-left: 1px solid #707070;
      border-right: 1px solid #707070;
      border-top: none;
      border-bottom: 1px solid #707070;
    } 
  }
}

/* サブページ：Contact-confirm（お問い合わせ確認） */
#contact-confirm {
  a {
    color: #1d1b14;
  }
  .contact-text {
    padding-bottom: 1rem;
  }
  .formtable {
    width: 100%;
    border-collapse: collapse;
  }
  .formtable th,
  .formtable td {
    border: 1px solid #707070;
  }
  .formtable th {
    background: #aaaaaa;
    font-weight: 500;
    text-align: left;
    padding: 2rem 1.5rem;
    width: 13rem;
  }
  .formtable td {
    padding: 2rem 1rem;
    line-height: 1.6em;
  }
  .contact-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
    margin-top: 4rem;
  }
  .submit-btn,
  .previous-btn {
    display: inline-block;
    position: relative;
    height: 59px;
    width: 252px;
  }
  .submit-btn::after,
  .previous-btn::after {
    position: absolute;
    font-family: "Font Awesome 6 Free";
    content: "\f138";
    font-weight: 900;
    color: #fff;
    right: 5rem;
    top: 50%;
    transform: translateY(-50%);
  }
  .submit-btn p,
  .previous-btn p {
    width: 100%;
    height: 100%;
  }
  input[type="submit"],
  input[type="button"] {
    width: 100%;
    background: #1d1b14;
    color: #ffffff;
    border-radius: 100px;
    font-size: var(--font-size-m);
    cursor: pointer;
    text-decoration: none;
    height: 100%;
    border: none;
    padding-right: 2rem;
  }
  input[type="button"] {
    background: #555555;
  }
  .wpcf7-spinner {
    display: none;
  }
  @media screen and (max-width: 1260px) {
    .formtable th {
      width: 11rem;
    }
  }
  @media screen and (max-width: 959px) {
    .wpcf7-form > p:last-of-type {
      display: flex;
      justify-content: center;
    }
    .contact-btn {
      justify-content: center;
      gap: 1rem;
    }
    .submit-btn::after {
      display: none;
    }
    .submit-btn p::after {
      position: absolute;
      font-family: "Font Awesome 6 Free";
      content: "\f138";
      font-weight: 900;
      color: #fff;
      right: 5rem;
      top: 50%;
      transform: translateY(-50%);
    }
  }
  @media screen and (max-width: 599px) {
    .formtable th,
    .formtable td{
      width: 100%;
      display: block;
      box-sizing: border-box;
    }
    .formtable td {
      border-left: 1px solid #707070;
      border-right: 1px solid #707070;
      border-top: none;
      border-bottom: none;
    }
    .formtable tr:last-child td{
      border-left: 1px solid #707070;
      border-right: 1px solid #707070;
      border-top: none;
      border-bottom: 1px solid #707070;
    }
    .contact-btn {
      flex-direction: column;
      gap: 1rem;
    }
    .submit-btn,
    .previous-btn {
      height: 65px;
      width: 100%;
      max-width: 300px;
    }
  }
}

/* サブページ：Contact-complet（お問い合わせ完了） */
#contact-complete {
  .cnts-title {
    padding-bottom: 3rem;
  }
  .cnts-title h2 {
    font-size: 2.05rem;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
    padding-bottom: 0.5rem;
    letter-spacing: 0.05em;
  }
  .cnts-main p {
    line-height: 2.18;
    padding-bottom: 4rem;
  }
  .fb {
    font-weight: bold;
  }
  @media screen and (max-width: 959px) {
    .contact-complete h2 {
      font-size: 4vw;
    }
    .contact-complete p {
      line-height: 2.25;
    }
    .btn {
      margin: 0 auto;
    }
  }
  @media screen and (max-width: 700px) {
    .cnts-main .cnts-text p {
      font-size: 0.9rem;
      line-height: 2;
    }
  }
  @media screen and (max-width: 599px) {
    .contact-complete h2 {
      font-size: 1.4rem;
    }
    .cnts-title {
      padding-bottom: 2rem;
    }
  }
}
