/* ========================================
CONTACT PAGE
======================================== */

.contact-page{
  background: #fff;
  padding-bottom: 120px;
}

/* FV */

.contact-fv{
  position: relative;

}

.contact-fv__bg{
  position: relative;
  height: min(32vw, 480px);
  overflow: hidden;
}

.contact-fv__bg::after{
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* ← 濃さ調整 */
  pointer-events: none;
}

.contact-fv__bg img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-fv__inner{
  position: absolute;
  inset: var(--header-h) 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.contact-fv__title{
  margin: 0;
  text-align: center;
  color: #fff;
  font-weight: 300;
}

.contact-fv__title .section-title__en,
.contact-fv__title .section-title__ja{
  display: block;
}

/* パンくず */

.contact-breadcrumb{
  padding: 24px 0 0;
}

.contact-breadcrumb .inner{
  display: flex;
  justify-content: flex-end;
}

.breadcrumb__list{
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #292929;
}

.breadcrumb__list li::after{
  content: "/";
  margin-left: 8px;
}

.breadcrumb__list li:last-child::after{
  display: none;
}

.breadcrumb__list a{
  color: #292929;
  text-decoration: none;
}

/* フォーム */

.contact-form-section{
  padding: 56px 0 0;
}

.contact-form-wrap{
  max-width: 920px;
  margin: 0 auto;
}

.contact-form{
  width: 100%;
}

.contact-form__row + .contact-form__row{
  margin-top: 28px;
}

.contact-form__row{
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 32px;
  align-items: start;
}

.contact-form__label{
  display: block;
  padding-top: 14px;
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: #1B1B1B;
}

.contact-form__field input,
.contact-form__field textarea{
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
  line-height: 1.7;
  color: #292929;
  padding: 14px 16px;
  appearance: none;
}

.contact-form__field textarea{
  resize: vertical;
  min-height: 220px;
}

.contact-form__agree{
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.contact-form__agree-label{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: #292929;
}

.contact-form__agree-label input{
  margin: 0;
}

.contact-form__submit{
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

/* ========================================
CONTACT PAGE RESPONSIVE
======================================== */

@media (max-width: 1024px){
  .contact-form-wrap{
    max-width: 820px;
  }

  .contact-form__row{
    grid-template-columns: 150px 1fr;
    column-gap: 24px;
  }
}

@media (max-width: 767px){
  .contact-page{
    padding-bottom: 80px;
  }

  .contact-fv__bg{
    height: 220px;
  }

  .contact-breadcrumb{
    padding-top: 18px;
  }

  .breadcrumb__list{
    font-size: 11px;
    gap: 6px;
  }

  .breadcrumb__list li::after{
    margin-left: 6px;
  }

  .contact-form-section{
    padding-top: 40px;
  }

  .contact-form__row{
    grid-template-columns: 1fr;
    row-gap: 8px;
  }

  .contact-form__row + .contact-form__row{
    margin-top: 24px;
  }

  .contact-form__label{
    padding-top: 0;
    font-size: 13px;
    line-height: 1.7;
  }

  .contact-form__field input,
  .contact-form__field textarea{
    font-size: 14px;
    padding: 13px 14px;
  }

  .contact-form__field textarea{
    min-height: 180px;
  }

  .contact-form__agree{
    margin-top: 32px;
  }

  .contact-form__agree-label{
    font-size: 13px;
    line-height: 1.8;
    text-align: center;
  }

  .contact-form__submit{
    margin-top: 28px;
  }
}

/* ========================================
CONTACT CF7 MINIMUM FIX
======================================== */

/* フォーム全体 */
.contact-form .wpcf7-form-control-wrap{
  display: block;
}

/* 入力欄 */
.contact-form .wpcf7-form-control{
  width: 100%;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea{
  width: 100%;
}

/* 同意欄と送信ボタンを同じ幅基準にする */
.contact-form__agree,
.contact-form__submit{
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* 同意欄 */
.contact-form__agree{
  margin-top: 40px;
  text-align: center;
}

.contact-form__agree .wpcf7-form-control-wrap{
  display: inline;
}

.contact-form__agree .wpcf7-acceptance{
  display: inline-block;
}

.contact-form__agree .wpcf7-list-item{
  display: inline-block;
  margin: 0;
}

.contact-form__agree .wpcf7-list-item label{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: #292929;
  white-space: nowrap;
}

.contact-form__agree .wpcf7-list-item input{
  margin: 0;
  flex-shrink: 0;
}

/* 送信ボタン */
.contact-form__submit{
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.contact-form__submit .btn,
.contact-form__submit input[type="submit"]{
  width: 100%;
  max-width: 320px;
  justify-content: center;
}

/* エラー表示の最低限調整 */
.contact-form .wpcf7-not-valid{
  border-color: #c40000;
}

.contact-form .wpcf7-not-valid-tip{
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #c40000;
}

.contact-form .wpcf7-response-output{
  margin: 24px auto 0;
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.7;
}

/* SP */
@media (max-width: 767px){

  .contact-form__agree{
    margin-top: 32px;
    text-align: left;
  }

  .contact-form__agree .wpcf7-list-item label{
    white-space: normal;
    align-items: flex-start;
  }

  .contact-form__submit{
    margin-top: 28px;
  }

  .contact-form__submit .btn,
  .contact-form__submit input[type="submit"]{
    width: 100%;
    max-width: 320px;
  }
}