/* ==========================================================================
   Contact page - ヘッダー下〜見出し・説明文
   ========================================================================== */
.contact-page {
  position: relative;
  background: var(--color-bg);
  padding-top: var(--header-h);
  container-type: inline-size;
}

.contact-page__inner {
  max-width: 1536px;
  margin: 0 auto;
  padding-inline: clamp(24px, 6.51cqw, 100px);
  padding-top: 160px;
  padding-bottom: 160px;
}

.contact-page__eyebrow {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.contact-page__heading {
  margin-top: 16px;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.1em;
  color: #493c33;
}

.contact-page__lead {
  margin-top: 100px;
  text-align: center;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.1em;
  line-height: 40px;
  color: var(--color-text);
}
.contact-page__lead p {
  display: inline-block;
  text-align: left;
}

.contact-page__box {
  margin-top: 120px;
  max-width: 1040px;
  margin-inline: auto;
  background: #ffffff;
  border-radius: 30px;
  padding: 60px 268px;
}

@container (max-width: 1000px) and (min-width: 601px) {
  .contact-page__box {
    padding-inline: 134px;
  }
}

/* ==========================================================================
     フォーム 共通パーツ
     ========================================================================== */
.contact-form__field + .contact-form__field {
  margin-top: 48px;
}

.contact-form__label-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form__label {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.contact-form__required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 18px;
  padding: 3px 6px;
  background: var(--color-orange);
  border-radius: 3px;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 10px;
  white-space: nowrap;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.contact-form__input,
.contact-form__select,
.contact-form__textarea {
  margin-top: 12px;
  width: 100%;
  height: 50px;
  padding: 0 20px;
  background: #fdfbef;
  border: 1px solid var(--color-teal);
  border-radius: 5px;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-text);
}
.contact-form__input::placeholder {
  font-size: 10px;
  color: #5e5e5e;
}

.contact-form__dropdown {
  position: relative;
  margin-top: 12px;
}

.contact-form__dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  padding: 0 20px;
  background: #fdfbef;
  border: 1px solid var(--color-teal);
  border-radius: 5px;
  cursor: pointer;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-text);
  text-align: left;
}

.contact-form__dropdown-label {
  font-size: 10px;
  color: #5e5e5e;
}
.contact-form__dropdown-label.is-selected {
  font-size: 12px;
  color: var(--color-text);
}

.contact-form__dropdown-arrow {
  flex: 0 0 auto;
  margin-left: 12px;
  transition: transform 0.25s ease;
}
.contact-form__dropdown.is-open .contact-form__dropdown-arrow {
  transform: rotate(180deg);
}

.contact-form__dropdown-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  background: #fdfbef;
  border: 1px solid var(--color-teal);
  border-radius: 5px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  list-style: none;
}

.contact-form__dropdown-option {
  padding: 14px 20px;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.contact-form__dropdown-option:hover {
  background: var(--color-teal);
  color: #ffffff;
}
.contact-form__dropdown-option.is-active {
  color: var(--color-teal);
  font-weight: 500;
}
.contact-form__dropdown-option.is-active:hover {
  color: #ffffff;
}
.contact-form__dropdown-option + .contact-form__dropdown-option {
  border-top: 1px dashed var(--color-teal);
}

/* ご相談内容 */
.contact-form__textarea {
  height: 160px;
  padding: 20px;
  resize: vertical;
  font-size: 10px;
  line-height: 15px;
  color: #5e5e5e;
}
.contact-form__textarea:focus,
.contact-form__textarea:not(:placeholder-shown) {
  color: var(--color-text);
  font-size: 14px;
}

/* ==========================================================================
     13・14：チェックボックス＋プライバシーポリシー同意
     ========================================================================== */
.contact-form__agree {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-form__checkbox {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: 1px solid #5e5e5e;
  border-radius: 0;
  cursor: pointer;
  position: relative;
}
.contact-form__checkbox:checked::after {
  content: "";
  position: absolute;
  inset: 2px;
  background: #5e5e5e;
}

.contact-form__agree-label {
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--color-text);
}

.contact-form__privacy-link {
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding: 0 0 5px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  transition: color 0.3s ease;
}
.contact-form__privacy-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: #5e5e5e;
  transition: background-color 0.3s ease;
}
.contact-form__privacy-link:hover {
  color: #e88f4a;
}
.contact-form__privacy-link:hover::after {
  background: #e88f4a;
}

/* ==========================================================================
     15：送信ボタン
     ========================================================================== */
.contact-form__submit-wrap {
  margin-top: 75px;
}

.contact-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 5px;
  background: var(--color-teal);
  cursor: pointer;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #ffffff;
  transition: opacity 0.3s ease;
}
.contact-form__submit:hover {
  opacity: 0.85;
}

/* ==========================================================================
 フッター
     ========================================================================== */
.contact-page__footer-spacer {
  margin-top: 200px;
}

@container (max-width: 1000px) and (min-width: 601px) {
  .contact-page__inner {
    padding-bottom: 80px;
  }
  .contact-page__footer-spacer {
    margin-top: 100px;
  }
}
body.subpage-contact .contact {
  overflow: visible;
}
body.subpage-contact .contact__arc-text,
body.subpage-contact .contact__person,
body.subpage-contact .contact__bg-fill,
body.subpage-contact .contact__arc-wrap,
body.subpage-contact .contact__inner {
  display: none !important;
}

.contact-page__footer-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding-top: 40px;
}
.contact-page__footer-nav a {
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-teal);
}

/* エラーメッセージ */
.contact-form__error {
  margin-top: 8px;
  min-height: 14px;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--color-orange);
}

.contact-form__input.is-invalid,
.contact-form__textarea.is-invalid,
.contact-form__dropdown-toggle.is-invalid {
  border-color: var(--color-orange);
  background: #fff6ef;
}

.contact-form__checkbox.is-invalid {
  border-color: var(--color-orange);
}

/* ==========================================================================
     SP（スマホ）— Contactページ
     ========================================================================== */
@media (max-width: 600px) {
  .contact-page__inner {
    padding-top: 38.865px;
    padding-bottom: 40px;
  }

  .contact-page__lead {
    margin-top: 80px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 27px;
  }

  .contact-page__box {
    margin-top: 40px;
    padding: 40px 16px;
  }

  .contact-form__label {
    font-size: 14px;
  }

  .contact-form__field + .contact-form__field {
    margin-top: 30px;
  }

  .contact-form__required {
    width: 30px;
    height: 15px;
    padding: 2.5px 4.5px;
    font-size: 10px;
  }

  .contact-form__input,
  .contact-form__select,
  .contact-form__dropdown-toggle,
  .contact-form__textarea {
    width: 100%;
    height: 50px;
    border-width: 2px;
    font-size: 13px;
  }
  .contact-form__input::placeholder {
    font-size: 13px;
  }
  .contact-form__dropdown-label {
    font-size: 13px;
  }
  .contact-form__dropdown-label.is-selected {
    font-size: 13px;
  }

  .contact-form__textarea {
    max-width: 100%;
    height: 160px;
    font-size: 13px;
    line-height: 26px;
    color: #5e5e5e;
  }

  .contact-form__checkbox {
    width: 13px;
    height: 13px;
    border-width: 2px;
    border-color: #5e5e5e;
  }
  .contact-form__checkbox:checked::after {
    background: #5e5e5e;
  }

  .contact-form__agree-label {
    font-size: 13px;
  }
  .contact-form__privacy-link {
    padding-bottom: 2.5px;
  }

  .contact-form__submit {
    height: 50px;
    font-size: 15px;
  }
  .contact-form__submit-wrap {
    margin-top: 50px;
  }

  .contact-page__footer-spacer {
    margin-top: 90px;
  }

  .contact-form__dropdown-arrow {
    width: 10px;
    height: 4.575px;
  }

  .contact-page__footer-nav {
    display: none;
  }
}

/* ==========================================================================
     プライバシーポリシー モーダル
     ========================================================================== */
.policy-modal {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.policy-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

.policy-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
}

.policy-modal__box {
  position: relative;
  z-index: 1;
  width: calc(100% - 600px);
  height: 80vh;
  max-height: 740px;
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 20px 60px;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.3s ease;
}
.policy-modal.is-open .policy-modal__box {
  transform: translateY(0) scale(1);
}

@media (max-width: 1200px) and (min-width: 1001px) {
  .policy-modal__box {
    width: calc(100% - 400px);
  }
}

@media (max-width: 1000px) and (min-width: 800px) {
  .policy-modal__box {
    width: calc(100% - 200px);
  }
}

@media (max-width: 799px) and (min-width: 601px) {
  .policy-modal__box {
    width: calc(100% - 96px);
  }
}

.policy-modal__scroll {
  height: 100%;
  overflow-y: auto;
}
body.policy-modal-open {
  overflow: hidden;
}

.policy-modal__close {
  position: absolute;
  top: 20px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.policy-modal__close-icon {
  display: block;
  width: 28px;
  height: 29px;
  object-fit: contain;
}
.policy-modal__close-label {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: #493c33;
}

.policy-modal__eyebrow {
  display: block;
  margin-top: 60px;
  text-align: center;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #493c33;
}

.policy-modal__heading {
  margin-top: 24px;
  text-align: center;
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: 0.1em;
  color: #493c33;
}

.policy-modal__divider {
  margin-top: 40px;
  width: 100%;
  height: 2px;
  background: #d9d9d9;
  border: none;
}

.policy-modal__intro {
  margin-top: 40px;
  text-align: left;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 26px;
  color: #493c33;
}

.policy-modal__section {
  margin-top: 30px;
}
.policy-modal__section-title {
  font-family: var(--font-jp);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #0ba29a;
}
.policy-modal__section-text {
  margin-top: 10px;
  font-family: var(--font-jp);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.1em;
  line-height: 26px;
  color: #493c33;
}

/* ==========================================================================
     SP（スマホ）— プライバシーポリシー モーダル
     ========================================================================== */
@media (max-width: 600px) {
  .policy-modal__box {
    width: calc(100% - 48px);
    height: 80vh;
    max-height: 600px;
    padding: 16px;
  }

  .policy-modal__close {
    top: 16px;
    right: 16px;
    gap: 3.5px;
  }
  .policy-modal__close-icon {
    width: 27.5px;
    height: 28.5px;
  }

  .policy-modal__close-label {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.1em;
  }

  .policy-modal__eyebrow {
    margin-top: 44px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
  }

  .policy-modal__heading {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.1em;
  }

  .policy-modal__divider {
    margin-top: 30px;
  }

  .policy-modal__intro {
    margin-top: 20px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 28px;
  }

  .policy-modal__section {
    margin-top: 40px;
  }
  .policy-modal__section-title {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.1em;
  }
  .policy-modal__section-text {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 28px;
  }
}
