.site-header { min-height: var(--header-height); border-bottom: 1px solid var(--color-line); background: var(--color-white); position: relative; z-index: 30; }
.header-inner { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { text-decoration: none; font-size: clamp(22px,2.2vw,32px); font-weight: 600; letter-spacing: -.065em; white-space: nowrap; line-height: 1; }
html[lang='ja'] .wordmark { letter-spacing: -.07em; font-weight: 600; }
.wordmark:hover { text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: clamp(5px,1.3vw,22px); }
.icon-button { width: 40px; height: 42px; padding: 10px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--color-black); position: relative; text-decoration: none; }
.icon-button:hover { background: var(--color-surface); text-decoration: none; }
.icon-button img { width: 21px; height: 21px; }
.bag-count { position: absolute; right: -1px; top: 0; min-width: 15px; padding-inline: 3px; height: 16px; border: 1px solid var(--color-black); background: var(--color-white); font-size: 9px; line-height: 14px; text-align: center; border-radius: 50%; }
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown:not([open]) > .dropdown-panel { display: none; }
.dropdown-panel { position: absolute; top: calc(100% + 12px); right: 0; min-width: 160px; border: 1px solid var(--color-line); padding: 10px; background: var(--color-white); box-shadow: 0 12px 30px rgb(0 0 0 / .05); }
.dropdown-panel a, .dropdown-panel button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 12px; text-align: left; border: 0; text-decoration: none; }
.dropdown-panel a:hover, .dropdown-panel button:hover { background: var(--color-surface); }
.dropdown-panel [aria-current='true']::after, .dropdown-panel [aria-current='page']::after { content: '✓'; margin-left: 24px; }
.currency-panel { width: 278px; }
.dropdown-note { font-size: 11px; line-height: 1.8; padding: 12px; border-top: 1px solid var(--color-line); margin-top: 8px; }
.dropdown-status { font-size: 11px; padding: 0 12px 10px; }
.header-search { position: relative; }
.header-search-form { position: absolute; right: 0; top: calc(100% + 12px); width: min(400px, calc(100vw - 2 * var(--page-gutter))); display: flex; align-items: center; gap: 10px; padding: 0 0 5px; background: rgb(255, 255, 255); color: rgb(0, 0, 0); opacity: 0; transform: translateY(-4px); pointer-events: none; transition: opacity 180ms ease, transform 220ms ease; }
.header-search-form::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: rgb(0, 0, 0); transform: scaleX(0); transform-origin: right center; transition: transform 280ms cubic-bezier(.22, 1, .36, 1); }
.header-search[data-search-open] .header-search-form { opacity: 1; transform: translateY(0); pointer-events: auto; }
.header-search[data-search-open] .header-search-form::after { transform: scaleX(1); }
.header-search-form input { width: 100%; min-width: 0; min-height: 40px; border: 0; padding: 7px 0; background: rgb(255, 255, 255); color: rgb(0, 0, 0); font-size: 12px; outline: none; }
.header-search-form:focus-within::after { height: 2px; }
.header-search-form .icon-button { flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
  .header-search-form, .header-search-form::after { transition: none; transform: none; }
  .header-search-form::after { transform: scaleX(0); }
  .header-search[data-search-open] .header-search-form::after { transform: scaleX(1); }
}
@media (max-width: 580px) {
  .header-inner { width: calc(100% - 28px); gap: 8px; }
  .wordmark { font-size: 21px; }
  .header-actions { gap: 0; }
  .icon-button { width: 32px; height: 40px; padding: 7px; }
  .icon-button img { width: 19px; height: 19px; }
  .currency-panel { position: fixed; top: 74px; right: 14px; }
}
@media (max-width: 359px) {
  .header-inner { flex-wrap: wrap; justify-content: center; gap: 6px; padding-block: 14px 8px; }
  .wordmark { flex-basis: 100%; text-align: center; }
}
