/* 新しい共通ヘッダー（2026-11-27）。見本「注文ページ共通ヘッダー.css」を元に、.shop-header の下だけに効かせる。
   bootstrap・style.css を読むページ（注文確認から先・ログイン）でも崩れないよう、位置・幅は明示する。 */
.shop-skip-link { position: fixed; top: 0; left: 0; z-index: 1000; transform: translateY(-150%); background: #fff; color: #292c29; padding: 12px; }
.shop-skip-link:focus { transform: none; }
.shop-header {
  position: relative; z-index: 95; color: #292c29; background: #fff; border-bottom: 1px solid #dedfd5;
  font: 16px/1.75 "Hiragino Sans","Yu Gothic",Meiryo,system-ui,sans-serif; box-sizing: border-box;
}
.shop-header *, .shop-header *::before, .shop-header *::after { box-sizing: border-box; }
.shop-header .header-inner {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  width: min(1180px, calc(100% - 80px)); max-width: none; height: 82px; margin: 0 auto; padding: 0; gap: 28px;
}
.shop-header a { color: inherit; text-decoration: none; }
.shop-header a:hover { color: #9b432e; }
.shop-header .brand { flex: none; }
.shop-header .brand img { display: block; width: 196px; max-width: 100%; height: auto; margin: 0; }
.shop-header .header-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; margin: 0; }
.shop-header .header-contact { color: #5b625c; text-align: right; font-size: 12px; line-height: 1.6; }
.shop-header .header-contact a { display: block; color: #292c29; font-size: 18px; font-weight: 700; line-height: 1.2; }
/* 幅の狭い入れ物（注文ページの本文の枠など）の中でも、メニューと電話番号を折り返さない */
.shop-header .header-nav a, .shop-header .header-contact { white-space: nowrap; }
.shop-header .menu-button, .shop-header .shop-mobile-link, .shop-header .js-order-cart[hidden] { display: none; }
.shop-header .js-order-cart.is-visible {
  position: static; display: inline-flex; flex: none; flex-direction: column; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; gap: 2px; margin: 0; padding: 0; color: #9b432e; background: transparent; border: 0;
}
.shop-header .site-header__cart-icon { width: 26px; height: 26px; }
.shop-header .site-header__cart-text { display: block; font-family: inherit; font-size: 10px; font-weight: 700; line-height: 1.15; white-space: nowrap; }
.shop-header a:focus-visible, .shop-header button:focus-visible { outline: 3px solid #2966a3; outline-offset: 3px; }

/* 会員の区分とログイン中（11-1）。ログインしていないときは出さない */
.shop-header .shop-member-badge {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none;
  min-height: 44px; padding: 3px 10px; border: 1px solid #c9a27a; border-radius: 6px; background: #fbf5ee; color: #7a3a26;
  line-height: 1.25; text-align: center;
}
.shop-header .shop-member-badge__kind { font-size: 12px; font-weight: 700; white-space: nowrap; }
.shop-header .shop-member-badge__state { font-size: 10px; white-space: nowrap; }

@media (max-width: 1100px) {
  .shop-header .header-contact { display: none; }
  .shop-header .header-nav { gap: 19px; }
}
/* 「寺院会員ログイン・無料登録」が長く、981〜1100px で詰まるので、字と間を少し小さくする */
@media (min-width: 981px) and (max-width: 1100px) {
  .shop-header .header-inner { gap: 16px; }
  .shop-header .header-nav { gap: 14px; font-size: 13px; }
  .shop-header .brand img { width: 170px; }
}
@media (max-width: 980px) {
  .shop-header .brand { min-width: 0; margin-inline-end: auto; }
  .shop-header .menu-button { display: block; flex: none; min-width: 72px; min-height: 44px; padding: 6px 10px; border: 1px solid #dedfd5; border-radius: 6px; color: #292c29; background: #fff; font-family: inherit; font-size: 12px; line-height: 1.75; text-align: center; cursor: pointer; }
  .shop-header .menu-lines { display: block; position: relative; width: 20px; height: 12px; margin: 0 auto 3px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
  .shop-header .menu-lines::after { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 1.5px solid currentColor; }
  .shop-header .menu-button[aria-expanded=true] .menu-lines { border-color: transparent; }
  .shop-header .menu-button[aria-expanded=true] .menu-lines::before,
  .shop-header .menu-button[aria-expanded=true] .menu-lines::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
  .shop-header .menu-button[aria-expanded=true] .menu-lines::after { transform: rotate(-45deg); }
  .shop-header .header-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; max-height: 62vh; overflow-y: auto; overscroll-behavior: contain; padding: 12px 18px; border: 1px solid #dedfd5; background: #fff; flex-direction: column; align-items: stretch; gap: 0; font-size: 15px; }
  .shop-header .header-nav.open { display: flex; }
  .shop-header .header-nav a { display: block; padding: 10px 12px; }
  .shop-header .shop-mobile-link { display: block; }
}
@media (max-width: 760px) {
  .shop-header .header-inner { width: calc(100% - 36px); height: 67px; gap: 10px; }
  .shop-header .brand img { width: 166px; }
  .shop-header--member .brand img { width: 128px; }
  .shop-header .shop-member-badge { padding: 2px 6px; }
  .shop-header .shop-member-badge__kind { font-size: 11px; }
}
@media (max-width: 380px) {
  .shop-header--member .brand img { width: 108px; }
}
/* 古い style.css の header 指定（固定・高さ）を打ち消す */
body header.shop-header { position: relative !important; inset: auto !important; top: auto !important; height: auto !important; width: 100%; margin: 0; padding: 0; background: #fff; }
/* ビジネス会員には、お客様都合の作り直し・差額精算・全額返金の案内を出さない（12章）。
   サーバー側で出さないのが基本。JS で作る案内などの取りこぼし用に .js-anshin を付けた要素も隠す */
html.is-business .js-anshin { display: none !important; }
