/*
 * Site header + mobile drawer (child theme).
 *
 * A port of the store's own header (store.seleb.co.jp) — see the comment above
 * quadra_child_header_dropdowns() in functions.php. Markup:
 * template-parts/sb-header.php + sb-drawer.php, behaviour: sb-header.js.
 *
 * Three layers, in this order:
 *  A. BASE — what the store's global CSS gives its header for free and this
 *     site doesn't (its `html{font-size:62.5%}`, global border-box, link and
 *     list resets ...), scoped to the header/drawer only.
 *  B. THE STORE'S OWN RULES — generated from the store's fs_original.css
 *     (every `.l_header*` rule, in file order) followed by the redesign's
 *     override block (future-shop/source/future-store-header.annotated.html),
 *     with the classes renamed l_header→sb_header, l_drawer→sb_drawer, the
 *     generic ones (over/img/txt/icon/...) prefixed, `on`→`is-open`, and
 *     EVERY rem converted to px: the store has 1rem = 10px, this site's root
 *     is 16px, so a plain copy would render 1.6x too big.
 *  C. WORDPRESS-SPECIFIC — the sticky header (the store uses fixed + a
 *     JS-measured body padding), admin-bar offsets, the top strip, the ☰
 *     icon, the drawer shell, greeting band, SNS and logout (the store gets
 *     those from its platform CSS).
 * Everything is scoped under .sb_header / .sb_drawer: css/responsive.css
 * prints after this file but can't win against these selectors.
 *
 * PROVENANCE: layer B was generated ONCE (2026-10-02) from the store's CSS; there is
 * no build step. This file is now the source of truth — edit it directly. When the
 * STORE's header changes, the way to re-sync is to compare the two pages element by
 * element (computed styles) and port the differences: see future-shop/source/compare/.
 * Deliberate differences from the store's markup/CSS: sticky instead of fixed (and the
 * clipped mega-menu panel that needs), <p> instead of <h2>/<h3> for the tagline and the
 * drawer section titles, an <h1> around the logo on the front page only, own hover
 * bridge on the mega-menu button, rem→px, store assets (icons, logos) copied to assets/header/; the drawer's social icons are the footer's, not the store's; the search box has a 商品 / 記事・FAQ
 * selector (also in the store's header since 2026-10-02: same block, same list) and the theme's page-level search boxes are
 * hidden (see the Search block in layer C).
 */

/* ============================== A. BASE ============================== */
/* The store's global rules are plain element selectors, so its own class rules always beat them.
   :where() gives these the same (zero) weight; without it they would out-rank the ported class rules below. */
:where(.sb_header, .sb_drawer),
:where(.sb_header, .sb_drawer) * {
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
}

.sb_header,
.sb_drawer {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  color: #44312D;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

:where(.sb_header, .sb_drawer) a {
  color: #44312d;
  text-decoration: none;
  background-color: transparent;
}

:where(.sb_header, .sb_drawer) a:hover {
  color: inherit;
  opacity: 0.7;
  transition: 0.3s;
  text-decoration: none;
}

:where(.sb_header, .sb_drawer) img {
  max-width: 100%;
  margin: 0 auto;
  border-style: none;
}

/* Real (not zero) weight: the parent theme resets images to vertical-align:bottom, the store leaves them on the
   baseline (which is what puts the little gap under the SNS icons). Explicit rules below (the logo) still win. */
.sb_header img,
.sb_drawer img {
  vertical-align: baseline;
}

:where(.sb_header, .sb_drawer) p {
  margin: 10px 0;
}

:where(.sb_header, .sb_drawer) button,
:where(.sb_header, .sb_drawer) input {
  font: inherit;
  margin: 0;
  overflow: visible;
}

:where(.sb_header, .sb_drawer) button,
:where(.sb_header, .sb_drawer) label {
  cursor: pointer;
}

:where(.sb_header input[type=text]) {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #cccccc;
  border-radius: 3px;
  padding: 3px 5px;
}

:where(.sb_header) h1 {
  margin: 0;
  padding: 0;
  font: inherit;
  line-height: inherit;
  letter-spacing: normal;
}


/* ===================== B. THE STORE'S OWN RULES (ported) ===================== */
.sb_header { font-family: 'Noto Sans JP', sans-serif; position: fixed; top: 0; left: 0; width: 100%; transition: transform 0.6s cubic-bezier(0.215, 0.61, 0.355, 1) 0s; background: #fff; z-index: 999; }
.sb_header.is-move { transform: translateY(-100%); }
.sb_header img { width: auto; }
.sb_header ul { padding: 0; margin: 0; }
.sb_header-inner { max-width: 1130px; margin: 0 auto; }
.sb_header-top { padding: 20px 0; border-bottom: 1px solid #D1C1BD; }
.sb_header-top .sb_header-inner { display: flex; align-items: center; justify-content: space-between; }
.sb_header-top__desc { font-size: 14px; line-height: 1; font-family: 'Noto Serif JP', serif; font-weight: 400; margin: 0 0 10px 0; }
.sb_header-top__navi { margin-top: 20px; }
.sb_header-top__navi li.sb_icon a { display: flex; align-items: center; }
.sb_header-top__navi li.sb_icon .sb_img img { width: 17px; height: auto; }
.sb_header-top__navi li.sb_icon .sb_img { margin-right: 7px; }
.sb_header-top__navi>ul { display: flex; justify-content: flex-end; align-items: center; }
.sb_header-top__navi ul li { list-style: none; }
.sb_header-top__navi ul li:not(:first-child) { margin-left: 30px; }
.sb_header-top__navi ul li a { transition: 0.4s; }
.sb_header-top__naviItem { display: block; font-size: 13px; line-height: 1; }
.sb_header-bottom { padding-top: 40px; }
.sb_header-bottom .sb_header-inner { display: flex; justify-content: center; align-items: center; }
.sb_header-bottom__left { display: flex; align-items: center; }
.sb_header-bottom__search { width: 480px; padding-bottom: 40px; }
.sb_header__searchWrap { border: 1px solid #44312D; border-radius: 5px; background: #fff; display: flex; align-items: center; justify-content: space-between; padding-right: 5px; }
.sb_header__searchInput { width: calc(100% - 15px); border: none; }
.sb_header__searchInput::placeholder { font-size: 12px; }
.sb_header__searchBtn { position: relative; overflow: hidden; text-indent: -999px; background: none; border: none; width: 15px; height: 15px; }
.sb_header__searchBtn:before { content: ''; width: 100%; height: 100%; position: absolute; right: 0; top: 0; background: url(assets/header/icon_search.svg) no-repeat center / contain; }
.sb_header-bottom__navi { margin-left: 26px; }
.sb_header-bottom__navi>ul { display: flex; align-items: center; }
.sb_header-bottom__navi>ul>li { padding-bottom: 40px; }
.sb_header-bottom__navi li { list-style: none; }
.sb_header-bottom__navi li a { transition: 0.4s; }
.sb_header-bottom__navi>ul>li:not(:first-child) { margin-left: 40px; }
.sb_header-bottom__naviItem { font-size: 14px; line-height: 1; }
.sb_header-dropdownTrigger { cursor: pointer; }
.sb_header-dropdownTrigger span { display: inline-block; background: #44312D; color: #fff; padding: 8px 20px; border-radius: 4px; }
.sb_header-dropdownTrigger span:after { content: ''; width: 12px; height: 7px; display: inline-block; vertical-align: middle; background: url(assets/header/icon_arrow_mmenu_white.svg) no-repeat center / contain; transition: 0.4s; margin-left: 5px; margin-left: 15px; }
.sb_header-dropdown { position: absolute; left: 0; opacity: 0; visibility: hidden; transition: 0.3s ease-in-out; width: 100%; background: #F7F6F0; z-index: 999; padding: 40px 0 55px; border-top: 1px solid #D1C1BD; margin-top: 40px; }
.sb_header-dropdownTrigger:hover .sb_header-dropdown { ; }
.sb_header-dropdownTrigger .sb_header-dropdown.is-open { opacity: 1; visibility: visible; }
.sb_header-dropdownTrigger span:hover:after { ; }
.sb_header-dropdownTrigger span.is-open:after { transform: rotate(180deg); }
.sb_header-dropdownInner { display: flex; max-width: 1100px; margin: 0 auto; padding: 0 10px; }
.sb_header-menuBox { font-size: 14px; line-height: 1; min-width: 18.333%; }
.sb_header-menuBox.sb_brand { min-width: 100%; }
.sb_header-menuBox:not(:first-child) { margin-left: 40px; }
.sb_header-menuItem+.sb_header-menuItem { margin-top: 65px; }
.sb_header-menuMain { margin-bottom: 20px; position: relative; max-width: 198px; }
.sb_header-menuMain a { padding: 15px 10px; background: #fff; border: 1px solid #D1C1BD; border-radius: 5px; display: block; }
.sb_header-menuMain:before { content: ''; content: ''; width: 4px; height: 9px; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: url(assets/header/arrow_menu.svg) no-repeat center / contain; }
.sb_header-menuSub a { padding-left: 20px; position: relative; display: inline-block; line-height: 1.3; }
.sb_header-menuSub a:before { content: ''; width: 4px; height: 9px; position: absolute; left: 0; top: 50%; transform: translateY(-50%); background: url(assets/header/arrow_menu.svg) no-repeat center / contain; transition: 0.4s; }
.sb_header-menuSub a br { display: none; }
.sb_header-menuSub:not(:first-child) { margin-top: 25px; }
.sb_header-menuSubListWrap { display: flex; }
.sb_header-menuSubList+.sb_header-menuSubList { margin-left: 40px; }
.sb_header .sb_over { transition: 0.4s; }
@media only screen and (min-width:768px) {
  .sb_header a:hover { text-decoration: none; color: inherit; }
  .sb_header .sb_over:hover { opacity: 0.7; }
  .sb_header-menuMain a:hover { background: #D1C1BD; text-decoration: none; }
  .sb_header-menuSub a:hover:before { left: 10px; }
}
@media only screen and (max-width:1100px) {
  .sb_header-menuBox:not(:first-child) { margin-left: 20px; }
  .sb_header-menuSubListWrap { display: block; }
  .sb_header-menuSubList+.sb_header-menuSubList { margin-left: 0; margin-top: 25px; }
  .sb_header-menuSub a br { display: block; }
  .sb_header-top__desc { font-size:1.2vw; }
}
@media only screen and (max-width:992px) {
  .sb_header-top .sb_header-inner { display: block; }
}
@media only screen and (max-width:767px) {
  .sb_header { z-index: 999; background: #fff; }
  .sb_header-top { padding: 12px 0; }
  .sb_header-logo { width: 100%; display: flex; flex-direction: row-reverse; justify-content: space-between; }
  .sb_header-logo img { max-width: 100px; margin: 0; }
  .sb_header-top__desc { font-size: 10px; text-align: right; line-height: 1.5; margin: 0; }
  .sb_header-bottom { padding-top: 12px; padding-bottom: 1.2em; }
  .sb_header-bottom__navi { display: none; }
  .sb_header-bottom__left { width: 55%; }
  .sb_header-bottom__search { width: 100%; padding-bottom: 0; }
}
.sb_header-bottom { padding-top:20px; }
.sb_header-bottom__left { justify-content: center; }
.sb_header-bottom__navi>ul>li { padding-bottom: 20px; }
.sb_header-bottom__search { width:300px; padding-bottom: 20px; }
@media only screen and (max-width:767px) {
  .sb_header-bottom__search { padding-bottom: 0; width:100%; }
}
:root { --sb-ico-chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 8' fill='none' stroke='%2344312D' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l7 6 7-6'/%3E%3C/svg%3E"); --sb-ico-chevron-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 14' fill='none' stroke='%2344312D' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l6 6-6 6'/%3E%3C/svg%3E"); --sb-ico-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344312D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.5h15l.9 12.5H3.6z'/%3E%3Cpath d='M8.5 8.5V7a3.5 3.5 0 017 0v1.5'/%3E%3C/svg%3E"); --sb-ico-doc: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344312D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2.5h8.5L19 7v14.5H6z'/%3E%3Cpath d='M14.5 2.5V7H19'/%3E%3Cpath d='M9.2 12h6.6M9.2 15.4h6.6M9.2 18.8h3.6'/%3E%3C/svg%3E"); --sb-ico-help: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2344312D' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.8'/%3E%3Cpath d='M9.2 9.5a2.9 2.9 0 115.1 1.9c-.9 1-2.3 1.4-2.3 3'/%3E%3Cpath d='M12 17.2v.1'/%3E%3C/svg%3E"); }
.sb_header .sb_header-top { padding: 25px 0 20px; border-bottom: 0; }
.sb_header .sb_header-top .sb_header-inner { display: flex; align-items: center; justify-content: space-between; }
.sb_header .sb_header-logo { min-width: 0; }
.sb_header .sb_header-logo img { vertical-align: bottom; }
.sb_header .sb_header-top__desc { font-family: 'Noto Sans JP', sans-serif; font-size: 12px; font-weight: 400; line-height: 1; margin: 0 0 10px; }
.sb_header .sb_header-top__navi { margin-top: 0; flex-shrink: 0; }
.sb_header .sb_header-top__navi > ul { display: flex; justify-content: flex-end; align-items: flex-start; }
.sb_header .sb_header-top__navi ul li:not(:first-child) { margin-left: 54px; }
.sb_header .sb_header-top__navi li.sb_icon a { flex-direction: column; align-items: center; text-align: center; }
.sb_header .sb_header-top__navi li.sb_icon .sb_img { display: flex; align-items: center; justify-content: center; height: 24px; margin: 0 0 10px; }
.sb_header .sb_header-top__navi li.sb_icon .sb_img img { width: 24px; height: auto; }
.sb_header .sb_header-top__naviItem { font-size: 12px; line-height: 1; }
.sb_header .sb_header-bottom { padding: 0 0 25px; border-bottom: 1px solid #D1C1BD; }
.sb_header .sb_header-bottom .sb_header-inner { display: flex; align-items: center; justify-content: flex-start; }
.sb_header .sb_header-bottom__search { flex: 1 1 auto; width: auto; min-width: 0; padding-bottom: 0; }
.sb_header .sb_header__searchWrap { position: relative; height: 40px; padding: 0; border: 1px solid #D1C1BD; border-radius: 5px; background: #FBFAF8; transition: border-color 0.3s, box-shadow 0.3s; }
.sb_header .sb_header__searchWrap:focus-within { border-color: #B5A09A; box-shadow: 0 0 0 3px rgba(209, 193, 189, 0.45); }
.sb_header .sb_header__searchInput { flex: 1 1 auto; width: auto; min-width: 0; height: 100%; padding: 0 44px 0 14px; background: transparent; color: #44312D; outline: none; }
.sb_header .sb_header__searchInput:focus { border-color: transparent; box-shadow: none; outline: none; }
.sb_header .sb_header__searchInput::placeholder { color: #9A9A9A; }
.sb_header .sb_header__searchBtn { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; cursor: pointer; }
/* Search scope (商品 / 記事・FAQ): a brown block at the left end of the box (the primary colour, like 商品カテゴリーから探す)
   and a custom list instead of the OS picker, so it opens BELOW the box like the コラム / FAQ dropdowns and is as wide as its
   text (the block shows only the current choice, the list is max-content). The input runs from the block's edge to the box's
   right edge — the browser's autofill / history highlight covers all of it — and the search icon sits on top at the right.
   The list's visibility switches on at once and only switches off after the fade (transition-delay): the script focuses the
   current choice right after opening, and a still-hidden element cannot take focus. */
.sb_header .sb_header__scope { position: relative; display: flex; flex-shrink: 0; align-self: stretch; }
.sb_header .sb_header__scopeBtn { display: flex; align-items: center; margin: 0; padding: 0 14px; border: 0; border-radius: 4px 0 0 4px; background: #44312D; color: #fff; font: inherit; font-size: 12px; line-height: 1; white-space: nowrap; cursor: pointer; transition: opacity 0.3s; -webkit-appearance: none; appearance: none; }
@media (hover: hover) { .sb_header .sb_header__scopeBtn:hover { opacity: 0.85; } }
.sb_header .sb_header__scopeBtn:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.sb_header .sb_header__scopeBtn:after { content: ''; flex-shrink: 0; width: 10px; height: 5px; margin-left: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 5' fill='none' stroke='%23fff' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M.6.6l4.4 3.8L9.4.6'/%3E%3C/svg%3E") no-repeat center / 10px 5px; transition: transform 0.3s; }
.sb_header .sb_header__scopeBtn[aria-expanded='true']:after { transform: rotate(180deg); }
.sb_header .sb_header__scopeList { position: absolute; top: 100%; left: -1px; z-index: 999; display: block; width: max-content; min-width: calc(100% + 1px); margin-top: 11px; padding: 0; background: #fff; border: 1px solid #D1C1BD; border-radius: 5px; box-shadow: 0 6px 18px rgba(68, 49, 45, 0.12); opacity: 0; visibility: hidden; transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s; }
.sb_header .sb_header__scopeList.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.sb_header .sb_header__scopeList > span { display: block; }
.sb_header .sb_header__scopeItem { position: relative; display: block; width: 100%; margin: 0; padding: 10px 24px; border: 0; border-radius: 0; background: none; color: #44312D; font: inherit; font-size: 12px; line-height: 1.4; text-align: left; white-space: nowrap; cursor: pointer; transition: background 0.2s; -webkit-appearance: none; appearance: none; }
.sb_header .sb_header__scopeItem:hover, .sb_header .sb_header__scopeItem:focus-visible { background: #F7F6F0; outline: none; }
.sb_header .sb_header__scopeList > span:first-child .sb_header__scopeItem { border-radius: 4px 4px 0 0; }
.sb_header .sb_header__scopeList > span:last-child .sb_header__scopeItem { border-radius: 0 0 4px 4px; }
.sb_header .sb_header__scopeItem[aria-checked='true']:before { content: ''; position: absolute; left: 9px; top: 50%; width: 7px; height: 4px; margin-top: -4px; border-left: 1.5px solid #44312D; border-bottom: 1.5px solid #44312D; transform: rotate(-45deg); }
.sb_header .sb_header-bottom__navi { flex-shrink: 0; margin-left: 29px; }
.sb_header .sb_header-bottom__navi > ul { display: flex; align-items: center; }
.sb_header .sb_header-bottom__navi > ul > li { padding-bottom: 0; }
.sb_header .sb_header-dropdownTrigger span { display: inline-flex; align-items: center; height: 40px; padding: 0 30px; font-size: 14px; line-height: 1; border-radius: 4px; }
.sb_header .sb_header-dropdownTrigger span:after { width: 18px; height: 9px; margin-left: 13px; }
.sb_header .sb_header-dropdownTrigger span:focus-visible { outline: 2px solid #44312D; outline-offset: 2px; }
.sb_header .sb_header-dropdown { top: 100%; margin-top: -1px; }
.sb_header .sb_header-dropdown:before { content: ''; position: absolute; left: 0; right: 0; top: -30px; height: 30px; }
.sb_header .sb_header-menuBox { font-size: 12px; }
.sb_header .sb_header-bottom__navi > ul > li.sb_header-subnav { position: relative; display: flex; align-items: center; margin-left: 50px; }
.sb_header .sb_header-bottom__navi > ul > li.sb_header-dropdownTrigger + li.sb_header-subnav { margin-left: 30px; }
.sb_header .sb_header-subnav + .sb_header-subnav:before { content: ''; position: absolute; left: -25px; top: 50%; width: 1px; height: 32px; margin-top: -16px; background: #D1C1BD; }
.sb_header .sb_header-subnav__link { display: block; font-size: 14px; line-height: 1; color: #44312D; white-space: nowrap; }
.sb_header .sb_header-subnav__toggle { flex-shrink: 0; width: 28px; height: 32px; margin: 0 -6px 0 5px; padding: 0; border: 0; background: var(--sb-ico-chevron-down) no-repeat center / 16px 8px; cursor: pointer; transition: transform 0.3s; -webkit-appearance: none; appearance: none; }
.sb_header .sb_header-subnav__toggle.is-open { transform: rotate(180deg); }
.sb_header .sb_header-subnav__toggle:focus-visible { outline: 2px solid #44312D; outline-offset: -2px; }
.sb_header .sb_header-subnav__list { position: absolute; top: 100%; left: 0; z-index: 999; width: max-content; min-width: 100%; margin-top: 12px; padding: 0; background: #fff; border: 1px solid #D1C1BD; border-radius: 5px; box-shadow: 0 6px 18px rgba(68, 49, 45, 0.12); opacity: 0; visibility: hidden; transition: 0.3s ease-in-out; }
.sb_header .sb_header-subnav__list.is-open { opacity: 1; visibility: visible; }
.sb_header .sb_header-subnav__list:before { content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.sb_header .sb_header-subnav__list li { margin: 0; list-style: none; }
.sb_header .sb_header-subnav__list a { display: block; padding: 10px 24px; font-size: 12px; line-height: 1.4; color: #44312D; white-space: nowrap; transition: background 0.2s; }
.sb_header .sb_header-subnav__list a:hover { background: #F7F6F0; }
.sb_header .sb_header-subnav__list li:first-child a { border-radius: 4px 4px 0 0; }
.sb_header .sb_header-subnav__list li:last-child a { border-radius: 0 0 4px 4px; }
.sb_header .sb_header-subnav__list li:only-child a { border-radius: 4px; }
@media only screen and (min-width: 769px) {
  .sb_header .sb_header__searchInput { font-size: 12px; }
  .sb_header .sb_header__searchInput::placeholder { font-size: 12px; }
}
@media only screen and (max-width: 992px) {
  .sb_header .sb_header-top__desc { font-size: 12px; line-height: 1.4; }
  .sb_header .sb_header-top__navi ul li:not(:first-child) { margin-left: 30px; }
  .sb_header .sb_header-bottom .sb_header-inner { flex-wrap: wrap; }
  .sb_header .sb_header-bottom__search { flex: 1 1 100%; margin-bottom: 16px; }
  .sb_header .sb_header-bottom__navi { margin-left: 0; }
  .sb_header .sb_header-bottom__navi > ul > li.sb_header-subnav { margin-left: 40px; }
  .sb_header .sb_header-bottom__navi > ul > li.sb_header-dropdownTrigger + li.sb_header-subnav { margin-left: 24px; }
  .sb_header .sb_header-subnav + .sb_header-subnav:before { left: -20px; }
}
@media only screen and (max-width: 767px) {
  .sb_header .sb_header-inner { padding: 0 20px; }
  .sb_header .sb_header-top { padding: 14px 0 15px; }
  .sb_header .sb_header-top__desc { display: none; }
  .sb_header .sb_header-logo { display: block; flex: 0 1 140px; width: auto; }
  .sb_header .sb_header-logo img { width: 100%; max-width: 140px; height: auto; margin: 0; }
  .sb_header .sb_header-top__navi li.sb_guide { display: none; }
  .sb_header .sb_header-top__navi ul li:not(:first-child) { margin-left: 17px; }
  .sb_header .sb_header-top__navi li.sb_icon .sb_img { margin-bottom: 8px; }
  .sb_header .sb_header-top__naviItem { font-size: 10px; }
  .sb_header .sb_header-bottom { padding: 0 0 12px; }
  .sb_header .sb_header-bottom .sb_header-inner { flex-wrap: nowrap; }
  .sb_header .sb_header-bottom__search { flex: 1 1 auto; margin-bottom: 0; }
  .sb_header .sb_header__searchWrap { height: 32px; }
  .sb_header .sb_header__searchInput { padding: 0 36px 0 12px; }
  .sb_header .sb_header__searchBtn { right: 12px; width: 16px; height: 16px; margin-top: -8px; }
  .sb_header .sb_header__scopeBtn { padding: 0 10px; }
  .sb_header .sb_header__scopeBtn:after { margin-left: 6px; }
  .sb_header .sb_header__scopeList { margin-top: 9px; }
  .sb_header .sb_header-bottom__navi { display: none; }
  .sb_drawer { z-index: 1000; padding: 0 0 40px; }
  .sb_drawer .sb_drawer-close { position: absolute; top: 18px; right: 15px; z-index: 1; width: 36px; height: 36px; margin: 0; padding: 0; cursor: pointer; }
  .sb_drawer .sb_drawer-close:before, .sb_drawer .sb_drawer-close:after { content: ''; position: absolute; left: 50%; top: 50%; width: 26px; height: 1.6px; margin: -0.8px 0 0 -13px; background: #44312D; transform: rotate(45deg); }
  .sb_drawer .sb_drawer-close:after { transform: rotate(-45deg); }
  .sb_drawer-menu { padding: 14px 20px 0; }
  .sb_drawer-sec + .sb_drawer-sec { margin-top: 13px; }
  .sb_drawer-secTtl { display: flex; align-items: center; height: 36px; margin: 0; padding: 0; background: none; border: 0; font-size: 16px; font-weight: 700; line-height: 1.2; text-align: left; color: #44312D; }
  .sb_drawer-secTtl:before { content: ''; flex-shrink: 0; width: 23px; height: 23px; margin-right: 14px; background-repeat: no-repeat; background-position: center; background-size: contain; }
  .sb_drawer-secTtl--bag:before { background-image: var(--sb-ico-bag); }
  .sb_drawer-secTtl--doc:before { background-image: var(--sb-ico-doc); }
  .sb_drawer-secTtl--help:before { background-image: var(--sb-ico-help); }
  .sb_drawer-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid #D1C1BD; }
  .sb_drawer-list > li { margin: 0; padding: 0; list-style: none; border-bottom: 1px solid #D1C1BD; }
  .sb_drawer-link { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 4px 3px; font-size: 14px; line-height: 1.5; color: #44312D; text-decoration: none; cursor: pointer; }
  a.sb_drawer-link:after { content: ''; flex-shrink: 0; width: 8px; height: 14px; margin-left: 10px; background: var(--sb-ico-chevron-right) no-repeat center / contain; }
  .sb_drawer-check { display: none; }
  .sb_drawer-link--toggle:before, .sb_drawer-link--toggle:after { content: ''; position: absolute; right: 5px; top: 50%; width: 14px; height: 1.5px; margin-top: -0.75px; background: #44312D; transition: transform 0.3s; }
  .sb_drawer-link--toggle:before { transform: rotate(90deg); }
  .sb_drawer-check:checked + .sb_drawer-link--toggle:before { transform: rotate(90deg) scaleX(0); }
  .sb_drawer-sub { margin: 0; padding: 0; max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; list-style: none; background: #F7F6F0; transition: max-height 0.4s, opacity 0.4s, visibility 0.4s; }
  .sb_drawer-check:checked ~ .sb_drawer-sub { max-height: 800px; opacity: 1; visibility: visible; }
  .sb_drawer-sub li { margin: 0; list-style: none; border-top: 1px solid rgba(209, 193, 189, 0.5); }
  .sb_drawer-sub a { display: block; padding: 10px 14px 10px 18px; font-size: 14px; line-height: 1.5; color: #44312D; text-decoration: none; }
  .sb_drawer-sub .sb_archive a { font-weight: 500; }
}


/* ======================== C. WORDPRESS-SPECIFIC ======================== */

/* --- Header shell: sticky (in the page flow, so no body padding to measure), hides by sliding up.
       The store's rule above is position:fixed; this replaces it. --- */
.sb_header {
  position: sticky;
  top: 0;
  left: auto;
  width: 100%;
  z-index: 999;
}

/* Logged-in WordPress users get the admin bar: 32px, 46px up to 782px, and at 600px and below it
   scrolls away with the page (position:absolute), so the header must sit at the very top again. */
body.admin-bar .sb_header { top: 32px; }
@media screen and (max-width: 782px) { body.admin-bar .sb_header { top: 46px; } }
@media screen and (max-width: 600px) { body.admin-bar .sb_header { top: 0; } }

/* --- Mega-menu panel overflow. Its brand column is min-width:100% inside a row of three, so the (empty) box ends far
       right of the viewport — 1723px on a 1414px screen. In the store that never mattered: the header is position:fixed,
       and a fixed element's overflow does not extend the page. A sticky header has no such protection: even the hidden
       panel made the whole page scroll sideways. The panel itself is exactly viewport-wide, so clipping it hides nothing. --- */
.sb_header .sb_header-dropdown { overflow: hidden; }

/* The hover bridge (so the pointer can cross the gap between the button and the panel) used to hang above the panel,
   which the clipping above would cut off. It now hangs below the button, and only while the menu is open. */
.sb_header .sb_header-dropdown:before { content: none; }
.sb_header .sb_header-dropdownTrigger span { position: relative; }
.sb_header .sb_header-dropdownTrigger span.is-open:before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 30px;
}

/* --- Top strip (the store prints its news list here; this site prints one Customizer-editable line) --- */
.sb_header-strip {
  margin: 0;
  padding: 10px;
  background: #44312D;
  text-align: center;
}
.sb_header-strip__link {
  display: block;
  max-width: 1080px;
  margin: 0 auto;
  color: #fff;
  text-align: center;
}
.sb_header .sb_header-strip__link,
.sb_header .sb_header-strip__link:hover { color: #fff; }

/* --- Search box: the store's base [type=text] rule (rounded corners, line height) loses to the parent theme's
       input rules here, so state them at class weight --- */
.sb_header .sb_header__searchInput {
  border-radius: 0 4px 4px 0;
  line-height: 1.4;
}

/* --- One search box per page: the header's (商品 / 記事・FAQ selector). The theme's own page-level box — FAQ index
       (home.php), FAQ category archives (category.php) and the search results page (search.php) — is hidden, not
       removed: the parent theme prints it and cannot be edited, and display:none also takes it out of the tab order.
       Only those three places print .post_archive_form_area (the front page's box is .search_form). --- */
.post_archive_form_area { display: none; }

/* The "「…」を商品から探す →" link on the search results page (child search.php). Sits under the page heading when there are
   results (same left edge as the heading: 750px is the parent's breakpoint that gives the heading its 20px indent) and,
   centred like the message, under 「検索結果がありませんでした」 (the message's own bottom margin, 90px / 60px, moves to the link). */
#search_archive .sb_search_cross { margin: 16px 0 0; font-size: 14px; line-height: 1.6; }
#search_archive .sb_search_cross a { color: #44312D; text-decoration: underline; text-underline-offset: 3px; }
#search_archive .sb_search_cross a:hover { opacity: 0.7; }
#search_archive #no_post:has(+ .sb_search_cross) { margin-bottom: 14px; }
#search_archive #no_post + .sb_search_cross { margin: 0 0 90px; padding: 0 20px; text-align: center; }
@media screen and (max-width: 750px) {
  #search_archive .sb_search_cross { padding-left: 20px; }
  #search_archive #no_post + .sb_search_cross { margin-bottom: 60px; }
}

/* --- Logo: the front page wraps it in an <h1>; keep that wrapper invisible to layout.
       Two images, one per width (the store does the same with its .for_pc / .for_sp helpers) --- */
.sb_header-logo__heading { display: block; }
.sb_header-logo__sp { display: none; }

/* --- The ☰ button: three bars, hidden from 768px up --- */
.sb_header-opener { display: none; }
.sb_header-burger { display: none; }

/* --- Drawer shell: only exists on phones (up to 767px) --- */
.sb_drawer-ctrl,
.sb_drawer { display: none; }

@media screen and (max-width: 767px) {
  .sb_header-logo__pc { display: none; }
  .sb_header-logo__sp { display: block; }

  .sb_header-strip {
    padding: 12px;
    font-size: 12px;
    line-height: 18px;
  }

  .sb_header-opener {
    display: block;
    margin-left: 15px;
  }

  .sb_header-burger {
    padding: 0;
    width: 22px;
    height: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  .sb_header-burger__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #44312D;
    border-radius: 1px;
    transition: 0.4s;
    position: relative;
  }

  .sb_header-burger__bar:before,
  .sb_header-burger__bar:after {
    content: '';
    width: 22px;
    height: 2px;
    background: #44312D;
    border-radius: 1px;
    transition: 0.4s;
    position: absolute;
    left: 0;
  }

  .sb_header-burger__bar:before { transform: translateY(-7px); }
  .sb_header-burger__bar:after { transform: translateY(7px); }
  .sb_header-burger.is-open .sb_header-burger__bar { background: transparent; }
  .sb_header-burger.is-open .sb_header-burger__bar:before { transform: rotate(45deg); }
  .sb_header-burger.is-open .sb_header-burger__bar:after { transform: rotate(-45deg); }

  /* iOS Safari zooms the page in when an input under 16px is focused; the store gets a 17px rule from its
     platform CSS for exactly this. Only the typed text — the placeholder stays small. */
  @supports (-webkit-touch-callout: none) {
    .sb_header__searchInput { font-size: 17px; }
  }

  /* --- Drawer: full-screen overlay that slides in from the left; the hidden checkbox right before it opens it --- */
  .sb_drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 1px 1px 5px #b2b2b2;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-101%);
    transition: all 0.5s linear 0s;
  }

  .sb_drawer-ctrl:checked + .sb_drawer { transform: translateX(0); }

  /* the WordPress admin bar (z-index 99999) sits above the drawer, so keep the drawer under it */
  body.admin-bar .sb_drawer { top: 46px; }
  html.sb-drawer-open,
  html.sb-drawer-open body { overflow: hidden; }

  /* --- Greeting band (guest by default; sb-header.js adds .is-member on .sb_drawer for a logged-in visitor) --- */
  .sb_drawer-member {
    padding: 25px 20px;
    background-color: #F7F6F0;
  }

  .sb_drawer-member__welcome {
    margin: 8px 0;
    text-align: center;
  }

  .sb_drawer-member__points {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    color: #521616;
    font-weight: normal;
  }

  .sb_drawer-member__actions {
    width: 55%;
    margin: 10px auto 0;
  }

  .sb_drawer-member__btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 12px 0;
    background: #ffffff;
    border: 1px solid #D1C1BD;
    border-radius: 25px;
    color: #44312d;
    text-decoration: none;
  }

  .sb_drawer-member__btn--mypage { display: none; }

  .sb_drawer.is-member .sb_drawer-member__promo,
  .sb_drawer.is-member .sb_drawer-member__btn--login { display: none; }

  .sb_drawer.is-member .sb_drawer-member__points { display: flex; }
  .sb_drawer.is-member .sb_drawer-member__btn--mypage { display: flex; }

  /* --- SNS icons: the footer's own (style.css .sb_footer_sns: 40px dark circles, X / Instagram / LINE marks, 16px gap);
         only the placement is set here --- */
  .sb_drawer-sns {
    justify-content: center;
    margin: 32px 0 30px;
  }

  /* --- (members only) the ログアウト button below the menu --- */
  .sb_drawer-logout { display: none; }

  .sb_drawer.is-member .sb_drawer-logout {
    display: block;
    width: 55%;
    margin: 10px auto 0;
  }
}
