.m4-overview-block{padding:clamp(30px,5vw,68px) 0;scroll-margin-top:100px;background:#fff;color:#193e30}.m4-overview-block:nth-of-type(odd){background:#f4f7f2}.m4-overview-inner{width:min(90%,1160px);margin:auto}.m4-overview-inner h2{font-size:clamp(22px,2.2vw,30px);margin:0 0 18px}.m4-overview-inner p{max-width:78ch;line-height:1.85;text-indent:2em}.m4-section-links{display:flex;flex-wrap:wrap;gap:12px 28px;margin-top:15px}.m4-overview-inner a{color:#295a41;text-decoration:underline;text-underline-offset:.3em}.m4-news-feature{display:grid;grid-template-columns:minmax(180px,30%) 1fr;gap:clamp(16px,3vw,42px);align-items:center;margin-bottom:18px}.m4-news-feature img{width:100%;max-height:230px;object-fit:contain}.m4-news-feature p{margin:0 0 10px;text-indent:0}.m4-news-feature small{display:block;color:#52645c}@media(max-width:640px){.m4-news-feature{grid-template-columns:1fr}.m4-news-feature img{width:80%;justify-self:center}}body:has(.bar){background:#f5f7f4}.bar,body:has(.bar)>main{width:min(92%,1220px);max-width:1220px;margin-inline:auto;box-sizing:border-box}.bar{padding-inline:clamp(12px,2.5vw,36px)}body:has(.bar)>main{padding:clamp(26px,4vw,52px) clamp(12px,2.5vw,36px) 64px;min-height:80vh}main h1{font-size:clamp(21px,2.2vw,30px);font-weight:600;line-height:1.4}main.news-detail h1{font-size:clamp(19px,1.8vw,25px);line-height:1.45;font-weight:600}main p:not(.meta,.note,.return,.table-title,.contact-line){text-indent:2em}main .listing-photo{display:block;width:80%;margin:16px auto;height:auto}main ol li:has(.news-thumb){display:grid;grid-template-columns:108px 1fr;gap:2px 18px;align-items:center}main ol li .news-thumb{grid-column:1;grid-row:1/3;width:108px;height:76px;object-fit:contain;background:#f3f6f2}main ol li:has(.news-thumb)>a,main ol li:has(.news-thumb)>time{grid-column:2}@media(max-width:640px){.bar,body:has(.bar)>main{width:94%}main ol li:has(.news-thumb){grid-template-columns:80px 1fr;column-gap:12px}main ol li .news-thumb{width:80px;height:60px}}/* Unified page canvas, restrained section headings and right-side news images. */
html:has(.bar),body:has(.bar){background:#fff}
body:has(.bar)>main{background:transparent}
body:has(.bar)>main h1,.m4-overview-inner h2{text-align:center;letter-spacing:.105em;font-weight:600;line-height:1.45;text-wrap:balance}
body:has(.bar)>main h1{font-size:clamp(20px,calc(2.2vw - 2px),28px)}
body:has(.bar)>main.news-detail h1{font-size:clamp(18px,calc(1.8vw - 2px),23px)}
.m4-overview-inner h2{font-size:clamp(20px,calc(2.2vw - 2px),28px)}
body:has(.bar)>main h1::after,.m4-overview-inner h2::after{content:"";display:block;width:42px;height:2px;margin:13px auto 0;background:linear-gradient(90deg,#94bb61 0 28%,#315b48 28% 100%);border-radius:2px}
main ol li{text-align:left}main ol li:has(.news-thumb){grid-template-columns:minmax(0,1fr) 108px;column-gap:20px}main ol li .news-thumb{grid-column:2;grid-row:1/3;justify-self:end}main ol li:has(.news-thumb)>time{grid-column:1;grid-row:1}main ol li:has(.news-thumb)>a{grid-column:1;grid-row:2}
.m4-news-feature{grid-template-columns:minmax(0,1fr) minmax(180px,30%)}.m4-news-feature>div{grid-column:1;grid-row:1}.m4-news-feature>img{grid-column:2;grid-row:1;justify-self:end}.m4-news-feature p{text-align:left;margin-inline:0}
@media(max-width:640px){main ol li:has(.news-thumb){grid-template-columns:minmax(0,1fr) 80px;column-gap:12px}.m4-news-feature{grid-template-columns:minmax(0,1fr) minmax(75px,28%);gap:12px}.m4-news-feature>img{width:100%}}

:root{--m4-gutter:clamp(14px,4vw,72px);--m4-rail:40px}
body:has(.bar),body:has(.site-header){padding-bottom:calc(var(--m4-rail) + env(safe-area-inset-bottom,0px))}
.bar,.site-header .header-inner,body:has(.bar)>main,.m4-overview-inner{box-sizing:border-box;width:100%;max-width:none;margin-inline:auto;padding-inline:var(--m4-gutter)}
body:has(.bar)>main{--reading-width:100%}
body:has(.bar)>main :is(h1,p,ol,.gallery){max-width:100%}
body:has(.bar)>main .gallery img,body:has(.bar)>main .scroll{width:92%;max-width:92%;margin-inline:auto}
body:has(.bar)>main :is(.table-title,.note){width:92%;margin-inline:auto}
.m4-overview-inner{text-align:center}.m4-overview-inner p{max-width:100%;margin-inline:auto;text-align:center;text-indent:0}.m4-section-links{justify-content:center}.m4-news-feature{max-width:1000px;margin-inline:auto}.m4-news-feature p{text-align:center}
.site-header,header:has(>.bar){position:sticky!important;top:0;z-index:5000}
.m4-footrail{box-sizing:border-box;position:fixed;z-index:4000;inset:auto 0 0;min-height:var(--m4-rail);display:flex;align-items:center;justify-content:center;gap:clamp(12px,3vw,44px);padding:5px var(--m4-gutter) calc(5px + env(safe-area-inset-bottom,0px));background:#f6f8f4;border-top:1px solid #dbe3db;color:#365142;font:13px/1.4 system-ui,sans-serif}
.m4-footrail a{color:inherit}html{scroll-padding-bottom:calc(var(--m4-rail) + 12px)}
@media(max-width:640px){:root{--m4-rail:50px}.m4-footrail{display:grid;grid-template-columns:auto auto;gap:0 16px;font-size:11px}.m4-footrail span{grid-column:1;grid-row:1}.m4-footrail a:first-of-type{grid-column:1;grid-row:2}.m4-footrail a:last-child{grid-column:2;grid-row:1/3}.m4-overview-inner p{line-height:1.8}}
/* Homepage reading rhythm */
body:has(.bar),body:has(.site-header){padding-bottom:0}
.site-header,header:has(>.bar),.gb-reader{position:relative!important;top:auto}
.m4-footrail{position:static;inset:auto}
body:has(.site-footer) .m4-footrail{display:none}
main>.hero{width:auto;max-width:none;margin-inline:clamp(8px,1.5vw,24px)}
#about.m4-overview-block p,#portfolio.m4-overview-block p{max-width:1060px;width:88%;margin:0 auto .9em;font-size:18px;line-height:1.85;text-align:justify;text-align-last:start;text-indent:2em;overflow-wrap:anywhere}
:is(#about,#portfolio) .m4-section-links{max-width:1080px;margin:20px auto 0;gap:10px 20px}
:is(#about,#portfolio) .m4-section-links a{font-size:19px;line-height:1.55;font-weight:500;text-decoration:none;border-bottom:1px solid currentColor;padding:3px 2px}
#about .m4-section-links a:nth-child(1){color:#245a44}#about .m4-section-links a:nth-child(2){color:#255e80}#about .m4-section-links a:nth-child(3){color:#704b75}
#portfolio .m4-section-links a:nth-child(1){color:#506923}#portfolio .m4-section-links a:nth-child(2){color:#196769}#portfolio .m4-section-links a:nth-child(3){color:#895327}
:is(#about,#portfolio) .m4-section-links a:hover{text-decoration:underline}
.m4-news-pair{max-width:1060px;margin:0 auto 16px;display:grid;grid-template-columns:1fr 1fr;gap:16px 24px}
.m4-news-pair a{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,32%);align-items:center;gap:14px;background:white;padding:14px;text-align:left;text-decoration:none;border:1px solid #dce5df;border-radius:4px}
.m4-news-pair a:hover strong{text-decoration:underline}.m4-news-pair time{display:block;font-size:13px;color:#596d60}.m4-news-pair strong{font-size:17px;line-height:1.55;font-weight:550}.m4-news-pair img{display:block;width:100%;height:94px;object-fit:contain;background:#f4f6f2}
@media(max-width:740px){#about.m4-overview-block p,#portfolio.m4-overview-block p{width:93%}.m4-news-pair{grid-template-columns:1fr;gap:10px}.m4-news-pair img{height:75px}.m4-section-links a{max-width:100%}}
