@charset "UTF-8";
/*
@include css3(transform, translate(-50%, -50%));
@include css3(transition, 0.3s ease-in-out);  
transform: rotate(0.03deg);
*/
.pageMain .in h1.form-title {
  line-height: 1.4;
}

#content .Form {
  max-width: 1000px;
  margin: 0 auto;
}
#content .Form .mail {
  margin-bottom: 40px;
}
#content .Form .mail .txt {
  font-size: 16px;
  line-height: 1.75;
}
.coating-menu-hidden {
  display: none !important;
}

@media screen and (max-width: 767px) {
  #content .Form .mail .txt {
    font-size: 14px;
  }
}
#content .Form .mail .tel-wrap {
  display: flex;
  gap: 15px;
}
#content .Form .mail .tel-wrap .tel-txt {
  display: flex;
  padding-bottom: 0;
  align-items: center;
  gap: 5px;
}
#content .Form .mail .tel-wrap .tel-txt img {
  width: 18px;
}
#content .Form .mail .tel-wrap .tel-txt .tel-num {
  font-size: 30px;
  transition: opacity 0.3s ease-in-out;
}
#content .Form .mail .tel-wrap .tel-time {
  font-size: 14px;
  font-weight: 400;
}
#content .Form .group {
  /* チェック時の装飾（色変更 or ✓マーク） */
}
#content .Form .group:not(:last-child) {
  margin-bottom: 30px;
  border-top: 1px solid #eee;
  padding-top: 30px;
}
#content .Form .group .head {
  display: flex;
  justify-content: space-between;
}
#content .Form .group .title-contactform7 {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 10px;
  display: block;
}
#content .Form .group .title-contactform7.for-namae-sub {
  font-weight: 400;
  font-size: 14px;
}
#content .Form .group .required {
  background: #dd1717;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  padding: 2px 5px;
  letter-spacing: 0;
  line-height: 1.5;
  margin-left: 10px;
  border-radius: 5px;
}
#content .Form .group .required.any {
  background: #d1d1d1;
}
#content .Form .group .data {
  margin-top: 10px;
}
#content .Form .group input[type="text"],
#content .Form .group input[type="email"],
#content .Form .group input[type="tel"],
#content .Form .group textarea {
  width: 100%;
  border: 1px solid #d1d1d1;
  padding: 10px;
  font-size: 16px;
  box-shadow: none;
  line-height: 1.5;
  border-radius: 5px;
}
#content .Form .group textarea {
  height: 180px;
}
#content .Form .group .wpcf7-list-item {
  margin: 0;
}
#content .Form .group .wpcf7-form-control.wpcf7-radio,
#content .Form .group .wpcf7-form-control.wpcf7-checkbox {
  display: flex;
  gap: 15px;
  flex-direction: column;
}
#content .Form .group .wpcf7-form-control.wpcf7-radio .wpcf7-list-item-label,
#content .Form .group .wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item-label {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  font-weight: 400;
}

#content .Form .group .wpcf7-form-control.wpcf7-checkbox .wpcf7-list-item-label::before {
  content: "";
  display: block;
  position: absolute;
  background-color: #fff;
  border-radius: 4px;
  border: 2px solid #d1d1d1;
  width: 18px;
  height: 18px;
  left: 0;
  top: 2px;
}
#content .Form .group .wpcf7-form-control.wpcf7-radio .wpcf7-list-item-label::before {
  content: "";
  display: block;
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  border: 2px solid #d1d1d1;
  width: 18px;
  height: 18px;
  left: 0;
  top: 2px;
}
#content .Form .group input[type="radio"],
#content .Form .group input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
#content .Form .group .wpcf7-list-item label {
  cursor: pointer;
}
#content .Form .group input[type="checkbox"]:checked + .wpcf7-list-item-label::after {
  content: "";
  display: block;
  position: absolute;
  border-bottom: 3px solid #1571da;
  border-left: 3px solid #1571da;
  height: 5px;
  width: 10px;
  transform: rotate(-45deg);
  top: 8px;
  left: 5px;
}
#content .Form .group input[type="radio"]:checked + .wpcf7-list-item-label::after {
  content: "";
  display: block;
  position: absolute;
  height: 5px;
  width: 10px;
  top: 8px;
  left: 6px;
  background: #1571de;
  border-radius: 50%;
  width: 10px;
  height: 10px;
}
/* 「未選択」項目を丸ごと非表示 */
.wpcf7-form-control-wrap[data-name="car-coating"] .wpcf7-list-item.first,
.wpcf7-form-control-wrap[data-name="loaner-car"] .wpcf7-list-item.first {
  display: none !important;
}
/* ===== コーティングメニュー グリッド ===== */
.coating-menu-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* PCは6列 */
  gap: 12px;
}

/* カード全体（label） */
.coating-menu-grid .wpcf7-list-item label.menu-card {
  display: block;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

/* 画像 */
.coating-menu-grid .wpcf7-list-item label.menu-card img {
  width: 100%;
  height: auto;
  margin-bottom: 5px;
}

/* テキスト */
.coating-menu-grid .wpcf7-list-item label.menu-card .wpcf7-list-item-label {
  font-size: 12px;
  font-weight: 400;
  text-align: center;
  display: block;
}

/* チェックされた時の枠（カードの外側に 4px のシャドウ） */
.coating-menu-grid .wpcf7-list-item:has(input:checked) label.menu-card {
  box-shadow: 0 0 0 4px #1571da;
}

/* このグリッドに限って、デフォルトの□と✓を消したい場合（必要なら） */
.coating-menu-grid .wpcf7-list-item-label::before,
.coating-menu-grid .wpcf7-list-item-label::after {
  content: none;
}

/* ===== SP 2列 & 並び替え ===== */
@media (max-width: 767px) {
  .coating-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* 左列（1〜5） */
  .coating-menu-grid .item-1 {
    order: 1;
  }
  .coating-menu-grid .item-2 {
    order: 3;
  }
  .coating-menu-grid .item-3 {
    order: 5;
  }
  .coating-menu-grid .item-4 {
    order: 7;
  }
  .coating-menu-grid .item-5 {
    order: 9;
  }

  /* 右列（7〜10→6 の順） */
  .coating-menu-grid .item-7 {
    order: 2;
  }
  .coating-menu-grid .item-8 {
    order: 4;
  }
  .coating-menu-grid .item-9 {
    order: 6;
  }
  .coating-menu-grid .item-10 {
    order: 8;
  }
  .coating-menu-grid .item-6 {
    order: 10;
  }
}
#content .Form .agree {
  font-size: 16px;
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.75;
  a {
    color: #1571da;
    transition: all 0.3s ease-out;
    background: url(../images/common/icon-link-out-blue.svg) no-repeat;
    padding-right: 12px;
    background-position: right center;
    margin-right: 6px;
  }
}
#content .Form .submit .confirm_button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.5;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  width: 250px;
  background: linear-gradient(180deg, #ff9600 0%, #ff4e00 100%);
  transition: all 0.3s ease-out;
  box-shadow: 0px 4px 6px 2px rgba(0, 0, 0, 0.2);
  height: 70px;
  transition: all 0.3s ease-out;
  &:hover {
    opacity: 0.7;
  }
}
#content .Form .submit .confirm_button:disabled {
  background: #cccccc;
  box-shadow: none;
  opacity: 0.6;
  cursor: not-allowed;
}

#content .recaptcha-notice {
  margin-top: 50px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.7;
  color: #666;
  font-weight: 400;
  margin-bottom: 200px;
  a {
    color: #1571da;
  }
}
/* エラーメッセージ */
.error-msg {
  color: #dc3232;
  font-size: 1em;
  font-weight: normal;
  display: block;
}

/* 確認画面 */
.confirm_area {
  max-width: 800px;
  margin: 0 auto;
  .mail_confirm {
    margin-bottom: 50px;
    .txt {
      font-size: 16px;
      line-height: 1.75;
    }
  }
  .group {
    &:not(:last-child) {
      margin-bottom: 50px;
    }
    .head {
      display: flex;
      align-items: baseline;
      gap: 20px;
      div {
        p {
          font-weight: 700;
          font-size: 16px;
          margin-bottom: 10px;
        }
        .required {
          background: #dd1717;
          color: #ffffff;
          font-size: 14px;
          font-weight: 500;
          padding: 2px 5px;
          letter-spacing: 0;
          line-height: 1.5;
          margin-left: 10px;
          border-radius: 5px;
          &.any {
            background: #d1d1d1;
          }
        }
      }
    }
    .data {
      span {
        font-size: 16px;
        line-height: 1.75;
        font-weight: 400;
      }
    }
  }
  .submit {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    .back_button {
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0;
      line-height: 1.5;
      color: #ffffff;
      border: none;
      border-radius: 5px;
      width: 250px;
      background: #cccccc;
      transition: all 0.3s ease-out;
      box-shadow: 0px 4px 6px 2px rgba(0, 0, 0, 0.2);
      height: 70px;
      &:hover {
        opacity: 0.7;
      }
    }
    .wpcf7-submit {
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 16px;
      font-weight: 700;
      letter-spacing: 0;
      line-height: 1.5;
      color: #ffffff;
      border: none;
      border-radius: 5px;
      width: 250px;
      background: linear-gradient(180deg, #ff9600 0%, #ff4e00 100%);
      transition: all 0.3s ease-out;
      box-shadow: 0px 4px 6px 2px rgba(0, 0, 0, 0.2);
      height: 70px;
      &:hover {
        opacity: 0.7;
      }
    }
    .wpcf7-spinner {
      display: none;
    }
  }
}

.wpcf7 form.sent .wpcf7-response-output {
  display: none !important;
}

/* 完了画面 */
.section-thanks {
  .thanks-txt {
    font-size: 16px;
    text-align: center;
  }
  .contact-txt {
    margin-top: 30px;
    text-align: center;
    .shop-name {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 5px;
      display: inline-block;
    }
    .tel-num {
      font-size: 30px;
      font-weight: 700;
      display: flex;
      justify-content: center;
      align-items: baseline;
      gap: 5px;
      transition: opacity 0.3s ease-in-out;
      img {
        width: 18px;
        height: auto;
        transition: opacity 0.3s ease-in-out;
      }
      &:hover {
        img {
          opacity: 0.8;
        }
      }
    }
    .tel-time {
      font-size: 14px;
    }
  }
}

@media screen and (max-width: 767px) {
  .pageMain .in h1.form-title {
    font-size: 30px;
  }
  #content .Form .mail .tel-wrap {
    flex-direction: column;
    gap: 5px;
  }
  #content .Form .group:not(:last-child) {
    margin-bottom: 30px;
  }
  #content .Form .group .head {
    div:nth-child(1) {
      width: calc(100% - 38px - 10px);
    }
    div:nth-child(2) {
      width: 38px;
    }
  }
  #content .Form .group .required {
    margin-left: 0;
  }
  #content .Form .agree {
    font-size: 14px;
    margin-bottom: 1rem;
  }
  #content .Form .submit .confirm_button {
    height: 60px;
  }
  #content .recaptcha-notice {
    margin-bottom: 100px;
  }
  .confirm_area {
    .group {
      &:not(:last-child) {
        margin-bottom: 30px;
      }
    }
    .submit {
      .back_button {
        height: 60px;
      }
      .wpcf7-submit {
        height: 60px;
      }
    }
  }
  /* 完了画面 */
  .section-thanks {
    .contact-txt {
      .shop-name {
        margin-bottom: 10px;
      }
      .tel-time {
        font-size: 12px;
      }
    }
  }
}

@media screen and (max-width: 520px) {
  .pageMain .in h1.form-title {
    font-size: 20px;
  }
}
