/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root { --content-w: min(100% - 96px, 1280px); }
@media (max-width: 768px) { :root { --content-w: calc(100% - 32px); } }

:root { --header-h: 52px; }
:root { --heading: #12264f; }
@media (min-width: 1280px) { :root { --header-h: 72px; } }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.layout-spacer { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Header ===== */
.site-header-simple { display: none; }
.simple-header-logo {
  font-size: 20px;
  font-weight: 800;
}

.hero-banner {
  order: 3;
  width: 100%;
  overflow: hidden;
  background-color: #f0ece6;
}
.hero-marquee {
  display: flex;
  width: max-content;
  animation: hero-marquee-scroll 50s linear infinite;
}
.hero-marquee:hover { animation-play-state: paused; }
.hero-marquee-img {
  flex: 0 0 auto;
  height: 130px;
  width: auto;
  display: block;
}
@keyframes hero-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-marquee { animation: none; }
}

.search-input {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid #555;
  border-radius: 4px;
  outline: none;
  font-size: 14px;
  color: #333;
  background: #fff;
  min-width: 0;
  transition: border-color .2s;
}
.search-input:focus { border-color: #888; }
.search-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: #4a4a4a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.search-btn:hover { background: #000; }

.suggest-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 58px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
  z-index: 200;
  max-height: 320px;
  overflow-y: auto;
}
.suggest-item { padding: 10px 16px; cursor: pointer; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
.suggest-item:hover { background: #f5f5f5; }

.filter-panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 215;
  pointer-events: none;
}
.filter-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
  z-index: 220;
}
@media (max-width: 1279px) {
  .filter-panel,
  .filter-panel-backdrop {
    display: none;
  }
}
.filter-group + .filter-group { margin-top: 16px; }
.filter-group-title {
  font-size: 13px;
  font-weight: 700;
  color: #888;
  margin-bottom: 10px;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1.5px solid #ddd;
  border-radius: 999px;
  font-size: 13px;
  color: #444;
  transition: background .15s, border-color .15s, color .15s;
}
.filter-chip:hover { background: #fff0eb; border-color: #ff6b35; color: #ff6b35; }
.filter-empty { font-size: 13px; color: #999; }

/* ===== SP 検索オーバーレイ ===== */
.sp-search-overlay { display: none; }
@media (max-width: 1279px) {
  .sp-search-overlay {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: #fff;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .sp-search-overlay[hidden] { display: none; }
  .sp-search-overlay.is-open { transform: translateX(0); }
  body.sp-search-open { overflow: hidden; }

  .sp-search-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 72px;
    padding: 0 12px 0 6px;
    border-bottom: 1px solid #eee;
  }
  .sp-search-back {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
  }
  .sp-search-form {
    flex: 1;
    min-width: 0;
    margin: 0;
  }
  .sp-search-overlay .sp-search-input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font-size: 16px;
    border: 1px solid #555;
    border-radius: 6px;
  }

  .sp-search-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
  }
  .sp-suggest-dropdown {
    position: static;
    right: auto;
    box-shadow: none;
    border-radius: 6px;
    margin-bottom: 16px;
  }
  .sp-search-filters .filter-group + .filter-group { margin-top: 18px; }
}

/* ===== Tab Nav (ソートタブ) ===== */

.tab-nav {
  width: 100%;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}
.tab-list {
  width: 100%;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}
.tab-list li { min-width: 0; }
.tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 12px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.tab-btn:hover { color: #ff6b35; }
.tab-btn.is-active { color: #fb7a21; border-bottom-color: #fb7a21; }

@media (max-width: 768px) {
  .tab-nav { width: 100%; border-top: 0; border-bottom: 0; }
  .tab-list { display: flex; height: 48px; }
  .tab-list li { flex: 1 1 25%; }
  .tab-btn {
    height: 48px;
    padding: 0 4px;
    border-right: 0;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 700;
    color: #222;
    background: #fff;
  }
  .tab-btn.is-active {
    background: #fff;
    color: #fb7a21;
    border-bottom-color: #fb7a21;
  }
}

/* ===== Category Nav ===== */
.category-nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100% - 32px, 920px);
  margin: 36px auto 0;
  background: #fff;
}
.category-arrow {
  display: flex;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #111;
  background: #fff;
  border: none;
  cursor: pointer;
  transition: color .15s;
  line-height: 1;
}
.category-arrow:hover:not(:disabled) { color: #ff6b35; }
.category-arrow:disabled { color: #111; cursor: default; }
.category-nav {
  flex: 1 1 0;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-nav::-webkit-scrollbar { display: none; }
.category-list {
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  white-space: nowrap;
}
.category-list li { display: flex; align-items: center; }
.category-list li:not(:last-child)::after {
  content: "・";
  margin-left: 28px;
  font-size: 16px;
  font-weight: 800;
  color: #111;
}
.category-btn {
  display: inline-flex;
  align-items: center;
  padding: 0 0 5px;
  border-bottom: 3px solid transparent;
  font-size: 17px;
  font-weight: 800;
  color: #111;
  transition: border-color .15s, color .15s;
  white-space: nowrap;
}
.category-btn:hover { color: #ff6b35; }
.category-btn.is-active { border-bottom-color: #ff6b35; color: #ff6b35; }

@media (max-width: 768px) {
  .category-nav-wrapper {
    justify-content: flex-start;
    width: 100%;
    margin: 38px 0 34px;
    overflow: hidden;
  }
  .category-arrow { display: none; }
  .category-nav { flex: 1 1 auto; padding: 0 28px; }
  .category-list { gap: 18px; padding: 0; }
  .category-list li:not(:last-child)::after { content: none; }
  .category-btn {
    min-height: 44px;
    padding: 0 16px;
    border: 1.5px solid #777;
    border-radius: 28px;
    font-size: 15px;
    line-height: 1;
    color: #111;
    background: #fff;
  }
  .category-btn.is-active { border-color: #fb7a21; background: #fb7a21; color: #fff; }
}

/* ===== PLP の見出し ===== */

.plp-heading {
  width: var(--content-w);
  margin: 0 auto;
  padding: 16px 16px 18px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #555;
  letter-spacing: .02em;
}
@media (max-width: 768px) {
  .plp-heading { font-size: 13px; padding: 12px 16px 14px; }
}

/* ===== Tag Filter ===== */
.tag-filter {
  width: var(--content-w);
  margin: 16px auto 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-filter-facets { display: contents; }
@media (min-width: 1280px) {
  .tag-filter-facets { display: none; }
}
#tag-filter + .product-grid { margin-top: 16px; }
.tag-chip {
  display: inline-block;
  padding: 4px 12px;
  border: 1.5px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: #555;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.tag-chip:hover { border-color: #ff6b35; color: #ff6b35; }
.tag-chip.is-selected { background: #fff0eb; border-color: #ff6b35; color: #ff6b35; }

/* ===== Product Grid ===== */
.product-grid {
  width: var(--content-w);
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 20px;
}
.product-grid.is-empty {
  display: block;
  border: 0;
}
@media (max-width: 1280px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .product-grid {
    width: auto;
    margin: 16px 16px 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 16px;
  }
}
@media (max-width: 600px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===== Product Card ===== */
.product-card {
  background: #fff;
  display: flex;
  flex-direction: column;
}
.product-card-image {
  flex-shrink: 0;
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
}
.product-card-image > a {
  display: block;
  width: 100%;
  height: 100%;
}
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.heart-form {
  margin: 0;
  display: inline-flex;
  flex: 0 0 auto;
}
.card-fav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-fav-row .brand-pill,
.card-fav-row .product-brand { margin: 0; align-self: center; }
.product-card-body {
  padding: 10px 4px 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.product-brand {
  align-self: flex-start;
  max-width: 100%;
  padding: 5px 12px;
  border: 1px solid #5f5f5f;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-brand:hover { color: #ff6b35; text-decoration: underline; }
.product-name {
  font-size: 15px;
  font-weight: 500;
  color: #111;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.55;
  min-height: calc(1.55em * 2);
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-score {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.stars { display: inline-flex; gap: 2px; }
.star {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.star-filled { background-image: url(../img/icon-star-filled-v2.svg); }
.star-empty { background-image: url(../img/icon-star-empty.png); }
.score-value { font-weight: 500; color: #111; }
.product-price { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: #333; }
.product-review-line {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  font-size: 14px;
  color: #333;
  line-height: 1;
}
.review-icon { display: inline-block; width: 14px; height: 14px; flex: 0 0 auto; background: url(../img/icon-review-v2.svg) no-repeat center / contain; }
.review-count { color: #333; line-height: 22px; }
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.product-tag {
  font-size: 12px;
  color: #999;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 768px) {
  .product-tag { font-size: 13px; line-height: 1.45; }
}
@media (min-width: 601px) and (max-width: 768px) {
  .product-grid .product-card-body { padding: 9px 4px 4px; gap: 6px; }
  .product-grid .product-brand { padding: 4px 10px; border-radius: 999px; font-size: 12px; }
  .product-grid .product-name { font-size: 14px; line-height: 1.4; min-height: calc(1.4em * 2); }
  .product-grid .product-score { gap: 4px; font-size: 13px; }
  .product-grid .star { width: 14px; height: 14px; }
  .product-grid .product-review-line { font-size: 13px; }
  .product-grid .review-icon { width: 16px; height: 16px; }
}

/* ===== Pagination ===== */
.pagination {
  width: var(--content-w);
  margin: 56px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}
.page-btn {
  min-width: 28px;
  height: 34px;
  border-radius: 0;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 18px;
  font-weight: 800;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, color .15s;
}
.page-btn:hover, .page-btn.is-active { border-bottom-color: #ff6b35; color: #ff6b35; }
.page-arrow { font-size: 24px; font-weight: 800; border: none; }
.page-arrow:hover { border-color: transparent; color: #ff6b35; }
.page-btn.is-disabled { color: #ccc; border-color: transparent; pointer-events: none; }

@media (max-width: 768px) {
  .pagination { margin: 44px auto 0; gap: 18px; }
  .page-btn { height: 31px; font-size: 16px; }
  .page-arrow { font-size: 22px; }
}

/* ===== About Section ===== */
.about-section {
  width: var(--content-w);
  margin: 72px auto 0;
  background: #f0f0f0;
  border: 1px solid #777;
  padding: 64px 16px 56px;
  text-align: center;
}
.about-section h2 {
  font-size: 24px;
  font-weight: 800;
  color: #222;
  margin-bottom: 28px;
}
.about-section p {
  color: #333;
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: 15px;
  line-height: 1.85;
}
@media (max-width: 768px) {
  .about-section { width: 100%; margin: 56px auto 0; border: 0; padding: 56px 16px 60px; }
  .about-section h2 { font-size: 22px; margin-bottom: 24px; }
  .about-section p { max-width: 560px; margin-bottom: 32px; font-size: 15px; line-height: 1.8; }
}

/* ===== Buttons ===== */
.btn-primary {
  display: inline-block;
  padding: 10px 28px;
  background: #ff6b35;
  color: #fff;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  transition: background .15s;
}
.btn-primary:hover { background: #e05a27; }
.btn-dark {
  display: inline-block;
  padding: 13px 28px;
  background: #4a4a4a;
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 700;
  transition: background .15s;
}
.btn-dark:hover { background: #000; }
@media (max-width: 768px) { .btn-dark { padding: 14px 24px; font-size: 16px; border-radius: 7px; } }
.btn-secondary {
  display: inline-block;
  padding: 8px 20px;
  background: #fff;
  color: #ff6b35;
  border: 1.5px solid #ff6b35;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}
.btn-secondary:hover { background: #fff5f1; }

/* ===== Item Detail ===== */
.item-detail-main { max-width: 1200px; margin: 0 auto; padding: 16px 16px 48px; }
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 12px;
  color: #999;
  margin-bottom: 20px;
}
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #ff6b35; text-decoration: underline; }
.breadcrumb-sep { color: #ccc; }
.breadcrumb-current { color: #333; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.item-detail-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}
.item-detail-left { width: 100%; }
.item-detail-center { width: 100%; min-width: 0; }
@media (min-width: 1024px) {
  .item-detail-layout { flex-direction: row; gap: 32px; align-items: flex-start; }
  .item-detail-left {
    flex: 0 0 300px;
    width: auto;
    min-width: 0;
    position: sticky;
    top: 68px;
    align-self: flex-start;
  }
  .item-detail-center { flex: 1; }
}
.item-main-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
  display: block;
  margin-bottom: 16px;
}
.item-main-image--empty { background: #f0f0f0; }
.item-brand-label { font-size: 12px; color: #999; margin-bottom: 4px; }
.item-name { font-size: 18px; font-weight: 700; line-height: 1.5; margin-bottom: 10px; }
.item-score { display: flex; align-items: center; gap: 5px; margin-bottom: 12px; font-size: 13px; }
.item-score .star { width: 16px; height: 16px; }
.item-price { margin: 0 0 14px; font-size: 22px; font-weight: 700; color: #333; }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.item-hero-info { display: contents; }
.item-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.item-actions .btn-dark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  text-align: center;
}
.external-icon { flex: 0 0 auto; }
.voice-heading {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}
.voice-count { font-size: 14px; font-weight: 400; color: #999; }
.review-summary {
  background: #fff7f3;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}
.review-summary-label {
  font-size: 13px;
  font-weight: 700;
  color: #ff6b35;
  margin-bottom: 8px;
}
.review-summary-text { font-size: 14px; line-height: 1.75; color: #333; }
.review-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-list .review-card { height: 100%; }
}

.score-bars { display: grid; gap: 6px; margin-bottom: 16px; }
.score-bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #999; }
.score-bar-label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  width: 32px;
  flex-shrink: 0;
  color: #111;
  font-weight: 700;
}
.score-bar-label .star { width: 12px; height: 12px; }
.score-bar-track {
  flex: 1;
  min-width: 0;
  height: 8px;
  border-radius: 4px;
  background: #efefef;
  overflow: hidden;
}
.score-bar-fill { display: block; height: 100%; border-radius: 4px; background: #ff6b35; }
.score-bar-percent {
  width: 34px;
  flex-shrink: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.review-list.hscroll {

  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  grid-template-rows: repeat(5, min-content);
  align-items: start;
  gap: 0;
}
.review-list .review-card {
  scroll-snap-align: start;
}
.review-list.hscroll .review-card { margin-bottom: 16px; }
.review-list::-webkit-scrollbar { height: 6px; }
.review-list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.review-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.review-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.star.review-stars { width: 14px; height: 14px; }

.review-score-val { font-size: 13px; font-weight: 700; color: #f5a623; }
.review-date { font-size: 12px; color: #aaa; margin-left: auto; }
.review-body p { font-size: 14px; line-height: 1.75; color: #333; margin-bottom: 6px; }
.review-body p:last-child { margin-bottom: 0; }
.review-attrs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.review-attr { display: inline-flex; align-items: center; background: #f7f7f7; border-radius: 4px; padding: 3px 9px; font-size: 12px; line-height: 1.5; }
.review-attr dt { color: #888; margin: 0; }
.review-attr dt::after { content: "："; color: #bbb; }
.review-attr dd { color: #444; font-weight: 500; margin: 0; }
.review-link { font-size: 12px; color: #ff6b35; margin-top: 10px; display: inline-block; }
.review-link:hover { text-decoration: underline; }
.no-reviews { color: #999; font-size: 14px; padding: 24px 0; }
.item-not-found { color: #999; font-size: 14px; padding: 48px 0; text-align: center; }
.related-heading {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
  text-align: center;
}
.item-detail-aside { width: 100%; }
.aside-related-block {
  margin-bottom: 32px;
  contain: inline-size;
}
.aside-related-block:last-child { margin-bottom: 0; }
.aside-related-track { margin-bottom: 16px; }
.aside-related-track .product-card {
  flex: 0 0 calc(50% - 8px);
  min-width: 0;
  scroll-snap-align: start;
}
.item-detail-aside .product-card .product-name,
.item-detail-aside .product-card a:has(> .product-name) { display: none; }
@media (min-width: 1024px) {
  .item-detail-aside {
    flex: 0 0 260px;
    min-width: 0;
    position: sticky;
    top: 68px;
    align-self: flex-start;
  }
}
.btn-outline-more {
  display: inline-block;
  padding: 10px 32px;
  border: 1.5px solid #ff6b35;
  color: #ff6b35;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  transition: background .15s;
}
.btn-outline-more:hover { background: #fff5f1; }
@media (max-width: 768px) {
  .item-main-image { aspect-ratio: auto; max-height: 360px; }
  .breadcrumb-current { max-width: 200px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .item-detail-left {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 0 24px;
    align-items: start;
  }
  .item-hero-info {
    display: flex;
    flex-direction: column;
    grid-column: 2;
    grid-row: 1;
  }
  .item-main-image {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 1;
    max-height: none;
    margin-bottom: 0;
  }
  .item-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    margin-top: 16px;
  }
  .item-actions .btn-dark {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 13px 10px;
    font-size: 13px;
  }
  .aside-related-track .product-card {
    flex: 0 0 calc(33.333% - 10.667px);
  }
}

.sp-sticky-purchase { display: none; }
@media (max-width: 768px) {
  .sp-sticky-purchase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 150;
    padding: 14px 20px;
    background: #ff6b35;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
    transform: translateY(140%);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
    pointer-events: none;
  }
  .sp-sticky-purchase.is-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
}

/* ===== Review Detail ===== */
.review-detail-main { max-width: 720px; margin: 0 auto; padding: 32px 16px; }
.review-detail-title { font-size: 18px; font-weight: 700; margin: 0 0 16px; color: #333; }
.review-detail-card { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.review-actions { margin-top: 20px; }

/* ===== お気に入り一覧・閲覧履歴 (LocalStorage、includes/item_ids_list_body.html で共有) ===== */
.item-list-main { width: var(--content-w); margin: 0 auto; padding: 40px 16px; }
.item-list-title { font-size: 24px; font-weight: 700; margin-bottom: 24px; }

/* ===== Static Pages ===== */
.static-page { max-width: 760px; margin: 0 auto; padding: 40px 16px; }
.static-content h1 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }
.static-content h2 { font-size: 17px; font-weight: 700; margin: 32px 0 12px; }
.static-content p { line-height: 1.8; color: #444; }
.static-content ul, .static-content ol { margin: 0 0 16px; padding-left: 1.4em; line-height: 1.8; color: #444; }
.static-content li { margin-bottom: 4px; }
.static-content a { color: #fb7a21; }
.static-content a:hover { color: #ff6b35; text-decoration: underline; }

.static-meta { font-size: 13px; color: #888; margin-top: 32px; }
.static-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; }
.static-table th, .static-table td { text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid #e5e5e5; vertical-align: top; font-size: 14px; }
.static-table th { white-space: nowrap; color: #666; font-weight: 700; }

.static-points { list-style: none; margin: 0 0 16px; padding: 0; }
.static-points li { margin-bottom: 16px; }
.static-points b { display: block; margin-bottom: 4px; }
.static-points span { color: #666; font-size: 14px; }

/* ===== お問い合わせフォーム ===== */
.contact-form { display: flex; flex-direction: column; gap: 16px; margin: 0 0 24px; }
.contact-form-field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: #111; }
.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #111;
}
.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
  outline: none;
  border-color: #fb7a21;
}
.contact-form-error { margin: 0; font-size: 12px; color: #e73562; }
.contact-form-submit {
  align-self: flex-start;
  padding: 12px 32px;
  border: none;
  border-radius: 4px;
  background: #fb7a21;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.contact-form-submit:hover { opacity: .85; }
.contact-form-messages { list-style: none; margin: 0 0 20px; padding: 0; }
.contact-form-message {
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 8px;
}
.contact-form-message-success { background: #eaf7ee; color: #1a7d3a; }
.contact-form-message-error { background: #fdecec; color: #c0392b; }

/* ===== ブランド一覧 ===== */
.brand-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.brand-list-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 16px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
}
.brand-list-item img { max-width: 100%; max-height: 48px; }
.brand-list-name { font-weight: 700; color: #111; text-align: center; }
@media (min-width: 1280px) {
  .brand-list { grid-template-columns: repeat(3, 1fr); }
}

/* ===== Footer ===== */
.site-footer {
  background: #f0f0f0;
  margin-top: 72px;
  padding: 56px 80px 60px;
}
.footer-inner { max-width: none; margin: 0; }
.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.footer-brand { display: inline-block; flex-shrink: 0; }
.footer-logo {
  display: block;
  width: auto;
  height: 44px;
}
.footer-brand:hover { opacity: .85; }
.footer-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  column-gap: 64px;
  row-gap: 16px;
}
.footer-nav a { font-size: 15px; color: #000; white-space: nowrap; }
.footer-nav a:hover { color: #ff6b35; text-decoration: underline; }
.footer-copyright {
  margin-top: 28px;
  text-align: right;
  font-size: 13px;
  color: #777;
}
@media (min-width: 769px) and (max-width: 1279px) {
  .footer-nav { column-gap: 32px; }
}
@media (max-width: 768px) {
  .site-footer { margin-top: 72px; padding: 56px 16px 60px; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 28px; }
  .footer-logo { height: 36px; }
  .footer-nav { flex-direction: column; gap: 20px; }
  .footer-nav a { font-size: 15px; }
  .footer-copyright { text-align: left; margin-top: 32px; }
}

/* ===== Loading / Empty ===== */
.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px;
  color: #999;
  font-size: 14px;
}

/* ===== Media Layout (トップ / カテゴリ / マーチャント の新構成) ===== */
.media-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding: 0 16px;
  background: #eae9e9;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 #eae9e9;
}
.media-header-logo { line-height: 0; }
.media-header-logo img { height: 20px; width: auto; display: block; }
@media (max-width: 1279px) {
  .media-header { justify-content: flex-end; }
  .media-header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ===== ヘッダーの検索ボックスと右側リンク (,2) ===== 検索は左サイドからヘッダー中央へ移した。DOM 自体は PC テンプレートにしか無い (includes/media_chrome.html の {% if not is_sp %}) が、タブレット幅 (pc テンプレート + 1279px 以下) では 3 カラムが発動せずヘッダーに収まらないため CSS でも隠し、従来どおり追従検索ボタン (search-fab) に任せる */
.media-header-search,
.media-header-links { display: none; }
@media (min-width: 1280px) {
  .media-header-search {
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: min(620px, 38vw);
  }
  .media-header-search .side-search {
    margin-top: 0;
    max-width: none;
  }
  .media-header-search .search-input {
    height: 46px;
    border-radius: 23px;
    border-color: #fff;
    padding-left: 46px;
  }
  .media-header-search .search-input:focus { border-color: #c9c9c9; }
  .media-header-search .search-input-icon { left: 18px; color: #6b6b6b; }

  .media-header-links {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 0 0 auto;
  }
  .media-header-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #12264f;
    white-space: nowrap;
  }
  .media-header-link:hover { color: #fb7a21; }
  .media-header-link-icon { width: 22px; height: 22px; flex-shrink: 0; }
}
.media-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 6px;
  margin-right: -6px;
  touch-action: manipulation;
}
.media-burger:active span { background: #fb7a21; }
.media-burger[aria-expanded="true"] { display: none; }
.media-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 4px 8px 0 auto;
  color: #333;
  touch-action: manipulation;
}
.media-menu-close:active { color: #fb7a21; }

.media-burger span {
  display: block;
  height: 2px;
  background: #12264f;
  border-radius: 1px;
  transition: background 0.1s;
}
.media-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 99;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}
.media-menu[hidden] { display: none; }
.media-menu-list { list-style: none; }
.media-menu-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.media-menu-list a:hover { background: #f7f7f7; color: #fb7a21; }
.media-menu-icon { width: 20px; height: 20px; object-fit: contain; flex: 0 0 auto; }
.media-menu-heading {
  margin: 12px 0 0;
  padding: 0 20px;
  font-size: 12px;
  color: #999;
}

.media-kv {
  background: #ededed;
  height: 240px;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.media-kv-site {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}
.media-kv-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #111;
}

.media-main { min-height: 60vh; padding-bottom: 48px; }
.media-section {
  width: min(100% - 32px, 1120px);
  margin: 40px auto 0;
}
.media-section-title {
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 20px;
}
.media-section-more { text-align: center; }

.overlay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
}
.overlay-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.overlay-card-image { position: relative; }
.overlay-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f5f5f5;
  display: block;
}
.overlay-card-meta {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: rgba(255,255,255,.88);
  font-size: 12px;
  color: #333;
}
.overlay-card-score { font-weight: 500; }
.overlay-card-count { font-weight: 500; }
.overlay-card .brand-pill { margin-top: 8px; }
.overlay-card-tags {
  display: none;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.overlay-card-tag {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #ddd;
  border-radius: 14px;
  font-size: 11px;
  color: #555;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.overlay-card-tag:hover { border-color: #fb7a21; color: #fb7a21; }
.overlay-card-extra { display: none; }
.tag-page .overlay-card-extra { display: flex; }
.overlay-card .product-tags { display: none; }

.overlay-card-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.overlay-card-brand-row .brand-pill { margin-top: 0; }
.bookmark-btn {
  display: inline-block;
  width: 20px;
  height: 22px;
  font-size: 0;
  background: transparent url(../img/icon-bookmark-empty.svg) no-repeat center / contain;
  transition: opacity .15s;
}
.bookmark-btn:hover { opacity: .85; }
.bookmark-btn.is-favorited { background-image: url(../img/icon-bookmark-filled.svg); }
.overlay-card-title {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--heading);
  overflow-wrap: break-word;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.5em * 3);
}
.overlay-card-info-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 4px 8px;
  margin-top: 6px;
  font-size: 11px;
  color: #333;
}
.overlay-card-info-row .score-value,
.overlay-card-info-row .review-count { font-weight: 500; }

.want-form { margin: 0 0 0 auto; }
.want-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #666;
  background: none;
  border: none;
  padding: 0;
  transition: opacity .15s;
}
.want-btn:hover { opacity: .85; }
.want-btn-icon {
  display: inline-block;
  width: 13px;
  height: 13px;
  background: transparent url(../img/icon-want-empty.svg) no-repeat center / contain;
}
.want-btn.is-wanted { color: #e73562; }
.want-btn.is-wanted .want-btn-icon { background-image: url(../img/icon-want-filled.svg); }
.overlay-card-excerpt {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.7;
  color: #444;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.overlay-card-detail {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 8px;
  font-size: 11px;
  color: #111;
}
.overlay-card-detail:hover { color: #fb7a21; }
.overlay-card-detail-caret { margin-left: 2px; font-size: 0.8em; }

.brand-pill {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  padding: 3px 10px;
  border: 1px solid #bbb;
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.5;
  color: #333;
  background: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-pill:hover { border-color: #fb7a21; color: #fb7a21; }

@media (max-width: 768px) {
  .overlay-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 8px;
  }

  .overlay-card-extra { display: flex; }
  .top-recommended .overlay-grid > .overlay-card:nth-child(n+7) { display: none; }
  .overlay-card-meta {
    padding: 2px 5px;
    gap: 3px;
    font-size: 10px;
  }
  .overlay-card-meta .star { width: 12px; height: 12px; }
  .overlay-grid .brand-pill {
    font-size: 10px;
    line-height: 1.3;
    padding: 2px 6px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  .overlay-grid .product-tags {
    display: flex;
    margin-top: 4px;
  }
  .overlay-grid .product-tag { font-size: 10px; }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .overlay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overlay-grid > .overlay-card.overlay-card-extra:nth-child(-n+6) { display: flex; }
  .top-recommended .overlay-grid > .overlay-card:nth-child(n+7) { display: none; }
}

.hscroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}
.hscroll::-webkit-scrollbar { height: 6px; }
.hscroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

.tag-block {
  flex: 0 0 auto;
  width: min(84%, 340px);
  scroll-snap-align: start;
}
.tag-block-title {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}
.tag-block-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: #333;
  text-decoration: underline;
}

.row-card {
  display: flex;
  gap: 14px;
  padding: 0;
  margin-bottom: 20px;
  background: #fff;
}
.row-card-image { position: relative; flex: 0 0 96px; }
.row-card-img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: #f5f5f5;
  display: block;
}
.row-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.row-card-score, .row-card-count { display: flex; align-items: center; gap: 4px; font-size: 13px; }

.review-carousel-wrap { position: relative; padding: 0 26px; }
.review-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.review-carousel::-webkit-scrollbar { display: none; }
.review-carousel .review-media-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
}
@media (min-width: 768px) {
  .review-carousel .review-media-card { flex: 0 0 calc((100% - 12px) / 2); }
}
.review-carousel-arrow {

  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 32px;
  height: 48px;
  font-size: 30px;
  line-height: 1;
  color: #888;
  background: rgba(255,255,255,.8);
}
.review-carousel-arrow:hover { color: #333; }
.review-carousel-arrow:disabled { opacity: .3; cursor: default; }
.review-carousel-prev { left: 0; }
.review-carousel-next { right: 0; }
.review-media-card {
  border: 1px solid #d8d8d8;
  padding: 14px;
  background: #fff;
}
.review-media-head { display: flex; flex-wrap: nowrap; gap: 12px; }
.review-media-image { position: relative; flex: 0 0 96px; }
.review-media-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 140px;
  min-width: 140px;
}
.review-media-item .row-card-score,
.review-media-item .row-card-count { display: none; }

.review-media-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--heading);
  overflow-wrap: break-word;
  word-break: break-word;
}
.review-media-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 11px;
  color: #333;
}
.review-media-info .score-value { font-size: 11px; font-weight: 500; }
.review-media-info .review-media-date { margin: 0; font-size: 11px; color: #999; }
@media (min-width: 1280px) and (max-width: 1470px) {
  .pc-right .review-media-head { flex-direction: column; }
  .pc-right .review-media-image { flex: 0 0 auto; width: 100%; }
  .pc-right .review-media-image a { display: block; }
  .pc-right .review-media-image .row-card-img { width: 100%; height: 160px; }
  .pc-right .review-media-item { flex: 0 0 auto; width: 100%; min-width: 0; }
}
.review-media-detail {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  color: #111;
}
.review-media-detail:hover { color: #fb7a21; }
.review-media-body { margin-top: 14px; }
.review-media-date { margin-left: auto; color: #888; font-size: 12px; }
.review-media-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.8;
  color: #333;
}
.review-media-attrs { display: none; margin-top: 10px; font-size: 12px; color: #888; }

.search-fab {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 120;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #4a4a4a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.28);
}
.search-fab:hover { background: #000; }

/* ===== Top: バナー ===== */
.top-banner { display: block; position: relative; }
.top-banner-bg img {
  display: block;
  width: 100%;
  height: auto;
}
.top-banner-message {
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  transform: translateY(-50%);
  margin: 0;
  font-weight: 700;
  color: var(--heading);
  text-align: center;
}
.top-banner-message em { color: #fb7a21; font-style: normal; }
.top-banner-break { display: none; }

@media (max-width: 767px) {
  .top-banner-bg { display: block; aspect-ratio: 1564 / 459; overflow: hidden; }
  .top-banner-bg img { height: 100%; object-fit: cover; object-position: left top; }
  .top-banner-message {
    left: 16px;
    right: 16px;
    width: auto;
    z-index: 1;
    font-size: clamp(18px, 5.4vw, 23px);
    line-height: 1.3;
    letter-spacing: -0.05em;
  }
  .top-banner::before {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 34%;
    pointer-events: none;
    background-image: url(../img/banner-top-sp.webp);
    background-repeat: no-repeat;
    background-size: 294% auto;
    background-position: right bottom;
    -webkit-mask-image: linear-gradient(to right, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 100%) 52%);
    mask-image: linear-gradient(to right, rgb(0 0 0 / 0%) 0%, rgb(0 0 0 / 100%) 52%);
  }
  .top-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgb(255 255 255 / 0%) 0%,
      rgb(255 255 255 / 34%) 22%,
      rgb(255 255 255 / 48%) 50%,
      rgb(255 255 255 / 34%) 78%,
      rgb(255 255 255 / 0%) 100%
    );
  }
  .top-banner-break { display: block; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .top-banner-bg { aspect-ratio: 2846 / 542; min-height: 148px; overflow: hidden; }
  .top-banner-bg img { height: 100%; object-fit: cover; }
  .top-banner-message {
    font-size: clamp(15px, 3.1vw, 32px);
    line-height: 1.28;
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  .top-banner-message { left: 40px; right: 40px; font-size: 26px; }
}

/* ===== カテゴリページ: KV ===== */
.category-kv {
  background: #fdece3 url('/static/img/category-kv-bg.svg') center / cover no-repeat;
  padding: 32px 24px;
}
.category-kv-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  text-align: center;
}

@media (min-width: 1280px) {
  .category-kv { padding: 46px 40px; }
  .category-kv-title { font-size: 28px; }
}

/* ===== Top: KV 直下のタグチップ ===== */
.top-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  background: #fff3ea;

  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.top-tags-row {
  display: flex;
  gap: 8px;
  width: max-content;
}
.top-tags-row .tag-chip { flex-shrink: 0; background: #fff; }
.top-tags::-webkit-scrollbar { height: 6px; }
.top-tags::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
@media (min-width: 768px) and (max-width: 1279px) {
  .top-tags { overflow-x: visible; }
  .top-tags-row { width: 100%; flex-wrap: wrap; justify-content: center; }
}

/* ===== Top: カテゴリアイコンとブランド別ブロック ===== */
.category-icons {
  width: min(100% - 32px, 1120px);
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px 8px;
}
.category-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.category-icon-circle {
  width: 56px;
  height: 56px;
}
.category-icon-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--heading);
  text-align: center;
}
.category-icon:hover .category-icon-label { color: #fb7a21; }

@media (max-width: 768px) {
  .category-icon-extra { display: none; }
  .category-icons.is-expanded .category-icon-extra { display: flex; }
}
.category-icons-more {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  margin-top: 18px;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 768px) {
  .category-icons-more { display: flex; }
  .category-icons-more[aria-expanded="true"] svg { transform: rotate(180deg); }
}

.genre-jump-section { display: block; }
.genre-jump {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 8px;
}
.genre-jump a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--heading);
  white-space: nowrap;
}

.genre-jump-caret {
  width: 8px;
  height: 8px;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;

  transform: rotate(45deg) translate(-2px, -2px);
}
.genre-jump a:hover { color: #fb7a21; }

.media-section[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

.media-section-title-left { text-align: left; font-size: 20px; }
.media-section-title-left a { display: inline-block; }
.media-section-title-left a:hover { color: #fb7a21; }

/* ===== トップのジャンル別セクション ===== */
.genre-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.genre-section-title { font-size: 17px; font-weight: 700; color: var(--heading); }
.genre-section-more {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fb7a21;
}
.genre-section-more:hover { text-decoration: underline; }

.genre-carousel-viewport { position: relative; }
.genre-carousel-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.genre-carousel-track::-webkit-scrollbar { display: none; }
.genre-carousel-arrow { display: none; }
.genre-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.genre-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d9d9;
}
.genre-carousel-dot.is-active { background: #fb7a21; }

.brand-block {
  flex: 0 0 auto;
  width: min(84%, 340px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
  background: #fff;
  padding: 16px 14px;
}
.brand-block-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-block-hero { display: block; }
.brand-block-hero img,
.brand-block-img-blank {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #f5f5f5;
}
.brand-block-subs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.brand-block-sub img,
.brand-block-sub .brand-block-img-blank {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.brand-block-more {
  display: block;
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  color: #333;
  text-align: center;
}
.brand-block-more:hover { color: #fb7a21; }

.tag-search-card {
  padding: 0;
  border-color: #f5e3d3;
  background: #fdf4ec;
  overflow: hidden;
}
.tag-search-title {
  padding: 16px 16px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
}
.tag-search-list {
  list-style: none;
  background: #fff;
  padding: 0 16px;
}
.tag-search-list li + li { border-top: 1px solid #f0f0f0; }
.tag-search-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 2px;
  font-size: 14px;
  color: #111;
}
.tag-search-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tag-search-count { flex-shrink: 0; font-size: 13px; font-weight: 700; color: #111; }
.tag-search-caret {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #999;
  border-right: 1.5px solid #999;
  transform: rotate(45deg);
}
.tag-search-list a:hover { color: #fb7a21; }
.tag-search-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  background: #fff;
  padding: 6px 0 0;
}
.tag-search-images img {
  width: 100%;
  aspect-ratio: 1 / 2;
  object-fit: cover;
}
.tag-search-more {
  display: block;
  padding: 18px 12px;
  font-size: 14px;
  font-weight: 700;
  color: #fb7a21;
  text-align: center;
}
.tag-search-more:hover { text-decoration: underline; }

.brand-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid #e5e5e5;
  background: #fff;
  scrollbar-width: thin;
}
.brand-tabs::-webkit-scrollbar { height: 6px; }
.brand-tabs::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

.category-top-page .brand-tabs {
  align-items: flex-end;
  gap: 4px;
  padding: 0 8px;
}
.category-top-page .brand-tab {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 12px 16px;
  text-align: center;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-bottom: 0;
  border-radius: 3px 3px 0 0;
}
.category-top-page .brand-tab:hover { background: #fff; color: #fb7a21; }
.brand-tab {
  flex: 0 0 auto;
  padding: 14px 24px;
  font-size: 14px;
  color: #333;
  border-right: 1px solid #eee;
  white-space: nowrap;
}
.brand-tab:hover { color: #fb7a21; background: #fafafa; }

/* ===== 性別タブ (ALL / WOMEN / MEN) ===== */
.gender-tabs {
  width: min(100% - 32px, 1120px);
  margin: 24px auto 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}
.gender-tab {
  flex: 1 1 0;
  max-width: 140px;
  padding: 9px 0;
  border: 1px solid #ccc;
  border-radius: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  background: #fff;
}
.gender-tab:hover { border-color: #fb7a21; color: #fb7a21; }
.gender-tab.is-active { background: #d9d9d9; border-color: #d9d9d9; color: #111; }

/* ===== PC 3カラム (左サイド / 中央=SP レイアウト / 右サイド) ===== */
.pc-side { display: none; }

@media (min-width: 1280px) {
  .pc-layout {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr) 240px;
    gap: 40px;
    align-items: start;
    width: min(100% - 64px, 1800px);
    margin: 0 auto;
  }
  .pc-center { align-self: stretch; }
  .pc-side {
    display: block;
    padding-top: 40px;
    position: sticky;
    top: var(--header-h);
  }
  .pc-center .tag-block { width: 340px; }
  .pc-center .brand-block { width: calc((100% - 24px) / 3); }
  .pc-center .genre-carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #555;
    font-size: 20px;
    z-index: 1;
  }
  .pc-center .genre-carousel-prev { left: -17px; }
  .pc-center .genre-carousel-next { right: -17px; }
  .pc-center .genre-carousel-arrow:disabled { opacity: 0.35; }
  .pc-center {
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    min-width: 0;
  }
  .pc-center .media-section,
  .pc-center .gender-tabs,
  .pc-center .about-section { width: calc(100% - 32px); }
  .pc-center .top-banner {
    width: 100%;
    margin: 0;
  }

  .pc-center .category-icons,
  .pc-center .category-icons-heading { display: none; }

  .pc-center .top-tags { display: none; }
  .pc-center .genre-jump-section { display: block; }
  .merchant-top-page .pc-center .media-section-reviews { display: none; }
  .pc-center .top-recommended .overlay-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pc-center .top-recommended .overlay-grid > .overlay-card.overlay-card-extra:nth-child(-n+8) {
    display: flex;
  }
  .pc-center .tag-filter,
  .pc-center .product-grid,
  .pc-center .pagination { width: calc(100% - 32px); }
  .pc-center .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .category-top-page .overlay-grid,
  .merchant-top-page .overlay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-top-page .overlay-grid > .overlay-card.overlay-card-extra:nth-child(-n+6),
  .merchant-top-page .overlay-grid > .overlay-card.overlay-card-extra:nth-child(-n+6) { display: flex; }
  .category-top-page .overlay-card-tags,
  .merchant-top-page .overlay-card-tags,
  .tag-page .overlay-card-tags { display: flex; }
  .media-header { justify-content: space-between; }
  .media-burger,
  .search-fab,
  .media-menu { display: none; }
}

.side-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 14px;
}
.side-heading-center { text-align: center; }
.side-category-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.side-category {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 2px 0;
}
.side-category-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
}
.side-category-label { font-size: 15px; font-weight: 700; color: #111; }
.side-categories + .side-heading { margin-top: 34px; }
.side-category:hover .side-category-label,
.side-category.is-active .side-category-label { color: #fb7a21; }

.side-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  position: relative;
  max-width: 380px;
}
.side-search .search-input-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.side-search .search-input {
  width: 100%;
  height: 44px;
  font-size: 15px;
  padding-left: 40px;
}
.search-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.side-site-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
  padding: 18px 16px;
  background: #4a4a4a;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}
.side-site-link:hover { background: #000; }

.side-overlay-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
  margin-bottom: 40px;
}
.side-brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.side-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 16px;
  background: #fff;
  border: 1.5px solid #ddd;
  color: #444;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border-radius: 20px;
}
.side-brand:hover { border-color: #ff6b35; color: #ff6b35; }
.pc-right .review-carousel-wrap { padding: 0 22px; }

/* ===== 右サイド「最新のレビュー」カルーセル ===== 1ページ = カード2枚の縦積み。トラックは 2行 × 列自動追加のグリッドなので、 カードを平らに並べるだけで 1・2枚目が1列目、3・4枚目が2列目…と積まれる。 送りは main.js が clientWidth 単位で行い、ドットも JS が差し込む。 */
.side-review-carousel { position: relative; }
.side-review-track {
  display: grid;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 84px 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.side-review-track::-webkit-scrollbar { display: none; }
.side-review-card {
  border: 1px solid #e5e5e5;
  background: #fff;
  padding: 16px 16px 20px;
  min-width: 0;
}
.side-review-image {
  display: block;
  width: 106px;
  margin: 0 auto 14px;
}
.side-review-image img {
  width: 106px;
  height: 106px;
  object-fit: contain;
}
.side-review-image-blank {
  display: block;
  width: 106px;
  height: 106px;
  background: #f0f0f0;
}
.side-review-brand {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-review-score {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.side-review-score .score-value { font-size: 13px; font-weight: 700; color: #111; }
.side-review-date { display: block; font-size: 13px; color: #999; margin-bottom: 8px; }
.side-review-text {
  font-size: 13px;
  line-height: 1.7;
  color: #333;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-bottom: 10px;
}
.side-review-card .review-media-detail {
  font-size: 13px;
  color: #111;
}

.side-review-card .review-media-detail:hover { color: #fb7a21; }
.side-review-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #ededed;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #12264f;
  z-index: 1;
}
.side-review-arrow:disabled { display: none; }
.side-review-carousel:not(.is-first) .side-review-next { transform: translate(10%, -50%); }
.side-review-carousel:not(.is-first) .side-review-prev { transform: translate(-110%, -50%); }
.side-review-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}
.side-review-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d9d9d9;
}
.side-review-dot.is-active { background: #12264f; }

/* ===== 受領素材の反映 (KV 画像 / カテゴリアイコン) ===== */
.media-kv-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.media-kv-photo:not(.media-kv-baked)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .72);
}
.media-kv-photo > * { position: relative; z-index: 1; }
.media-kv-logo {
  width: min(76%, 320px);
  height: auto;
}
.media-kv-lead {
  font-family: "M PLUS 1p", "Noto Sans JP", sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #1b2a4a;
  letter-spacing: .04em;
}
@media (max-width: 768px) {
  .media-kv-photo:not(.media-kv-baked) { height: 160px; }
}
.media-kv-baked {
  padding: 0;
  height: auto;
  aspect-ratio: 2682 / 729;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.category-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.side-category-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.category-icon-img { width: 90%; height: auto; }
.side-category-img { width: 90%; height: auto; }

@media (min-width: 1280px) {
  .pc-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .pc-right > * {
    width: 100%;
    max-width: 420px;
  }
}

/* ===== 横スクロールのインジケータ (●●● + 前後アロー) ===== */
.hscroll-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.hscroll-dots { display: flex; gap: 8px; }
.hscroll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4d4d4;
  padding: 0;
}
.hscroll-dot.is-active { background: #4a4a4a; }
.hscroll-arrows { display: flex; align-items: center; gap: 28px; }
.hscroll-arrow {
  width: 34px;
  height: 34px;
  font-size: 26px;
  line-height: 1;
  color: #777;
}
.hscroll-arrow:hover { color: #222; }
.hscroll-arrow:disabled { opacity: .3; cursor: default; }
