
/* BellWood common header/footer v2 - complete isolation */
.bw-common-header,
.bw-common-header *,
.bw-common-menu,
.bw-common-menu *,
.bw-common-mobile-menu,
.bw-common-mobile-menu *,
.bw-common-footer-menu,
.bw-common-footer-menu *,
.bw-common-footer,
.bw-common-footer *{
  box-sizing:border-box;
}

html body .bw-common-header{
  display:block!important;
  position:relative!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:#fff!important;
  text-align:left!important;
  overflow:visible!important;
}

html body .bw-common-header-inner{
  display:flex!important;
  position:relative!important;
  width:min(1480px,100%)!important;
  max-width:1480px!important;
  min-height:100px!important;
  margin:0 auto!important;
  padding:10px 4vw!important;
  align-items:center!important;
  justify-content:space-between!important;
  flex-direction:row!important;
  gap:24px!important;
  background:#fff!important;
  text-align:left!important;
}

html body .bw-common-logo{
  display:block!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

html body .bw-common-logo img{
  display:block!important;
  width:360px!important;
  max-width:42vw!important;
  height:auto!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  object-fit:contain!important;
}

html body .bw-common-contact{
  display:flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-direction:row!important;
  gap:18px!important;
  margin:0!important;
  padding:0!important;
}

html body .bw-common-contact address{
  display:block!important;
  margin:0!important;
  padding:0!important;
  font-style:normal!important;
  font-weight:900!important;
  font-size:28px!important;
  line-height:1.05!important;
  color:#111!important;
  text-align:center!important;
  white-space:nowrap!important;
}

html body .bw-common-contact address i{
  display:inline!important;
  padding:0 8px 0 0!important;
  margin:0!important;
  font-size:1em!important;
  color:#111!important;
}

html body .bw-common-contact address span{
  display:block!important;
  margin:5px 0 0!important;
  padding:0!important;
  font-size:12px!important;
  line-height:1.2!important;
  color:#555!important;
  font-weight:700!important;
  text-align:center!important;
}

html body .bw-common-contact > a{
  display:block!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
}

html body .bw-common-contact img{
  display:block!important;
  width:216px!important;
  max-width:none!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  border-radius:9px!important;
}

html body .bw-common-menu{
  display:block!important;
  position:sticky!important;
  top:0!important;
  z-index:70!important;
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  background:#fff!important;
  border-top:1px solid #edf3ee!important;
  border-bottom:1px solid #e6eee7!important;
  text-align:left!important;
}

html body .bw-common-menu>ul{
  display:flex!important;
  width:min(1240px,96vw)!important;
  max-width:1240px!important;
  min-height:0!important;
  margin:0 auto!important;
  padding:0!important;
  align-items:stretch!important;
  justify-content:space-between!important;
  gap:0!important;
  list-style:none!important;
}

html body .bw-common-menu>ul>li{
  display:block!important;
  position:relative!important;
  flex:1 1 0!important;
  width:auto!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  text-align:center!important;
  list-style:none!important;
}

html body .bw-common-menu>ul>li>a{
  display:flex!important;
  position:relative!important;
  width:100%!important;
  min-height:78px!important;
  margin:0!important;
  padding:10px 8px 9px!important;
  align-items:center!important;
  justify-content:center!important;
  flex-direction:column!important;
  gap:3px!important;
  border:0!important;
  background:none!important;
  color:#111!important;
  font-size:14px!important;
  line-height:1.18!important;
  font-weight:900!important;
  white-space:nowrap!important;
  text-decoration:none!important;
  text-align:center!important;
}

html body .bw-common-menu>ul>li>a i{
  display:block!important;
  margin:0!important;
  padding:0!important;
  color:#2f7d3b!important;
  font-size:14px!important;
  line-height:1!important;
}

html body .bw-common-menu>ul>li>a::after{
  content:none!important;
}

html body .bw-common-menu>ul>li>a:hover,
html body .bw-common-menu>ul>li.is-active>a{
  color:#2f7d3b!important;
}

html body .bw-common-menu>ul>li.is-active>a::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  width:74px!important;
  height:3px!important;
  left:50%!important;
  right:auto!important;
  bottom:0!important;
  margin:0!important;
  transform:translateX(-50%)!important;
  border-radius:99px!important;
  background:#2f7d3b!important;
}

html body .bw-common-menu-button,
html body .bw-common-mobile-menu{
  display:none!important;
}

/* Footer */
html body .bw-common-footer-menu{
  display:flex!important;
  width:100%!important;
  margin:0!important;
  padding:22px 5vw!important;
  justify-content:center!important;
  align-items:flex-start!important;
  gap:8vw!important;
  background:#2f7d3b!important;
  color:#fff!important;
}
html body .bw-common-footer-menu ul{
  margin:0!important;
  padding:0!important;
  list-style:none!important;
}
html body .bw-common-footer-menu li{margin:6px 0!important;padding:0!important}
html body .bw-common-footer-menu a{color:#fff!important;text-decoration:none!important}
html body .bw-common-footer{
  display:block!important;
  width:100%!important;
  margin:0!important;
  padding:18px!important;
  background:#fff!important;
  color:#777!important;
  text-align:center!important;
}
html body .bw-common-footer a{color:#777!important;text-decoration:none!important}

/* Same compact header on every notebook page */
@media (min-width:981px) and (max-height:900px){
  html body .bw-common-header-inner{
    min-height:88px!important;
    padding-top:6px!important;
    padding-bottom:6px!important;
  }
  html body .bw-common-logo img{
    width:320px!important;
  }
  html body .bw-common-contact address{
    font-size:25px!important;
  }
  html body .bw-common-menu>ul>li>a{
    min-height:68px!important;
    padding-top:7px!important;
    padding-bottom:6px!important;
    font-size:13px!important;
  }
}

/* Mobile */
@media(max-width:1100px){
  html body .bw-common-header-inner{
    display:flex!important;
    width:100%!important;
    max-width:none!important;
    min-height:92px!important;
    margin:0!important;
    padding:10px 82px 10px 14px!important;
    justify-content:flex-start!important;
  }
  html body .bw-common-logo{
    width:100%!important;
    min-width:0!important;
  }
  html body .bw-common-logo img{
    width:100%!important;
    max-width:360px!important;
  }
  html body .bw-common-contact,
  html body .bw-common-menu{
    display:none!important;
  }
  html body .bw-common-menu-button{
    display:block!important;
    position:fixed!important;
    z-index:1001!important;
    right:14px!important;
    top:18px!important;
    width:54px!important;
    height:62px!important;
    margin:0!important;
    padding:9px 10px 5px!important;
    border:0!important;
    border-radius:10px!important;
    background:#fff!important;
    box-shadow:0 5px 18px rgba(0,0,0,.13)!important;
  }
  html body .bw-common-menu-button span{
    display:block!important;
    height:3px!important;
    margin:5px 0!important;
    padding:0!important;
    border-radius:99px!important;
    background:#2f7d3b!important;
  }
  html body .bw-common-menu-button small{
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:#2f7d3b!important;
    font-size:10px!important;
    line-height:1!important;
    font-weight:900!important;
  }
  html body .bw-common-mobile-menu{
    display:none!important;
    position:fixed!important;
    z-index:1000!important;
    inset:0!important;
    margin:0!important;
    padding:80px 24px 24px!important;
    overflow:auto!important;
    background:rgba(47,125,59,.96)!important;
  }
  html body .bw-common-mobile-menu.is-open{display:block!important}
  html body .bw-common-mobile-menu nav{
    display:block!important;
    margin:0!important;
    padding:20px!important;
    background:#fff!important;
    border-radius:20px!important;
  }
  html body .bw-common-mobile-menu ul{
    display:block!important;
    margin:0!important;
    padding:0!important;
    list-style:none!important;
  }
  html body .bw-common-mobile-menu li{
    display:block!important;
    margin:0!important;
    padding:0!important;
    border-bottom:1px solid #e4eee5!important;
  }
  html body .bw-common-mobile-menu a{
    display:block!important;
    padding:13px 8px!important;
    color:#222!important;
    text-align:center!important;
    font-weight:900!important;
    text-decoration:none!important;
  }
  html body .bw-common-mobile-menu i{
    display:block!important;
    margin:0 0 4px!important;
    padding:0!important;
    color:#2f7d3b!important;
  }
  html body .bw-common-footer-menu{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:20px!important;
    padding-bottom:80px!important;
  }
}
@media(max-width:560px){
  html body .bw-common-header-inner{padding-right:76px!important}
  html body .bw-common-logo img{max-width:300px!important}
  html body .bw-common-footer-menu{grid-template-columns:1fr!important}
}




/* ===== Common typography and icon fix v4 ===== */

/* 共通ヘッダー内の通常文字 */
html body .bw-common-header,
html body .bw-common-menu,
html body .bw-common-mobile-menu,
html body .bw-common-footer-menu,
html body .bw-common-footer{
  font-family:
    "ヒラギノ丸ゴ Pro",
    "Hiragino Maru Gothic Pro",
    "ヒラギノ角ゴ Pro",
    "Hiragino Kaku Gothic Pro",
    "メイリオ",
    Meiryo,
    Osaka,
    "ＭＳ Ｐゴシック",
    "MS PGothic",
    sans-serif!important;
}

/* 電話番号は添付画像の太く見やすい字体へ統一 */
html body .bw-common-contact address{
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif!important;
  font-size:30px!important;
  font-weight:700!important;
  line-height:1.02!important;
  letter-spacing:0!important;
  font-variant-numeric:lining-nums tabular-nums!important;
}

html body .bw-common-contact address span{
  font-family:
    "ヒラギノ丸ゴ Pro",
    "Hiragino Maru Gothic Pro",
    "メイリオ",
    Meiryo,
    sans-serif!important;
  font-size:12px!important;
  font-weight:700!important;
  letter-spacing:0!important;
}

/* Font Awesomeのロゴを確実に復元 */
html body .bw-common-header .fas,
html body .bw-common-menu .fas,
html body .bw-common-mobile-menu .fas{
  font-family:"Font Awesome 5 Free"!important;
  font-weight:900!important;
  font-style:normal!important;
}

html body .bw-common-header .far,
html body .bw-common-menu .far,
html body .bw-common-mobile-menu .far{
  font-family:"Font Awesome 5 Free"!important;
  font-weight:400!important;
  font-style:normal!important;
}

html body .bw-common-header .fab,
html body .bw-common-menu .fab,
html body .bw-common-mobile-menu .fab{
  font-family:"Font Awesome 5 Brands"!important;
  font-weight:400!important;
  font-style:normal!important;
}

/* ノートPCでも電話番号の字体と大きさは維持 */
@media (min-width:981px) and (max-height:900px){
  html body .bw-common-contact address{
    font-size:30px!important;
  }
}



/* ===== BellWood Ver.1 menu final tune 20260716 ===== */

/* 7項目を完全均等配置 */
html body .bw-common-menu>ul>li{
  flex:1 1 calc(100% / 7)!important;
  width:calc(100% / 7)!important;
}

/* 文字の途中で不自然に改行させない */
html body .bw-common-menu>ul>li>a{
  word-break:keep-all!important;
  overflow-wrap:normal!important;
  line-break:strict!important;
}

/* メニューを少し洗練 */
html body .bw-common-menu>ul>li>a{
  transition:color .2s ease, background-color .2s ease!important;
}
html body .bw-common-menu>ul>li>a:hover{
  background:rgba(47,125,59,.035)!important;
}

/* スマホメニューでも建築・リフォーム削除後の余白を整える */
html body .bw-common-mobile-menu a{
  word-break:keep-all!important;
  overflow-wrap:normal!important;
}

/* ===== BellWood footer renewal 20260717 ===== */
html body .bw-footer-cta,
html body .bw-footer-cta *,
html body .bw-site-footer,
html body .bw-site-footer *{box-sizing:border-box;}
html body .bw-common-footer-menu,
html body .bw-common-footer{display:none!important;}

html body .bw-footer-cta{
  padding:54px 4vw;
  background:#fff;
}
html body .bw-footer-cta__inner{
  width:min(1240px,100%);
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr);
  gap:44px;
  align-items:center;
  padding:42px 48px;
  border-radius:24px;
  background:linear-gradient(135deg,#216f34 0%,#2f8d43 58%,#3ca14e 100%);
  box-shadow:0 24px 60px rgba(29,91,45,.22);
  overflow:hidden;
  position:relative;
}
html body .bw-footer-cta__inner:after{
  content:"";
  position:absolute;
  width:320px;height:320px;
  right:-90px;top:-155px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.18);
  box-shadow:0 0 0 42px rgba(255,255,255,.04),0 0 0 84px rgba(255,255,255,.025);
  pointer-events:none;
}
html body .bw-footer-cta__copy{position:relative;z-index:1;color:#fff;}
html body .bw-footer-cta__eyebrow{display:block;font-size:12px;font-weight:900;letter-spacing:.18em;opacity:.82;margin-bottom:12px;}
html body .bw-footer-cta h2{margin:0 0 12px;color:#fff;font-size:clamp(28px,3.2vw,46px);line-height:1.35;font-weight:950;letter-spacing:.02em;}
html body .bw-footer-cta p{margin:0;color:rgba(255,255,255,.9);font-size:15px;line-height:1.8;font-weight:750;}
html body .bw-footer-cta__actions{position:relative;z-index:1;display:grid;gap:12px;}
html body .bw-footer-cta__actions a{min-height:62px;border-radius:12px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;text-decoration:none!important;font-weight:950;transition:.2s ease;}
html body .bw-footer-cta__actions a:hover{transform:translateY(-2px);}
html body .bw-footer-cta__actions i{font-style:normal;font-size:28px;font-weight:400;line-height:1;}
html body .bw-footer-cta__primary{background:#fff;color:#246f35!important;box-shadow:0 12px 30px rgba(0,0,0,.16);}
html body .bw-footer-cta__secondary{border:1px solid rgba(255,255,255,.48);color:#fff!important;background:rgba(255,255,255,.08);}

html body .bw-site-footer{background:#f5f8f5;color:#233128;border-top:1px solid #e3ece4;}
html body .bw-site-footer__inner{width:min(1240px,92vw);margin:0 auto;padding:52px 0 42px;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(0,1.35fr);gap:72px;}
html body .bw-site-footer__logo{display:inline-block;margin-bottom:16px;}
html body .bw-site-footer__logo img{display:block;width:min(330px,100%);height:auto;filter:none!important;}
html body .bw-site-footer__tagline{margin:0 0 6px;color:#236f35;font-size:20px;font-weight:950;}
html body .bw-site-footer__services{margin:0 0 24px;color:#546158;font-size:13px;font-weight:800;line-height:1.7;}
html body .bw-site-footer__company{padding-top:20px;border-top:1px solid #dce7dd;}
html body .bw-site-footer__company p{margin:4px 0;color:#4f5d53;font-size:13px;line-height:1.7;font-weight:750;}
html body .bw-site-footer__company a{color:#236f35!important;text-decoration:none!important;font-weight:900;}
html body .bw-site-footer__nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:34px;}
html body .bw-site-footer__nav>div{display:flex;flex-direction:column;align-items:flex-start;}
html body .bw-site-footer__nav-title{margin:0 0 14px;color:#1f5f2c;font-size:15px;font-weight:950;}
html body .bw-site-footer__nav a{position:relative;display:inline-block;margin:0 0 10px;padding:2px 0;color:#37433a!important;text-decoration:none!important;font-size:13px;font-weight:800;line-height:1.5;}
html body .bw-site-footer__nav a:after{content:"";position:absolute;left:0;right:100%;bottom:0;height:1px;background:#2f7d3b;transition:right .2s ease;}
html body .bw-site-footer__nav a:hover{color:#2f7d3b!important;}
html body .bw-site-footer__nav a:hover:after{right:0;}
html body .bw-site-footer__bottom{border-top:1px solid #dde7de;width:min(1240px,92vw);margin:0 auto;padding:18px 0 22px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#778078;}
html body .bw-site-footer__bottom a{color:#667168!important;text-decoration:none!important;font-size:12px;font-weight:750;}
html body .bw-site-footer__bottom small{font-size:12px;letter-spacing:.03em;}

@media(max-width:900px){
  html body .bw-footer-cta{padding:34px 4vw;}
  html body .bw-footer-cta__inner{grid-template-columns:1fr;padding:34px 28px;gap:26px;border-radius:20px;}
  html body .bw-site-footer__inner{grid-template-columns:1fr;gap:38px;padding:42px 0 34px;}
}
@media(max-width:700px){
  html body .bw-footer-cta{padding:24px 14px;}
  html body .bw-footer-cta__inner{padding:28px 20px;border-radius:16px;}
  html body .bw-footer-cta h2{font-size:27px;}
  html body .bw-footer-cta h2 br{display:none;}
  html body .bw-footer-cta__actions a{min-height:58px;}
  html body .bw-site-footer__inner{width:min(100% - 32px,1240px);padding:36px 0 28px;}
  html body .bw-site-footer__nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px;}
  html body .bw-site-footer__nav>div:last-child{grid-column:1/-1;}
  html body .bw-site-footer__logo img{width:min(290px,100%);}
  html body .bw-site-footer__bottom{width:min(100% - 32px,1240px);display:grid;justify-items:start;gap:8px;padding-bottom:76px;}
}

/* ===== Footer logo center fix 20260717 ===== */
html body .bw-site-footer__brand{
  text-align:center!important;
}
html body .bw-site-footer__logo{
  display:flex!important;
  width:100%!important;
  align-items:center!important;
  justify-content:center!important;
  margin:0 auto 16px!important;
}
html body .bw-site-footer__logo img{
  display:block!important;
  margin:0 auto!important;
}


/* ===== Page floating action buttons 20260717 ===== */
html body .bw-page-fixed-cta{
  position:fixed!important;right:20px!important;bottom:20px!important;z-index:95!important;
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;
  min-height:64px!important;padding:0 28px!important;border-radius:999px!important;
  color:#fff!important;text-decoration:none!important;font-size:17px!important;font-weight:950!important;
  letter-spacing:.02em!important;box-shadow:0 16px 38px rgba(31,95,44,.25)!important;
  transition:transform .2s ease,box-shadow .2s ease,filter .2s ease!important;
}
html body .bw-page-fixed-cta:hover{transform:translateY(-3px)!important;filter:brightness(1.03)!important;box-shadow:0 22px 46px rgba(31,95,44,.32)!important;}
html body .bw-page-fixed-cta::after{content:'›';font-size:28px;line-height:1;font-weight:400;}
html body .bw-page-fixed-cta.assessment{background:linear-gradient(135deg,#ff7b21,#ff5a00)!important;box-shadow:0 16px 38px rgba(255,103,15,.28)!important;}
html body .bw-page-fixed-cta.buy{background:linear-gradient(135deg,#2f8d43,#17612a)!important;}
html body .bw-page-fixed-cta.company{background:linear-gradient(135deg,#236f35,#164d26)!important;}
@media(max-width:1000px){html body .bw-page-fixed-cta{display:none!important;}}

/* 8-item common navigation */
@media(min-width:1001px){html body .bw-common-menu>ul{width:min(1360px,98vw)!important;max-width:1360px!important;}html body .bw-common-menu>ul>li>a{font-size:13px!important;padding-left:5px!important;padding-right:5px!important;}}

/* Fixed page actions - final override */
@media (min-width:1001px){
  html body a.bw-page-fixed-cta{display:inline-flex!important;visibility:visible!important;opacity:1!important;}
}


/* ===== BellWood final corrections 20260717 ===== */
/* Legacy page-specific nth-child rules must never override common active state. */
html body #menubar.bw-common-menu>ul>li>a,
html body #menubar.bw-common-menu>ul>li>a:hover{
  color:#111!important;
}
html body #menubar.bw-common-menu>ul>li>a::after{
  content:none!important;
  display:none!important;
}
html body #menubar.bw-common-menu>ul>li.is-active>a{
  color:#2f7d3b!important;
}
html body #menubar.bw-common-menu>ul>li.is-active>a::after{
  content:""!important;
  display:block!important;
  position:absolute!important;
  width:74px!important;
  height:3px!important;
  left:50%!important;
  right:auto!important;
  bottom:0!important;
  transform:translateX(-50%)!important;
  border-radius:99px!important;
  background:#2f7d3b!important;
}
@media (min-width:1001px){
  html body a.bw-page-fixed-cta{
    display:inline-flex!important;
    position:fixed!important;
    right:20px!important;
    bottom:20px!important;
    z-index:2147483000!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
  }
}
