/* belog オンラインショップ：カート（3ページ共通）。名前はすべて bc- で始まる */
.bc-bar, .bc-toast, .bc-panel {
  --bc-ink: #2f2925; --bc-ink2: #4f4943; --bc-mute: #8a837b; --bc-line: #e6ded0;
  --bc-paper: #fbf8f2; --bc-dark: #3a2f27; --bc-gold: #a88b55;
  --bc-en: "Cormorant Garamond", "Times New Roman", serif;
  --bc-mincho: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --bc-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  font-family: var(--bc-sans); color: var(--bc-ink); -webkit-text-size-adjust: 100%;
}
.bc-bar *, .bc-toast *, .bc-panel * { box-sizing: border-box; }
.bc-bar button, .bc-toast button, .bc-panel button { font: inherit; color: inherit; }

/* カートのバー（中身があるときだけ、画面の下に） */
.bc-bar { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: none; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); pointer-events: none; }
.bc-has-items .bc-bar { display: block; }
.bc-has-items .hl .dock { display: none !important; }
.bc-bar__btn { pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 520px; margin: 0 auto; min-height: 54px; padding: 8px 18px; border: 0; border-radius: 999px; background: var(--bc-dark); color: #fff; box-shadow: 0 6px 24px rgba(47, 41, 37, .22), inset 0 0 0 3px var(--bc-dark), inset 0 0 0 4px rgba(225, 208, 170, .55); cursor: pointer; text-align: left; }
.bc-bar__label { font-family: var(--bc-en); font-size: 18px; letter-spacing: .08em; }
.bc-bar__count { font-size: 12.5px; padding: 1px 9px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.bc-bar__total { margin-left: auto; font-family: var(--bc-en); font-size: 19px; }
.bc-bar__go { font-size: 12.5px; letter-spacing: .1em; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .3); }
@media (min-width: 960px) {
  .bc-bar { left: auto; width: 380px; padding-right: 24px; padding-bottom: 24px; }
}

/* 「カートに入れました」 */
.bc-toast { position: fixed; z-index: 75; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); display: flex; align-items: center; gap: 14px; max-width: calc(100% - 32px); padding: 10px 10px 10px 18px; border-radius: 999px; background: #fff; box-shadow: 0 8px 28px rgba(47, 41, 37, .18); font-size: 13px; white-space: nowrap; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .3s ease, transform .3s ease; }
.bc-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.bc-toast button { padding: 7px 14px; border: 1px solid var(--bc-ink); border-radius: 999px; background: transparent; font-size: 12px; cursor: pointer; }

/* カートの中身（スマホは下から、PCは右から） */
.bc-lock, .bc-lock body { overflow: hidden; }
.bc-panel { position: fixed; z-index: 80; inset: 0; }
.bc-panel__shade { position: absolute; inset: 0; background: rgba(30, 26, 22, .42); opacity: 0; transition: opacity .28s ease; }
.bc-panel__box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px max(18px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(18px, env(safe-area-inset-left, 0px)); background: var(--bc-paper); border-radius: 18px 18px 0 0; transform: translateY(24px); opacity: 0; transition: transform .28s ease, opacity .28s ease; }
.bc-panel.is-open .bc-panel__shade { opacity: 1; }
.bc-panel.is-open .bc-panel__box { transform: none; opacity: 1; }
@media (min-width: 960px) {
  .bc-panel__box { left: auto; top: 0; width: 420px; max-height: none; border-radius: 0; padding: 28px 28px 32px; transform: translateX(24px); }
}
@media (prefers-reduced-motion: reduce) { .bc-panel__shade, .bc-panel__box, .bc-toast { transition: none; } }

.bc-panel__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--bc-line); }
.bc-panel__title { margin: 0; font-family: var(--bc-mincho); font-size: 17px; letter-spacing: .14em; }
.bc-panel__title span { margin-left: 10px; font-family: var(--bc-en); font-style: italic; font-size: 15px; letter-spacing: .08em; color: var(--bc-mute); }
.bc-panel__x { width: 40px; height: 40px; border: 1px solid var(--bc-line); border-radius: 50%; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; }

.bc-list { list-style: none; margin: 0; padding: 0; }
.bc-item { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "img body qty" "img rm rm"; gap: 4px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--bc-line); }
.bc-item__img { grid-area: img; width: 56px; height: auto; border-radius: 6px; background: #f1ede6; }
.bc-item__body { grid-area: body; min-width: 0; }
.bc-item__name { margin: 0; font-family: var(--bc-mincho); font-size: 14px; letter-spacing: .06em; }
.bc-item__sub { margin: 2px 0 0; font-size: 11.5px; color: var(--bc-mute); }
.bc-item__price { margin: 4px 0 0; font-family: var(--bc-en); font-size: 17px; }
.bc-qty { grid-area: qty; display: flex; align-items: center; border: 1px solid var(--bc-line); border-radius: 999px; background: #fff; }
.bc-qty button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 16px; cursor: pointer; }
.bc-qty button:disabled { color: #c9c2b8; cursor: default; }
.bc-qty span { min-width: 22px; text-align: center; font-size: 14px; }
.bc-item__rm { grid-area: rm; justify-self: end; padding: 2px 0; border: 0; background: transparent; font-size: 11.5px; color: var(--bc-mute); text-decoration: underline; cursor: pointer; }

.bc-empty { margin: 28px 0 12px; text-align: center; font-size: 13.5px; color: var(--bc-mute); }
.bc-sum { padding-top: 16px; }
.bc-sum__row { display: flex; align-items: baseline; justify-content: space-between; margin: 0; font-size: 13.5px; }
.bc-sum__row strong { font-family: var(--bc-en); font-weight: 500; font-size: 24px; }
.bc-sum__note { margin: 6px 0 0; font-size: 11.5px; color: var(--bc-mute); }
.bc-error { margin: 12px 0 0; padding: 10px 12px; border-radius: 6px; background: #f7ebe7; color: #8a3a2a; font-size: 12.5px; line-height: 1.7; }
.bc-checkout { display: block; width: 100%; min-height: 54px; margin-top: 16px; border: 0; border-radius: 4px; background: var(--bc-dark); color: #fff; font-size: 14px; letter-spacing: .12em; cursor: pointer; box-shadow: inset 0 0 0 3px var(--bc-dark), inset 0 0 0 4px rgba(225, 208, 170, .55); }
.bc-checkout:disabled { opacity: .7; cursor: default; }
.bc-sum__safe { margin: 10px 0 0; font-size: 11px; line-height: 1.7; color: var(--bc-mute); text-align: center; }
/* 濃い色のボタンの文字は白（共通の color: inherit より優先） */
.bc-bar .bc-bar__btn, .bc-panel .bc-checkout { color: #fff; }

/* 送料（2026-10-20） */
.bc-pref { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--bc-ink2); }
.bc-pref select { -webkit-appearance: none; appearance: none; width: 100%; min-height: 46px; padding: 10px 40px 10px 14px; border: 1px solid var(--bc-line); border-radius: 4px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a837b' stroke-width='1.4'/%3E%3C/svg%3E") right 14px center / 12px 8px no-repeat; font: inherit; font-size: 15px; color: var(--bc-ink); }
.bc-free { margin: 12px 0 0; padding: 9px 12px; border-radius: 4px; background: #f3eee4; font-size: 12.5px; line-height: 1.6; color: var(--bc-ink2); text-align: center; letter-spacing: .04em; }
.bc-free.is-free { background: transparent; border: 1px solid rgba(168, 139, 85, .55); color: #7d6537; }
.bc-rows { margin: 14px 0 0; }
.bc-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; color: var(--bc-ink2); }
.bc-rows dd { margin: 0; font-family: var(--bc-en); font-size: 17px; color: var(--bc-ink); text-align: right; }
.bc-rows > .bc-rows__total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--bc-line); color: var(--bc-ink); }
.bc-rows > .bc-rows__total dd { font-size: 24px; }
.bc-sum__note { line-height: 1.7; }

/* iPhone で選択欄を押したときに画面が拡大しないよう、16px 以上に（2026-10-23） */
.bc-pref select { font-size: 16px; }
