:root {
  --paper: #fffdf8;
  --paper-deep: #f2eee6;
  --ink: #382f27;
  --muted: #6c625a;
  --red: #b45949;
  --line: rgba(56, 47, 39, .16);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  max-width: 100%;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", sans-serif;
  line-height: 1.7;
  letter-spacing: .02em;
}
img, video { display: block; max-width: 100%; }
button { font: inherit; }
.mobile-only { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: var(--paper);
}
.hero-intro {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(390px, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
  visibility: visible;
  background: var(--paper);
  opacity: 1;
  transition: opacity .35s ease, visibility .35s ease;
}
.hero-intro-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 7vw 3vw 7vw max(30px, calc((100vw - var(--max)) / 2));
}
.hero-intro-copy > span {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .14em;
}
.hero-intro-copy > p {
  margin: 0 0 20px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(40px, 3.8vw, 58px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.14;
}
.hero-intro-copy > p span { display: block; white-space: nowrap; }
.hero-intro-copy > strong {
  margin-bottom: 30px;
  padding: 8px 14px;
  color: var(--ink);
  background: #f7e7c4;
  border-left: 4px solid var(--red);
  font-size: clamp(14px, 1.25vw, 18px);
  letter-spacing: .04em;
}
#experience-start {
  min-height: 62px;
  padding: 14px 28px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}
#experience-start b { margin-right: 8px; color: #f5a49a; }
.hero-intro-copy small { margin: 10px 0 18px 18px; color: var(--muted); }
.hero-intro-copy a, .hero-skip, .hero-end a {
  color: var(--ink);
  font-size: 13px;
  text-underline-offset: 4px;
}
.hero-intro img {
  width: 100%;
  height: 100%;
  padding: clamp(30px, 5vw, 82px);
  object-fit: contain;
}
.hero.is-started .hero-intro { visibility: hidden; opacity: 0; pointer-events: none; }
.hero-slides { position: absolute; inset: 0; opacity: 1; transition: opacity .3s ease; }
.hero.is-awaiting-start .hero-slides { opacity: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr);
  align-items: stretch;
  visibility: hidden;
  opacity: 0;
  transition: opacity .42s ease;
}
.hero-slide.is-active { visibility: visible; opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  max-width: none;
  padding: clamp(30px, 5vw, 84px);
  object-fit: contain;
  background: var(--paper);
}
.hero-motion-stage {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s ease, visibility .42s ease;
}
.hero.has-canva-motion .hero-motion-stage { visibility: visible; opacity: 1; }
.hero-motion-stage video {
  grid-column: 2;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: clamp(30px, 5vw, 84px);
  object-fit: contain;
  background: var(--paper);
}
.hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7vw 2vw 9vw max(30px, calc((100vw - var(--max)) / 2));
  background: var(--paper);
}
.hero-copy::before {
  width: 76px;
  height: 8px;
  margin-bottom: 34px;
  background: var(--red);
  border-radius: 999px;
  content: "";
}
.hero-step {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .15em;
}
.hero-copy p {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(42px, 3.6vw, 52px);
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: 1.16;
}
.hero-navigation {
  position: absolute;
  z-index: 3;
  bottom: 32px;
  left: max(30px, calc((100vw - var(--max)) / 2));
  display: flex;
  gap: 8px;
}
.hero-navigation button {
  position: relative;
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(23, 56, 94, .25);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.hero-navigation button::after {
  position: absolute;
  inset: -12px -3px;
  content: "";
}
.hero-navigation button:focus-visible,
.media-controls button:focus-visible,
#experience-start:focus-visible,
#experience-replay:focus-visible {
  outline: 3px solid #d75f52;
  outline-offset: 4px;
}
.hero-navigation button.is-active { width: 34px; background: var(--ink); }
.hero-skip {
  position: absolute;
  z-index: 3;
  right: 26px;
  top: 24px;
  padding: 8px 12px;
  background: rgba(255, 253, 248, .9);
  border-radius: 999px;
}
.hero-end {
  position: absolute;
  z-index: 4;
  right: 50%;
  bottom: 86px;
  display: flex;
  align-items: center;
  gap: 12px;
  visibility: hidden;
  padding: 10px;
  background: rgba(255, 253, 248, .94);
  border: 1px solid var(--line);
  border-radius: 999px;
  opacity: 0;
  transform: translateX(50%);
  transition: opacity .25s ease, visibility .25s ease;
}
.hero-end p {
  margin: 0 4px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}
.hero.is-complete .hero-end { visibility: visible; opacity: 1; }
#experience-replay {
  padding: 10px 16px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}
.hero-end a { padding: 8px 14px 8px 4px; font-weight: 700; text-decoration: none; }
.hero-end .line-end-preview { min-height: 44px; border: 0; border-radius: 999px; padding: 10px 16px; background: #087548; color: #fff; font: inherit; font-size: 13px; font-weight: 700; opacity: 1; }
.hero.is-awaiting-start .hero-navigation,
.hero.is-awaiting-start .media-controls,
.hero.is-awaiting-start .hero-skip,
.hero.is-complete .hero-navigation,
.hero.is-complete .media-controls,
.hero.is-complete .hero-skip {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.media-controls {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 8px;
}
.media-controls button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 14px;
  color: #fff;
  background: rgba(23, 56, 94, .9);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.pause-icon { width: 12px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
#movie-control.is-paused .pause-icon { border: 0; clip-path: polygon(15% 0, 100% 50%, 15% 100%); background: currentColor; }
.sound-icon { font-size: 17px; line-height: 1; }
.hero-fallback-status {
  position: absolute;
  z-index: 6;
  right: 16px;
  bottom: 112px;
  left: 16px;
  width: fit-content;
  margin: 0 auto;
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(255, 253, 248, .96);
  color: #17385d;
  font-size: 12px;
  line-height: 1.4;
}
.hero.is-complete .hero-fallback-status { display: none; }

.is-motion-trial .hero-intro { display: block; }
.is-motion-trial .hero-intro img { position: absolute; inset: 0; padding: 0; object-fit: cover; }
.is-motion-trial .hero-intro-copy {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: min(55%, 720px);
  background: linear-gradient(90deg, rgba(255, 253, 248, .98) 0%, rgba(255, 253, 248, .91) 68%, rgba(255, 253, 248, 0) 100%);
}
.is-motion-trial .hero-slide { display: block; z-index: 2; pointer-events: none; }
.is-motion-trial .hero:not(.has-canva-motion) .hero-slide { transition: none; }
.is-motion-trial .hero-slide img {
  position: absolute;
  inset: 0;
  padding: 0;
  object-fit: cover;
}
.is-motion-trial .hero.has-canva-motion .hero-slide img { opacity: 0; }
.is-motion-trial .hero-motion-stage { display: block; z-index: 1; }
.is-motion-trial .hero-motion-stage video { padding: 0; object-fit: cover; }
.is-motion-flow .hero[data-scene="8"] .hero-motion-stage video,
.is-motion-flow .hero[data-scene="8"] .hero-slide img,
.is-motion-freezer .hero[data-scene="5"] .hero-motion-stage video,
.is-motion-freezer .hero[data-scene="5"] .hero-slide img { object-fit: contain; }
.is-motion-trial .hero-copy {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(50%, 680px);
  background: linear-gradient(90deg, rgba(255, 253, 248, .98) 0%, rgba(255, 253, 248, .91) 66%, rgba(255, 253, 248, 0) 100%);
}

.story-caption { display: none; position: absolute; z-index: 3; inset: 0 auto 0 0; width: min(50%, 680px); flex-direction: column; justify-content: center; padding: 7vw 2vw 9vw max(30px, calc((100vw - var(--max)) / 2)); background: linear-gradient(90deg, rgba(255,253,248,.98) 0%, rgba(255,253,248,.91) 66%, rgba(255,253,248,0) 100%); pointer-events: none; }
.is-motion-story .story-caption { display: flex; }
.is-motion-story .hero-slide .hero-copy { visibility: hidden; }
.is-motion-story .hero.is-complete .story-caption { display: none; }
.story-caption::before { width: 76px; height: 8px; margin-bottom: 34px; background: var(--red); border-radius: 999px; content: ""; }
.story-caption p { margin: 0; font-family: "Yu Mincho", "Hiragino Mincho ProN", serif; font-size: clamp(42px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.05em; line-height: 1.16; }
@media (max-width: 760px) {
  .story-caption { inset: 0 0 auto; width: 100%; height: min(50%, 370px); padding: 42px 20px 18px; justify-content: flex-start; background: linear-gradient(180deg, rgba(255,253,248,.98) 0%, rgba(255,253,248,.92) 64%, rgba(255,253,248,0) 100%); }
  .story-caption::before { width: 54px; height: 6px; margin-bottom: 18px; }
  .story-caption p { font-size: clamp(30px, 9vw, 40px); line-height: 1.12; }
}
@media (max-height: 500px) {
  .story-caption { inset: 0 auto 0 0; width: min(50%, 680px); height: auto; padding: 18px 16px; background: linear-gradient(90deg, rgba(255,253,248,.98) 0%, rgba(255,253,248,.91) 66%, rgba(255,253,248,0) 100%); }
  .story-caption::before { width: 40px; height: 4px; margin-bottom: 8px; }
  .story-caption p { font-size: clamp(20px, 4vw, 30px); }
}

.targets, .factory {
  padding: 120px max(24px, calc((100vw - var(--max)) / 2));
}
.section-heading { max-width: 780px; margin-bottom: 54px; }
.section-heading > p {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
}
.section-heading h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(42px, 5.6vw, 76px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.12;
}
.target-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.target-grid li {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.target-card-art {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f7f1e6;
}
.target-card-copy { padding: 26px 28px 32px; }
.target-number { color: var(--red); font-size: 12px; font-weight: 900; }
.target-grid h3 { margin: 14px 0 12px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; }
.target-grid p { margin: 0; color: var(--muted); font-size: 15px; }
.line-preview { display: flex; flex-direction: column; align-items: center; gap: 9px; margin: 34px auto 0; text-align: center; }
.line-preview button { min-width: 240px; min-height: 54px; border: 0; border-radius: 999px; padding: 14px 26px; background: #087548; color: #fff; font: inherit; font-weight: 700; opacity: 1; }
.line-preview small { color: var(--muted); font-size: 13px; }

.factory { color: var(--ink); background: #f5f2ed; }
.factory-heading { max-width: 760px; }
.factory-heading > p { color: var(--red); }
.factory-heading > span { display: block; margin-top: 20px; color: var(--muted); }
.factory-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: clamp(30px, 5vw, 72px);
}
.factory-overview-copy { align-self: center; }
.factory-overview-lead { margin: 0 0 24px; font-size: clamp(23px, 2.3vw, 32px); font-weight: 800; line-height: 1.5; }
.factory-exterior-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 380px;
  aspect-ratio: 4 / 3;
  color: #675e55;
  background: #e9e5de;
  border: 1px solid #ded7d0;
  border-radius: 12px;
}
.factory-exterior-placeholder span { font-size: 22px; font-weight: 700; }
.factory-exterior-placeholder small { font-size: 13px; }
.factory-subheading { margin: 72px 0 24px; font-size: 24px; }
.factory-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 20px;
}
.factory-gallery figure { min-width: 0; margin: 0; }
.factory-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.factory-gallery figcaption { padding-top: 10px; color: var(--ink); font-size: 14px; font-weight: 700; }
.rights-note { margin: 24px 0 0; color: var(--muted); font-size: 11px; }
.factory-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0;
  background: #ded7d0;
  border: 1px solid #ded7d0;
}
.factory-profile > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 20px 22px;
  background: #fff;
}
.factory-profile span { color: var(--muted); font-size: 12px; }
.factory-profile strong { color: var(--ink); font-size: 15px; line-height: 1.6; }
.factory-rough-note { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
.photo-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  color: #776d63;
  background: #e9e5de;
  border: 1px solid #ded7d0;
  border-radius: 8px;
}
.photo-placeholder span { padding: 8px 14px; border: 1px solid #c9c1b6; border-radius: 999px; font-size: 12px; }
.equipment-photo { width: 100%; border-radius: 12px; }
.line-preview button, .hero-end .line-end-preview { cursor: pointer; }
.line-preview button:focus-visible, .line-end-preview:focus-visible, #line-demo-close:focus-visible { outline: 3px solid #b45949; outline-offset: 4px; }
.is-line-dialog-open { overflow: hidden; }
.line-dialog {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(35, 29, 24, .6);
}
.line-dialog[hidden] { display: none; }
.line-dialog-card {
  width: min(100%, 440px);
  padding: clamp(26px, 6vw, 38px);
  color: var(--ink);
  background: var(--paper);
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(35, 29, 24, .2);
}
.line-dialog-label { margin: 0 0 8px; color: #087548; font-size: 13px; font-weight: 700; }
.line-dialog-card h2 { margin: 0; font-size: 23px; line-height: 1.4; }
.line-dialog-card h2 + p { margin: 14px 0 24px; color: var(--muted); font-size: 15px; line-height: 1.8; }
#line-demo-close { min-height: 44px; padding: 10px 24px; color: #fff; background: var(--ink); border: 0; border-radius: 999px; cursor: pointer; }
.factory-equipment {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  margin-top: 88px;
}
.factory-equipment img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.factory-equipment-label { margin: 0 0 12px; color: var(--red); font-size: 13px; font-weight: 800; }
.factory-equipment h3 { margin: 0 0 16px; font-size: clamp(25px, 3vw, 36px); }
.factory-equipment h3 + p { margin: 0; max-width: 460px; color: var(--muted); line-height: 1.9; }

@media (max-width: 760px) {
  .hero-intro {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(360px, 52%) minmax(0, 1fr);
  }
  .hero-intro-copy { padding: 42px 20px 10px; }
  .hero-intro-copy > span { margin-bottom: 10px; font-size: 11px; }
  .mobile-only { display: initial; }
  .hero-intro-copy > p { margin-bottom: 14px; font-size: clamp(32px, 9vw, 40px); line-height: 1.12; }
  .hero-intro-copy > strong { margin-bottom: 18px; padding: 6px 10px; font-size: 13px; }
  #experience-start { min-height: 56px; padding: 12px 22px; font-size: 16px; }
  .hero-intro-copy small { margin: 7px 0 10px 16px; font-size: 11px; }
  .hero-intro img { padding: 0 12px 28px; }
  .hero-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 38% 62%;
  }
  .hero-motion-stage {
    grid-template-columns: 1fr;
    grid-template-rows: 38% 62%;
  }
  .hero-motion-stage video {
    grid-column: 1;
    grid-row: 2;
    padding: 10px 14px 86px;
  }
  .hero-copy { padding: 42px 20px 18px; }
  .hero-copy::before { width: 54px; height: 6px; margin-bottom: 18px; }
  .hero-step { margin-bottom: 10px; font-size: 11px; }
  .hero-copy p { font-size: clamp(34px, 10vw, 42px); line-height: 1.12; }
  .is-motion-trial .hero-copy {
    inset: 0 0 auto;
    width: 100%;
    height: min(50%, 370px);
    justify-content: flex-start;
    padding: 48px 20px 36px;
    background: linear-gradient(180deg, rgba(255, 253, 248, .98) 0%, rgba(255, 253, 248, .94) 75%, rgba(255, 253, 248, 0) 100%);
  }
  .is-motion-trial .hero-intro-copy {
    inset: 0 0 auto;
    width: 100%;
    height: min(72%, 470px);
    justify-content: flex-start;
    padding: 42px 20px 48px;
    background: linear-gradient(180deg, rgba(255, 253, 248, .98) 0%, rgba(255, 253, 248, .96) 82%, rgba(255, 253, 248, 0) 100%);
  }
  .is-motion-trial .hero-motion-stage video,
  .is-motion-trial .hero-slide img { object-position: 50% 50%; }
  .is-motion-trial .hero[data-scene="8"] .hero-motion-stage video,
  .is-motion-trial .hero[data-scene="8"] .hero-slide img { object-fit: contain; }
  .hero-slide img { padding: 10px 14px 86px; }
  .hero-navigation { bottom: 64px; left: 8px; gap: 0; }
  .hero-navigation button,
  .hero-navigation button.is-active {
    width: 28px;
    height: 40px;
    background: transparent;
    border-radius: 0;
  }
  .hero-navigation button::after {
    inset: 50% auto auto 50%;
    width: 9px;
    height: 9px;
    background: rgba(23, 56, 94, .25);
    border-radius: 999px;
    transform: translate(-50%, -50%);
  }
  .hero-navigation button.is-active { width: 36px; }
  .hero-navigation button.is-active::after { width: 26px; background: var(--ink); }
  .hero-skip { top: 12px; right: 12px; }
  .hero-end { right: 14px; bottom: 70px; left: 14px; flex-wrap: wrap; justify-content: center; transform: none; }
  .hero-end p { flex-basis: 100%; margin: 0; text-align: center; }
  .media-controls { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); left: 14px; justify-content: flex-end; }
  .media-controls button { padding: 9px 12px; }
  .movie-control-text, .sound-control-text { font-size: 12px; }
  .targets, .factory { padding: 76px 16px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: 32px; line-height: 1.2; }
  .target-grid { grid-template-columns: 1fr; gap: 10px; }
  .target-grid li { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 58%); }
  .target-card-art { height: 100%; min-height: 170px; aspect-ratio: auto; }
  .target-card-copy { align-self: center; padding: 18px 16px; }
  .target-grid h3 { margin: 10px 0 8px; font-size: clamp(17px, 4.7vw, 24px); }
  .target-grid p { font-size: 12px; line-height: 1.65; }
  .factory-heading > p { margin-bottom: 14px; }
  .factory-heading > span { display: block; margin-top: 20px; font-size: 14px; }
  .factory-overview { grid-template-columns: 1fr; gap: 24px; }
  .factory-overview-lead { font-size: 22px; }
  .factory-exterior-placeholder { min-height: 0; aspect-ratio: 16 / 10; }
  .factory-subheading { margin: 48px 0 20px; font-size: 21px; }
  .factory-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 10px; }
  .factory-gallery figcaption { padding-top: 8px; font-size: 12px; }
  .factory-profile > div { grid-template-columns: 78px 1fr; padding: 16px; }
  .factory-profile strong { font-size: 14px; }
  .factory-equipment { grid-template-columns: 1fr; gap: 24px; margin-top: 60px; }
  .factory-equipment h3 { font-size: 26px; }
}

@media (max-width: 760px) and (orientation: portrait) {
  .is-motion-clear .hero[data-scene="2"] .hero-motion-stage video,
  .is-motion-clear .hero[data-scene="2"] .hero-slide img,
  .is-motion-clear .hero[data-scene="3"] .hero-motion-stage video,
  .is-motion-clear .hero[data-scene="3"] .hero-slide img,
  .is-motion-clear .hero[data-scene="6"] .hero-motion-stage video,
  .is-motion-clear .hero[data-scene="6"] .hero-slide img,
  .is-motion-clear .hero[data-scene="8"] .hero-motion-stage video,
  .is-motion-clear .hero[data-scene="8"] .hero-slide img {
    position: absolute;
    inset: 32% 0 auto;
    height: 58%;
    object-fit: cover;
  }
  .is-motion-clear .hero[data-scene="8"] .hero-motion-stage video,
  .is-motion-clear .hero[data-scene="8"] .hero-slide img { object-fit: contain; }
  .is-motion-freezer .hero[data-scene="5"] .hero-motion-stage video,
  .is-motion-freezer .hero[data-scene="5"] .hero-slide img {
    position: absolute;
    inset: 32% 0 auto;
    height: 58%;
    object-fit: contain;
    transform: scale(1.45);
  }
}

@media (min-width: 761px) and (min-height: 501px) {
  .is-motion-flow .hero[data-scene="8"] .hero-copy,
  .is-motion-freezer .hero[data-scene="5"] .hero-copy {
    inset: 38px auto auto max(30px, calc((100vw - var(--max)) / 2));
    width: auto;
    max-width: calc(100% - 120px);
    padding: 0;
    justify-content: flex-start;
    background: transparent;
  }
  .is-motion-flow .hero[data-scene="8"] .hero-copy::before,
  .is-motion-freezer .hero[data-scene="5"] .hero-copy::before { width: 56px; height: 6px; margin-bottom: 12px; }
  .is-motion-flow .hero[data-scene="8"] .hero-step,
  .is-motion-freezer .hero[data-scene="5"] .hero-step { margin-bottom: 7px; }
  .is-motion-flow .hero[data-scene="8"] .hero-copy p,
  .is-motion-freezer .hero[data-scene="5"] .hero-copy p { font-size: clamp(28px, 2.6vw, 38px); }
  .is-motion-flow .hero[data-scene="8"] .hero-copy p br,
  .is-motion-freezer .hero[data-scene="5"] .hero-copy p br { display: none; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-intro {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
  }
  .hero-intro-copy { padding: 16px 12px 16px 20px; }
  .hero-intro-copy > span { margin-bottom: 6px; }
  .hero-intro-copy > p { margin-bottom: 8px; font-size: clamp(24px, 4vw, 34px); }
  .hero-intro-copy > strong { margin-bottom: 8px; padding: 4px 8px; font-size: 11px; }
  #experience-start { min-height: 44px; padding: 8px 16px; font-size: 14px; }
  .hero-intro-copy small { margin: 4px 0 5px 12px; font-size: 10px; }
  .hero-intro img { padding: 12px; }
  .is-motion-trial .hero-intro-copy,
  .is-motion-trial .hero-copy {
    inset: 0 auto 0 0;
    width: min(62%, 360px);
    height: 100%;
    justify-content: center;
    background: linear-gradient(90deg, rgba(255, 253, 248, .98) 0%, rgba(255, 253, 248, .95) 72%, rgba(255, 253, 248, 0) 100%);
  }
  .hero-slide, .hero-motion-stage {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr;
  }
  .hero-copy { padding: 20px 12px 58px 20px; }
  .hero-copy::before { margin-bottom: 10px; }
  .hero-step { margin-bottom: 5px; }
  .hero-copy p { font-size: clamp(28px, 4vw, 38px); }
  .hero-slide img { padding: 18px 12px 58px; }
  .hero-motion-stage video { grid-column: 2; grid-row: 1; padding: 18px 12px 58px; }
  .hero-navigation { bottom: 18px; left: 16px; }
  .media-controls { right: 10px; bottom: 8px; left: auto; }
  .media-controls button { min-height: 40px; padding: 8px 10px; }
  .hero-end { bottom: 54px; }
  .is-motion-flow .hero[data-scene="8"] .hero-copy,
  .is-motion-freezer .hero[data-scene="5"] .hero-copy {
    inset: 8px auto auto 18px;
    width: auto;
    height: auto;
    max-width: calc(100% - 100px);
    padding: 0;
    justify-content: flex-start;
    background: transparent;
  }
  .is-motion-flow .hero[data-scene="8"] .hero-copy::before,
  .is-motion-freezer .hero[data-scene="5"] .hero-copy::before { display: none; }
  .is-motion-flow .hero[data-scene="8"] .hero-step,
  .is-motion-freezer .hero[data-scene="5"] .hero-step { margin-bottom: 3px; }
  .is-motion-flow .hero[data-scene="8"] .hero-copy p,
  .is-motion-freezer .hero[data-scene="5"] .hero-copy p { font-size: clamp(18px, 3vw, 24px); }
  .is-motion-flow .hero[data-scene="8"] .hero-copy p br,
  .is-motion-freezer .hero[data-scene="5"] .hero-copy p br { display: none; }
  .is-motion-flow .hero-end {
    right: 10px;
    bottom: 8px;
    left: 10px;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 4px;
    transform: none;
  }
  .is-motion-flow .hero-end p { flex: 0 1 auto; font-size: clamp(10px, 2vw, 12px); }
  .is-motion-flow .hero-end button { flex: 0 0 auto; min-height: 44px; padding: 8px 12px; font-size: 12px; white-space: nowrap; }
  .is-motion-flow .hero-end a { display: inline-flex; flex: 0 0 auto; min-height: 44px; align-items: center; padding: 4px 8px; font-size: 12px; white-space: nowrap; }
  .is-motion-story .hero-end { flex-wrap: wrap; }
}

body { letter-spacing: normal; }
.hero-intro-photo { display: none; }
.hero-ai-notice { display: none; }
.is-motion-story .hero-intro-copy .hero-ai-notice { display: block; margin: -18px 0 14px; color: var(--muted); font-size: 12px; }
.is-motion-story .hero-intro { transition: opacity 1s ease, visibility 1s ease; }
.is-motion-story .hero-intro .hero-intro-illustration { display: none; }
.is-motion-story .hero-intro .hero-intro-photo { display: block; object-position: 55% 50%; transition: filter 1s ease, transform 1s ease; }
.is-motion-story .hero.is-started .hero-intro-photo { filter: blur(4px); transform: scale(1.015); }
.is-motion-story .hero-intro-copy { transition: opacity .25s ease; }
.is-motion-story .hero.is-started .hero-intro-copy { opacity: 0; }
.hero-intro-copy > span { font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.hero-intro-copy > p { font-family: inherit; font-size: clamp(32px, 3.2vw, 46px); font-weight: 700; letter-spacing: normal; line-height: 1.35; }
.hero-intro-copy > p span { display: inline; white-space: normal; }
.is-motion-story .hero-intro-copy > p span { display: inline-block; white-space: nowrap; }
.hero-intro-copy > strong { padding: 0; border: 0; background: transparent; font-size: clamp(15px, 1.2vw, 17px); font-weight: 600; letter-spacing: normal; }

@media (min-width: 761px) {
  .is-motion-story .hero[data-scene="1"] .hero-motion-stage video,
  .is-motion-story .hero[data-scene="1"] .hero-slide.is-active img {
    transform: scale(1.5);
    transform-origin: right center;
  }
}
.story-caption::before { display: none; }
.story-caption p { font-family: inherit; font-size: clamp(30px, 2.8vw, 40px); font-weight: 700; letter-spacing: normal; line-height: 1.45; }
.section-heading > p { color: var(--muted); font-weight: 600; letter-spacing: normal; }
.section-heading h2 { font-family: inherit; font-size: clamp(30px, 3vw, 42px); font-weight: 700; letter-spacing: normal; line-height: 1.4; }
.target-number { color: var(--muted); font-weight: 600; }
.target-grid h3 { font-size: clamp(19px, 1.6vw, 23px); font-weight: 700; line-height: 1.5; }
.target-grid p { line-height: 1.8; }
.factory-overview-lead { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; line-height: 1.6; }
.factory-equipment h3 { font-size: clamp(23px, 2.4vw, 30px); }

@media (max-width: 760px) {
  .hero-intro-copy > p { font-size: clamp(27px, 7.5vw, 32px); line-height: 1.4; }
  .hero-intro-copy > strong { font-size: 14px; }
  .story-caption p { font-size: clamp(25px, 7vw, 29px); line-height: 1.45; }
  .section-heading h2 { font-size: 26px; }
  .target-grid h3 { font-size: 17px; }
  .target-grid p { font-size: 14px; line-height: 1.7; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-intro-copy > p { font-size: clamp(24px, 4vw, 30px); }
  .story-caption p { font-size: clamp(20px, 4vw, 27px); }
}

@media (max-width: 760px) and (orientation: portrait) {
  .is-motion-story .hero-end { bottom: max(14px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media (max-width: 760px) and (orientation: portrait) {
  .is-motion-story .hero[data-scene="3"] .hero-motion-stage video,
  .is-motion-story .hero[data-scene="3"] .hero-slide img { object-fit: contain; transform: scale(1.14); }
}

.is-motion-story .hero-intro .hero-intro-art { display: block; object-position: 55% 50%; opacity: 0; }
.is-motion-story .hero.is-started .hero-intro-photo { filter: none; transform: none; }
.is-motion-story .hero.is-started.is-opening .hero-intro { visibility: visible; animation: opening-dissolve 3.6s ease both; }
.is-motion-story .hero.is-started.is-opening .hero-intro-art { animation: opening-illustration 3.6s linear both; }
.hero.is-timeline-paused .hero-intro, .hero.is-timeline-paused .hero-intro-art { animation-play-state: paused !important; }
.hero.is-opening .story-caption, .hero.is-opening .hero-navigation { visibility: hidden; opacity: 0; pointer-events: none; }
.hero.is-opening .media-controls, .hero.is-opening .hero-skip { z-index: 6; }
@keyframes opening-illustration { 0%, 8% { opacity: 0; } 65%, 100% { opacity: 1; } }
@keyframes opening-dissolve { 0%, 78% { opacity: 1; visibility: visible; } 90%, 100% { opacity: 0; visibility: hidden; } }
.order-chat { position: absolute; z-index: 4; top: 12%; right: 7%; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; color: #135d38; background: rgba(255,255,255,.96); border: 1px solid rgba(19,137,76,.25); border-radius: 999px; font-size: 15px; font-weight: 700; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .35s ease, visibility .35s ease; }
.order-chat-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; background: #06c755; border-radius: 12px; }
.order-chat-icon svg { width: 25px; height: 25px; }
.hero.is-started:not(.is-opening)[data-scene="3"] .order-chat { opacity: 1; visibility: visible; }
@media (max-width: 760px) and (orientation: portrait) { .order-chat { top: 25%; right: 5%; padding: 7px 12px 7px 7px; font-size: 13px; } .order-chat-icon { width: 34px; height: 34px; flex-basis: 34px; } .order-chat-icon svg { width: 22px; height: 22px; } .hero-end .line-end-preview { font-size: 12px; padding-inline: 12px; } }
@media (max-height: 500px) and (orientation: landscape) { .order-chat { top: 8%; right: 18%; padding: 4px 8px 4px 4px; font-size: 11px; } .order-chat-icon { width: 28px; height: 28px; flex-basis: 28px; } .order-chat-icon svg { width: 18px; height: 18px; } .is-motion-flow .hero-end { flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .hero-intro, .hero-intro-art { animation: none !important; } }

.opening-veil { position: absolute; z-index: 5; inset: 0; background: #fffdf8; opacity: 0; visibility: hidden; pointer-events: none; }
.hero.is-started.is-opening .opening-veil { visibility: visible; animation: opening-veil 3.6s ease both; }
.hero.is-timeline-paused .opening-veil { animation-play-state: paused !important; }
@keyframes opening-veil { 0%, 66% { opacity: 0; } 80%, 88% { opacity: .97; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .opening-veil { animation: none !important; } }

/* Keep the whole illustration in view without zooming when playback starts. */
.is-motion-story .hero.is-started[data-scene] .hero-motion-stage video,
.is-motion-story .hero.is-started[data-scene] .hero-slide img {
  object-fit: contain;
  transform: none;
}
.hero-loading-status {
  position: absolute;
  z-index: 7;
  right: 16px;
  bottom: 112px;
  left: 16px;
  width: fit-content;
  margin: 0 auto;
  padding: 8px 12px;
  border-radius: 4px;
  background: rgba(255, 253, 248, .96);
  color: #17385d;
  font-size: 13px;
}
.hero-loading-status[hidden] { display: none; }
#video-retry { border: 0; color: #17385d; background: transparent; text-decoration: underline; cursor: pointer; font: inherit; }


/* Confirmation-only notes and opening caption. */
.review-first-screen { display: flex; min-height: 100vh; min-height: 100svh; flex-direction: column; }
.review-first-screen > .hero { flex: 1 1 auto; min-height: 0; }
.review-notice { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 1em; row-gap: .15em; padding: 10px 18px; background: #f3e7d5; border-bottom: 1px solid #dfcbb1; color: #382f27; font-size: 13px; line-height: 1.5; text-align: center; }
.review-notice strong { font-size: 14px; }
.opening-title { position: absolute; z-index: 7; top: 19%; left: 50%; width: max-content; max-width: calc(100% - 40px); margin: 0; padding: 9px 23px; border-radius: 3px; background: rgba(255, 253, 248, .96); color: #382f27; font-size: clamp(16px, 2.2vw, 21px); font-weight: 700; text-align: center; transform: translateX(-50%); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .3s ease, visibility .3s ease; }
.hero.is-started.is-opening .opening-title { visibility: visible; opacity: 1; }
.is-motion-story .hero.is-started .hero-intro-copy { visibility: hidden; }
.opening-message { position: absolute; z-index: 7; right: 20px; bottom: 19%; left: 20px; display: flex; flex-direction: column; align-items: center; color: #fff; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,.9); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .3s ease, visibility .3s ease; }
.opening-message strong { font-size: clamp(24px, 4vw, 42px); line-height: 1.35; }
.opening-message span { margin-top: 6px; font-size: 12px; }
.hero.is-started.is-opening .opening-message { visibility: visible; opacity: 1; }
.hero-ending-headline { position: absolute; z-index: 4; top: 12%; right: 20px; left: 20px; margin: 0; color: #382f27; font-size: clamp(25px, 3.3vw, 42px); font-weight: 700; line-height: 1.4; text-align: center; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .4s ease, visibility .4s ease; }
.hero.is-complete .hero-ending-headline { visibility: visible; opacity: 1; }
@media (max-width: 600px) { .review-notice { flex-direction: column; padding: 8px 12px; font-size: 12px; } .review-notice strong { font-size: 13px; } .opening-title { top: 18%; } }
@media (max-height: 500px) and (orientation: landscape) { .review-notice { flex-direction: row; padding: 5px 10px; } .opening-title { top: 12%; padding: 5px 15px; font-size: 14px; } }


.hero-intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

/* Fade through a light veil so the footage and illustration do not double-expose. */
.is-motion-story .hero-intro .hero-intro-art { display: none; }
