@charset "utf-8";
/* FOOD-specific layout. Shared navigation, catalog controls and related links use common files. */
.food-page-heading > div { padding: calc(3 * var(--store-unit)) calc(4.5 * var(--store-unit)); }
.food-page-heading h1 img { width: calc(29.5 * var(--store-unit)); height: auto; }
.food-page-heading p { margin-top: calc(2.4 * var(--store-unit)); letter-spacing: calc(.09 * var(--store-unit)); }
.food-intro { width: calc(69 * var(--store-unit)); max-width: calc(100% - 6 * var(--store-unit)); margin: calc(8 * var(--store-unit)) auto calc(6.4 * var(--store-unit)); }
.food-jumps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: calc(2.4 * var(--store-unit)); }
.food-jumps a { overflow-wrap: anywhere; display: flex; justify-content: space-between; align-items: center; gap: calc(1 * var(--store-unit)); padding: calc(1.5 * var(--store-unit)) calc(2.5 * var(--store-unit)); border-radius: calc(9 * var(--store-unit)); background: var(--store-orange); font-weight: 700; font-size: calc(2.2 * var(--store-unit)); line-height: 1.4; transition: opacity .25s ease; }
.food-jumps img { flex: none; width: calc(3.8 * var(--store-unit)); height: calc(3.8 * var(--store-unit)); }
.food-intro > p { margin-top: calc(2.4 * var(--store-unit)); font-size: calc(1.6 * var(--store-unit)); line-height: 1.5; }
.food-catalog { width: calc(110 * var(--store-unit)); max-width: calc(100% - 6 * var(--store-unit)); margin: 0 auto calc(8 * var(--store-unit)); scroll-margin-top: calc(10 * var(--store-unit)); }
@media (min-width: 768px) {
  .food-filter { --filter-col: calc((48.5 * var(--store-unit) - 2 * var(--store-unit)) / 3); width: calc(48.5 * var(--store-unit)); grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* 3列未満はボタン幅を満列のままにし、空いた分を左に残して右へ寄せる */
  .food-filter:not(:has(> :nth-child(2 of :not([hidden])))) { grid-template-columns: var(--filter-col); width: var(--filter-col); }
  .food-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)); }
}
.food-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: calc(2 * var(--store-unit)); margin-top: calc(6.4 * var(--store-unit)); }
.food-grid:not(:has(.food-card:not([hidden]))) { display: none; }
.food-empty { margin-top: calc(6.4 * var(--store-unit)); font-size: calc(1.6 * var(--store-unit)); line-height: 1.5; }
.food-card { position: relative; display: grid; grid-template-columns: calc(20 * var(--store-unit)) minmax(0,1fr); border-radius: calc(1 * var(--store-unit)); background: #fff2ce; }
.food-card__photo { display: flex; align-items: center; justify-content: center; background: #fff; border: calc(.5 * var(--store-unit)) solid #fff2ce; border-radius: calc(1 * var(--store-unit)) 0 0 calc(1 * var(--store-unit)); }
.food-card__photo img { width: calc(15.6 * var(--store-unit)); height: calc(15.6 * var(--store-unit)); object-fit: contain; margin-block: 12px; }
.food-card__body { padding: calc(2 * var(--store-unit)); display: flex; flex-direction: column; align-items: stretch; gap: calc(1.6 * var(--store-unit)); }
.food-card h2 { font-size: calc(2 * var(--store-unit)); line-height: 1.5; font-weight: 700; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.food-card .product-stores { margin-top: calc(.4 * var(--store-unit)); }
.food-card__open { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; background: transparent; border-radius: inherit; transition: background-color .25s ease; }
.food-card__open:hover { background: rgb(255 174 86 / .1); }
.food-pdf { position: relative; isolation: isolate; background: #fcf7ef; padding: calc(8 * var(--store-unit)) 0; scroll-margin-top: calc(10 * var(--store-unit)); }
.food-pdf::before { content: ""; position: absolute; z-index: -1; inset-block: 0; left: 50%; transform: translateX(-50%); width: 100vw; background: #fcf7ef; pointer-events: none; }
.food-pdf__inner { width: calc(109.8 * var(--store-unit)); max-width: calc(100% - 6 * var(--store-unit)); margin: auto; }
.food-pdf h2 { font-size: calc(2.4 * var(--store-unit)); font-weight: 700; line-height: 1.35; }
.food-pdf p { font-size: calc(1.6 * var(--store-unit)); line-height: 2; }
.food-pdf__list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: calc(2.4 * var(--store-unit)); margin-top: calc(3.6 * var(--store-unit)); }
.food-pdf__list a { display: flex; align-items: center; gap: calc(1.2 * var(--store-unit)); width: 100%; min-height: calc(7 * var(--store-unit)); padding: calc(1.8 * var(--store-unit)); background: #fff; border: calc(.2 * var(--store-unit)) solid var(--store-ink); border-radius: calc(1 * var(--store-unit)); font: inherit; font-size: calc(2 * var(--store-unit)); text-align: left; }
.food-pdf__number > span { display: block; line-height: 1; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.food-pdf__number { display: grid; place-items: center; flex: none; width: calc(3.1 * var(--store-unit)); height: calc(3.1 * var(--store-unit)); border-radius: 50%; background: var(--store-ink); color: #fff; font-size: calc(1.8 * var(--store-unit)); line-height: 1; }
.food-pdf__list img { flex: none; margin-left: auto; width: calc(2 * var(--store-unit)); height: calc(2 * var(--store-unit)); }
.food-dialog { padding: 0; border: 0; border-radius: calc(1 * var(--store-unit)); width: calc(110 * var(--store-unit)); max-width: calc(100% - 6 * var(--store-unit)); max-height: 90dvh; margin: auto; overflow: auto; color: var(--store-ink); background: #fff2ce; }
.food-dialog::backdrop { background: rgb(0 0 0 / .8); }
.food-dialog__layout { display: grid; grid-template-columns: calc(36 * var(--store-unit)) minmax(0,1fr); min-height: calc(41.1 * var(--store-unit)); }
.food-dialog__photo { display: flex; align-items: center; justify-content: center; border: calc(.5 * var(--store-unit)) solid #fff2ce; border-radius: calc(1 * var(--store-unit)) 0 0 calc(1 * var(--store-unit)); background: #fff; }
.food-dialog__photo img { width: calc(25 * var(--store-unit)); height: calc(25 * var(--store-unit)); object-fit: contain; }
.food-dialog__body { padding: calc(6.6 * var(--store-unit)) calc(7.8 * var(--store-unit)) calc(6.6 * var(--store-unit)) calc(6.2 * var(--store-unit)); }
.food-dialog h2 { margin-top: calc(2 * var(--store-unit)); font-size: calc(2 * var(--store-unit)); font-weight: 700; line-height: 1.5; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.food-dialog__description { margin-top: calc(2 * var(--store-unit)); font-size: calc(1.6 * var(--store-unit)); line-height: 1.625; text-box-trim: trim-both; text-box-edge: cap alphabetic; }
.food-dialog__stores { grid-template-columns: repeat(4,minmax(0,1fr)); margin-top: calc(2.4 * var(--store-unit)); }
.food-dialog__close { position: absolute; z-index: 2; top: calc(3.2 * var(--store-unit)); right: calc(3.2 * var(--store-unit)); width: calc(4 * var(--store-unit)); height: calc(4 * var(--store-unit)); display: grid; place-items: center; padding: 0; background: transparent; transition: opacity .25s ease; }
.food-dialog__close img { grid-area: 1 / 1; width: calc(3 * var(--store-unit)); height: calc(3 * var(--store-unit)); }
.food-dialog__close:hover { opacity: .6; }
.food-dialog__previous, .food-dialog__next { position: absolute; top: calc(18.1 * var(--store-unit)); width: calc(5 * var(--store-unit)); height: calc(5 * var(--store-unit)); padding: 0; background: transparent; cursor: pointer; }
.food-dialog__previous { left: calc(2 * var(--store-unit)); transform: rotate(180deg); }
.food-dialog__next { right: calc(2 * var(--store-unit)); }
@media (max-width: 767px) {
  .food-page-heading h1 img { width: calc(32.5 * var(--store-unit)); }
  .food-page-heading p { font-size: calc(3.2 * var(--store-unit)); }
  .food-intro { margin-top: calc(8 * var(--store-unit)); }
  .food-jumps a { font-size: calc(2.8 * var(--store-unit)); padding: calc(1.5 * var(--store-unit)) calc(2 * var(--store-unit)); min-height: calc(9 * var(--store-unit)); }
  .food-intro > p, .food-empty { font-size: calc(2.4 * var(--store-unit)); }
  .food-catalog { width: calc(69 * var(--store-unit)); scroll-margin-top: calc(15 * var(--store-unit)); }
  .food-card { display: flex; flex-direction: column; height: 100%; min-height: 0; }
  .food-card__photo { flex: none; width: 100%; height: calc(35 * var(--store-unit)); border-radius: calc(1 * var(--store-unit)) calc(1 * var(--store-unit)) 0 0; }
  .food-card__photo img { width: calc(29 * var(--store-unit)); height: calc(29 * var(--store-unit)); }
  .food-card__body { padding: calc(2.5 * var(--store-unit)) calc(2 * var(--store-unit)); gap: calc(2 * var(--store-unit)); }
  .food-card h2 { font-size: medium; overflow-wrap: anywhere; }
  .food-card .product-stores { margin-top: calc(.4 * var(--store-unit)); }
  .food-pdf { padding: calc(5 * var(--store-unit)) 0; scroll-margin-top: calc(15 * var(--store-unit)); }
  .food-pdf h2 { font-size: calc(3.2 * var(--store-unit)); }
  .food-pdf p { font-size: calc(2.4 * var(--store-unit)); line-height: 1.6; margin-top: calc(1.5 * var(--store-unit)); }
  .food-pdf__list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .food-pdf__list a { min-height: calc(9 * var(--store-unit)); height: 100%; font-size: calc(2.4 * var(--store-unit)); gap: calc(.8 * var(--store-unit)); padding: calc(1.5 * var(--store-unit)); line-height: 1.5; }
  .food-pdf__number { width: calc(3.8 * var(--store-unit)); height: calc(3.8 * var(--store-unit)); font-size: calc(2.4 * var(--store-unit)); }
  .food-dialog { width: calc(69 * var(--store-unit)); }
  .food-dialog__layout { display: block; }
  .food-dialog__photo { height: calc(54 * var(--store-unit)); border-radius: calc(1 * var(--store-unit)) calc(1 * var(--store-unit)) 0 0; }
  .food-dialog__photo img { width: calc(45 * var(--store-unit)); height: calc(45 * var(--store-unit)); }
  .food-dialog__body { padding: calc(6.4 * var(--store-unit)) calc(7.4 * var(--store-unit)); font-size: medium; overflow-wrap: anywhere; }
  .food-dialog h2 { font-size: inherit; line-height: 1.5; }
  .food-dialog__description { margin-top: .9em; font-size: .875em; line-height: 1.75; }
  .food-dialog__stores { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .food-dialog__close { top: calc(3.5 * var(--store-unit)); right: calc(3.5 * var(--store-unit)); width: calc(5 * var(--store-unit)); height: calc(5 * var(--store-unit)); }
  .food-dialog__close img { width: calc(4 * var(--store-unit)); height: calc(4 * var(--store-unit)); }
  .food-dialog__close, .food-dialog__previous, .food-dialog__next {
    min-width: 4rem;
    min-height: 4rem;
    display: grid;
    place-items: center;
  }
  .food-dialog__previous, .food-dialog__next { top: calc(50 * var(--store-unit)); translate: 0 -50%; }
}
@media (prefers-reduced-motion: reduce) {
  .food-page a, .food-page button { transition: none; }
}

.food-dialog__previous img, .food-dialog__next img { width: calc(5 * var(--store-unit)); height: calc(5 * var(--store-unit)); }

.food-pdf__list a > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }

.calbeestore-food :is(a[href], button, summary) { cursor: pointer; }
.food-dialog__slides { overflow: hidden; }
.food-page .product-stores li { height: auto; min-height: calc(2.5 * var(--store-unit)); padding-block: calc(.3 * var(--store-unit)); white-space: normal; overflow-wrap: anywhere; line-height: 1.3; text-align: center; }
.food-filter .product-filter__category,
.food-filter .product-filter__options a { cursor: pointer; }
.food-filter .product-filter__category[aria-current="true"] { background: var(--store-orange); }

@media (max-width: 767px) {
  .food-jumps a { font-size: calc(2.4 * var(--store-unit)); gap: calc(.8 * var(--store-unit)); }
}

@media (min-width: 768px) {
  .food-pdf__list a {
    column-gap: calc(.7 * var(--store-unit));
    padding-inline: calc(1 * var(--store-unit));
  }
}

.food-dialog__layout[hidden] { display: none; }
