/**
 * SP header / drawer visibility (2026-09-16)
 * - Blue drawer: light text + inverted COSMO logo
 * - Embroidery: COSMO mark in SP header bar
 * - Search removed from header markup; hide legacy selectors
 */

/* Legacy search chrome (removed from header.php; keep hidden if cached HTML) */
.c-gSearcBtn,
.c-drawerSearch {
  display: none !important;
}

/* ── SP header bar: COSMO (embroidery section) ── */
@media screen and (max-width: 768px) {
  body.is-emb-section .c-gHeadSp__logo {
    width: auto;
    max-width: 28%;
  }

  .c-gHeadSp__cosmo {
    float: left;
    height: 44px;
    margin-left: 3%;
    display: flex;
    align-items: center;
  }

  .c-gHeadSp__cosmoLink {
    display: inline-flex;
    align-items: center;
    line-height: 0;
  }

  .c-gHeadSp__cosmoLink img {
    display: block;
    height: 40px;
    width: auto;
    max-width: 150px;
  }
}

/* ── SP drawer: contrast on #005FB0 ── */
@media screen and (max-width: 768px) {
  .c-drawerMenu__cosmo {
    border-bottom-color: #337FC0;
    padding-top: 1.2rem;
  }

  /* Dark wordmark → white on blue drawer */
  .c-drawerCosmoLink img {
    filter: brightness(0) invert(1);
  }

  .drawer-brand,
  .drawer-menu-item {
    color: #fff !important;
  }

  .c-drawerBtn__in {
    color: #fff;
  }

  /* JAPAN / GLOBAL: inactive muted white, active solid white */
  .drawer-nav .c-gHeadPc__c {
    margin-top: 1.8rem;
    margin-bottom: 0.4rem;
    color: #fff;
  }

  .drawer-nav .c-gHeadPc__cswitch,
  .drawer-nav a.c-gHeadPc__cswitch,
  .drawer-nav a.c-gHeadPc__cswitch:link,
  .drawer-nav a.c-gHeadPc__cswitch:visited {
    color: rgba(255, 255, 255, 0.72) !important;
  }

  .drawer-nav .c-gHeadPc__cswitch.on,
  .drawer-nav .c-gHeadPc__c .u-fcolor--darkblue {
    color: #fff !important;
  }

  .drawer-nav .c-gHeadPc__csep {
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0.15em;
  }
}
