/*
 * Inner-page editorial refinement.
 * Every rule is scoped to .inner-page so the home, CMS, forms, and auth UI keep
 * their own visual contracts. Existing images are only framed, never cropped by
 * changing the source asset.
 */

.inner-page {
  --inner-paper: #fbfaf6;
  --inner-ink: #263d32;
  --inner-green: #48643e;
  --inner-accent: #9a6249;
  --inner-mist: #edf1e8;
  --inner-line: rgba(72, 100, 62, 0.28);
  background: var(--inner-paper);
  color: var(--inner-ink);
}

.inner-page .breadcrumb {
  padding-block: 22px 18px;
  border-bottom: 1px solid var(--inner-line);
  color: #536259;
}

.inner-page #main > .section,
.inner-page .scene-section > .section {
  padding-top: clamp(54px, 7vw, 96px);
  padding-bottom: clamp(78px, 9vw, 132px);
}

/* Quiet, publication-like openers in place of a large card. */
.inner-page .section > .page-hero,
.inner-page .scene-section .page-hero {
  display: grid;
  width: min(100%, 1120px);
  margin-bottom: clamp(54px, 7vw, 88px);
  padding: clamp(32px, 4.5vw, 58px) 0;
  border-top: 1px solid var(--inner-line);
  border-bottom: 1px solid var(--inner-line);
  border-radius: 0;
  grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
  column-gap: clamp(36px, 7vw, 92px);
  background: transparent;
}

.inner-page .page-hero > .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 24px;
  color: var(--inner-green);
}

.inner-page .page-hero > h1 {
  max-width: 16em;
  margin: 0;
  align-self: end;
  color: var(--inner-ink);
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.inner-page .page-hero > p:last-child,
.inner-page .page-hero > .text-link {
  margin: 0 0 8px;
  align-self: end;
}

.inner-page .page-hero > p:last-child {
  padding-left: 24px;
  border-left: 1px solid var(--inner-line);
  color: #425349;
  line-height: 2;
}

.inner-page .article-detail .page-hero {
  display: block;
  max-width: 900px;
  margin-bottom: clamp(48px, 7vw, 78px);
}

.inner-page .article-detail .page-hero h1 {
  max-width: 21em;
}

/* Product index: generous image rhythm with restrained dividers. */
.inner-page .filter-bar {
  margin-bottom: clamp(42px, 5vw, 64px);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--inner-line);
}

.inner-page .filter-button {
  border-color: rgba(72, 100, 62, 0.48);
  background: transparent;
}

.inner-page .filter-button:hover,
.inner-page .filter-button.is-active,
.inner-page .filter-button[aria-pressed="true"] {
  border-color: var(--inner-green);
  background: var(--inner-green);
}

.inner-page .filter-bar + .product-grid {
  gap: clamp(52px, 7vw, 88px) clamp(42px, 6vw, 76px);
  align-items: start;
}

.inner-page .filter-bar + .product-grid .product-card {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.inner-page .filter-bar + .product-grid .product-card:nth-child(even) {
  margin-top: clamp(42px, 6vw, 78px);
}

.inner-page .filter-bar + .product-grid .product-image {
  aspect-ratio: 5 / 4;
  border-radius: 2px 72px 2px 2px;
  background: var(--inner-mist);
}

.inner-page .filter-bar + .product-grid .product-card:nth-child(even) .product-image {
  border-radius: 2px 2px 72px 2px;
}

.inner-page .filter-bar + .product-grid .product-body {
  padding: 28px 0 32px;
  border-bottom: 1px solid var(--inner-line);
  background: transparent;
}

.inner-page .filter-bar + .product-grid .product-kicker {
  color: var(--inner-accent);
  letter-spacing: 0.1em;
}

.inner-page .filter-bar + .product-grid h3 {
  margin-bottom: 14px;
  color: var(--inner-ink);
  font-size: clamp(29px, 3vw, 38px);
}

.inner-page .filter-bar + .product-grid .product-body > p {
  max-width: 34em;
  margin-bottom: 22px;
}

/* Product details: a photographic plate beside a compact information column. */
.inner-page .product-detail .detail-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: clamp(48px, 8vw, 104px);
  align-items: center;
}

.inner-page .product-detail .detail-photo {
  position: relative;
  aspect-ratio: auto;
  padding: clamp(12px, 2vw, 22px) clamp(12px, 2vw, 22px) clamp(28px, 4vw, 52px);
  border-radius: 96px 2px 2px 2px;
  background: var(--inner-mist);
}

.inner-page .product-detail .detail-photo::after {
  position: absolute;
  right: 20px;
  bottom: 14px;
  color: var(--inner-green);
  content: "GREEN HARMONY · SEIKA, KYOTO";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  letter-spacing: 0.14em;
}

.inner-page .product-detail .detail-photo img {
  width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
}

.inner-page .product-detail .detail-copy {
  padding: 26px 0 22px;
  border-top: 1px solid var(--inner-line);
  border-bottom: 1px solid var(--inner-line);
}

.inner-page .product-detail .detail-copy > .eyebrow {
  color: var(--inner-accent);
}

.inner-page .product-detail .detail-copy h1 {
  color: var(--inner-ink);
  font-size: clamp(38px, 4.2vw, 56px);
}

.inner-page .product-detail .product-facts {
  border-top-color: var(--inner-line);
}

.inner-page .product-detail > .prose {
  margin-top: clamp(72px, 9vw, 120px);
  padding-top: clamp(42px, 5vw, 68px);
  border-top: 1px solid var(--inner-line);
}

.inner-page .product-detail > .prose h2 {
  color: var(--inner-ink);
}

.inner-page .product-detail > .prose h3 {
  margin-top: 2.2em;
  color: var(--inner-green);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.7;
}

.inner-page .product-detail > .prose h3 + p {
  margin-top: 0.7em;
}

.inner-page .product-voices {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--inner-line);
}

.inner-page .product-voices blockquote {
  margin: 24px 0 0;
  padding: 18px clamp(18px, 3vw, 28px);
  border-left: 3px solid var(--inner-green);
  background: var(--inner-mist);
}

.inner-page .product-voices blockquote p {
  margin: 0;
}

/* About and Mutsuko: one visual language, with room for each photograph. */
.inner-page .story-page .detail-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(52px, 8vw, 108px);
  align-items: center;
}

.inner-page .story-page .detail-photo {
  aspect-ratio: auto;
  padding: 12px;
  border-radius: 2px 100px 2px 2px;
  background: #ffffff;
  box-shadow: 22px 24px 0 var(--inner-mist);
}

.inner-page .story-page .detail-photo img {
  width: 100%;
  height: auto;
  max-height: 720px;
  object-fit: contain;
}

.inner-page .story-page .detail-grid > .prose {
  padding-block: 28px;
  border-top: 1px solid var(--inner-line);
  border-bottom: 1px solid var(--inner-line);
}

.inner-page .story-page .detail-grid > .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-mutsuko .detail-photo {
  border-radius: 100px 2px 2px 2px;
  box-shadow: -22px 24px 0 #f3ede7;
}

/* Enjoy: pictures carry the sequence; copy stays on the page rather than cards. */
.inner-page .scene-section {
  background: var(--inner-mist);
}

.inner-page .scene-section .scene-grid {
  gap: clamp(38px, 5vw, 70px);
  align-items: start;
}

.inner-page .scene-section .scene-card {
  padding-bottom: 26px;
  border-bottom-color: rgba(72, 100, 62, 0.36);
  background: transparent;
}

.inner-page .scene-section .scene-card:nth-child(2) {
  margin-top: clamp(34px, 5vw, 68px);
}

.inner-page .scene-section .scene-card img {
  aspect-ratio: 4 / 5;
  margin-bottom: 26px;
  border-radius: 2px 70px 2px 2px;
}

.inner-page .scene-section .scene-card:nth-child(2) img {
  border-radius: 70px 2px 2px 2px;
}

.inner-page .scene-section .scene-number {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--inner-accent);
  font-size: 18px;
}

.inner-page .scene-section .scene-number::after {
  width: 38px;
  height: 1px;
  background: var(--inner-line);
  content: "";
}

.inner-page .scene-section .detail-gallery {
  gap: clamp(18px, 4vw, 48px);
  margin-block: clamp(62px, 8vw, 104px);
}

.inner-page .scene-section .detail-gallery img {
  height: auto;
  aspect-ratio: 5 / 4;
  border-radius: 2px;
  background: transparent;
  object-fit: cover;
}

/* Journal lists and articles use a newspaper-like baseline and readable measure. */
.inner-page #main > .section > .news-list {
  border-top-color: var(--inner-green);
}

.inner-page #main > .section > .news-list .news-row {
  min-height: 108px;
  padding-block: 28px;
  border-bottom-color: var(--inner-line);
  grid-template-columns: 122px 108px minmax(0, 1fr) 32px;
}

.inner-page #main > .section > .news-list .news-title {
  color: var(--inner-ink);
  font-size: 17px;
  line-height: 1.85;
}

.inner-page #main > .section > .news-list .news-category {
  border-radius: 2px;
  background: transparent;
}

.inner-page .article-detail > .prose {
  max-width: 760px;
}

.inner-page .article-detail .prose > img {
  margin-block: 0 clamp(48px, 6vw, 72px);
  padding: 10px;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 18px 18px 0 var(--inner-mist);
}

.inner-page .article-detail .prose h2 {
  margin-top: 2.7em;
  padding-top: 1em;
  border-top: 1px solid var(--inner-line);
  color: var(--inner-ink);
}

.inner-page .pagination a {
  border-color: rgba(72, 100, 62, 0.52);
  border-radius: 50%;
}

/* Kobayashi: a distinct deep-green feature with a high-visibility social panel. */
.inner-page .kobayashi-page {
  background: var(--inner-ink);
  color: #edf1e8;
}

.inner-page .kobayashi-page .room-page-heading {
  padding-bottom: clamp(30px, 4vw, 48px);
  border-bottom: 1px solid rgba(237, 241, 232, 0.34);
}

.inner-page .kobayashi-page .room-page-heading h1,
.inner-page .kobayashi-page .room-page-heading > p,
.inner-page .kobayashi-page .room-page-body .prose h2,
.inner-page .kobayashi-page .room-videos h2 {
  color: #fbfaf6;
}

.inner-page .kobayashi-page .eyebrow {
  color: #d5dfc6;
}

.inner-page .kobayashi-page .room-banner {
  margin-top: clamp(34px, 5vw, 62px);
  padding: clamp(8px, 1.4vw, 16px);
  border-radius: 104px 2px 2px 2px;
  background: #f4efe4;
}

.inner-page .kobayashi-page .room-page-body {
  margin-top: clamp(48px, 7vw, 84px);
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
}

.inner-page .kobayashi-page .room-page-body .prose {
  padding-top: 28px;
  border-top: 1px solid rgba(237, 241, 232, 0.3);
}

.inner-page .kobayashi-page .room-page-body .prose p {
  color: #edf1e8;
}

.inner-page .kobayashi-page .room-social-panel {
  padding: clamp(28px, 4vw, 46px);
  border-top: 4px solid var(--inner-accent);
  background: #fbfaf6;
  color: var(--inner-ink);
}

.inner-page .kobayashi-page .room-social-panel .eyebrow {
  color: var(--inner-accent);
}

.inner-page .kobayashi-page .room-social-panel h2,
.inner-page .kobayashi-page .room-social-panel > p {
  color: var(--inner-ink);
}

.inner-page .kobayashi-page .room-social-panel .social-links {
  gap: 12px;
  margin-top: 22px;
}

.inner-page .kobayashi-page .room-social-panel .social-links a {
  min-height: 54px;
  padding-inline: 18px;
  border-color: var(--inner-green);
  background: var(--inner-green);
  color: #ffffff;
}

.inner-page .kobayashi-page .room-social-panel .social-links a:hover {
  border-color: var(--inner-ink);
  background: var(--inner-ink);
  color: #ffffff;
}

.inner-page .kobayashi-page .room-videos {
  margin-top: clamp(84px, 10vw, 132px);
  padding-top: clamp(42px, 5vw, 68px);
  border-top: 1px solid rgba(237, 241, 232, 0.3);
}

.inner-page .kobayashi-page .video-grid {
  gap: clamp(28px, 4vw, 48px);
}

.inner-page .kobayashi-page .video-card {
  border-bottom: 3px solid var(--inner-accent);
  background: #fbfaf6;
}

.inner-page .kobayashi-page .video-copy h3,
.inner-page .kobayashi-page .video-copy .text-link {
  color: var(--inner-ink);
}

.inner-page .kobayashi-page .video-copy .eyebrow {
  color: var(--inner-accent);
}

.inner-page .kobayashi-page .video-note {
  color: #d9e1d1;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .inner-page .filter-bar + .product-grid .product-card:hover .product-image img {
    transform: scale(1.025);
  }

  .inner-page #main > .section > .news-list .news-row:hover {
    padding-inline: 14px;
    background: rgba(237, 241, 232, 0.72);
  }
}

@media (max-width: 900px) {
  .inner-page .section > .page-hero,
  .inner-page .scene-section .page-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  }

  .inner-page .product-detail .detail-grid,
  .inner-page .story-page .detail-grid,
  .inner-page .kobayashi-page .room-page-body {
    gap: 42px;
  }
}

@media (max-width: 768px) {
  .inner-page #main > .section,
  .inner-page .scene-section > .section {
    padding-top: 40px;
    padding-bottom: 82px;
  }

  .inner-page .section > .page-hero,
  .inner-page .scene-section .page-hero {
    display: block;
    margin-bottom: 46px;
    padding: 30px 0 34px;
  }

  .inner-page .page-hero > .eyebrow {
    margin-bottom: 17px;
  }

  .inner-page .page-hero > h1 {
    font-size: clamp(31px, 7.8vw, 42px);
  }

  .inner-page .page-hero > p:last-child {
    margin-top: 22px;
    padding: 18px 0 0;
    border-top: 1px solid var(--inner-line);
    border-left: 0;
  }

  .inner-page .page-hero > .text-link {
    margin-top: 24px;
  }

  .inner-page .filter-bar + .product-grid {
    gap: 52px;
  }

  .inner-page .filter-bar + .product-grid .product-card:nth-child(even),
  .inner-page .scene-section .scene-card:nth-child(2) {
    margin-top: 0;
  }

  .inner-page .filter-bar + .product-grid .product-image,
  .inner-page .filter-bar + .product-grid .product-card:nth-child(even) .product-image {
    border-radius: 2px 54px 2px 2px;
  }

  .inner-page .product-detail .detail-grid,
  .inner-page .story-page .detail-grid,
  .inner-page .kobayashi-page .room-page-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .inner-page .product-detail .detail-photo,
  .inner-page .story-page .detail-photo {
    max-width: 620px;
  }

  .inner-page .product-detail .detail-copy {
    padding-top: 28px;
  }

  .inner-page .story-page .detail-photo,
  .inner-page .story-mutsuko .detail-photo {
    margin-bottom: 18px;
    border-radius: 2px 64px 2px 2px;
    box-shadow: 12px 14px 0 var(--inner-mist);
  }

  .inner-page .scene-section .scene-grid {
    gap: 52px;
  }

  .inner-page .scene-section .scene-card img,
  .inner-page .scene-section .scene-card:nth-child(2) img {
    max-height: 560px;
    border-radius: 2px 54px 2px 2px;
  }

  .inner-page .scene-section .detail-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .inner-page #main > .section > .news-list .news-row {
    min-height: 0;
    padding: 23px 0;
    grid-template-columns: 100px minmax(0, 1fr) 24px;
  }

  .inner-page #main > .section > .news-list .news-title {
    grid-column: 1 / 3;
    font-size: 16px;
  }

  .inner-page .article-detail .prose > img {
    box-shadow: 10px 10px 0 var(--inner-mist);
  }

  .inner-page .kobayashi-page .room-page-heading {
    display: block;
  }

  .inner-page .kobayashi-page .room-page-heading > p {
    margin-top: 20px;
  }

  .inner-page .kobayashi-page .room-banner {
    border-radius: 64px 2px 2px 2px;
  }
}

@media (max-width: 390px) {
  .inner-page .breadcrumb {
    padding-block: 16px;
  }

  .inner-page #main > .section,
  .inner-page .scene-section > .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .inner-page .filter-bar {
    gap: 8px;
  }

  .inner-page .filter-button {
    padding-inline: 14px;
  }

  .inner-page .product-detail .detail-photo {
    padding: 9px 9px 34px;
    border-radius: 48px 2px 2px 2px;
  }

  .inner-page .product-detail .detail-photo::after {
    right: 10px;
    bottom: 10px;
    font-size: 8px;
    letter-spacing: 0.1em;
  }

  .inner-page .product-detail .detail-copy h1 {
    font-size: 34px;
  }

  .inner-page #main > .section > .news-list .news-row {
    grid-template-columns: 88px minmax(0, 1fr) 20px;
    gap: 8px 10px;
  }

  .inner-page .kobayashi-page .room-social-panel {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .inner-page .filter-bar + .product-grid .product-card:hover .product-image img {
    transform: none;
  }
}

/* Keep long titles and editable prose readable as the columns narrow. */
.inner-page .page-hero > h1:last-child { grid-column: 1 / -1; }
.inner-page :is(.detail-copy, .detail-grid > .prose, .room-page-body > *) { min-width: 0; }
.inner-page .story-page .detail-grid { align-items: start; }
.inner-page .story-page .detail-photo { margin-top: 0; }
.inner-page .product-facts dd { overflow-wrap: anywhere; }
.inner-page :is(.detail-copy > p, .product-body > p, .page-hero > p) { text-wrap: pretty; }
.inner-page .english-page .detail-grid { align-items: start; }

@media (max-width: 1000px) {
  .inner-page .product-detail .detail-grid,
  .inner-page .story-page .detail-grid,
  .inner-page .english-page .detail-grid,
  .inner-page .kobayashi-page .room-page-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 42px;
  }
  .inner-page .product-detail .detail-photo,
  .inner-page .story-page .detail-photo,
  .inner-page .english-page .detail-photo { width: 100%; max-width: 620px; }
  .inner-page .story-page .detail-photo { margin-bottom: 18px; }
}

@media (max-width: 600px) {
  .inner-page .page-hero > h1,
  .inner-page .product-detail .detail-copy h1 {
    letter-spacing: 0.025em;
    line-height: 1.55;
  }
  .inner-page .story-page .page-hero > h1 { font-size: clamp(27px, 7.2vw, 38px); }
  .inner-page .product-facts { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .inner-page .product-facts dt { padding-bottom: 0; border-bottom: 0; }
  .inner-page .product-facts dd { padding-top: 5px; }
  .inner-page .history-timeline h3 { font-size: 20px; line-height: 1.75; }
}
