.page-main {
  padding-bottom: 32px;
}

.page-shell {
  width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.breadcrumb {
  padding-top: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb strong {
  color: var(--accent-deep);
}

.page-hero {
  padding: 28px 0 18px;
}

.page-hero-panel,
.text-panel,
.metric-panel,
.focus-card,
.service-note,
.philosophy-card,
.contact-strip,
.cta-banner,
.compare-card,
.detail-section-block,
.resource-banner {
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 243, 244, 0.9));
  border-radius: var(--radius-xl);
}

.page-hero-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  gap: 24px;
  padding: 30px;
}

.page-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.page-lead {
  margin: 16px 0 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1rem;
}

.page-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-hero-figure {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(234, 219, 233, 0.68), rgba(225, 217, 239, 0.48));
}

.page-hero-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-figure.is-contain {
  padding: 12px 12px 0;
}

.page-hero-figure.is-contain img {
  object-fit: contain;
  border-radius: 24px 24px 0 0;
}

.section-block {
  padding-top: 26px;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.section-copy {
  margin: 12px 0 0;
  max-width: 54ch;
  color: var(--muted);
}

.page-intro-grid,
.service-layout,
.contact-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.text-panel,
.metric-panel,
.service-note,
.contact-strip,
.cta-banner,
.resource-banner,
.detail-section-block {
  padding: 24px;
}

.text-panel p,
.metric-panel p,
.focus-card p,
.service-note p,
.philosophy-card p,
.contact-strip p,
.compare-card p,
.detail-section-block p,
.resource-banner p {
  margin: 0;
  color: var(--muted);
}

.text-panel p + p,
.metric-panel p + p,
.service-note p + p,
.contact-strip p + p,
.detail-section-block p + p {
  margin-top: 12px;
}

.metric-panel {
  display: grid;
  gap: 14px;
}

.metric-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.metric-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.metric-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1.05rem;
}

.focus-grid,
.philosophy-grid,
.product-overview-grid,
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-overview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.focus-card,
.philosophy-card,
.compare-card {
  padding: 22px;
}

.focus-card h3,
.philosophy-card h3,
.compare-card h3,
.detail-section-block h3,
.text-panel h3,
.metric-panel h3,
.contact-strip h3,
.resource-banner h3 {
  margin: 0 0 10px;
  line-height: 1.2;
}

.detail-grid h4 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1rem;
}

.service-layout {
  align-items: start;
}

.service-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-list li {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.contact-strip {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 6px;
}

.contact-list strong {
  color: var(--text);
}

.inline-assets {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.qr-mini {
  width: min(170px, 100%);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
}

.cta-banner {
  display: grid;
  gap: 14px;
  text-align: center;
}

.cta-banner p {
  max-width: 56ch;
  margin: 0 auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.cta-actions.is-start {
  justify-content: flex-start;
}

.cta-actions.spaced {
  margin-top: 18px;
}

.page-note {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.subnav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.subnav-pills a {
  padding: 0.72rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-weight: 700;
}

.subnav-pills a:hover,
.subnav-pills a:focus-visible {
  color: var(--accent-deep);
  border-color: rgba(203, 125, 144, 0.28);
}

.product-overview-grid .product-card {
  height: 100%;
}

.product-card--overview {
  display: grid;
  gap: 14px;
}

.product-card--overview .product-media {
  width: min(94%, 340px);
  height: clamp(320px, 28vw, 390px);
  min-height: 320px;
  padding: 22px 18px 18px;
  background: linear-gradient(180deg, rgba(252, 245, 247, 0.98), rgba(245, 232, 238, 0.98));
  border-color: rgba(203, 125, 144, 0.14);
}

.product-card--overview .product-media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
}

.product-card--overview .product-copy {
  color: var(--muted);
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.product-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent-deep);
  font-weight: 800;
}

.compare-card ul,
.detail-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.compare-card li,
.detail-list li {
  margin-top: 8px;
}

.compare-card li:first-child,
.detail-list li:first-child {
  margin-top: 0;
}

.detail-stack {
  display: grid;
  gap: 18px;
}

.detail-section-block {
  scroll-margin-top: 22px;
}

.detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-code {
  color: var(--berry);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.detail-summary {
  margin-bottom: 18px;
}

.detail-intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
  gap: 18px;
  align-items: center;
}

.product-media.product-media-detail {
  min-height: 0;
  width: 100%;
  margin: 0;
  padding: 24px 22px;
}

.product-media.product-media-detail img {
  max-height: 430px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.detail-tags span {
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(142, 95, 115, 0.08);
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 700;
}

.detail-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.resource-inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.resource-inline-links a,
.resource-link-stack a {
  color: var(--accent-deep);
  font-weight: 800;
}

.resource-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.resource-banner p {
  max-width: 56ch;
}

.resource-grid,
.timeline-grid,
.gallery-grid {
  display: grid;
  gap: 18px;
}

.resource-grid,
.timeline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.resource-card,
.timeline-card,
.gallery-card {
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 243, 244, 0.9));
  border-radius: var(--radius-xl);
}

.resource-card,
.timeline-card {
  padding: 22px;
}

.resource-card p,
.timeline-card p {
  margin: 0;
  color: var(--muted);
}

.resource-card h3,
.timeline-card h3 {
  margin: 10px 0 8px;
  line-height: 1.2;
}

.resource-label,
.timeline-date {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(203, 125, 144, 0.12);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.resource-link-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.resource-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.timeline-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.timeline-place {
  color: var(--berry);
  font-size: 0.9rem;
  font-weight: 700;
}

.gallery-card {
  overflow: hidden;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 14px 18px 18px;
  color: var(--muted);
}

.page-hero-figure.product-machine-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(247, 238, 243, 0.98), rgba(240, 229, 236, 0.96));
}

.page-hero-figure.product-machine-hero img {
  width: auto;
  max-width: 100%;
  max-height: 540px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

.site-nav a.is-current {
  color: var(--accent-deep);
}

@media (max-width: 1120px) {
  .page-hero-panel,
  .page-intro-grid,
  .service-layout,
  .contact-strip,
  .contact-grid,
  .detail-intro,
  .detail-grid,
  .product-overview-grid,
  .compare-grid,
  .resource-grid,
  .timeline-grid,
  .focus-grid,
  .philosophy-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .page-hero-panel {
    padding: 22px;
  }

  .page-hero {
    padding-top: 22px;
  }

  .product-card--overview .product-media {
    width: min(92%, 340px);
    height: 332px;
    min-height: 332px;
  }

  .product-card--overview .product-media img {
    width: 100%;
    height: 100%;
  }

  .product-media.product-media-detail img {
    max-height: 360px;
  }

  .cta-actions,
  .page-actions,
  .product-actions {
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .page-hero-panel,
  .text-panel,
  .metric-panel,
  .focus-card,
  .service-note,
  .philosophy-card,
  .contact-strip,
  .cta-banner,
  .compare-card,
  .detail-section-block,
  .resource-banner {
    padding: 20px;
    border-radius: 24px;
  }

  .page-hero-copy h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .product-card--overview .product-media {
    width: min(90%, 300px);
    height: 304px;
    min-height: 304px;
  }

  .product-card--overview .product-media img {
    max-height: none;
  }

  .product-media.product-media-detail img {
    max-height: 320px;
  }

  .service-list li {
    min-height: 56px;
    padding: 0 14px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
