/* ==========================================
  全体ラッパ
========================================== */
.contact-forms {
  margin-top: 40px;
}

body.contact-modal-open {
  overflow: hidden;
}

:root {
  --contact-field-radius: 16px;
  --contact-field-border: #dbe4f1;
}


/* ==========================================
  タブ
========================================== */
.contact-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.contact-tab {
  appearance: none;
  border: 1px solid rgba(208, 219, 238, 0.9);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 22px;
  padding: 17px 18px;
  font-size: 14px;
  font-weight: 700;
  color: #536885;
  cursor: pointer;

  box-shadow:
    0 14px 28px rgba(109, 132, 170, 0.08),
    0 2px 6px rgba(58, 77, 109, 0.04);

  transition: all 0.25s ease;
}

.contact-tab:hover {
  transform: translateY(-3px);
  box-shadow:
    0 20px 34px rgba(109, 132, 170, 0.14),
    0 8px 16px rgba(58, 77, 109, 0.07);
}

.contact-tab.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #7bb2ff 0%, #7e8ef6 52%, #a890ff 100%);
  box-shadow:
    0 18px 36px rgba(118, 142, 234, 0.28);
}

.contact-tab.is-disabled {
  color: #9aa8bb;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fa 100%);
  border-color: rgba(220, 228, 238, 0.95);
  box-shadow: none;
  cursor: default;
}

.contact-tab.is-disabled:hover {
  transform: none;
  box-shadow: none;
}


/* ==========================================
  ガイド
========================================== */
.contact-guide {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin: 14px 0 32px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.contact-guide.hide {
  opacity: 0;
  pointer-events: none;
}

.contact-form-notice {
  margin: 0 auto 24px;
  max-width: 900px;
  padding: 16px 20px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.contact-form-notice.is-success {
  color: #2d5f45;
  background: #edf9f1;
  box-shadow: inset 0 0 0 1px rgba(94, 176, 121, 0.22);
}

.contact-form-notice.is-error {
  color: #8a4050;
  background: #fff1f4;
  box-shadow: inset 0 0 0 1px rgba(210, 106, 130, 0.18);
}


/* ==========================================
  フォーム
========================================== */
.contact-form {
  display: none;
  animation: fadeIn 0.4s ease;
}

.contact-form .wpcf7 {
  margin-top: 10px;
}

.contact-info-card {
  padding: 30px 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(139, 175, 232, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
  box-shadow:
    0 20px 42px rgba(95, 118, 149, 0.1),
    inset 0 0 0 1px rgba(122, 147, 182, 0.14);
}

.contact-info-card-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #6b88b4;
}

.contact-info-card-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.4;
  color: #18304f;
}

.contact-info-card-text {
  max-width: 760px;
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: #5d7492;
}

.contact-info-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-info-card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #172539 0%, #314d75 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 30px rgba(33, 54, 84, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.contact-info-card-link:hover {
  color: #fff;
  filter: brightness(1.04);
  transform: translateY(-1px);
}


/* ==========================================
  アニメーション
========================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================================
  ご当地
========================================== */
.local-extra {
  display: none;
}


/* ==========================================
  モーダル
========================================== */
.vform-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.vform-label-row label {
  margin-bottom: 0;
}

.vform-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.vform-file-stack {
  display: grid;
  gap: 12px;
}

.vform-file-input {
  margin-bottom: 0;
  padding: 12px 14px;
  border-radius: var(--contact-field-radius);
  border: 1px dashed var(--contact-field-border);
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8ff 100%);
}

.vform-file-clear {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--contact-field-border);
  border-radius: var(--contact-field-radius);
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  color: #5f728f;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vform-field-note {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.7;
  color: #6a7f9b;
}

.vform-file-clear:hover {
  background: #eef3fb;
}

.vform-file-warning {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  color: #d15b6a;
}

.vform-field-error {
  margin: 5px 0px 5px 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
  color: #d15b6a;
}

.contact-help-trigger {
  flex: 0 0 auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #6f89b4;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-help-trigger:hover {
  color: #4f70a8;
  opacity: 0.78;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(6px);
}

.contact-modal.active {
  display: grid;
}

.contact-modal-dialog {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  overflow: auto;
  margin: 0;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow:
    0 30px 70px rgba(24, 39, 75, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.contact-modal-content {
  padding: 32px 32px 34px;
}

.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 999px;
  background: rgba(220, 230, 247, 0.85);
  color: #40577d;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-modal-close:hover {
  background: rgba(207, 221, 244, 0.96);
}

.contact-modal-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #6f89b4;
}

.contact-modal-content h3 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.35;
  color: #223a5d;
}

.contact-modal-points {
  margin: 0;
  padding-left: 20px;
  color: #5d7598;
  line-height: 1.9;
}

.contact-modal-points li + li {
  margin-top: 6px;
}

.contact-modal-subpoints {
  margin: 10px 0 0;
  padding-left: 18px;
}

.contact-modal-subpoints li + li {
  margin-top: 4px;
}

.contact-modal-points a {
  color: #3d69b3;
  font-weight: 700;
}

.contact-modal-guide-card {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 24px;
  margin-top: 26px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(241, 246, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(168, 189, 226, 0.22);
}

.contact-modal-guide-card.is-icon {
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
}

.contact-modal-guide-stage {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
  box-shadow:
    0 16px 36px rgba(86, 113, 158, 0.12),
    inset 0 0 0 1px rgba(163, 184, 218, 0.26);
  overflow: hidden;
}

.contact-modal-guide-stage.is-icon {
  aspect-ratio: 1 / 1;
}

.contact-modal-guide-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.contact-modal-guide-notes {
  color: #5d7598;
  font-size: 14px;
  line-height: 1.9;
}

.contact-modal-guide-notes p {
  margin: 0;
}

.contact-modal-guide-notes p + p {
  margin-top: 10px;
}


/* ==========================================
  フォーム本体（ここが重要）
========================================== */
.vform {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 20px;
}

.vform-notice-card {
  margin-bottom: 28px;
  padding: 24px 24px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(139, 175, 232, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,250,255,0.98) 100%);
  box-shadow:
    0 20px 42px rgba(95, 118, 149, 0.1),
    inset 0 0 0 1px rgba(122, 147, 182, 0.14);
}

.vform-notice-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #6b88b4;
}

.vform-notice-list {
  margin: 0;
  padding-left: 20px;
  color: #5d7598;
  font-size: 14px;
  line-height: 1.9;
}

.vform-notice-list > li + li {
  margin-top: 8px;
}

.vform-notice-sublist {
  margin: 8px 0 0;
  padding-left: 18px;
}

.vform-notice-sublist > li + li {
  margin-top: 4px;
}

.vform-notice-list a {
  color: #ff00ff;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.vform-notice-list a:hover {
  color: #ffccff;
}


/* ヘッダー */
.vform-header {
  text-align: center;
  margin-bottom: 50px;
}

.vform-header h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  color: #233d63;
}

.vform-header p {
  color: #72839e;
  font-size: 14px;
  line-height: 1.9;
}


/* カード */
.vform-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,252,255,0.98) 100%);
  border-radius: 30px;
  padding: 38px 38px 34px;
  margin-bottom: 36px;
  border: 1px solid rgba(216, 225, 240, 0.92);

  box-shadow:
    0 24px 56px rgba(106, 128, 168, 0.1),
    0 8px 20px rgba(78, 95, 127, 0.06);

  transition: all 0.3s ease;
}

/* ほんのりグラデ */
.vform-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 30px;
  background:
    radial-gradient(circle at top right, rgba(160, 191, 255, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(125,211,252,0.04), rgba(167,139,250,0.05));
  opacity: 1;
  transition: 0.3s;
  pointer-events: none;
}


/* タイトル */
.vform-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  margin-bottom: 28px;
  font-weight: 800;
  color: #233d63;
  letter-spacing: 0.02em;
}

.vform-card h3::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #8eb9ff 0%, #bba5ff 100%);
}

.vform-section-block + .vform-section-block {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(220, 229, 240, 0.9);
}

.vform-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #6a7d98;
  text-transform: uppercase;
}

.vform-section-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9abfff 0%, #b8a5ff 100%);
  box-shadow: 0 0 0 6px rgba(156, 187, 239, 0.12);
}


/* ラベル */
.vform label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
  color: #667892;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vform-label {
  display: block;
  font-size: 12px;
  margin-bottom: 10px;
  color: #667892;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* 入力欄 */
.contact-portal .vform .vform-control {
  width: 100% !important;
  padding: 15px 16px !important;
  border-radius: var(--contact-field-radius) !important;
  border: 1px solid var(--contact-field-border) !important;
  margin-bottom: 20px !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: #334863 !important;
  background: linear-gradient(180deg, #fbfcfe 0%, #f6f9fc 100%) !important;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7) !important;
  -webkit-appearance: none;
  appearance: none;
}

/* フォーカス */
.contact-portal .vform .vform-control:focus {
  outline: none;
  border-color: #9cb9ea !important;
  background: #fff !important;
  box-shadow:
    0 0 0 4px rgba(154, 183, 234, 0.14),
    0 10px 22px rgba(111, 139, 180, 0.08) !important;
}


/* プレースホルダー */
.contact-portal .vform .vform-control::placeholder {
  color: #a2afc2 !important;
}


/* グリッド */
.vform-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-bottom: 20px;
}

.vform-field {
  position: relative;
  margin-bottom: 20px;
}

.vform-grid > .vform-field {
  margin-bottom: 0;
}

.vform-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.vform-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  margin: 0;
  border: 1px solid var(--contact-field-border);
  border-radius: var(--contact-field-radius);
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  color: #546884;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
}

.vform-radio-group input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #7c96df;
}

.vform-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-bottom: 20px;
}

.vform-check-grid label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 14px;
  margin: 0;
  border: 1px solid var(--contact-field-border);
  border-radius: var(--contact-field-radius);
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%);
  color: #546884;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: none;
}

.vform-check-grid input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #7c96df;
}


/* submit */
.vform-submit {
  text-align: center;
  margin-top: 48px;
}

.vform-submit-meta {
  margin-top: 8px;
  text-align: center;
}

.vform-submit-links {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  color: #6d7f99;
}

.vform-submit-links a {
  color: #5d79a4;
  text-decoration: none;
  transition: color 0.3s ease;
}

.vform-submit-links a:hover {
  color: #2f4f81;
}

.vform-submit-links span {
  display: inline-block;
  margin: 0 8px;
  color: #9aabc0;
}

.vform-submit-check {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
  color: #5f728f;
  font-size: 13px;
  line-height: 1.8;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.vform-submit-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 4px 0 0;
  accent-color: #7c96df;
}

.vform-submit-meta .vform-field-error {
  margin: 10px 0 0;
  text-align: center;
}

.vform-submit input {
  width: auto;
  min-width: 220px;
  background: linear-gradient(135deg, #7db6ff 0%, #7d91f4 52%, #ab93ff 100%);
  color: #fff;
  padding: 16px 46px;
  border-radius: 999px;
  border: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;

  box-shadow:
    0 16px 34px rgba(122, 143, 231, 0.3);

  transition: all 0.25s ease;
}

.vform-submit input:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 38px rgba(122, 143, 231, 0.36);
}


/* ==========================================
  スマホ
========================================== */
@media (max-width: 768px) {

  .contact-tabs {
    grid-template-columns: 1fr;
  }

  .contact-tab {
    font-size: 13px;
    padding: 14px;
  }

  .vform {
    margin: 60px auto;
  }

  .vform-card {
    padding: 28px 22px 24px;
    border-radius: 24px;
  }

  .vform-notice-card {
    padding: 20px 18px 18px;
    border-radius: 20px;
  }

  .vform-notice-list {
    font-size: 13px;
  }

  .vform-grid {
    grid-template-columns: 1fr;
  }

  .vform-section-block + .vform-section-block {
    margin-top: 28px;
    padding-top: 22px;
  }

  .vform-label-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .vform-file-row {
    grid-template-columns: 1fr;
  }

  .contact-help-trigger {
    margin-top: -2px;
  }

  .contact-modal {
    padding: 16px;
  }

  .contact-modal-content {
    padding: 24px 20px 24px;
  }

  .contact-modal-content h3 {
    font-size: 22px;
  }

  .contact-modal-guide-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .contact-info-card {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .contact-info-card-text {
    font-size: 13px;
  }

  .contact-info-card-actions,
  .contact-info-card-link {
    width: 100%;
  }

  .vform-radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .vform-check-grid {
    grid-template-columns: 1fr;
  }

  .vform-submit {
    margin-top: 36px;
  }

  .vform-submit-links {
    font-size: 12px;
    line-height: 1.8;
  }

  .vform-submit-check {
    font-size: 12px;
    text-align: left;
  }

  .vform-submit input {
    width: 100%;
    min-width: 0;
  }

}
