/*
 * service-mobility.css
 * Pokke移動ガイド（/mobility/）固有スタイル。service.css の後に読み込む。
 *
 * プロトタイプでこのページだけに読み込まれていたCSSを同じ順番でつなげ、
 * このページで使うクラスに当たる指定だけを残している。
 */


/* =============================================
   配色
   ============================================= */

body.page-mobility .page-nav,
body.page-mobility .service-hero,
body.page-mobility .pokke-section,
body.page-mobility .inquiry {
  --color-primary: #F2643A;
  --color-primary-hover: #D9522B;
  --service-bg-accent: #FFF1EA;
}

body.page-mobility .service-hero.guide-hero {
  background: linear-gradient(115deg, #FF5A4F 0%, #FF783F 45%, #FF9B34 100%) !important;
}

body.page-mobility .gh-chip {
  box-shadow: 0 10px 30px rgba(120, 40, 10, .22);
}

body.page-mobility .guide-about { --ga-tint: #FFF1EA; }

body.page-mobility .guide-about::before,
body.page-mobility .guide-about::after {
  background: radial-gradient(closest-side, rgba(242, 100, 58, .09), rgba(242, 100, 58, .03) 62%, rgba(242, 100, 58, 0));
}

body.page-mobility .gp-scope__col ul li { background: #FFF1EA; }

/* =============================================
   FVの図の置き場所（マップのFVと同じく、右半分に重ねる）
   ============================================= */
.xh-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50vw;
  overflow: hidden;
  container-type: size;
  pointer-events: none;
}

.xm-chip--1 { top: 8%;     left: 50%; translate: -120% 0; }
.xm-chip--2 { bottom: 10%; left: 50%; translate: 40% 0;  animation-delay: -2s; }

/* =============================================
   チャットガイド：LINEの画面を2枚重ねる
     奥：観光案内のアカウント（お店のカード・選択肢・リッチメニュー）
     手前：物語仕立ての会話が順に出る
   ============================================= */

/* 会話は8秒で1回り：順に出て、最後に消えて最初から */
@keyframes xc-in {
  0%   { opacity: 0; transform: translateY(1cqh); }
  6%   { opacity: 1; transform: none; }
  88%  { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}

/* =============================================
   移動ガイド：傾けたタブレットに、音声プレーヤーと地図
   ============================================= */

@keyframes xm-progress {
  to { width: 92%; }
}

@keyframes xm-ring {
  from { opacity: .9; transform: scale(.8); }
  to   { opacity: 0;  transform: scale(1.5); }
}

/* =============================================
   スマホ：テキストの上にビジュアル（マップと同じ高さ）
   ============================================= */
@media screen and (max-width: 834px) {
  .xh-stage {
    left: 0;
    bottom: auto;
    width: 100%;
    height: 380px;
  }

  
  

  
  

  

  

  .xm-chip--1 { top: 5%;    left: 16px; translate: 0 0; }
  .xm-chip--2 { bottom: 5%; left: auto; right: 16px; translate: 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .xh-stage *,
  .xc-msg {
    animation: none !important;
    opacity: 1 !important;
  }
}

/* サービス名が長いので、FVの見出しは1行に収まる大きさに */
@media screen and (min-width: 835px) {
  body.page-chat .service-hero__title,
  body.page-mobility .service-hero__title {
    font-size: 52px;
    white-space: nowrap;
  }
}

@media screen and (max-width: 834px) {
  body.page-chat .service-hero__title,
  body.page-mobility .service-hero__title {
    font-size: 30px;
    white-space: nowrap;
  }
}

/* =============================================
   料金プラン
   ・カードが1枚のときは中央に1枚だけ置く
   ・チャットガイドは金額の代わりに「お問い合わせください」
   ============================================= */
.service-pricing__cards--single {
  grid-template-columns: minmax(0, 460px);
}

@media screen and (max-width: 640px) {
  .service-pricing__cards--single {
    grid-template-columns: minmax(0, 1fr);
  }

  
}

/* =============================================
   チャットガイドのFV（作り直し）
     手前：会話は上から順に1つずつ出て、出たものは消さない（入りきらなくなったら上へ送る。動かすのは chat/index.html のスクリプト）
     奥：お店のカードが横にゆっくり送られ、選択肢が順に押される
   ============================================= */

@keyframes xc-pop {
  from { opacity: 0; transform: translateY(1.2cqh) scale(.96); }
  to   { opacity: 1; transform: none; }
}

@keyframes xc-dot {
  0%, 100% { opacity: .35; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-.5cqh); }
}

@keyframes xc-carousel {
  0%, 22%   { transform: translateX(0); }
  28%, 50%  { transform: translateX(calc(-62% - 1.2cqh)); }
  56%, 78%  { transform: translateX(calc(-124% - 2.4cqh)); }
  84%, 99.9% { transform: translateX(calc(-186% - 3.6cqh)); }
  100%      { transform: translateX(0); }
}

@keyframes xc-tap {
  0%, 30%, 100% { background: #3A4257; }
  8%, 22%       { background: #06C755; }
}

/* =============================================
   チャットガイド：サービス紹介の「LINEで配信・運用」のスマホ
   横長の写真を縦の枠に入れて崩れていたので、LINEの画面をHTMLで描いて枠にぴったり収める
   （文字や余白は画面の高さに対する割合＝cqh で指定し、枠の大きさが変わっても同じ見た目に）
   ============================================= */

/* =============================================
   移動ガイドのFV（作り直し）：立体的に傾けたタブレット
     参考のモックのように、薄い黒いふちのタブレットを斜め上から見た角度で置く（裏向きの台はなし）
     画面の中身（プレーヤーと地図）はHTML・SVGなので、どの大きさでも粗くならない
   ============================================= */
.xm3 {
  position: absolute;
  inset: 0;
  perspective: 1600px;
}

.xm3-tab {
  position: absolute;
  top: 48%;
  left: 52%;
  width: min(86cqw, 110cqh);
  aspect-ratio: 1.43;
  padding: 1.4cqh;
  border-radius: 4.4cqh;
  background: #121317;
  box-shadow:
    0 0 0 .45cqh #3C3F47,
    0 0 0 .7cqh #1A1B1F,
    0 5cqh 10cqh rgba(60, 20, 0, .28);
  transform: translate(-50%, -50%) rotateZ(-20deg) rotateX(24deg) rotateY(-16deg);
  transform-style: preserve-3d;
  animation: xm3-float 7s ease-in-out infinite;
}

@keyframes xm3-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -1.8cqh; }
}

/* 側面のカメラ（小さな点） */
.xm3-tab::after {
  content: "";
  position: absolute;
  top: 50%;
  right: .5cqh;
  width: .6cqh;
  height: .6cqh;
  border-radius: 50%;
  background: #2C2E35;
  transform: translateY(-50%);
}

.xm3-tab__screen {
  display: grid;
  grid-template-columns: 32% minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  border-radius: 3cqh;
  background: #fff;
}

/* 床に落ちる影 */
.xm3-shadow {
  position: absolute;
  top: 78%;
  left: 52%;
  width: 70cqw;
  height: 10cqh;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(90, 30, 0, .3), rgba(90, 30, 0, 0));
  transform: translate(-50%, 0) rotate(-12deg);
  filter: blur(1cqh);
  animation: xm3-shadow 7s ease-in-out infinite;
}

@keyframes xm3-shadow {
  0%, 100% { opacity: 1; scale: 1; }
  50%      { opacity: .7; scale: .94; }
}

@keyframes xm3-progress {
  to { width: 100%; }
}

@media screen and (max-width: 834px) {
  .xm3-tab {
    top: 50%;
    left: 50%;
    width: 84cqw;
    padding: 1.1cqh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xm3 *,
  .xm3-tab {
    animation: none !important;
  }
}

/* タブレットが右端で切れないよう、少し小さく */
.xm3-tab {
  left: 50%;
  width: min(74cqw, 96cqh);
}

@media screen and (max-width: 834px) {
  .xm3-tab { width: 78cqw; }
}

/* 船の現在地：隅田川の上を、水上バス乗り場のほうへゆっくり進む */
.xm3-now {
  position: absolute;
  z-index: 1;
  width: 2.2cqh;
  height: 2.2cqh;
  margin: -1.1cqh 0 0 -1.1cqh;
  border: .45cqh solid #fff;
  border-radius: 50%;
  background: #3B82F6;
  box-shadow: 0 0 0 0 rgba(59, 130, 246, .45);
  animation: xm3-sail 14s ease-in-out infinite, xm3-pulse 2s ease-out infinite;
}

@keyframes xm3-sail {
  0%   { top: 96%; left: 70%; }
  50%  { top: 76%; left: 84%; }
  100% { top: 58%; left: 96%; }
}

@keyframes xm3-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(59, 130, 246, .45); }
  100% { box-shadow: 0 0 0 2.2cqh rgba(59, 130, 246, 0); }
}

/* 画面をデザインデータから書き出した1枚の画像に（比率 7699:5753 に合わせる） */
.xm3-tab {
  aspect-ratio: auto;
}

.xm3-tab__screen.is-shot {
  position: relative;
  display: block;
  height: auto;
  aspect-ratio: 1600 / 1196;
}

.xm3-tab__screen.is-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: transparent !important;
}

/* 船の現在地：伊根湾の上を進む */
.xm3-tab__screen.is-shot .xm3-now {
  animation: xm3-sail-ine 14s ease-in-out infinite, xm3-pulse 2s ease-out infinite;
}

@keyframes xm3-sail-ine {
  0%   { top: 96%; left: 62%; }
  50%  { top: 86%; left: 74%; }
  100% { top: 92%; left: 90%; }
}

/* 画面をもう少し正面に向ける（傾きを浅く） */
.xm3-tab {
  transform: translate(-50%, -50%) rotateZ(-9deg) rotateX(12deg) rotateY(-10deg);
}

/* 船の現在地：海の上ではなく、地図のピンからピンへ順に進み、各ピンで少し止まる（行って戻る） */
.xm3-tab__screen.is-shot .xm3-now {
  animation: xm3-hop 12s ease-in-out infinite alternate, xm3-pulse 2s ease-out infinite;
}

@keyframes xm3-hop {
  0%, 8%    { top: 56%; left: 37.1%; }
  28%, 36%  { top: 42.9%; left: 48.9%; }
  58%, 66%  { top: 57.2%; left: 66.8%; }
  92%, 100% { top: 58.9%; left: 78.7%; }
}

/* 移動ガイドのFV：タグを5つに。体験 → しくみ → 運行側 → 多言語 → 導入 の順に、ふわっと出す */
.xm-chip--trip    { top: 6%;     left: 50%; translate: 20% 0; }
.xm-chip--1       { top: 20%;    left: 50%; translate: -128% 0; }
.xm-chip--noguide { top: 58%;    left: 50%; translate: -132% 0; }
.xm-chip--2       { bottom: 18%; left: 50%; translate: 120% 0; }
.xm-chip--route   { bottom: 6%;  left: 50%; translate: -60% 0; }

.xm-chip--trip    { animation-delay: .4s, 0s; }
.xm-chip--1       { animation-delay: .7s, -1.5s; }
.xm-chip--noguide { animation-delay: 1s, -3s; }
.xm-chip--2       { animation-delay: 1.3s, -2s; }
.xm-chip--route   { animation-delay: 1.6s, -4s; }

@media screen and (max-width: 834px) {
  .xm-chip--trip    { top: 3%;     left: auto; right: 12px; translate: 0 0; }
  .xm-chip--1       { top: 13%;    left: 12px; translate: 0 0; }
  .xm-chip--noguide { top: auto; bottom: 15%; left: 12px; translate: 0 0; }
  .xm-chip--2       { top: auto; bottom: 26%; left: auto; right: 12px; translate: 0 0; }
  .xm-chip--route   { top: auto; bottom: 4%;  left: auto; right: 12px; translate: 0 0; }
}

/* PC：左の文章側に食い込まないよう内側へ */
@media screen and (min-width: 835px) {
  .xm-chip--noguide { translate: -96% 0; }
}

/* =============================================
   移動ガイド：サービス紹介の「プロダクト提供」の画像
   横長の写真を縦の枠に入れて崩れていたので、FVと同じタブレットの画面（奥）と、
   音声ガイドを再生しているスマホ（手前）のモックに
   ============================================= */
.ga-tab {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  aspect-ratio: 1600 / 1196;
  box-sizing: content-box;
  overflow: hidden;
  border: 7px solid #121317;
  border-radius: 16px;
  background: #121317;
  box-shadow: 0 0 0 2px #3C3F47, 0 14px 30px rgba(0, 0, 0, .18);
  transform: translate(-66%, -52%) rotate(-4deg);
}

.ga-tab img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
  background-color: transparent !important;
}

.ga-screen--phone {
  z-index: 1;
  height: 210px;
  transform: translate(38%, -44%) rotate(5deg);
}

@media screen and (max-width: 834px) {
  .ga-tab { width: 210px; }
  .ga-screen--phone { height: 180px; }
}

/* PC：画面幅によってタグが右の枠の端で切れないよう、真ん中基準ではなく左右の端からの位置で置く */
@media screen and (min-width: 835px) {
  .xm-chip--trip    { top: 6%;     left: auto; right: 16px; translate: 0 0; }
  .xm-chip--1       { top: 20%;    left: 16px; translate: 0 0; }
  .xm-chip--noguide { top: 60%;    left: 16px; translate: 0 0; }
  .xm-chip--2       { bottom: 20%; left: auto; right: 16px; translate: 0 0; }
  .xm-chip--route   { bottom: 6%;  left: 50%; translate: -50% 0; }
}

/* =============================================
   FV右：地図の上にピンが順に立ち、手前のスマホで画面が切り替わる
   ・奥：浅草のマップ（角丸のカード）。ゆっくり拡大・移動
   ・ピン：0.6秒ずつずらして落ちてきて、足元に波紋
   ・手前のスマホ：スポット情報 → 音声ガイド → スタンプラリー → 特典 を3.5秒ずつ
   ============================================= */

@keyframes mh-pan {
  0%   { transform: scale(1.04) translate(0, 0); }
  100% { transform: scale(1.14) translate(-3%, 2%); }
}

@keyframes mh-pin-drop {
  0%       { opacity: 0; translate: 0 -40px; }
  8%       { opacity: 1; translate: 0 0; }
  80%      { opacity: 1; translate: 0 0; }
  90%, 100% { opacity: 0; translate: 0 0; }
}

@keyframes mh-pin-ring {
  0%, 8%   { opacity: 0; transform: rotate(45deg) scale(.2); }
  10%      { opacity: 1; }
  30%, 100% { opacity: 0; transform: rotate(45deg) scale(1.8); }
}

@keyframes mh-swap {
  0%     { opacity: 0; transform: scale(1.06); z-index: 3; }
  4.5%   { opacity: 1; transform: scale(1);    z-index: 3; }
  4.6%   { z-index: 2; }
  29.5%  { opacity: 1; z-index: 2; }
  29.6%  { opacity: 0; z-index: 1; }
  100%   { opacity: 0; z-index: 1; }
}

/* =============================================
   マップに重ねる4つのレイヤー：画像は 4:3 で枠いっぱいに
   ============================================= */

/* =============================================
   特徴：説明文の下の箇条書き
   ============================================= */
body.guide-renewal .gf__text + .gf-list {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

/* =============================================
   導入事例：「事例をすべて見る」ボタン
   ============================================= */
body.guide-renewal .service-cases__more {
  margin-top: 40px;
  text-align: center;
}

/* =============================================
   FV：ピンを結ぶルートの線（番号順に少しずつ描かれる）
   ============================================= */

@keyframes mh-route-draw {
  0%        { stroke-dashoffset: 1; opacity: .85; }
  50%, 80%  { stroke-dashoffset: 0; opacity: .85; }
  90%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* =============================================
   対応デバイス：スマホ・PC・サイネージを、同じマップの画面で並べる
   ============================================= */

/* =============================================
   配色：Pokkeマップは紺（トップページのプロダクトカードと同じ #1B1464）
   ヘッダー・フッターはサイト共通の赤のまま。ページの中身（ナビ〜下のCTA帯）だけ紺にする
   ============================================= */

/* =============================================
   FV右（作り直し）：PCとスマホの両方で使えることを見せる
     奥：ノートパソコン（ブラウザで開いたマップ。画像は表示幅の約2倍で粗く見えない）
     手前：スマホ（430×932 の画面4枚を切り替え）
   ============================================= */

@keyframes mx-pan {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.06) translate(-1.5%, 1%); }
}

