/* 商品一覧・商品詳細（/products/、/products/chirimen/、/products/poripori/）のコンテンツ用スタイル */
/* intro */
.pr-intro { text-align: center; padding-block: var(--sec-y) 0; }
.pr-intro p { font-size: 16px; line-height: 1.85; margin-top: 14px; }
.pr-intro p + p { margin-top: 22px; }
.pr-catch { font-size: 34px; font-weight: 500; color: var(--main); letter-spacing: .06em; line-height: 1.5; }

/* ===== 商品一覧 ===== */
.pr-group { padding-top: var(--sec-y); }
.pr-group:not(:has(+ .pr-group)) { padding-bottom: var(--sec-y); } /* 最後のグループ。後ろに shops の section が続くため :last-of-type は当たらない */
.pr-gh { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; flex-wrap: wrap; }
.pr-gh h2 { display: flex; align-items: center; gap: 14px; font-size: 38px; font-weight: 500; color: var(--main); letter-spacing: .06em; line-height: 1.4; }
.pr-gh h2::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); flex: none; }
.pr-gh a { display: inline-flex; align-items: center; gap: 12px; color: var(--main); font-size: 22px; letter-spacing: .06em; }
.pr-gh a span:first-child { text-decoration: underline; text-underline-offset: 6px; }
.pr-gh .arrow-c { width: 36px; height: 36px; }
.pr-gh .arrow-c svg { width: 16px; height: 16px; }
.pcd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.pcd { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--frame); border-radius: 8px; overflow: hidden; transition: box-shadow .25s; }
.pcd .ph { position: relative; aspect-ratio: 372 / 270; background: #ddd; overflow: hidden; }
.pcd .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.pcd .ph img.alt { opacity: 0; }
.pcd .bd { position: relative; flex: 1; padding: 22px 22px 22px 22px; min-height: 138px; } /* 下端まで伸ばし、矢印(.go)をカード右下に揃える */
.pcd h3 { font-size: 24px; font-weight: 500; color: var(--main); letter-spacing: .08em; line-height: 1.4; }
.pcd p { font-size: 15px; line-height: 1.7; margin-top: 8px; padding-right: 36px; }
.pcd .go { position: absolute; right: 18px; bottom: 18px; }
.pcd .go .arrow-c { width: 36px; height: 36px; }
.pcd .go .arrow-c svg { width: 16px; height: 16px; }
.pcd:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }
.pcd:focus-visible .ph.has2 img:not(.alt) { opacity: 0; }
.pcd:focus-visible .ph img.alt { opacity: 1; }
@media (hover: hover) {
  .pcd:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .15); }
  .pcd:hover .ph.has2 img:not(.alt) { opacity: 0; }
  .pcd:hover .ph img.alt { opacity: 1; }
}

/* ===== 商品詳細 ===== */
.pr-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; margin-top: 52px; }
.pr-tabs a { display: flex; align-items: center; justify-content: space-between; width: 268px; height: 52px; padding: 0 12px 0 28px; background: var(--blue-pale); border-radius: 4px; color: var(--main); font-size: 18px; font-weight: 500; letter-spacing: .06em; transition: background .2s; }
.pr-tabs a:hover { background: #e2f1f4; }
.pr-tabs .arrow-c { transform: rotate(90deg); }
.pr-items { padding-top: var(--sec-y); }
.pr-item { display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 573fr); gap: 51px; align-items: start; padding-block: 95px; border-top: 1px solid var(--rule); }
.pr-item:first-child { border-top: 0; padding-top: 0; }
.pr-item:last-child { padding-bottom: var(--sec-y); }
.pr-main { aspect-ratio: 560 / 406; border-radius: 8px; overflow: hidden; background: #eee; }
.pr-main { position: relative; }
.pr-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pr-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.pr-thumbs li { position: relative; aspect-ratio: 128 / 93; }
.pr-thumbs button { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #eee; cursor: pointer; opacity: .82; transition: opacity .2s; }
.pr-thumbs button img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pr-thumbs button:hover, .pr-thumbs button[aria-current='true'] { opacity: 1; }
.pr-thumbs button[aria-current='true'] { box-shadow: 0 0 0 3px var(--main); }
.pr-thumbs button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.pr-gift { margin-top: 28px; background: var(--cream); border-radius: 8px; padding: 18px 28px 18px 46px; font-family: var(--sans); font-size: 14px; line-height: 1.7; }
.pr-gift ul { margin-top: 2px; } .pr-gift li { font-size: 11px; line-height: 1.8; }
.pr-name { text-wrap: balance; font-size: 40px; font-weight: 600; color: var(--main); letter-spacing: .08em; line-height: 1.35; }
.pr-pcatch { font-size: 24px; font-weight: 600; letter-spacing: .06em; line-height: 1.5; margin-top: 22px; }
.pr-desc { margin-top: 22px; font-size: 17px; line-height: 1.75; }
.pr-desc p + p { margin-top: 1.1em; }
.pr-lb { display: flex; align-items: center; gap: 8px; margin: 40px 0 14px; font: 700 15px/1.4 var(--sans); color: var(--main); letter-spacing: .04em; }
.pr-lb::before { content: ''; width: 13px; height: 13px; border-radius: 50%; background: var(--main); flex: none; }
.pr-lb.gold { color: var(--gold); } .pr-lb.gold::before { background: var(--gold); }
.pr-eat { display: flex; flex-wrap: wrap; gap: 8px; }
.pr-eat li { font: 12px/1.5 var(--sans); background: var(--cream); border: 1px solid #e6d3a3; border-radius: 999px; padding: 4px 14px; }
.pr-qda { text-align: center; }
.pr-qda img { width: 300px; height: auto; margin-inline: auto; }
.pr-qda p { text-align: left; font: 11px/1.8 var(--sans); color: #666; margin-top: 8px; }
.pr-buy { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.pr-buy li { flex: 1 1 calc(50% - 9px); max-width: 100%; min-width: 0; }
.pr-buy a { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; min-height: 54px; padding: 8px 12px 8px 22px; border: 1.5px solid var(--main); border-radius: 30px; background: #fff; color: var(--main); font-size: 15px; line-height: 1.4; letter-spacing: .02em; word-break: auto-phrase; text-wrap: balance; transition: background .2s; }
.pr-buy a:hover { background: var(--blue-pale); }
.pr-buy .arrow-c { flex: none; }
.pr-buy a > span { min-width: 0; overflow-wrap: break-word; } /* 長い店名が縮まず丸矢印をボタン外へ押し出すのを防ぐ */
.pr-shopslink { margin-top: 14px; text-align: right; font: 13px/1.4 var(--sans); }
.pr-shopslink a { color: var(--main); text-decoration: underline; text-underline-offset: 3px; }
.pr-tbl { width: 100%; border-collapse: collapse; font: 14px/1.7 var(--sans); }
.pr-tbl th, .pr-tbl td { padding: 11px 16px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.pr-tbl tr:first-child th, .pr-tbl tr:first-child td { border-top: 1px solid var(--rule); }
.pr-tbl th { width: 102px; background: var(--blue-pale); color: var(--main); font-weight: 500; text-align: center; }
.pr-tbl td.pr-tbl-note { font-size: 12px; color: #444; line-height: 1.8; }
.pr-top { margin-top: 36px; text-align: right; }
.pr-top a { display: inline-flex; align-items: center; gap: 10px; color: var(--main); font-size: 17px; text-decoration: underline; text-underline-offset: 5px; }
.arrow-c.up svg { transform: rotate(-90deg); }

/* ===== SP（≤900px。SP デザイン無し: TOP SP の規約＝24px 余白・1 カラム） ===== */
@media (max-width: 900px) {
  .pr-intro { text-align: left; }
  .pr-intro p br { display: none; }
  .pr-intro p { font-size: 14px; line-height: 1.9; }
  .pr-catch { font-size: 22px; text-align: center; text-wrap: balance; }
  .pr-intro .pr-catch { text-align: center; }
  .pr-gh h2 { font-size: 24px; gap: 10px; } .pr-gh h2::before { width: 10px; height: 10px; }
  .pr-gh a { font-size: 16px; } .pr-gh .arrow-c { width: 28px; height: 28px; }
  .pcd-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .pcd .bd { min-height: 0; padding: 18px 64px 18px 18px; }
  .pcd h3 { font-size: 20px; } .pcd p { font-size: 14px; }
  .pcd .go { right: 14px; bottom: 14px; } .pcd .go .arrow-c { width: 32px; height: 32px; }
  .pr-tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 32px -24px 0; padding: 0 24px 6px; gap: 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .pr-tabs li { flex: 0 0 auto; scroll-snap-align: start; }
  .pr-tabs a { width: auto; min-width: 220px; gap: 14px; font-size: 16px; padding: 0 12px 0 22px; }
  .pr-item { grid-template-columns: minmax(0, 1fr); gap: 0; padding-block: 56px; }
  .pr-left { display: contents; }
  .pr-right { display: contents; }
  /* SP: 商品名 → 画像ギャラリー → ギフト注記 → 以降の情報 */
  .pr-item > * > * { order: 5; width: 100%; min-width: 0; }
  .pr-item { display: flex; flex-direction: column; }
  .pr-name { order: 1 !important; font-size: 28px; }
  .pr-pcatch { order: 2 !important; font-size: 18px; margin-top: 10px; }
  .pr-main { order: 3 !important; margin-top: 20px; }
  .pr-thumbs { order: 3 !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
  .pr-thumbs button { border-radius: 6px; }
  .pr-gift { order: 4 !important; margin-top: 16px; padding: 14px 16px; font-size: 13px; }
  .pr-desc { font-size: 15px; margin-top: 28px; }
  .pr-lb { margin-top: 32px; }
  .pr-qda img { width: min(300px, 100%); }
  .pr-buy li { flex: 1 1 100%; }
  .pr-buy a { font-size: 14px; }
  .pr-tbl th { width: 96px; padding: 10px 8px; } .pr-tbl td { padding: 10px 12px; }
}
