@charset "utf-8";
/* PRODUCT: shared headers, related links and button styles live in common.css. */
.product-page-heading > div { padding: calc(3 * var(--store-unit)) calc(4.5 * var(--store-unit)); }
.product-page-heading h1 img, .product-page-heading__title img { width: calc(34 * var(--store-unit)); height: calc(4.7 * var(--store-unit)); object-fit: contain; }
.product-page-heading p { margin-top: calc(2.4 * var(--store-unit)); text-box-trim: trim-both; text-box-edge: cap alphabetic; line-height: normal; letter-spacing: calc(.09 * var(--store-unit)); }
.product-catalog, .product-detail { width: calc(110 * var(--store-unit)); max-width: calc(100% - 6 * var(--store-unit)); margin: calc(8 * var(--store-unit)) auto; }
.product-catalog { scroll-margin-top: calc(10 * var(--store-unit)); }
.product-grid:not(:has(.product-card:not([hidden]))) { display: none; }
.product-empty { margin-top: calc(6.4 * var(--store-unit)); font-size: calc(1.6 * var(--store-unit)); line-height: 1.5; }
.product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: calc(2 * var(--store-unit)); margin-top: calc(5.5 * var(--store-unit)); }
.product-card { min-width: 0; display: flex; flex-direction: column; border-radius: calc(1 * var(--store-unit)); background: #fcf7ef; }
.product-card__link { display: flex; flex-direction: column; height: 100%; border-radius: inherit; transition: opacity .25s ease; }
.product-card__photo { width: 100%; aspect-ratio: 1; border-radius: calc(1 * var(--store-unit)) calc(1 * var(--store-unit)) 0 0; overflow: hidden; background: #c4c4c4; }
.product-card__photo img { width: 100%; height: 100%; object-fit: contain; }
.product-card__body { flex: 1; padding: calc(2.5 * var(--store-unit)) calc(2 * var(--store-unit)); display: flex; flex-direction: column; gap: calc(2 * var(--store-unit)); }
.product-card__intro { display: flex; flex-direction: column; gap: calc(1.6 * var(--store-unit)); }
.product-card .product-card__name { font-size: calc(2 * var(--store-unit)); font-weight: 700; line-height: calc(3 * var(--store-unit)); text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.product-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: calc(.7 * var(--store-unit)); font-size: calc(1.6 * var(--store-unit)); line-height: 1; margin-bottom: calc(2.4 * var(--store-unit)); }
.product-breadcrumb a { transition: opacity .25s ease; }
.product-breadcrumb > * { text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.product-detail__columns { display: grid; grid-template-columns: minmax(0,527fr) minmax(0,525fr); gap: calc(4.8 * var(--store-unit)); }
.product-gallery { min-width: 0; }
.product-gallery__stage { position: relative; width: 100%; aspect-ratio: 1; }
.product-gallery__main { width: 100%; height: 100%; object-fit: contain; }
.product-gallery__stage button { position: absolute; top: 50%; transform: translateY(-50%); width: calc(4 * var(--store-unit)); height: calc(4 * var(--store-unit)); padding: 0; background: transparent; transition: opacity .25s ease; }
.product-gallery__stage button:hover { opacity: .65; }
.product-gallery__previous { left: calc(1.8 * var(--store-unit)); }
.product-gallery__next { right: calc(1.8 * var(--store-unit)); }
.product-gallery__stage button img { width: 100%; height: 100%; }
.product-gallery__previous img { transform: rotate(180deg); }
.product-gallery__thumbnails { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: calc(.9 * var(--store-unit)); margin-top: calc(3.6 * var(--store-unit)); }
.product-gallery__thumbnails button { position: relative; display: block; padding: 0; width: 100%; aspect-ratio: 1; background: transparent; transition: opacity .25s ease; }
.product-gallery__thumbnails button:hover { opacity: .65; }
.product-gallery__thumbnails button[aria-current="true"]::after { content: ''; position: absolute; inset: 0; border: calc(.2 * var(--store-unit)) solid var(--store-orange); pointer-events: none; }
.product-gallery__thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__info { display: flex; flex-direction: column; gap: calc(4.8 * var(--store-unit)); }
.product-detail__intro { display: flex; flex-direction: column; align-items: flex-start; gap: calc(2.4 * var(--store-unit)); }
.product-detail #product-name { font-size: calc(2.4 * var(--store-unit)); font-weight: 700; line-height: 1.5; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.product-detail__description { font-size: calc(2 * var(--store-unit)); line-height: calc(3.5 * var(--store-unit)); text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.product-detail__back {
  margin: calc(8 * var(--store-unit)) auto 0;
  width: max-content;
  min-width: min(100%, calc(30.6 * var(--store-unit)));
  max-width: 100%;
  padding-inline: calc(var(--store-button-arrow-offset, 1.9 * var(--store-unit)) + var(--store-button-arrow-size, 3.3 * var(--store-unit)) + .5rem);
  background: var(--store-orange);
}
@media (max-width: 767px) {
  .product-page-heading h1 img, .product-page-heading__title img { width: calc(39.4 * var(--store-unit)); height: calc(5.3 * var(--store-unit)); }
  .product-catalog, .product-detail { width: calc(69 * var(--store-unit)); }
  .product-catalog { scroll-margin-top: calc(15 * var(--store-unit)); }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: calc(6.4 * var(--store-unit)); }
  .product-card__body { gap: calc(2.4 * var(--store-unit)); }
  .product-empty { font-size: calc(2.4 * var(--store-unit)); }
  .product-breadcrumb { margin-bottom: calc(3 * var(--store-unit)); }
  .product-detail__columns { display: flex; flex-direction: column; gap: calc(6.4 * var(--store-unit)); }
  .product-gallery__thumbnails { gap: calc(1 * var(--store-unit)); margin-top: calc(4.8 * var(--store-unit)); }
  .product-gallery__stage button { width: calc(5.2 * var(--store-unit)); height: calc(5.2 * var(--store-unit)); }
  .product-gallery__previous { left: calc(2.4 * var(--store-unit)); }
  .product-gallery__next { right: calc(2.4 * var(--store-unit)); }
}
@media (prefers-reduced-motion: reduce) {
  .product-page a, .product-page button, .product-filter summary, .product-filter summary img { transition: none; }
}

/* Mobile typography follows TOP's body (2.8 units) and section labels (3.2). */
@media (max-width: 767px) {
  .product-page-heading p { font-size: calc(3.2 * var(--store-unit)); }
  .product-card .product-card__name { font-size: medium; line-height: 1.5; overflow-wrap: anywhere; }
  .product-card__body { padding: calc(2.5 * var(--store-unit)) calc(2 * var(--store-unit)); }
  .product-card__intro { gap: calc(2 * var(--store-unit)); }
  .product-breadcrumb { font-size: calc(2.4 * var(--store-unit)); line-height: 1.5; }
  .product-detail #product-name { font-size: calc(3.8 * var(--store-unit)); }
  .product-detail__description { font-size: calc(2.8 * var(--store-unit)); line-height: 1.75; }
  .product-detail__back { --store-button-arrow-size: calc(5.2 * var(--store-unit)); --store-button-arrow-offset: calc(3 * var(--store-unit)); min-width: min(100%, calc(44.6 * var(--store-unit))); min-height: calc(11.8 * var(--store-unit)); font-size: calc(3.2 * var(--store-unit)); }
  .product-detail__back > span img { width: calc(1 * var(--store-unit)); height: calc(1.7 * var(--store-unit)); }
}


/* All PRODUCT links and controls use the hand cursor, including presentation-only filters. */
.calbeestore-product :is(a[href], button, summary) { cursor: pointer; }
.product-page .product-stores li { height: auto; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; text-align: center; }
@media (min-width: 768px) {
  .product-catalog .product-filter { --filter-col: calc((65 * var(--store-unit) - 3 * var(--store-unit)) / 4); width: calc(65 * var(--store-unit)); grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* 4列未満はボタン幅を満列のままにし、空いた分を左に残して右へ寄せる */
  .product-catalog .product-filter:not(:has(> :nth-child(2 of :not([hidden])))) { grid-template-columns: var(--filter-col); width: var(--filter-col); }
  .product-catalog .product-filter:has(> :nth-child(2 of :not([hidden]))):not(:has(> :nth-child(3 of :not([hidden])))) { grid-template-columns: repeat(2, var(--filter-col)); width: calc(var(--filter-col) * 2 + var(--store-unit)); }
  .product-catalog .product-filter:has(> :nth-child(3 of :not([hidden]))):not(:has(> :nth-child(4 of :not([hidden])))) { grid-template-columns: repeat(3, var(--filter-col)); width: calc(var(--filter-col) * 3 + 2 * var(--store-unit)); }
}
.product-catalog .product-filter__category[aria-current="true"] { background: var(--store-orange); }
.product-badge--calbee-plus { background: #0075c2; }
@media (min-width: 768px) {
  .product-page .product-stores li { min-height: calc(2.5 * var(--store-unit)); padding-block: calc(.3 * var(--store-unit)); }
}
