
/* Official logo integration and white brand base */
html,
body,
#body_wrap {
  background-color: #fff !important;
}

#header.l-header,
#fix_header.l-fixHeader {
  background-color: rgba(255, 255, 255, .99) !important;
}

html body #header .c-headLogo.-img .c-headLogo__link,
html body #fix_header .c-headLogo.-img .c-headLogo__link {
  align-items: center !important;
  background: none !important;
  block-size: auto !important;
  display: flex !important;
  font-size: 0 !important;
  gap: 0 !important;
  grid-template-areas: none !important;
  grid-template-columns: none !important;
  inline-size: auto !important;
  justify-content: flex-start !important;
  line-height: 0 !important;
  max-inline-size: 100% !important;
  min-block-size: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
}

html body #header .c-headLogo.-img .c-headLogo__link::before,
html body #header .c-headLogo.-img .c-headLogo__link::after,
html body #fix_header .c-headLogo.-img .c-headLogo__link::before,
html body #fix_header .c-headLogo.-img .c-headLogo__link::after {
  content: none !important;
  display: none !important;
}

html body #header .c-headLogo.-img .c-headLogo__img,
html body #header .c-headLogo.-img .c-headLogo__link img,
html body #fix_header .c-headLogo.-img .c-headLogo__img,
html body #fix_header .c-headLogo.-img .c-headLogo__link img {
  block-size: auto !important;
  display: block !important;
  inline-size: clamp(185px, 17vw, 210px) !important;
  margin: 0 !important;
  max-block-size: 54px !important;
  max-inline-size: 100% !important;
  object-fit: contain !important;
}

html body #fix_header .c-headLogo.-img .c-headLogo__img,
html body #fix_header .c-headLogo.-img .c-headLogo__link img {
  inline-size: 150px !important;
  max-block-size: 39px !important;
}

@media (max-width: 959.98px) {
  html body #header .c-headLogo.-img .c-headLogo__link {
    justify-content: center !important;
    min-inline-size: 0 !important;
  }

  html body #header .c-headLogo.-img .c-headLogo__img,
  html body #header .c-headLogo.-img .c-headLogo__link img {
    inline-size: min(clamp(180px, 32vw, 250px), calc(100vw - 130px)) !important;
    max-block-size: 59px !important;
  }
}

@media (max-width: 599px) {
  html body #header .c-headLogo.-img .c-headLogo__img,
  html body #header .c-headLogo.-img .c-headLogo__link img {
    inline-size: min(180px, calc(100vw - 130px)) !important;
    max-block-size: 47px !important;
  }
}

@media (max-width: 374px) {
  html body #header .c-headLogo.-img .c-headLogo__img,
  html body #header .c-headLogo.-img .c-headLogo__link img {
    inline-size: min(165px, calc(100vw - 116px)) !important;
    max-block-size: 43px !important;
  }
}

@media (max-width: 340px) {
  html body #header .c-headLogo.-img .c-headLogo__img,
  html body #header .c-headLogo.-img .c-headLogo__link img {
    inline-size: min(150px, calc(100vw - 110px)) !important;
    max-block-size: 39px !important;
  }
}

html body :is(#body_wrap.home.cosme-clean-professional, #body_wrap:not(.home)) ~ footer.cosme-site-footer {
  background: #fff !important;
  border-top: 1px solid #dfe7e6 !important;
  color: #17383c !important;
}

html body :is(#body_wrap.home.cosme-clean-professional, #body_wrap:not(.home)) ~ footer.cosme-site-footer::before {
  background: linear-gradient(90deg, #123d45, #d9bc7d, #123d45) !important;
  height: 3px !important;
}

html body :is(#body_wrap.home.cosme-clean-professional, #body_wrap:not(.home)) ~ footer.cosme-site-footer :is(h2, h3, h4, strong, b, p, li, a, span, dt, dd) {
  color: #17383c !important;
}

html body footer.cosme-site-footer .cosme-site-footer__logo {
  background: #fff url("https://cosme-ma-center.jp/wp-content/uploads/2026/06/cosme-logo-header.png") left center / contain no-repeat !important;
  display: block !important;
  inline-size: min(100%, 350px) !important;
  min-block-size: 90px !important;
  position: relative !important;
}

html body footer.cosme-site-footer .cosme-site-footer__logo > .cosme-site-footer__mark {
  display: none !important;
}

html body footer.cosme-site-footer .cosme-site-footer__logo > div {
  block-size: 1px !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  inline-size: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  position: absolute !important;
  white-space: nowrap !important;
}

html body footer.cosme-site-footer .cosme-site-footer__lead,
html body footer.cosme-site-footer .cosme-site-footer__company dd,
html body footer.cosme-site-footer .cosme-site-footer__cta-text span,
html body footer.cosme-site-footer .cosme-site-footer__bottom {
  color: #536668 !important;
}

html body footer.cosme-site-footer .cosme-site-footer__sub,
html body footer.cosme-site-footer .cosme-site-footer__company dt,
html body footer.cosme-site-footer .cosme-site-footer__nav h3 {
  color: #6f5425 !important;
}

html body footer.cosme-site-footer .cosme-site-footer__badges span {
  background: #f7f9f8 !important;
  border-color: #d6e0de !important;
  color: #17383c !important;
}

html body footer.cosme-site-footer .cosme-site-footer__cta,
html body footer.cosme-site-footer .cosme-site-footer__bottom,
html body footer.cosme-site-footer h3 {
  border-color: #dfe7e6 !important;
}

html body footer.cosme-site-footer .cosme-site-footer__list a,
html body footer.cosme-site-footer .cosme-site-footer__company a {
  color: #17383c !important;
}

html body footer.cosme-site-footer .cosme-site-footer__button.-seller {
  background: #713447 !important;
  border-color: #713447 !important;
  color: #fff !important;
}

html body footer.cosme-site-footer .cosme-site-footer__button.-buyer {
  background: #fff !important;
  border-color: #6f8a80 !important;
  color: #17383c !important;
}

@media (max-width: 720px) {
  html body footer.cosme-site-footer .cosme-site-footer__logo {
    background-position: center !important;
    inline-size: min(100%, 300px) !important;
    margin-inline: auto !important;
    min-block-size: 78px !important;
  }
}

/* Home footer state override after the editorial dark-footer layer */
html body #body_wrap.home.cosme-clean-professional.cosme-editorial-v120-ready
  ~ footer.cosme-site-footer .cosme-site-footer__list a:is(:link, :visited),
html body #body_wrap.home.cosme-clean-professional.cosme-editorial-v120-ready
  ~ footer.cosme-site-footer .cosme-site-footer__company a:is(:link, :visited) {
  color: #17383c !important;
}

html body #body_wrap.home.cosme-clean-professional.cosme-editorial-v120-ready
  ~ footer.cosme-site-footer .cosme-site-footer__list a:is(:hover, :focus-visible),
html body #body_wrap.home.cosme-clean-professional.cosme-editorial-v120-ready
  ~ footer.cosme-site-footer .cosme-site-footer__company a:is(:hover, :focus-visible) {
  color: #0b292e !important;
}

html body #body_wrap.home.cosme-clean-professional.cosme-editorial-v120-ready
  ~ footer.cosme-site-footer .cosme-site-footer__list a::before {
  background: #8a642b !important;
}

html body #body_wrap.home.cosme-clean-professional.cosme-editorial-v120-ready
  ~ footer.cosme-site-footer .cosme-site-footer__button.-buyer:is(:link, :visited) {
  background: #fff !important;
  border-color: #6f8a80 !important;
  color: #17383c !important;
}

html body #body_wrap.home.cosme-clean-professional.cosme-editorial-v120-ready
  ~ footer.cosme-site-footer .cosme-site-footer__button.-buyer:is(:hover, :focus-visible) {
  background: #f3f7f6 !important;
  border-color: #123d45 !important;
  color: #0b292e !important;
}

/* Footer structure repair: the live markup has three top-level columns */
html body #body_wrap.home.cosme-clean-professional.cosme-editorial-v120-ready
  ~ footer.cosme-site-footer .cosme-site-footer__badges span {
  background: #f7f9f8 !important;
  border-color: #d6e0de !important;
  color: #17383c !important;
}

@media (min-width: 981px) {
  html body footer.cosme-site-footer .cosme-site-footer__top {
    grid-template-columns:
      minmax(360px, 1.45fr)
      minmax(170px, .65fr)
      minmax(260px, 1fr) !important;
  }
}

