@charset "utf-8";
/* ==========================================================================
   pbstore.css — プランビーストアの見た目

   読み込み順:  標準の style.min.css  →  このファイル  →  管理画面の CSS 管理（customize.css）
   このファイルは標準の見た目に「上書き」している。標準の style.css は編集していない。

   ■ 色・余白・文字サイズを変えたいとき
     すぐ下の「0. 調整つまみ」の値を変えるだけで、サイト全体に反映される。
     （例: 青を変える → --pb-blue、購入ボタンの色 → --pb-buy、画面の左右の余白 → --pb-gutter）
     変えたら provision/30-deploy-theme.sh を流す。

   ■ 目次
     0. 調整つまみ（色・文字・余白の変数）
     1. 土台（文字・リンク・共通の小物）
     2. 共通の部品（ボタン・見出し・商品カード・パンくず など）
     3. ヘッダー・カテゴリナビ・引き出しメニュー・フッター
     4. トップページの各ブロック
     5. 商品一覧
     6. 商品詳細
     7. 標準ページの着せ替え（カート・購入手続き・マイページ・会員登録・お問い合わせ など）
        ※ これらのページは HTML（Twig）を標準のまま使い、ここの CSS だけで整えている
     8. 文章のページ（ご利用ガイド・ご利用規約・プライバシーポリシーの本文）

   画面幅の区切り:  ～767px = スマホ ／ 768px～ = タブレット・PC ／ 1024px～ = PC（広い）
   ========================================================================== */


/* ==========================================================================
   0. 調整つまみ
   ========================================================================== */
:root {
  /* ── 色 ─────────────────────────────────────────── */
  --pb-blue: #0067b2;          /* プランビーの青（正式ロゴ SVG と同じ色）。リンク・主ボタン・見出しの飾り */
  --pb-blue-dark: #004b82;     /* 青の濃い版（マウスを乗せたとき・押したとき） */
  --pb-blue-pale: #eaf3fa;     /* 青のごく薄い版（主メッセージの背景・選択中の面） */
  --pb-blue-line: #bcd6ea;     /* 薄い青の線 */

  --pb-buy: #c94608;           /* 購入ボタンの色（「カートに入れる」「レジに進む」「注文する」）。白文字が読める濃さにしてある */
  --pb-buy-dark: #a53705;      /* 購入ボタンにマウスを乗せたとき */

  --pb-text: #1f2a33;          /* 本文の文字 */
  --pb-text-sub: #55606b;      /* 補足の文字（日付・注記・税込など） */
  --pb-line: #dfe4e8;          /* 区切り線 */
  --pb-line-strong: #7d8994;   /* 入力欄の枠線（はっきり見える濃さ） */
  --pb-bg: #ffffff;            /* 画面の地の色 */
  --pb-bg-soft: #f4f7f9;       /* 薄いグレーの面（1 つおきのセクション・商品画像の背景・フッター） */

  --pb-red: #c0271f;           /* 休業日・必須・エラー */
  --pb-red-pale: #fdecea;      /* 赤のごく薄い版（休業日の丸・エラーの面） */
  --pb-dark: #25313b;          /* 「品切れ中」バッジなどの濃い面 */

  /* ── 文字 ───────────────────────────────────────── */
  --pb-font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
             "Yu Gothic UI", "Yu Gothic Medium", "Yu Gothic", YuGothic,
             "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;   /* 端末に入っている書体だけを使う */
  --pb-fs-xs: 0.8125rem;       /* 13px  バッジ・アイコン下の小さな文字 */
  --pb-fs-sm: 0.875rem;        /* 14px  補足 */
  --pb-fs-md: 1rem;            /* 16px  本文（基準） */
  --pb-fs-lg: 1.125rem;        /* 18px  小見出し・強調 */
  --pb-fs-xl: 1.375rem;        /* 22px  セクションの見出し（スマホ） */
  --pb-fs-2xl: 1.75rem;        /* 28px  セクションの見出し（PC）・商品名（PC） */
  --pb-lh: 1.7;                /* 本文の行の高さ */

  /* ── 余白・大きさ ───────────────────────────────── */
  --pb-gutter: 16px;           /* 画面の左右の余白（スマホ）。PC の値は下の @media で上書き */
  --pb-container: 1160px;      /* 中身の最大幅 */
  --pb-container-narrow: 820px;/* 文章中心の部分（新着情報・カレンダー）の最大幅 */
  --pb-section-gap: 44px;      /* セクションの上下の余白（スマホ） */
  --pb-grid-gap: 12px;         /* 商品カード同士のすき間（スマホ） */
  --pb-radius: 12px;           /* 角の丸み（カード・面） */
  --pb-radius-sm: 8px;         /* 角の丸み（ボタン・入力欄） */
  --pb-tap: 48px;              /* ボタン・入力欄の高さ（指で押しやすい大きさ。44px 未満にしない） */
  --pb-header-h: 60px;         /* ヘッダーの高さ（スマホ） */
  --pb-logo-h: 26px;           /* ヘッダーのロゴ画像の高さ（スマホ） */
  --pb-card-cols: 2;           /* 商品一覧の列数（スマホ 2 列） */
  --pb-card-cols-compact: 2;   /* トップ「おすすめ商品」の列数（スマホ 2 列） */
  --pb-buybar-h: 76px;         /* 商品詳細の、画面下に固定される「カートに入れる」帯の高さ（スマホ） */

  --pb-shadow: 0 2px 10px rgba(20, 40, 60, 0.08);
  --pb-shadow-lg: 0 10px 30px rgba(20, 40, 60, 0.16);
  --pb-focus: 0 0 0 3px #ffffff, 0 0 0 6px var(--pb-blue);   /* キーボードで選んだときの枠 */

  /* 標準 CSS（Bootstrap）の基本値も合わせておく */
  --bs-body-font-family: var(--pb-font);
  --bs-body-font-size: 1rem;
  --bs-body-line-height: 1.7;
  --bs-body-color: var(--pb-text);
  --bs-body-bg: var(--pb-bg);
  --bs-link-color: var(--pb-blue);
  --bs-link-hover-color: var(--pb-blue-dark);
}

/* タブレット・PC（幅 768px 以上）のときの値 */
@media (min-width: 768px) {
  :root {
    --pb-gutter: 24px;
    --pb-section-gap: 64px;
    --pb-grid-gap: 20px;
    --pb-header-h: 76px;
    --pb-logo-h: 34px;
    --pb-card-cols: 3;
    --pb-card-cols-compact: 3;
  }
}
/* 広い PC（幅 1024px 以上）のときの値 */
@media (min-width: 1024px) {
  :root {
    --pb-gutter: 32px;
    --pb-section-gap: 80px;
    --pb-grid-gap: 24px;
    --pb-card-cols: 4;
    --pb-card-cols-compact: 6;
  }
}


/* ==========================================================================
   1. 土台
   ========================================================================== */
html {
  font-family: var(--pb-font);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--pb-header-h) + 16px);   /* ページ内リンクで飛んだとき、固定ヘッダーに隠れないように */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body.pb-body {
  font-family: var(--pb-font);
  font-size: var(--pb-fs-md);
  line-height: var(--pb-lh);
  color: var(--pb-text);
  background: var(--pb-bg);
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

.pb-body button,
.pb-body input,
.pb-body select,
.pb-body textarea {
  font-family: var(--pb-font);
}

.pb-body a {
  color: var(--pb-blue);
  text-underline-offset: 0.2em;
}
.pb-body a:hover {
  color: var(--pb-blue-dark);
}

/* :where() で囲むと「弱い指定」になり、下の各部品の指定が必ず勝つ */
:where(.pb-body) img {
  max-width: 100%;
  height: auto;
}

/* キーボードで選んでいる場所がはっきり見えるように */
.pb-body a:focus-visible,
.pb-body button:focus-visible,
.pb-body summary:focus-visible,
.pb-body [tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--pb-focus);
  border-radius: 4px;
}
.pb-body main:focus,
.pb-body section:focus {
  outline: none;
  box-shadow: none;
}

/* 画面には出さず、読み上げソフトにだけ伝える文字 */
.pb-visuallyHidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* 「本文へ移動」（キーボードの Tab を最初に押したときだけ出る） */
.pb-skipLink {
  position: absolute;
  left: 8px;
  top: -80px;
  z-index: 2000;
  padding: 12px 16px;
  background: var(--pb-blue);
  color: #fff !important;
  font-weight: 700;
  border-radius: var(--pb-radius-sm);
  text-decoration: none;
}
.pb-skipLink:focus {
  top: 8px;
}

.pb-icon {
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

/* 中身の幅をそろえる箱 */
.pb-container {
  width: 100%;
  max-width: calc(var(--pb-container) + var(--pb-gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--pb-gutter);
  box-sizing: border-box;
}
.pb-container--narrow {
  max-width: calc(var(--pb-container-narrow) + var(--pb-gutter) * 2);
}

/* 標準のレイアウト枠: 中身の最大幅は各ブロック側（.pb-container / .ec-role）で決めるので、枠は画面いっぱいにする */
.ec-layoutRole {
  background: var(--pb-bg);
  transform: none !important;
}
.ec-layoutRole .ec-layoutRole__contents {
  max-width: none;
}
.ec-layoutRole .ec-layoutRole__main,
.ec-layoutRole .ec-layoutRole__mainWithColumn,
.ec-layoutRole .ec-layoutRole__mainBetweenColumn {
  min-width: 0;
}


/* ==========================================================================
   2. 共通の部品
   ========================================================================== */

/* ── ボタン ───────────────────────────────────────── */
.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--pb-tap);
  padding: 8px 24px;
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: var(--pb-radius-sm);
  font-size: var(--pb-fs-md);
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.pb-btn--lg {
  min-height: 56px;
  padding-inline: 28px;
  font-size: var(--pb-fs-lg);
}
.pb-body .pb-btn--primary {
  background: var(--pb-blue);
  border-color: var(--pb-blue);
  color: #fff;
}
.pb-body .pb-btn--primary:hover {
  background: var(--pb-blue-dark);
  border-color: var(--pb-blue-dark);
  color: #fff;
}
.pb-body .pb-btn--ghost {
  background: #fff;
  border-color: var(--pb-blue);
  color: var(--pb-blue);
}
.pb-body .pb-btn--ghost:hover {
  background: var(--pb-blue-pale);
  color: var(--pb-blue-dark);
}

/* ── セクション（トップページの 1 かたまり） ───────── */
.pb-section {
  padding-block: var(--pb-section-gap);
}
.pb-section--soft {
  background: var(--pb-bg-soft);
}
.pb-sectionHead {
  margin-bottom: 24px;
}
.pb-sectionHead--row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.pb-sectionHead__title {
  position: relative;
  margin: 0;
  padding-left: 16px;
  font-size: var(--pb-fs-xl);
  font-weight: 700;
  line-height: 1.4;
  color: var(--pb-text);
}
.pb-sectionHead__title::before {      /* 見出しの左の青い棒 */
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 5px;
  border-radius: 3px;
  background: var(--pb-blue);
}
.pb-sectionHead__lead {
  margin: 10px 0 0;
  font-size: var(--pb-fs-md);
  color: var(--pb-text-sub);
}
@media (min-width: 768px) {
  .pb-sectionHead { margin-bottom: 32px; }
  .pb-sectionHead__title { font-size: var(--pb-fs-2xl); padding-left: 20px; }
}

.pb-moreLink {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  flex: none;
  font-weight: 700;
  text-decoration: none;
}
.pb-moreLink:hover { text-decoration: underline; }

/* ── ページの題名・パンくず ───────────────────────── */
.pb-page {
  padding-top: 12px;
  padding-bottom: 56px;
}
.other_page .pb-page { padding-top: 0; padding-bottom: 0; }      /* 標準ページの枠の中では、枠側の余白を使う */
@media (min-width: 768px) {
  .pb-page { padding-top: 20px; padding-bottom: 88px; }
  .other_page .pb-page { padding-top: 0; padding-bottom: 0; }
}

.pb-pageTitle {
  margin: 8px 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--pb-text);
}
.pb-pageTitle__sub {
  display: block;
  margin-bottom: 2px;
  font-size: var(--pb-fs-sm);
  font-weight: 700;
  color: var(--pb-blue);
}
@media (min-width: 768px) {
  .pb-pageTitle { margin: 12px 0 28px; font-size: 1.875rem; }
}

.pb-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--pb-fs-sm);
  color: var(--pb-text-sub);
}
.pb-breadcrumb__list li {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: none;
}
@media (max-width: 767.98px) {
  .pb-breadcrumb__list {                 /* スマホでは 1 行。長いときは指で横に送れる */
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pb-breadcrumb__list::-webkit-scrollbar { display: none; }
}
.pb-breadcrumb__list li + li::before {
  content: "›";
  margin: 0 8px;
  color: var(--pb-line-strong);
}
.pb-breadcrumb__list a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  justify-content: center;
  color: var(--pb-text-sub);
}
.pb-breadcrumb__list [aria-current] {
  color: var(--pb-text);
}

/* ── 小さな丸ボタンの並び（カテゴリの絞り込み・関連カテゴリ） ── */
.pb-chips { margin-bottom: 20px; }
.pb-chips__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pb-body .pb-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 16px;
  box-sizing: border-box;
  border: 1px solid var(--pb-blue-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pb-blue-dark);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}
.pb-body .pb-chip:hover {
  background: var(--pb-blue-pale);
  border-color: var(--pb-blue);
}
.pb-body .pb-chip.is-current {
  background: var(--pb-blue);
  border-color: var(--pb-blue);
  color: #fff;
}
.pb-chip__sep {
  margin: 0 6px;
  opacity: 0.6;
}

/* ── 価格 ─────────────────────────────────────────── */
.pb-price {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--pb-text);
  font-feature-settings: "palt";
}
.pb-price__sep { margin: 0 2px; font-weight: 400; }
.pb-price__tax {
  margin-left: 4px;
  font-size: var(--pb-fs-xs);
  color: var(--pb-text-sub);
}
.pb-price--lg { font-size: 1.875rem; line-height: 1.3; }

/* ── 商品カード・商品の並び ───────────────────────── */
.pb-productGrid {
  display: grid;
  grid-template-columns: repeat(var(--pb-card-cols), minmax(0, 1fr));     /* 列数は「調整つまみ」の --pb-card-cols（スマホ 2・タブレット 3・PC 4） */
  gap: 24px var(--pb-grid-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.pb-productGrid--compact {
  grid-template-columns: repeat(var(--pb-card-cols-compact), minmax(0, 1fr));   /* おすすめ商品（スマホ 2・タブレット 3・PC 6） */
}
@media (min-width: 768px) {
  .pb-productGrid { row-gap: 36px; }
}
@media (min-width: 1024px) {
  .pb-productGrid { row-gap: 44px; }
  .pb-productGrid--compact { gap: 32px 20px; }
}

.pb-card { height: 100%; }
.pb-body .pb-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: var(--pb-text);
  text-decoration: none;
  border-radius: var(--pb-radius);
}
.pb-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--pb-radius);
  background: var(--pb-bg-soft);
  border: 1px solid var(--pb-line);
}
.pb-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.pb-card__link:hover .pb-card__image { border-color: var(--pb-blue-line); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pb-card__link:hover .pb-card__image img { transform: scale(1.04); }
}
.pb-card__name {
  margin: 10px 0 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--pb-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;          /* 商品名は 3 行まで。長い名前は「…」で省略 */
  overflow: hidden;
}
.pb-card__link:hover .pb-card__name { color: var(--pb-blue-dark); text-decoration: underline; }
.pb-card__price {
  margin: 6px 0 0;
  padding-top: 2px;
  line-height: 1.4;
}
.pb-card__badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pb-dark);
  color: #fff;
  font-size: var(--pb-fs-xs);
  font-weight: 700;
  line-height: 1.5;
}
.pb-card.is-soldout .pb-card__image img { opacity: 0.55; }
@media (min-width: 768px) {
  .pb-card__name { font-size: var(--pb-fs-md); margin-top: 12px; }
  .pb-price { font-size: var(--pb-fs-lg); }
  .pb-price--lg { font-size: 2.125rem; }
  .pb-productGrid--compact .pb-card__name { font-size: 0.9375rem; }
  .pb-productGrid--compact .pb-price { font-size: 1.0625rem; }
}

/* ── タグ ─────────────────────────────────────────── */
.pb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  border: 0;
}
.pb-body .pb-tag {
  display: inline-block;
  margin: 0;
  padding: 2px 10px;
  border: 1px solid var(--pb-blue-line);
  border-radius: 999px;
  background: var(--pb-blue-pale);
  color: var(--pb-blue-dark);
  font-size: var(--pb-fs-xs);
  font-weight: 700;
  line-height: 1.6;
}

/* ── 管理画面で入力された文章（商品説明・フリーエリア・新着情報の本文） ── */
.pb-richText {
  font-size: var(--pb-fs-md);
  line-height: 1.9;
  color: var(--pb-text);
}
.pb-richText img { max-width: 100%; height: auto; }
.pb-richText table { max-width: 100%; }


/* ==========================================================================
   3. ヘッダー・カテゴリナビ・引き出しメニュー・フッター
   ========================================================================== */

/* ── ヘッダー ─────────────────────────────────────── */
/* スマホ: メニュー・ロゴ・ログイン・カートの帯（.pb-header__bar）だけを上部に固定し、検索欄はその下でスクロールと一緒に流す。
   そのために外側の箱（header と .pb-header）を display: contents で「無いもの」として扱っている。 */
.ec-layoutRole__header,
.pb-header {
  display: contents;
}
.pb-header__bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2px;
  height: var(--pb-header-h);
  padding: 0 6px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--pb-line);
  transition: box-shadow 0.2s;
}
.pb-is-scrolled .pb-header__bar {
  box-shadow: var(--pb-shadow);
}
.pb-header__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.pb-header__search {
  padding: 10px var(--pb-gutter) 12px;
  background: var(--pb-bg);
  border-bottom: 1px solid var(--pb-line);
}

/* ロゴ */
.pb-logo {
  margin: 0 0 0 4px;
  min-width: 0;
  font-size: 1rem;
  line-height: 1;
}
.pb-body .pb-logo__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  text-decoration: none;
  color: var(--pb-text);
}
.pb-logo__img {
  display: block;
  width: auto;
  height: var(--pb-logo-h);     /* ロゴ画像の高さ（「調整つまみ」の --pb-logo-h） */
}
.pb-logo__store {
  padding-left: 8px;
  border-left: 1px solid var(--pb-line-strong);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.5;
  color: var(--pb-text);
}

.pb-logo__link,
.pb-logo__store { white-space: nowrap; }
@media (max-width: 359.98px) {        /* 幅の狭いスマホ（320px など）では、ロゴとボタンを少し詰める */
  .pb-header__bar { padding: 0 2px; gap: 0; }
  .pb-logo { margin-left: 8px; }
  .pb-body .pb-logo__link { gap: 5px; }
  .pb-logo__img { height: 20px; }
  .pb-logo__store { padding-left: 6px; font-size: 0.6875rem; letter-spacing: 0.1em; }
  .pb-body .pb-header__bar .pb-iconBtn { min-width: 46px; padding-inline: 1px; }
}

/* アイコン＋小さな文字のボタン（メニュー・ログイン・カート） */
.pb-body .pb-iconBtn {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 52px;
  min-height: 52px;
  padding: 2px 4px;
  box-sizing: border-box;
  border: 0;
  border-radius: var(--pb-radius-sm);
  background: transparent;
  color: var(--pb-text);
  text-decoration: none;
  cursor: pointer;
}
.pb-body .pb-iconBtn:hover {
  background: var(--pb-blue-pale);
  color: var(--pb-blue-dark);
}
.pb-iconBtn__label {
  font-size: 0.75rem;            /* 12px。アイコンの下の補助の文字 */
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.pb-userNav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pb-userNav__item--wideOnly { display: none; }      /* スマホでは引き出しメニューの中にあるので隠す */

.pb-cartBtn__icon {
  position: relative;
  display: inline-flex;
}
.pb-cartBtn__badge {
  position: absolute;
  top: -9px;
  right: -13px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 11px;
  border: 2px solid #fff;
  background: var(--pb-buy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

/* 検索欄 */
.pb-search {
  position: relative;
  display: flex;
  margin: 0;
}
.pb-body .pb-search__input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: var(--pb-tap);
  padding: 0 56px 0 16px;
  box-sizing: border-box;
  border: 1px solid var(--pb-line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--pb-text);
  font-size: 1rem;               /* 16px 未満にすると iPhone で勝手に拡大されるので 16px 以上に */
  line-height: 1.4;
  appearance: none;
  -webkit-appearance: none;
}
.pb-search__input::placeholder { color: #6b7680; opacity: 1; }
.pb-body .pb-search__input:focus {
  outline: none;
  border-color: var(--pb-blue);
  box-shadow: 0 0 0 3px rgba(0, 98, 168, 0.25);
}
.pb-body .pb-search__btn {
  position: absolute;
  right: 2px;
  top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: calc(var(--pb-tap) - 4px);
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--pb-blue);
  color: #fff;
  cursor: pointer;
}
.pb-body .pb-search__btn:hover { background: var(--pb-blue-dark); }

/* PC 用カテゴリナビ（スマホでは出さない） */
.pb-catNav { display: none; }

@media (min-width: 768px) {
  /* PC: ロゴ・検索・会員メニュー・カートを 1 行に並べ、その行ごと上部に固定 */
  .ec-layoutRole__header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--pb-line);
    transition: box-shadow 0.2s;
  }
  .pb-is-scrolled .ec-layoutRole__header { box-shadow: var(--pb-shadow); }
  .pb-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 24px;
    max-width: calc(var(--pb-container) + var(--pb-gutter) * 2);
    height: var(--pb-header-h);
    margin-inline: auto;
    padding-inline: var(--pb-gutter);
    box-sizing: border-box;
  }
  .pb-header__bar { display: contents; }
  .pb-header__menu { display: none !important; }
  .pb-logo { grid-column: 1; grid-row: 1; margin: 0; }
  .pb-logo__store { font-size: 0.9375rem; padding-left: 10px; }
  .pb-header__search {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 100%;
    max-width: 520px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .pb-header__actions { grid-column: 3; grid-row: 1; margin-left: 0; gap: 4px; }
  .pb-userNav { gap: 4px; }
  .pb-userNav__item--wideOnly { display: block; }
  .pb-body .pb-iconBtn { min-width: 64px; min-height: 56px; padding: 4px 8px; }
  .pb-iconBtn__label { font-size: 0.8125rem; }

  .pb-catNav {
    display: block;
    background: var(--pb-bg);
    border-bottom: 1px solid var(--pb-line);
  }
  .pb-catNav__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: calc(var(--pb-container) + var(--pb-gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--pb-gutter);
    box-sizing: border-box;
    list-style: none;
  }
  .pb-catNav__item { position: relative; }
  .pb-body .pb-catNav__link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 14px;
    color: var(--pb-text);
    font-size: 0.9375rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    box-sizing: border-box;
  }
  .pb-catNav__item.has-children > .pb-catNav__link::after {   /* 子カテゴリがある印（小さな下向きの山） */
    content: "";
    width: 6px;
    height: 6px;
    margin-left: 8px;
    margin-top: -3px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.6;
  }
  .pb-catNav__item:hover > .pb-catNav__link,
  .pb-catNav__item:focus-within > .pb-catNav__link,
  .pb-catNav__item.is-current > .pb-catNav__link {
    color: var(--pb-blue);
    border-bottom-color: var(--pb-blue);
  }
  .pb-catNav__sub {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 90;
    min-width: 240px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #fff;
    border: 1px solid var(--pb-line);
    border-radius: 0 0 var(--pb-radius) var(--pb-radius);
    box-shadow: var(--pb-shadow-lg);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s, visibility 0s linear 0.15s;
  }
  /* 右寄りのカテゴリは、サブメニューを右端合わせで出す（左合わせだと画面の右へはみ出し、横スクロールが出る） */
  .pb-catNav__item:nth-last-child(-n+3) > .pb-catNav__sub { left: auto; right: 0; }
  .pb-catNav__item:hover > .pb-catNav__sub,
  .pb-catNav__item:focus-within > .pb-catNav__sub {
    visibility: visible;      /* 開くときは待たずに出す（キーボードの Tab ですぐ中へ進めるように） */
    opacity: 1;
    transition: opacity 0.15s, visibility 0s;
  }
  .pb-body .pb-catNav__sub a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 12px;
    border-radius: 6px;
    color: var(--pb-text);
    font-size: 0.9375rem;
    text-decoration: none;
    white-space: nowrap;
  }
  .pb-body .pb-catNav__sub a:hover,
  .pb-body .pb-catNav__sub a[aria-current] {
    background: var(--pb-blue-pale);
    color: var(--pb-blue-dark);
  }
}
@media (min-width: 1024px) {
  .pb-header { column-gap: 40px; }
  /* カテゴリ欄を 1 行に収める（大分類 9 個の場合）。狭めの PC では文字と余白を少し詰める */
  .pb-body .pb-catNav__link { padding: 0 6px; font-size: 0.8125rem; }
}
@media (min-width: 1200px) {
  .pb-body .pb-catNav__link { padding: 0 14px; font-size: 1rem; }
}

/* ── 引き出しメニュー（スマホ） ───────────────────── */
.have_curtain { overflow: hidden; }       /* 開いている間、後ろの画面をスクロールさせない */

.ec-overlayRole {
  z-index: 900;
  height: 100vh;
  height: 100dvh;
}
.have_curtain .ec-overlayRole {
  background: rgba(15, 25, 35, 0.5);
}
.ec-drawerRole {
  display: block;
  top: 0;
  left: 0;
  width: min(88vw, 360px);
  height: 100vh;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: var(--pb-text);
  z-index: 1000;
  transform: translateX(-104%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
  box-shadow: var(--pb-shadow-lg);
  padding-bottom: 40px;
  box-sizing: border-box;
}
.ec-drawerRole.is_active {
  display: block;
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.25s ease, visibility 0s;
  z-index: 1000;
}
@media (prefers-reduced-motion: reduce) {
  .ec-drawerRole, .ec-drawerRole.is_active { transition: none; }
}
@media (min-width: 768px) {
  .ec-drawerRole, .ec-drawerRole.is_active { display: none; }
  .have_curtain { overflow: visible; }
}

.pb-drawer__head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--pb-header-h);
  padding: 0 8px 0 var(--pb-gutter);
  background: #fff;
  border-bottom: 1px solid var(--pb-line);
}
.pb-drawer__title {
  margin: 0;
  font-size: var(--pb-fs-lg);
  font-weight: 700;
}
.ec-drawerRole .pb-drawer__close {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: auto;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--pb-radius-sm);
  background: transparent;
  color: var(--pb-text);
  font-size: var(--pb-fs-sm);
  font-weight: 700;
  cursor: pointer;
}
.ec-drawerRole .pb-drawer__close:hover { background: var(--pb-blue-pale); }

.pb-drawerUser { padding: 16px var(--pb-gutter) 8px; }
.pb-drawerUser__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pb-drawerUser__list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pb-body .pb-drawerUser__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 4px 8px;
  box-sizing: border-box;
  border: 1px solid var(--pb-blue-line);
  border-radius: var(--pb-radius-sm);
  background: var(--pb-blue-pale);
  color: var(--pb-blue-dark);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.pb-drawerNav { padding: 16px 0 0; }
.pb-drawerNav__heading {
  margin: 0;
  padding: 8px var(--pb-gutter);
  background: var(--pb-bg-soft);
  font-size: var(--pb-fs-sm);
  font-weight: 700;
  color: var(--pb-text-sub);
}
.pb-drawerNav__list,
.pb-drawerNav__sub {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pb-drawerNav__list > li { border-bottom: 1px solid var(--pb-line); }
.pb-body .pb-drawerNav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 52px;
  padding: 6px var(--pb-gutter);
  box-sizing: border-box;
  color: var(--pb-text);
  font-size: var(--pb-fs-md);
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.pb-body .pb-drawerNav__link:hover,
.pb-body .pb-drawerNav__link[aria-current] {
  background: var(--pb-blue-pale);
  color: var(--pb-blue-dark);
}
.pb-drawerNav__link .pb-icon { color: var(--pb-line-strong); }
.pb-drawerNav__group > summary { list-style: none; }
.pb-drawerNav__group > summary::-webkit-details-marker { display: none; }
.pb-drawerNav__group[open] > summary { font-weight: 700; }
.pb-drawerNav__group[open] > summary .pb-icon { transform: rotate(180deg); }
.pb-drawerNav__sub { background: var(--pb-bg-soft); padding-bottom: 4px; }
.pb-drawerNav__sub .pb-drawerNav__link {
  min-height: 48px;
  padding-left: calc(var(--pb-gutter) + 16px);
  font-size: 0.9375rem;
}

/* ── ページの先頭へ戻るボタン ─────────────────────── */
.ec-blockTopBtn {
  right: 12px;
  bottom: 16px;
  z-index: 80;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--pb-line);
  border-radius: 50%;
  background: #fff;
  color: var(--pb-blue);
  line-height: 1;
  opacity: 1;
  box-shadow: var(--pb-shadow);
  cursor: pointer;
}
.ec-blockTopBtn:hover { background: var(--pb-blue-pale); }
.pb-pagetop__label { display: none; }
@media (min-width: 768px) {
  .ec-blockTopBtn { right: 24px; bottom: 24px; }
}

/* ── フッター ─────────────────────────────────────── */
.ec-layoutRole__footer { margin-top: auto; }
.pb-footer {
  background: var(--pb-bg-soft);
  border-top: 1px solid var(--pb-line);
  color: var(--pb-text);
  font-size: 0.9375rem;
}
.pb-footer__inner {
  display: grid;
  gap: 32px;
  padding-top: 36px;
  padding-bottom: 32px;
}
.pb-footer__heading {
  margin: 0 0 8px;
  font-size: var(--pb-fs-sm);
  font-weight: 700;
  color: var(--pb-text-sub);
}
.pb-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}
.pb-footer__links li { border-bottom: 1px solid var(--pb-line); }
.pb-body .pb-footer__links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--pb-text);
  font-weight: 500;
  text-decoration: none;
}
.pb-body .pb-footer__links a:hover { color: var(--pb-blue); text-decoration: underline; }
.pb-footer__shopName {
  margin: 0 0 4px;
  font-size: var(--pb-fs-lg);
  font-weight: 700;
}
.pb-footer__address {
  margin: 0;
  font-style: normal;
  line-height: 1.8;
}
.pb-footer__line { display: block; }
.pb-footer__corp { margin: 12px 0 0; }
.pb-footer__corp a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}
.pb-footer__bottom { border-top: 1px solid var(--pb-line); }
.pb-footer__copyright {
  margin: 0;
  padding: 16px 0;
  font-size: var(--pb-fs-xs);
  color: var(--pb-text-sub);
  text-align: center;
}
@media (min-width: 768px) {
  .pb-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 48px;
  }
  .pb-footer__links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .pb-footer__links li { border-bottom: 0; }
  .pb-body .pb-footer__links a { min-height: 44px; }
}


/* ==========================================================================
   4. トップページの各ブロック
   ========================================================================== */

/* ── 主メッセージ ─────────────────────────────────── */
.pb-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 98, 168, 0.13) 0, rgba(0, 98, 168, 0) 46%),
    radial-gradient(circle at 8% 100%, rgba(0, 98, 168, 0.08) 0, rgba(0, 98, 168, 0) 40%),
    linear-gradient(180deg, var(--pb-blue-pale) 0%, #f7fbfe 100%);
  border-bottom: 1px solid var(--pb-blue-line);
}
.pb-hero__inner {
  display: grid;
  gap: 24px;
  padding-top: 32px;
  padding-bottom: 36px;
}
.pb-hero__eyebrow {
  margin: 0 0 12px;
  font-size: var(--pb-fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--pb-blue);
}
.pb-hero__title {
  margin: 0;
  line-height: 1.25;
  color: var(--pb-text);
}
.pb-hero__label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--pb-blue);
  color: #fff;
  font-size: var(--pb-fs-sm);
  font-weight: 700;
  line-height: 1.6;
}
.pb-hero__lead {
  display: block;
  font-size: 1.375rem;           /* 「1万円以上のご購入で」 */
  font-weight: 700;
}
.pb-hero__strong {
  display: block;
  margin-top: 2px;
  font-size: 3.25rem;            /* 「送料無料」 */
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--pb-blue);
}
.pb-hero__note {
  margin: 14px 0 0;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--pb-text-sub);
}
.pb-hero__actions {
  display: grid;
  gap: 12px;
  align-content: center;
}
@media (min-width: 768px) {
  .pb-hero__inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr);
    align-items: center;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 60px;
  }
  .pb-hero__lead { font-size: 1.75rem; }
  .pb-hero__strong { font-size: 4.5rem; }
  .pb-hero__note { font-size: var(--pb-fs-md); }
}
@media (min-width: 1024px) {
  .pb-hero__inner { padding-top: 72px; padding-bottom: 76px; }
  .pb-hero__lead { font-size: 2rem; }
  .pb-hero__strong { font-size: 5.5rem; }
}

/* ── お使いの機種から探す ─────────────────────────── */
.pb-modelGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pb-modelCard {
  padding: 16px;
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  background: #fff;
  box-shadow: var(--pb-shadow);
}
.pb-modelCard__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pb-modelCard__image {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: var(--pb-radius-sm);
  background: var(--pb-bg-soft);
}
.pb-modelCard__name {
  margin: 0;
  font-size: var(--pb-fs-lg);
  font-weight: 700;
  line-height: 1.4;
  color: var(--pb-text);
}
.pb-modelCard__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.pb-body .pb-modelCard__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 76px;
  padding: 8px 6px;
  box-sizing: border-box;
  border: 1px solid var(--pb-blue-line);
  border-radius: var(--pb-radius-sm);
  background: var(--pb-blue-pale);
  color: var(--pb-blue-dark);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.pb-body .pb-modelCard__link:hover {
  background: var(--pb-blue);
  border-color: var(--pb-blue);
  color: #fff;
}
@media (min-width: 600px) {
  .pb-modelGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1024px) {
  .pb-modelGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .pb-modelCard { padding: 24px; }
  .pb-modelCard__name { font-size: 1.25rem; }
  .pb-modelCard__head { margin-bottom: 16px; }
}

/* ── 種類から探す ─────────────────────────────────── */
.pb-kindGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pb-body .pb-kindTile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  height: 100%;
  padding: 10px 14px 10px 16px;
  box-sizing: border-box;
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  background: #fff;
  color: var(--pb-text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pb-body .pb-kindTile:hover {
  border-color: var(--pb-blue);
  box-shadow: var(--pb-shadow);
}
.pb-kindTile__body { min-width: 0; }
.pb-kindTile__name {
  display: block;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
}
.pb-kindTile__children {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: 2px;
  font-size: var(--pb-fs-xs);
  line-height: 1.5;
  color: var(--pb-text-sub);
}
.pb-kindTile .pb-icon { color: var(--pb-blue); }
@media (min-width: 600px) {
  .pb-kindGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 1024px) {
  .pb-kindGrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .pb-body .pb-kindTile { min-height: 80px; padding: 14px 18px 14px 22px; }
}

/* ── 新着情報 ─────────────────────────────────────── */
.pb-newsList {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--pb-line);
}
.pb-newsList__item { border-bottom: 1px solid var(--pb-line); }
.pb-newsItem__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  min-height: 56px;
  padding: 12px 4px;
  box-sizing: border-box;
  list-style: none;
}
summary.pb-newsItem__head { cursor: pointer; }
summary.pb-newsItem__head::-webkit-details-marker { display: none; }
summary.pb-newsItem__head:hover { background: var(--pb-bg-soft); }
.pb-newsItem__date {
  grid-column: 1;
  font-size: var(--pb-fs-sm);
  color: var(--pb-text-sub);
}
.pb-newsItem__title {
  grid-column: 1;
  font-size: var(--pb-fs-md);
  font-weight: 500;
  line-height: 1.6;
}
.pb-newsItem__head .pb-icon {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--pb-blue);
  transition: transform 0.2s;
}
.pb-newsItem[open] .pb-newsItem__head .pb-icon { transform: rotate(180deg); }
.pb-newsItem__body {
  margin: 0 0 16px;
  padding: 16px;
  border-radius: var(--pb-radius-sm);
  background: var(--pb-bg-soft);
  font-size: 0.9375rem;
  line-height: 1.9;
}
.pb-newsItem__link { margin: 12px 0 0; font-weight: 700; }
.pb-news__more { margin: 24px 0 0; text-align: center; }
@media (min-width: 768px) {
  .pb-newsItem__head {
    grid-template-columns: 9.5em minmax(0, 1fr) auto;
    padding: 14px 8px;
  }
  .pb-newsItem__date { grid-column: 1; }
  .pb-newsItem__title { grid-column: 2; }
  .pb-newsItem__head .pb-icon { grid-column: 3; grid-row: 1; }
}

/* ── 営業日カレンダー ─────────────────────────────── */
.pb-calendar__legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 16px;
  font-size: var(--pb-fs-sm);
}
.pb-calendar__legendMark {
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  box-sizing: border-box;
}
.pb-calendar__legendMark.is-holiday { background: var(--pb-red-pale); border: 1px solid #f3b7b1; }
.pb-calendar__legendMark.is-today { border: 2px solid var(--pb-blue); background: #fff; }
.pb-calendar__months {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.pb-calendar__month {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  background: #fff;
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  padding: 8px;
}
.pb-calendar__title {
  caption-side: top;
  padding: 0 0 8px;
  font-size: var(--pb-fs-lg);
  font-weight: 700;
  color: var(--pb-text);
  text-align: center;
}
.pb-calendar__month th {
  padding: 6px 0;
  font-size: var(--pb-fs-sm);
  font-weight: 700;
  color: var(--pb-text-sub);
  text-align: center;
}
.pb-calendar__month th.is-sun { color: var(--pb-red); }
.pb-calendar__month td {
  padding: 3px 0;
  text-align: center;
  font-size: var(--pb-fs-md);
}
.pb-calendar__day {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  box-sizing: border-box;
  font-feature-settings: "tnum";
}
.pb-calendar__month td.is-holiday .pb-calendar__day {
  background: var(--pb-red-pale);
  color: var(--pb-red);
  font-weight: 700;
}
.pb-calendar__month td.is-today .pb-calendar__day {
  border: 2px solid var(--pb-blue);
  font-weight: 700;
}
.pb-calendar__note {
  margin: 16px 0 0;
  font-size: var(--pb-fs-sm);
  color: var(--pb-text-sub);
}
@media (min-width: 600px) {
  .pb-calendar__months { grid-template-columns: 1fr 1fr; gap: 24px; }
  .pb-calendar__month { padding: 12px; }
}

/* ── お買い物ガイド ───────────────────────────────── */
.pb-guideGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pb-guideCard {
  padding: 20px;
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  background: #fff;
  font-size: 0.9375rem;
  line-height: 1.8;
}
.pb-guideCard__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: var(--pb-fs-lg);
  font-weight: 700;
  color: var(--pb-text);
}
.pb-guideCard__title .pb-icon { color: var(--pb-blue); }
.pb-guideCard p { margin: 0 0 6px; }
.pb-guideCard p:last-child { margin-bottom: 0; }
.pb-guideCard__main { font-size: var(--pb-fs-lg); }
.pb-guideCard__main strong { font-size: 1.375rem; color: var(--pb-blue); }
.pb-guideCard__list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pb-guideCard__list li {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--pb-bg-soft);
  border: 1px solid var(--pb-line);
  font-size: var(--pb-fs-sm);
  font-weight: 500;
}
.pb-guide__actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
@media (min-width: 600px) {
  .pb-guideGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .pb-guide__actions { display: flex; flex-wrap: wrap; justify-content: center; }
}
@media (min-width: 1024px) {
  .pb-guideGrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}


/* ==========================================================================
   5. 商品一覧
   ========================================================================== */
.pb-list__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin: 0 0 20px;
  padding: 12px 0;
  border-top: 1px solid var(--pb-line);
  border-bottom: 1px solid var(--pb-line);
  color: var(--pb-text);
  max-width: none;
}
.pb-list__count {
  margin: 0;
  font-size: 0.9375rem;
}
.pb-list__count strong { font-size: var(--pb-fs-lg); }
.pb-list__selects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.pb-selectLabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.pb-selectLabel__text {
  font-size: var(--pb-fs-sm);
  color: var(--pb-text-sub);
  white-space: nowrap;
}
.pb-body select.pb-select {
  width: auto;
  max-width: 100%;
  height: 44px;
  padding: 0 36px 0 12px;
  box-sizing: border-box;
  border: 1px solid var(--pb-line-strong);
  border-radius: var(--pb-radius-sm);
  background-color: #fff;
  color: var(--pb-text);
  font-size: 1rem;
  line-height: 1.4;
}
@media (max-width: 767.98px) {
  .pb-list__selects { width: 100%; flex-wrap: nowrap; gap: 8px; }
  .pb-selectLabel { flex: 1 1 0; min-width: 0; }
  .pb-selectLabel__text {              /* スマホでは場所を取るので画面からは隠す（読み上げには残る） */
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .pb-body select.pb-select { width: 100%; }
}
.pb-list__empty {
  padding: 24px 0 8px;
  max-width: none;
}
.pb-list__empty p { margin: 0 0 16px; }
.pb-list .ec-pagerRole { margin-top: 40px; }


/* ==========================================================================
   6. 商品詳細
   ========================================================================== */
.pb-product.ec-productRole {                 /* 標準の .ec-productRole の余白・幅を打ち消す */
  max-width: calc(var(--pb-container) + var(--pb-gutter) * 2);
  padding-left: var(--pb-gutter);
  padding-right: var(--pb-gutter);
  color: var(--pb-text);
  line-height: var(--pb-lh);
}
.pb-product__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 8px;
}
@media (min-width: 768px) {
  .pb-product__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 16px;
  }
  .pb-product__media { position: sticky; top: calc(var(--pb-header-h) + 16px); }
}
@media (min-width: 1024px) {
  .pb-product__layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; }
}

/* 画像ギャラリー */
.pb-gallery__viewport {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  background: var(--pb-bg-soft);
}
.pb-gallery__viewport::-webkit-scrollbar { display: none; }
.pb-gallery__slide {
  flex: 0 0 100%;
  aspect-ratio: 1 / 1;
  scroll-snap-align: start;
}
.pb-gallery__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pb-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.pb-body .pb-gallery__thumb {
  display: block;
  width: 64px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--pb-line);
  border-radius: var(--pb-radius-sm);
  background: var(--pb-bg-soft);
  cursor: pointer;
}
.pb-gallery__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pb-body .pb-gallery__thumb.is-current { border-color: var(--pb-blue); }
@media (min-width: 768px) {
  .pb-body .pb-gallery__thumb { width: 76px; height: 76px; }
}

/* 商品名・価格 */
.pb-product__name {
  margin: 0 0 6px;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--pb-text);
}
.pb-product .pb-product__code {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-size: var(--pb-fs-sm);
  color: var(--pb-text-sub);
}
.pb-product__priceBox {
  margin: 0 0 20px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--pb-line);
  border-bottom: 1px solid var(--pb-line);
}
.pb-product .pb-product__priceRegular {
  margin: 0 0 2px;
  padding: 0;
  font-size: var(--pb-fs-sm);
  color: var(--pb-text-sub);
}
.pb-product .ec-productRole__priceRegularTax { font-size: var(--pb-fs-xs); }
.pb-product__price.ec-productRole__price {
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--pb-text);
  line-height: 1.3;
}
.pb-product__price .pb-price__tax { font-size: var(--pb-fs-sm); }
.pb-product__point {
  display: inline-block;
  margin: 10px 0 0;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--pb-blue-pale);
  color: var(--pb-blue-dark);
  font-size: var(--pb-fs-sm);
}
@media (min-width: 768px) {
  .pb-product__name { font-size: var(--pb-fs-2xl); }
}

/* 規格・数量 */
.pb-buyForm__fields {
  display: grid;
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}
.pb-buyForm__field { margin: 0; max-width: none; }
.pb-buyForm__field .mb-3 { margin-bottom: 0 !important; }
.pb-buyForm__field label,
.pb-qty__label {
  display: block;
  margin: 0 0 6px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pb-text);
}
.pb-product .ec-productRole__actions .pb-buyForm__field select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 52px;
  padding: 0 40px 0 14px;
  box-sizing: border-box;
  border: 1px solid var(--pb-line-strong);
  border-radius: var(--pb-radius-sm);
  background-color: #fff;
  color: var(--pb-text);
  font-size: 1rem;
  line-height: 1.4;
}
.pb-qty__control {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--pb-line-strong);
  border-radius: var(--pb-radius-sm);
  overflow: hidden;
  background: #fff;
}
.pb-body .pb-qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  background: var(--pb-bg-soft);
  color: var(--pb-text);
  cursor: pointer;
}
.pb-body .pb-qty__btn:hover { background: var(--pb-blue-pale); color: var(--pb-blue-dark); }
.pb-body .pb-qty .pb-qty__input {
  width: 76px;
  max-width: none;
  height: 52px;
  margin: 0;
  padding: 0 4px;
  box-sizing: border-box;
  border: 0;
  border-left: 1px solid var(--pb-line-strong);
  border-right: 1px solid var(--pb-line-strong);
  border-radius: 0;
  background: #fff;
  color: var(--pb-text);
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
  appearance: textfield;
}
.pb-qty__input::-webkit-outer-spin-button,
.pb-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* カートに入れる（スマホでは画面の下に固定） */
.pb-product .ec-productRole__btn { width: 100%; min-width: 0; }
.pb-product .pb-buyBar { margin: 0 0 12px; }
.pb-body .pb-buyBar__btn {
  display: block;
  width: 100%;
  min-height: 56px;
  font-size: 1.125rem;
}
@media (max-width: 767.98px) {
  .pb-buyBar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    margin: 0;
    padding: 10px var(--pb-gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--pb-line);
    box-shadow: 0 -4px 14px rgba(20, 40, 60, 0.1);
  }
  /* 固定の帯にフッターや「先頭へ」ボタンが隠れないように */
  #page_product_detail .ec-layoutRole { padding-bottom: calc(var(--pb-buybar-h) + env(safe-area-inset-bottom, 0px)); }
  #page_product_detail .ec-blockTopBtn { bottom: calc(var(--pb-buybar-h) + 16px + env(safe-area-inset-bottom, 0px)); }
}

.pb-body .pb-favForm__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.pb-product .pb-favForm .ec-productRole__btn { margin: 0 0 16px; padding: 0; }
.pb-product__shipNote {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--pb-radius-sm);
  background: var(--pb-bg-soft);
  font-size: var(--pb-fs-sm);
  line-height: 1.7;
  color: var(--pb-text);
}
.pb-product__shipNote .pb-icon { margin-top: 2px; color: var(--pb-blue); }

/* 商品説明・関連カテゴリ */
.pb-product__section { margin-top: 44px; }
.pb-product__sectionTitle {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--pb-blue);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--pb-text);
}
.pb-product .ec-productRole__description {
  margin: 0;
  max-width: 820px;
}
.pb-product .ec-productRole__category { padding: 0; border: 0; }
.pb-product .ec-productRole__category .pb-chip { color: var(--pb-blue-dark); }
@media (min-width: 768px) {
  .pb-product__section { margin-top: 64px; }
  .pb-product__sectionTitle { font-size: 1.5rem; }
}

/* 「カートに追加しました」の窓（標準の ec-modal の着せ替え） */
.pb-body .ec-modal .ec-modal-wrap {
  width: min(92vw, 520px);
  padding: 44px 20px 24px;
  box-sizing: border-box;
  border-radius: var(--pb-radius);
  box-shadow: var(--pb-shadow-lg);
}
.pb-body .ec-modal #ec-modal-header {
  font-size: var(--pb-fs-lg);
  font-weight: 700;
  color: var(--pb-text);
}
.pb-body .ec-modal .ec-modal-box { margin-top: 20px; text-align: center; }
.pb-body .ec-modal .ec-modal-box .ec-role {
  display: grid;
  gap: 10px;
  padding: 0;
}
.pb-body .ec-modal .ec-inlineBtn--cancel,
.pb-body .ec-modal .ec-inlineBtn--action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 0;
  box-sizing: border-box;
  font-size: var(--pb-fs-md);
}
.pb-body .ec-modal .ec-inlineBtn--action { order: -1; }     /* 「カートへ進む」を上に */
.pb-body .ec-modal .ec-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  right: 4px;
  top: 4px;
}
.pb-body .ec-modal .ec-modal-close .ec-icon img { width: 18px; height: 18px; }
.pb-body .ec-modal .ec-modal-overlay { background-color: rgba(15, 25, 35, 0.5); }
.pb-body .ec-modal .ec-modal-wrap { border: 0; margin: 16px; }
@media (min-width: 768px) {
  .pb-body .ec-modal .ec-modal-box .ec-role { grid-template-columns: 1fr 1fr; }
  .pb-body .ec-modal .ec-inlineBtn--action { order: 0; }
}


/* ==========================================================================
   7. 標準ページの着せ替え
      （カート・購入手続き・マイページ・会員登録・お問い合わせ・パスワード再発行・ご利用ガイド類）
      これらは Twig を標準のまま使っているので、標準の class 名（ec-〇〇）に対して色・大きさだけを上書きしている。
   ========================================================================== */

/* ── 文字色・行間（標準は少し薄いグレー・詰まった行間） ── */
.pb-body .ec-role,
.pb-body .ec-cartRole,
.pb-body .ec-orderRole,
.pb-body .ec-mypageRole,
.pb-body .ec-registerRole,
.pb-body .ec-contactRole,
.pb-body .ec-contactConfirmRole,
.pb-body .ec-contactCompleteRole,
.pb-body .ec-customerRole,
.pb-body .ec-forgotRole,
.pb-body .ec-registerCompleteRole,
.pb-body .ec-cartCompleteRole,
.pb-body .ec-withdrawRole,
.pb-body .ec-404Role,
.pb-body .ec-off1Grid,
.pb-body .ec-off2Grid,
.pb-body .ec-off4Grid {
  color: var(--pb-text);
  line-height: var(--pb-lh);
}
/* 標準ページの中身の幅と左右の余白を、ヘッダーやトップページと同じ基準（--pb-container / --pb-gutter）にそろえる */
.pb-body .ec-role,
.pb-body .ec-cartRole,
.pb-body .ec-orderRole,
.pb-body .ec-mypageRole,
.pb-body .ec-registerRole,
.pb-body .ec-contactRole,
.pb-body .ec-contactConfirmRole,
.pb-body .ec-contactCompleteRole,
.pb-body .ec-customerRole,
.pb-body .ec-forgotRole,
.pb-body .ec-registerCompleteRole,
.pb-body .ec-cartCompleteRole,
.pb-body .ec-withdrawRole {
  max-width: calc(var(--pb-container) + var(--pb-gutter) * 2);
  padding-left: var(--pb-gutter);
  padding-right: var(--pb-gutter);
}
.pb-body .ec-role .ec-role,
.pb-body .ec-cartRole .ec-role,
.pb-body .ec-cartRole .ec-cartRole,
.pb-body .ec-mypageRole .ec-role,
.pb-body .ec-modal .ec-role { padding-left: 0; padding-right: 0; }      /* 入れ子のときは二重に余白を取らない */

/* 標準ページは、ヘッダーとの間・フッターとの間に余白を取る（トップと商品ページは各ブロックが自分で余白を持つ） */
.pb-body .ec-layoutRole__main { padding-top: 20px; padding-bottom: 56px; }
.pb-body.front_page .ec-layoutRole__main,
.pb-body.product_page .ec-layoutRole__main { padding-top: 0; padding-bottom: 0; }
@media (min-width: 768px) {
  .pb-body .ec-layoutRole__main { padding-top: 32px; padding-bottom: 88px; }
  .pb-body.front_page .ec-layoutRole__main,
  .pb-body.product_page .ec-layoutRole__main { padding-top: 0; padding-bottom: 0; }
}

/* ── ページの題名 ─────────────────────────────────── */
.pb-body .ec-pageHeader h1,
.pb-body .ec-pageHeader .h1 {
  margin: 8px 0 24px;
  padding: 0 0 12px;
  border-top: 0;
  border-bottom: 2px solid var(--pb-blue);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--pb-text);
}
@media (min-width: 768px) {
  .pb-body .ec-pageHeader h1,
  .pb-body .ec-pageHeader .h1 { margin: 16px 0 32px; padding-bottom: 14px; font-size: 1.875rem; }
}
.pb-body .ec-rectHeading h2,
.pb-body .ec-rectHeading .h2 {
  padding: 10px 14px;
  border-radius: var(--pb-radius-sm);
  background: var(--pb-blue-pale);
  color: var(--pb-text);
  font-size: var(--pb-fs-lg);
  font-weight: 700;
}
.pb-body .ec-heading-bold,
.pb-body .ec-reportHeading h2,
.pb-body .ec-reportHeading .h2 { color: var(--pb-text); }

/* ── ボタン ───────────────────────────────────────── */
/* (1) そのページの主なボタン（同意する・登録する・確認ページへ・次へ・ログイン）＝ 青 */
.pb-body .ec-blockBtn--action,
.pb-body .ec-inlineBtn--action,
.pb-body .ec-login .ec-login__actions .ec-blockBtn--cancel {
  background-color: var(--pb-blue);
  border: 2px solid var(--pb-blue);
  color: #fff;
  font-weight: 700;
  border-radius: var(--pb-radius-sm);
  box-shadow: none;
}
.pb-body .ec-blockBtn--action:hover,
.pb-body .ec-blockBtn--action:focus,
.pb-body .ec-blockBtn--action:active,
.pb-body .ec-inlineBtn--action:hover,
.pb-body .ec-inlineBtn--action:focus,
.pb-body .ec-inlineBtn--action:active,
.pb-body .ec-login .ec-login__actions .ec-blockBtn--cancel:hover,
.pb-body .ec-login .ec-login__actions .ec-blockBtn--cancel:focus,
.pb-body .ec-login .ec-login__actions .ec-blockBtn--cancel:active {
  background-color: var(--pb-blue-dark);
  border-color: var(--pb-blue-dark);
  color: #fff;
  box-shadow: none;
}

/* (2) 購入のボタンだけは強い色（カートに入れる・カートへ進む・レジに進む・確認する・注文する） */
.pb-body .add-cart,
.pb-body .ec-cartRole .ec-blockBtn--action,
.pb-body .ec-totalBox .ec-blockBtn--action,
.pb-body .ec-modal .ec-inlineBtn--action {
  background-color: var(--pb-buy);
  border-color: var(--pb-buy);
  color: #fff;
}
.pb-body .add-cart:hover,
.pb-body .add-cart:focus,
.pb-body .add-cart:active,
.pb-body .ec-cartRole .ec-blockBtn--action:hover,
.pb-body .ec-cartRole .ec-blockBtn--action:focus,
.pb-body .ec-cartRole .ec-blockBtn--action:active,
.pb-body .ec-totalBox .ec-blockBtn--action:hover,
.pb-body .ec-totalBox .ec-blockBtn--action:focus,
.pb-body .ec-totalBox .ec-blockBtn--action:active,
.pb-body .ec-modal .ec-inlineBtn--action:hover,
.pb-body .ec-modal .ec-inlineBtn--action:focus,
.pb-body .ec-modal .ec-inlineBtn--action:active {
  background-color: var(--pb-buy-dark);
  border-color: var(--pb-buy-dark);
  color: #fff;
}

/* 押せない状態（品切れ・処理中） */
.pb-body .ec-blockBtn--action:disabled,
.pb-body .ec-blockBtn--action.disabled,
.pb-body .ec-blockBtn--action[disabled],
.pb-body .add-cart:disabled {
  background-color: #6b7680;
  border-color: #6b7680;
  color: #fff;
  opacity: 1;
  cursor: not-allowed;
}

/* (3) 2 番目のボタン（戻る・お買い物を続ける・お気に入りに追加・変更）＝ 白地に青い枠 */
.pb-body .ec-blockBtn--cancel,
.pb-body .ec-blockBtn,
.pb-body .ec-inlineBtn,
.pb-body .ec-inlineBtn--cancel,
.pb-body .ec-blockBtn--primary,
.pb-body .ec-inlineBtn--primary {
  background-color: #fff;
  border: 2px solid var(--pb-blue);
  color: var(--pb-blue);
  font-weight: 700;
  border-radius: var(--pb-radius-sm);
  box-shadow: none;
}
.pb-body .ec-blockBtn--cancel:hover,
.pb-body .ec-blockBtn--cancel:focus,
.pb-body .ec-blockBtn--cancel:active,
.pb-body .ec-blockBtn:hover,
.pb-body .ec-blockBtn:focus,
.pb-body .ec-blockBtn:active,
.pb-body .ec-inlineBtn:hover,
.pb-body .ec-inlineBtn:focus,
.pb-body .ec-inlineBtn:active,
.pb-body .ec-inlineBtn--cancel:hover,
.pb-body .ec-inlineBtn--cancel:focus,
.pb-body .ec-inlineBtn--cancel:active,
.pb-body .ec-blockBtn--primary:hover,
.pb-body .ec-blockBtn--primary:focus,
.pb-body .ec-blockBtn--primary:active,
.pb-body .ec-inlineBtn--primary:hover,
.pb-body .ec-inlineBtn--primary:focus,
.pb-body .ec-inlineBtn--primary:active {
  background-color: var(--pb-blue-pale);
  border-color: var(--pb-blue-dark);
  color: var(--pb-blue-dark);
  box-shadow: none;
}
.pb-body .ec-blockBtn--cancel:disabled,
.pb-body .ec-blockBtn--cancel[disabled] {
  border-color: var(--pb-line-strong);
  color: var(--pb-text-sub);
  background: var(--pb-bg-soft);
  opacity: 1;
}

/* 標準 CSS には「この枠の中のリンクは親の文字色（白）を使う」という指定があり、
   白地のボタンの文字が白くなって読めなくなる所がある。その 3 か所は文字色を指定し直す。 */
.pb-body .ec-guest .ec-guest__actions a[class*="ec-blockBtn"],
.pb-body .ec-totalBox .ec-totalBox__btn a[class*="ec-blockBtn"],
.pb-body .ec-login .ec-login__actions a[class*="ec-blockBtn"] { color: var(--pb-blue); }
.pb-body .ec-guest .ec-guest__actions a[class*="ec-blockBtn"]:hover,
.pb-body .ec-totalBox .ec-totalBox__btn a[class*="ec-blockBtn"]:hover,
.pb-body .ec-login .ec-login__actions a[class*="ec-blockBtn"]:hover { color: var(--pb-blue-dark); }
.pb-body .ec-guest .ec-guest__actions a.ec-blockBtn--action,
.pb-body .ec-totalBox .ec-totalBox__btn a.ec-blockBtn--action,
.pb-body .ec-login .ec-login__actions a.ec-blockBtn--action,
.pb-body .ec-guest .ec-guest__actions a.ec-blockBtn--action:hover,
.pb-body .ec-totalBox .ec-totalBox__btn a.ec-blockBtn--action:hover,
.pb-body .ec-login .ec-login__actions a.ec-blockBtn--action:hover { color: #fff; }

/* キーボードで選んだときは、どのボタンもはっきりした枠を出す（標準のぼんやりした光は使わない） */
.pb-body [class*="ec-blockBtn"]:focus,
.pb-body [class*="ec-inlineBtn"]:focus { outline: none; }
.pb-body [class*="ec-blockBtn"]:focus-visible,
.pb-body [class*="ec-inlineBtn"]:focus-visible { box-shadow: var(--pb-focus); }

/* 大きさ（指で押しやすい高さに） */
.pb-body .ec-blockBtn--action,
.pb-body .ec-blockBtn--cancel,
.pb-body .ec-blockBtn--primary,
.pb-body .ec-blockBtn {
  height: auto;
  min-height: 56px;
  padding: 10px 16px;
  font-size: 1.0625rem;
  line-height: 1.5;
  white-space: normal;
}
.pb-body .ec-inlineBtn,
.pb-body .ec-inlineBtn--action,
.pb-body .ec-inlineBtn--cancel,
.pb-body .ec-inlineBtn--primary {
  min-height: 44px;
  padding: 8px 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.pb-body a.ec-blockBtn--action,
.pb-body a.ec-blockBtn--cancel,
.pb-body a.ec-blockBtn--primary,
.pb-body a.ec-blockBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* ── 入力欄 ───────────────────────────────────────── */
.pb-body .ec-input input,
.pb-body .ec-halfInput input,
.pb-body .ec-numberInput input,
.pb-body .ec-zipInput input,
.pb-body .ec-telInput input,
.pb-body .ec-birth select,
.pb-body .ec-select select,
.pb-body .ec-input textarea,
.pb-body .ec-login .ec-login__input input:not([type="checkbox"]):not([type="radio"]) {
  min-height: var(--pb-tap);
  padding: 8px 12px;
  box-sizing: border-box;
  border: 1px solid var(--pb-line-strong);
  border-radius: var(--pb-radius-sm);
  background-color: #fff;
  color: var(--pb-text);
  font-size: 1rem;             /* 16px 未満にしない（iPhone の自動拡大を防ぐ） */
  line-height: 1.5;
  box-shadow: none;
}
.pb-body .ec-select select,
.pb-body .ec-birth select { padding-right: 36px; }
.pb-body .ec-input input:focus,
.pb-body .ec-halfInput input:focus,
.pb-body .ec-numberInput input:focus,
.pb-body .ec-zipInput input:focus,
.pb-body .ec-telInput input:focus,
.pb-body .ec-birth select:focus,
.pb-body .ec-select select:focus,
.pb-body .ec-input textarea:focus,
.pb-body .pb-buyForm__field select:focus,
.pb-body select.pb-select:focus,
.pb-body .pb-qty__input:focus {
  outline: none;
  border-color: var(--pb-blue);
  box-shadow: 0 0 0 3px rgba(0, 98, 168, 0.25);
}
.pb-body .ec-input input::placeholder,
.pb-body .ec-halfInput input::placeholder,
.pb-body .ec-telInput input::placeholder,
.pb-body .ec-zipInput input::placeholder,
.pb-body .ec-input textarea::placeholder { color: #6b7680; opacity: 1; }
.pb-body .ec-input.error input,
.pb-body .ec-halfInput.error input,
.pb-body .ec-telInput.error input,
.pb-body .ec-zipInput.error input,
.pb-body .ec-select.error select,
.pb-body .ec-input.error textarea {
  border-color: var(--pb-red);
  background: var(--pb-red-pale);
}
.pb-body .ec-errorMessage,
.pb-body .ec-color-red,
.pb-body .text-danger { color: var(--pb-red) !important; }
.pb-body .ec-errorMessage { font-size: 0.9375rem; font-weight: 700; }

.pb-body .ec-zipInputHelp span,
.pb-body .ec-zipInputHelp a { color: var(--pb-blue); }      /* 「郵便番号検索」（標準の水色は薄くて読みにくい） */
.pb-body .ec-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pb-text);
}
.pb-body .ec-required {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--pb-red);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  vertical-align: middle;
}
/* チェックボックス・ラジオボタン（標準は枠が薄くて小さいので、はっきり・大きく） */
.pb-body .form-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 20px 0 0;
  padding-left: 0;
}
.pb-body .form-check-input {
  float: none;
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid var(--pb-line-strong);
  background-color: #fff;
  cursor: pointer;
}
.pb-body .form-check-input:checked {
  background-color: var(--pb-blue);
  border-color: var(--pb-blue);
}
.pb-body .form-check-input:focus {
  border-color: var(--pb-blue);
  box-shadow: 0 0 0 3px rgba(0, 98, 168, 0.25);
}
.pb-body .form-check-label {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}
.pb-body .ec-checkbox label,
.pb-body .ec-radio label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  min-height: 44px;
  margin: 0 16px 0 0;
  font-size: 1rem;
}
.pb-body .ec-blockRadio label {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  font-size: 1rem;
}
.pb-body .ec-checkbox input[type="checkbox"],
.pb-body .ec-radio input[type="radio"],
.pb-body .ec-blockRadio input[type="radio"] {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 0 8px 0 0;
  accent-color: var(--pb-blue);
  vertical-align: middle;
}
.pb-body .ec-checkbox label,
.pb-body .ec-radio label { vertical-align: middle; }

/* 項目名と入力欄の並び（会員登録・お問い合わせ・当サイトについて など） */
.pb-body .ec-borderedDefs { border-top-color: var(--pb-line); }
.pb-body .ec-borderedDefs dl { border-bottom-color: var(--pb-line); }
.pb-body .ec-borderedDefs dt,
.pb-body .ec-borderedDefs dd { line-height: 1.8; }
.pb-body .ec-borderedList { border-top-color: var(--pb-line); }
.pb-body .ec-borderedList li { border-bottom-color: var(--pb-line); }

/* ── 手続きの進み具合（カート → お届け先 → 確認 → 完了） ── */
.pb-body .ec-progress .ec-progress__number {
  background: #e3e8ec;
  color: var(--pb-text-sub);
  font-weight: 700;
}
.pb-body .ec-progress .ec-progress__label {
  color: var(--pb-text-sub);
  font-size: var(--pb-fs-xs);
}
.pb-body .ec-progress .is-complete .ec-progress__number { background: var(--pb-blue); color: #fff; }
.pb-body .ec-progress .is-complete .ec-progress__label { color: var(--pb-blue); font-weight: 700; }
.pb-body .ec-progress .ec-progress__item:after { background: #e3e8ec; }

/* ── ページ送り ───────────────────────────────────── */
.pb-body .ec-pager { margin: 0; padding: 0; }
.pb-body .ec-pager .ec-pager__item,
.pb-body .ec-pager .ec-pager__item--active {
  margin: 2px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: var(--pb-radius-sm);
  vertical-align: middle;
}
.pb-body .ec-pager .ec-pager__item a,
.pb-body .ec-pager .ec-pager__item--active a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  box-sizing: border-box;
  border-radius: var(--pb-radius-sm);
  color: var(--pb-blue);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}
.pb-body .ec-pager .ec-pager__item a:hover { background: var(--pb-blue-pale); }
.pb-body .ec-pager .ec-pager__item--active { background: var(--pb-blue); }
.pb-body .ec-pager .ec-pager__item--active a { color: #fff; }

/* ── カート ───────────────────────────────────────── */
.pb-body .ec-cartRole .ec-cartRole__totalText,
.pb-body .ec-cartRole .ec-cartRole__total { color: var(--pb-text); }
.pb-body .ec-cartRole .ec-cartRole__totalAmount,
.pb-body .ec-cartRow .ec-cartRow__sutbtotal,
.pb-body .ec-cartRow .ec-cartRow__sutbtotalSP { color: var(--pb-text); font-weight: 700; }
.pb-body .ec-cartRole .ec-cartRole__totalAmount { font-size: 1.5rem; }
.pb-body .ec-cartHeader .ec-cartHeader__label {
  background: var(--pb-bg-soft);
  color: var(--pb-text);
  border-color: var(--pb-line);
}
.pb-body .ec-cartRow,
.pb-body .ec-cartTable { border-color: var(--pb-line); }
.pb-body .ec-cartRow .ec-cartRow__name a { color: var(--pb-text); font-weight: 700; }
/* 数量の － ＋ と、削除の × を指で押しやすい大きさに */
.pb-body .ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountUpButton,
.pb-body .ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountDownButton,
.pb-body .ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountDownButtonDisabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  margin: 0 3px;
  border: 1px solid var(--pb-line-strong);
  border-radius: var(--pb-radius-sm);
  background: #fff;
  line-height: 1;
}
.pb-body .ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountDownButtonDisabled {
  border-color: var(--pb-line);
  background: var(--pb-bg-soft);
}
.pb-body .ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountUpButton .ec-cartRow__amountUpButton__icon img,
.pb-body .ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountDownButton .ec-cartRow__amountDownButton__icon img,
.pb-body .ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountDownButtonDisabled .ec-cartRow__amountDownButton__icon img {
  position: static;
  display: block;
  width: 14px;
  height: 14px;
  margin: 0;
}
.pb-body .ec-cartRow .ec-cartRow__delColumn .ec-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--pb-radius-sm);
}
.pb-body .ec-cartRow .ec-cartRow__delColumn .ec-icon:hover { background: var(--pb-bg-soft); }
.pb-body .ec-cartRow .ec-cartRow__delColumn .ec-icon img {
  width: 18px;
  height: 18px;
  filter: brightness(0.55);            /* 標準の × は薄いグレーなので、見えるように濃くする */
}
.pb-body .ec-cartRow .ec-cartRow__delColumn,
.pb-body .ec-cartRow .ec-cartRow__contentColumn,
.pb-body .ec-cartRow .ec-cartRow__amountColumn,
.pb-body .ec-cartRow .ec-cartRow__subtotalColumn { border-bottom-color: var(--pb-line); border-bottom-style: solid; }
.pb-body .ec-cartRow .ec-cartRow__unitPrice { font-weight: 500; }
.pb-body .ec-cartRole .ec-cartRole__totalText strong { font-size: 1.25rem; }
.pb-body .ec-cartRole .ec-cartRole__progress strong { color: var(--pb-text); }

@media (max-width: 767.98px) {
  /* スマホ: 1 商品 = 「写真＋商品名・価格」「× 削除」／その下に「数量と － ＋」 */
  .pb-body .ec-cartTable { display: block; border-top: 1px solid var(--pb-line); }
  .pb-body .ec-cartRow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 44px;
    grid-template-areas: "content del" "amount amount";
    gap: 10px 8px;
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--pb-line);
    list-style: none;
  }
  .pb-body .ec-cartRow .ec-cartRow__delColumn {
    grid-area: del;
    display: block;
    width: auto;
    border: 0;
  }
  .pb-body .ec-cartRow .ec-cartRow__contentColumn {
    grid-area: content;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    border: 0;
  }
  .pb-body .ec-cartRow .ec-cartRow__img {
    display: block;
    flex: none;
    width: 88px;
    padding: 0;
  }
  .pb-body .ec-cartRow .ec-cartRow__img img { border-radius: var(--pb-radius-sm); border: 1px solid var(--pb-line); }
  .pb-body .ec-cartRow .ec-cartRow__summary {
    display: block;
    flex: 1;
    min-width: 0;
    width: auto;
    margin: 0;
  }
  .pb-body .ec-cartRow .ec-cartRow__amountColumn {
    grid-area: amount;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    border: 0;
    text-align: left;
  }
  .pb-body .ec-cartRow .ec-cartRow__amountColumn .ec-cartRow__amountSP { margin: 0; font-weight: 700; }
  .pb-body .ec-cartRole .ec-cartRole__totalText { text-align: left; }
  .pb-body .ec-cartRole .ec-cartRole__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 18px 0;
  }
}
/* 注意の帯（「カート内に商品はございません」「在庫が足りません」など）。
   標準はピンク地に白文字で読みにくいので、薄い赤の地に濃い赤の文字にする。 */
.pb-body .ec-alert-warning {
  border: 1px solid #f0b4ae;
  border-radius: var(--pb-radius-sm);
  background: var(--pb-red-pale);
}
.pb-body .ec-alert-warning .ec-alert-warning__text {
  color: #8f1d17;
  word-break: normal;
}
.pb-body .ec-alert-warning .ec-alert-warning__icon img {
  filter: brightness(0);            /* 標準の白いアイコンを黒くして、薄い地でも見えるように */
  opacity: 0.7;
}

/* ── 購入手続き・注文内容 ─────────────────────────── */
.pb-body .ec-totalBox {
  background: var(--pb-bg-soft);
  border-radius: var(--pb-radius);
  color: var(--pb-text);
}
.pb-body .ec-totalBox .ec-totalBox__total,
.pb-body .ec-totalBox .ec-totalBox__paymentTotal { color: var(--pb-text); }
.pb-body .ec-totalBox .ec-totalBox__price,
.pb-body .ec-totalBox .ec-totalBox__taxLabel { color: var(--pb-red); }
.pb-body .ec-orderRole .ec-inlineBtn,
.pb-body .ec-orderDelivery__change .ec-inlineBtn { white-space: nowrap; }
.pb-body .ec-orderRole .ec-rectHeading { margin-bottom: 8px; }
/* 支払方法のアイコン（旧ストアから引き継いだ 60×60 の画像）。標準の CSS だと欄いっぱいに引き伸ばされるので、元の大きさで出す */
.pb-body .ec-orderPayment .ec-radio img {
  width: 60px;
  max-width: 60px;
  height: auto;
}
.pb-body .ec-orderPayment .ec-radio p { margin: 4px 0 12px 30px; }
.pb-body .ec-orderDelivery .ec-orderDelivery__actions .ec-select label { font-weight: 700; margin-right: 8px; }
.pb-body .ec-imageGrid .ec-imageGrid__img img { border-radius: var(--pb-radius-sm); border: 1px solid var(--pb-line); }
@media (min-width: 768px) {
  /* PC: 右側の「合計」の箱は、スクロールしてもヘッダーのすぐ下に付いてくる。
     標準の JS も同じ目的で上の余白（margin-top）を動かすが、固定ヘッダーの下に潜ってしまうので、
     その動きは打ち消して CSS の sticky に任せる。 */
  .pb-body .ec-orderRole .ec-orderRole__summary {
    position: sticky;
    top: calc(var(--pb-header-h) + 16px);
    align-self: flex-start;
    margin-top: 0 !important;
  }
}
.pb-body .ec-totalBox .ec-totalBox__taxRate { font-size: 0.75rem; }
.pb-body .ec-definitions dd,
.pb-body .ec-definitions--soft dd { margin-left: 0.75em; }
.pb-body .ec-color-accent { color: var(--pb-red); }
.pb-body .ec-link { color: var(--pb-blue); text-decoration: underline; }

/* ── ログイン・非会員購入 ─────────────────────────── */
.pb-body .ec-login,
.pb-body .ec-guest {
  background: var(--pb-bg-soft);
  border-radius: var(--pb-radius);
}
.pb-body .ec-login .ec-login__link,
.pb-body .ec-login .ec-login__link a { font-size: 0.9375rem; }
.pb-body .ec-login .ec-login__link { margin-top: 12px; }
.pb-body .ec-login .ec-login__link a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.pb-body .ec-login .ec-login__icon .ec-icon img { width: 64px; height: 64px; opacity: 0.55; }
.pb-body .ec-login { padding: 28px 20px 24px; }
.pb-body .ec-login .ec-login__input { margin-bottom: 24px; }
.pb-body .ec-login .ec-login__input .ec-input { margin-bottom: 12px; }
@media (min-width: 768px) {
  .pb-body .ec-login { padding: 40px 12% 40px; }
}

/* ── マイページ ───────────────────────────────────── */
.pb-body .ec-navlistRole .ec-navlistRole__navlist { border-color: var(--pb-line); }
.pb-body .ec-navlistRole .ec-navlistRole__item {
  border-color: var(--pb-line);
}
.pb-body .ec-navlistRole .ec-navlistRole__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 8px;
  color: var(--pb-text);
  font-weight: 700;
  font-size: 0.9375rem;
}
.pb-body .ec-navlistRole .ec-navlistRole__item a:hover,
.pb-body .ec-navlistRole .active a {
  background: var(--pb-blue-pale);
  color: var(--pb-blue-dark);
}
.pb-body .ec-welcomeMsg {
  border-color: var(--pb-line);
  color: var(--pb-text);
}
.pb-body .ec-historyListHeader .ec-historyListHeader__action a { font-size: 0.9375rem; font-weight: 700; }
.pb-body .ec-historyRole .ec-historyRole__contents,
.pb-body .ec-historyRole .ec-historyRole__header { border-color: var(--pb-line); color: var(--pb-text); }

/* ── エラーページ（error.twig） ────────────────────── */
.pb-body .ec-404Role {
  height: auto;
  min-height: 100vh;
  padding: 40px 16px 56px;
  background: var(--pb-bg-soft);
  color: var(--pb-text);
}
.pb-errorPage__logo { margin: 0 0 16px; text-align: center; }
.pb-errorPage .pb-logo__img { width: auto; height: 34px; }     /* エラーページのロゴは固定の大きさ */
.pb-body .ec-404Role .ec-404Role__title {
  margin: 0 0 12px;
  color: var(--pb-text);
  font-size: 1.5rem;
  line-height: 1.5;
}
.pb-body .ec-404Role .ec-404Role__description { margin: 0 0 28px; }
.pb-body .ec-404Role .ec-404Role__icon img { opacity: 0.5; }
.pb-body .ec-404Role a.ec-blockBtn--cancel { max-width: 320px; margin-inline: auto; }

/* ── 画面いっぱいの「処理中」の幕（標準）は薄いまま使う ── */
.pb-body .bg-load-overlay { background: rgba(255, 255, 255, 0.55); }


/* ==========================================================================
   8. 文章のページ（ご利用ガイド・ご利用規約・プライバシーポリシー）
      Help/guide.twig・Help/agreement.twig・Help/privacy.twig の本文（class="pb-doc" の中）。
      読みやすい行の長さにおさめ、見出し・箇条書き・表を整えるだけ。
   ========================================================================== */
.pb-doc {
  max-width: var(--pb-container-narrow);
  margin-inline: auto;
  font-size: var(--pb-fs-md);
  line-height: 1.9;
  color: var(--pb-text);
}
.pb-doc p { margin: 0 0 14px; }
.pb-doc h2 {
  margin: 40px 0 14px;
  padding: 10px 14px;
  border-radius: var(--pb-radius-sm);
  background: var(--pb-blue-pale);
  color: var(--pb-text);
  font-size: var(--pb-fs-lg);
  font-weight: 700;
  line-height: 1.5;
}
.pb-doc h3 {
  margin: 28px 0 8px;
  padding-left: 10px;
  border-left: 4px solid var(--pb-blue);
  font-size: var(--pb-fs-md);
  font-weight: 700;
  line-height: 1.5;
}
.pb-doc ul,
.pb-doc ol { margin: 0 0 14px; padding-left: 1.6em; }
.pb-doc ul { list-style: disc; }
.pb-doc ol { list-style: decimal; }
.pb-doc li { margin-bottom: 4px; }
.pb-doc__lead {
  padding: 14px 16px;
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius-sm);
  background: var(--pb-bg-soft);
}
/* ページ内の目次（丸いボタンの並び） */
.pb-doc .pb-doc__toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.pb-doc .pb-doc__toc li { margin: 0; }
.pb-doc .pb-doc__toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 16px;
  border: 1px solid var(--pb-blue-line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}
.pb-doc .pb-doc__toc a:hover { background: var(--pb-blue-pale); }
/* 表（代引きの手数料） */
.pb-doc__table {
  width: 100%;
  max-width: 420px;
  margin: 0 0 14px;
  border-collapse: collapse;
}
.pb-doc__table caption {
  padding: 0 0 6px;
  font-weight: 700;
  text-align: left;
  caption-side: top;
  color: var(--pb-text);
}
.pb-doc__table th,
.pb-doc__table td {
  padding: 8px 12px;
  border: 1px solid var(--pb-line);
  text-align: left;
}
.pb-doc__table th { background: var(--pb-bg-soft); font-weight: 700; }
.pb-doc__table td:last-child,
.pb-doc__table th:last-child { text-align: right; white-space: nowrap; }
/* ページの下のボタンの並び（当サイトについて、でも使う） */
.pb-doc__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
}
@media (max-width: 767px) {
  .pb-doc__links .pb-btn { flex: 1 1 100%; }
}


/* ==========================================================================
   動きを減らす設定の端末では、動きを止める
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .pb-body *,
  .pb-body *::before,
  .pb-body *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
