/* Contact Page
   ========================================================================== */

/* Contact Section */
.p-contact {
  padding: 20px 16px 40px;
}

.p-contact__inner {
  max-width: 343px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.p-contact__title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.p-contact__title-en {
  font-family: 'Italianno', serif;
  font-size: 40px;
  background: linear-gradient(91.71deg, #caa24f 2.96%, #e7bc67 56.43%, #f2cd85 83.16%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: lowercase;
  line-height: normal;
  margin: 0;
}

.p-contact__title-ja {
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  font-size: 28px;
  color: #333;
  line-height: normal;
  margin: 0;
  white-space: pre-wrap;
}

.p-contact__intro {
  font-family: 'Shippori Mincho', serif;
  font-weight: 600;
  font-size: 17px;
  color: #333;
  line-height: 1.7;
  text-align: center;
}

.p-contact__intro p {
  margin: 0;
}

/* Contact Form Section */
.p-contact-form {
  background-color: #fff;
  padding: 30px 0 0;
}

.p-contact-form__inner {
  max-width: 343px;
  margin: 0 auto;
}

/* Contact Form 7 スタイル */
.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 27px;
}

.wpcf7-form-control-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wpcf7-form-control-wrap label {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: normal;
  font-size: 12px;
  color: #5e6366;
  padding: 0 4px;
  margin: 0;
}

/* お問い合わせ種類のラベル */
.wpcf7-form-control-wrap label:has(+ .wpcf7-select),
.wpcf7-form-control-wrap:has(.wpcf7-select) label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  color: #333;
}

.wpcf7-form-control {
  width: 100%;
  border: 1px solid #5e6366;
  border-radius: 2px;
  padding: 8px 16px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 16px;
  color: #333;
  background-color: #fff;
  min-height: 52px;
  box-sizing: border-box;
}

.wpcf7-checkbox .wpcf7-form-control {
  border: none;
}

.wpcf7-form-control:focus {
  outline: none;
  border-color: #333;
}

.wpcf7-form-control::placeholder {
  color: #5e6366;
}

.wpcf7-select {
  appearance: none;
  border: 1px solid #333;
  border-radius: 2px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 24px;
  padding-right: 48px;
}

.wpcf7-select option:first-child {
  color: #a6a6a6;
}

.wpcf7-select option {
  color: #333;
}

.wpcf7-textarea {
  min-height: 163px;
  resize: vertical;
  padding: 16px 2px 2px 16px;
}

/* Contact Form 7 のチェックボックス（acceptance） */
.wpcf7-list-item {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.wpcf7-list-item label {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.wpcf7-list-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 1px solid #333;
  border-radius: 1px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  background-color: #fff;
}

.wpcf7-list-item input[type="checkbox"]:checked {
  background-color: #fff;
}

.wpcf7-list-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5.3px;
  top: 5.3px;
  width: 9.4px;
  height: 7.4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4L3.66667 6.66667L9 1.33333' stroke='%23d7217f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.wpcf7-list-item-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: normal;
  font-size: 14px;
  color: #333;
  line-height: normal;
}

.wpcf7-list-item-label a {
  text-decoration: underline;
  color: #333;
}

/* 旧スタイルとの互換性 */
.wpcf7-checkbox {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.wpcf7-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  border: 1px solid #333;
  border-radius: 1px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  background-color: #fff;
}

.wpcf7-checkbox input[type="checkbox"]:checked {
  background-color: #fff;
}

.wpcf7-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5.3px;
  top: 5.3px;
  width: 9.4px;
  height: 7.4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8' fill='none'%3E%3Cpath d='M1 4L3.66667 6.66667L9 1.33333' stroke='%23d7217f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.wpcf7-checkbox span {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: normal;
  font-size: 14px;
  color: #333;
  line-height: normal;
}

.wpcf7-checkbox span a {
  text-decoration: underline;
  color: #333;
}

/* 送信ボタンのラッパー */
.wpcf7-submit-btn {
  position: relative;
  display: flex;
  justify-content: center;
}

.wpcf7-submit {
  width: 280px;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 24px;
  border: 1px solid #4f4f4f;
  border-radius: 35px;
  background-color: #333;
  color: #fff;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  font-size: 16px;
  letter-spacing: 0.64px;
  line-height: 23px;
  cursor: pointer;
  box-shadow: 0px 3px 24.1px 0px rgba(255, 255, 255, 0.73);
  transition: all 0.3s;
}

.wpcf7-submit:hover {
  background-color: #4f4f4f;
}

/* 親要素に矢印を追加 */
.wpcf7-submit-btn::after {
  content: '';
  position: absolute;
  right: calc(50% - 140px + 24px);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-image: url('../images/arrow-forward.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
}

.wpcf7-spinner {
  display: none;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng,
.wpcf7-mail-sent-ok {
  margin: 0;
  padding: 12px;
  border-radius: 4px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background-color: #fee;
  color: #c33;
  border: 1px solid #c33;
}

.wpcf7-mail-sent-ok {
  background-color: #efe;
  color: #3c3;
  border: 1px solid #3c3;
}

/* Contact Notes Section */
.p-contact-notes {
  padding: 50px 20px 0;
}

.p-contact-notes__inner {
  max-width: fit-content;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 0 0 24px;
}

.p-contact-notes__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: bold;
  font-size: 16px;
  color: #333;
  line-height: normal;
  text-align: center;
  margin: 0;
  width: 100%;
}

.p-contact-notes__item {
  font-family: 'Roboto', 'Noto Sans', 'Noto Sans JP', sans-serif;
  font-weight: normal;
  font-size: 15px;
  color: #333;
  line-height: 1.334;
  margin: 0;
  width: 100%;
}

/* Phone Contact Section */
.p-contact-phone {
  border-top: 1px solid #c9c9c9;
}

.p-contact-phone__inner {
  max-width: 343px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}

.p-contact-phone__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: normal;
  font-size: 15px;
  color: #333;
  line-height: 1.334;
  margin: 0;
}

.p-contact-phone__number {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: normal;
  font-size: 24px;
  color: #333;
  line-height: normal;
  margin: 0;
}

.p-contact-phone__time {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: normal;
  font-size: 15px;
  color: #333;
  line-height: 1.334;
  margin: 0;
}

.p-contact-phone__note {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: normal;
  font-size: 10px;
  color: #000;
  line-height: normal;
  text-align: center;
  margin: 0;
}

/* Responsive: 768px and up */
@media (min-width: 768px) {
  .p-contact {
    padding: 40px 32px;
  }

  .p-contact__inner {
    max-width: 600px;
  }

  .p-contact__title-en {
    font-size: 40px;
  }

  .p-contact__title-ja {
    font-size: 28px;
  }

  .p-contact__intro {
    font-size: 16px;
  }

  .p-contact-form__inner {
    max-width: 600px;
  }

  .wpcf7-form-control-wrap label {
    font-size: 15px;
  }

  .wpcf7-form-control {
    font-size: 15px;
  }

  .wpcf7-select {
    font-size: 15px;
  }

  .wpcf7-textarea {
    font-size: 15px;
  }

  .wpcf7-list-item-label {
    font-size: 15px;
  }

  .wpcf7-submit {
    font-size: 18px;
    letter-spacing: 0.72px;
  }

  .p-contact-notes {
    padding: 50px 32px 0;
  }

  .p-contact-notes__inner {
    padding-bottom: 32px;
  }

  .p-contact-notes__title {
    font-size: 18px;
  }

  .p-contact-notes__item {
    font-size: 16px;
  }

  .p-contact-phone__inner {
    max-width: 600px;
  }

  .p-contact-phone__title {
    font-size: 16px;
  }

  .p-contact-phone__number {
    font-size: 28px;
  }

  .p-contact-phone__time {
    font-size: 16px;
  }

  .p-contact-phone__note {
    font-size: 11px;
  }
}

/* Responsive: 1024px and up */
@media (min-width: 1024px) {
  .p-contact {
    padding: 60px 48px;
  }

  .p-contact__inner {
    max-width: 800px;
  }

  .p-contact__title-en {
    font-size: 48px;
  }

  .p-contact__title-ja {
    font-size: 32px;
  }

  .p-contact__intro {
    font-size: 18px;
  }

  .p-contact-form__inner {
    max-width: 800px;
  }

  .wpcf7-form-control-wrap label {
    font-size: 16px;
  }

  .wpcf7-form-control {
    font-size: 16px;
  }

  .wpcf7-select {
    font-size: 16px;
  }

  .wpcf7-textarea {
    font-size: 16px;
  }

  .wpcf7-list-item-label {
    font-size: 16px;
  }

  .wpcf7-submit {
    font-size: 20px;
    letter-spacing: 0.8px;
  }

  .p-contact-notes {
    padding: 50px 48px 0;
  }

  .p-contact-notes__inner {
    padding-bottom: 40px;
  }

  .p-contact-notes__title {
    font-size: 20px;
  }

  .p-contact-notes__item {
    font-size: 17px;
  }

  .p-contact-phone__inner {
    max-width: 800px;
  }

  .p-contact-phone__title {
    font-size: 17px;
  }

  .p-contact-phone__number {
    font-size: 32px;
  }

  .p-contact-phone__time {
    font-size: 17px;
  }

  .p-contact-phone__note {
    font-size: 12px;
  }
}
