/* ============================================================
   home.css  ―  フロントページ（index.php）専用スタイル
   ※以前は index.php の <style> に直書きされていたもの
   ============================================================ */

html,
body {
  overflow-x: hidden;
}

/* ================= Rive ボックス（トップ専用の dash 付きクラス） ================= */

.rive-box,
.rive-box-,
.rive-box-2,
.rive-box-3,
.rive-box-4,
.rive-box-5,
.rive-box-6 {
  position: relative;
  width: 100%;
  margin-inline: auto;
}

.rive-box- {
  max-width: 400px;
  aspect-ratio: 666 / 666;
}

.rive-box-2 {
  max-width: 350px;
  aspect-ratio: 648 / 594;
}

.rive-box-3 {
  max-width: 300px;
  aspect-ratio: 572 / 466;
}

.rive-box-4 {
  max-width: 400px;
  aspect-ratio: 826 / 666;
}

.rive-box-5 {
  max-width: 300px;
  aspect-ratio: 455 / 512;
}

.rive-box-6 {
  max-width: 300px;
  aspect-ratio: 436 / 465;
}

/* dash 付きだけ右寄せ */
.rive-box- {
  width: 100%;
  display: flex;
  justify-content: flex-end;
}

/* ================= ストアボタン ================= */

.store-btn-img {
  height: 50px;
  transition: transform 0.3s ease;
}

.store-btn-img:hover {
  transform: scale(1.05);
}

/* ================= 画像 ================= */

.img-200 {
  width: 230px;
  max-width: 100%;
  height: auto;
}

/* ================= セクション ================= */

.section1 {
  padding: 80px 0;
}

.mt-md-5 {
  margin-top: 0 !important;
}

.row.align-items-center {
  align-items: center !important;
}

@media (max-width: 767.98px) {
  .section1 {
    padding: 40px 0;
  }

  .section1 .row {
    text-align: center;
  }

  .text-md-end {
    text-align: center !important;
  }
}

@media (min-width: 1200px) {
  section .container {
    max-width: 900px;
  }
}

/* ================= アプリ体験モーダル ================= */

#appModal .modal-dialog {
  max-width: 420px;
  margin: 1.75rem auto;
}

#appModal .modal-content {
  overflow: hidden;
}

.character-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  color: #201716;
  background: #ffe20c;
  border: 2px solid #201716;
  border-radius: 8px;
  padding: .9em 1.6em;
  line-height: 1;
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  transition: .3s;
}

.character-btn:hover {
  background: #ffe20cd6;
  color: #201716;
  transform: translateY(-2px);
}

@media (max-width: 767px) {
  #appModal .modal-dialog {
    max-width: calc(100% - 32px);
    margin: 1rem auto;
  }

  #appModal .modal-body {
    padding: 2rem 1.25rem;
  }

  .character-btn {
    width: 100%;
    min-width: initial;
  }
}
