/* ==========================================================================
   2026 product brochure online — products/catalog-2026/.   Loaded after site.css.
   Built from the system's hero-page, sub-navigation, photo-box, cards and bands;
   this file sizes them for a long catalogue page (low series bands, calm grid).
   ========================================================================== */

/* 1 ── hero: plain brand hero + the brochure cover as an inset image ─────── */
/* --cover-h: the cover fills the hero below the header bar with 56 px of air above it (hero height − header −
   bottom padding of the box − 56 px), at most 500 px — so it never crowds the navigation on low screens */
.catalog-page .hero-page{min-height:clamp(560px,78vh,760px);--cover-h:min(500px,calc(clamp(560px,78vh,760px) - var(--header-h) - clamp(40px,7.5vw,104px) - 56px))}
/* the text stays clear of the cover: cover width = its height × .52 (520 × 1000 px), + 14 px sheet + 42 px air */
.catalog-page .hero-page__box{width:min(100%,640px);max-width:calc(100% - var(--cover-h) * .52 - 56px)}
.catalog-page .hero-page__intro{text-wrap:balance}
.catalog-hero__actions{align-items:center;margin-top:var(--s-6)}
.catalog-hero__actions .text-link{margin:8px 8px 8px 22px}
.catalog-cover{position:absolute;right:var(--gutter);bottom:clamp(40px,7.5vw,104px);height:var(--cover-h);margin:0}
.catalog-cover img{display:block;position:relative;width:auto;height:100%;max-width:none}
.catalog-cover::before{content:"";position:absolute;top:14px;left:14px;width:100%;height:100%;background:var(--pale)}   /* second sheet: it is a booklet */

/* 2 ── sub-navigation: the core gives the last link no trailing margin (a list that fits is not "scrollable") and
   stops anchor jumps / keyboard focus below the sticky bar (html.has-subnav scroll-padding) — no page rules needed */

/* 3 ── series band: a low photo-box ─────────────────────────────────────── */
.catalog-band{min-height:clamp(280px,27vw,400px);padding:clamp(36px,4vw,56px) 0}
.catalog-band .photo-box__box{width:min(100%,400px);padding:clamp(26px,2.6vw,38px) clamp(26px,2.8vw,40px)}
.catalog-band .photo-box__box>*{margin:0}
.catalog-band .catalog-band__index{margin-bottom:14px;font-size:clamp(34px,3.2vw,46px);font-weight:300;line-height:1;color:var(--teal)}
.catalog-band__index small{margin-left:8px;font-size:13px;font-weight:400;letter-spacing:.16em;color:var(--on-deep);opacity:.75}
.catalog-band__title{font-size:clamp(25px,2.3vw,32px)}
.catalog-band .catalog-band__latin{margin-top:10px;font-size:13px;font-weight:400;line-height:1.4;letter-spacing:.22em;text-transform:uppercase;color:var(--on-deep)}
.catalog-band .catalog-band__count{margin-top:20px;padding-top:16px;border-top:1px solid var(--line-on-deep);font-size:14px;line-height:1.5;letter-spacing:var(--ls-label);color:var(--on-deep)}
html[lang="en"] .catalog-band .catalog-band__count{font-size:13px;text-transform:uppercase}
/* phones: the photo on top, the box below it, overlapping its lower edge (as the mosaic panels do) */
@media (max-width:767px){
  .catalog-band{display:block;min-height:0;padding:0;background:var(--mist)}
  .catalog-band--white{background:var(--white)}
  .catalog-band .photo-box__media{position:relative;height:auto;overflow:hidden}
  .catalog-band .photo-box__media::before{content:"";display:block;padding-top:56%}
  .catalog-band .photo-box__media img{position:absolute;top:0;left:0}
  .catalog-band .photo-box__inner{margin-top:-52px}
  .catalog-band .photo-box__box{width:100%;padding:26px 24px 28px}
  .catalog-band .catalog-band__index{font-size:36px}
}

/* product grid: 4 columns · 3 on tablets · 2 on phones.  A card never gets wider than 320 px, so the
   brochure photos (624 or 411 px wide) are never enlarged. */
.catalog-series{padding:clamp(48px,6vw,88px) 0}
.catalog-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-gap:clamp(30px,3.2vw,46px) clamp(20px,2.4vw,32px)}
.catalog-card .card__body{padding:16px 0 20px}
/* names and spec lines in even lines: no lone word / kana on the last one ("text-wrap:pretty" does not act on
   the linked names: the link carries the card's stretched ::after hit area and the arrow icon) */
.catalog-card .card__title{font-size:17px;line-height:1.45;text-wrap:balance}
html[lang="en"] .catalog-card .card__title{font-size:16px;line-height:1.35;letter-spacing:.2px;min-height:2.7em}
html[lang="ja"] .catalog-card .card__title{font-size:16px;line-height:1.5;min-height:3em}
.catalog-card .card__title .icon{display:inline-block;width:22px;height:8px;margin-left:8px;vertical-align:middle;stroke-width:1.3;transition:transform .35s var(--ease)}
.catalog-card--link .card__title a{transition:color .2s}
.catalog-card--link:hover .card__title .icon,.catalog-card--link .card__title a:focus .icon{transform:translateX(5px)}
.catalog-card--link:hover .card__title a,.catalog-card--link .card__title a:focus{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:1px}
.catalog-card:not(.catalog-card--link):hover .card__media img{transform:none}    /* not a link: no hover zoom */
.catalog-spec{margin:8px 0 0;font-size:13px;line-height:1.6;color:var(--muted)}
html[lang="zh-CN"] .catalog-spec,html[lang="ja"] .catalog-spec{letter-spacing:.02em}           /* .num sets 0 */
html[lang="ja"] .catalog-spec li{line-break:strict}                        /* no ー at a line start (トレ|ー) */
.catalog-spec li{overflow-wrap:break-word;overflow-wrap:anywhere;text-wrap:balance}
@media (max-width:1024px){ .catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:699px){
  .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:26px 14px}
  .catalog-card .card__body{padding:12px 0 16px}
  .catalog-card .card__title,html[lang="en"] .catalog-card .card__title,html[lang="ja"] .catalog-card .card__title{font-size:15px}
  /* Japanese names in the narrow phone column: filled character-wise (phrase-wise breaking needs a third line
     for 海苔入りカニ風味かまぼこ（カットタイプ）), in even lines */
  html[lang="ja"] .catalog-card .card__title{word-break:normal;text-wrap:balance}
  .catalog-spec{font-size:12.5px;line-height:1.55}
}

/* 4 ── closing ───────────────────────────────────────────────────────────── */
.catalog-download .cta-band__actions{align-items:center}
.catalog-download .cta-band__actions .text-link{margin-left:22px}
.catalog-download .cta-band__text p{text-wrap:pretty}                      /* no "series." alone on the last line */
.hotline-band .cta-band__text p{text-wrap:balance}                        /* … nor "e-mail." (pretty does not catch it) */

/* phones: the cover moves above the text */
@media (max-width:699px){
  .catalog-page .hero-page{min-height:0}
  .catalog-page .hero-page__box{display:flex;flex-direction:column;align-items:flex-start;width:100%;max-width:none}
  .catalog-cover{position:relative;right:auto;bottom:auto;order:-1;height:220px;margin:8px 0 34px}
  .catalog-cover::before{top:9px;left:9px}
  .catalog-hero__actions .text-link{margin-left:8px}
}
