/* =========================================================
CONTACT
========================================================= */
.p-contact-mv-wrap {
  height: 50vh;
  overflow: hidden;
  position: relative;
}
@media screen and (min-width: 430px) {
  .p-contact-mv-wrap {
    height: 70vh;
  }
}
@media screen and (min-width: 620px) {
  .p-contact-mv-wrap {
    height: 75vh;
  }
}
.p-contact-mv picture img {
  display: block;
  object-fit: cover;
  height: 100%;
  width: 100%;
  max-width: none;
}

.p-contact-mv_ttl {
  color: #fff;
  display: flex;
  align-items: center;
  font-size: calc(50 * (100vw / 430));
  font-weight: bold;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
  padding: 0 5vw;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

@media screen and (min-width: 430px) {
  .p-contact-mv_ttl {
    font-size: calc(50 * (100vw / 620));
  }
}

@media screen and (min-width: 620px) {
  .p-contact-mv_ttl {
    font-size: calc(60 * (100vw / 768));
  }
}

@media screen and (min-width: 768px) {
  .p-contact-mv_ttl {
    font-size: calc(60 * (100vw / 992));
  }
}

@media screen and (min-width: 992px) {
  .p-contact-mv_ttl {
    font-size: 60px;
  }
}

.p-contact-mv_ttl .reduce {
  display: block;
  font-size: 30%;
}

@media screen and (min-width: 992px) {
  .p-contact-mv_ttl .reduce {
    font-size: 20%;
    letter-spacing: .5rem;
  }
}

@media screen and (min-width: 1200px) {
  .p-contact-mv_ttl .reduce {
    font-size: 30%;
  }
}



.p-contact-cont {
  width: 100%;	
}

.p-contact-ttl {
}

.p-contact-h2 {
  text-align: center;
  padding: 2% 0;
}

.p-contact-h2 .en-large {
  color: #012E6E;
  display: block;
  font-size: clamp(50px, 12.5vw, 120px);
  font-weight: bold;
  opacity: .1;
}

.p-contact-h2 .en-small {
  color: #012E6E;
  display: block;
  font-size: clamp(12px, 2.1vw, 16px);
  font-weight: bold;
}

.p-contact-h2 .ja {
  display: block;
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: bold;
}

@media screen and (max-width: 768px) {
  .p-contact-cont {
  }

  .p-contact-ttl {
  }

  .p-contact-h2 {
    padding: 3% 0;
  }

  .p-contact-h2 .en-large {
  }

  .p-contact-h2 .en-small {
  }

  .p-contact-h2 .ja {
  }
}

/* ==========================================================================
   Contact Form 7 Modern & Cool Styling
   ========================================================================== */

/* フォーム全体のコンテナ */
.p-form-container {
	width: 94%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 50px 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #2d3748;
}

/* 各入力項目のグループ */
.p-form-group {
    margin-bottom: 28px;
}

/* ラベルのデザイン */
.p-form-group label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
    color: #1a202c;
}

/* 「必須」のバッジ */
.p-form-group .required {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: #e53e3e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    vertical-align: middle;
}

/* 入力フィールド共通（テキスト、電話番号、メール、テキストエリア） */
.p-form-container input[type="text"],
.p-form-container input[type="tel"],
.p-form-container input[type="email"],
.p-form-container textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f7fafc;
    color: #2d3748;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* プレースホルダー（薄い文字）の色 */
.p-form-container ::placeholder {
    color: #a0aec0;
    opacity: 1;
}

/* フォーカス時（クリックして入力中）のエフェクト */
.p-form-container input[type="text"]:focus,
.p-form-container input[type="tel"]:focus,
.p-form-container input[type="email"]:focus,
.p-form-container textarea:focus {
    outline: none;
    border-color: #3182ce; /* 知的なブルー */
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(49, 130, 206, 0.15);
}

/* テキストエリア（お問合せ内容）の高さ固定 */
.p-form-container textarea {
    height: 160px;
    resize: vertical;
}

/* 送信ボタンのエリア */
.p-form-submit {
    text-align: center;
    margin-top: 40px;
}

/* 送信ボタン本体 */
.p-form-container .btn-submit {
    display: inline-block;
    width: 100%;
    max-width: 300px;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #0047AB;
    background: #ffffff; /* 高級感のあるダークグラデーション */
    border: 1px solid #0047AB;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(45, 55, 72, 0.2);
    transition: all 0.3s ease;
}

/* 送信ボタンのホバー（マウスを乗せた時）エフェクト */
.p-form-container .btn-submit:hover {
    background: #0047AB; /* ブルーに鮮やかに変化 */
	color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(49, 130, 206, 0.3);
}

/* 送信ボタンのクリック時 */
.p-form-container .btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(49, 130, 206, 0.3);
}

/* ==========================================================================
   Contact Form 7 固有のエラー・完了メッセージの調整
   ========================================================================== */

/* バリデーションエラーメッセージ（入力漏れなど） */
.wpcf7-not-valid-tip {
    color: #e53e3e !important;
    font-size: 13px !important;
    font-weight: 600;
    margin-top: 6px;
}

/* 送信完了・エラーのアラートボックス全体 */
.wpcf7-response-output {
    margin: 20px 0 0 0 !important;
    padding: 15px !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px !important;
    text-align: center;
}

/* 送信成功時のボックス */
.wpcf7 .status-saved, 
.wpcf7 .mail-sent-ok {
    border: 2px solid #38a169 !important;
    background-color: #f0fff4 !important;
    color: #276749 !important;
}

/* 入力エラーがある時のボックス */
.wpcf7 .validation-failed, 
.wpcf7 .mail-sent-ng {
    border: 2px solid #e53e3e !important;
    background-color: #fff5f5 !important;
    color: #9b2c2c !important;
}

/* スピナー（読み込み中ぐるぐる）の位置微調整 */
.wpcf7-spinner {
    display: block;
    margin: 15px auto 0 auto !important;

}