/* NESCOの構図・面積・階層を再分析した初稿。参考素材は使用しない。 */
.surface--light { background: var(--color-paper-mid); }
.head { display: flex; flex-direction: column; gap: var(--sp-1); flex-shrink: 0; }
.eyebrow { font-family: var(--font-body); font-size: var(--fs-en); font-weight: 500; letter-spacing: 0.015em; line-height: 1.1; color: var(--color-accent); }
/* ぼかしを使う文字の描画領域に上下の余裕を確保。負の余白で行高・位置は保つ。 */
.en-letter { display: inline-block; padding-block: 0.12em 0.22em; margin-block: -0.12em -0.22em; }
.steam-layer { position: absolute; inset: 0; z-index: 3; display: block; width: 100%; height: 100%; pointer-events: none; }
.chapter-title { font-family: var(--font-head); font-size: var(--fs-head); font-weight: 700; line-height: 1.5; letter-spacing: 0.015em; }
.chapter-tag { display: block; font-size: var(--fs-min); line-height: 1.5; color: var(--color-ink); margin-bottom: var(--sp-1); }
.txt { display: grid; gap: var(--sp-p); flex-shrink: 0; }
.kw { font-size: inherit; font-weight: 700; }
.support-head { position: relative; display: flex; flex-direction: column; gap: var(--sp-1); }
.support-head:has(.steam-layer--heading) { isolation: isolate; }
.steam-layer--heading { z-index: -1; overflow: clip; }
.support-head .support-title[data-on-photo] { text-shadow: 0 0 2px var(--color-paper); }
.support-title { font-size: var(--fs-head); font-weight: 700; line-height: 1.5; }
.support-head .eyebrow { font-size: clamp(40px, 7dvh, 60px); }
.surface--spec .eyebrow { font-size: clamp(32px, min(7dvh, calc((min(100vw, 480px) - 48px) / 7)), 60px); white-space: nowrap; }
.support-machinery { position: absolute; right: 0; top: 0; width: 54px; height: 48px; color: var(--color-copper-dark); opacity: 0.28; }

.scene-maintenance::before, .scene-company::before, .surface--spec::before, .surface--entry::before { content: ""; position: absolute; inset: calc(var(--header-h) + 16px) 20px 16px; pointer-events: none; background: url("assets/growth-pipe-complete-v1.svg?v=20261022h") right bottom / 75% auto no-repeat; opacity: 0.12; }


/* Message：文字を主役にし、方眼と真鍮の小さな機構を残す。 */
.scene-message { background: var(--bg-grid-light), var(--color-paper); --lh-body: 2.05; --fs-base: clamp(13px, 2.26dvh, 16px); }
.scene-message .head, .scene-message .txt { padding-inline: 12px; }
.scene-message .head { gap: 12px; }
.scene-message .eyebrow { font-size: 18px; line-height: 1.3; letter-spacing: 0.04em; color: var(--color-copper-dark); }
.scene-message .chapter-title { font-size: clamp(21px, 3.4dvh, 24px); line-height: 1.55; }
.scene-message .txt { gap: 1em; }
.scene-message .closing { padding-block-start: 0.25em; }
.mechanism { position: relative; height: clamp(105px, 20dvh, 210px); width: 100%; display: flex; justify-content: flex-end; flex-shrink: 0; }
.mechanism::before { content: ""; position: absolute; inset: -10% -4% -10% 18%; background: radial-gradient(ellipse, var(--color-brass-highlight), var(--color-copper-haze) 45%, var(--color-clear) 70%); }
.message-emphasis { font-weight: 700; }
.scene-message .closing { font-size: 1.08em; }
.mechanism__image { position: absolute; inset: 0; display: block; width: 100%; max-width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 4px var(--color-shadow)); }
/* Company：写真左下の余白へラベルを差し込み、英字と本文をつなぐ。 */
.scene-work { background: var(--bg-grid-light), var(--color-paper); --fs-base: clamp(13px, 2.26dvh, 16px); --lh-body: 1.9; }
.company-visual { position: relative; height: clamp(142px, 28.4dvh, 270px); flex-shrink: 0; isolation: isolate; }
.machine-photo { position: absolute; right: 0; top: 0; width: auto; height: 100%; aspect-ratio: 1.14; }
.machine-photo__image { display: block; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
.scene-work .eyebrow { font-size: clamp(42px, 7dvh, 58px); font-weight: 500; letter-spacing: 0.04em; line-height: 1.15; }
.scene-work .chapter-title { font-size: clamp(20px, 3.3dvh, 24px); line-height: 1.5; }
.company-shape { position: absolute; z-index: -1; display: block; background: var(--color-accent); }
.company-shape--hex { width: clamp(50px, 9dvh, 76px); aspect-ratio: 1.14; left: 2%; top: 24%; clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
.company-shape--triangle { width: 30px; aspect-ratio: 1; right: 0; top: 0; background: var(--color-main); clip-path: polygon(50% 0,100% 100%,0 100%); }
.company-shape--square { width: 6px; height: 6px; left: 12%; bottom: 30%; background: var(--color-copper-dark); }
.scene-work .head { margin-top: calc(-22px - var(--sp-g)); gap: 6px; }
.scene-work .chapter-tag { width: max-content; margin: 0; }
.scene-work .txt { gap: 1em; }
/* 後続は了承された白い紙面・文字の階層へそろえる。先頭3画面に波及させない。 */
.scene-continuation { --fs-base: clamp(13px, 2.26dvh, 16px); --lh-body: 1.9; background: var(--bg-grid-light), var(--color-paper); }
.scene-continuation .head { gap: 6px; }
.scene-continuation .eyebrow { font-size: clamp(42px, 7dvh, 58px); line-height: 1.15; letter-spacing: 0.04em; }
.scene-continuation .chapter-title { font-size: clamp(21px, 3.5dvh, 26px); line-height: 1.5; }
.scene-continuation .chapter-tag { margin: 0; }
/* Works：3つの面、真鍮の縁と立体歯車。 */
.scene-growth::before { content: ""; position: absolute; inset: calc(var(--header-h) + 16px) 12% 15% 0; background: var(--color-copper-pale); opacity: 0.6; clip-path: polygon(0 0,62% 0,100% 50%,62% 100%,0 100%); }
.growth-copy { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; flex-shrink: 0; }
.growth-step { display: grid; grid-template-columns: 28% 1fr; align-items: stretch; border: 1px solid var(--color-frame-line); border-radius: 4px; overflow: hidden; background: var(--color-paper); color: var(--color-ink); box-shadow: 0 2px 0 var(--color-copper-wash); }
.growth-step__visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: clamp(62px, 12dvh, 118px); background: linear-gradient(var(--color-paper-glass), var(--color-paper-glass)), url("assets/steampunk-parchment-panel-v1.webp?v=20261022i") center / cover; border-right: 1px solid var(--color-frame-line); padding: 10px; }
.growth-step__visual::before, .growth-step__visual::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--bg-copper-metal); top: 5px; }
.growth-step__visual::before { left: 5px; }
.growth-step__visual::after { right: 5px; }
.growth-step__visual img, .growth-step__visual svg { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; color: var(--color-copper-dark); }
.growth-gear { animation: gear-turn var(--dur-cog) linear infinite; animation-play-state: paused; }
.page.is-active .growth-gear, .page.is-active .support-machinery { animation-play-state: running; }
.growth-step__copy { display: flex; align-items: center; padding: 0.7em 0.7em; font-size: var(--fs-base); line-height: 1.85; }
.growth-close { font-weight: 700; padding-block-start: var(--sp-p); }
/* Person：切り角の鉄色の面。機械の枠は縁だけに置き、文字の地は無地。 */
.scene-rest[data-tone="dark"] { --lh-body: 1.75; --pad-y: 24px; background: var(--bg-dark); color: var(--color-on-dark); }

.scene-rest::after { content: ""; position: absolute; inset: calc(var(--header-h) + 14px) 12px 14px; border: 6px solid var(--color-clear); border-image: url("assets/steampunk-iron-panel-v1.webp?v=20261022i") 180 / 6px stretch; opacity: 0.48; pointer-events: none; }
.scene-rest .page__inner { padding-inline: 34px; }
.scene-rest .eyebrow { color: var(--color-on-dark); font-size: clamp(36px, 6.5dvh, 52px); }
.rest-clock { width: 100%; height: clamp(85px, 17dvh, 200px); flex-shrink: 0; }
.rest-clock__drawing { display: block; width: 100%; height: 100%; filter: drop-shadow(0 6px 5px var(--color-shadow)); }
.rest-locations { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-p); }
.rest-location { padding: 0.65em; background: var(--color-rest-panel); border: 1px solid var(--color-frame-warm); line-height: 1.65; }
.rest-location .kw { white-space: nowrap; color: var(--color-brass-highlight); }
/* Environment：工具の六角形を3つ、階段状に。 */
.maintenance-tools { display: block; flex-shrink: 0; height: clamp(90px, 21dvh, 215px); width: 100%; }
.maintenance-tools__drawing { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4px 3px var(--color-shadow)); }
/* Movie：無加工の写真と、鋳鉄色の曲面。真鍮は計器と細い輪郭に。 */
.scene-potential[data-tone="dark"] { --pad-y: clamp(22px, 4dvh, 40px); background: var(--bg-dark); }
.potential-card { display: flex; flex-direction: column; flex-shrink: 0; gap: var(--sp-g); }
.potential-photo { position: relative; height: clamp(100px, 18dvh, 210px); flex-shrink: 0; }
.potential-photo__image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; border-radius: 3px; }
.potential-panel { position: relative; display: flex; flex-direction: column; gap: var(--sp-p); padding: 0; color: var(--color-on-dark); }

.potential-panel .eyebrow { color: var(--color-on-dark); }
.potential-panel .chapter-title { font-size: clamp(20px, min(3.4dvh, calc((min(100vw, 480px) - 88px) / 14.3)), 24px); }
.potential-close { font-weight: 700; color: var(--color-ink); background: var(--color-paper); padding: 0.65em 0.8em; border-left: 3px solid var(--color-accent); }
/* Recruit：白い紙面、縦の導線、線画の余韻。 */
.scene-closing { --lh-body: 1.75; }
.scene-closing .page__inner { gap: var(--sp-p); }
.scene-closing .chapter-title { font-size: clamp(20px, 3.2dvh, 24px); }
.closing-questions { flex-shrink: 0; }
.closing-question { display: block; }
.closing-question--next { margin-top: var(--sp-p); color: var(--color-copper-dark); }
.closing-action { display: grid; gap: var(--sp-p); flex-shrink: 0; }
.closing-links { display: grid; gap: 7px; }
.closing-link { display: flex; align-items: center; justify-content: space-between; min-height: clamp(46px, 7dvh, 78px); padding: var(--sp-1) var(--sp-g); border: 1px solid var(--color-frame-line); border-radius: 4px; color: var(--color-on-dark); font-weight: 700; background: var(--color-main); box-shadow: 0 2px 0 var(--color-copper-wash); }
.closing-link--entry { background: var(--color-copper-panel); }
.closing-link span { display: grid; place-items: center; border: 1px solid var(--color-on-dark-line); border-radius: 50%; width: 1.8em; height: 1.8em; line-height: 1; }
.closing-gears { position: relative; height: clamp(24px, 5dvh, 58px); overflow: hidden; }
.closing-gears::before, .closing-gears::after { content: ""; position: absolute; left: 0; width: calc(100% + 240px); height: 45%; background: url("assets/gear-strip.svg?v=20261022h") left center / 240px 100% repeat-x; animation: gears-process var(--dur-gear-line) linear infinite; }
.closing-gears::before { top: 0; opacity: 0.55; }
.closing-gears::after { bottom: 0; animation-direction: reverse; opacity: 0.35; }
/* Profile：表の縦線をそろえ、蒸気機関を大きく見せる。 */
.scene-company .head { gap: 6px; }
.scene-company .support-title { font-size: 18px; }
.company-info { flex-shrink: 0; border-top: 1px solid var(--color-frame-line); }
.company-info .req__row { border-color: var(--color-frame-line); }
.company-machine { position: relative; height: clamp(130px, 29dvh, 310px); width: 100%; flex-shrink: 0; }
.company-machine::before { content: ""; position: absolute; inset: 18% 0 0; background: linear-gradient(var(--color-paper-glass), var(--color-paper-glass)), url("assets/steampunk-parchment-panel-v1.webp?v=20261022i") center / cover; border: 1px solid var(--color-frame-warm); border-radius: 50%; }
.company-machine__image { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 4px var(--color-shadow)); }
/* 補助ページも白い方眼と小さな真鍮の印へ統一。本文と入力は無地。 */
.scene-continuation .support-head { gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--color-frame-line); }
.scene-continuation .support-head .support-title { font-size: 18px; }
.scene-continuation .support-machinery { width: 30px; height: 30px; object-fit: contain; opacity: 1; animation: gear-turn var(--dur-cog) linear infinite; animation-play-state: paused; }
.scene-continuation.surface--spec .eyebrow { font-size: clamp(32px, min(7dvh, calc((min(100vw, 480px) - 48px) / 7)), 54px); white-space: nowrap; }
.surface--spec .req { border-top: 0; }
.scene-continuation .req__row { border-color: var(--color-frame-line); }
.scene-continuation .field__input { border-color: var(--color-frame-line); }
.form-preview-button { cursor: default; }
#entry .form, #entry .field { min-width: 0; grid-template-columns: minmax(0, 1fr); }
#entry #f-date { display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; -webkit-appearance: none; appearance: none; text-align: left; }
#entry #f-date::-webkit-date-and-time-value { min-width: 0; text-align: left; }
#entry #f-date::-webkit-datetime-edit { min-width: 0; padding: 0; }
/* PCの固定帯。紙と右上の立体イラストは復活させない。 */
.rail-brand { position: relative; z-index: 1; display: grid; gap: 18px; width: min(100%, 280px); color: var(--color-on-dark); }
.rail-brand__rule { width: 52px; height: 2px; background: var(--color-accent); }
.rail-brand__name { font-size: clamp(19px, 1.7vw, 28px); font-weight: 700; line-height: 1.6; letter-spacing: 0.06em; white-space: nowrap; }
.rail-brand__en { color: var(--color-copper-light); font-family: var(--font-en); font-size: 14px; letter-spacing: 0.25em; }
.rail-brand__job { font-size: 15px; font-weight: 500; line-height: 1.8; }
.steampunk-rail { background: var(--bg-dark); }
.steampunk-rail::before { content: ""; position: absolute; inset: 24px; pointer-events: none; opacity: 0.3; background: url("assets/growth-pipe-complete-v1.svg?v=20261022h") left top / min(70%, 260px) auto no-repeat; }
.steampunk-rail::after { content: ""; position: absolute; right: 24px; bottom: 24px; width: min(calc((100% - 48px) * 0.86), 400px); aspect-ratio: 1; pointer-events: none; opacity: 0.3; background: url("assets/growth-cog-complete-v1.svg?v=20261022h") center / contain no-repeat; transform: rotate(var(--rail-angle, 0deg)); }
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .steampunk-rail::after { transition: transform 900ms var(--ease-out); }
}
.rail-side { position: relative; z-index: 1; }
.rail-caption { font-family: var(--font-en); color: var(--color-copper-light); letter-spacing: 0.16em; font-size: 14px; }
.rail-counter { color: var(--color-paper); font-family: var(--font-en); font-size: clamp(64px, 7vw, 110px); font-weight: 500; line-height: 1; }
.rail-progress { display: flex; gap: 5px; }
.rail-progress__mark { width: 16px; height: 2px; background: var(--color-on-dark-line); opacity: 0.3; }
.rail-progress__mark.is-current { opacity: 1; background: var(--color-accent); }
@keyframes gear-turn { to { transform: rotate(360deg); } }
@keyframes tool-work { 0%, 100% { rotate: 0deg; } 25% { rotate: -3deg; } 70% { rotate: 3deg; } }
@keyframes gears-process { to { transform: translateX(-240px); } }
@media (prefers-reduced-motion: no-preference) {
  .mechanical-rotor { transform-box: view-box; transform-origin: var(--mechanical-axis); animation: gear-turn var(--mechanical-period, 18s) linear infinite; animation-direction: var(--mechanical-direction, normal); animation-play-state: paused; }
  .tool-joint { transform-box: view-box; transform-origin: var(--tool-axis, 55px 47.63px); animation: tool-work var(--dur-tool) ease-in-out infinite; animation-play-state: paused; }
  .tool-joint--driver { animation-duration: 3.6s; animation-direction: reverse; }
  .page.is-active .mechanical-rotor, .page.is-active .tool-joint { animation-play-state: running; }
  html[data-illustration-paused] .mechanical-rotor, html[data-illustration-paused] .tool-joint, html[data-illustration-paused] .mechanism__watch-rotor, html[data-illustration-paused] .growth-gear, html[data-illustration-paused] .support-machinery { animation-play-state: paused; }
  .mechanism__watch-rotor { transform-box: view-box; transform-origin: var(--watch-axis); animation: gear-turn var(--watch-period) linear infinite; animation-direction: var(--watch-direction); animation-play-state: paused; }
  .page.is-active .mechanism__watch-rotor { animation-play-state: running; }
}
@media (max-height: 600px) {
  .eyebrow { font-size: 40px; }
  .company-visual { height: 125px; }
  .scene-message { --lh-body: 1.85; }
  .scene-message .head { gap: 7px; }
  .scene-message .txt, .scene-work .txt { gap: 0.65em; }
  .scene-work .eyebrow { font-size: 40px; }
  .scene-continuation { --lh-body: 1.75; }
  .scene-continuation .eyebrow { font-size: 40px; }
  .scene-continuation .chapter-title { font-size: 21px; }
  .scene-rest .eyebrow { font-size: 34px; }
  .rest-clock { height: 76px; }
  .mechanism { height: 88px; }
  .growth-step__visual { min-height: 54px; }
  .growth-step__copy { padding: 0.55em 0.4em; }
  .maintenance-tools { height: 105px; }
  .potential-photo { height: 95px; }
  .potential-panel { gap: 0.55em; }
  .scene-potential[data-tone="dark"] { --pad-y: 20px; }
  .potential-close { padding: 0.45em 0.7em; }
  .potential-panel .chapter-title { font-size: 20px; }
  .company-machine { height: 135px; }
}
@media (min-height: 900px) {
  .mechanism { height: min(25dvh, 280px); }
  .company-visual { height: min(30dvh, 330px); }
  .growth-step__visual { min-height: min(12dvh, 130px); }
  .rest-clock { height: min(24dvh, 260px); }
  .scene-closing { --lh-body: 2.05; }
  .scene-closing .chapter-title { font-size: 28px; }
  .scene-closing .closing-link { min-height: 96px; }
  .potential-photo { height: min(23dvh, 250px); }
}
/* 出現の開始は土台の .is-on。各ページの性格に合わせた短い組み立て。 */
@media (prefers-reduced-motion: no-preference) {
  .rv[data-enter] { transform: none; transition: none; }
  .page.is-active .rv.is-on[data-enter] {
    animation: var(--enter-keyframes, enter-focus) var(--enter-duration, 720ms) var(--ease-out) backwards;
  }
  .rv[data-enter="focus"] { --enter-keyframes: enter-focus; }
  .rv[data-enter="left"] { --enter-keyframes: enter-left; }
  .rv[data-enter="right"] { --enter-keyframes: enter-right; }
  .rv[data-enter="rise"] { --enter-keyframes: enter-rise; }
  .rv[data-enter="fade"] { --enter-keyframes: enter-fade; }
  .rv[data-enter="photo"] { --enter-keyframes: enter-depth; }
  .rv[data-enter="depth"] { --enter-keyframes: enter-depth; }
  .rv[data-enter="turn"] { --enter-keyframes: enter-turn; }
  .rv[data-enter="drop"] { --enter-keyframes: enter-drop; }
  .page.is-active .rv.is-on[data-enter] [data-enter-item] {
    animation: var(--item-keyframes, enter-rise) var(--item-duration, 560ms) var(--ease-out) var(--item-delay, 0ms) backwards;
  }
  [data-enter-item="left"] { --item-keyframes: enter-left; }
  [data-enter-item="right"] { --item-keyframes: enter-right; }
  [data-enter-item="rise"] { --item-keyframes: enter-rise; }
  [data-enter-item="focus"] { --item-keyframes: enter-focus; }
  [data-enter-item="fade"] { --item-keyframes: enter-fade; }
  [data-enter-item="vapor"] { --item-keyframes: enter-vapor; }
  [data-enter-item="depth"] { --item-keyframes: enter-depth; }
  [data-enter-item="part"] { --item-keyframes: enter-part; transform-box: fill-box; transform-origin: center; }
  [data-enter-item="wipe-left"] { --item-keyframes: enter-wipe-left; }
  [data-enter-item="wipe-up"] { --item-keyframes: enter-wipe-up; }
  .page.is-active .rv.is-on[data-enter="photo"]::after {
    content: ""; position: absolute; inset: 5px; pointer-events: none; opacity: 0;
    background: linear-gradient(110deg, var(--color-clear) 32%, var(--color-frame-highlight) 45%, var(--color-clear) 58%);
    background-size: 260% 100%; animation: enter-photo-light 950ms ease-out backwards;
  }
  @keyframes enter-focus {
    from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
  }
  @keyframes enter-left {
    from { opacity: 0; transform: translateX(-26px); filter: blur(2px); }
    to { opacity: 1; transform: none; filter: none; }
  }
  @keyframes enter-right {
    from { opacity: 0; transform: translateX(26px); filter: blur(2px); }
    to { opacity: 1; transform: none; filter: none; }
  }
  @keyframes enter-rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes enter-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes enter-vapor {
    from { opacity: 0; filter: blur(4px); transform: translateY(5px); }
    70% { opacity: 1; filter: blur(0.4px); }
    to { opacity: 1; filter: none; transform: none; }
  }
  @keyframes enter-depth {
    from { opacity: 0; transform: perspective(700px) rotateX(7deg) translateY(12px) scale(0.94); filter: blur(3px); }
    to { opacity: 1; transform: none; filter: none; }
  }
  @keyframes enter-turn {
    from { opacity: 0; transform: translateY(14px) rotate(-7deg) scale(0.84); filter: blur(4px); }
    to { opacity: 1; transform: none; filter: none; }
  }
  @keyframes enter-drop {
    from { opacity: 0; transform: translateY(-22px) rotate(2deg) scale(0.92); filter: blur(3px); }
    to { opacity: 1; transform: none; filter: none; }
  }
  @keyframes enter-part {
    from { opacity: 0; translate: 0 18px; scale: 0.9; }
    to { opacity: 1; translate: none; scale: none; }
  }
  @keyframes enter-wipe-left {
    from { clip-path: inset(0 100% 0 0); transform: scale(1.06); filter: blur(3px); }
    to { clip-path: inset(0); transform: none; filter: none; }
  }
  @keyframes enter-wipe-up {
    from { clip-path: inset(100% 0 0 0); transform: scale(1.06); filter: blur(3px); }
    to { clip-path: inset(0); transform: none; filter: none; }
  }
  @keyframes enter-photo-light {
    0% { opacity: 0; background-position: 100% 0; }
    22% { opacity: 0.8; }
    100% { opacity: 0; background-position: 0 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .steam-layer { display: none; }
}
/* 各節の外周に枠線主体の歯車。本文の配置は変えず背景として合成する。 */
.scene-ornaments { --ornament-opacity: 0.2; position: absolute; inset: var(--header-h) 0 0; overflow: hidden; pointer-events: none; color: var(--color-copper-dark); }
.ambient-gears { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.ambient-pipe, .ambient-hex { opacity: var(--ornament-opacity); }
.ambient-pipe { position: absolute; left: -10px; bottom: 8%; width: 96px; height: 36%; border: 5px double currentColor; border-left: 0; border-bottom: 0; border-radius: 0 30px 0 0; }
.ambient-pipe::before, .ambient-pipe::after { content: ""; position: absolute; height: 12px; width: 18px; right: -12px; border: 1px solid currentColor; }
.ambient-pipe::before { top: 28px; }
.ambient-pipe::after { top: 70%; }
.ambient-hex { position: absolute; left: -28px; top: 9%; width: 72px; height: 84px; background: currentColor; clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%,25% 0,26% 3%,4% 50%,26% 97%,74% 97%,96% 50%,74% 3%,26% 3%); }
.scene-message .scene-ornaments { --ornament-opacity: 0.24; }
.scene-closing .scene-ornaments { --ornament-opacity: 0.25; }
.page[data-tone="dark"] .scene-ornaments { --ornament-opacity: 0.17; color: var(--color-copper-light); }
.scene-potential .ambient-pipe { bottom: 2%; }
/* Message・Work（p5）・Growth（p3）：歯車から離し、右側の空きへ。 */
.scene-message .ambient-pipe, .scene-growth .ambient-pipe, .scene-maintenance .ambient-pipe { left: auto; right: -10px; bottom: auto; transform: scaleX(-1); }
.scene-message .ambient-pipe { top: 44%; height: 22%; }
.scene-growth .ambient-pipe { top: 2%; height: 24%; }
.scene-maintenance .ambient-pipe { top: 60%; height: 20%; }
/* Recruit：左下と右上の歯車の両方から離した右側へ。 */
.scene-closing .ambient-pipe { left: auto; right: -10px; top: calc(5% + 254px); bottom: auto; transform: scaleX(-1); }
@media (prefers-reduced-motion: no-preference) {
  .ambient-pipe { animation: ambient-drift 14s ease-in-out infinite alternate; animation-play-state: paused; }
  .ambient-hex { animation: ambient-drift 18s ease-in-out infinite alternate-reverse; animation-play-state: paused; }
  .page.is-active .scene-ornaments > * { animation-play-state: running; }
  .page.is-active .scene-ornaments { animation: ornament-arrive 1.1s var(--ease-out) both; }
  html[data-illustration-paused] .scene-ornaments > * { animation-play-state: paused; }
  @keyframes ambient-drift { to { translate: 0 -12px; } }
  @keyframes ornament-arrive { from { translate: 0 12px; } to { translate: 0 0; } }
}
@media (max-height: 720px) {
  .mechanism { height: clamp(80px, 14dvh, 105px); }
  .scene-message .closing { font-size: 1em; }
}
.text-m{
	font-size: 0.8rem;
	color: #555;
}
