/* 試作3: 今のホームページに足す動き。色は今のサイトの決まり(墨・白・ライム)だけを使う */
:root { --fx-mono: "DotGothic16", ui-monospace, monospace; --fx-hud: #F2F2EE; --fx-dim: #A3A79B; --fx-edge: #3a3b36; --fx-lime: #9BCB00; --fx-lime-hi: #C6F432; --fx-black: #0b0b0a; }

/* 看板 */
.fx-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero > .wrap { transition: opacity .5s ease; }
.hero.fx-gather > .wrap { opacity: 0; pointer-events: none; }

.fx-ch { display: inline-block; }
.fx-call { position: absolute; z-index: 2; left: max(var(--gutter), env(safe-area-inset-left, 0px)); bottom: 14px; font: 400 13px/1 var(--fx-mono); color: var(--fx-dim); background: none; border: 1px solid var(--fx-edge); border-radius: 4px; padding: 9px 12px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; min-height: 34px; }
.fx-call i { width: 7px; height: 7px; border-radius: 50%; background: var(--fx-lime); }
.fx-call:hover, .fx-call:focus-visible { color: var(--fx-hud); border-color: var(--fx-hud); }
.fx-call:focus-visible, .fx-time button:focus-visible, .fx-time input:focus-visible { outline: 2px solid var(--fx-lime-hi); outline-offset: 2px; }

/* 窓 */
/* PC: 看板と窓を2列の格子に置く(窓が伸びても看板の帯ごと伸びるので見切れない) */
@media (min-width: 861px) {
  .hero > .wrap { min-height: 700px; grid-template-columns: minmax(0, 1fr) min(500px, 42vw); grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: var(--sp-7); padding-bottom: 88px; }
  .hero .wrap > :not(.hero-peek) { max-width: 560px; grid-column: 1; }
  .hero .wrap > .eyebrow { grid-row: 2; } .hero .wrap > h1 { grid-row: 3; } .hero .wrap > .lead { grid-row: 4; } .hero .wrap > .hero-actions { grid-row: 5; }
  .hero-peek { position: static; transform: none; width: auto; grid-column: 2; grid-row: 1 / -1; align-self: center; }
}
.hero-peek .peek-foot, .hero-peek .peek-chips { flex-wrap: wrap; }
/* 社員紹介: 絵の上に重ねず、窓のすぐ下に差し込む */
.hero-peek .peek-card { position: relative; top: auto; left: auto !important; transform: none; width: auto; margin-top: 16px; background: var(--fx-black); color: var(--fx-hud); border: 1px solid var(--fx-hud); box-shadow: none; }
.hero-peek .peek-card-kind, .hero-peek .peek-card span { color: var(--fx-lime-hi); }
.hero-peek.peek .peek-card a { color: var(--fx-lime-hi); }
.hero-peek .peek-card .peek-close { color: var(--fx-hud); }
.fx-cam2 .peek-board { color: var(--fx-lime-hi); }
.fx-cam2.is-night .peek-board { opacity: .9; }
.fx-cam2 .peek-stage { background: #0b0c0e; }
@media (max-width: 860px) {
  .hero-peek { position: static; transform: none; width: 100%; max-width: 520px; order: 9; margin-top: var(--sp-5); }
  .hero .wrap > :not(.hero-peek) { max-width: none; }
  .hero > .wrap { padding-bottom: 72px; }
  .hero-peek .peek-foot, .hero-peek .peek-chips { flex-wrap: wrap; }
  .fx-call { bottom: 20px; }
}
.hero-peek .peek-head { margin-bottom: 14px; }
.fx-hud { position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.fx-hud .peek-stage { border-color: var(--fx-edge); }
.fx-corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--fx-hud); pointer-events: none; z-index: 3; transition: transform .3s var(--ease); }
.fx-corner.tl { left: -7px; top: -7px; border-right: 0; border-bottom: 0; }
.fx-corner.tr { right: -7px; top: -7px; border-left: 0; border-bottom: 0; }
.fx-corner.bl { left: -7px; bottom: -7px; border-right: 0; border-top: 0; }
.fx-corner.br { right: -7px; bottom: -7px; border-left: 0; border-top: 0; }
.fx-hud:hover .fx-corner.tl { transform: translate(-3px, -3px); } .fx-hud:hover .fx-corner.tr { transform: translate(3px, -3px); }
.fx-hud:hover .fx-corner.bl { transform: translate(-3px, 3px); } .fx-hud:hover .fx-corner.br { transform: translate(3px, 3px); }
.fx-lines { position: absolute; inset: 3px; pointer-events: none; z-index: 2; background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.16) 2px 3px); overflow: hidden; }
.fx-lines::after { content: ""; position: absolute; left: 0; right: 0; height: 22%; top: -25%; background: linear-gradient(to bottom, rgba(242,242,238,0), rgba(242,242,238,.07), rgba(242,242,238,0)); }
.fx-on .fx-lines::after { animation: fx-sweep 5.5s linear infinite; }
@keyframes fx-sweep { to { top: 105%; } }
.fx-boot { position: absolute; inset: 3px; z-index: 4; background: var(--fx-black); display: grid; place-items: center; font: 400 13px/1.6 var(--fx-mono); color: var(--fx-hud); pointer-events: none; text-align: center; }
.fx-boot::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--fx-hud); transform: scaleX(0); }
.fx-boot.go { animation: fx-open .55s .75s cubic-bezier(.7,0,.2,1) forwards; }
.fx-boot.go::before { animation: fx-beam .7s ease-out forwards; }
.fx-boot.go span { animation: fx-fade .2s .7s forwards; }
@keyframes fx-beam { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
@keyframes fx-open { 0% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(50% 0 50% 0); visibility: hidden; } }
@keyframes fx-fade { to { opacity: 0; } }
.fx-glitch .peek-stage canvas { animation: fx-gl .22s steps(3); }
@keyframes fx-gl { 0% { transform: translateX(-4px); filter: contrast(1.5) brightness(1.3); } 50% { transform: translateX(3px); } 100% { transform: none; filter: none; } }
.fx-reticle { position: absolute; z-index: 3; pointer-events: none; border: 0; transition: left .12s, top .12s, width .12s, height .12s; }
.fx-reticle::before, .fx-reticle::after { content: ""; position: absolute; inset: -4px; border: 2px solid var(--fx-lime-hi); clip-path: polygon(0 0, 30% 0, 30% 100%, 0 100%); }
.fx-reticle::after { clip-path: polygon(70% 0, 100% 0, 100% 100%, 70% 100%); }
.fx-reticle b { position: absolute; left: -4px; bottom: calc(100% + 7px); font: 400 11px/1 var(--fx-mono); background: var(--fx-lime-hi); color: #111111; padding: 3px 5px; white-space: nowrap; }
.fx-read { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font: 400 12px/1.4 var(--fx-mono); color: var(--fx-dim); letter-spacing: .04em; }
.fx-read b { font-weight: 400; color: var(--fx-hud); }
.fx-time { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; margin-top: 10px; font: 400 13px/1 var(--fx-mono); color: var(--fx-hud); }
.fx-time label { color: var(--fx-dim); }
.fx-time output { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.fx-time .fx-btns { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.fx-time button { font: 400 13px/1 var(--fx-mono); color: var(--fx-hud); background: none; border: 1px solid var(--fx-edge); border-radius: 4px; padding: 8px 10px; min-height: 34px; cursor: pointer; }
.fx-time button:hover { border-color: var(--fx-hud); }
.fx-time button[aria-pressed="true"] { background: var(--fx-hud); color: #111111; border-color: var(--fx-hud); }
.fx-time button:disabled { opacity: .4; cursor: default; }
.fx-time input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.fx-time input[type="range"]::-webkit-slider-runnable-track { height: 10px; background: repeating-linear-gradient(to right, var(--fx-edge) 0 1px, rgba(0,0,0,0) 1px calc(100% / 24)); border-bottom: 1px solid var(--fx-dim); }
.fx-time input[type="range"]::-moz-range-track { height: 10px; background: repeating-linear-gradient(to right, var(--fx-edge) 0 1px, rgba(0,0,0,0) 1px calc(100% / 24)); border-bottom: 1px solid var(--fx-dim); }
.fx-time input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--fx-lime); border: 0; margin-top: -2px; }
.fx-time input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--fx-lime); border: 0; }

/* 作ったもの: ポインターで傾く */
@media (hover: hover) {
  .fx-on .work .work-link { display: block; perspective: 1000px; }
  .fx-on .work .shot { position: relative; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .2s ease-out; will-change: transform; }
  .fx-on .work .shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--gl, 0); transition: opacity .2s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,.28), rgba(255,255,255,0) 45%); }
  .fx-on .log > li { position: relative; transition: padding-left .2s var(--ease); }
  .fx-on .log > li::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--lime); transform: scale(0); transition: transform .2s var(--ease); }
  .fx-on .log > li:hover { padding-left: 22px; }
  .fx-on .log > li:hover::before { transform: scale(1); }
}

/* お問い合わせの帯: 点の波 */
.cta { position: relative; overflow: hidden; }
.cta > .wrap { position: relative; z-index: 1; }
.page-head, .contact-box { position: relative; overflow: hidden; }
.page-head > .wrap, .contact-box > :not(.fx-dots) { position: relative; z-index: 1; }
.page-head::after { content: ""; opacity: 0; position: absolute; left: 0; bottom: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); z-index: 2; }
.fx-on .page-head::after { animation: fx-run 1.6s cubic-bezier(.6, 0, .2, 1) .2s both; }
@keyframes fx-run { from { left: 0; opacity: 1; } 85% { opacity: 1; } to { left: 100%; opacity: 0; } }
@media (hover: hover) {
  .fx-on .roles > li, .fx-on .facts > div { transition: transform .2s var(--ease); }
  .fx-on .roles > li:hover, .fx-on .facts > div:hover { transform: translateX(8px); }
}
.fx-dots { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

/* 一番下: お問い合わせとフッターを1つにまとめた帯 */
.fx-terrain { -webkit-mask-image: linear-gradient(to right, rgba(0,0,0,.3), #000 62%); mask-image: linear-gradient(to right, rgba(0,0,0,.3), #000 62%); }
.fx-end > .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); padding-block: var(--sp-9) calc(var(--sp-6) + env(safe-area-inset-bottom, 0px)); }
.fx-end-main { display: grid; gap: var(--sp-5); }
.fx-end-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); align-content: start; }
.fx-end-side ul { list-style: none; display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.fx-end-side a { font-size: .9375rem; }
.cta .fx-end-label { font-size: var(--fs-small); color: var(--band-sub); font-weight: 700; letter-spacing: .08em; }
.cta .fx-end-copy { grid-column: 1 / -1; max-width: none; display: flex; align-items: center; gap: var(--sp-3); border-top: 1px solid var(--band-line); padding-top: var(--sp-5); font-size: var(--fs-small); color: var(--band-sub); }
.fx-end-copy img { width: 30px; height: auto; }
.fx-end-copy b { color: var(--band-ink); }
@media (min-width: 861px) { .fx-end > .wrap { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: var(--sp-8); } }

/* ついてくる点 */
.fx-cursor { position: fixed; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--fx-lime); pointer-events: none; z-index: 90; opacity: 0; transition: opacity .2s; }

.fx-note { background: var(--surface); color: var(--sub); font-size: var(--fs-small); text-align: center; padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

@media (prefers-reduced-motion: reduce) {
  .fx-boot { display: none; } .fx-hud { transform: none; } .fx-glitch .peek-stage canvas { animation: none; }
}

/* 看板の下: ひらめき → 形(文の代わりに、実際の例が入れ替わる) */
.fx-spark { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); column-gap: 14px; align-items: start; margin: var(--sp-5) 0 var(--sp-6); }
.fx-spark p { margin: 0; max-width: none; }
.fx-spark-k { font-size: 12px; font-weight: 700; letter-spacing: .14em; line-height: 27px; color: var(--band-sub); white-space: nowrap; }
.fx-spark-idea { color: var(--band-sub); font-size: 16px; line-height: 27px; min-height: 27px; }
.fx-spark.is-typing .fx-spark-idea span::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -2px; background: var(--band-ink); }
.fx-spark-rail { position: relative; height: 20px; }
.fx-spark-rail::before { content: ""; position: absolute; left: 5px; top: 2px; bottom: 2px; width: 1px; background: var(--fx-edge); }
.fx-spark-rail i { position: absolute; left: 1.5px; top: 0; width: 8px; height: 8px; border-radius: 2px; background: var(--fx-lime); transform: translateY(0) scale(0); transition: transform .36s cubic-bezier(.5, 0, .2, 1); }
.fx-spark.is-run .fx-spark-rail i { transform: translateY(12px) scale(1); }
.fx-spark-made { font-size: 19px; line-height: 30px; min-height: 30px; font-weight: 900; }
.hero .fx-spark .fx-spark-made a { color: var(--band-ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.fx-spark-made a:hover, .fx-spark-made a:focus-visible { background-size: 100% 1px; }
.fx-spark-made .arr { display: inline-block; margin-left: 6px; opacity: 0; transition: opacity .3s ease .25s; }
.fx-spark.is-made .fx-spark-made .arr, .fx-spark:not(.is-live) .fx-spark-made .arr { opacity: 1; }
.fx-spark-n { font: 400 12px/1 var(--fx-mono); color: #74766e; margin-top: 10px; letter-spacing: .08em; }
.fx-spark-idea, .fx-spark-made { transition: opacity .35s ease; }
.fx-spark.is-out .fx-spark-idea, .fx-spark.is-out .fx-spark-made { opacity: 0; }
.fx-spark:not(.is-live) .fx-spark-rail i { transform: translateY(12px) scale(1); }
@media (min-width: 861px) { .hero .wrap > .fx-spark { grid-row: 4; } }
@media (max-width: 860px) { .fx-spark { grid-template-columns: minmax(0, 1fr); } .fx-spark > span:empty { display: none; } .fx-spark-k { line-height: 20px; font-size: 11px; } .fx-spark-rail { height: 16px; margin: 2px 0; } .fx-spark.is-run .fx-spark-rail i, .fx-spark:not(.is-live) .fx-spark-rail i { transform: translateY(8px) scale(1); } .fx-spark-n { margin-top: 8px; } }

/* ---- 立体の窓 ---- */
.nw {
  --bg: #111111; --panel: #1C1C1A; --ink: #F2F2EE; --sub: #A3A79B; --line: #2E2F2B; --edge: #3a3b36;
  --lime: #9BCB00; --lime-hi: #C6F432; --black: #0b0b0a;
  --mono: "DotGothic16", ui-monospace, monospace; --body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  
 font-family: var(--body); color: var(--ink); }
.nw .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; font-family: var(--mono); border-top: 1px solid var(--line); padding-top: 12px; }
.nw .head .wtitle { margin: 0; font: 400 22px/1.3 var(--mono); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.nw .head .wtitle span { font-size: 13px; letter-spacing: .2em; color: var(--lime-hi); }
.nw .clock { margin: 0; font-size: 14px; color: #ddd; display: flex; align-items: center; gap: 10px; }
.nw .clock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.nw .stage { position: relative; aspect-ratio: 4 / 3; max-width: 100%; background: var(--black); border: 1px solid var(--edge); border-radius: 6px; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.nw .stage.drag { cursor: grabbing; }
.nw .stage canvas { display: block; width: 100%; height: 100%; }
.nw .bubble { position: absolute; left: 0; top: 0; font: 400 12px/1.4 var(--mono); background: #fff; color: #111; padding: .4em .7em; border: 2px solid #111; box-shadow: 3px 3px 0 var(--lime); white-space: nowrap; pointer-events: none; transform: translate(-50%, -100%); max-width: 90%; overflow: hidden; text-overflow: ellipsis; }
.nw .bubble small { display: block; font-size: .85em; color: #4A6400; }
.nw .hint { position: absolute; left: 12px; bottom: 10px; margin: 0; font: 400 12px/1 var(--mono); color: var(--ink); background: rgba(11,11,10,.6); padding: 6px 8px; border-radius: 4px; pointer-events: none; transition: opacity .4s; }
.nw .read { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font: 400 13px/1.4 var(--mono); color: var(--sub); }
.nw .read b { font-weight: 400; color: var(--ink); }
.nw .ctrl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px 12px; align-items: center; font: 400 14px/1 var(--mono); }
.nw .ctrl label { color: var(--sub); }
.nw .ctrl output { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
.nw .btns { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.nw button { font: 400 14px/1 var(--mono); color: var(--ink); background: none; border: 1px solid var(--edge); border-radius: 4px; padding: 9px 11px; min-height: 36px; cursor: pointer; }
.nw button:hover { border-color: var(--ink); }
.nw button:focus-visible, .nw input:focus-visible { outline: 2px solid var(--lime-hi); outline-offset: 2px; }
.nw button[aria-pressed="true"] { background: var(--ink); color: #111; border-color: var(--ink); }
.nw button:disabled { opacity: .4; cursor: default; }
.nw input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.nw input[type="range"]::-webkit-slider-runnable-track { height: 10px; background: repeating-linear-gradient(to right, var(--edge) 0 1px, rgba(0,0,0,0) 1px calc(100% / 24)); border-bottom: 1px solid var(--sub); }
.nw input[type="range"]::-moz-range-track { height: 10px; background: repeating-linear-gradient(to right, var(--edge) 0 1px, rgba(0,0,0,0) 1px calc(100% / 24)); border-bottom: 1px solid var(--sub); }
.nw input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); border: 0; margin-top: -2px; }
.nw input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--lime); border: 0; }
.nw .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nw .chips button { display: inline-flex; align-items: center; gap: 8px; }
.nw .chips i { width: 10px; height: 10px; border: 1px solid #111; }
.nw .card { position: relative; background: var(--black); border: 1px solid var(--ink); padding: 14px 44px 12px 16px; font-size: 14px; line-height: 1.7; }
.nw .card p { margin: 0; }
.nw .card .kind, .nw .card span { color: var(--lime-hi); font-size: 12px; font-weight: 700; margin-right: 8px; }
.nw .card .name { font: 400 20px/1.3 var(--mono); }
.nw .card .x { position: absolute; top: 4px; right: 6px; border: 0; font-size: 20px; min-height: 36px; width: 36px; padding: 0; }
.nw * { box-sizing: border-box; } .nw { display: grid; gap: 12px; } .nw .head .wtitle { font-size: 18px; } .nw .head { border-top-color: #2a2a2a; } .nw .ctrl, .nw button { font-size: 13px; } .nw .read { font-size: 12px; } .nw .card p { margin: 0; }

/* 2026-11-13 スマホ表示の見直し: 指で押しやすい大きさにそろえる */
@media (max-width: 860px) {
  .hero > .wrap { padding-top: var(--sp-7); padding-bottom: 88px; }
  .nw button { min-height: 44px; font-size: 14px; }
  .nw .ctrl { font-size: 14px; }
  .nw .btns { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .nw .btns button { grid-column: span 2; padding-inline: 4px; white-space: nowrap; }
  .nw .btns #play, .nw .btns #now { grid-column: span 3; }
  .nw .chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nw .chips button { justify-content: center; padding-inline: 4px; }
  .nw input[type="range"] { height: 44px; }
  .nw input[type="range"]::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -7px; }
  .nw input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; }
  .nw .bubble { font-size: 13px; }
  .nw .bubble small { font-size: 12px; }
  .nw .card .x { min-height: 44px; width: 44px; }
  .fx-call { min-height: 44px; font-size: 14px; bottom: 22px; }
}
