@charset "UTF-8";

.estimate-form {
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Noto Sans JP', sans-serif;
}
.estimate-form .custom-form {
  max-width: 900px;
  margin: 0 auto;
}
.estimate-form .form-group {
  margin-bottom: 40px;
}
.estimate-form .form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 15px;
}
@media only screen and (max-width: 767px) {
  .estimate-form {
    width: 96%;
    margin: 0 auto;
  }
}
.hidden-email {
  display: none !important;
}

/* =========================
     FORM設定
========================= */
.estimate-form .wpcf7-form {
  width: 90%;
  max-width: 900px;
  margin: 20px auto;
}
.estimate-form .wpcf7-form-control {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 8%;
}
.estimate-form .wpcf7-list-item {
  width: 46%;
  margin: 0;
}
.estimate-form .wpcf7-list-item label {
  display: block;
  text-align: center;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
  background: #fff;
}
.estimate-form .wpcf7-list-item input {
  display: none;
}
.estimate-form .wpcf7-list-item input:checked + span {
  background: #000;
  color: #fff;
}
.estimate-form .wpcf7-text,
.estimate-form .wpcf7-textarea {
  width: 100%;
  border: solid 1px #ccc;
  border-radius: 10px;
  padding: 10px;
}
.estimate-form .wpcf7-select {
  width: 50%;
  border: solid 1px #ccc;
  border-radius: 10px;
  padding: 10px 0;
}
.estimate-form .wpcf7-list-item input:checked + span {
  background: #0078d4;
  color: #fff;
}
@media only screen and (max-width: 767px) {
  .estimate-form .wpcf7-form-control {
    gap: 15px 6%;
  }
  .estimate-form .wpcf7-text,
  .estimate-form .wpcf7-textarea {
    font-size: 12px;
  }
}
@media only screen and (max-width: 480px) {
  .estimate-form .wpcf7-form-control {
    gap: 12px 5%;
  }
  .estimate-form .sp1col .wpcf7-list-item {
    width: 100%;
  }
}

/* テキスト入力 */
.estimate-form .custom-form input[type='text'],
.estimate-form .custom-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

/* 送信ボタン */
.estimate-form .submit-wrap {
  text-align: center;
  margin-top: 50px;
}
.estimate-form .custom-form input[type='submit'] {
  background: #000;
  color: #fff;
  padding: 15px 40px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.estimate-form .custom-form input[type='submit']:hover {
  background: #333;
}

/* Contact Form 7 ラジオを強制表示 */
.wpcf7 input[type='radio'] {
  display: inline-block !important;
  appearance: auto !important;
  -webkit-appearance: radio !important;
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

/* 追加 260313 */
.estimate-form h2 {
  font-size: 28px;
  color: #111;
  text-align: center;
  margin: 40px auto;
}
.estimate-form h3 {
  font-size: 16px;
  color: #111;
  text-align: left;
  background: #efefef;
  margin-bottom: 40px;
  padding: 10px 30px;
}
.estimate-form p {
  line-height: 1.5;
  margin-bottom: 40px;
}
.estimate-form label {
  display: block;
}
.estimate-form label br,
.label2 br {
  display: none !important;
}
label span.form_subtxt {
  display: block;
  margin-top: 10px;
}
/* ただし、明示的に改行したい場合（注釈など）のために、
   特定のクラス内や特定の構造では改行を許可する設定も可能です */
.estimate-form label span.form_subtxt br {
  display: inline; /* 注釈内の改行は維持したい場合はこちらを有効に */
}
.estimate-form .required {
  background: #f67373;
  color: #fff;
  font-size: 12px;
  border-radius: 5px;
  padding: 3px 10px;
  margin-right: 10px;
}
.estimate-form .exa {
  color: #55a694;
}
.estimate-form .any {
  background: #9e9e9e;
  color: #fff;
  font-size: 12px;
  border-radius: 5px;
  padding: 3px 10px;
  margin-right: 10px;
}
.estimate-form .w50 {
  width: 48%;
}

.estimate-form .step-content {
  display: none;
}
.estimate-form .step-content.active {
  display: block;
}
@media only screen and (max-width: 767px) {
  .estimate-form h2 {
    font-size: 22px;
    margin: 30px auto;
  }
  .estimate-form h3 {
    font-size: 14px;
    margin-bottom: 30px;
    padding: 8px 30px;
  }
  .estimate-form p {
    font-size: 12px;
    margin-bottom: 40px;
  }
  .estimate-form span.zip {
    display: block;
    font-size: 100%;
    padding-left: 0px;
    margin-top: 10px;
  }
}
@media only screen and (max-width: 480px) {
  .estimate-form h2 {
    font-size: 16px;
    margin: 20px auto;
  }
  .estimate-form h3 {
    font-size: 12px;
    margin-bottom: 20px;
    padding: 6px 25px;
  }
  .estimate-form p {
    font-size: 11px;
    margin-bottom: 30px;
  }
  .estimate-form .required {
    font-size: 11px;
  }
}

/* =========================
     ステップ矢印
========================= */
.estimate-form .form-step {
  width: 100%;
  max-width: 680px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  row-gap: 20px;
  margin: 0 auto 40px;
}
.estimate-form .step {
  width: 33.33%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #999;
  background: url('../images/form/arrow.png') no-repeat center/contain;
}
.estimate-form .step.active {
  font-weight: 600;
  color: #fff;
  background: url('../images/form/arrow-on.png') no-repeat center/contain;
}
.estimate-form .step p {
  margin: 20px 0;
}
@media only screen and (max-width: 767px) {
  .estimate-form .form-step {
    row-gap: 15px;
    margin: 0 auto 30px;
  }
  .estimate-form .step {
    font-size: 12px;
  }
}
@media only screen and (max-width: 480px) {
  .estimate-form .form-step {
    row-gap: 0;
  }
  .estimate-form .step {
    font-size: 10.5px;
  }
}

/* =========================
     ボタン
========================= */
.estimate-form .form-btn {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 3%;
  margin: 40px auto 20px;
}
.estimate-form .form-btn p {
  margin-bottom: 0;
}
.estimate-form .form-btn p .wpcf7-spinner {
  margin: 0;
}
.estimate-form .next-btn,
.estimate-form .back-btn,
.estimate-form input[type='submit'] {
  border: none;
  border-radius: 30px;
  padding: 13px 40px;
  font-size: 15px;
  cursor: pointer;
  transition: 0.2s;
}
.estimate-form .next-btn,
.estimate-form input[type='submit'] {
  background: #5fa594;
  color: #fff;
}
.estimate-form .next-btn:hover,
.estimate-form input[type='submit']:hover {
  background: #4a8d7e;
}
.estimate-form .back-btn {
  background: #bbb;
  color: #fff;
  margin-right: 10px;
}
.estimate-form .back-btn:hover {
  background: #9e9e9e;
}
@media only screen and (max-width: 767px) {
  .estimate-form .next-btn,
  .estimate-form .back-btn,
  .estimate-form input[type='submit'] {
    padding: 13px 30px;
    font-size: 14px;
  }
}
@media only screen and (max-width: 480px) {
  .estimate-form .next-btn,
  .estimate-form .back-btn,
  .estimate-form input[type='submit'] {
    padding: 12px 24px;
    font-size: 12px;
  }
}

/* =========================
     2列レイアウト
========================= */
.estimate-form .form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4%;
}
.estimate-form .form-2col p {
  margin-bottom: 20px;
}
.estimate-form .txt_box {
  width: 100%;
  border: solid 1px #ccc;
  border-radius: 10px;
  padding: 10px;
}
@media only screen and (max-width: 767px) {
}
@media only screen and (max-width: 480px) {
}

/* =========================
     入力フォーム
========================= */
.estimate-form .customer-form input {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}
.estimate-form .form_subtxt {
  font-size: 12px;
}
.estimate-form .label2 {
  display: block;
  margin-bottom: 20px !important;
}
.estimate-form .zip {
  font-size: 75%;
  padding-left: 40px;
}
.estimate-form .zip a {
  text-decoration: underline;
}
.estimate-form .mb20 {
  margin-bottom: 20px;
}
@media only screen and (max-width: 767px) {
  .estimate-form .form_subtxt {
    font-size: 11px;
  }
}
@media only screen and (max-width: 480px) {
  .estimate-form .form_subtxt {
    font-size: 10.5px;
  }
}

/* =========================
     確認画面
========================= */
.estimate-form .confirm-box {
  width: 100%;
  border: solid 1px #888;
  padding: 30px 3%;
}
.estimate-form .confirm-box .confirm-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2%;
  margin-bottom: 20px;
}
.estimate-form .confirm-box .confirm-row .confirm-label {
  width: 25%;
  background: #efefef;
}
.estimate-form .confirm-box .confirm-row .confirm-label p {
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  margin: 0;
  padding: 3px 10px;
}
.estimate-form .confirm-box .confirm-row .confirm-label div:nth-child(2) {
  width: 73%;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  padding: 3px 10px;
}
.wpcf7-response-output {
  display: none;
}
.page-id-66 footer {
  display: none;
}
@media only screen and (max-width: 767px) {
  .estimate-form .confirm-box .confirm-row {
    font-size: 12px;
  }
  .estimate-form .confirm-box .confirm-row .confirm-label p {
    font-size: 12px;
  }
  .estimate-form .confirm-box .confirm-row .confirm-label div:nth-child(2) {
    font-size: 12px;
  }
}
@media only screen and (max-width: 480px) {
  .estimate-form .confirm-box .confirm-row {
    row-gap: 10px;
    font-size: 11px;
  }
  .estimate-form .confirm-box .confirm-row .confirm-label {
    width: 100%;
  }
  .estimate-form .confirm-box .confirm-row .confirm-label p {
    font-size: 11px;
  }
  .estimate-form .confirm-box .confirm-row .confirm-label div:nth-child(2) {
    width: 100%;
    font-size: 11px;
  }
}

/* =========================
     エラー入力
========================= */
.estimate-form .input-error {
  border: 2px solid #e74c3c !important;
  background: #fff6f6;
}
.estimate-form .radio-error {
  border: 2px solid #e74c3c;
  padding: 10px;
  border-radius: 6px;
  background: #fff6f6;
}

/* =========================
     ZIP
========================= */
#zip-area2 {
  display: block !important;
}
.zip-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.zip-view {
  min-width: 200px;
  font-size: 14px;
}
.error-text {
  color: red;
}

/*260602赤字修正*/
/* プライバシーポリシーセクションのスタイル */
.privacy-policy-container {
  margin-bottom: 30px;
  padding: 0 15px;
}

.privacy-policy-box {
  text-align: center;
}

.privacy-policy-text {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  margin-bottom: 15px !important;
}

.privacy-policy-text a {
  color: #007bff;
  text-decoration: underline;
  font-weight: bold;
}

.privacy-policy-text a:hover {
  text-decoration: none;
}

.privacy-policy-check {
  display: flex;
  justify-content: center;
  align-items: center;
}

.estimate-form label.privacy-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  padding: 10px 20px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.privacy-label:hover {
  border-color: #007bff;
  background-color: #f0f7ff;
}

.privacy-label input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  cursor: pointer;
}

/* 未チェック時のエラー強調スタイル（JavaScriptと連動） */
.privacy-label.input-error {
  border-color: #ff4d4d;
  background-color: #fff5f5;
  color: #d00;
  animation: shake 0.5s;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .privacy-policy-box {
    padding: 15px;
  }
  .estimate-form label.privacy-label {
    font-size: 14px;
    padding: 8px 15px;
  }
}

.btn_mitei {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: -30px auto 0;
  line-height: 1;
  vertical-align: middle;
}
.btn_mitei button {
  display: block;
  padding: 6px 14px;
  font-size: 13px;
  background: #f0f0f0;
  border: 1px solid #aaa;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  vertical-align: middle;
  margin: 10px 0 0;
}
.btn_mitei button br {
  display: none !important;
}
.btn_mitei + p {
  margin-top: -30px;
}
