/* 静的版共通：ページごとのヘッダー配置 */
body.header-standard .header {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 0 auto;
  min-height: 82px;
}
body.header-overlay .header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}
body.header-standard .editorial-main { padding-top: 40px; }
.editorial-main { overflow: hidden; isolation: isolate; }
.editorial-main::before { pointer-events: none; }
@media (max-width: 700px) {
  body.header-standard .header { min-height: 52px; }
  /* パンくずが2段目のメニューボタンに重ならないよう余白を確保 */
  body.header-standard .editorial-main { padding-top: 60px; }
}

/* モバイル：個人・事業者メニューをヘッダーの2段目に表示 */
@media (max-width: 700px) {
  .header {
    --panel-top: 108px;
    box-sizing: border-box;
    min-height: 108px;
    padding-bottom: 56px;
  }
  body.header-standard .header { min-height: 108px; }
  .header-actions {
    position: absolute;
    inset: 0 0 auto;
    height: 108px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 56px 12px 4px;
    box-sizing: border-box;
    pointer-events: none;
  }
  .header-actions > * { pointer-events: auto; }
  .header-actions .pill {
    display: flex;
    align-items: center;
    min-width: 0;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 12px;
    border-width: 2px;
    font-size: 12px;
    line-height: 1.5;
    gap: 6px;
  }
  .header-actions .menu-toggle {
    position: absolute;
    top: 0;
    right: 0;
  }
  body.header-overlay > main { padding-top: 56px; }
  .header-panel { padding: 24px 20px; }
}
