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


/* #############################################################
   ここから チャットガイド・移動ガイド（プロトタイプの service-extra.css）
   ############################################################# */

/*
 * service-extra.css
 * Pokkeチャットガイド（/studio/chat/）・Pokke移動ガイド（/studio/mobility/）
 *   ページの組み立てはマップのページと同じ（guide.css / guide-renewal.css / map-renewal.css）。
 *   ここでは配色と、FVの図だけを定める。
 *   配色・図の中身は、トップの「観光DXプロダクト」のサムネイルに合わせる
 *   （チャット：緑の背景にLINEの画面2枚／移動：オレンジの背景に地図と音声プレーヤーのタブレット）。
 */

/* =============================================
   配色
   ============================================= */
body.page-chat .page-nav,
body.page-chat .service-hero,
body.page-chat .pokke-section,
body.page-chat .inquiry {
  --color-primary: #17A34A;
  --color-primary-hover: #12873D;
  --service-bg-accent: #EAF7EE;
}

body.page-chat .service-hero.guide-hero {
  background: linear-gradient(115deg, #22B850 0%, #3CCB5E 50%, #66DC77 100%) !important;
}

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

body.page-chat .guide-about { --ga-tint: #EAF7EE; }

body.page-chat .guide-about::before,
body.page-chat .guide-about::after {
  background: radial-gradient(closest-side, rgba(23, 163, 74, .09), rgba(23, 163, 74, .03) 62%, rgba(23, 163, 74, 0));
}

body.page-chat .gp-scope__col ul li { background: #EAF7EE; }

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

.xc-chip--1 { top: 10%;    left: 50%; translate: -160% 0; }
.xc-chip--3 { bottom: 10%; left: 50%; translate: 30% 0;  animation-delay: -3s; }

/* =============================================
   チャットガイド：LINEの画面を2枚重ねる
     奥：観光案内のアカウント（お店のカード・選択肢・リッチメニュー）
     手前：物語仕立ての会話が順に出る
   ============================================= */
.xc-phone {
  position: absolute;
  width: 44cqh;
  aspect-ratio: 9 / 19;
}

.xc-phone--back {
  top: 9%;
  left: 46%;
  width: 50cqh;
}

.xc-phone--front {
  top: 25%;
  left: 20%;
  z-index: 1;
}

.xc-phone__screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 5cqh;
  background: #8EAADB;
  box-shadow: 0 3cqh 7cqh rgba(10, 70, 30, .28);
  animation: gh-float 6s ease-in-out infinite;
}

.xc-phone--back .xc-phone__screen {
  animation-delay: -3s;
}

.xc-head {
  display: flex;
  align-items: center;
  gap: 1.2cqh;
  padding: 3.4cqh 2.2cqh 1.6cqh;
  font-size: 1.7cqh;
  color: #1D1D22;
}

.xc-head__back {
  font-size: 2.6cqh;
  line-height: 1;
}

.xc-head__tools {
  display: flex;
  gap: 1cqh;
  margin-left: auto;
}

.xc-head__tools i {
  width: 1.8cqh;
  height: 1.8cqh;
  border: .25cqh solid #1D1D22;
  border-radius: .5cqh;
}

.xc-talk {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1.4cqh;
  padding: 1cqh 1.8cqh 2cqh;
  overflow: hidden;
}

.xc-msg {
  max-width: 84%;
  margin: 0;
  padding: 1.1cqh 1.6cqh;
  border-radius: 2.4cqh;
  font-size: 1.45cqh;
  line-height: 1.6;
  color: #1D1D22;
  opacity: 0;
  transform: translateY(1cqh);
  animation: xc-in 8s ease-out infinite;
  animation-delay: var(--d);
}

.xc-msg--bot {
  align-self: flex-start;
  background: #fff;
}

.xc-msg--user {
  align-self: flex-end;
  background: #7EDC6A;
}

.xc-msg.is-static {
  opacity: 1;
  transform: none;
  animation: none;
}

/* 会話は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; }
}

/* お店のカード（横に並ぶカルーセルのイメージ） */
.xc-cards {
  display: flex;
  gap: 1.2cqh;
  margin-right: -6cqh;
}

.xc-shop {
  display: flex;
  flex: 0 0 62%;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.6cqh;
  background: #fff;
  color: #1D1D22;
}

.xc-shop__img {
  display: block;
  aspect-ratio: 16 / 10;
  background: #ddd center / cover no-repeat;
}

.xc-shop b {
  padding: 1cqh 1.4cqh .4cqh;
  font-size: 1.6cqh;
}

.xc-shop span:not(.xc-shop__img) {
  padding: 0 1.4cqh 1cqh;
  font-size: 1.2cqh;
  line-height: 1.6;
  color: #444;
}

.xc-shop em {
  padding: .7cqh 0;
  font-size: 1.3cqh;
  font-style: normal;
  text-align: center;
  color: #5B8BD6;
}

.xc-shop em:last-child {
  padding-bottom: 1.2cqh;
}

/* 選択肢のボタン */
.xc-quick {
  display: flex;
  gap: 1cqh;
  margin: 0 -6cqh 0 0;
  padding: 0;
  list-style: none;
}

.xc-quick li {
  flex-shrink: 0;
  padding: 1cqh 1.8cqh;
  border-radius: 999px;
  background: #3A4257;
  font-size: 1.35cqh;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
}

/* 下のメニュー（LINEのリッチメニューのイメージ） */
.xc-rich {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1.2cqh;
  margin: 0;
  padding: 1.6cqh 1.6cqh 6cqh;
  background: #FCE77C;
  list-style: none;
}

.xc-rich li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 11cqh;
  border-radius: 1cqh;
  background: #FFF9DA;
  font-size: 1.3cqh;
  font-weight: 700;
  color: #C9384A;
}

.xc-rich b {
  font-size: 2.2cqh;
}

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

@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;
  }

  .xc-chip--1 { top: 6%;    left: 16px; translate: 0 0; }
  .xc-chip--3 { bottom: 6%; left: auto; right: 16px; translate: 0 0; }

  .xc-phone--back  { left: 44%; }
  .xc-phone--front { left: 12%; }

  

  

  
  
}

@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);
}

.pricing-card__ask {
  margin: 4px 0 10px !important;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--color-dark);
}

.pricing-card__ask-text {
  margin: 0 !important;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
  color: var(--color-text-sub);
}

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

  .pricing-card__ask {
    font-size: 22px;
  }
}

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

.xc-talk--live::-webkit-scrollbar {
  display: none;
}

.xc-talk--live .xc-msg {
  display: none;
  flex-shrink: 0;
  opacity: 1;
  transform: none;
  animation: none;
}

.xc-talk--live .xc-msg.is-in {
  display: block;
  animation: xc-pop .45s ease-out both;
}

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

/* 入力中の「…」 */
.xc-typing {
  display: none;
  gap: .6cqh;
  padding: 1.4cqh 1.8cqh;
}

.xc-talk--live .xc-typing.is-in {
  display: inline-flex;
}

.xc-typing i {
  width: .9cqh;
  height: .9cqh;
  border-radius: 50%;
  background: #9AA0AE;
  animation: xc-dot 1s ease-in-out infinite;
}

.xc-typing i:nth-child(2) { animation-delay: .15s; }
.xc-typing i:nth-child(3) { animation-delay: .3s; }

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

/* 奥：お店のカードを1枚ずつ横に送る（4枚目は1枚目と同じなので、最後に一瞬で戻しても切れ目が見えない） */
.xc-phone--back .xc-cards {
  animation: xc-carousel 12s ease-in-out infinite;
}

@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); }
}

/* 選択肢：1つずつ押されたように色が変わる */
.xc-phone--back .xc-quick li {
  animation: xc-tap 6s ease-in-out infinite;
}

.xc-phone--back .xc-quick li:nth-child(2) { animation-delay: 2s; }
.xc-phone--back .xc-quick li:nth-child(3) { animation-delay: 4s; }

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

@media (prefers-reduced-motion: reduce) {
  .xc-phone--back .xc-cards,
  .xc-phone--back .xc-quick li {
    animation: none !important;
  }
}

/* チャットガイドのFV：タグを4つに。ガイドページと同じく、順番にふわっと出す */
.xc-chip--2 { top: 62%; left: 50%; translate: -185% 0; }
.xc-chip--4 { top: 44%; left: 50%; translate: 58% 0; }

.xc-chip--1 { animation-delay: .4s, 0s; }
.xc-chip--2 { animation-delay: .7s, -2s; }
.xc-chip--4 { animation-delay: 1s, -4s; }
.xc-chip--3 { animation-delay: 1.3s, -3s; }

@media screen and (max-width: 834px) {
  .xc-chip--2 { top: auto; bottom: 22%; left: 16px; translate: 0 0; }
  .xc-chip--4 { top: 20%; left: auto; right: 16px; translate: 0 0; }
}

/* PC：右端で切れないよう、奥のスマホの上に重ねる位置へ */
@media screen and (min-width: 835px) {
  .xc-chip--4 { top: 42%; translate: 12% 0; }
}

/* =============================================
   チャットガイド：サービス紹介の「LINEで配信・運用」のスマホ
   横長の写真を縦の枠に入れて崩れていたので、LINEの画面をHTMLで描いて枠にぴったり収める
   （文字や余白は画面の高さに対する割合＝cqh で指定し、枠の大きさが変わっても同じ見た目に）
   ============================================= */
.ga-line {
  container-type: size;
  display: flex;
  flex-direction: column;
  background: #8EAADB;
  color: #1D1D22;
}

.ga-line__head {
  flex-shrink: 0;
  padding: 7cqh 5cqh 2.6cqh;
  background: #8EAADB;
  font-size: 3.6cqh;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.ga-line__talk {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2.4cqh;
  padding: 1cqh 4cqh;
  overflow: hidden;
}

.ga-line__msg {
  align-self: flex-start;
  max-width: 86%;
  padding: 1.8cqh 2.8cqh;
  border-radius: 3.6cqh;
  background: #fff;
  font-size: 2.9cqh;
  font-weight: 500;
  line-height: 1.5;
}

.ga-line__msg.is-user {
  align-self: flex-end;
  background: #7EDC6A;
}

.ga-line__card {
  display: flex;
  flex-direction: column;
  width: 74%;
  overflow: hidden;
  border-radius: 2.6cqh;
  background: #fff;
}

.ga-line__img {
  display: block;
  aspect-ratio: 16 / 10;
  background: #ddd center / cover no-repeat;
}

.ga-line__card b {
  padding: 1.6cqh 2.6cqh .4cqh;
  font-size: 3cqh;
  line-height: 1.4;
}

.ga-line__card em {
  padding: .6cqh 2.6cqh 1.8cqh;
  font-size: 2.6cqh;
  font-style: normal;
  color: #5B8BD6;
}

/* 下のメニュー（LINEのリッチメニューのイメージ） */
.ga-line__rich {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: 1fr 1fr;
  gap: 1.4cqh;
  padding: 2.4cqh 3cqh 5cqh;
  background: #FCE77C;
}

.ga-line__rich i {
  padding: 2.2cqh 0;
  border-radius: 1.6cqh;
  background: #FFF9DA;
  font-size: 2.5cqh;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  color: #C9384A;
}

/* 入力欄 */
.ga-line__input {
  flex-shrink: 0;
  height: 13cqh;
  border-top: 1px solid rgba(0, 0, 0, .06);
  background: #fff;
}

.ga-line__input::before {
  content: "";
  display: block;
  height: 6cqh;
  margin: 2.4cqh 4cqh 0;
  border-radius: 999px;
  background: #F0F1F4;
}

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

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

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

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

@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); }
}

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

@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と同じタブレットの画面（奥）と、
   音声ガイドを再生しているスマホ（手前）のモックに
   ============================================= */

/* チャット（PC）：画面幅によってタグが右の枠の端で切れないよう、左右の端からの位置で置く */
@media screen and (min-width: 835px) {
  .xc-chip--1 { top: 8%;     left: 16px; translate: 0 0; }
  .xc-chip--2 { top: 62%;    left: 16px; translate: 0 0; }
  .xc-chip--4 { top: 42%;    left: auto; right: 16px; translate: 0 0; }
  .xc-chip--3 { top: auto; bottom: 8%; left: auto; right: 16px; translate: 0 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%); }
}

