/* Localized pages use the Japanese templates. This sheet is loaded after the
   shared and route styles on both full-page and in-page navigation. */
@font-face {
  font-family: "Shimizu SC punctuation";
  src: url("punctuation-sc.woff") format("woff");
  unicode-range: U+3001-3002, U+FF01, U+FF0C, U+FF1A-FF1B, U+FF1F;
}
@font-face {
  font-family: "Shimizu HK punctuation";
  src: url("punctuation-hk.woff?v=2") format("woff");
  unicode-range: U+3001-3002, U+FF01, U+FF0C, U+FF1A-FF1B, U+FF1F;
}
html:lang(zh-CN) { --zh-type: "Shimizu SC punctuation", "Noto Serif CJK SC", "Songti SC", SimSun, serif; }
html:lang(zh-HK) { --zh-type: "Shimizu HK punctuation", "Noto Serif CJK HK", "Noto Serif CJK TC", "Songti TC", PMingLiU, serif; }
html:lang(zh) :is(body, h1, h2, h3, h4) { font-family: var(--zh-type); }
html:lang(zh) { line-break: strict; }
html:lang(en) .copy-phrase { display: inline-block; max-inline-size: 100%; }

/* Keep each of the two authored Chinese lines within its own heading column. */
html:lang(zh) :is(#food-title, #osechi-title, .osechi-lp__intro-copy h2) {
  container-type: inline-size;
  min-inline-size: 0;
  justify-self: stretch;
  --zh-line-limit: 13.7cqi; /* seven full-width characters */
}
html:lang(zh) #osechi-title { --zh-line-limit: 10.7cqi; /* nine characters */ }
html:lang(zh) :is(#food-title, #osechi-title, .osechi-lp__intro-copy h2) > .copy-phrase {
  display: block;
  font-size: min(1em, var(--zh-line-limit));
  letter-spacing: .025em;
}

html[lang] :is(h1, h2, h3, .ingredient-data h3, .site-menu__booking-heading span) {
  text-wrap: balance;
  word-break: normal;
}
:where(.panel-inner, .story__copy, .course-card, .osechi-lp, .cuisine-intro) p {
  text-wrap: pretty;
}
/* The shared templates set the writing direction for each Japanese breakpoint.
   The cuisine hero lays out Japanese glyphs individually. Chinese uses native columns. */
html:lang(zh) .cuisine-hero .hero__title > .heading-phrase {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
}
html:lang(zh) .hero__title > .heading-phrase { white-space: nowrap; }
html:lang(zh) .osechi-lp__year { text-orientation: upright; }

html[lang] .editorial-title { overflow-wrap: break-word; }
html:lang(zh) :is(.editorial-title, h1, h2, h3, h4) { line-break: strict; overflow-wrap: normal; }
html:lang(zh) :is(.heading-phrase, .chef-intro__column) {
  text-orientation: mixed;
  letter-spacing: .055em;
}
html:lang(en) :is(.hero__title, .story__title, .chef-intro__title) > .horizontal-heading {
  display: block;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
  white-space: normal;
  text-indent: 0;
  letter-spacing: .015em;
  line-height: 1.3;
  text-wrap: balance;
}
html:lang(en) .hero__title { display: block; max-inline-size: min(76%, 30rem); }
html:lang(en) .cuisine-hero__copy { right: var(--outer); }
html:lang(en) .cuisine-hero .hero__title { max-inline-size: min(100%, 30rem); }
html:lang(en) .story__title { display: block; width: auto; min-width: 0; }
html:lang(en) .shimizu-top .story__brand p { writing-mode: horizontal-tb; white-space: normal; letter-spacing: .035em; }
html:lang(en) .chef-intro__title { display: block; min-inline-size: 0; }
html:lang(en) .chef-intro__title .horizontal-heading { font-size: clamp(1.5rem, 2.15vw, 2rem); }

html[lang] :is(.chef-reservation__content, .course-card__copy, .news-index__intro > h1, .shop-booking summary span) { min-inline-size: 0; }
html[lang] .chef-reservation__content { grid-template-columns: minmax(0, 1fr); }
html[lang] .chef-reservation :is(h2, .editorial-title) { white-space: normal; text-wrap: balance; }
html[lang] .shop-booking .site-accordion summary span { width: auto; }
html[lang] .site-accordion > summary { white-space: nowrap; }
html[lang] .shop-booking .site-accordion > summary {
  gap: .5rem;
  font-size: clamp(.8125rem, 3.6vw, 1.0625rem);
  letter-spacing: .01em;
}
@media (min-width: 768px) {
  html[lang] .course-body .detail-table > div { grid-template-columns: minmax(0, 32%) minmax(0, 1fr); }
}
html[lang] .detail-table dt { overflow-wrap: break-word; }
html[lang] .course-hero__price .course-price, html[lang] .course-card__summary .course-price { flex-wrap: wrap; align-items: baseline; }
html[lang] .panel-scroll-hint { width: auto; white-space: nowrap; font-size: .75rem; }

/* Size paired controls against their own row, including the half-width PC panel. */
.buttons { container: booking-actions / inline-size; }
html[lang] .buttons {
  display: flex;
  flex-wrap: wrap;
  min-inline-size: 0;
}
html[lang] .reservation-button, html[lang] .reservation-button__label {
  white-space: nowrap;
  letter-spacing: .015em;
}
html[lang] .buttons .button.reservation-button {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
  padding-inline: .375rem;
  gap: clamp(.3rem, 1.8cqi, .75rem);
  font-size: clamp(.8125rem, 4cqi, 1.125rem);
  line-height: 1.5;
}
html[lang] .buttons .reservation-button img { width: 1.25em; height: 1.25em; flex: none; }
@container booking-actions (max-width: 18.75rem) {
  html[lang] .buttons .button.reservation-button { flex-basis: 100%; font-size: 1rem; }
}
html[lang] .takeout-button, html[lang] .osechi-lp .button {
  min-inline-size: 0;
  padding-inline: clamp(.5rem, 2vw, 1.25rem);
  gap: clamp(.375rem, 1.2vw, .875rem);
  font-size: clamp(.875rem, 1.35vw, 1.125rem);
}
html[lang] .takeout-button .reservation-button__label { min-inline-size: 0; }
html[lang] .osechi__actions {
  container: osechi-actions / inline-size;
  grid-template-columns: minmax(0, 1fr);
}
html[lang] .osechi__cta {
  min-width: 0;
  font-size: clamp(.8125rem, 4.1cqi, 1rem);
  gap: .5rem;
  padding-inline: .75rem;
}
html[lang] .osechi__cta img { width: 2rem; }
@container osechi-actions (max-width: 18.75rem) {
  html[lang] .osechi__cta { padding-inline: .3rem; gap: .3rem; }
  html[lang] .osechi__cta img { width: 1.5rem; }
}

html:lang(en) .osechi-lp__hero-copy { grid-template-columns: minmax(0, 1fr); }
html:lang(en) .osechi-lp__year {
  writing-mode: horizontal-tb;
  justify-self: start;
  align-items: baseline;
  gap: .4em;
  line-height: 1.5;
}
html:lang(en) .osechi-lp__year > span { letter-spacing: .03em; }
html[lang] .osechi-lp__terms-note { white-space: normal; }
html[lang] .osechi-lp__nav .button.osechi-lp__gold { width: max-content; padding-inline: 1rem; }

@media (min-width: 960px) {
  html:lang(en) .shimizu-top .story__inner {
    grid-template-columns: minmax(100px, 145px) minmax(0, 270px) minmax(0, 560px);
    column-gap: clamp(1rem, 2vw, 2rem);
  }
}
@media (min-width: 1200px) {
  html:lang(en) .chef-intro {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
    column-gap: clamp(1rem, 2vw, 2rem);
  }
  html[lang] .tablet-panel .chef-reservation__content {
    left: auto;
    width: min(86%, 28rem);
    margin-inline: auto;
  }
  html[lang] .hero .site-menu, html[lang] .hero .site-menu__pc { gap: clamp(.625rem, 1.2vw, 1.5rem); }
  html[lang] .hero .site-menu__pc > a { white-space: nowrap; }
  html[lang] .hero--osechi .site-menu { margin-inline-end: 1rem; }
  html[lang] .hero__osechi { gap: .6rem; min-width: 0; padding-inline: 1rem; font-size: 1rem; }
}
@media (min-width: 768px) and (max-width: 959px) {
  html:lang(en) .osechi-lp__hero { grid-template-columns: minmax(0, 1fr) auto; }
  html:lang(en) .osechi-lp__year, html:lang(en) .osechi-lp__lead { grid-column: 1 / -1; }
  html:lang(en) .osechi-lp__hero-text > .osechi-lp__terms { grid-column: 1; }
  html:lang(en) .osechi-lp__hero-text > .osechi-lp__gold { grid-column: 2; }
}
@media (max-width: 767px) {
  html[lang] .ingredient-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  html[lang] .ingredient-tabs button { min-width: 0; padding-inline: 0; font-size: clamp(.8125rem, 3.8vw, 1rem); letter-spacing: 0; white-space: nowrap; }
  html[lang] .osechi-lp__header { flex-wrap: nowrap; gap: .5rem; }
  html[lang] .osechi-lp__header > a { min-width: 0; }
  html[lang] .osechi-lp__header .osechi-lp__logo { width: min(32vw, 140px); }
  html[lang] .osechi-lp__nav { flex: none; }
  html[lang] .osechi-lp__nav > a:not(.button), html[lang] .osechi-lp__nav .osechi-lp__wide { display: none; }
  html[lang] .osechi-lp__nav .osechi-lp__sp { display: inline; }
  html[lang] .osechi-lp__nav .button.osechi-lp__gold { padding-inline: .625rem; min-height: 48px; }
  html:lang(en) .osechi-lp__hero { grid-template-columns: minmax(0, 1fr); }
  html:lang(en) .osechi-lp__year, html:lang(en) .osechi-lp__status { grid-column: 1; }
  html[lang] .osechi-lp__product dl > div { grid-template-columns: minmax(0, 1fr); gap: .5rem; }
  html[lang] .osechi-lp__channel .button { font-size: clamp(.8125rem, 3.6vw, 1rem); }
}
