/* ------------------------------------------------------------------
   pages-info.css
   会社概要（page-company）／お問い合わせ・ご依頼（page-contact）専用
   column-pages.css の後に読み込む前提。body.subpage 配下で効く。
   ------------------------------------------------------------------ */

/* 会社概要セクション */

.subpage .company-profile {
  padding-bottom: 50px;
}

.subpage .company-profile .company-card dl {
  display: block;
}

.subpage .company-profile .company-card dd:last-of-type {
  border-bottom: 0;
}

.subpage .company-profile__note {
  max-width: 640px;
  margin: 0 auto;
  color: #6d6a6a;
  font-size: 12px;
  line-height: 1.8;
  text-align: left;
}

/* 探偵業届出の標識について */

.subpage .notice-block {
  padding: 50px 15px 60px;
  background: #fff;
}

.subpage .notice-block__inner {
  max-width: 720px;
  margin: 0 auto;
}

.subpage .notice-block__heading {
  margin-bottom: 20px;
  font-size: 17px;
  font-weight: 700;
}

.subpage .notice-block__description {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.9;
  text-align: left;
}

.subpage .notice-block__action {
  width: min(330px, 100%);
  min-height: 46px;
  margin-bottom: 36px;
  padding-inline: 34px;
  font-size: 13px;
  line-height: 1.4;
}

/* 探偵業者 情報枠 */

.subpage .notice-card {
  padding: 22px 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  scroll-margin-top: 80px;
}

.subpage .notice-card__title {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold);
  color: var(--navy);
  font: 700 17px/1.4 var(--serif);
  letter-spacing: .03em;
}

.subpage .notice-card__list {
  margin: 0;
}

.subpage .notice-card__row {
  padding: 12px 0;
  border-bottom: 1px dashed #d5d5d5;
}

.subpage .notice-card__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.subpage .notice-card__term {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.subpage .notice-card__value {
  margin: 0;
  font-size: 15px;
  line-height: 1.8;
  word-break: break-word;
}

/* お問い合わせフォーム */

.subpage .contact-form-section {
  padding: 40px 15px 70px;
  background: var(--cream);
}

.subpage .form-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 18px 32px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.subpage .form-field {
  margin-bottom: 22px;
}

.subpage .form-field__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.subpage .form-field__badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
}

.subpage .form-field__input,
.subpage .form-field__select,
.subpage .form-field__textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid #ccd6c4;
  border-radius: 4px;
  color: var(--ink);
  background: #fff;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
}

.subpage .form-field__input::placeholder,
.subpage .form-field__textarea::placeholder {
  color: #a8a8a8;
}

.subpage .form-field__input:focus,
.subpage .form-field__select:focus,
.subpage .form-field__textarea:focus {
  border-color: var(--green);
  outline: none;
}

.subpage .form-field__input:focus-visible,
.subpage .form-field__select:focus-visible,
.subpage .form-field__textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.subpage .form-field__select-wrap {
  position: relative;
}

.subpage .form-field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.subpage .form-field__select::-ms-expand {
  display: none;
}

.subpage .form-field__chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--green);
  transform: translateY(-50%);
  pointer-events: none;
}

.subpage .form-field__textarea {
  min-height: 160px;
  resize: vertical;
}

.subpage .form-field__note {
  margin: 8px 0 0;
  color: #6d6a6a;
  font-size: 12px;
  line-height: 1.7;
}

/* 同意チェック */

.subpage .form-consent {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 26px 0 24px;
}

.subpage .form-consent__checkbox {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.subpage .form-consent__checkbox:checked {
  border-color: var(--green);
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' viewBox='0 0 14 11'%3E%3Cpath d='M1 5.5 5 9.5 13 1.5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 11px;
}

.subpage .form-consent__checkbox:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.subpage .form-consent__label {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}

.subpage .form-consent__link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 送信ボタン */

.subpage .form-submit {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 12px 52px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(#65a753, #356f31);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  cursor: pointer;
}

.subpage .form-submit__label {
  display: block;
  text-align: center;
}

.subpage .form-submit__icon {
  position: absolute;
  top: 50%;
  right: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--green);
  background: #fff;
  transform: translateY(-50%);
  pointer-events: none;
}

.subpage .form-submit:hover {
  background: linear-gradient(#5b9a49, #2e6129);
}

/* Contact Form 7 出力にも同じ見た目を当てる */

.subpage .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
}

.subpage .wpcf7-form .form-field__select-wrap {
  position: relative;
}

.subpage .wpcf7-form .form-field__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5 7 7.5l6-6' fill='none' stroke='%234f7c41' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 14px 9px;
}

.subpage .wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  margin: 0;
}

.subpage .wpcf7-form .wpcf7-acceptance label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.6;
  cursor: pointer;
}

.subpage .wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
  flex: none;
  width: 26px;
  height: 26px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--green);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.subpage .wpcf7-form .wpcf7-acceptance input[type="checkbox"]:checked {
  background-color: var(--green);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='11' viewBox='0 0 14 11'%3E%3Cpath d='M1 5.5 5 9.5 13 1.5' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 11px;
}

.subpage .wpcf7-form input.form-submit,
.subpage .wpcf7-form .wpcf7-submit {
  width: 100%;
  min-height: 56px;
  padding: 12px 52px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Ccircle cx='14' cy='14' r='14' fill='%23ffffff'/%3E%3Cpath d='M11.6 8.8 18 14l-6.4 5.2z' fill='%234f7c41'/%3E%3C/svg%3E"), linear-gradient(#65a753, #356f31);
  background-repeat: no-repeat, no-repeat;
  background-position: right 16px center, center;
  background-size: 28px 28px, cover;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  cursor: pointer;
}

.subpage .wpcf7-form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: #c0392b;
  font-size: 12px;
  line-height: 1.6;
}

.subpage .wpcf7-form .wpcf7-response-output {
  margin: 20px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.7;
}

.subpage .wpcf7-form .wpcf7-spinner {
  margin: 12px auto 0;
  display: block;
}

@media (min-width: 768px) {
  .subpage .notice-block {
    padding: 60px 24px 70px;
  }

  .subpage .notice-card {
    padding: 28px 28px;
  }

  .subpage .contact-form-section {
    padding: 50px 24px 80px;
  }

  .subpage .form-card {
    padding: 40px 40px 44px;
  }

  .subpage .form-submit,
  .subpage .wpcf7-form input.form-submit,
  .subpage .wpcf7-form .wpcf7-submit {
    width: min(360px, 100%);
    margin: 0 auto;
  }
}

@media (min-width: 1024px) {
  .subpage .company-profile__note {
    font-size: 13px;
  }

  .subpage .notice-block__heading {
    font-size: 20px;
  }

  .subpage .notice-block__description {
    font-size: 18px;
  }

  .subpage .notice-card__title {
    font-size: 20px;
  }

  .subpage .notice-card__row {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0 24px;
    align-items: baseline;
    padding: 14px 0;
  }

  .subpage .notice-card__term {
    margin: 0;
    font-size: 14px;
  }

  .subpage .notice-card__value {
    font-size: 18px;
  }

  .subpage .form-field__label {
    font-size: 16px;
  }

  .subpage .form-field__input,
  .subpage .form-field__select,
  .subpage .form-field__textarea {
    min-height: 50px;
    font-size: 17px;
  }

  .subpage .form-field__textarea {
    min-height: 190px;
  }
}
