/* ===== お問い合わせ（Contact Form 7） ===== */
.contact-page #contact .wrap {
  width: calc(100% - 30px);
  max-width: 880px;
  margin: 0 auto;
}

section.contact-section {
  padding: clamp(40px, 8vw, 96px) 0 0;
}

.contact-hero__title.en {
  font-family: "Poppins", "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 800;
  font-size: clamp(44px, 8vw, 140px);
  letter-spacing: .02em;
  line-height: 1.05;
  color: var(--blue);
  margin: 0 0 clamp(12px, 2vw, 18px);
}

p.contact-section__txt {
  font-size: 1.6rem;
  font-size: var(--fs-16);
  margin: 40px auto 80px;
  line-height: 1.9;
  letter-spacing: .03em;
}


.contact-page .cf-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
}

.cf-card p {
  font-size: 1.6rem;
  font-size: var(--fs-16);
}


/* 1カラム配置 */
.contact-page .cf-card .wpcf7 form {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 18px;
}

/* ラベル＝グリッド（左：項目名 / 右：必須ピル / 下：入力欄） */
.contact-page .wpcf7 form label {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 8px;
  align-items: center;
  margin: 0 0 18px;
  font-weight: 700;
  color: #0f172a;
}

/* 必須ピル */
.contact-page .wpcf7 form label .req {
  grid-column: 2;
  grid-row: 1;
  justify-self: start;
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--red, #d82a2a);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  position: static !important;
  inset: auto !important;
}

/* 入力欄をラベル下段で全幅に */
.contact-page .wpcf7 form label .wpcf7-form-control-wrap {
  grid-column: 1 / -1;
  grid-row: 2;
}

/* 入力共通（checkbox/radio/submit は除外） */
.contact-page .wpcf7 form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.contact-page .wpcf7 form textarea,
.contact-page .wpcf7 form select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #d7dee6;
  border-radius: 12px;
  background: #fff;
  color: #111;
  font-size: 1.6rem;
  font-size: var(--fs-16);
  line-height: 1.6;
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.contact-page .wpcf7 form .wpcf7-form-control:focus {
  border-color: color-mix(in oklab, var(--blue, #135ba4) 70%, white);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--blue, #135ba4) 20%, white);
}

/* テキストエリア */
.contact-page .wpcf7 form textarea.wpcf7-form-control {
  min-height: 160px;
  resize: vertical;
}

.cf-accept_area {
  text-align: center;
}

.submit {
  text-align: center;
}


/* 送信ボタン（カード内のみ定義すれば十分） */
.contact-page .cf-card input.wpcf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 28px;
  min-width: 220px;
  width: fit-content;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 1.6rem;
  font-size: var(--fs-16);
  color: #fff;
  background: var(--blue, #135ba4);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: transform .12s ease, filter .2s ease, box-shadow .2s ease;
  margin: 40px auto;
}

.contact-page .cf-card input.wpcf7-submit:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.contact-page .cf-card input.wpcf7-submit:active {
  transform: translateY(1px);
}

@media (max-width:640px) {
  .contact-page .cf-card input.wpcf7-submit {
    width: 100%;
    min-width: 0;
  }
}

/* エラーメッセージ・応答 */
.contact-page .wpcf7 form .wpcf7-not-valid-tip {
  margin-top: 6px;
  color: var(--red, #d82a2a);
  font-size: 1.6rem;
  font-size: var(--fs-16);
}

.contact-page .wpcf7-response-output {
  margin-top: 14px;
  border-radius: 10px;
  padding: 10px 12px;
}

/* ===== インフォメーション表 ===== */
.contact-page table.border {
  width: calc(100% - 60px);
  max-width: 880px;
  margin: clamp(16px, 3vw, 28px) auto;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .05);
  overflow: hidden;
}

.contact-page table.border th,
.contact-page table.border td {
  padding: 16px 18px;
  line-height: 1.9;
  font-size: 1.6rem;
  font-size: var(--fs-16);
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
}

.contact-page table.border th {
  width: 220px;
  white-space: nowrap;
  text-align: left;
  font-weight: 800;
  letter-spacing: .04em;
  color: #0f172a;
  background: #f8fafc;
  border-right: 1px solid #eef2f7;
}

.contact-page table.border tr:last-child th,
.contact-page table.border tr:last-child td {
  border-bottom: 0;
}

.contact-page table.border .phone {
  position: relative;
  font-weight: 800;
  color: var(--blue, #135ba4);
  padding-left: 36px;
  font-size: 1.6rem;
  font-size: var(--fs-16);
}

.contact-page table.border .phone a {
  color: inherit;
  text-decoration: none;
}

.contact-page table.border .phone a:hover {
  text-decoration: underline;
}

.contact-page table.border .phone::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.46 15.46 0 006.59 6.59l2.2-2.2a1 1 0 011.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 011 1v3.5a1 1 0 01-1 1C12.07 22 2 11.93 2 3a1 1 0 011-1h3.5a1 1 0 011 1c0 1.24.2 2.45.57 3.57.12.34.03.72-.24 1.02l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center/contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.46 15.46 0 006.59 6.59l2.2-2.2a1 1 0 011.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 011 1v3.5a1 1 0 01-1 1C12.07 22 2 11.93 2 3a1 1 0 011-1h3.5a1 1 0 011 1c0 1.24.2 2.45.57 3.57.12.34.03.72-.24 1.02l-2.2 2.2z'/%3E%3C/svg%3E") no-repeat center/contain;
  background: var(--blue, #135ba4);
  opacity: .9;
}

@media (max-width:640px) {
  .contact-page table.border {
    border-radius: 12px;
  }

  .contact-page table.border tr {
    display: block;
    border-bottom: 1px solid #eef2f7;
  }

  .contact-page table.border tr:last-child {
    border-bottom: 0;
  }

  .contact-page table.border th {
    display: block;
    width: auto;
    background: #f8fafc;
    border-right: 0;
    border-bottom: 0;
    padding: 12px 14px 6px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .contact-page table.border td {
    display: block;
    padding: 6px 14px 14px;
  }

  .contact-page table.border .phone {
    padding-left: 32px;
  }

  .contact-page table.border .phone::before {
    left: 12px;
  }
}

/* ===== 同意チェック (acceptance)：重複統合 ===== */
/* acceptanceコンテナの余計な枠をリセット */
.contact-page .wpcf7 form .wpcf7-acceptance,
.contact-page .wpcf7 form .wpcf7-acceptance .wpcf7-list-item,
.contact-page .wpcf7 form .wpcf7-acceptance label {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0;
}

/* レイアウト */
.contact-page .wpcf7 form .cf-accept,
.contact-page .wpcf7 form .wpcf7-acceptance .wpcf7-list-item {
  /* display:flex; align-items:center; gap:10px; */
  margin: 15px 8px 18px;
  line-height: 1.8;
  color: #0f172a;
  font-size: 1.6rem;
  font-size: var(--fs-16);
}

/* チェックボックス本体 */
.contact-page .wpcf7 form .cf-accept input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  accent-color: var(--blue, #135ba4);
}

.contact-page .wpcf7 form .cf-accept input[type="checkbox"]:focus-visible {
  outline: 2px solid color-mix(in oklab, var(--blue, #135ba4) 65%, white);
  outline-offset: 2px;
}

/* リンク強調 */
.wpcf7-form a {
  color: var(--blue, #135ba4);
  font-weight: 700;
}

.wpcf7-form a::after {
  content: "";
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  margin-left: .32em;
  margin-right: .32em;
  background: currentColor;
  /* テキスト色に追従 */
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000'%3E%3Cpath d='M14 3h7v7h-2V6.41l-8.29 8.3-1.42-1.42L17.59 5H14V3z'/%3E%3Cpath d='M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000'%3E%3Cpath d='M14 3h7v7h-2V6.41l-8.29 8.3-1.42-1.42L17.59 5H14V3z'/%3E%3Cpath d='M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7h-2v7z'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  vertical-align: -.3em;
  opacity: .9;
}

.wpcf7-form a:hover {
  opacity: .85;
}

/* チェックが入るまで送信不可（CSS簡易制御） */
@supports(selector(:has(*))) {
  .contact-page .wpcf7 form:has(.cf-accept input:not(:checked)) .wpcf7-submit {
    opacity: .45;
    pointer-events: none;
  }
}