.restaurant-feature {
  --photo-gap: clamp(6px, 1vw, 14px);
  padding-bottom: clamp(56px, 8vw, 112px);
}

.restaurant-feature .article-title {
  max-width: 90%;
  text-align: center;
  padding-inline: 0;
}

.restaurant-feature .article-title > .article-credits {
  justify-content: center;
  text-align: center;
}

.restaurant-feature .title-phrase {
  white-space: nowrap;
}

.restaurant-cover {
  width: min(100%, 1280px);
  margin: 0 auto;
}

/* Keep Seiju's supplied landscape opening intact at every screen size. */
body.immersive-article .article-opening.restaurant-source-cover {
  height: auto;
}

body.immersive-article .article-opening.restaurant-source-cover img {
  height: auto !important;
  object-fit: contain;
}

.restaurant-cover img,
.restaurant-pair img,
.restaurant-close img {
  width: 100%;
}

.restaurant-feature .restaurant-copy {
  margin: 0 auto clamp(42px, 5vw, 76px);
}

.restaurant-copy p:last-child {
  margin-bottom: 0;
}

.restaurant-feature .restaurant-photo-chapter {
  margin-top: clamp(48px, 6vw, 88px);
  margin-bottom: clamp(22px, 3vw, 40px);
}

.restaurant-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--photo-gap);
  width: min(calc(100% - 48px), 1040px);
  margin: 0 auto;
}

.restaurant-pair.restaurant-cover {
  width: min(100%, 1280px);
}

.restaurant-gallery img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.restaurant-gallery + .restaurant-gallery {
  margin-top: clamp(16px, 2vw, 32px);
}

.restaurant-gallery + .restaurant-copy-continued,
.restaurant-gallery + .restaurant-copy-before-meal,
.restaurant-gallery + .restaurant-copy-during-meal {
  margin-top: clamp(42px, 5vw, 76px);
}

.restaurant-gallery-lead {
  grid-template-columns: minmax(0, 1fr);
}

.restaurant-gallery-lead img {
  height: auto;
  aspect-ratio: auto;
}

.restaurant-gallery-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.restaurant-gallery-source img {
  display: block;
  height: auto;
  aspect-ratio: var(--source-ratio);
  object-fit: contain;
  align-self: center;
}

.restaurant-gallery-source + .restaurant-gallery-source {
  margin-top: var(--photo-gap);
}

.restaurant-gallery-source-single {
  grid-template-columns: minmax(0, 1fr);
}

.restaurant-gallery-source-portrait {
  max-width: calc((1040px - var(--photo-gap)) / 2);
}

/* Equal frames keep paired photographs aligned, including supplied drink crops. */
.restaurant-gallery-central .restaurant-photo-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: var(--photo-position, 50% 50%);
}

.restaurant-photo-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--source-ratio);
  align-self: center;
  min-width: 0;
}

.restaurant-photo-frame-steamer img {
  transform: rotate(3deg) scale(1.08);
}

.restaurant-gallery-source .restaurant-photo-frame-bird img {
  position: absolute;
  width: 150%;
  height: 150%;
  max-width: none;
  left: -16.666667%;
  top: -46.875%;
}

/* Match the supplied edited preview using the recovered full-resolution source. */
.restaurant-gallery-source .restaurant-photo-frame-extra img {
  position: absolute;
  width: 146.788991%;
  height: 146.788991%;
  max-width: none;
  left: -25.076453%;
  top: -20.642202%;
}

.restaurant-close {
  width: min(calc(100% - 52px), 580px);
  margin: 0 auto;
}

.restaurant-cover + .restaurant-gallery {
  margin-top: clamp(24px, 4vw, 60px);
}

.restaurant-ending {
  margin-top: clamp(40px, 6vw, 90px);
}

#rice {
  scroll-margin-top: 24px;
}

.restaurant-details {
  width: min(calc(100% - 52px), 650px);
  margin: clamp(44px, 6vw, 90px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.restaurant-details h2 {
  margin: 0;
  font: 500 30px/1.5 var(--serif);
}

.restaurant-details p {
  margin: 10px 0 14px;
}

.restaurant-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
}

@media (max-width: 750px) {
  .restaurant-page .site-header nav a:last-child {
    display: inline;
  }
}

@media (max-width: 600px) {
  .restaurant-feature .article-title h1 {
    font-size: clamp(30px, 8.5vw, 44px);
  }

  .restaurant-pair,
  .restaurant-close {
    width: calc(100% - 32px);
  }

  .restaurant-pair {
    grid-template-columns: minmax(0, 1fr);
  }

}

/* 一軒の食卓：紹介文 → 写真 → 個人の感想 → 店舗・関連記事。 */
.restaurant-reflection {
  margin: 0 auto clamp(56px, 7vw, 100px);
  scroll-margin-top: 40px;
}
.restaurant-reflection h2 {
  margin: 0 0 1.25em;
  font: 500 clamp(26px, 3.2vw, 34px)/1.8 var(--serif);
  letter-spacing: .04em;
}
.restaurant-links-heading {
  margin: 24px 0 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
}
.restaurant-links a {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 5px;
}
#restaurant-details { scroll-margin-top: 28px; }

.restaurant-reflection { margin-top: clamp(56px,7vw,100px); }
.restaurant-feature .series p,.restaurant-feature .place p,.restaurant-feature .subtitle p {margin:0}
.restaurant-feature .series a{color:inherit;text-decoration:none}
.restaurant-feature .series a:hover{text-decoration:underline;text-underline-offset:.2em}
.restaurant-links-heading h3{font:inherit;margin:0}
.restaurant-add-reflection{padding:18px;border:1px dashed currentColor;font:16px/1.8 var(--sans)}
.restaurant-page .article-opening.table-hero-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}
.restaurant-page .article-opening.table-hero-pair img{display:block;width:100%;height:100%;min-width:0;object-fit:cover}
@media(max-width:600px){.restaurant-page .article-opening.table-hero-pair{grid-template-columns:repeat(2,minmax(0,1fr));height:70svh}}

body.immersive-article.restaurant-hirasansou .restaurant-cover:not(.table-hero-pair) {
  height: auto;
  max-height: var(--opening-height);
  aspect-ratio: 3 / 2;
}

body.immersive-article.restaurant-hirasansou .restaurant-cover:not(.table-hero-pair) img {
  object-position: center 64%;
}

body.restaurant-page article>.masthead .series{color:var(--ink)}

.article-title .food-identity{font:15px/1.9 var(--sans,sans-serif);color:#687064;margin:20px 0 18px;letter-spacing:.03em}.article-title .subtitle{max-width:36em;margin-inline:auto}@media(max-width:760px){.article-title .food-identity{font-size:13px;margin:16px 0}}


/* Reservation information stays separate from the author's closing reflection. */
.restaurant-reservation-jump {max-width:650px;margin:-16px auto clamp(42px,5vw,76px);padding:0 22px;box-sizing:content-box;font-size:14px;line-height:1.8}
.restaurant-reservation-jump a {text-decoration:underline;text-underline-offset:.25em}
.restaurant-reservations {margin:30px 0 26px;text-align:left}
.restaurant-reservations h3 {font-size:21px;line-height:1.6;margin:0 0 16px}
.restaurant-details .restaurant-reservations p {font-size:15px;line-height:1.95;margin:0 0 16px}

/* MIL: group visible photos before layout so hidden photos leave no empty cells. */
.mil-photo-triptych {grid-template-rows:repeat(2,minmax(0,1fr))}
.mil-photo-triptych .mil-photo-tall {grid-column:1;grid-row:1 / 3;align-self:stretch;aspect-ratio:auto}
.mil-photo-triptych-right .mil-photo-tall {grid-column:2}
.mil-photo-triptych .mil-photo-tall img {height:100%;aspect-ratio:auto;object-fit:cover;object-position:50% 50%}
.mil-photo-triptych > :not(.mil-photo-tall) {grid-column:2}
.mil-photo-triptych-right > :not(.mil-photo-tall) {grid-column:1}
.mil-photo-drink-pair .mil-photo-frame {aspect-ratio:3 / 4}
.mil-photo-drink-pair .mil-photo-frame img {height:100%;aspect-ratio:auto;object-fit:cover}
.mil-photo-drink-pair [data-mil-photo="59"] img {object-position:42% 50%}
.mil-bar-group {margin-top:var(--photo-gap)}
.restaurant-feature .mil-passage {margin:clamp(36px,5vw,64px) auto}
.mil-add-copy {border:1px dashed #aab1a2;padding:18px;color:#687064;font:15px/1.8 var(--sans,sans-serif)}
.mil-passage-space {height:clamp(36px,5vw,64px)}
.restaurant-copy + .mil-passage-space {display:none}
@media(max-width:600px){
 .mil-photo-triptych {grid-template-rows:none}
 .mil-photo-triptych > .mil-photo-frame {grid-column:auto;grid-row:auto;aspect-ratio:var(--source-ratio)}
 .mil-photo-triptych .mil-photo-tall img {height:auto;aspect-ratio:var(--source-ratio);object-fit:contain}
 .mil-photo-drink-pair {grid-template-columns:repeat(2,minmax(0,1fr))}
 .restaurant-feature .mil-passage {margin:32px auto}
 .mil-passage-space {height:32px}
}

/* Hiram Bingham: keep the supplied food and train photographs uncropped. */
.hiram-photo {margin:0;min-width:0;align-self:start}
.hiram-photo-row {align-items:start}
.restaurant-feature .hiram-passage {margin:clamp(40px,5vw,72px) auto}
.hiram-passage h2 {font:500 clamp(24px,3vw,34px)/1.7 var(--serif);margin:0 0 1.25em}
.hiram-passage .hiram-chapter {font:13px/1.5 var(--sans,sans-serif);letter-spacing:.2em;margin:0 0 18px;color:#687064}
@media(max-width:600px){.hiram-photo-row:has(img[height="2046"]) {grid-template-columns:repeat(2,minmax(0,1fr))}.hiram-mixed {grid-template-columns:minmax(0,1fr)!important}}

/* The fare guide belongs to Hiram's native reservation field. */
.hiram-fares {width:min(calc(100% - 48px),1040px);box-sizing:border-box;margin:40px auto 72px;padding:32px;background:#edf0e9;border-block:1px solid #cdd3c8;scroll-margin-top:32px}
.hiram-fares h2 {font:500 clamp(23px,2.4vw,30px)/1.6 var(--serif);margin:0 0 8px}
.hiram-fares-unit {font:13px/1.7 var(--sans,sans-serif);margin:0 0 24px;color:#687064}
.hiram-fare-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.hiram-fare-card {min-width:0}
.hiram-fare-card h3 {font:500 17px/1.6 var(--sans,sans-serif);margin:0 0 6px}
.hiram-fare-price {font:500 clamp(21px,2vw,27px)/1.5 var(--serif);margin:0 0 16px;white-space:nowrap}
.hiram-fare-card ul {padding-left:1.2em;margin:0;font:14px/1.8 var(--sans,sans-serif)}
.hiram-fare-card li {margin:0 0 10px}
.hiram-fare-notes {border-top:1px solid #cdd3c8;margin-top:24px;padding-top:18px;font:12px/1.85 var(--sans,sans-serif);color:#596353}
.hiram-fare-notes p {margin:0 0 10px}
.hiram-fare-notes p:last-child {margin-bottom:0}
@media(max-width:760px){.hiram-fares{width:calc(100% - 32px);padding:24px;margin-block:32px 48px}.hiram-fare-grid{grid-template-columns:minmax(0,1fr);gap:22px}.hiram-fare-card+.hiram-fare-card{border-top:1px solid #cdd3c8;padding-top:22px}.hiram-fare-card ul{font-size:14px}.hiram-fare-price{font-size:24px}}
