/* ============================================================
   コース一覧ページ (/pets/preview/category)
   -----------------------------------------------------------
   5コース (1000〜5000円) をカード形式で表示。
   商品ページ (index_XXcourse) の .product-card と同じレイアウト。
   ============================================================ */

:root {
  --c-primary:      #e8821e;
  --c-primary-dark: #b0631a;
  --c-primary-soft: #f9e6cc;
  --c-text:         #333;
  --c-text-muted:   #8a8175;
  --c-text-sub:     #b5aa96;
  --c-bg:           #fbf6ee;
  --c-bg-alt:       #fff;
  --c-border:       #ebe4d5;
  --font-jp:     "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-mincho: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-en:     "Cormorant Garamond", serif;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-mincho);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.site-header {
  background: #fff;
  padding: 14px 20px;
  text-align: center;
  border-bottom: 1px solid var(--c-border);
  position: sticky; top: 0; z-index: 100;
}
.site-header__title {
  font-family: var(--font-jp);
  font-size: 17px;
  font-weight: 500;
  color: var(--c-text);
  margin: 0;
  letter-spacing: 0.06em;
}
.site-header__brand {
  color: inherit;
  text-decoration: none;
  transition: opacity .15s;
}
.site-header__brand:hover { opacity: .7; }
.site-header__brand:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  max-width: 1100px;
  margin: 20px auto 0;
  padding: 0 20px;
  font-family: var(--font-jp);
  font-size: 13px;
  color: var(--c-text-muted);
}
.breadcrumb__link { color: var(--c-primary); }
.breadcrumb__link:hover { text-decoration: underline; }
.breadcrumb__sep { margin: 0 8px; }
.breadcrumb__current { color: var(--c-text); }

/* ===== Hero ===== */
.cat-hero {
  max-width: 1100px;
  margin: 20px auto 32px;
  padding: 32px 20px;
  text-align: center;
}
.cat-hero__eyebrow {
  font-family: var(--font-en);
  font-size: clamp(11px, 1.2vw, 14px);
  font-style: italic;
  letter-spacing: 0.35em;
  color: var(--c-primary);
  margin: 0 0 10px;
}
.cat-hero__title {
  font-family: var(--font-mincho);
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: 500;
  color: var(--c-text);
  margin: 0 0 14px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}
.cat-hero__desc {
  font-family: var(--font-jp);
  font-size: clamp(12px, 1.3vw, 15px);
  color: var(--c-text-muted);
  margin: 0;
  line-height: 1.95;
  letter-spacing: 0.04em;
}

/* ===== Course list grid =====
   PC (≥1024px): 4列 → 2行 = 8件/ページ
   Tablet (601–1023px): 3列 → 2行 = 6件/ページ
   Mobile (≤600px): 2列 → 1行 = 2件/ページ
   （8件以上ある場合は下のページャーで切替）*/
.course-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 20px;
  padding: 0 20px;
}
@media (max-width: 1023px) {
  .course-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .course-list { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Pagination ===== */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 12px 20px 40px;
  max-width: 1100px;
  margin: 0 auto;
  font-family: var(--font-jp);
}
.pager__btn,
.pager__page {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-text);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.pager__btn:hover:not(:disabled),
.pager__page:hover:not(.is-current) {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
  color: var(--c-primary-dark);
}
.pager__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pager__page.is-current {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  font-weight: 600;
}
@media (max-width: 600px) {
  .pager__btn,
  .pager__page {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 13px;
  }
}

/* ============================================================
   取扱ブランド マーキー（3 行が交互に流れる）
   ─ .row--ltr: 左→右流れ（translateX が -50% → 0 の逆再生）
   ─ .row--rtl: 右→左流れ（translateX が 0 → -50%）
   ─ 行ごとに duration を変えることで見た目に「合成」感を出す
   ─ アイテムは 2 回 複製して translateX(-50%) でシームレスループ
   ============================================================ */
.brand-marquee {
  background: #fff;
  padding: 56px 0 64px;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  overflow: hidden;
  margin-top: 20px;
}
.brand-marquee__header {
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 0 20px;
  text-align: center;
}
.brand-marquee__eyebrow {
  font-family: var(--font-en);
  font-size: clamp(11px, 1.2vw, 14px);
  font-style: italic;
  letter-spacing: 0.35em;
  color: var(--c-primary);
  margin: 0 0 10px;
}
.brand-marquee__title {
  font-family: var(--font-mincho);
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: 500;
  color: var(--c-text);
  margin: 0 0 14px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}
.brand-marquee__desc {
  font-family: var(--font-jp);
  font-size: clamp(12px, 1.3vw, 15px);
  color: var(--c-text-muted);
  margin: 0;
  line-height: 1.95;
  letter-spacing: 0.04em;
}

.brand-marquee__row {
  overflow: hidden;
  margin: 14px 0;
}
.brand-marquee__track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation-name: brand-scroll;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
/* Row 別 duration（合成感） */
.brand-marquee__row--r1 .brand-marquee__track { animation-duration: 48s; }
.brand-marquee__row--r2 .brand-marquee__track { animation-duration: 38s; }
.brand-marquee__row--r3 .brand-marquee__track { animation-duration: 55s; }
/* 方向指定 */
.brand-marquee__row--rtl .brand-marquee__track { animation-direction: normal; }   /* 右→左 */
.brand-marquee__row--ltr .brand-marquee__track { animation-direction: reverse; }  /* 左→右 */

@keyframes brand-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

/* ブランドロゴ枠：正方形（1:1）— 将来 logo 画像を差し込む前提。
   推奨 画像サイズ:
     ・SVG（ベスト）: サイズ自由・常にシャープ
     ・PNG @2x     : 280×280px（透過背景推奨）
     ・PNG 等倍   : 140×140px
   ロゴ内の安全余白は 8〜12px 程度をおくと綺麗に収まる。 */
.brand-marquee__item {
  flex-shrink: 0;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--c-border);
  background: #faf8f4;
  border-radius: 8px;
  font-family: var(--font-mincho);
  font-size: 14px;
  color: var(--c-text);
  letter-spacing: 0.04em;
  text-align: center;
  box-shadow: 0 1px 3px rgba(60, 40, 20, .04);
  pointer-events: none;
  user-select: none;
}
/* 画像ロゴ用スタイル（<img> で差し替え時） */
.brand-marquee__item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
  .brand-marquee__track { animation: none; }
}

@media (max-width: 600px) {
  .brand-marquee { padding: 40px 0 48px; }
  .brand-marquee__header { margin-bottom: 24px; }
  .brand-marquee__item {
    width: 100px;
    height: 100px;
    padding: 10px;
    font-size: 12px;
  }
  .brand-marquee__row { margin: 8px 0; }
  .brand-marquee__track { gap: 14px; }
}

/* ===== Product Card (same as course product page) — フラット (角丸なし、画像ズームなし) ===== */
.product-card {
  position: relative;
  background: #fff;
  cursor: pointer;
  padding: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  border: 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(60, 40, 20, .06);
  transition: transform .25s cubic-bezier(.4, .1, .3, 1),
              box-shadow .25s ease;
  color: inherit;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(60, 40, 20, .14);
}
.product-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  overflow: hidden;
  outline: 1px solid rgba(0, 0, 0, .08);
  outline-offset: -1px;
}
.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card__no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #c8b8a3;
  font-size: 2rem;
}

/* 詳細を見る — カード下部に常時表示 (CTA テキスト風) */
.product-card__hint {
  margin-top: auto;
  font-size: .78rem;
  font-weight: 600;
  color: var(--c-primary);
  letter-spacing: .04em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-top: 1px dashed var(--c-border);
  padding-top: var(--sp-2);
  transition: color .15s;
}
.product-card__hint::after {
  content: '→';
  display: inline-block;
  transition: transform .2s;
}
.product-card:hover .product-card__hint { color: var(--c-primary-dark); }
.product-card:hover .product-card__hint::after { transform: translateX(3px); }

.product-card__body {
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}
.product-card__name {
  margin: 0;
  font-family: var(--font-mincho);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--c-text);
  letter-spacing: .04em;
}
.product-card__catch {
  font-family: var(--font-jp);
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.6;
  margin: 0;
  min-height: 2.6em;
}
.product-card__price {
  font-family: var(--font-jp);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-primary);
  margin: 0;
  letter-spacing: 0.02em;
}
.product-card__price small {
  font-size: 11px;
  font-weight: 400;
  color: var(--c-text-muted);
  margin-left: 2px;
  letter-spacing: 0;
}
.product-card__count {
  display: inline-block;
  align-self: flex-start;
  padding: 2px 10px;
  background: var(--c-primary-soft);
  color: var(--c-primary-dark);
  border-radius: 999px;
  font-family: var(--font-jp);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .course-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .product-card__body {
    padding: 10px 12px 14px;
    gap: 6px;
  }
  .product-card__name {
    font-size: 14px;
  }
  .product-card__catch {
    font-size: 11px;
    min-height: 2.4em;
  }
  .product-card__price {
    font-size: 15px;
  }
  .product-card__count {
    font-size: 10px;
  }
  .product-card__hint {
    font-size: .72rem;
  }
}

/* 2026-08-19 一時的に brand-marquee 非表示 */
.brand-marquee { display: none; }

