@charset "UTF-8";
/*--------------------------------------------------------
AI副業コンシェルジュ
座標は 900 x 1464 のデザインカンプ基準
--------------------------------------------------------*/
body {
  background: #ffffff;
}

/* 背景は全画面共通でここに固定（画面の切り替えで動かさない） */
.app {
  width: min(100%, 664px);
  margin-inline: auto;
  overflow: hidden;
  background: #086bd0 url(../img/nkoeh_bg.png) center / cover no-repeat;
}

.screen {
  position: relative;
  display: none;
  width: 100%;
  aspect-ratio: 900 / 1464;
  overflow: hidden;
  container-type: inline-size;
  isolation: isolate;
}

.screen.is-active {
  display: block;
}

.screen.is-entering {
  animation: screen-in 200ms cubic-bezier(.2, .75, .3, 1) both;
}

.screen.is-leaving {
  animation: screen-out 200ms ease-in both;
  pointer-events: none;
}

@keyframes screen-in {
  from { opacity: 0; transform: translate3d(2.5cqw, 0, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes screen-out {
  to { opacity: 0; transform: translate3d(-2cqw, 0, 0); }
}

/* FV は画面全体が絵なのでスライドさせずフェードのみ */
.screen-fv.is-entering { animation-name: fade-in; }
.screen-fv.is-leaving { animation-name: fade-out; }

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes fade-out {
  to { opacity: 0; }
}

.screen img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}

.layer {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  pointer-events: none;
}

.layer-title { z-index: 2; }
.layer-meter { z-index: 4; }
.quiz-woman { z-index: 1; }
.quiz-robot { z-index: 3; }
.quiz-speech { z-index: 3; }
.layer-panel { z-index: 4; }
.layer-btn { z-index:6; pointer-events: auto; }

/*--------------------------------------------------------
配置（900 x 1464 のカンプ基準）
left = x ÷ 9 / top = y ÷ 14.64 / width = 幅 ÷ 9
--------------------------------------------------------*/
.layer-meter { top: 14.8907%; }
.quiz-robot { width: 29.7778%; }

/* FV */
.screen-fv .layer-btn { top: 77.3224%; }

/* 診断 共通 */
.screen-quiz .quiz-woman { top: 22%; }
.screen-quiz .quiz-speech { left: 37.8889%; top: 25.2732%; width: 62.1111%; }

/* 質問1 */
.screen-q1 .quiz-woman { width: 67.7778%; }
.screen-q1 .quiz-robot { left: 57.2222%; top: 41.6667%; }
.screen-q1 .quiz-speech { left: 42.5556%; top: 25.9563%; width: 57.4444%; }

/* 質問2 */
.screen-q2 .quiz-woman { width: 66.8889%; }
.screen-q2 .quiz-robot { left: 55.5556%; top: 40.9836%; }

/* 質問3 */
.screen-q3 .quiz-woman { width: 62.1111%; }
.screen-q3 .quiz-robot { left: 57.7778%; top: 39.6175%; }

/* 質問4 */
.screen-q4 .quiz-woman { width: 65.5556%; }
.screen-q4 .quiz-robot { left: 58.3333%; top: 40.9836%; }

/* 質問5 */
.screen-q5 .quiz-woman { width: 73.2222%; }
.screen-q5 .quiz-robot { left: 57.2222%; top: 40.9836%; }

/* 選択肢（縦並び） */
.quiz-choice { left: 2.7778%; width: 94.4444%; aspect-ratio: 850 / 210; }
.choice-1 { top: 55.4645%; }
.choice-2 { top: 67.9645%; }
.choice-3 { top: 80.4645%; }

/* 選択肢（2列） */
.is-grid .quiz-choice { width: 53.3333%; aspect-ratio: 480 / 240; }
.is-grid .choice-1 { left: -0.4444%; top: 55.7377%; }
.is-grid .choice-2 { left: 48.4444%; top: 55.7377%; }
.is-grid .choice-3 { left: -0.4444%; top: 70.4918%; }
.is-grid .choice-4 { left: 48.4444%; top: 70.4918%; }

/* AI解析中 */
.screen-analyzing .quiz-woman { top: 17.5%; width: 75.6667%; }
.screen-analyzing .quiz-speech { left: 40.4444%; top: 15.7104%; width: 59.5556%; }
.screen-analyzing .quiz-robot { left: 57.3333%; top: 35.5874%; }
.screen-analyzing .layer-panel { left: 2.2222%; top: 54.0492%; width: 95.5556%; }

/* 診断結果 */
.screen-result .quiz-woman { top: 15.4809%; width: 75.6667%; }
.screen-result .quiz-speech { left: 45.2222%; top: 18.306%; width: 54.7778%; }
.screen-result .layer-panel { left: 2.2222%; top: 32.582%; width: 95.5556%; }
.screen-result .layer-btn { left: 2.2222%; top: 81.0109%; width: 95.5556%; }

/* LINE誘導 */
.screen-line .quiz-woman { top: 16.847%; width: 87.3333%; }
.screen-line .quiz-speech { left: 34%; top: 19.5355%; width: 66%; }
.screen-line .quiz-robot { left: 69.5556%; top: 63.5246%; }
.screen-line .layer-btn { left: 2.2222%; top: 76.1612%; width: 95.5556%; }

/*--------------------------------------------------------
FV
--------------------------------------------------------*/
.screen-fv {
  cursor: pointer;
  background: #076bc2;
}

.fv-video {
  position: absolute;
  left: 0;
  top: 27.3224%;
  width: 100%;
  height: 72.6776%;
  object-fit: cover;
  pointer-events: none;
}

/* 動画は再生が始まるまで透明にし、下の静止画を見せる（低電力モードの再生ボタンも出さない） */
video.fv-video {
  opacity: 0;
}

video.fv-video.is-playing {
  opacity: 1;
}

.fv-header { z-index: 1; }

/*--------------------------------------------------------
キャラクター
--------------------------------------------------------*/
.quiz-woman img {
  animation: woman-float 2.4s ease-in-out infinite;
  will-change: transform;
}

@keyframes woman-float {
  0%, 100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -1.2cqw, 0);
  }
}

.quiz-robot img {
  transform-origin: 50% 65%;
  animation: robot-float 2.8s ease-in-out infinite;
  animation-delay: -0.8s;
  will-change: transform;
}

@keyframes robot-float {
  0%, 100% {
    transform: translate3d(-0.25cqw, 0.2cqw, 0)
               rotate(-1.8deg);
  }
  50% {
    transform: translate3d(0.4cqw, -1.5cqw, 0)
               rotate(1.8deg);
  }
}

/* LINE画面：ボタンを指さすように上下 */
.quiz-robot.is-pointing {
  z-index: 5;
}

.quiz-robot.is-pointing img {
  animation: robot-point 1.5s ease-in-out infinite reverse;
}

@keyframes robot-point {
  0%, 100% {
    transform: translate3d(0, 1.2cqw, 0);
  }
  50% {
    transform: translate3d(0, -1cqw, 0);
  }
}

/*--------------------------------------------------------
選択肢
--------------------------------------------------------*/
.quiz-choice {
  position: absolute;
  z-index: 5;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 130ms ease;
  pointer-events: none;
}

.choice-hit {
  position: absolute;
  inset: 10% 5%;
  pointer-events: auto;
}

.quiz-choice:disabled {
  cursor: default;
}

.quiz-choice:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -8px;
  border-radius: 3cqw;
}

.quiz-choice:active,
.quiz-choice.is-selected {
  transform: scale(.988);
}

.quiz-choice img {
  position: absolute;
  inset: 0;
  height: 100% !important;
  pointer-events: none;
  transition: opacity 100ms linear;
}

.quiz-choice .choice-on { opacity: 0; }
.quiz-choice.is-selected .choice-off { opacity: 0; }
.quiz-choice.is-selected .choice-on { opacity: 1; }

/*--------------------------------------------------------
AI解析中ローダー（nkoeh_03.png の砂時計に重ねる）
--------------------------------------------------------*/
.ai-loader {
  --speed: 1.8s;
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 73.56%;
  width: 26.6667%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ai-loader::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid rgb(0 205 255 / 15%);
  border-width: 0.666667cqw;
  border-top-color: #00d5ff;
  border-right-color: #00d5ff;
  border-bottom-color: #00d5ff;
  border-radius: 50%;
  filter: drop-shadow(0 0 5px rgb(0 205 255 / 70%));
  animation: ai-spin var(--speed) linear infinite;
}

@keyframes ai-spin {
  to {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------
ボタン
--------------------------------------------------------*/
.layer-btn a,
.layer-btn button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 光が横切るアニメーション（ボタン画像自体をマスクにして形に沿わせる） */
.btn-shine button {
  position: relative;
  overflow: hidden;
  -webkit-mask: url(../img/nkoeh_btn_01.png) center / 100% 100% no-repeat;
  mask: url(../img/nkoeh_btn_01.png) center / 100% 100% no-repeat;
}

.btn-shine button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 25%, rgba(255, 255, 255, .6) 50%, rgba(255, 255, 255, 0) 75%);
  transform: translateX(-100%) skewX(-15deg);
  animation: shine 2s linear infinite;
  pointer-events: none;
}

@keyframes shine {
  20%, 100% { transform: translateX(100%) skewX(-15deg); }
}

/*--------------------------------------------------------
フッター表記
--------------------------------------------------------*/
.screen-legal {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: .55%;
  margin: 0;
  color: #093263;
  font: 400 1.55556cqw/1.2 -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", sans-serif;
  text-align: center;
}

.screen-legal a {
  color: inherit;
}

.screen-legal a:hover {
  text-decoration: underline;
}

.screen-copyright {
  display: block;
  font-size: 1.33333cqw;
}
