/* 総合問い合わせ（固定ページ49）だけに適用。項目・検証・送信処理は既存のCF7を使用。 */
body.page-id-49 { color: #20273a; }
body.page-id-49 .contents--page { background: #f6f8fb; }
body.page-id-49 .page-contentMainTtl {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; height: auto; min-height: 190px; padding: 40px 20px; margin: 0;
  background: #eef2f7 !important; color: #20273a; text-align: center;
}
body.page-id-49 .page-contentMainTtl::before {
  content: "CONTACT"; font-size: 12px; font-weight: 600; letter-spacing: .2em; color: #62718a;
}
body.page-id-49 .page-contentMainTtl span {
  position: static; display: block; transform: none; padding: 0;
  font-size: clamp(25px, 3vw, 34px); line-height: 1.5; letter-spacing: .04em;
  color: #20273a; text-shadow: none;
}
body.page-id-49 .breadcrumb { max-width: 960px; margin: 0 auto; padding: 16px 24px; }
body.page-id-49 .column { max-width: 960px; width: 100%; margin: 24px auto 0; padding: 0 24px 72px; box-sizing: border-box; }
body.page-id-49 .main { width: 100%; margin: 0; padding: 0; }
body.page-id-49 .page-post { margin: 0; padding: 0; }
body.page-id-49 .page-post > .post_column:first-child {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 24px;
}
body.page-id-49 .page-post > .post_column:first-child div { display: contents; }
body.page-id-49 .page-post > .post_column:first-child a {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px;
  margin: 0; padding: 10px; border: 1px solid #dce2eb; border-radius: 8px;
  background: #fff !important; color: #4b5565 !important; box-shadow: none; transform: none;
  font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; text-shadow: none;
}
body.page-id-49 .page-post > .post_column:first-child a::after { display: none; }
body.page-id-49 .page-post > .post_column:first-child a[href$="/contact-01"] {
  background: #20273a !important; border-color: #20273a; color: #fff !important;
}
body.page-id-49 .page-post > .post_column:first-child a:hover { border-color: #7285a1; }
body.page-id-49 .page-post > .post_column:first-child a:focus-visible { outline: 3px solid #3e70a6; outline-offset: 3px; }
body.page-id-49 .page-post > .post_column + p {
  padding: 16px 20px; margin: 0 0 24px; border-left: 3px solid #7e96b2;
  background: #eaf0f7; color: #46546a; border-radius: 0 8px 8px 0;
  font-size: 14px; line-height: 1.8; letter-spacing: .02em;
}
body.page-id-49 .wpcf7 { margin: 0 0 28px; }
body.page-id-49 .wpcf7-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px;
  padding: 40px; border: 1px solid #e0e5ec; border-radius: 16px; background: #fff;
}
body.page-id-49 .wpcf7-form > .hidden-fields-container { display: none; }
body.page-id-49 .wpcf7-form > p { min-width: 0; padding: 0; margin: 0; line-height: 1.7; }
body.page-id-49 .wpcf7-form > p > label { display: block; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: #263248; }
body.page-id-49 .wpcf7-form > p > label > br { display: none; }
body.page-id-49 .wpcf7-form-control-wrap { display: block; width: 100%; margin-top: 10px; }
body.page-id-49 .wpcf7 input:is([type="text"], [type="email"], [type="tel"], [type="url"]),
body.page-id-49 .wpcf7 select,
body.page-id-49 .wpcf7 textarea {
  display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0;
  height: 52px; padding: 12px 14px; border: 1px solid #cbd4e1; border-radius: 8px;
  background: #fcfdff; color: #20273a; font: inherit; font-size: 16px; font-weight: 400;
  line-height: 1.6; letter-spacing: normal; box-shadow: none; transition: border-color .15s;
}
body.page-id-49 .wpcf7 textarea { height: 190px; min-height: 160px; resize: vertical; }
body.page-id-49 .wpcf7 input:is([type="text"], [type="email"], [type="tel"], [type="url"]):focus,
body.page-id-49 .wpcf7 select:focus,
body.page-id-49 .wpcf7 textarea:focus { border-color: #3e70a6; outline: 2px solid #3e70a6; outline-offset: 2px; background: #fff; }
body.page-id-49 .wpcf7-form > p:has([name="message"]),
body.page-id-49 .wpcf7-form > p:has(.wpcf7-acceptance),
body.page-id-49 .wpcf7-form > p:has(.wpcf7-submit),
body.page-id-49 .wpcf7-form > p:has(a[href="https://policies.google.com/privacy"]),
body.page-id-49 .wpcf7-response-output { grid-column: 1 / -1; }
body.page-id-49 .wpcf7-form > p:has(.wpcf7-acceptance) { padding-top: 4px; }
body.page-id-49 .wpcf7-acceptance .wpcf7-list-item { margin: 0; }
body.page-id-49 .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 400; letter-spacing: .01em; cursor: pointer; }
body.page-id-49 .wpcf7-acceptance input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: #20273a; }
body.page-id-49 .wpcf7-acceptance input:focus-visible { outline: 2px solid #3e70a6; outline-offset: 3px; }
body.page-id-49 .wpcf7-form > p:has(.wpcf7-submit) { position: relative; text-align: center; }
body.page-id-49 .wpcf7-submit {
  box-sizing: border-box; width: 280px; max-width: 100%; min-height: 56px; margin: 0; padding: 14px 24px;
  border: 0; border-radius: 8px; background: #20273a; color: #fff;
  font-size: 16px; font-weight: 600; letter-spacing: .06em; cursor: pointer; box-shadow: none;
}
body.page-id-49 .wpcf7-submit:not(:disabled):hover { background: #35445f; }
body.page-id-49 .wpcf7-submit:disabled { background: #dce2eb; color: #5b6779; cursor: not-allowed; }
body.page-id-49 .wpcf7-submit:focus-visible { outline: 3px solid #3e70a6; outline-offset: 4px; }
body.page-id-49 .wpcf7-spinner { position: absolute; margin: 14px 0 0 12px; }
body.page-id-49 .wpcf7-form > p:has(a[href="https://policies.google.com/privacy"]) { color: #657187; font-size: 12px; line-height: 1.7; text-align: center; letter-spacing: normal; }
body.page-id-49 .wpcf7-form > p:has(a[href="https://policies.google.com/privacy"]) br { display: none; }
body.page-id-49 .wpcf7-form a { text-decoration: underline; text-underline-offset: 3px; }
body.page-id-49 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; font-weight: 400; line-height: 1.6; color: #b42c3c; }
body.page-id-49 .wpcf7 [aria-invalid="true"] { border-color: #b42c3c; }
body.page-id-49 .wpcf7-response-output { margin: 0 !important; border-radius: 8px; font-size: 14px; }
body.page-id-49 .page-post > .wpcf7 + p { margin: 0; padding: 0 8px; font-size: 13px; line-height: 1.9; letter-spacing: .01em; color: #596579; }
body.page-id-49 .page-post > .wpcf7 + p .red { color: #596579 !important; }
body.page-id-49 .page-post > .wpcf7 + p a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 639px) {
  body.page-id-49 .page-contentMainTtl { min-height: 160px; padding: 32px 16px; }
  body.page-id-49 .page-contentMainTtl span { font-size: clamp(22px, 6vw, 26px); }
  body.page-id-49 .breadcrumb { padding: 14px 16px; }
  body.page-id-49 .column { margin-top: 16px; padding: 0 16px 48px; }
  body.page-id-49 .page-post > .post_column:first-child { gap: 6px; margin-bottom: 20px; }
  body.page-id-49 .page-post > .post_column:first-child a { padding: 10px 4px; font-size: 13px; min-height: 46px; }
  body.page-id-49 .page-post > .post_column + p { padding: 14px 16px; font-size: 13px; margin-bottom: 20px; }
  body.page-id-49 .wpcf7-form { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 18px; border-radius: 12px; }
  body.page-id-49 .wpcf7-submit { width: 100%; }
  body.page-id-49 .wpcf7-spinner { right: 8px; margin-left: 0; }
  body.page-id-49 .page-post > .wpcf7 + p { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  body.page-id-49 .wpcf7 input, body.page-id-49 .wpcf7 textarea { transition: none; }
}

/* 共通フォーム: 窓口の選択も入力欄の一部にまとめる。 */
body.page-id-49 .gohd-contact-intro { margin: 0 0 24px; color: #596579; font-size: 14px; line-height: 1.8; }
body.page-id-49 .wpcf7-form > .gohd-kind,
body.page-id-49 .wpcf7-form > [data-inquiry-for] { grid-column: 1 / -1; }
body.page-id-49 .wpcf7-form > .gohd-kind { padding-bottom: 28px; border-bottom: 1px solid #e0e5ec; }
body.page-id-49 .gohd-field-help { display: block; margin-top: 8px; color: #657187; font-size: 12px; font-weight: 400; line-height: 1.6; }
body.page-id-49 .gohd-required { display: inline-block; margin-left: 8px; padding: 1px 6px; background: #eef2f7; color: #56647b; border-radius: 4px; font-size: 10px; line-height: 1.6; font-weight: 500; vertical-align: middle; }
body.page-id-49 .wpcf7-form > [data-inquiry-for][hidden] { display: none !important; }
body.page-id-49 .gohd-required[hidden] { display: none !important; }
body.page-id-49 .wpcf7 select { cursor: pointer; }
