/* ==========================================================================
   ALGOS LIQUOR MARKET — ブログの見た目を EC 本体に合わせる上書き
   トークンは EC のトップページから実測した hub テーマの値をそのまま使う:
     地 #ffffff / 文字 #0d0d0d / アクセント #e0342b / 濃色面 #111111
     補助文字 #63636b / 罫 rgba(17,17,17,.1) / 書体 Noto Sans JP
   EC 側は «角丸なし・グラデーションなし・斜体なし» を明示的な方針としているため
   ここでも同じ制約を守る。Bootstrap の既定（青リンク・角丸）を打ち消す。
   ========================================================================== */

:root {
  --a-bg: #ffffff;
  --a-ink: #0d0d0d;
  --a-dim: #63636b;
  --a-accent: #e0342b;
  --a-accent-2: #ff6d64;
  --a-dark: #111111;
  --a-line: rgba(17, 17, 17, .1);
}

body {
  background: var(--a-bg);
  color: var(--a-ink);
  font-family: "Noto Sans JP", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
}

/* Bootstrap の青を全面的に置き換える */
a { color: var(--a-accent); text-decoration: none; }
a:hover { color: var(--a-accent-2); text-decoration: underline; }
#progress-bar { background: var(--a-accent) !important; }
.btn-primary, .bg-primary { background: var(--a-accent) !important; border-color: var(--a-accent) !important; }
.text-primary { color: var(--a-accent) !important; }
.btn-outline-secondary { border-color: var(--a-line); color: var(--a-ink); }
.btn-outline-secondary:hover { background: var(--a-ink); border-color: var(--a-ink); color: #fff; }

/* 角丸を使わない（EC の方針に合わせる） */
img, .card, .rounded, .rounded-3, [class*="rounded"] { border-radius: 0 !important; }

/* ── 記事本文 ───────────────────────────────────────── */
.post-content { font-size: 1.0625rem; line-height: 2; color: #1c1c1e; }
.post-content > p { margin: 0 0 1.6rem; }
.post-content h2 {
  font-size: 1.375rem; font-weight: 700; line-height: 1.5;
  margin: 3.2rem 0 1.2rem; padding-bottom: .7rem;
  border-bottom: 2px solid var(--a-ink);
}
.post-content h3 {
  font-size: 1.0625rem; font-weight: 700;
  margin: 2.4rem 0 .8rem; color: var(--a-ink);
}
.post-content ul { margin: 0 0 1.6rem; padding-left: 1.2rem; }
.post-content li { margin-bottom: .5rem; }
.post-content strong { font-weight: 700; }
.post-content small { color: var(--a-dim); line-height: 1.9; display: inline-block; }
.post-content hr { border-color: var(--a-line); margin: 2.4rem 0; }

/* ── 商品カード（[product:123] の展開結果）───────────── */
.pc {
  display: flex; gap: 1.1rem; align-items: center;
  border: 1px solid var(--a-line); background: #fff;
  padding: 1rem; margin: 1.4rem 0 2rem;
  color: var(--a-ink); text-decoration: none;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.pc:hover {
  border-color: var(--a-ink); text-decoration: none; color: var(--a-ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .07); transform: translateY(-2px);
}
.pc-img {
  flex: 0 0 108px; width: 108px; height: 108px;
  display: flex; align-items: center; justify-content: center;
  background: #fafafa; border: 1px solid var(--a-line); overflow: hidden;
}
.pc-img img { width: 100%; height: 100%; object-fit: contain; padding: .4rem; }
.pc-noimg { font-size: .6rem; letter-spacing: .08em; color: #b4b4bb; }
.pc-body { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.pc-name { font-weight: 700; font-size: .98rem; line-height: 1.55; }
.pc-meta { font-size: .78rem; color: var(--a-dim); }
.pc-cta {
  margin-top: .35rem; font-size: .78rem; font-weight: 700; color: var(--a-accent);
}
.pc-cta::after { content: " →"; }

@media (max-width: 575.98px) {
  .pc { gap: .8rem; padding: .8rem; }
  .pc-img { flex-basis: 82px; width: 82px; height: 82px; }
  .pc-name { font-size: .9rem; }
}

/* ── 目次・見出し帯・カード ─────────────────────────── */
.toc, .card { border: 1px solid var(--a-line) !important; box-shadow: none !important; }
.blog-header { border-bottom: 1px solid var(--a-line); }
.blog-header-logo { font-weight: 700; letter-spacing: -.02em; }
.post-meta, .text-muted { color: var(--a-dim) !important; }

/* EC へ戻る導線を目立たせる */
.algos-back {
  display: inline-block; margin: 2.4rem 0 0; padding: .85rem 1.6rem;
  background: var(--a-ink); color: #fff; font-weight: 700; font-size: .9rem;
}
.algos-back:hover { background: var(--a-accent); color: #fff; text-decoration: none; }
