/* About page: preserve existing content and media, scope all rules to this page. */
.leaf-about-page #page_headline { background:#003f35; }
.leaf-about-page #page_contents .post_content { max-width:1000px; margin-left:auto; margin-right:auto; line-height:2; color:#173d32; overflow-wrap:anywhere; }
.leaf-about-page #page_contents .post_content p { line-height:2.1; margin-bottom:1.7em; }
.leaf-about-page #page_contents .post_content h2 { margin:48px 0 24px; padding:14px 20px; border:0; border-left:4px solid #458d71; border-radius:0 7px 7px 0; background:#eef7f2; color:#003f35; font-size:27px; line-height:1.6; }
.leaf-about-page #page_contents .post_content h3 { margin:32px 0 18px; padding-bottom:10px; border-bottom:1px solid #c9dfd2; color:#003f35; font-size:22px; line-height:1.7; }
.leaf-about-page #page_contents .post_content img { max-width:100%; height:auto; }
.leaf-about-page #page_contents .post_content table { width:100%; table-layout:fixed; border-collapse:collapse; }
.leaf-about-page #page_contents .post_content th,
.leaf-about-page #page_contents .post_content td { padding:16px 18px; border:1px solid #d6e7dd; line-height:1.9; overflow-wrap:anywhere; }
.leaf-about-page #page_contents .post_content th { background:#eef7f2; color:#003f35; }
.leaf-about-page #page_contents .post_content ul,
.leaf-about-page #page_contents .post_content ol { line-height:2; }
@media(max-width:750px) {
  .leaf-about-page #page_contents .post_content { font-size:16px; }
  .leaf-about-page #page_contents .post_content h2 { font-size:22px; padding:12px 14px; margin-top:32px; }
  .leaf-about-page #page_contents .post_content h3 { font-size:19px; }
  .leaf-about-page #page_contents .post_content th,
  .leaf-about-page #page_contents .post_content td { padding:12px 10px; font-size:14px; }
  .leaf-about-page #page_contents .post_content .wp-block-columns { gap:20px; }
}

/* Shared shell; retain the saved company and representative content. */
.leaf-about-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-about-page.leaf-detail #page_contents{width:min(1000px,calc(100% - 64px));margin:40px auto 55px;padding:0}
.leaf-about-page.leaf-detail #page_contents .inview{opacity:1;visibility:visible;transform:none}
.leaf-about-page.leaf-detail #page_header{margin:0 auto;max-width:1200px;overflow:hidden;border-radius:0 0 16px 16px}
.leaf-about-page.leaf-detail #page_contents .post_content{font-size:16px}
.leaf-about-page.leaf-detail #page_contents .post_content h2{font-family:"Yu Mincho",serif}
.leaf-about-page.leaf-detail #page_contents .post_content img{border-radius:10px}
.leaf-about-page.leaf-detail .ld-main>.leaf-service-contact{width:min(1000px,calc(100% - 64px));margin:0 auto 55px}
.leaf-about-page.leaf-detail .ld-main>.leaf-service-contact h2{font-size:24px;line-height:1.7;margin:0 0 16px}
@media(max-width:750px){.leaf-about-page.leaf-detail #page_contents{width:calc(100% - 36px);margin:28px auto 35px}.leaf-about-page.leaf-detail #page_contents .post_content{font-size:14px}.leaf-about-page.leaf-detail .ld-main>.leaf-service-contact{width:calc(100% - 36px);margin-bottom:35px}.leaf-about-page.leaf-detail .ld-main>.leaf-service-contact h2{font-size:20px}}

/* PC representative message and company information. */
@media(min-width:751px){
 .leaf-about-page.leaf-detail #page_contents{width:min(1000px,calc(100% - 64px));margin:36px auto 42px;padding:0}
 .leaf-about-page.leaf-detail #page_contents .post_content{font-size:16px;line-height:2}
 .leaf-about-page.leaf-detail #page_contents .post_content p{line-height:2;margin-bottom:22px;word-break:normal;line-break:strict}
 .leaf-about-page.leaf-detail #page_contents .post_content .leaf-about-message{max-width:900px;margin-left:auto;margin-right:auto;white-space:normal}
 .leaf-about-page.leaf-detail #page_contents .post_content h2{margin:34px 0 24px;font-size:27px;text-align:left}
 .leaf-about-page.leaf-detail #page_contents .post_content h3{margin:32px 0 18px;font-size:23px}
 .leaf-about-page.leaf-detail #page_contents .post_content table{margin:0;width:100%}
 .leaf-about-page.leaf-detail #page_contents .post_content tr>th:first-child,.leaf-about-page.leaf-detail #page_contents .post_content tr>td:first-child{width:25%}
 .leaf-about-page.leaf-detail #page_contents .post_content th,.leaf-about-page.leaf-detail #page_contents .post_content td{padding:17px 20px;font-size:15px;line-height:1.9;vertical-align:top}
 .leaf-about-page.leaf-detail #page_contents .post_content .leaf-about-areas{word-break:normal;overflow-wrap:break-word}
}

/* Company information first, followed by a readable greeting and a small image. */
.leaf-about-page #page_header[hidden]{display:none!important}
.leaf-about-page .leaf-greeting-section{margin-top:42px}
.leaf-about-page .leaf-greeting-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:30px;align-items:start}
.leaf-about-page .leaf-greeting-text{min-width:0}
.leaf-about-page .leaf-greeting-media{margin-top:6px;position:sticky;top:130px}
.leaf-about-page .leaf-greeting-media picture{display:block;width:100%;height:auto;border-radius:10px;overflow:hidden}
.leaf-about-page .leaf-greeting-media picture img{position:static;display:block;width:100%;height:auto;max-height:260px;object-fit:cover}
.leaf-about-page #page_contents .post_content .leaf-greeting-text p{font-size:16px;line-height:2;margin:0 0 21px;white-space:normal;word-break:normal;line-break:strict}
.leaf-about-page #page_contents .post_content .leaf-company-section>h2{margin-top:0}
.leaf-about-page #page_contents .post_content .leaf-greeting-section>h2{margin-top:0}
@media(max-width:750px){.leaf-about-page .leaf-greeting-grid{grid-template-columns:minmax(0,1fr);gap:20px}.leaf-about-page .leaf-greeting-media{position:static;max-width:320px;margin:auto}.leaf-about-page #page_contents .post_content .leaf-greeting-text p{font-size:14px}}

/* Company page: text and company information, without decorative photo panels. */
.leaf-about-page.leaf-detail #page_headline{background:#eff7f1;color:#123f36}
.leaf-about-page.leaf-detail #page_header,.leaf-about-page .leaf-greeting-media{display:none!important}
.leaf-about-page .leaf-greeting-grid{display:block}
.leaf-about-page .leaf-greeting-text{max-width:820px;margin:0 auto}
.leaf-about-page #page_contents .post_content .leaf-greeting-text p{margin:0 0 22px;line-height:2}
.leaf-about-page.leaf-detail #page_contents{margin-bottom:42px}

/* Company final copy and office addresses. */
.leaf-about-page .lh-footer nav{display:none}
.leaf-about-page #page_contents .post_content table tr>th:first-child,.leaf-about-page #page_contents .post_content table tr>td:first-child{font-weight:700;color:#123f36}
.leaf-about-page #page_contents .post_content .leaf-office+.leaf-office{margin-top:16px}
.leaf-about-page #page_contents .post_content .leaf-office strong,.leaf-about-page #page_contents .post_content .leaf-office span{display:block;line-height:1.9}
.leaf-about-page #page_contents .post_content .leaf-office strong{font-weight:600}
.leaf-about-page .leaf-greeting-text{max-width:780px}
.leaf-about-page #page_contents .post_content .leaf-greeting-text p.leaf-about-message{font-size:16px;line-height:2.1;margin:0 0 28px;letter-spacing:0;word-break:normal;line-break:strict}
.leaf-about-page #page_contents .post_content .leaf-greeting-text p.leaf-company-signature{text-align:right;line-height:1.9;margin:32px 0 0;font-weight:600;font-size:16px}

/* Approved greeting and office rows. */
.leaf-about-page #page_contents .post_content .leaf-greeting-text p.leaf-greeting-quotes{white-space:pre-line;padding:17px 20px;background:#f4f9f5;border-left:3px solid #749780;border-radius:0 6px 6px 0;line-height:2.1}
.leaf-about-page #page_contents .post_content .leaf-office-row>th,.leaf-about-page #page_contents .post_content .leaf-office-row>td{background:#fff;color:#123f36}
@media(min-width:751px){
 .leaf-about-page #page_contents .post_content .leaf-office{display:flex;align-items:baseline;gap:18px;white-space:nowrap}
 .leaf-about-page #page_contents .post_content .leaf-office strong,.leaf-about-page #page_contents .post_content .leaf-office span{display:inline;line-height:1.9}
 .leaf-about-page #page_contents .post_content .leaf-office strong{flex:0 0 auto}
 .leaf-about-page #page_contents .post_content .leaf-office+.leaf-office{margin-top:12px}
}

/* Marked PC line breaks; use the same left alignment as the other table labels. */
.leaf-about-page .leaf-greeting-pc-break{display:none}
.leaf-about-page #page_contents .post_content .leaf-office-row>th{text-align:left;vertical-align:top}
@media(min-width:751px){.leaf-about-page .leaf-greeting-pc-break{display:inline}}

/* Match the three consultation examples to the surrounding body copy. */
.leaf-about-page #page_contents .post_content .leaf-greeting-text p.leaf-greeting-quotes{background:transparent;border:0;border-radius:0;padding:0;color:inherit;font-weight:400;margin:0 0 28px;line-height:2.1}
.leaf-about-page #page_contents .post_content .leaf-office strong{font-weight:400}

.leaf-about-page .leaf-qualification-number{white-space:nowrap}
@media(max-width:750px){
 .leaf-about-page .leaf-qualification-label,.leaf-about-page .leaf-qualification-number{display:block}
 .leaf-about-page .leaf-qualification+.leaf-qualification{margin-top:12px}
}
