/* Trimal editorial shared shell. Loaded after the existing block styles. */
body.trimal-editorial{--ed-ink:#354e45;--ed-muted:#59695f;--ed-green:#396e5b;--ed-line:#d9e5dd;--ed-mint:#edf5ef;--ed-paper:#fffcf5;background:var(--ed-paper)!important;color:var(--ed-ink)!important;font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Noto Sans JP",sans-serif;overflow-wrap:anywhere;--color_main:#396e5b;--color_bg:#fffcf5;--color_text:#354e45;--color_link:#396e5b}
body.trimal-editorial *,body.trimal-editorial *::before,body.trimal-editorial *::after{box-sizing:border-box}
.trimal-editorial a{color:var(--ed-green)}.trimal-editorial :focus-visible{outline:3px solid #a96857;outline-offset:4px}.trimal-editorial img{max-width:100%;height:auto}
.trimal-editorial #body_wrap{overflow:visible!important;padding:0!important}.trimal-editorial .ed-preview{padding:7px 18px;text-align:center;background:#edf2e9;color:#526451;font-size:11px;line-height:1.6}.trimal-editorial .ed-skip{position:fixed;top:8px;left:12px;z-index:99999;padding:12px;background:white;transform:translateY(-160%)}.trimal-editorial .ed-skip:focus{transform:none}
.trimal-editorial .ed-header{background:#fffcf5;border-bottom:1px solid var(--ed-line);position:relative;z-index:20}.trimal-editorial .ed-header-inner{max-width:1180px;width:calc(100% - 64px);min-height:100px;display:flex;align-items:center;justify-content:space-between;gap:28px;margin:auto}.trimal-editorial .ed-brand{width:164px;flex:none;display:block}.trimal-editorial .ed-brand img{display:block;width:100%;height:auto}.trimal-editorial .ed-desktop-nav{display:flex;align-items:center;gap:28px;font-size:12px;font-weight:500}.trimal-editorial .ed-desktop-nav a{text-decoration:none;white-space:nowrap}.trimal-editorial .ed-desktop-nav a:hover{text-decoration:underline;text-underline-offset:6px}.trimal-editorial .ed-mobile-nav{display:none}
.trimal-editorial #content{display:block!important;width:calc(100% - 64px)!important;max-width:1180px!important;padding:0!important;margin:0 auto!important}.trimal-editorial #main_content{width:100%!important;max-width:none!important;float:none!important;margin:0!important;padding:0!important}.trimal-editorial .l-mainContent__inner{margin:0!important;padding:0!important}.trimal-editorial .p-breadcrumb{background:none!important;margin:0!important;padding:0!important;border:0!important}.trimal-editorial .p-breadcrumb__list{max-width:1180px;width:calc(100% - 64px);padding:25px 0 30px!important;white-space:normal!important;flex-wrap:wrap;gap:8px;font-size:11px;color:var(--ed-muted)}.trimal-editorial .p-breadcrumb__item{white-space:normal!important;max-width:100%}.trimal-editorial .p-breadcrumb__text{overflow-wrap:anywhere}
.trimal-editorial .ed-cover{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:44px;align-items:center;padding:12px 0 44px}.trimal-editorial .ed-cover-no-photo{display:block;max-width:900px}.trimal-editorial .ed-cover-copy{min-width:0}.trimal-editorial .ed-cover .p-articleHead{border:0!important;padding:0!important;margin:22px 0 0!important;display:block!important}.trimal-editorial .ed-cover .c-postTitle__ttl{font-family:"Hiragino Maru Gothic ProN","Hiragino Sans",sans-serif!important;font-weight:400!important;font-synthesis:none;line-height:1.75!important;letter-spacing:.025em!important;font-size:clamp(24px,2.65vw,34px)!important;text-wrap:pretty;word-break:auto-phrase;margin:0 0 22px!important;padding:0!important;color:var(--ed-ink)!important}.trimal-editorial .c-postTitle__date{position:static!important;display:block!important;border:0!important;padding:0!important;margin:12px 0!important;font-size:12px!important;width:auto!important;color:var(--ed-muted)!important}.trimal-editorial .c-postTitle__date .__y,.trimal-editorial .c-postTitle__date .__md{display:inline!important;font-size:12px!important}.trimal-editorial .c-postTitle__date .__y:after{content:'.'}.trimal-editorial .p-articleMetas.-top{display:flex;flex-direction:column;align-items:flex-start;gap:10px;margin:0!important}.trimal-editorial .p-articleMetas__times{font-size:11px;color:var(--ed-muted)}.trimal-editorial .c-categoryList__link{color:#396e5b!important;background:#edf5ef!important;padding:6px 12px!important;border-radius:30px!important;border:1px solid #d9e5dd;font-size:11px!important}.trimal-editorial .p-articleThumb{margin:0!important;min-width:0;padding:10px 0 0 10px;position:relative}.trimal-editorial .p-articleThumb img{width:100%;height:auto!important;object-fit:contain!important;border-radius:24px 54px 24px 24px;display:block;box-shadow:-10px -10px 0 #edf2e4}.trimal-editorial .p-articleThumb__caption{position:static!important;background:none!important;color:#59695f!important;font-size:12px!important;padding:12px 0!important;line-height:1.8}
.trimal-editorial .ed-reading{display:grid;grid-template-columns:minmax(0,830px) minmax(200px,1fr);gap:44px;align-items:start;padding-bottom:50px}.trimal-editorial .ed-reading-main{min-width:0}.trimal-editorial .ed-reading-main>.post_content{background:white;border:1px solid var(--ed-line);border-radius:24px;padding:38px 46px;margin:0!important;box-shadow:0 8px 35px #354e4504}.trimal-editorial .ed-reading-sidebar{position:sticky;top:28px;padding-top:20px;max-height:calc(100vh - 60px);overflow:auto;font-size:12px;line-height:1.85}.trimal-editorial .ed-reading-sidebar p{font-family:"Hiragino Maru Gothic ProN","Hiragino Sans",sans-serif;font-weight:400;font-size:16px;margin:0 0 22px}.trimal-editorial .ed-reading-sidebar ol{list-style:none;padding:0;counter-reset:ed-toc;border-top:1px solid var(--ed-line)}.trimal-editorial .ed-reading-sidebar li{padding:16px 0;display:flex;gap:12px;border-bottom:1px solid var(--ed-line);counter-increment:ed-toc}.trimal-editorial .ed-reading-sidebar li:before{content:counter(ed-toc,decimal-leading-zero);font-size:11px;color:#59695f}.trimal-editorial .ed-reading-sidebar a{color:var(--ed-ink);text-decoration:none;word-break:auto-phrase;text-wrap:pretty}.trimal-editorial .ed-reading-sidebar a:hover{text-decoration:underline}.trimal-editorial .ed-back{display:block;text-align:right;margin-top:20px;font-size:11px}
.trimal-editorial .ed-supplementary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;float:none!important;width:100%!important;position:static!important;border-top:1px solid var(--ed-line);padding:35px 0!important;margin:0!important}.trimal-editorial .ed-supplementary .w-fixSide{position:static!important}.trimal-editorial .ed-supplementary .c-widget{margin:0!important;min-width:0}.trimal-editorial .ed-supplementary .c-widget__title{font-family:"Hiragino Maru Gothic ProN","Hiragino Sans",sans-serif;font-weight:400;background:none!important;color:var(--ed-ink)!important;border:0!important}.trimal-editorial .ed-collection{}.trimal-editorial.ed-collection #main_content>.l-mainContent__inner{background:white;border:1px solid var(--ed-line);border-radius:24px;padding:36px 42px!important;margin:0 0 40px!important}.trimal-editorial .c-pageTitle{font-size:clamp(24px,3vw,34px)!important;font-family:"Hiragino Maru Gothic ProN","Hiragino Sans",sans-serif!important;font-weight:400!important;line-height:1.75!important;padding:0 0 24px!important;border-bottom:1px solid var(--ed-line)!important;margin:0 0 30px!important;color:var(--ed-ink)!important}.trimal-editorial .c-pageTitle:before,.trimal-editorial .c-pageTitle:after{content:none!important}
.trimal-editorial .l-footer{background:#edf2e9!important;color:var(--ed-ink)!important;margin:0!important;border-top:1px solid var(--ed-line)}.trimal-editorial .l-footer__inner{background:transparent!important}.trimal-editorial .l-footer a{color:var(--ed-ink)!important}.trimal-editorial .l-footer__foot{background:none!important;color:var(--ed-ink)!important;padding:32px 0!important}.trimal-editorial .l-footer .copyright{font-size:11px!important}.trimal-editorial .c-shareBtns.-fix{position:static!important;transform:none!important;width:100%!important;margin:20px 0!important}.trimal-editorial .p-pnLinks{margin:30px 0!important;gap:14px!important}.trimal-editorial .p-pnLinks__item{border:1px solid var(--ed-line)!important;border-radius:16px;background:#fff!important;overflow:hidden}.trimal-editorial .l-articleBottom__section{margin-top:36px!important}.trimal-editorial .l-articleBottom__title{font-family:"Hiragino Maru Gothic ProN","Hiragino Sans",sans-serif;font-weight:400;color:var(--ed-ink)!important}.trimal-editorial .p-articleFoot{padding-top:20px}
.trimal-editorial .p-toc{background:#f7f8ef!important;color:var(--ed-ink)!important;border:1px solid #e0e5d5!important;border-radius:16px!important;padding:24px!important}.trimal-editorial .p-toc__ttl{font-family:"Hiragino Maru Gothic ProN","Hiragino Sans",sans-serif;font-weight:400!important;font-size:18px!important}.trimal-editorial .ed-generated-toc ol{list-style:none;margin:14px 0 0;padding:0}.trimal-editorial .ed-generated-toc li{padding:7px 0;font-size:13px;line-height:1.85}.trimal-editorial .ed-generated-toc .ed-toc-h3{padding-left:16px;font-size:12px}.trimal-editorial .ed-generated-toc a{color:#354e45;text-decoration:none}
@media(max-width:1000px){.trimal-editorial .ed-desktop-nav{gap:14px;font-size:11px}.trimal-editorial .ed-header-inner{gap:18px}.trimal-editorial .ed-reading{grid-template-columns:minmax(0,1fr) 190px;gap:25px}.trimal-editorial .ed-reading-main>.post_content{padding:30px}.trimal-editorial .ed-cover{gap:26px}.trimal-editorial .ed-brand{width:140px}}
@media(max-width:760px){.trimal-editorial .ed-header-inner{width:calc(100% - 36px);min-height:76px}.trimal-editorial .ed-desktop-nav{display:none}.trimal-editorial .ed-brand{width:136px}.trimal-editorial .ed-mobile-nav{display:block;position:relative;font-size:12px}.trimal-editorial .ed-mobile-nav summary{padding:12px 0 12px 14px;cursor:pointer}.trimal-editorial .ed-mobile-nav nav{position:absolute;right:0;top:45px;width:min(280px,85vw);padding:14px 22px;background:#fffefa;border:1px solid var(--ed-line);border-radius:16px;box-shadow:0 10px 30px #354e4514}.trimal-editorial .ed-mobile-nav a{display:block;padding:12px 0;text-decoration:none}.trimal-editorial .ed-mobile-nav form{border-top:1px solid var(--ed-line);padding:15px 0}.trimal-editorial .ed-mobile-nav input{width:100%;margin:8px 0;padding:10px}.trimal-editorial .ed-mobile-nav button{padding:9px 16px}.trimal-editorial #content,.trimal-editorial .p-breadcrumb__list{width:calc(100% - 36px)!important}.trimal-editorial .p-breadcrumb__list{font-size:10px;padding:20px 0 26px!important}.trimal-editorial .ed-cover{display:flex;flex-direction:column;align-items:stretch;gap:22px;padding:0 0 30px}.trimal-editorial .ed-cover .c-postTitle__ttl{font-size:25px!important;letter-spacing:.015em!important}.trimal-editorial .ed-cover .p-articleHead{margin-top:16px!important}.trimal-editorial .p-articleThumb img{border-radius:20px 42px 18px 18px}.trimal-editorial .ed-reading{display:block;padding-bottom:30px}.trimal-editorial .ed-reading-sidebar{display:none}.trimal-editorial .ed-reading-main>.post_content{padding:25px 20px;border-radius:20px}.trimal-editorial.ed-collection #main_content>.l-mainContent__inner{padding:26px 20px!important;border-radius:20px}.trimal-editorial .ed-supplementary{grid-template-columns:1fr}.trimal-editorial .ed-preview{font-size:10px}.trimal-editorial .p-toc{padding:20px 17px!important}.trimal-editorial .ed-generated-toc li{font-size:12px}.trimal-editorial .ed-generated-toc .ed-toc-h3{font-size:11px}.trimal-editorial .c-shareBtns__list{flex-wrap:wrap}.trimal-editorial .p-pnLinks{flex-direction:column}}
@media(prefers-reduced-motion:reduce){.trimal-editorial *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
/* Existing promotion links stay available in a calm footer panel. */
.trimal-editorial #bfb_content_pc,.trimal-editorial #bfb_content_sp{position:static!important;transform:none!important;background:#edf2e9!important;color:#354e45!important;box-shadow:none!important;width:100%!important;padding:22px 18px!important;border-top:1px solid #d9e5dd!important}.trimal-editorial [id^="bfb_content"] a{background:#396e5b!important;color:#fff!important;box-shadow:none!important;border-radius:30px!important;font-size:13px!important}.trimal-editorial [id^="bfb_content"] .bfb_close{display:none!important}.trimal-editorial .c-postTitle__date{text-align:left!important}.trimal-editorial .p-breadcrumb{box-shadow:none!important}
.trimal-editorial .p-breadcrumb__list{margin-inline:auto!important}.trimal-editorial .post_content .ed-generated-toc{display:block!important;visibility:visible!important;height:auto!important;max-height:none!important}.trimal-editorial .ed-generated-toc .p-toc__ttl{display:block!important}
/* Old animation plugins must not leave actual article content invisible. */
body.trimal-editorial #main_content .animated{visibility:visible!important;opacity:1!important;animation:none!important;transform:none!important}
.trimal-editorial .c-pageTitle__inner{display:inline!important;border:0!important;padding:0!important;background:none!important}.trimal-editorial .c-pageTitle__inner:before,.trimal-editorial .c-pageTitle__inner:after{content:none!important}
body.trimal-editorial #main_content .wp-block-table[data-editorial-columns="2"] table,body.trimal-editorial #main_content .wp-block-table[data-editorial-columns="1"] table{min-width:0!important;table-layout:fixed}.trimal-editorial #search-results li{padding:17px 0;border-bottom:1px solid #d9e5dd;line-height:1.85}.trimal-editorial #search-results ul{list-style:none;padding:0}.trimal-editorial #search-results a{text-decoration:underline;text-underline-offset:4px}.trimal-editorial #main_content>.l-mainContent__inner>form{display:flex;gap:12px;flex-wrap:wrap;margin:25px 0}.trimal-editorial #main_content>.l-mainContent__inner>form input{padding:12px;border:1px solid #b8cbbf;border-radius:8px;max-width:100%;background:white}.trimal-editorial #main_content>.l-mainContent__inner>form button{padding:12px 22px;background:#396e5b;color:white;border-radius:24px;border:0}
.trimal-editorial #search-results h2{font-family:"Hiragino Maru Gothic ProN","Hiragino Sans",sans-serif;font-size:17px;font-weight:400;line-height:1.9;margin:0;padding:20px 0;border-bottom:1px solid #d9e5dd}.trimal-editorial #search-results h2 a{font-weight:400}.trimal-editorial.ed-collection #content{padding-top:24px!important}
/* Review fixes: redundant share controls, visible table affordance, readable mobile navigation. */
.trimal-editorial.ed-single-share .c-shareBtns.-fix{display:none!important}
.trimal-editorial .c-pageTitle__subTitle{position:static!important;top:auto!important;bottom:auto!important;font-size:14px!important;display:inline-block;vertical-align:baseline;margin-left:12px;color:#59695f}
@media(max-width:760px){
 .trimal-editorial .p-breadcrumb__list{font-size:12px!important;line-height:1.8}
 body.trimal-editorial #main_content .ed-generated-toc li{font-size:14px!important;padding:0!important}
 body.trimal-editorial #main_content .ed-generated-toc .ed-toc-h3{font-size:13px!important;padding-left:14px!important}
 body.trimal-editorial #main_content .ed-generated-toc a{display:block!important;padding:7px 0!important;min-height:24px;line-height:1.8}
 .trimal-editorial #main_content .wp-block-table:not([data-editorial-columns="1"]):not([data-editorial-columns="2"]):before{content:'表は横にスクロールできます →';display:block;position:sticky;left:0;padding:10px 12px;font-size:12px;line-height:1.7;color:#59695f;background:#f4f7f0}
}
/* Existing authenticated navigation is retained, including POST logout/search. */
body.trimal-editorial .trimal-site-nav{max-width:1180px;width:calc(100% - 36px);margin:18px auto;padding:12px 18px;border:1px solid #d9e5dd;border-radius:16px;background:#f2f6ed;color:#354e45;font-size:13px;gap:10px 22px;line-height:1.8}.trimal-editorial .trimal-site-nav a{color:#396e5b;text-underline-offset:4px}.trimal-editorial .trimal-site-nav button{background:#396e5b;color:white;border-radius:24px;padding:7px 16px;border:0;text-decoration:none}.trimal-editorial .integrated-search input{background:white;border:1px solid #b8cbbf;border-radius:8px;padding:12px}.trimal-editorial .integrated-search button{background:#396e5b;color:white;border:0;border-radius:24px;padding:12px 22px}.trimal-editorial .integrated-list li{border-color:#d9e5dd}.trimal-editorial .integrated-list a{font-weight:400;color:#396e5b;line-height:1.9}
body.trimal-editorial #main_content .c-pageTitle{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}body.trimal-editorial #main_content .c-pageTitle__inner{position:static!important;float:none!important;display:block!important;height:auto!important;max-height:none!important}
.trimal-editorial .ed-reading-sidebar li:before{flex:0 0 20px;white-space:nowrap}

/* Only the existing password form; no authentication or submit behavior changes. */
body.trimal-editorial form[action$="/__auth/login"]{margin:1.5rem 0 0;max-width:32rem}
body.trimal-editorial form[action$="/__auth/login"] label{display:block;line-height:1.8}
body.trimal-editorial form[action$="/__auth/login"] input[type="password"]{display:block;width:100%;max-width:100%;margin-top:8px;padding:12px;border:1px solid #b8cbbf;border-radius:10px;background:#fff;color:#354e45;font:inherit}
body.trimal-editorial form[action$="/__auth/login"] button{display:inline-block;margin-top:16px;min-height:44px;padding:11px 24px;border:0;border-radius:28px;background:#396e5b;color:#fff;font:inherit;line-height:1.5;cursor:pointer}
body.trimal-editorial form[action$="/__auth/login"] :focus-visible{outline:3px solid #719c88;outline-offset:3px}
/* Keep meaningful date metadata; hide the old decorative duplicate. */
body.trimal-editorial .ed-cover-copy:has(.c-postTimes time) .c-postTitle__date[aria-hidden="true"]{display:none!important}
body.trimal-editorial .ed-supplementary .widget_swell_index{display:none!important}
@media(max-width:760px){body.trimal-editorial #main_content .post_content table :is(td,th){font-size:13px!important}}
/* Readable inputs in the mobile menu, search page and password screen. */
body.trimal-editorial input[type="search"],body.trimal-editorial input[name="s"],body.trimal-editorial input[type="password"]{font-size:16px!important}

/* Trimal all-page finishing layer.
   Append to core.css after runtime-ui.css. ID scopes and targeted !important
   declarations also hold when legacy-compat.css / tail-ui.css load afterwards.
   Public DOM only: collection tabs, existing search forms, fixed-page shell,
   404 controls and footer navigation. No article-body or form behavior changes. */

/* Existing reveal animation must not hide a navigated page. */
body.trimal-editorial #content,
body.trimal-editorial #body_wrap .p-breadcrumb {
  animation: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* 1. Keep the existing new/popular tabs and their selected state. */
body.trimal-editorial.ed-collection #main_content .p-postListTab {
  width: 100% !important;
  max-width: 100% !important;
  margin: 32px 0 26px !important;
  padding: 0 !important;
}
body.trimal-editorial.ed-collection #main_content .p-postListTab .c-tabList {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  list-style: none !important;
}
body.trimal-editorial.ed-collection #main_content .p-postListTab .c-tabList__item {
  flex: 0 1 auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
}
body.trimal-editorial.ed-collection #main_content .p-postListTab .c-tabList__button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 118px;
  min-height: 44px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 22px !important;
  border: 1px solid #d9e5dd !important;
  border-radius: 999px !important;
  background: #f0f5ed !important;
  color: #354e45 !important;
  box-shadow: none !important;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: .02em;
  opacity: 1 !important;
  text-decoration: none !important;
  transform: none !important;
  cursor: pointer;
}
body.trimal-editorial.ed-collection #main_content .p-postListTab .c-tabList__button[aria-selected="true"] {
  border-color: #396e5b !important;
  background: #396e5b !important;
  color: #fff !important;
}
body.trimal-editorial.ed-collection #main_content .p-postListTab .c-tabList__button::before,
body.trimal-editorial.ed-collection #main_content .p-postListTab .c-tabList__button::after {
  content: none !important;
  display: none !important;
}

/* Category labels may remain over thumbnails, with an opaque readable pill. */
body.trimal-editorial.ed-collection #main_content .p-postList .p-postList__cat {
  max-width: calc(100% - 16px) !important;
  padding: 5px 10px !important;
  border: 1px solid #d4e2d6 !important;
  border-radius: 999px !important;
  background: #edf5ef !important;
  color: #354e45 !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.65 !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* 2. Search page, 404 search and mobile-menu search share one visual treatment.
   Names, labels, methods, actions, submit controls and live regions stay intact. */
body.trimal-editorial.ed-collection #main_content .c-searchForm,
body.trimal-editorial .ed-header .ed-mobile-nav .c-searchForm {
  position: relative !important;
  display: flex !important;
  align-items: stretch !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 680px !important;
  margin: 24px 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
body.trimal-editorial.ed-collection #main_content .c-searchForm input[name="s"],
body.trimal-editorial .ed-header .ed-mobile-nav .c-searchForm input[name="s"] {
  position: static !important;
  flex: 1 1 0 !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 11px 16px !important;
  border: 1px solid #bdcfc1 !important;
  border-radius: 13px !important;
  background: #fffcf5 !important;
  color: #354e45 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
}
body.trimal-editorial.ed-collection #main_content .c-searchForm input[name="s"]::placeholder,
body.trimal-editorial .ed-header .ed-mobile-nav .c-searchForm input[name="s"]::placeholder {
  color: #647569;
  opacity: 1;
}
body.trimal-editorial.ed-collection #main_content .c-searchForm button,
body.trimal-editorial .ed-header .ed-mobile-nav .c-searchForm button {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 68px !important;
  max-width: 100% !important;
  min-height: 48px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 11px 17px !important;
  border: 1px solid #396e5b !important;
  border-radius: 13px !important;
  background: #396e5b !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  transform: none !important;
  opacity: 1 !important;
  cursor: pointer;
}
body.trimal-editorial.ed-collection #main_content .c-searchForm button::before,
body.trimal-editorial .ed-header .ed-mobile-nav .c-searchForm button::before {
  color: #fff !important;
}
body.trimal-editorial.ed-collection #main_content .c-searchForm button:empty::before {
  content: '検索' !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  font-family: inherit !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}
body.trimal-editorial .ed-header .ed-mobile-nav .c-searchForm {
  align-items: flex-end !important;
  margin: 12px 0 3px !important;
  padding-top: 14px !important;
  border-top: 1px solid #d9e5dd !important;
}
body.trimal-editorial .ed-header .ed-mobile-nav .c-searchForm label {
  display: block !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  color: #59695f !important;
  font-size: 12px !important;
  line-height: 1.8 !important;
}
body.trimal-editorial .ed-header .ed-mobile-nav .c-searchForm label input[name="s"] {
  display: block !important;
  margin-top: 6px !important;
}
body.trimal-editorial .ed-header .ed-mobile-nav .c-searchForm button {
  align-self: flex-end !important;
  min-width: 56px !important;
  padding-inline: 12px !important;
}

/* 3. Existing 404 page, identified by its own heading (no URL assumptions). */
body.trimal-editorial.ed-collection #main_content .c-ttl404 {
  margin: 0 0 26px !important;
  padding: 0 0 23px !important;
  border: 0 !important;
  border-bottom: 1px solid #d9e5dd !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #354e45 !important;
  box-shadow: none !important;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif !important;
  font-size: clamp(24px, 3vw, 32px) !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  text-align: left !important;
  text-shadow: none !important;
  overflow-wrap: anywhere;
}
body.trimal-editorial.ed-collection #main_content .c-ttl404 .ed-404-line {
  display: inline-block;
}
body.trimal-editorial.ed-collection #main_content .l-mainContent__inner:has(> .c-ttl404) .post_content .u-ta-c {
  text-align: left !important;
}
body.trimal-editorial.ed-collection #main_content .l-mainContent__inner:has(> .c-ttl404) .is-style-more_btn {
  margin: 28px 0 0 !important;
  padding: 0 !important;
  text-align: left !important;
}
body.trimal-editorial.ed-collection #main_content .l-mainContent__inner:has(> .c-ttl404) .is-style-more_btn > a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 44px;
  padding: 10px 23px !important;
  border: 1px solid #cbdccc !important;
  border-radius: 999px !important;
  background: #f0f5ed !important;
  color: #396e5b !important;
  box-shadow: none !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  text-decoration: none !important;
}
body.trimal-editorial.ed-collection #main_content .l-mainContent__inner:has(> .c-ttl404) .is-style-more_btn > a::after {
  content: none !important;
  display: none !important;
}

/* 4. Fixed-page shell only: categories and lists contain p-postList and keep
   their existing width. Company/contact/privacy bodies and embeds are untouched. */
body.trimal-editorial.ed-collection #main_content > .l-mainContent__inner:has(> .post_content):not(:has(.p-postList)),
body.trimal-editorial.ed-collection #main_content > .l-mainContent__inner:has(> .c-searchForm),
body.trimal-editorial #body_wrap.page-id-454 #main_content > .l-mainContent__inner {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 890px !important;
  margin: 0 auto 40px !important;
}

/* Public LINE information page: preserve the existing instructions and URL. */
body.trimal-editorial #body_wrap.page-id-454 #main_content .post_content .has-border {
  margin: 28px 0 !important;
  padding: 24px 28px !important;
  border: 1px solid #d2e1d4 !important;
  border-radius: 18px !important;
  background: #f0f5ed !important;
  color: #354e45 !important;
  box-shadow: none !important;
  line-height: 2 !important;
  text-align: left !important;
}
body.trimal-editorial #body_wrap.page-id-454 #main_content .post_content .has-border::before,
body.trimal-editorial #body_wrap.page-id-454 #main_content .post_content .has-border::after {
  content: none !important;
  display: none !important;
}
body.trimal-editorial #body_wrap.page-id-454 #main_content .swell-block-button.green_.is-style-btn_shiny {
  margin: 26px 0 32px !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: left !important;
}
body.trimal-editorial #body_wrap.page-id-454 #main_content .swell-block-button.green_.is-style-btn_shiny .swell-block-button__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 48px;
  margin: 0 !important;
  padding: 15px 28px !important;
  border: 1px solid #396e5b !important;
  border-radius: 20px !important;
  background: #396e5b !important;
  color: #fff !important;
  box-shadow: none !important;
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  transform: none !important;
  animation: none !important;
}
body.trimal-editorial #body_wrap.page-id-454 #main_content .swell-block-button.green_.is-style-btn_shiny .swell-block-button__link::before,
body.trimal-editorial #body_wrap.page-id-454 #main_content .swell-block-button.green_.is-style-btn_shiny .swell-block-button__link::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}
body.trimal-editorial #body_wrap.page-id-454 #main_content .swell-block-button.green_.is-style-btn_shiny .swell-block-button__link :is(span, i) {
  color: inherit !important;
}

/* 5. Footer utility navigation. Keep all existing destinations and icon glyphs. */
body.trimal-editorial #footer .l-footer__foot {
  border-top: 1px solid #d9e5dd;
  padding: 30px 0 !important;
  color: #354e45 !important;
}
body.trimal-editorial #footer .l-footer__foot .c-iconList {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  list-style: none !important;
}
body.trimal-editorial #footer .l-footer__foot .c-iconList__item {
  margin: 0 !important;
  padding: 0 !important;
}
body.trimal-editorial #footer .l-footer__foot .c-iconList__link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid #cfddcf !important;
  border-radius: 50% !important;
  background: #fffcf5 !important;
  color: #396e5b !important;
  box-shadow: none !important;
  font-size: 17px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transform: none !important;
}
body.trimal-editorial #footer .l-footer__foot .c-iconList__icon,
body.trimal-editorial #footer .l-footer__foot .c-iconList__icon::before {
  color: #396e5b !important;
}
body.trimal-editorial #footer .l-footer__nav {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center;
  justify-content: center !important;
  gap: 4px 18px !important;
  max-width: 100%;
  margin: 0 0 14px !important;
  padding: 0 !important;
  list-style: none !important;
}
body.trimal-editorial #footer .l-footer__nav > li {
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body.trimal-editorial #footer .l-footer__nav a {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 9px 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #354e45 !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  text-decoration: none !important;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Visible keyboard focus overrides legacy tabs' hover outline suppression. */
body.trimal-editorial.ed-collection #main_content .p-postListTab .c-tabList__button:focus-visible,
body.trimal-editorial.ed-collection #main_content .c-searchForm :is(input, button):focus-visible,
body.trimal-editorial .ed-header .ed-mobile-nav .c-searchForm :is(input, button):focus-visible,
body.trimal-editorial #body_wrap.page-id-454 #main_content .swell-block-button.green_.is-style-btn_shiny .swell-block-button__link:focus-visible,
body.trimal-editorial.ed-collection #main_content .l-mainContent__inner:has(> .c-ttl404) .is-style-more_btn > a:focus-visible,
body.trimal-editorial #footer .l-footer__foot :is(.c-iconList__link, .l-footer__nav a):focus-visible {
  outline: 3px solid #a46b4e !important;
  outline-offset: 4px !important;
}
@media (hover: hover) {
  body.trimal-editorial.ed-collection #main_content .p-postListTab .c-tabList__button[aria-selected="false"]:hover {
    border-color: #8aaa96 !important;
    background: #e3eedf !important;
  }
  body.trimal-editorial #footer .l-footer__foot .c-iconList__link:hover {
    border-color: #8aaa96 !important;
    background: #f0f5ed !important;
  }
  body.trimal-editorial #footer .l-footer__nav a:hover {
    color: #396e5b !important;
    text-decoration: underline !important;
    text-underline-offset: 4px;
  }
}
@media (max-width: 760px) {
  body.trimal-editorial.ed-collection #main_content .c-ttl404 { font-size: clamp(20px, 6.15vw, 24px) !important; }
  body.trimal-editorial.ed-collection #main_content .c-ttl404 .ed-404-line { display: block; }
  body.trimal-editorial.ed-collection #main_content .p-postListTab { margin: 25px 0 22px !important; }
  body.trimal-editorial.ed-collection #main_content .p-postListTab .c-tabList { gap: 8px !important; }
  body.trimal-editorial.ed-collection #main_content .p-postListTab .c-tabList__button { min-width: 106px; padding-inline: 17px !important; }
  body.trimal-editorial.ed-collection #main_content .c-searchForm { gap: 7px !important; }
  body.trimal-editorial.ed-collection #main_content .c-searchForm input[name="s"] { padding-inline: 12px !important; }
  body.trimal-editorial #footer .l-footer__nav { gap: 2px 15px !important; }
  body.trimal-editorial #body_wrap.page-id-454 #main_content .post_content .has-border { padding: 20px !important; border-radius: 16px !important; }
  body.trimal-editorial #body_wrap.page-id-454 #main_content .swell-block-button.green_.is-style-btn_shiny .swell-block-button__link { padding: 14px 22px !important; font-size: 15px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.trimal-editorial.ed-collection #main_content .p-postListTab .c-tabList__button,
  body.trimal-editorial #footer .l-footer__foot .c-iconList__link {
    transition: none !important;
  }
}

/* Keep Google Form title on two natural lines without changing its content. */
@media (max-width: 430px) {
  body.trimal-editorial #body_wrap.page-id-446 #main_content .post_content iframe {
    display: block;
    width: 100%;
    max-width: 300px;
    margin-inline: auto;
  }
}

/* Contact: show the form sooner on entry, keeping navigation and both titles. */
body.trimal-editorial #body_wrap.page-id-446 .trimal-site-nav {
  margin-block: 12px;
}
body.trimal-editorial #body_wrap.page-id-446 .p-breadcrumb__list {
  padding-block: 8px !important;
}
body.trimal-editorial #body_wrap.page-id-446 #content {
  padding-top: 8px !important;
}
body.trimal-editorial #body_wrap.page-id-446 #main_content > .l-mainContent__inner {
  padding-block: 16px !important;
}
body.trimal-editorial #body_wrap.page-id-446 #main_content .c-pageTitle {
  padding-bottom: 8px !important;
  margin-bottom: 0 !important;
}
body.trimal-editorial #body_wrap.page-id-446 #main_content .post_content {
  margin-top: 12px !important;
}

/* Contact upfront: preserve the main menu; remove duplicate pre-form chrome. */
body.trimal-editorial #body_wrap.page-id-446 .ed-header-inner {
  min-height: 64px;
}
body.trimal-editorial #body_wrap.page-id-446 > .trimal-site-nav,
body.trimal-editorial #body_wrap.page-id-446 > .p-breadcrumb {
  display: none;
}
body.trimal-editorial #body_wrap.page-id-446 #content,
body.trimal-editorial #body_wrap.page-id-446 #main_content > .l-mainContent__inner {
  padding-block: 0 !important;
}
/* Keep the outer page heading available to screen readers; Google has a visible title. */
body.trimal-editorial #body_wrap.page-id-446 #main_content .c-pageTitle {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0 !important;
}
body.trimal-editorial #body_wrap.page-id-446 #main_content .post_content {
  margin-top: 0 !important;
}
body.trimal-editorial #body_wrap.page-id-446 #main_content .post_content iframe {
  display: block;
  height: 1200px;
  margin-inline: auto;
}

body .trimal-operated-salon {
  display:grid; grid-template-columns:minmax(220px, .8fr) minmax(0, 1.5fr); gap:32px;
  align-items:center; max-width:900px; margin:24px auto 40px; padding:20px;
  border:1px solid #d6e0d3; border-radius:24px; background:#f0f4e9;
}
body .trimal-operated-salon__photo { display:block; overflow:hidden; border-radius:16px; }
body .trimal-operated-salon__photo img { display:block; position:static; width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; }
body .trimal-operated-salon__copy p { margin:0 0 10px; font-size:14px; line-height:1.9; }
body .trimal-operated-salon__copy .trimal-operated-salon__label { color:#506650; font-size:12px; letter-spacing:.05em; }
body .trimal-operated-salon__copy h3 { margin:0 0 12px; padding:0; border:0; font-size:22px; line-height:1.4; color:#31493b; }
body .trimal-operated-salon__link { display:inline-flex; align-items:center; gap:16px; min-height:44px; color:#335b44; font-size:14px; text-decoration:underline; text-underline-offset:5px; }
body .ed-author-salon-link { margin:18px 0 0; font-size:14px; line-height:1.9; }
body .ed-author-salon-link a { color:#39614c; text-decoration:underline; text-underline-offset:4px; }
body .ed-author-salon-link.ed-author-salon-fallback { margin:28px 0; padding-top:20px; border-top:1px solid #d9e3d5; }
body .ed-author-salon-fallback .ed-author-salon-name { display:block; margin-bottom:6px; color:#596650; font-size:13px; }
@media(max-width:650px) {
  body .trimal-operated-salon { grid-template-columns:1fr; gap:18px; padding:16px; border-radius:20px; }
  body .trimal-operated-salon__photo img { aspect-ratio:16/10; }
  body .trimal-operated-salon__copy h3 { font-size:21px; }
}
body .trimal-operated-salon a:focus-visible,
body .ed-author-salon-link a:focus-visible { outline:2px solid #396e5b; outline-offset:5px; }
