/* 商品一覧 [ht_catalog_items] と商品カード [ht_item]（items-list.php）。色とフォントは site.css の --ht-* */
.ht-items-groups{
  font-family:var(--ht-font);
  letter-spacing:.03em;color:var(--ht-ink);
}
.ht-items-groups .ht-items-series{
  margin:0;padding:40px 0 16px;font-size:1.375rem;font-weight:700;line-height:1.4;letter-spacing:.04em;
  color:var(--ht-ink);font-family:inherit;scroll-margin-top:120px;
}
.ht-items-groups .ht-items-series:first-child{padding-top:0}
.ht-items-groups .ht-items-banner{margin:0 0 20px;aspect-ratio:3/1;border-radius:12px;overflow:hidden;background:#EEF2EE}
.ht-items-groups .ht-items-banner img{display:block;width:100%;height:100%;object-fit:cover}
.ht-items{
  display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:16px;
  margin:0;padding:0;list-style:none;max-width:100%;
  font-family:var(--ht-font);
  font-size:1.125rem;letter-spacing:.03em;line-height:1.85;color:var(--ht-ink);
}
.ht-items :where(*,*::before,*::after){box-sizing:border-box}
.ht-items .ht-item{display:flex;flex-direction:column;margin:0;padding:0;list-style:none;min-width:0;background:#fff;border:1px solid var(--ht-line);border-radius:12px;overflow:hidden}
.ht-items-groups .ht-items-note{margin:0 0 24px;font-size:1rem;line-height:1.75;color:var(--ht-text-2)}
.ht-items .ht-item-crop{display:flex;align-items:center;justify-content:center;padding:8px}
.ht-items .ht-item-crop{overflow:hidden}
.ht-items .ht-item-crop div{background-repeat:no-repeat}
.ht-items .ht-item{scroll-margin-top:120px}
.ht-items .ht-item:target{outline:3px solid var(--ht-rattan);outline-offset:2px}
.ht-items .ht-item--late{content-visibility:auto;contain-intrinsic-size:auto 340px}
.ht-items .ht-item-photo{aspect-ratio:1/1;background:#fff;border-bottom:1px solid var(--ht-line)}
.ht-items .ht-item-photo img{display:block;width:100%;height:100%;object-fit:contain}
.ht-items .ht-item-noimg{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:var(--ht-mist);color:var(--ht-text-2);font-size:1rem;letter-spacing:.04em}
.ht-items .ht-item-name{margin:0;padding:0;font-size:1.125rem;font-weight:700;line-height:1.5;letter-spacing:.04em;color:var(--ht-ink);overflow-wrap:anywhere}
.ht-items .ht-item-open{display:block;width:100%;min-height:44px;margin:0;padding:12px 16px 16px;font:inherit;text-align:left;color:inherit;background:none;border:0;border-radius:0;cursor:pointer}
/* 押せる範囲をカード全体に広げ、マウスを載せる・キーボードで選ぶとカードの縁を出す（紙面の枠と同じ色） */
.ht-items .ht-item{position:relative}
.ht-items .ht-item-open::after{content:"";position:absolute;inset:0;border-radius:11px;transition:box-shadow 160ms var(--ht-ease)}
.ht-items .ht-item-open:hover::after,.ht-items .ht-item-open:focus-visible::after{box-shadow:inset 0 0 0 3px var(--ht-rattan)}
.ht-items .ht-item-open:hover{text-decoration:underline;text-decoration-color:var(--ht-rattan);text-decoration-thickness:2px;text-underline-offset:6px}
.ht-items .ht-item-open:focus-visible{outline:none}
@media (prefers-reduced-motion:reduce){.ht-items .ht-item-open::after{transition:none}}
@media (max-width:37.5em){
  .ht-items-groups .ht-items-series{font-size:1.25rem;padding-top:32px}
  .ht-items-groups .ht-items-banner{aspect-ratio:2/1;margin-bottom:16px}
  .ht-items{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .ht-items .ht-item-name{font-size:1rem}
  .ht-items .ht-item-open{padding:10px 12px 12px}
}
