/* Contact Form 7 presentation only: no fields, validation or mail settings changed. */
.leaf-contact-page .leaf-response-notice { line-height:2; }
.leaf-contact-page .leaf-response-phone-mobile { display:none; }
.leaf-contact-page .leaf-response-phone-pc { display:inline; }
@media(max-width:750px) {
  .leaf-contact-page .leaf-response-prefix-pc { display:none; }
  .leaf-contact-page .leaf-response-phone-pc { display:none; }
  .leaf-contact-page .leaf-response-phone-mobile { display:inline; color:#003f35; text-decoration:underline; font-weight:700; }
}
.leaf-contact-page #page_headline { background:#003f35; }
.leaf-contact-page .wpcf7 { width:100%; max-width:900px; margin:32px auto; padding:36px; box-sizing:border-box; background:#f4f9f6; border:1px solid #d6e7dd; border-radius:12px; }
.leaf-contact-page .wpcf7 form { min-width:0; }
.leaf-contact-page .wpcf7 label { line-height:1.8; color:#123c31; }
.leaf-contact-page .wpcf7 p { line-height:1.9; margin-bottom:22px; }
.leaf-contact-page .wpcf7 .wpcf7-form-control-wrap { display:block; max-width:100%; min-width:0; }
.leaf-contact-page .wpcf7 input[type=text],
.leaf-contact-page .wpcf7 input[type=email],
.leaf-contact-page .wpcf7 input[type=tel],
.leaf-contact-page .wpcf7 input[type=url],
.leaf-contact-page .wpcf7 input[type=number],
.leaf-contact-page .wpcf7 input[type=date],
.leaf-contact-page .wpcf7 select,
.leaf-contact-page .wpcf7 textarea { width:100%; max-width:100%; min-width:0; min-height:48px; box-sizing:border-box; padding:12px 14px; border:1px solid #aabeb3; border-radius:6px; background:#fff; color:#16382d; font-size:16px; line-height:1.6; }
.leaf-contact-page .wpcf7 textarea { min-height:180px; resize:vertical; }
.leaf-contact-page .wpcf7 input::placeholder,
.leaf-contact-page .wpcf7 textarea::placeholder { color:#65796e; opacity:1; }
.leaf-contact-page .wpcf7 input:focus-visible,
.leaf-contact-page .wpcf7 select:focus-visible,
.leaf-contact-page .wpcf7 textarea:focus-visible,
.leaf-contact-page .wpcf7 button:focus-visible { outline:3px solid #458d71; outline-offset:3px; }
.leaf-contact-page .wpcf7 input[type=checkbox],
.leaf-contact-page .wpcf7 input[type=radio] { width:20px; height:20px; accent-color:#003f35; vertical-align:middle; }
.leaf-contact-page .wpcf7 .wpcf7-list-item { margin:0 18px 8px 0; }
.leaf-contact-page .wpcf7 .wpcf7-list-item label { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
.leaf-contact-page .wpcf7 input[type=file] { max-width:100%; font-size:14px; line-height:1.8; }
.leaf-contact-page .wpcf7 input[type=submit],
.leaf-contact-page .wpcf7 button[type=submit] { display:block; width:min(420px,100%); min-height:54px; margin:24px auto 0; padding:14px 24px; border:1px solid #003f35; border-radius:7px; background:#003f35; color:#fff; font-size:18px; font-weight:700; line-height:1.5; cursor:pointer; }
.leaf-contact-page .wpcf7 input[type=submit]:disabled,
.leaf-contact-page .wpcf7 button[type=submit]:disabled { background:#637c70; border-color:#637c70; cursor:not-allowed; }
.leaf-contact-page .wpcf7 .wpcf7-not-valid { border-color:#b3261e !important; }
.leaf-contact-page .wpcf7 .wpcf7-not-valid-tip { display:block; padding:6px 0; color:#a91d1d; font-size:14px; line-height:1.7; }
.leaf-contact-page .wpcf7 form .wpcf7-response-output { margin:24px 0 0; padding:16px; background:#fff; border-radius:6px; line-height:1.9; overflow-wrap:anywhere; }
@media(max-width:750px) {
  .leaf-contact-page .wpcf7 { padding:22px 16px; margin:24px auto; }
  .leaf-contact-page .wpcf7 table,
  .leaf-contact-page .wpcf7 tbody,
  .leaf-contact-page .wpcf7 tr,
  .leaf-contact-page .wpcf7 th,
  .leaf-contact-page .wpcf7 td { display:block; width:100% !important; min-width:0; box-sizing:border-box; }
  .leaf-contact-page .wpcf7 th { padding-bottom:6px; }
  .leaf-contact-page .wpcf7 td { padding-top:6px; }
}

/* Shared site navigation; the saved CF7 shortcode and mail configuration stay intact. */
.leaf-contact-page.leaf-detail #page_headline{color:#123f36;background:linear-gradient(90deg,#eff7f1 35%,#eff7f1dd 60%,#eff7f155),url(home/house.png) right center/auto 100% no-repeat}
.leaf-contact-page.leaf-detail #page_contents{width:min(1000px,calc(100% - 64px));margin:38px auto 60px;padding:0}
.leaf-contact-page.leaf-detail #page_contents .post_content{font-size:15px;line-height:2;overflow-wrap:anywhere}
.leaf-contact-page.leaf-detail #page_contents .inview{opacity:1;visibility:visible;transform:none}
.leaf-contact-page.leaf-detail #page_contents .post_content>p{margin-bottom:1.5em}
.leaf-contact-page.leaf-detail #page_contents .post_content h2{font-family:"Yu Mincho",serif;font-size:25px;line-height:1.7;margin:28px 0 20px;color:#123f36}
.leaf-contact-page.leaf-detail .leaf-response-notice{display:block;box-sizing:border-box;max-width:100%;white-space:normal;overflow-wrap:anywhere;padding:22px 25px;margin:22px 0;background:#eff7f1;border-left:4px solid #578d73;border-radius:0 8px 8px 0}
.leaf-contact-page.leaf-detail .wpcf7{margin-top:28px;padding:32px;box-shadow:0 5px 24px #123f3607}
.leaf-contact-page.leaf-detail .wpcf7 table{width:100%;table-layout:fixed;border-collapse:collapse}
.leaf-contact-page.leaf-detail .wpcf7 th,.leaf-contact-page.leaf-detail .wpcf7 td{padding:15px 12px;border-color:#d6e7dd;line-height:1.8;vertical-align:top;overflow-wrap:anywhere}
.leaf-contact-page.leaf-detail .wpcf7 th{background:#e9f2ec;color:#123f36}
.leaf-contact-page.leaf-detail .wpcf7 input[type=submit]:hover,.leaf-contact-page.leaf-detail .wpcf7 button[type=submit]:hover{background:#1a5b49}
.leaf-contact-page.leaf-detail .wpcf7 input[type=submit]:disabled,.leaf-contact-page.leaf-detail .wpcf7 button[type=submit]:disabled{background:#637c70}
@media(max-width:750px){.leaf-contact-page.leaf-detail #page_contents{width:calc(100% - 32px);margin:26px auto 38px}.leaf-contact-page.leaf-detail #page_contents .post_content{font-size:14px}.leaf-contact-page.leaf-detail .leaf-response-notice{padding:17px 14px;font-size:13px}.leaf-contact-page.leaf-detail .wpcf7{padding:20px 14px}.leaf-contact-page.leaf-detail .wpcf7 th,.leaf-contact-page.leaf-detail .wpcf7 td{padding:10px 8px}.leaf-contact-page.leaf-detail #page_contents .post_content h2{font-size:21px}}

/* Keep the policy link within its sentence, rather than on an isolated line. */
.leaf-contact-page .wpcf7 .leaf-privacy-notice{font-size:14px;line-height:1.9;white-space:normal;word-break:normal;line-break:strict;margin:22px 0}
.leaf-contact-page .wpcf7 .leaf-privacy-notice a.leaf-privacy-link{display:inline!important;width:auto;white-space:normal;color:#003f35;text-decoration:underline;padding:0;margin:0}
