@charset "utf-8";

/* ==========================================================================
   お問い合わせ(page-contact-m.php) 2026リニューアル
   デザインカンプ: assets/_design/contact-m.png
   配色変数・パーティクル・CTA は home.css を共用
   フォーム本体は MW WP Form(template-parts/contact-form.php)。
   入力/確認/完了は MW WP Form が付ける .mw_wp_form_input / _confirm / _complete で出し分ける
   ========================================================================== */

.hs_contact_wrap .wrapper {
  max-width: 1200px;
  width: 100%;
  padding: 0 10px;
  margin: auto;
  position: relative;
  z-index: 2;
}

.hs_contact_wrap .c_pink   { color: var(--c-pink); }
.hs_contact_wrap .c_blue   { color: var(--c-blue); }
.hs_contact_wrap .c_orange { color: var(--c-orange); }
.hs_contact_wrap .c_green  { color: var(--c-green); }
.hs_contact_wrap .c_yellow { color: var(--c-yellow); }
.hs_contact_wrap .c_teal   { color: var(--c-teal); }


/* ==========================================================================
   HERO → 下層ページ共通ヒーロー(page-hero.css / template-parts/page-hero.php)
   ========================================================================== */


/* ==========================================================================
   フォーム(白カード)
   ========================================================================== */
#ct_form {
  position: relative;
  z-index: 2;
  padding: 50px 0 70px; /* ヒーローとの間隔 */
  /* 背景は透過(パーティクルを見せる)。カードの白と影で区切る */
}
/* CTA バナーとの間隔はフォームの下余白で取るため、home.css の上余白を解除 */
.hs_contact_wrap #cta { margin-top: 0; }

.ct_card {
  position: relative;
  max-width: 990px;
  margin: 0 auto;
  padding: 36px 48px 44px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(180,150,80,.12);
  color: var(--c-text);
}

/* 見出し */
.ct_card_head { margin-bottom: 34px; text-align: center; }
.ct_card_title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .06em;
}
.ct_card_deco { width: 30px; height: 30px; flex-shrink: 0; }
.ct_card_deco svg { width: 100%; height: 100%; }
.ct_card_deco-r { transform: scaleX(-1) rotate(-10deg); }
.ct_card_lead { margin-top: 8px; font-size: 14px; line-height: 1.7; }
.ct_card_lead.is-confirm { display: none; }
.ct_card:has(.mw_wp_form_confirm) .ct_card_lead.is-input { display: none; }
.ct_card:has(.mw_wp_form_confirm) .ct_card_lead.is-confirm { display: block; }
.ct_card:has(.mw_wp_form_complete) .ct_card_lead { display: none; }

/* 入力画面のみ/確認画面のみの要素 */
.mw_wp_form_confirm .only_input { display: none !important; }

/* 入力項目 */
.ct_fields {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.ct_row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.ct_label {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* 「必須」はラベル列の右端に揃える */
  gap: 12px;
  min-height: 52px;
  padding: 0 4px 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
}
.ct_req {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 10px;
  border-radius: 10px;
  background: #f0507a;
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}
.ct_input { flex: 1; min-width: 0; }

.ct_input input[type="text"],
.ct_input input[type="email"],
.ct_input textarea {
  display: block;
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid #dde4ee;
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--c-text);
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.ct_input textarea {
  height: 150px;
  min-height: 100px;
  padding: 12px 16px;
  line-height: 1.7;
  resize: vertical;
}
.ct_input input::placeholder,
.ct_input textarea::placeholder { color: #a8b0bb; }
.ct_input input:focus,
.ct_input textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(0,168,233,.15);
}

.ct_count {
  margin-top: 6px;
  text-align: right;
  font-size: 12.5px;
  color: #666;
}
.ct_count.is-over { color: #e0304f; font-weight: 700; }

/* エラーメッセージ(MW WP Form が span.error を出力) */
#ct_form .mw_wp_form .error {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #e0304f;
}
.ct_input:has(.error) input,
.ct_input:has(.error) textarea { border-color: #f08aa2; background: #fff8fa; }

/* 確認画面: 入力欄の代わりに入力値が表示される */
.mw_wp_form_confirm .ct_fields { gap: 0; border-top: 1px solid #eee; }
.mw_wp_form_confirm .ct_row { gap: 20px; padding: 16px 0; border-bottom: 1px solid #eee; }
.mw_wp_form_confirm .ct_label { min-height: 0; padding-top: 2px; }
.mw_wp_form_confirm .ct_input {
  padding: 4px 0;
  font-size: 15px;
  line-height: 1.8;
  word-break: break-all;
}

/* 個人情報の取り扱い */
.ct_privacy {
  display: flex;
  gap: 14px;
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid #cfe7f6;
  border-radius: 10px;
  background: #f1f8fd;
}
.ct_privacy_icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
}
.ct_privacy_icon svg { width: 20px; height: 20px; }
.ct_privacy_title {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-blue);
  letter-spacing: .04em;
}
.ct_privacy_text {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.8;
}
.ct_policy_toggle {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: #1a5fc8;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ct_policy_toggle:hover { text-decoration: none; }

/* プライバシーポリシー本文(開閉) */
.ct_policy {
  max-height: 260px;
  margin-top: 10px;
  padding: 18px 22px;
  overflow-y: auto;
  border: 1px solid #e3e8ee;
  border-radius: 10px;
  background: #fafbfc;
  font-size: 12.5px;
  line-height: 1.8;
}
.ct_policy[hidden] { display: none; }
.ct_policy h4 { margin: 14px 0 4px; font-size: 13px; font-weight: 700; }
.ct_policy p { margin: 0; }

/* 同意チェック */
.ct_agree {
  margin-top: 22px;
  text-align: center;
}
.ct_agree .mwform-checkbox-field { margin: 0; }
.ct_agree label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  cursor: pointer;
}
.ct_agree input[type="checkbox"] {
  position: relative;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1.5px solid #b9c3cf;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .2s, border-color .2s;
}
.ct_agree input[type="checkbox"]:checked {
  border-color: var(--c-pink);
  background: var(--c-pink);
}
.ct_agree input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 2.5px;
  width: 6px;
  height: 11px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(45deg);
}
.ct_agree input[type="checkbox"]:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; }
.ct_agree .error,
.ct_form_error { text-align: center; }

/* ボタン */
.ct_btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}
.mw_wp_form_confirm .ct_btns { margin-top: 40px; }
.ct_btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: .06em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s;
}
.ct_btn-main {
  width: 390px;
  max-width: 100%;
  height: 58px;
  padding: 0 30px;
  border: 1.5px solid var(--c-pink);
  background: var(--c-pink);
  color: #fff;
  font-size: 17px;
  box-shadow: 0 8px 18px -10px rgba(243,110,141,.9);
}
.ct_btn-main:hover { background: #fff; color: var(--c-pink); }
.ct_btn-sub {
  width: 266px;
  max-width: 100%;
  height: 50px;
  padding: 0 24px;
  border: 1.5px solid var(--c-blue);
  background: #fff;
  color: var(--c-blue);
  font-size: 14px;
}
.ct_btn-sub:hover { background: var(--c-blue); color: #fff; }

/* 矢印(ボタン内は MW WP Form の都合で SVG が使えないため CSS で描画) */
.ct_btn_arrow {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.ct_btn_arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.ct_btn-back .ct_btn_arrow { transform: scaleX(-1); }

/* 完了画面 */
.ct_complete { padding: 10px 0 0; text-align: center; }
.ct_complete_title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 700;
  color: var(--c-pink);
  letter-spacing: .06em;
}
.ct_complete_title::before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.ct_complete_text { margin-top: 20px; font-size: 15px; line-height: 2; }
.ct_complete_note { margin-top: 14px; font-size: 12.5px; line-height: 1.8; color: #777; }
.ct_complete .ct_btns { margin-top: 34px; }


/* ==========================================================================
   レスポンシブ(タブレット) ※デザインはPC版のみ支給のため暫定調整
   ========================================================================== */

@media all and (max-width: 768px) {

  .ct_card { padding: 32px 28px 40px; }
  .ct_card_title { font-size: 24px; }
  .ct_row { flex-direction: column; gap: 8px; }
  .ct_label { flex: none; justify-content: flex-start; min-height: 0; padding: 0; } /* 縦並びでは項目名の横に置く */
  .ct_input { width: 100%; }
  .ct_fields { gap: 22px; }
  .mw_wp_form_confirm .ct_row { gap: 4px; padding: 14px 0; }
}


/* ==========================================================================
   レスポンシブ(スマホ)
   ========================================================================== */
@media all and (max-width: 520px) {

  #ct_form { padding: 30px 0 50px; }
  .ct_card { padding: 26px 16px 32px; border-radius: 16px; }
  .ct_card_head { margin-bottom: 26px; }
  .ct_card_title { gap: 6px; font-size: 20px; }
  .ct_card_deco { width: 22px; height: 22px; }
  .ct_card_lead { font-size: 13px; }
  .ct_label { font-size: 14px; }
  .ct_input input[type="text"],
  .ct_input input[type="email"] { height: 48px; font-size: 16px; } /* iOS のズーム防止で16px */
  .ct_input textarea { font-size: 16px; }

  .ct_privacy { gap: 10px; padding: 14px; }
  .ct_privacy_icon { width: 28px; height: 28px; }
  .ct_privacy_icon svg { width: 17px; height: 17px; }
  .ct_privacy_title { font-size: 14px; }
  .ct_privacy_text { font-size: 12.5px; }
  .ct_policy { padding: 14px; }

  .ct_btn-main { height: 54px; font-size: 16px; }
  .ct_complete_title { font-size: 19px; }
  .ct_complete_text { font-size: 14px; text-align: left; }
  .ct_complete_note { text-align: left; }
}
