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


/* #############################################################
   ここから マップと共通の部品（プロトタイプの map-renewal.css）
   ############################################################# */

/*
 * map-renewal.css
 * Pokkeマップのサービスページ（/studio/map/）専用。
 * 見た目の土台はガイドページと共通（guide.css＋guide-renewal.css、<body class="guide-renewal">）で、
 * ここにはマップだけの部分（FVの地図ビジュアル、レイヤー画像の比率など）を書く。
 */

/* =============================================
   FV右：地図の上にピンが順に立ち、手前のスマホで画面が切り替わる
   ・奥：浅草のマップ（角丸のカード）。ゆっくり拡大・移動
   ・ピン：0.6秒ずつずらして落ちてきて、足元に波紋
   ・手前のスマホ：スポット情報 → 音声ガイド → スタンプラリー → 特典 を3.5秒ずつ
   ============================================= */
.mh-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50vw;
  container-type: size;
  pointer-events: none;
}

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

.mh-phone__float {
  height: 100%;
  animation: gh-float 6s ease-in-out infinite;
}

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

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

  

  

  

  
  
  

  
}

@media (prefers-reduced-motion: reduce) {
  .mh-stage *,
  body.guide-renewal .mh-map img,
  body.guide-renewal .mh-phone__screen img {
    animation: none !important;
  }

  

  
}

/* =============================================
   マップに重ねる4つのレイヤー：画像は 4:3 で枠いっぱいに
   ============================================= */
.map-layer__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

/* =============================================
   特徴：説明文の下の箇条書き
   ============================================= */
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;
}

/* 特徴#004：縦長の画面画像は上（マップ部分）を見せる */
body.guide-renewal .gf__img.map-gf__img--top {
  object-position: center top;
}

/* =============================================
   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%); }
}

/* #############################################################
   ここから ラリー（プロトタイプの rally-renewal.css）
   ############################################################# */

/*
 * rally-renewal.css
 * Pokkeラリーのサービスページ（/studio/rally/）専用。
 * 土台はガイド・マップと共通（guide.css＋guide-renewal.css＋map-renewal.css、<body class="guide-renewal">）。
 * ここにはラリーだけの部分（配色、FVのスタンプ、活用イメージ、獲得方法、参加者の利用の流れ）を書く。
 */

/* =============================================
   配色：マップと同じ紺（#1B1464）。ヘッダー・フッターはサイト共通の赤のまま
   ============================================= */
body.page-rally .page-nav,
body.page-rally .service-hero,
body.page-rally .pokke-section,
body.page-rally .inquiry {
  --color-primary: #1B1464;
  --color-primary-hover: #110C47;
  --service-bg-accent: #EEF0F8;
}

body.page-rally .service-hero.guide-hero {
  background: linear-gradient(115deg, #1B1464 0%, #2C3488 48%, #4E66B2 100%) !important;
}

body.page-rally .gh-chip {
  box-shadow: 0 10px 30px rgba(10, 10, 60, .25);
}

body.page-rally .guide-about {
  --ga-tint: #EEF0F8;
}

body.page-rally .guide-about::before,
body.page-rally .guide-about::after {
  background: radial-gradient(closest-side, rgba(27, 20, 100, .08), rgba(27, 20, 100, .03) 62%, rgba(27, 20, 100, 0));
}

body.page-rally .gp-scope__col ul li {
  background: #EEF0F8;
}

/* =============================================
   FV：地図の上にスタンプが「ポン」と押される（少しずつずらして3つ）
   手前のスマホは5枚（スポット→クイズ→獲得→コンプリート→プレゼント）を3.5秒ずつ
   ============================================= */

@keyframes rh-stamp {
  0%        { opacity: 0; transform: rotate(-12deg) scale(1.8); }
  6%        { opacity: 1; transform: rotate(-12deg) scale(1); }
  70%       { opacity: 1; transform: rotate(-12deg) scale(1); }
  80%, 100% { opacity: 0; transform: rotate(-12deg) scale(1); }
}

@keyframes rh-swap {
  0%     { opacity: 0; transform: scale(1.06); z-index: 3; }
  3.6%   { opacity: 1; transform: scale(1);    z-index: 3; }
  3.7%   { z-index: 2; }
  23.6%  { opacity: 1; z-index: 2; }
  23.7%  { opacity: 0; z-index: 1; }
  100%   { opacity: 0; z-index: 1; }
}

/* =============================================
   ご利用シーン：活用イメージ（4例のカード）と、そのほかのシーン
   ============================================= */
.rally-examples__heading {
  margin: 72px 0 24px;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  color: var(--color-dark);
}

/* 「活用イメージ」の見出しの上の余白。
   cocoon-reset.css の「.pokke-section h3 { margin-top: 0 !important; }」に消されるため、!important で戻す */
.pokke-section .rally-examples__heading {
  margin-top: 72px !important;
}

@media screen and (max-width: 1079px) {
  .pokke-section .rally-examples__heading {
    margin-top: 56px !important;
  }
}

.rally-examples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rally-example {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: 16px;
  background: #fff;
}

.rally-example__label {
  align-self: flex-start;
  margin: 0 0 14px;
  padding: 2px 14px;
  border: 1.5px solid var(--color-primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--color-primary);
}

.rally-example__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-dark);
}

.rally-example__desc {
  flex: 1;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text);
}

.rally-example__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rally-example__tags li {
  padding: 3px 10px;
  border-radius: 999px;
  background: #EEF0F8;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-dark);
}

.rally-scenes__more {
  max-width: 900px;
  margin: 40px auto 0;
  font-size: 14px;
  line-height: 2;
  text-align: center;
  color: var(--color-text);
}

.rally-scenes__more span {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  color: var(--color-dark);
}

/* =============================================
   スタンプの獲得方法：3列のカード。クイズにはヒントの出し方を添える
   ============================================= */
body.guide-renewal .rally-stamps__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rally-hints__head {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-dark);
}

.rally-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rally-hints li {
  padding: 3px 10px;
  border-radius: 999px;
  background: #EEF0F8;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-dark);
}

/* =============================================
   参加者の利用の流れ：5つのスマホ画面を矢印でつなぐ
   ============================================= */
.rally-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rally-step {
  position: relative;
  text-align: center;
}

/* 次のステップへの矢印 */
.rally-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 150px;
  right: -18px;
  width: 12px;
  height: 12px;
  border-top: 2.5px solid var(--color-primary);
  border-right: 2.5px solid var(--color-primary);
  transform: rotate(45deg);
}

.rally-step__phone {
  display: block;
  width: 148px;
  aspect-ratio: 430 / 932;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 5px solid #1D1D22;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(10, 10, 60, .16);
}

body.guide-renewal .rally-step__phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background-color: transparent !important;
}

.rally-step__num {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--color-primary);
}

.rally-step__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--color-dark);
}

.rally-step__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
  color: var(--color-text);
}

/* =============================================
   特徴#005：Pokkeのメディア・SNSの数字（アイコンなしの3列）
   ============================================= */
body.guide-renewal .rally-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.guide-renewal .rally-stats li span {
  display: flex;
  flex-direction: column;
}

/* =============================================
   タブレット・スマホ
   ============================================= */
@media screen and (max-width: 1079px) {
  .rally-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.guide-renewal .rally-stamps__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin: 0 auto;
  }

  /* 利用の流れは横にスクロールして見る */
  .rally-steps {
    display: flex;
    gap: 28px;
    margin: 0 calc(var(--content-gutter, 24px) * -1);
    padding: 0 var(--content-gutter, 24px) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .rally-step {
    flex: 0 0 200px;
    scroll-snap-align: start;
  }
}

@media screen and (max-width: 540px) {
  .rally-examples {
    grid-template-columns: minmax(0, 1fr);
  }

  body.guide-renewal .rally-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .rally-scenes__more {
    text-align: left;
  }
}

/* 「その他にも…」：上の活用イメージのカードとの間をしっかり空ける */
body.guide-renewal .rally-scenes__more {
  margin-top: 72px;
}

@media screen and (max-width: 640px) {
  body.guide-renewal .rally-scenes__more {
    margin-top: 48px;
  }
}

/* =============================================
   FV（作り直し）：ただ巡るだけでなく、聴いて・答えて・集めて巡る
     地図の上に道のり（点線）を引き、その上に3台のスマホを並べる
       ① 音声ガイドで知る → ② クイズに答える → ③ 集めて、次の場所へ
     9秒で1回り。ステップを3秒ずつ順に照らし（ラベルが紺に、スマホが少し浮く）、
     ②のスマホは6秒目にクイズの画面から獲得画面に変わり、その上にスタンプが「ポン」と押される
   ============================================= */
.rj-map {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(92cqw, 118cqh);
  aspect-ratio: 1086 / 815;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, .9);
  border-radius: 24px;
  box-shadow: 0 4cqh 8cqh rgba(10, 10, 60, .35);
  transform: translate(-50%, -50%) rotate(-3deg);
}

body.guide-renewal .rj-map img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: transparent !important;
  opacity: .9;
  animation: mh-pan 18s ease-in-out infinite alternate;
}

/* 道のり：白い点線が、進む向きに流れる */
.rj-route {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rj-route path {
  fill: none;
  stroke: #fff;
  stroke-width: 1.1;
  stroke-linecap: round;
  stroke-dasharray: .1 2.4;
  vector-effect: non-scaling-stroke;
  stroke-width: 5px;
  filter: drop-shadow(0 2px 4px rgba(10, 10, 60, .35));
  animation: rj-route 1.6s linear infinite;
}

@keyframes rj-route {
  to { stroke-dashoffset: -2.5; }
}

@keyframes rj-lift {
  0%, 36%, 100% { transform: translateY(0); }
  6%, 30%       { transform: translateY(-2.4cqh); }
}

.rj-phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1cqh solid #1D1D22;
  border-radius: 4.6cqh;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .25),
    0 4cqh 8cqh rgba(10, 10, 60, .4),
    0 1cqh 2cqh rgba(10, 10, 60, .25);
}

body.guide-renewal .rj-phone__screen img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background-color: transparent !important;
}

@keyframes rj-get-screen {
  0%, 64%   { opacity: 0; }
  68%, 96%  { opacity: 1; }
  100%      { opacity: 0; }
}

@keyframes rj-label {
  0%, 36%, 100% { background: #fff; color: var(--color-dark); scale: 1; }
  6%, 30%       { background: #1B1464; color: #fff; scale: 1.06; }
}

@keyframes rj-label-num {
  0%, 36%, 100% { background: #1B1464; color: #fff; }
  6%, 30%       { background: #fff; color: #1B1464; }
}

@keyframes rj-stamp {
  0%, 68%   { opacity: 0; transform: rotate(-12deg) scale(1.8); }
  73%       { opacity: 1; transform: rotate(-12deg) scale(1); }
  94%       { opacity: 1; transform: rotate(-12deg) scale(1); }
  98%, 100% { opacity: 0; transform: rotate(-12deg) scale(1); }
}

/* スマホ幅：3台を小さく横に並べる */
@media screen and (max-width: 834px) {
  .rj-map {
    width: 92cqw;
    border-width: 4px;
    border-radius: 18px;
  }

  

  
  
  

  

  

  .rj-phone__screen {
    border-width: 5px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rj-stage *,
  body.guide-renewal .rj-map img {
    animation: none !important;
  }

  
}

.rj-route path {
  stroke-dasharray: 0 14px;
  stroke-width: 6px;
  animation: rj-route-px 1.2s linear infinite;
}

@keyframes rj-route-px {
  to { stroke-dashoffset: -14px; }
}

/* 背景の地図：画面の写った地図写真をやめ、SVGで描いたシンプルな地図に（道のりが見えるよう淡く） */
.rj-map {
  border-color: rgba(255, 255, 255, .95);
}

.rj-map__art {
  display: block;
  width: 100%;
  height: 100%;
}

/* 道のり：紺の点線。スポットごとに紺のピン */
.rj-route path {
  stroke: #1B1464;
  filter: none;
  opacity: .55;
}

/* =============================================
   FV（決定版：案A）：地図を巡って、スタンプを集める
     ・地図の道のりのピンに、スタンプが1.6秒ずつ順に「ポン」と押される（rally/index.html のスクリプトが11秒ごとにやり直す）
     ・右に2台のスマホ。それぞれ違う画面を4枚ずつ、2.75秒ずつ切り替える（奥は少しずらす）
   ============================================= */
.rs-stamp {
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 9.5cqh;
  height: 9.5cqh;
  margin: -4.75cqh 0 0 -4.75cqh;
  border: .55cqh solid #1B1464;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 .5cqh #fff, 0 1.4cqh 3cqh rgba(10, 10, 60, .35);
  opacity: 0;
  transform: rotate(-10deg) scale(1.8);
}

.rs-stamp img {
  display: block;
  width: 86%;
  height: 86%;
  border-radius: 50%;
  object-fit: contain;
  background-color: transparent !important;
}

/* 押した瞬間に広がる輪 */
.rs-stamp::after {
  content: "";
  position: absolute;
  inset: -.6cqh;
  border: .4cqh solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  opacity: 0;
}

.rs-stage.is-play .rs-stamp {
  animation: rs-press .5s cubic-bezier(.3, 1.6, .5, 1) var(--d) both;
}

.rs-stage.is-play .rs-stamp::after {
  animation: rs-ring .8s ease-out var(--d) both;
}

@keyframes rs-press {
  0%   { opacity: 0; transform: rotate(-10deg) scale(1.8); }
  100% { opacity: 1; transform: rotate(-10deg) scale(1); }
}

@keyframes rs-ring {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.7); }
}

/* スマホ2台 */
.rs-phone {
  position: absolute;
  z-index: 3;
  aspect-ratio: 430 / 932;
  transform: translate(-50%, -50%);
}

.rs-phone--front {
  top: 53%;
  left: 83%;
  z-index: 4;
  height: 84cqh;
  rotate: 4deg;
}

.rs-phone--back {
  top: 55%;
  left: 59%;
  height: 72cqh;
  rotate: -5deg;
}

.rs-phone--back .mh-phone__float {
  animation-delay: -3s;
}

.rs-phone .rj-phone__screen {
  height: 100%;
}

body.guide-renewal .rs-phone .rj-phone__screen img {
  opacity: 0;
  animation: rs-swap 11s ease-in-out infinite;
  animation-delay: calc(var(--i) * 2.75s - 11s - var(--phase, 0s));
}

@keyframes rs-swap {
  0%     { opacity: 0; transform: scale(1.06); z-index: 3; }
  4%     { opacity: 1; transform: scale(1);    z-index: 3; }
  4.1%   { z-index: 2; }
  29%    { opacity: 1; z-index: 2; }
  29.1%  { opacity: 0; z-index: 1; }
  100%   { opacity: 0; z-index: 1; }
}

.rs-chip--get  { top: 8%;    left: 4%; }
.rs-chip--gift { bottom: 7%; left: 10%; animation-delay: .7s, -2s; }

@media screen and (max-width: 834px) {
  .rs-phone--front { left: 84%; height: 80cqh; }
  .rs-phone--back  { left: 61%; height: 68cqh; }

  .rs-chip--get  { top: 4%;    left: 12px; }
  .rs-chip--gift { bottom: 4%; left: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .rs-stage *,
  body.guide-renewal .rs-phone .rj-phone__screen img {
    animation: none !important;
  }

  .rs-stamp { opacity: 1; transform: rotate(-10deg); }

  body.guide-renewal .rs-phone .rj-phone__screen img[style*="--i:0"] { opacity: 1; }
}

/* PC：手前のスマホが右端で切れないよう、2台とも少し左へ */
@media screen and (min-width: 835px) {
  .rs-phone--front { left: 77%; }
  .rs-phone--back  { left: 53%; }
}

/* スマホ幅：手前のスマホが右端で切れないよう内側へ。スタンプも左端から少し離す */
@media screen and (max-width: 834px) {
  .rs-phone--front { left: 73%; height: 76cqh; }
  .rs-phone--back  { left: 51%; height: 64cqh; }
  .rs-stamp        { translate: 3cqw 0; }
}

/* タグを4つに：参加 → 獲得 → 体験 → ゴール の順に、ふわっと出す */
.rs-chip--app  { top: 3%;  left: 50%; translate: 10% 0; }
.rs-chip--more { top: 46%; left: 50%; translate: -20% 0; }

.rs-chip--app  { animation-delay: .4s, 0s; }
.rs-chip--get  { animation-delay: .7s, -1.5s; }
.rs-chip--more { animation-delay: 1s, -3s; }
.rs-chip--gift { animation-delay: 1.3s, -2s; }

@media screen and (max-width: 834px) {
  .rs-chip--app  { top: auto; bottom: 16%; left: 12px; translate: 0 0; }
  .rs-chip--more { top: auto; bottom: 4%; left: auto; right: 12px; translate: 0 0; }
}

@media screen and (max-width: 834px) {
  .rs-chip--more { top: 14%; bottom: auto; }
}

/* =============================================
   対応アプリケーション：ブラウザ版とLINE版の2枚のカード
   上に淡い紺の面とスマホの画面、下に名前・見出し・説明・ポイント
   ============================================= */
.rl-apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.rl-app {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #E4E7F0;
  border-radius: 20px;
  background: #fff;
}

.rl-app__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 300px;
  overflow: hidden;
  background: linear-gradient(160deg, #EEF0F8 0%, #DDE2F2 100%);
}

/* スマホ：下側は面からはみ出して切れる */
.rl-app__phone {
  position: relative;
  z-index: 1;
  width: 168px;
  aspect-ratio: 430 / 932;
  margin-bottom: -150px;
  overflow: hidden;
  border: 7px solid #1D1D22;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(10, 10, 60, .22);
}

.rl-app__phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.rl-app__phone.is-back {
  z-index: 0;
  width: 148px;
  margin: 0 -40px -170px 0;
  rotate: -6deg;
  opacity: .9;
}

/* 面の左上の小さなラベル */
.rl-app__url {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  padding: 6px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(10, 10, 60, .12);
  font-size: 12px;
  font-weight: 700;
  color: #1B1464;
}

.rl-app__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 32px 32px;
}

.rl-app__label {
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 3px 14px;
  border-radius: 999px;
  background: #1B1464;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  color: #fff;
}

body.page-rally .rl-app__title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--color-dark);
}

.rl-app__desc {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text);
}

.rl-app__points {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 18px 0 0 !important;
  border-top: 1px solid #E4E7F0;
  list-style: none;
}

.rl-app__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
}

.rl-app__points li::before {
  display: none;
}

.rl-app__points svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #1B1464;
}

/* LINE版の画面（HTMLで描く。チャットガイドのページと同じLINEの色） */
.rl-line {
  display: flex;
  flex-direction: column;
  background: #8EAADB;
  color: #1D1D22;
}

.rl-line__head {
  flex-shrink: 0;
  padding: 26px 12px 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.rl-line__talk {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 4px 10px;
}

.rl-line__msg {
  align-self: flex-start;
  max-width: 88%;
  padding: 6px 9px;
  border-radius: 12px;
  background: #fff;
  font-size: 9.5px;
  font-weight: 500;
  line-height: 1.5;
}

.rl-line__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78%;
  padding: 10px 8px 8px;
  border-radius: 10px;
  background: #fff;
}

.rl-line__card img {
  width: 52px;
  height: 52px;
  padding: 3px;
  border: 2px solid #1B1464;
  border-radius: 50%;
  object-fit: contain;
}

.rl-line__card b {
  margin-top: 6px;
  font-size: 10px;
}

.rl-line__card em {
  margin-top: 4px;
  font-size: 9px;
  font-style: normal;
  color: #5B8BD6;
}

.rl-line__rich {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 8px 8px 160px;
  background: #FCE77C;
}

.rl-line__rich i {
  padding: 8px 0;
  border-radius: 6px;
  background: #FFF9DA;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
  color: #1B1464;
}

@media screen and (max-width: 834px) {
  .rl-apps {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .rl-app__visual {
    height: 260px;
  }

  .rl-app__body {
    padding: 24px 22px 26px;
  }

  body.page-rally .rl-app__title {
    font-size: 18px;
  }
}

/* スマホを上げて、画面が多く見えるように */
.rl-app__visual { height: 340px; }
.rl-app__phone { width: 176px; margin-bottom: -60px; }
.rl-app__phone.is-back { width: 156px; margin: 0 -44px -90px 0; }
.rl-line__rich { padding-bottom: 70px; }

@media screen and (max-width: 834px) {
  .rl-app__visual { height: 300px; }
  .rl-app__phone { width: 160px; margin-bottom: -70px; }
  .rl-app__phone.is-back { width: 140px; margin: 0 -40px -96px 0; }
}

.rl-line { letter-spacing: .02em; }

/* PC：画面幅によってタグが右の枠の端で切れないよう、左右の端からの位置で置く */
@media screen and (min-width: 835px) {
  .rs-chip--app  { top: 3%;    left: auto; right: 16px; translate: 0 0; }
  .rs-chip--get  { top: 10%;   left: 16px; translate: 0 0; }
  .rs-chip--more { top: 46%;   left: 16px; translate: 0 0; }
  .rs-chip--gift { bottom: 6%; left: 16px; translate: 0 0; }
}
