@charset "utf-8";

/* お問い合わせ */
.title-section {
  --section-padding: 15px 0 65px;
  padding: var(--section-padding);
  background-color: var(--section-title-bg-color);
}

.form-wrap-section {
  padding: var(--products-list-title-section-padding);
  background-color: #fff;
}
.form-section {
  width: 100%;
  background-color: #f4f3ed;
  padding: 40px 0;
}
.form-section .form-section-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid #cfcfcf;
  padding-bottom: 100px;
}
.form-section-inner {
  position: relative;
  padding-block: 100px;
  padding-inline: calc(25 / 1080 * 100%);
}

.form-catch-text {
  width: 100%;
  font-size: clamp(1rem, 0.734rem + 1.1348vw, 1.5rem);
  font-weight: 400;
  color: #000;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 60px;
  padding-inline: clamp(0.625rem, -0.3723rem + 4.2553vw, 2.5rem);
}
.form-catch-text span {
  font-size: clamp(0.875rem, 0.742rem + 0.5674vw, 1.125rem);
  display: block;
  margin-top: 0.4em;
  letter-spacing: 0em;
}
.form-section-under-note {
  font-size: clamp(0.875rem, 0.742rem + 0.5674vw, 1.125rem);
  font-weight: 400;
  color: #000;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  padding-inline: clamp(0.625rem, -0.3723rem + 4.2553vw, 2.5rem);
}
.form-section-under-note span {
  font-size: 90%;
  font-weight: 300;
  display: block;
  margin-top: 0.4em;
  letter-spacing: 0em;
}

/* フォームセクションブロック */
.form-section-block {
  width: 100%;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
}

.form-section-block:last-child {
  margin-bottom: 0;
}
.form-section-inner-block {
  padding-inline: calc(100 / 1080 * 100%);
}
.form-section-inner-block .form-note {
  margin-bottom: 20px;
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
  padding-inline: calc(25 / 1080 * 100%);
}
.form-section-title {
  font-size: clamp(1rem, 0.867rem + 0.5674vw, 1.25rem);
  font-weight: 400;
  color: #0f4ba9;
  margin-bottom: 25px;
  padding-block: 1.3rem;
  border-block: 1px solid #cfcfcf;
  text-align: center;
}

.form-section-divider {
  border: none;
  border-top: 1px solid #cfcfcf;
  margin: 40px 0;
}

/* フォームフィールド */
.form-field {
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
}

.form-field:last-child {
  margin-bottom: 0;
}

.form-field label {
  display: block;
  font-size: 18px;
  font-weight: 400;
  color: #666;
  margin-bottom: 8px;
  width: 15%;
  min-width: 100px;
  letter-spacing: 0.1em;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  background-color: #f9f9f9;
  border: 1px solid #ababab;
  border-radius: 0;
  box-sizing: border-box;
  font-family: inherit;
  border-radius: 8px;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field textarea:focus {
  outline: none;
  border-color: #666;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #999;
}

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

/* 必須マーク */
.input-wrap,
.form-field-column-wrap {
  position: relative;
  flex: 1;
}
.input-wrap .required-mark,
.form-field-column-wrap .required-mark {
  display: block;
  font-size: 10px;
  color: #d32f2f;
  margin-top: 5px;
  position: absolute;
  left: 0;
  top: -22px;
}
.form-field-column-wrap .required-mark {
  display: block;
  font-size: 11px;
  color: #d32f2f;
  margin-top: 5px;
  position: absolute;
  left: 30px;
  top: initial;
  bottom: 4px;
}
/* 電話番号入力グループ */
.phone-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.phone-input-group input[type="tel"] {
  flex: 1;
  max-width: 120px;
}

.phone-separator {
  font-size: clamp(0.875rem, 0.742rem + 0.5674vw, 1.125rem);
  color: #000;
}

/* セレクトボックス */
.select-wrapper {
  position: relative;
}

.select-wrapper::after {
  content: "";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #666;
  pointer-events: none;
}

.form-field select {
  width: 100%;
  padding: 12px 40px 12px 15px;
  font-size: clamp(0.875rem, 0.742rem + 0.5674vw, 1.125rem);
  color: #666;
  background-color: #f9f9f9;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  box-sizing: border-box;
  font-family: inherit;
  cursor: pointer;
}

.form-field select:focus {
  outline: none;
  border-color: #666;
}

.form-field select option {
  padding: 10px;
}

/* チェックボックスグループ */
.checkbox-group {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.check .checkbox-group {
  display: block;
  width: 100%;
  max-width: 800px;
  padding-top: 1.5rem;
}
.check .checkbox-group span {
  line-height: 1.6;
}
.form-field .checkbox-label {
  width: 100%;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  color: #666;
}
.form-field-column-wrap span {
  display: block;
  margin-inline: auto;
}
.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 1px solid #cfcfcf;
  background-color: #f4f4f4;
  margin-right: 10px;
  flex-shrink: 0;
  position: relative;
  box-sizing: border-box;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background-color: #0f4ba9;
  border-color: #0f4ba9;
}
.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "";
  display: block;
  height: 20px;
  width: 45px;
  background-color: transparent;
  position: absolute;
  top: -2px;
  left: -5px;
  border-bottom: 4px solid #c01111;
  border-left: 4px solid #c01111;
  transform: rotate(-45deg);
}

.checkbox-text {
  flex: 1;
}
.form-field .form-field-column-wrap {
  padding-inline: 20px;
  margin: 30px auto 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
}
.form-field .form-details-wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align-last: left;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}
.check .form-field .form-details-wrap {
  max-width: 800px;
}
.form-field .form-details-wrap p {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}
/* フォームノート */
.form-note {
  font-size: clamp(0.75rem, 0.6475rem + 0.4372vw, 1rem);
  color: #666;
  line-height: 1.6;
  margin-bottom: 15px;
}

.form-note-small {
  font-size: clamp(0.6875rem, 0.6106rem + 0.3284vw, 0.875rem);
  color: #666;
  line-height: 1.6;
  margin-top: 10px;
}
.form-note {
  margin-bottom: 0;
}
/* ファイルアップロード */

.form-field .file-upload-wrapper {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: 100%;
  background-color: #f4f4f4;
  padding: 80px 20px 30px;
}
.file-select-btn {
  padding: 12px 30px;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #000;
  background-color: #f9f9f9;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.3s, border-color 0.3s;
}

.file-select-btn:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

.file-select-btn:active {
  background-color: #e0e0e0;
}

/* プライバシーセクション */
.privacy-section {
  margin-top: 30px;
}

.privacy-text {
  font-size: clamp(0.75rem, 0.6475rem + 0.4372vw, 1rem);
  color: #666;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: 0.03em;
}
.privacy-text a {
  color: red;
}
.privacy-checkbox {
  width: fit-content;
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-inline: auto;
}
.privacy-checkbox input[type="checkbox"]:checked + .checkbox-custom {
  background-color: red;
  border-color: red;
  position: relative;
}
.privacy-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
  content: "";
  display: block;
  height: 20px;
  width: 45px;
  background-color: transparent;
  position: absolute;
  top: -2px;
  left: -5px;
  border-bottom: 4px solid #000;
  border-left: 4px solid #000;
  transform: rotate(-45deg);
}

.check .privacy-text {
  text-align: center;
  font-size: 18px;
  font-weight: 400;
  color: #000;
  line-height: 1.6;
  margin-bottom: 25px;
  text-align: center;
  letter-spacing: 0.03em;
}
/* 送信ボタン */
.submit-btn {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 400;
  color: #fff;
  background-color: #1976d2;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.3s;
  text-align: center;
  letter-spacing: 0.1em;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.3s;
}
.validation .submit-btn {
  opacity: 0.8;
  pointer-events: auto;
}
.validation .submit-btn:hover {
  opacity: 1;
}
.submit-btn:hover {
  background-color: #1565c0;
}

.submit-btn:active {
  background-color: #0d47a1;
}

/* レスポンシブ対応 */
@media (max-width: 767px) {
  .phone-input-group {
    flex-wrap: nowrap;
  }

  .phone-input-group input[type="tel"] {
    max-width: 100%;
    flex: 1 1 calc(33.333% - 6px);
  }

  .form-section-inner {
    padding-inline: 20px;
  }

  .submit-btn {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .title-section {
    padding-bottom: 30px !important;
    background-color: var(--section-title-bg-color);
  }
  .form-section .form-section-inner {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #cfcfcf;
    padding-bottom: 100px;
  }
  .form-section-inner {
    position: relative;
    padding-block: 30px;
    padding-inline: calc(25 / 1080 * 100%);
  }
  .form-section-inner-block {
    padding-inline: 10px;
    margin-top: 1.8rem;
  }
  .form-field {
    margin-bottom: 2.5rem;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
  }
  .input-wrap {
    position: relative;
    flex: 1;
    width: 100%;
  }
  .input-wrap .required-mark {
    display: block;
    font-size: 11px;
    color: #d32f2f;
    margin-top: 5px;
    position: absolute;
    left: 100px;
    top: -28px;
  }
  .checkbox-group {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .form-field .checkbox-label {
    align-items: flex-start;
  }

  .checkbox-custom {
    width: 15px;
    height: 15px;
  }
  .form-note {
    margin-bottom: 0.3em;
  }
  .form-field .form-field-column-wrap {
    padding-inline: 10px;
  }
  .form-section-title {
    margin-bottom: 1.8rem;
  }
  .form-field .form-field-column-wrap {
    padding-inline: 20px;
    margin: 20px auto 0;
  }
  .form-section-block .form-section-title {
    margin-bottom: 0.8rem;
  }
  .form-field .file-upload-wrapper {
    padding: 40px 20px 30px;
  }
  .privacy-section {
    margin-top: 10px;
  }
  .privacy-text {
    text-align-last: left;
  }
  .privacy-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "";
    display: block;
    height: 10px;
    width: 20px;
    background-color: transparent;
    position: absolute;
    top: -2px;
    left: -2px;
    border-bottom: 4px solid #000;
    border-left: 4px solid #000;
    transform: rotate(-45deg);
  }
  .form-field .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "";
    display: block;
    height: 10px;
    width: 20px;
    background-color: transparent;
    position: absolute;
    top: -2px;
    left: -2px;
    border-bottom: 4px solid #c01111;
    border-left: 4px solid #c01111;
    transform: rotate(-45deg);
  }
  .submit-btn {
    max-width: 80%;
  }
  .form-section {
    width: 100%;
    background-color: #f4f3ed;
    padding: 40px 0;
  }
}

/* 確認 */
.error {
  font-size: 12px;
  color: red;
  display: none;
}
.validation .form-field input:invalid ~ .error {
  display: block;
}
.validation .phone-input-wrap:has(input:invalid) .error {
  display: block;
}
.validation .form-field-column-wrap textarea:invalid ~ .error {
  display: block;
  margin-left: 50px;
}
.send-btn-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 20px 15px;
}
.send-btn-wrap li {
  width: calc(1 / 2 * 100% - 50px) !important;
  max-width: 300px;
}
.send-btn-wrap .bt-send {
  width: 100%;
  background-color: #0f4ba9;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  opacity: 0.8;
  transition: opacity 0.3s;
}
.send-btn-wrap .bt-send:hover {
  opacity: 1;
}
.send-btn-wrap .bt-send::after {
  content: none;
}
.check .form-field .input-wrap span {
  display: inline-block;
  font-size: 16px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 8px;
}
@media (max-width: 767px) {
  .check .form-section-inner-block {
    padding-inline: 10px;
    margin-top: 0;
  }
  .check .form-section-divider {
    border: none;
    border-top: 1px solid #cfcfcf;
    margin: 10px 0;
  }
  .check .privacy-text {
    font-size: 16px;
    font-weight: 400;
    color: #666 !important;
  }
  .send-btn-wrap {
    flex-direction: column;
    flex-direction: column-reverse;
    gap: 10px;
  }
  .send-btn-wrap li {
    max-width: 100%;
    width: 100% !important;
  }
  .send-btn-wrap li:first-child a.bt-send {
    background-color: #3d76d2;
  }
}
.thanks .form-section .form-section-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  background-color: #fff;
  border: 1px solid #cfcfcf;
  padding-top: 50px;
  padding-bottom: 50px;
  text-align: center;
}
.thanks .form-section .form-section-inner p {
  font-size: clamp(0.875rem, 0.742rem + 0.5674vw, 1.125rem);
}

.file-cancel-btn {
  display: inline-block;
  padding: 8px 20px;
  font-size: 15px;
  color: #fff;
  background-color: #bbb;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
  vertical-align: middle;
  transition: background 0.2s;
  margin-top: 20px;
}
.file-cancel-btn:hover,
.file-cancel-btn:focus {
  background-color: #888;
  outline: none;
}
