/* ===== 2026-11-10：トップのファーストビュー（部品に分けた形） =====
   見た目は前の1枚の絵（img/TOP.png・D.png・ream.png・esign.png・PARK.png）と同じ。
   位置と幅は、すべて絵（1541×974）に対する割合。前の測り方と合わせてある。
   動きは js/fv.js。前の .TOP .dream .design .park .d1 .d2 .ream .esign（style.css）は、もう使っていない */

.fv__stage {
  position: relative;
  width: 80vw;
  margin: 20px;
  aspect-ratio: 1541 / 974;
  touch-action: pan-y; /* 縦のスクロールはそのまま */
  -webkit-tap-highlight-color: transparent;
}
.fv__bg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.fv__bg circle { fill: #F4F4F4; }

.fv__ph { position: absolute; width: 10.124%; aspect-ratio: 1; }
.fv__ph--shelf { left: 52.40%; top: 17.71%; }
.fv__ph--monitor { left: 30.79%; top: 41.12%; }
.fv__ph--plant { left: 52.40%; top: 64.01%; }
.fv__ph-in { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; }
.fv__ph img { display: block; width: 100%; height: 100%; }

.fv__believe { position: absolute; left: 63.98%; top: 23.20%; width: 8.955%; }
.fv__believe img { display: block; width: 100%; height: auto; }

.fv__word { position: absolute; left: var(--l); top: var(--t); width: var(--w); aspect-ratio: var(--ar); }
.fv__word--d1    { --l: 2.50%;  --t: 16.02%; --w: 9.50%;  --ar: 145 / 161; }
.fv__word--ream  { --l: 12.43%; --t: 20.13%; --w: 37.00%; --ar: 571 / 126; }
.fv__word--d2    { --l: 46.25%; --t: 40.44%; --w: 9.50%;  --ar: 145 / 161; }
.fv__word--esign { --l: 55.75%; --t: 41.32%; --w: 37.00%; --ar: 588 / 216; }
.fv__word--park  { --l: 2.50%;  --t: 63.80%; --w: 47.50%; --ar: 737 / 161; }
.fv__ch { position: absolute; top: 0; height: 100%; transform-origin: 50% 100%; cursor: pointer; }
.fv__ch img {
  display: block; width: 100%; height: 100%;
  -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}

/* 動きの準備ができるまで（画像がそろうまで）は隠しておく。JSが動かなかったときのため、4秒たったら出す */
.fv-js .fv__stage:not(.is-ready) { visibility: hidden; animation: fv-show 0s 4s forwards; }
@keyframes fv-show { to { visibility: visible; } }
/* ヘッダーは、ファーストビューの動きに合わせて js/fv.js で出す（前の「1.8秒後に5秒かけて」は使わない）
   JSが動かなかったときだけ、4秒たったらふわっと出す */
.fv-js .view { opacity: 0; animation: fadein .8s ease-out 4s forwards; }
.fv-js .view.is-shown { opacity: 1; }

/* スマホ：幅いっぱい。文字の位置と幅だけ、前のスマホ版に合わせて少し変える */
@media screen and (max-width: 575px) {
  .fv__stage { width: 100%; margin: 0; }
  .fv__word--d1    { --l: 4.00%;  --t: 16.00%; --w: 8.93%; }
  .fv__word--ream  { --l: 14.07%; --t: 19.81%; --w: 34.78%; }
  .fv__word--d2    { --l: 47.00%; --t: 40.50%; --w: 8.93%; }
  .fv__word--esign { --l: 55.93%; --t: 41.39%; --w: 34.78%; }
  .fv__word--park  { --l: 4.00%;  --t: 63.50%; --w: 44.50%; }
}

/* 「動きを減らす」設定の人には動かさない（js/fv.js でも止める） */
@media (prefers-reduced-motion: reduce) {
  .fv-js .fv__stage:not(.is-ready) { visibility: visible; animation: none; }
  .fv-js .view { opacity: 1; }
}

/* ===== 2026-11-12：スクロールで「Design の D の中へ入る」（本人の案） =====
   スクロールしても画面が止まって見えて、動画のように動く（画面を止めておく「ピン留め」）。
   .fvx の高さぶんだけスクロールするあいだ、.fvx__pin が画面に止まり、js/fvx.js が動かす。
   ① Design の D がまん中に来て、穴（扉）が白く光る → ② 扉の中へ進む → ③「デジタルとデザインを、体験に！」が下から出てくる
   JSが動かないとき・「動きを減らす」設定の人には、前と同じふつうのファーストビュー（.is-on がつかない） */
.fvx { position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
.fvx__door, .fvx__scene, .fvx__cue { display: none; }

/* 止める画面の高さは 100lvh（スマホでアドレスバーが引っこんだときの、いちばん大きい高さ）。
   100svh だと、スクロール中にアドレスバーが引っこんだとき、画面の下に白い帯が出る。dvh は高さが細かく変わってガタつく */
.fvx.is-on { --fvx-len: 240lvh; height: calc(100lvh + var(--fvx-len)); }
.fvx.is-on .fvx__pin { position: sticky; top: 0; height: 100lvh; display: flex; flex-direction: column; justify-content: flex-start; }
/* 画面の背が低いパソコンでも、ファーストビューが止まったときに全部入るように */
.fvx.is-on:not(.is-tall) .fv__stage { width: min(80vw, calc((100svh - var(--fvx-hd, 84px) - 40px) * 1541 / 974)); }
/* 縦長の画面（スマホ・縦のタブレット）は、ファーストビューを画面のまん中に */
.fvx.is-on.is-tall { --fvx-len: 200lvh; }
.fvx.is-on.is-tall .fvx__pin { justify-content: center; padding-bottom: calc(var(--fvx-hd, 70px) + 100lvh - 100svh); } /* アドレスバーが出ているときの見える高さの、まん中あたりに */
.fvx.is-on .fv__stage { will-change: transform; } /* 拡大のはじめにカクッとしないよう、はじめから別の層にしておく */
/* 拡大中と扉の中は、大きくなったファーストビューが下へはみ出してページが長くならないように切る（前は、PCでページのいちばん下に白いすき間ができていた） */
.fvx.is-in .fvx__pin { overflow: clip; }
.fvx.is-in .fvx__scene { will-change: transform; }

.fvx.is-on .fvx__door { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; visibility: hidden; }
.fvx__d { fill: #41b79c; }
.fvx__room, .fvx__white { fill: #fff; }

.fvx.is-on .fvx__scene {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: absolute; inset: 0; z-index: 3; padding: 0 20px; text-align: center;
  pointer-events: none; visibility: hidden;
}
/* 2026-11-12：扉の中のコピーは英語（日本語は、すぐ下の ABOUT の MISSION にあるので。本人の案） */
.fvx__copy { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: bold; line-height: 1.2; letter-spacing: -.01em; color: #484848; }
.fvx__line { display: block; font-size: clamp(26px, 4.4vw, 64px); }
.fvx__line--big { font-size: clamp(44px, 9vw, 136px); line-height: 1.08; letter-spacing: -.02em; }
@media screen and (max-width: 575px) {
  .fvx__line--big { font-size: 15vw; } /* スマホは「into」と「Experience!」の2行になる */
}
.fvx__w { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .04em .03em .1em; margin: 0 -.03em; }
.fvx__w > span { display: inline-block; transform: translateY(110%); }
.fvx__w.is-g { color: #41b79c; }
.fvx__en { margin-top: 30px; font-family: Helvetica, Arial, sans-serif; font-size: clamp(11px, 1.1vw, 14px); letter-spacing: .4em; color: #41b79c; opacity: 0; }

/* 下に「SCROLL」と、流れる線（さわる前の合図） */
.fvx.is-on .fvx__cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: absolute; left: 50%; bottom: calc(var(--fvx-hd, 84px) + 14px + 100lvh - 100svh); transform: translateX(-50%);
  margin: 0; font-family: Helvetica, Arial, sans-serif; font-size: 11px; letter-spacing: .3em; color: #41b79c; pointer-events: none;
}
.fvx__cue::after { content: ""; width: 1px; height: 44px; background: linear-gradient(#41b79c 50%, rgba(65, 183, 156, .15) 50%) 0 0 / 1px 200% no-repeat; animation: fvx-cue 1.6s ease-in-out infinite; }
@keyframes fvx-cue { from { background-position: 0 100%; } to { background-position: 0 -100%; } }
.fvx.is-tall .fvx__cue { bottom: calc(var(--fvx-hd, 70px) + 10px + 100lvh - 100svh); }
