/*
 * Richer inner pages (2026-11-20).
 * Loaded after every other stylesheet and scoped to .inner-page, so the home page, the administrator
 * area and the shop keep their own look. Only layout and decoration live here: no text, no inline
 * styles, no data: URIs, and no images other than the ones the templates already reference.
 */

.inner-page {
  --rich-card: #fffefb;
  --rich-cream: #f6f1e6;
  --rich-blush: #f8eee7;
  --rich-shadow: 0 22px 50px rgba(38, 61, 50, 0.1);
  --rich-shadow-soft: 0 12px 30px rgba(38, 61, 50, 0.06);
  --rich-band: #f1f2e8;
  --rich-seal-red: #a1433f;
}

/* A photograph that could not be loaded is taken out of the layout by site.js. */
.inner-page img[hidden],
.inner-page .article-gallery.is-empty {
  display: none;
}

/* ---------- Shared pieces: line art, section headings ---------- */
.inner-page .hero-rich-sprig,
.inner-page .news-thumb-sprig,
.inner-page .story-aside-sprig {
  fill: rgba(186, 200, 151, 0.18);
  stroke: #7d9166;
  stroke-linejoin: round;
  stroke-width: 1;
  pointer-events: none;
}

.inner-page .rich-ornament {
  display: block;
  width: 132px;
  height: 24px;
  margin: 18px auto 0;
  fill: none;
  opacity: 0.78;
  stroke: var(--inner-green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.1;
}

.inner-page .rich-icon {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.inner-page .rich-heading {
  margin: 0 auto clamp(34px, 4.6vw, 58px);
  text-align: center;
}

.inner-page .rich-heading .eyebrow {
  margin-bottom: 14px;
  justify-content: center;
  color: var(--inner-accent);
}

.inner-page .rich-heading .eyebrow::after,
.inner-page .article-hero > .eyebrow::after,
.inner-page .partners-page .section-heading.small .eyebrow::after {
  width: 32px;
  height: 1px;
  background: currentColor;
  content: "";
}

.inner-page .rich-heading h2 {
  margin: 0;
  color: var(--inner-ink);
  font-size: clamp(27px, 3.1vw, 38px);
  letter-spacing: 0.07em;
  line-height: 1.6;
}

/* ---------- Page opener: copy beside an arched photograph ---------- */
.inner-page #main > .section:has(> .hero-rich),
.inner-page .scene-section > .section:has(> .hero-rich) {
  padding-top: clamp(30px, 4vw, 52px);
}

.inner-page .section > .page-hero.hero-rich,
.inner-page .scene-section .page-hero.hero-rich {
  position: relative;
  display: grid;
  width: min(100%, 1120px);
  margin-bottom: clamp(58px, 7.5vw, 104px);
  padding: clamp(34px, 4.6vw, 62px) clamp(26px, 5vw, 70px);
  border: 0;
  border-radius: 6px 6px 120px 6px;
  grid-template-columns: minmax(0, 1.12fr) minmax(250px, 0.88fr);
  align-items: center;
  column-gap: clamp(30px, 6vw, 84px);
  background: linear-gradient(118deg, #edf1e6 0%, #f4f1e5 56%, #f8ede6 100%);
}

.inner-page .scene-section .page-hero.hero-rich {
  background: linear-gradient(118deg, #fbfaf6 0%, #f8f3ea 100%);
}

.inner-page .hero-rich-copy {
  min-width: 0;
}

.inner-page .hero-rich-copy > .eyebrow {
  margin-bottom: 20px;
  color: var(--inner-green);
}

.inner-page .hero-rich-copy > h1 {
  max-width: 13.5em;
  margin: 0;
  color: var(--inner-ink);
  font-size: clamp(32px, 3.9vw, 50px);
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-wrap: balance;
  word-break: auto-phrase;
}

.inner-page .hero-rich-copy > h1 .hero-title-sub {
  display: block;
  margin-top: 0.7em;
  color: var(--inner-green);
  font-size: 0.72em;
  letter-spacing: 0.16em;
}

/* In the English rendering the whole title sits in the first phrase; the emptied second line takes no room. */
.inner-page .hero-rich-copy > h1 .hero-title-sub:empty {
  display: none;
}

.inner-page .hero-rich-lead {
  max-width: 29em;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--inner-line);
  color: #425349;
  line-height: 2;
  text-wrap: balance;
}

.inner-page .hero-rich-copy > .text-link {
  margin-top: 26px;
}

.inner-page .hero-rich-copy > .recipe-note {
  max-width: 29em;
  margin: 18px 0 0;
  padding-top: 0;
  border-top: 0;
  color: #536259;
  font-size: 16px;
}

.inner-page .hero-rich-art {
  position: relative;
  isolation: isolate;
  width: min(100%, 390px);
  padding: 14px 30px 0 34px;
  justify-self: end;
}

.inner-page .hero-rich-frame {
  position: relative;
  display: block;
  padding: 9px;
  border-radius: 999px 999px 8px 8px;
  aspect-ratio: 4 / 5;
  background: #ffffff;
  box-shadow: var(--rich-shadow);
}

.inner-page .hero-rich-frame::before {
  position: absolute;
  z-index: -1;
  inset: -14px 14px 14px -14px;
  border: 1px solid rgba(72, 100, 62, 0.42);
  border-radius: inherit;
  content: "";
}

.inner-page .hero-rich-photo {
  width: 100%;
  height: 100%;
  border-radius: 999px 999px 4px 4px;
  object-fit: cover;
}

/* Other shapes, so neighbouring pages do not open with the same silhouette. */
.inner-page .hero-leaf .hero-rich-frame {
  border-radius: 8px 150px 8px 150px;
}

.inner-page .hero-leaf .hero-rich-photo {
  border-radius: 4px 142px 4px 142px;
}

/* A portrait whose subject stands on the right: the right-hand corners stay square. */
.inner-page .hero-portrait .hero-rich-frame {
  border-radius: 150px 8px 8px 8px;
}

.inner-page .hero-portrait .hero-rich-photo {
  border-radius: 142px 4px 4px 4px;
  object-position: 92% center;
}

.inner-page .hero-rich-sprig {
  position: absolute;
  z-index: 2;
  bottom: -18px;
  left: -4px;
  width: 52px;
  height: auto;
}

.inner-page .hero-rich-note {
  position: absolute;
  top: 50%;
  right: 0;
  color: var(--inner-green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: 0.22em;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
}

.inner-page .section > .page-hero.hero-rich-plain {
  border-radius: 6px 6px 72px 6px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
}

.inner-page .hero-rich-plain .eyebrow {
  justify-content: center;
}

.inner-page .hero-rich-plain .hero-rich-copy > h1 {
  margin-inline: auto;
}

/* ---------- Product pages ---------- */
/* The product opens on a tinted band that runs the full width of the window, like the other inner pages. */
.inner-page #main > .section.product-rich {
  padding-top: 0;
}

.inner-page .product-rich > .detail-grid {
  padding-block: clamp(40px, 5.5vw, 76px);
  background: var(--rich-band);
  box-shadow: 0 0 0 100vmax var(--rich-band);
  clip-path: inset(0 -100vmax);
}

.inner-page .product-rich > .detail-grid {
  align-items: start;
}

.inner-page .product-rich .detail-visual {
  position: relative;
  min-width: 0;
}

@media (min-width: 1001px) {
  .inner-page .product-rich .detail-visual {
    position: sticky;
    top: 124px;
  }
}

.inner-page .product-rich .detail-photo {
  background: var(--rich-card);
  box-shadow: var(--rich-shadow-soft);
}

/* The round brand stamp, set on the corner of the photograph. */
.inner-page .rich-seal {
  position: absolute;
  z-index: 2;
  top: -20px;
  right: -20px;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fffefa;
  box-shadow: 0 10px 24px rgba(38, 61, 50, 0.13);
  color: #576d41;
  pointer-events: none;
}

.inner-page .rich-seal svg {
  display: block;
  width: 100%;
  height: 100%;
}

.inner-page .rich-seal text {
  fill: currentColor;
  font: 9px Georgia, "Times New Roman", serif;
  letter-spacing: 1.8px;
}

.inner-page .rich-seal-leaf {
  fill: rgba(186, 200, 151, 0.19);
  stroke: #6e8054;
  stroke-width: 1;
}

/* The catch phrase above the name breaks after 、 or 。, never inside a word or a place name. */
.inner-page .product-rich .detail-copy > .eyebrow {
  overflow-wrap: anywhere;
  text-wrap: balance;
  word-break: keep-all;
}

/* Card headings with 、・ or a space break only there; the others avoid a one-character last line. */
.inner-page .product-rich h3.has-phrases {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.inner-page .feature-card h3:not(.has-phrases),
.inner-page .enjoy-card h3:not(.has-phrases),
.inner-page .story-block h3:not(.has-phrases) {
  text-wrap: pretty;
  word-break: auto-phrase;
}

/* A numbered heading with no other break point: a browser that cannot find the word boundaries keeps the title in one piece. */
@supports not ((word-break: auto-phrase) or (text-wrap: pretty)) {
  .inner-page .product-rich h3.has-number {
    overflow-wrap: anywhere;
    word-break: keep-all;
  }
}

.inner-page .product-rich .price {
  text-wrap: balance;
}

/* The photograph of 華いちご carries white margins of its own; this frame has the shape of the picture inside them. */
.inner-page .product-hanaichigo .detail-photo img {
  max-height: none;
  aspect-ratio: 1.06;
  object-fit: cover;
}

/* The availability label needs its own ground on the tinted band. */
.inner-page .product-rich .detail-copy .badge {
  border: 1px solid var(--inner-line);
  background: var(--rich-card);
}

/* A slim link to the notice that belongs to a product. */
.inner-page .news-ribbon {
  display: flex;
  width: min(100%, 860px);
  margin: clamp(28px, 4vw, 44px) auto 0;
  padding: 14px 20px;
  border: 1px solid var(--inner-line);
  border-left: 3px solid var(--inner-accent);
  border-radius: 4px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  background: var(--rich-card);
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.inner-page .news-ribbon .news-category {
  min-width: 0;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 2px;
  font-size: 14px;
}

.inner-page .news-ribbon-title {
  min-width: 0;
  flex: 1 1 12em;
  color: var(--inner-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}

.inner-page .news-ribbon-arrow {
  color: var(--inner-green);
  margin-left: auto;
}

/* 「食の3重丸」: three marks in a row, each with its own triple ring. */
.inner-page .certification {
  margin: clamp(46px, 6vw, 72px) auto;
  padding: clamp(28px, 4.4vw, 56px) clamp(18px, 3.4vw, 44px);
  border: 1px solid var(--inner-line);
  border-radius: 4px 72px 4px 4px;
  background: var(--rich-card);
  box-shadow: var(--rich-shadow-soft);
  text-align: center;
}

.inner-page .product-rich > .certification {
  margin-bottom: 0;
}

.inner-page .certification > .eyebrow {
  margin-bottom: 14px;
  justify-content: center;
  color: var(--inner-accent);
}

.inner-page .certification > .eyebrow::after {
  width: 32px;
  height: 1px;
  background: currentColor;
  content: "";
}

.inner-page .certification h2 {
  max-width: none;
  margin: 0 auto;
  color: var(--inner-ink);
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: 0.06em;
  line-height: 1.7;
  text-wrap: balance;
  word-break: auto-phrase;
}

.inner-page .certification dl {
  display: grid;
  margin: clamp(26px, 3.4vw, 40px) 0 clamp(22px, 3vw, 34px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 26px);
}

.inner-page .certification dl > div {
  padding: 28px 12px 26px;
  border-radius: 4px;
  background: var(--inner-mist);
}

.inner-page .certification dt {
  margin: 0 0 8px;
  color: var(--inner-ink);
  font-family: var(--font-serif);
  font-size: clamp(22px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* Three rings drawn with inset shadows, so no image file is needed. */
.inner-page .certification dt::before {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border: 3px solid var(--rich-seal-red);
  border-radius: 50%;
  background: var(--inner-mist);
  box-shadow: inset 0 0 0 6px var(--inner-mist), inset 0 0 0 9px var(--rich-seal-red), inset 0 0 0 15px var(--inner-mist), inset 0 0 0 18px var(--rich-seal-red);
  content: "";
}

.inner-page .certification dd {
  max-width: 19em;
  margin: 0 auto;
  font-size: 17px;
  letter-spacing: 0.02em;
  line-height: 1.9;
  text-wrap: balance;
  word-break: auto-phrase;
}

.inner-page .certification > .text-link {
  margin-top: 0;
}

/* Bottle and gift packaging under the main photograph. */
.inner-page .pack-strip {
  display: grid;
  margin: 20px 0 0;
  grid-template-columns: repeat(2, minmax(0, 148px));
  justify-content: center;
  gap: 16px;
}

.inner-page .pack-strip figure {
  margin: 0;
}

.inner-page .pack-strip img {
  width: 100%;
  height: auto;
  padding: 8px;
  border: 1px solid var(--inner-line);
  border-radius: 4px 22px 4px 4px;
  aspect-ratio: 1;
  background: #ffffff;
  object-fit: contain;
}

.inner-page .pack-strip figcaption {
  margin-top: 6px;
  color: #536259;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.inner-page .product-rich > section,
.inner-page .product-rich > .product-gallery {
  margin-top: clamp(76px, 9.5vw, 132px);
}

/* About this product: an introduction, numbered points as cards, then notes. */
.inner-page .product-story {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 26px;
}

.inner-page .product-story > .rich-heading,
.inner-page .product-story > .story-wide,
.inner-page .product-story > .story-lead,
.inner-page .product-story > .feature-grid {
  flex: 0 0 100%;
}

.inner-page .product-story > .rich-heading {
  margin-bottom: clamp(10px, 2vw, 24px);
}

.inner-page .story-block > :first-child {
  margin-top: 0;
}

.inner-page .story-block > :last-child {
  margin-bottom: 0;
}

.inner-page .story-block h3 {
  margin: 0 0 12px;
  color: var(--inner-ink);
  font-size: clamp(20px, 2.2vw, 24px);
  letter-spacing: 0.05em;
  line-height: 1.7;
}

.inner-page .story-block p {
  margin: 0 0 0.9em;
  line-height: 2;
  text-wrap: pretty;
}

.inner-page .story-wide {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(24px, 3.4vw, 42px) clamp(22px, 4vw, 50px);
  border: 1px solid var(--inner-line);
  border-radius: 4px 48px 4px 4px;
  background: var(--rich-card);
  box-shadow: var(--rich-shadow-soft);
}

.inner-page .story-wide + .story-wide {
  margin-top: 6px;
}

.inner-page .story-lead {
  max-width: 780px;
  margin: clamp(8px, 2vw, 22px) auto 0;
  text-align: center;
}

.inner-page .story-lead h3 {
  font-size: clamp(22px, 2.6vw, 29px);
}

.inner-page .story-lead p {
  color: #425349;
}

.inner-page .feature-grid {
  display: grid;
  margin: 6px 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
  list-style: none;
}

.inner-page .feature-card {
  display: grid;
  margin: 0;
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 36px) clamp(24px, 3vw, 34px);
  border: 1px solid var(--inner-line);
  border-radius: 4px 44px 4px 4px;
  grid-template-columns: 64px minmax(0, 1fr);
  align-content: start;
  column-gap: 22px;
  background: var(--rich-card);
}

.inner-page .feature-card:nth-child(even) {
  border-radius: 44px 4px 4px 4px;
}

.inner-page .feature-icon,
.inner-page .enjoy-icon {
  display: grid;
  width: 64px;
  height: 64px;
  padding: 13px;
  border-radius: 50%;
  place-items: center;
  background: var(--inner-mist);
  color: var(--inner-green);
}

.inner-page .feature-icon {
  grid-row: 1 / span 4;
}

.inner-page .feature-card h3 {
  margin: 5px 0 10px;
  grid-column: 2;
  color: var(--inner-ink);
  font-size: clamp(19px, 2.2vw, 23px);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.inner-page .feature-card p {
  margin: 0 0 0.7em;
  grid-column: 2;
  line-height: 1.95;
  text-wrap: pretty;
}

.inner-page .feature-card p:last-child {
  margin-bottom: 0;
}

.inner-page .story-card {
  min-width: 0;
  margin-top: 10px;
  padding: clamp(24px, 3vw, 34px) clamp(22px, 3vw, 34px);
  border-top: 3px solid var(--inner-green);
  border-radius: 0 0 4px 4px;
  flex: 1 1 380px;
  background: var(--inner-mist);
}

.inner-page .story-card h3 {
  font-size: clamp(19px, 2.2vw, 23px);
}

.inner-page .story-card p {
}

.inner-page .product-rich > .product-gallery {
  display: grid;
  margin-bottom: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.inner-page .product-rich > .product-gallery img {
  width: 100%;
  height: auto;
  max-height: 620px;
  padding: 10px;
  border-radius: 4px 64px 4px 4px;
  background: #ffffff;
  box-shadow: var(--rich-shadow-soft);
  object-fit: contain;
}

/* A single photograph: the frame takes the proportions of the picture, so the white border is even on all sides. */
.inner-page .product-rich > .product-gallery img:only-child {
  width: auto;
  max-width: min(100%, 860px);
  aspect-ratio: auto;
  grid-column: 1 / -1;
  justify-self: center;
}

/* Growers and makers behind the product. */
.inner-page .maker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 290px));
  justify-content: center;
  gap: clamp(30px, 4.5vw, 60px);
}

.inner-page .maker-card {
  min-width: 0;
  text-align: center;
}

.inner-page .maker-card img {
  width: calc(100% - 18px);
  height: auto;
  border-radius: 999px 999px 4px 4px;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  outline: 1px solid var(--inner-line);
  outline-offset: 8px;
  margin: 9px auto 26px;
  display: block;
}

.inner-page .maker-card h3 {
  margin: 0 0 8px;
  color: var(--inner-ink);
  font-size: 21px;
  letter-spacing: 0.05em;
}

.inner-page .maker-card p {
  margin: 0 0 10px;
  line-height: 1.9;
  text-wrap: balance;
  word-break: auto-phrase;
}

.inner-page .maker-more,
.inner-page .enjoy-more {
  margin: clamp(30px, 4vw, 46px) 0 0;
  text-align: center;
}

/* Ways to enjoy: a tinted band that runs the full width of the window. */
.inner-page .product-enjoy {
  padding-block: clamp(64px, 8vw, 108px);
  background: var(--inner-mist);
  box-shadow: 0 0 0 100vmax var(--inner-mist);
  clip-path: inset(0 -100vmax);
}

.inner-page .enjoy-lead {
  max-width: 780px;
  margin: -14px auto clamp(30px, 4vw, 46px);
  text-align: center;
}

.inner-page .enjoy-lead p {
  margin: 0;
  line-height: 2;
}

.inner-page .enjoy-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.inner-page .enjoy-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border-radius: 4px;
  background: var(--rich-card);
  box-shadow: var(--rich-shadow-soft);
}

.inner-page .enjoy-copy {
  min-width: 0;
}

.inner-page .enjoy-card h3 {
  margin: 0 0 10px;
  color: var(--inner-ink);
  font-size: clamp(19px, 2.2vw, 23px);
  letter-spacing: 0.04em;
  line-height: 1.65;
  word-break: auto-phrase;
}

.inner-page .enjoy-card p {
  margin: 0 0 0.7em;
  line-height: 1.95;
  text-wrap: pretty;
}

.inner-page .enjoy-card p:last-child {
  margin-bottom: 0;
}

/*
 * The cards follow the order of the text. Cards of one kind that follow one another share rows:
 * in-row-3, in-row-2 and in-row-1 say how many stand in a card's row (gh_enjoy_row_sizes in app/inner-pages.php).
 */
.inner-page .enjoy-card.has-photo {
  border-radius: 4px 52px 4px 4px;
  grid-column: span 2;
  flex-direction: column;
}

.inner-page .enjoy-card.has-photo .enjoy-media {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--inner-mist);
}

/* Several of the photographs carry white margins of their own; a portrait frame and a slight zoom crop them away. */
.inner-page .enjoy-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 650ms ease;
}

.inner-page .enjoy-card.has-photo .enjoy-copy {
  padding: 24px 26px 28px;
}

/* One or two photographs in a row: the picture stands beside the text. */
.inner-page .enjoy-card.has-photo.in-row-1,
.inner-page .enjoy-card.has-photo.in-row-2 {
  grid-column: span 3;
  flex-direction: row;
}

.inner-page .enjoy-card.has-photo.in-row-1 {
  grid-column: 1 / -1;
}

.inner-page .enjoy-card.has-photo.in-row-1 .enjoy-media,
.inner-page .enjoy-card.has-photo.in-row-2 .enjoy-media {
  flex: 0 0 42%;
}

.inner-page .enjoy-card.has-photo.in-row-1 .enjoy-media {
  flex-basis: min(34%, 300px);
}

.inner-page .enjoy-card.has-photo.in-row-1 .enjoy-copy,
.inner-page .enjoy-card.has-photo.in-row-2 .enjoy-copy {
  align-self: center;
  padding: clamp(22px, 2.8vw, 34px);
}

.inner-page .enjoy-card.is-step {
  padding: 30px 28px;
  border-top: 3px solid var(--inner-accent);
  border-radius: 0 0 4px 4px;
  grid-column: span 2;
  flex-direction: column;
  align-items: flex-start;
}

.inner-page .enjoy-card.is-step.in-row-2 {
  grid-column: span 3;
}

.inner-page .enjoy-card.is-step.in-row-1 {
  grid-column: 1 / -1;
}

.inner-page .enjoy-card.is-step .enjoy-media {
  margin-bottom: 18px;
}

.inner-page .enjoy-card.is-step .enjoy-icon {
  background: var(--rich-blush);
  color: var(--inner-accent);
}

.inner-page .enjoy-card.is-tip {
  padding: 26px 28px;
  grid-column: span 3;
  align-items: flex-start;
  gap: 20px;
}

.inner-page .enjoy-card.is-tip.in-row-1 {
  grid-column: 1 / -1;
}

.inner-page .enjoy-card.is-tip.in-row-3 {
  grid-column: span 2;
  flex-direction: column;
}

.inner-page .enjoy-card.is-tip .enjoy-media {
  flex: 0 0 auto;
}

.inner-page .enjoy-card.is-tip .enjoy-copy {
  flex: 1;
}

.inner-page .enjoy-note {
  max-width: 860px;
  margin: clamp(26px, 3.4vw, 40px) auto 0;
  padding: 14px 20px;
  border-left: 3px solid var(--inner-accent);
  background: rgba(255, 254, 251, 0.72);
}

.inner-page .enjoy-note p {
  margin: 0;
  line-height: 1.9;
}

/* Customer voices as a small wall of notes. */
.inner-page .product-rich > .product-voices {
  padding-top: 0;
  border-top: 0;
}

.inner-page .voice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}

.inner-page .product-voices .voice-grid blockquote {
  position: relative;
  display: block;
  margin: 0;
  padding: 48px 28px 26px;
  border: 1px solid var(--inner-line);
  border-radius: 4px 36px 4px 4px;
  background: var(--rich-card);
  color: var(--inner-ink);
  font-family: var(--font-serif);
}

.inner-page .product-voices .voice-grid blockquote:nth-child(even) {
  border-radius: 36px 4px 4px 4px;
  background: var(--rich-cream);
}

.inner-page .product-voices .voice-grid blockquote::before {
  position: absolute;
  top: 14px;
  left: 22px;
  color: rgba(154, 98, 73, 0.45);
  content: "\201C";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  line-height: 1;
}

.inner-page .product-voices .voice-grid blockquote p {
  margin: 0;
  line-height: 1.95;
}

/* Three to a row. When the last row holds two voices or one, it is centred instead of leaving an empty place. */
@media (min-width: 900px) {
  .inner-page .voice-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .inner-page .product-voices .voice-grid blockquote {
    grid-column: span 2;
  }

  .inner-page .product-voices .voice-grid blockquote:nth-last-child(2):nth-child(3n + 1) {
    grid-column: 2 / span 2;
  }

  .inner-page .product-voices .voice-grid blockquote:last-child:nth-child(3n + 1) {
    grid-column: 3 / span 2;
  }
}

/* Other products, so a product page never ends in a dead end. */
.inner-page .product-rich > .product-more {
  padding-top: clamp(56px, 7vw, 92px);
  border-top: 1px solid var(--inner-line);
}

.inner-page .more-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.inner-page .more-grid .product-card {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--inner-line);
  border-radius: 4px 36px 4px 4px;
  flex-direction: column;
  background: var(--rich-card);
}

.inner-page .more-grid .product-image {
  aspect-ratio: 1;
}

/* A slight zoom keeps the white edge that some product photographs carry out of the square frame. */
.inner-page .more-grid .product-image img,
.inner-page .more-grid .product-card:hover .product-image img {
  transform: scale(1.06);
}

.inner-page .more-grid .product-body {
  display: flex;
  padding: 20px 20px 22px;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
}

.inner-page .more-grid .product-body > p:not(.product-kicker) {
  display: none;
}

.inner-page .more-grid .product-kicker {
  margin: 0 0 6px;
  font-size: 15px;
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.inner-page .more-grid h3 {
  margin: 0 0 10px;
  font-size: 21px;
}

.inner-page .more-grid .badge {
  margin-bottom: 12px;
  font-size: 14px;
  border-radius: 14px;
  line-height: 1.5;
  text-wrap: balance;
}

.inner-page .more-grid .text-link {
  margin-top: auto;
  font-size: 16px;
}

/* ---------- Notices: cards with a photograph, and the article page ---------- */
.inner-page .news-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.8vw, 34px);
}

.inner-page .news-cards:not(.has-lead) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inner-page .news-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--inner-line);
  border-radius: 4px 40px 4px 4px;
  flex-direction: column;
  background: var(--rich-card);
  color: inherit;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.inner-page .news-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--inner-mist);
}

.inner-page .news-thumb-plate {
  position: absolute;
  display: flex;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--inner-green);
  font-family: Georgia, "Times New Roman", serif;
}

.inner-page .news-thumb-year {
  font-size: 14px;
  letter-spacing: 0.32em;
}

.inner-page .news-thumb-day {
  color: var(--inner-ink);
  font-size: clamp(34px, 3.6vw, 46px);
  letter-spacing: 0.06em;
  line-height: 1.15;
}

.inner-page .news-thumb-sprig {
  position: absolute;
  right: 8%;
  bottom: -8%;
  width: 20%;
  height: auto;
  opacity: 0.75;
  transform: rotate(8deg);
}

.inner-page .news-thumb-photo {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  background: var(--inner-mist);
  object-fit: cover;
  transition: transform 650ms ease;
}

.inner-page .news-card-body {
  position: relative;
  display: flex;
  padding: 20px 22px 24px;
  flex: 1;
  flex-direction: column;
}

.inner-page .news-card-meta {
  display: flex;
  margin: 0 0 10px;
  align-items: center;
  gap: 12px;
}

.inner-page .news-card-meta .news-category {
  min-width: 0;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 2px;
  font-size: 14px;
}

.inner-page .news-card-title {
  margin: 0;
  padding-right: 28px;
  color: var(--inner-ink);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.8;
}

.inner-page .news-card-arrow {
  position: absolute;
  right: 20px;
  bottom: 18px;
  color: var(--inner-green);
}

.inner-page .journal-page .pagination {
  margin-top: clamp(44px, 6vw, 68px);
}

.inner-page .article-detail .page-hero.article-hero {
  display: block;
  width: min(100%, 860px);
  max-width: 860px;
  margin: 0 auto clamp(34px, 5vw, 54px);
  padding: clamp(14px, 3vw, 34px) 0 0;
  border: 0;
  background: transparent;
  text-align: center;
}

.inner-page .article-hero > .eyebrow {
  margin-bottom: 20px;
  justify-content: center;
  color: var(--inner-accent);
}

.inner-page .article-hero > .eyebrow time {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.inner-page .article-detail .page-hero.article-hero > h1 {
  max-width: 24em;
  margin: 0 auto;
  font-size: clamp(26px, 3.2vw, 40px);
  letter-spacing: 0.05em;
  line-height: 1.7;
  text-wrap: balance;
}

.inner-page .article-paper {
  width: min(100%, 860px);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 68px) clamp(20px, 6vw, 80px) clamp(30px, 5vw, 60px);
  border: 1px solid var(--inner-line);
  border-radius: 4px 72px 4px 4px;
  background: var(--rich-card);
  box-shadow: var(--rich-shadow-soft);
}

.inner-page .article-paper > .prose {
  max-width: none;
}

.inner-page .article-paper .prose > p {
  line-height: 2.15;
}

.inner-page .article-paper .archive-notice {
  display: flex;
  margin: 0 0 clamp(26px, 4vw, 40px);
  padding: 14px 18px;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 14px;
  line-height: 1.8;
}

.inner-page .article-paper .article-gallery img {
  padding: 8px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: var(--rich-shadow-soft);
}

.inner-page .article-paper .article-gallery img:only-child {
  max-width: 640px;
  grid-column: 1 / -1;
  justify-self: center;
}

.inner-page .article-paper .prose > .text-link {
  margin-top: clamp(28px, 4vw, 44px);
}

.inner-page .article-related {
  width: min(100%, 1120px);
  margin: clamp(56px, 7vw, 92px) auto 0;
  padding-top: clamp(44px, 6vw, 72px);
  border-top: 1px solid var(--inner-line);
}

.inner-page .article-related-product {
  margin: 16px 0 0;
  text-align: center;
}

.inner-page .article-nav {
  display: grid;
  width: min(100%, 860px);
  margin: clamp(28px, 4vw, 44px) auto 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.inner-page .article-nav-link {
  display: flex;
  min-width: 0;
  min-height: 104px;
  padding: 18px 22px;
  border: 1px solid var(--inner-line);
  border-radius: 4px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  transition: background-color var(--transition), border-color var(--transition);
}

.inner-page .article-nav-link.is-newer {
  align-items: flex-end;
  text-align: right;
}

.inner-page .article-nav-link:only-child {
  grid-column: 1 / -1;
}

.inner-page .article-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--inner-green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.inner-page .article-nav-link.is-older .article-nav-label::before {
  content: "\2190";
}

.inner-page .article-nav-link.is-newer .article-nav-label::after {
  content: "\2192";
}

/* The title of the neighbouring notice is shown in full, however long it is. */
.inner-page .article-nav-title {
  display: block;
  color: var(--inner-ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

/* ---------- About: photographs between the story and the history ---------- */
.inner-page .story-band {
  display: grid;
  margin-top: clamp(64px, 8vw, 110px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(14px, 3vw, 40px);
}

.inner-page .story-band img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.inner-page .story-band img:nth-child(1) {
  border-radius: 999px 999px 4px 4px;
}

.inner-page .story-band img:nth-child(2) {
  margin-top: clamp(22px, 5vw, 64px);
  border-radius: 4px;
}

.inner-page .story-band img:nth-child(3) {
  border-radius: 4px 4px 999px 999px;
}

.inner-page .story-about .history-timeline {
  margin-top: clamp(72px, 9vw, 124px);
}

.inner-page .history-timeline > .rich-heading {
  margin-bottom: clamp(18px, 2.4vw, 28px);
}

.inner-page .history-timeline > .rich-heading .eyebrow {
  font-size: 14px;
  letter-spacing: 0.17em;
  line-height: 1.5;
}

.inner-page .history-timeline > .rich-heading h2 {
  margin: 0;
  font-size: clamp(27px, 3.1vw, 38px);
}

/* The portrait keeps the reader company while the story scrolls past. */
@media (min-width: 1001px) {
  .inner-page .story-about .history-introduction > .detail-photo {
    position: sticky;
    top: 124px;
  }
}

.inner-page .history-timeline .history-nav {
  margin: 0 0 clamp(34px, 4.6vw, 54px);
  justify-content: center;
}

.inner-page .history-timeline .history-nav a {
  border-color: rgba(72, 100, 62, 0.5);
  border-radius: 999px;
  background: var(--rich-card);
  text-decoration: none;
}

.inner-page .history-timeline .history-highlights {
  counter-reset: highlight;
}

.inner-page .history-timeline .history-highlights li {
  padding: 22px 24px 24px;
  border: 1px solid var(--inner-line);
  border-left: 3px solid var(--inner-green);
  border-radius: 4px 28px 4px 4px;
  background: var(--rich-card);
  counter-increment: highlight;
}

.inner-page .history-timeline .history-highlights li::before {
  display: block;
  margin-bottom: 6px;
  color: var(--inner-accent);
  content: counter(highlight, decimal-leading-zero);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  letter-spacing: 0.16em;
}

.inner-page .history-timeline .history-year {
  position: relative;
  margin: 0;
  padding: 30px 0 8px 36px;
  color: var(--inner-ink);
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.1vw, 24px);
  letter-spacing: 0.05em;
}

.inner-page .history-timeline .history-year::before {
  position: absolute;
  top: calc(30px + 0.62em);
  left: 0;
  width: 15px;
  height: 15px;
  border: 3px solid var(--inner-green);
  border-radius: 50%;
  background: var(--inner-paper);
  content: "";
}

.inner-page .history-timeline .history-year::after {
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 1px;
  background: var(--inner-line);
  content: "";
}

.inner-page .history-timeline .history-group {
  position: relative;
  isolation: isolate;
}

.inner-page .history-timeline .history-events,
.inner-page .history-timeline .history-year + p {
  margin: 0 0 0 7px;
  padding: 2px 0 6px 28px;
  border-left: 1px solid var(--inner-line);
  list-style: none;
}

.inner-page .history-timeline .history-events li {
  position: relative;
  margin: 0;
  padding: 9px 0;
}

.inner-page .history-timeline .history-events li::before {
  position: absolute;
  top: calc(9px + 0.95em);
  left: -32px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--inner-accent);
  content: "";
}

.inner-page .story-about .history-partners {
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
}

/* ---------- Story pages (むつこの部屋 ほか) ---------- */
.inner-page .story-body {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  justify-content: center;
}

.inner-page .story-body.has-aside {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  align-items: start;
  justify-content: stretch;
  gap: clamp(34px, 6vw, 84px);
}

.inner-page .story-body > .prose {
  max-width: none;
}

.inner-page .story-body > .prose > p:first-child {
  color: var(--inner-ink);
  font-family: var(--font-serif);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 2;
}

.inner-page .story-aside {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3.4vw, 40px) clamp(24px, 3vw, 36px);
  border-radius: 4px 56px 4px 4px;
  background: var(--rich-blush);
}

.inner-page .story-aside-sprig {
  position: absolute;
  top: 16px;
  right: 22px;
  width: 44px;
  height: auto;
  opacity: 0.85;
}

.inner-page .story-aside .eyebrow {
  margin-bottom: 10px;
  color: var(--inner-accent);
}

.inner-page .story-aside h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.inner-page .story-aside p:not(.eyebrow) {
  margin: 0 0 0.8em;
  line-height: 1.9;
}

.inner-page .story-aside .phone-link {
  margin-top: 6px;
  font-size: clamp(28px, 3vw, 36px);
}

/* ---------- Partners ---------- */
.inner-page .partners-page .community-grid {
  gap: clamp(34px, 4.4vw, 58px) clamp(22px, 3.4vw, 44px);
}

.inner-page .partners-page .community-grid .scene-card {
  padding-bottom: 26px;
  text-align: center;
}

.inner-page .partners-page .community-grid .scene-card img {
  height: auto;
  border-radius: 999px 999px 4px 4px;
  aspect-ratio: 5 / 6;
  outline: 1px solid var(--inner-line);
  outline-offset: 8px;
  width: calc(100% - 18px);
  margin: 9px auto 28px;
  display: block;
}

.inner-page .partners-page .community-grid .scene-card h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2vw, 23px);
  letter-spacing: 0.05em;
}

.inner-page .partners-page .community-grid .scene-card p {
  text-wrap: balance;
  word-break: auto-phrase;
}

.inner-page .partners-page > .news-ribbon {
  margin-top: clamp(34px, 4.4vw, 52px);
}

.inner-page .partners-page .section-heading.small {
  margin-top: clamp(84px, 10vw, 132px);
  text-align: center;
}

.inner-page .partners-page .partner-heading .rich-heading {
  margin-bottom: 18px;
}

.inner-page .partners-page .partner-heading h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(27px, 3.1vw, 38px);
}

.inner-page .partners-page .partner-heading > p {
  max-width: 34em;
  margin: 0 auto;
  color: #425349;
  text-wrap: balance;
}

.inner-page .partner-pin {
  position: absolute;
  top: 22px;
  right: 22px;
  display: block;
  width: 38px;
  height: 38px;
  padding: 8px;
  border-radius: 50%;
  background: var(--inner-mist);
  color: var(--inner-green);
}

.inner-page .partner-pin svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.inner-page .partners-page .partner-card h3 {
  margin: 0 0 12px;
  color: var(--inner-ink);
  font-size: 23px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.inner-page .partners-page .partner-card .partner-note {
  margin: 0 0 12px;
  padding: 4px 12px;
  border-radius: 14px;
  align-self: flex-start;
  background: var(--inner-mist);
  color: var(--inner-ink);
  font-size: 17px;
  line-height: 1.7;
}


.inner-page .partners-page .partner-grid {
  gap: clamp(16px, 2vw, 24px);
}

/* One sentence about the shop, in the size of the page (18px, 17px on small screens). */
.inner-page .partners-page .partner-card .partner-about {
  margin: 0 0 14px;
  font-size: inherit;
  line-height: 1.85;
  text-wrap: pretty;
  word-break: auto-phrase;
}

/*
 * A card with a photograph: the text on the left, the photograph on the right (it comes last in the page,
 * after the text). Cards without a photograph keep the map pin in the corner.
 */
.inner-page .partners-page .partner-card.has-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  column-gap: 22px;
  align-content: start;
}

.inner-page .partners-page .partner-card.has-photo > * {
  grid-column: 1;
  justify-self: start;
}

.inner-page .partners-page .partner-card.has-photo > .partner-photo {
  grid-column: 2;
  grid-row: 1 / span 6;
  justify-self: stretch;
  align-self: start;
}

.inner-page .partner-photo {
  display: block;
  overflow: hidden;
  border-radius: 4px 22px 4px 4px;
  aspect-ratio: 3 / 4;
  background: var(--inner-mist);
  box-shadow: var(--rich-shadow-soft);
}

.inner-page .partner-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The mark of Green Harmony stands in where there is no photograph: shown whole on white, not cropped. */
.inner-page .partner-photo.is-mark {
  background: #ffffff;
}

.inner-page .partner-photo.is-mark img {
  padding: 12px;
  object-fit: contain;
}

/* The marks a product carries, under its facts, in the size they were supplied in. */
.inner-page .product-marks {
  display: flex;
  margin: 24px 0 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

/* Shown as large as the files are; a larger file supplied later is held to the same height. */
.inner-page .product-marks .product-mark {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 92px;
  border-radius: 7px;
}

.inner-page .partners-page .partner-card {
  position: relative;
  min-height: 172px;
  padding: 32px 26px 24px;
  border-color: var(--inner-line);
  border-radius: 4px 30px 4px 4px;
  justify-content: flex-start;
  background: var(--rich-card);
}

.inner-page .partners-page .partner-card::before {
  position: absolute;
  top: 0;
  left: 26px;
  width: 44px;
  height: 3px;
  background: var(--inner-green);
  content: "";
}

.inner-page .partners-page .partner-card .eyebrow {
  margin-bottom: 8px;
  padding-right: 44px;
  color: var(--inner-accent);
  letter-spacing: 0.1em;
}

.inner-page .partners-page .partner-card .eyebrow::before {
  content: none;
}

.inner-page .partners-page .partner-card .text-link {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- Contact ---------- */
.inner-page .contact-page .contact-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
  gap: clamp(20px, 3vw, 34px);
}

.inner-page .contact-page .contact-info {
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3.6vw, 40px);
  border: 0;
  border-radius: 4px 60px 4px 4px;
  background: var(--inner-ink);
  color: #edf1e8;
}

.inner-page .contact-page .contact-info p {
  margin: 0 0 10px;
  color: #dfe7d6;
}

.inner-page .contact-page .contact-info .phone-link {
  margin-bottom: 18px;
  color: #ffffff;
  text-decoration: none;
}

.inner-page .contact-page .contact-info .text-link {
  margin-top: 12px;
  color: #ffffff;
  text-decoration: none;
}

.inner-page .contact-page .contact-info .text-link::before {
  background: rgba(255, 255, 255, 0.7);
}

.inner-page .contact-page .contact-info :focus-visible {
  outline-color: #ffffff;
}

.inner-page .contact-page .contact-grid > .prose {
  max-width: none;
  padding: clamp(28px, 4vw, 44px) clamp(24px, 3.6vw, 40px);
  border: 1px solid var(--inner-line);
  border-radius: 4px;
  background: var(--rich-card);
}

.inner-page .contact-page .contact-grid > .prose h2 {
  margin-top: 0;
  font-size: clamp(22px, 2.4vw, 27px);
}

.inner-page .contact-page .contact-grid > .prose p {
}

.inner-page .contact-page .contact-form-wrap {
  max-width: 860px;
  margin-top: clamp(56px, 7vw, 88px);
  padding: clamp(26px, 5vw, 56px) clamp(20px, 5vw, 60px);
  border: 1px solid var(--inner-line);
  border-radius: 4px 4px 72px 4px;
  background: var(--rich-card);
  box-shadow: var(--rich-shadow-soft);
}

.inner-page .contact-page .contact-form-wrap > h2 {
  margin-top: 0;
}

/* The two photographs under the scenes carry margins of their own; a square frame crops them away. */
.inner-page .scene-section .detail-gallery img {
  aspect-ratio: 1;
}

.inner-page .scene-section .scene-card img {
  aspect-ratio: 3 / 4;
}

.inner-page .scene-section .section > .prose {
  text-align: center;
}

/* ---------- Search, English pages ---------- */
.inner-page .section > .site-search {
  max-width: 780px;
  margin: 0 auto 36px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--inner-line);
  border-radius: 4px 36px 4px 4px;
  background: var(--rich-card);
}

.inner-page .section > .site-search ~ p,
.inner-page .section > .search-results {
  max-width: 780px;
}

.inner-page .english-directory {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 36px);
}

.inner-page .english-card {
  overflow: hidden;
  padding-bottom: 22px;
  border: 1px solid var(--inner-line);
  border-radius: 4px 40px 4px 4px;
  gap: 0;
  background: var(--rich-card);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.inner-page .english-card img {
  aspect-ratio: 1;
}

.inner-page .english-card h2 {
  padding: 20px 22px 0;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.5;
}

.inner-page .english-card > span {
  padding: 14px 22px 0;
}

/* The older English product pages: frame the photograph the way the Japanese product pages do. */
.inner-page .english-page .detail-photo {
  padding: clamp(12px, 2vw, 22px);
  border-radius: 96px 2px 2px 2px;
  aspect-ratio: auto;
  background: var(--inner-mist);
}

.inner-page .english-page .detail-photo img {
  width: 100%;
  height: auto;
}

/* ---------- Gentle movement, only where a pointer can hover ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .inner-page .news-card:hover,
  .inner-page .english-card:hover {
    border-color: rgba(72, 100, 62, 0.5);
    box-shadow: var(--rich-shadow);
    transform: translateY(-3px);
  }

  .inner-page .news-card:hover .news-thumb-photo {
    transform: scale(1.04);
  }

  .inner-page .enjoy-card:hover .enjoy-photo,
  .inner-page .more-grid .product-card:hover .product-image img {
    transform: scale(1.1);
  }

  .inner-page .article-nav-link:hover {
    border-color: var(--inner-green);
    background: var(--inner-mist);
  }

  .inner-page .news-ribbon:hover {
    border-color: rgba(72, 100, 62, 0.5);
    border-left-color: var(--inner-accent);
    box-shadow: var(--rich-shadow-soft);
  }
}

/* Shops: two to a row where a card is wide enough for a sentence, a note on one line and a small photograph; an odd last card sits in the middle. */
@media (min-width: 1120px) {
  .inner-page .partners-page .partner-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .inner-page .partners-page .partner-card {
    grid-column: span 2;
  }

  .inner-page .partners-page .partner-card:last-child:nth-child(odd) {
    grid-column: 2 / span 2;
  }
}

@media (max-width: 1119px) {
  .inner-page .partners-page .partner-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .inner-page .partners-page .partner-card,
  .inner-page .partners-page .partner-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Phones: the photograph stands beside the place and the name; the sentence, the note, the telephone number and the link use the full width below. */
@media (max-width: 560px) {
  .inner-page .partners-page .partner-card.has-photo {
    grid-template-columns: minmax(0, 1fr) 84px;
    column-gap: 14px;
  }

  .inner-page .partners-page .partner-card.has-photo > .partner-photo {
    grid-row: 1 / span 2;
  }

  .inner-page .partners-page .partner-card.has-photo > h3 ~ * {
    grid-column: 1 / -1;
  }

  .inner-page .partners-page .partner-card.has-photo > h3 ~ .partner-photo {
    grid-column: 2;
  }

  .inner-page .partners-page .partner-card.has-photo > h3 {
    margin-bottom: 16px;
  }

  /* The longest note (商品・在庫をお問い合わせください) stays on one line. */
  .inner-page .partners-page .partner-card .partner-note {
    padding-right: 10px;
    padding-left: 10px;
    letter-spacing: 0.01em;
  }
}

/* ---------- Wide screens: the newest notice leads the list ---------- */
@media (min-width: 900px) {
  .inner-page .news-cards.has-lead .news-card.is-lead {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
  }

  .inner-page .news-card.is-lead .news-thumb {
    min-height: 320px;
    flex: 1;
    aspect-ratio: auto;
  }

  .inner-page .news-card.is-lead .news-card-body {
    padding: 26px 30px 30px;
    flex: 0 0 auto;
  }

  .inner-page .news-card.is-lead .news-card-title {
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.3vw, 28px);
    letter-spacing: 0.05em;
    line-height: 1.65;
  }

  .inner-page .news-card.is-lead .news-thumb-year {
    font-size: 17px;
  }

  .inner-page .news-card.is-lead .news-thumb-day {
    font-size: clamp(60px, 6.4vw, 88px);
  }

  .inner-page .news-card.is-lead .news-thumb-sprig {
    width: 14%;
  }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1000px) {
  .inner-page .pack-strip {
    max-width: 620px;
  }

  .inner-page .more-grid,
  .inner-page .english-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .inner-page .news-cards,
  .inner-page .news-cards:not(.has-lead),
  .inner-page .voice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-page .news-cards.has-lead .news-card.is-lead {
    grid-column: 1 / -1;
  }

  .inner-page .news-card.is-lead .news-thumb {
    aspect-ratio: 16 / 9;
  }

  .inner-page .section > .page-hero.hero-rich,
  .inner-page .scene-section .page-hero.hero-rich {
    grid-template-columns: minmax(0, 1.2fr) minmax(210px, 0.8fr);
  }

  .inner-page .section > .page-hero.hero-rich-plain {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .inner-page .section > .page-hero.hero-rich,
  .inner-page .scene-section .page-hero.hero-rich {
    display: grid;
    margin-bottom: 52px;
    padding: 30px 22px 38px;
    border-radius: 4px 4px 64px 4px;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 34px;
  }

  .inner-page .hero-rich-copy > .eyebrow {
    margin-bottom: 16px;
  }

  .inner-page .hero-rich-copy > h1 {
    font-size: clamp(29px, 7.6vw, 40px);
    letter-spacing: 0.035em;
    line-height: 1.55;
  }

  .inner-page .hero-rich-lead {
    margin-top: 20px;
    padding-top: 18px;
  }

  .inner-page .hero-rich-art {
    width: min(100%, 300px);
    padding: 14px 26px 0 30px;
    justify-self: center;
  }

  .inner-page .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .inner-page .feature-card,
  .inner-page .feature-card:nth-child(even) {
    border-radius: 4px 36px 4px 4px;
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 16px;
  }

  .inner-page .feature-icon,
  .inner-page .enjoy-icon {
    width: 54px;
    height: 54px;
    padding: 11px;
  }

  .inner-page .story-body.has-aside,
  .inner-page .contact-page .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .inner-page .article-paper {
    border-radius: 4px 44px 4px 4px;
  }

  .inner-page .rich-seal {
    top: -14px;
    right: -6px;
    width: 78px;
    height: 78px;
  }

  .inner-page .certification {
    border-radius: 4px 44px 4px 4px;
  }

  .inner-page .certification dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .inner-page .certification dl > div {
    position: relative;
    padding: 20px 18px 20px 96px;
    text-align: left;
  }

  .inner-page .certification dt::before {
    position: absolute;
    top: 50%;
    left: 18px;
    margin: -29px 0 0;
  }

  .inner-page .certification dd {
    max-width: none;
    margin: 0;
  }

  .inner-page .article-nav-link {
    min-height: 0;
    padding: 14px 16px;
  }

  .inner-page .history-timeline .history-year {
    padding-left: 32px;
  }
}

/* Tablets: three cards in a row would leave each too narrow to read, so they stand one under another. */
@media (max-width: 899px) {
  .inner-page .enjoy-grid .enjoy-card.in-row-3 {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .inner-page .enjoy-grid .enjoy-card.has-photo.in-row-3 .enjoy-media {
    flex: 0 0 min(34%, 300px);
  }

  .inner-page .enjoy-grid .enjoy-card.has-photo.in-row-3 .enjoy-copy {
    align-self: center;
  }

  .inner-page .enjoy-grid .enjoy-card.is-step.in-row-3,
  .inner-page .enjoy-grid .enjoy-card.is-tip.in-row-3 {
    gap: 16px;
  }

  .inner-page .enjoy-grid .enjoy-card.is-step.in-row-3 .enjoy-media {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .inner-page .enjoy-grid .enjoy-card.is-step.in-row-3 .enjoy-copy {
    flex: 1;
  }
}

@media (max-width: 699px) {
  .inner-page .enjoy-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .inner-page .enjoy-grid .enjoy-card.has-photo,
  .inner-page .enjoy-grid .enjoy-card.is-step,
  .inner-page .enjoy-grid .enjoy-card.is-tip {
    grid-column: 1 / -1;
  }

  .inner-page .enjoy-grid .enjoy-card.has-photo {
    border-radius: 4px 36px 4px 4px;
    flex-direction: row;
  }

  .inner-page .enjoy-grid .enjoy-card.has-photo .enjoy-media {
    flex: 0 0 38%;
  }

  .inner-page .enjoy-grid .enjoy-card.has-photo .enjoy-copy {
    align-self: center;
    padding: 18px 18px 20px;
  }

  .inner-page .enjoy-card.is-step,
  .inner-page .enjoy-card.is-tip.in-row-3 {
    padding: 22px 20px;
    flex-direction: row;
    gap: 16px;
  }

  .inner-page .enjoy-card.is-tip {
    padding: 22px 20px;
    gap: 16px;
  }

  .inner-page .enjoy-card.is-step .enjoy-media {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  .inner-page .enjoy-card.is-step .enjoy-copy {
    flex: 1;
  }

  .inner-page .product-rich > .product-gallery {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .inner-page .news-cards,
  .inner-page .news-cards:not(.has-lead),
  .inner-page .english-directory {
    grid-template-columns: minmax(0, 1fr);
  }

  .inner-page .news-thumb,
  .inner-page .news-card.is-lead .news-thumb {
    aspect-ratio: 16 / 10;
  }

  /* A notice without a photograph only needs a slim date plate on a phone. */
  .inner-page .news-card.no-photo .news-thumb,
  .inner-page .news-card.no-photo.is-lead .news-thumb {
    aspect-ratio: 3 / 1;
  }

  .inner-page .news-card.no-photo .news-thumb-day {
    font-size: 30px;
  }

  /* Makers: a small arched photograph beside the text keeps the page short on a phone. */
  .inner-page .maker-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .inner-page .maker-card {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: start;
    column-gap: 20px;
    text-align: left;
  }

  .inner-page .maker-card img {
    width: calc(100% - 12px);
    margin: 6px;
    grid-row: 1 / span 3;
    outline-offset: 5px;
  }

  .inner-page .pack-strip {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inner-page .maker-card h3 {
    font-size: 19px;
  }

  .inner-page .more-grid {
    gap: 14px;
  }

  .inner-page .more-grid .product-body {
    padding: 16px 14px 18px;
  }

  .inner-page .more-grid h3 {
    font-size: 18px;
  }

  /* Two narrow cards side by side: the photograph and the name already lead to the product, so the text link is left out. */
  .inner-page .more-grid .text-link {
    display: none;
  }

  /* The line above the name is shown in full here, and 「セイカのおもてなし」 keeps to one line. */
  .inner-page .more-grid .product-kicker {
    display: block;
    letter-spacing: 0.02em;
  }

  .inner-page .more-grid .badge {
    margin-bottom: 0;
    padding-right: 10px;
    padding-left: 10px;
    letter-spacing: 0.02em;
  }

  /* On a phone the mark sits above the heading, so the heading and the text use the full width of the card. */
  .inner-page .feature-card,
  .inner-page .feature-card:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
  }

  .inner-page .feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    padding: 10px;
    grid-row: auto;
  }

  .inner-page .feature-card h3,
  .inner-page .feature-card p {
    grid-column: 1;
  }

  .inner-page .voice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .inner-page .article-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .inner-page .story-band {
    gap: 10px;
  }
}

@media (max-width: 390px) {
  .inner-page .section > .page-hero.hero-rich,
  .inner-page .scene-section .page-hero.hero-rich {
    padding: 26px 18px 34px;
  }

  .inner-page .hero-rich-copy > h1 {
    font-size: 28px;
  }
}

/* Small phones: the English label above a heading stays on one line, and the paired cards get a little more room. */
@media (max-width: 380px) {
  .inner-page .rich-heading .eyebrow {
    gap: 8px;
    letter-spacing: 0.1em;
  }

  .inner-page .rich-heading .eyebrow::before,
  .inner-page .rich-heading .eyebrow::after {
    width: 18px;
  }

  .inner-page .more-grid .product-body {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 340px) {
  .inner-page .more-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .inner-page .news-card,
  .inner-page .english-card,
  .inner-page .news-thumb-photo,
  .inner-page .enjoy-photo {
    transition: none;
  }
}

@media print {
  .inner-page .product-enjoy,
  .inner-page .product-rich > .detail-grid {
    box-shadow: none;
    clip-path: none;
  }

  .inner-page .product-rich .detail-visual {
    position: static;
  }

  .inner-page .hero-rich-art,
  .inner-page .news-thumb-sprig {
    display: none;
  }
}
