/* 共通スタイル */
body {
  /* font-family: "Noto Sans JP", sans-serif; */
  /* font-family: "Noto Sans Japanese";  */
  margin: 0;
  padding: 0;
  /* background-color: #f8f8f8; */

  /* font-family: monospace; */
  /* color: #fff; */
  background: black;
  flex-flow: column;

  font-family: "DotGothic16", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.dotgothic16-regular {
  font-family: "DotGothic16", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.press-start-2p-regular {
  font-family: "Press Start 2P", system-ui;
  font-weight: 400;
  font-style: normal;
}

/* .noto-sans-jp-regular {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
} */

.font-default{
  font-family: "Helvetica Neue",
      Arial,
      "Hiragino Kaku Gothic ProN",
      "Hiragino Sans",
      Meiryo,
      sans-serif;
}

header {
  background-color: #333;
  color: #fff;
  padding: 15px 0;
  text-align: center;
}

img {
  max-width: 100%;
}

main {
  /* padding: 20px; */
  max-width: 520px;
  margin: auto;
}

html,
body {
  scroll-behavior: smooth;
  /* overflow: hidden; */
  scrollbar-width: none;
  /* Firefox用のスクロールバー非表示 */
}

body::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari用のスクロールバー非表示 */
}

/* ----------------- loading ------------- */
.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  transition: opacity 1s ease-in-out;
}

.loading img {
  width: 100px;
  animation: wave 1.5s infinite alternate ease-in-out;
}

@keyframes wave {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.2);
  }
}

/* ----------------- ページヘッダー ------------- */
.logo-78 {
  height: 45px;
  margin-right: 10px;
}

.top-title {
  position: relative;
  padding: 1rem;
  text-align: center;
  border: 2px solid #000;
  background: #fff;
  margin: auto 15px;
}

.top-title:before,
.top-title:after {
  position: absolute;
  content: '';
}

.top-title:before {
  top: -40px;
  left: calc(50% - 40px);
  width: 80px;
  height: 80px;
  border: 2px solid #000;
  border-radius: 50%;
  background: #fff;
}

.top-title:after {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
}

.top-title i {
  font-size: 30px;
  font-size: 1.5rem;
  line-height: 60px;
  position: absolute;
  z-index: 1;
  top: -40px;
  left: calc(50% - 40px);
  width: 80px;
  height: 60px;
  text-align: center;
}

.top-title span {
  position: relative;
  z-index: 1;
  font-size: 1.5rem;
  font-weight: bold;
}

@media (max-width: 768px) {
  .top-title span {
    font-size: 1.3rem;
  }
}

.slider-event img {
  max-width: 100%;
}

.event-info-text {
  font-size: 0.8rem;
}

.event-oubo-btn {
  font-size: 0.9rem;
  border: 1px solid lightgray;
  border-radius: 10px;
  background-color: orange;
  color: black;
  padding: 7px 20px;
}

.event-oubo-bg {
  margin: auto;
  padding: 10px;
  width: 80%;
  background-color: rgb(255 233 215);
  border-radius: 10px;
}

.event-header {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  text-align: center;
}

.event-header::before,
.event-header::after {
  content: '';
  width: 3px;
  height: 40px;
  background-color: orange;
}

.event-header::before {
  margin-right: 30px;
  transform: rotate(-35deg)
}

.event-header::after {
  margin-left: 30px;
  transform: rotate(35deg)
}


/* ロゴ画面のスタイル */
#logo-screen {
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: black;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity 1.5s ease-in-out;
  z-index: 999;
}

#logo-screen img {
  width: 300px;
  height: auto;
  animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}



/* --------------- TOP -------------*/
.top-text {
  font-size: 0.8rem;
}


/* ファーストビュー：ブラウザ全画面表示、スクロールは無効 */
#first-view {
  width: 100vw;
  height: 100svh;
  display: flex;
  justify-content: center;
  align-items: center;
  /* background: black; */
  overflow: hidden;
  /* マウススクロールを無効化 */
  position: relative;

  flex-flow: column;
  color: white;

}

/* メニューコンテナのスタイル */
.menu-container {
  background: rgba(0, 0, 0, 0.9);
  padding: 15px;
  border: 3px solid #fff;
  text-align: center;
}

@media (max-width: 768px) {
  .menu-container {
    width: 315px;
  }
}

.menu-container ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-container li {
  padding: 1px 20px;
  cursor: pointer;
  font-size: 20px;
}

@media (max-width: 768px) {
  .menu-container li {
    font-size: 0.8rem;
    padding: 10px 1px;
  }
}

.menu-container li:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.arrow {
  display: inline-block;
  width: 20px;
  margin-right: 10px;
}

.fb-game-info {
  font-size: 0.8rem;
}

@media (max-width: 768px) {
  .fb-game-info {
    font-size: 0.7rem;
  }
}

.fb-game-title {
  vertical-align: super;
}

@media (max-width: 768px) {
  .fb-game-title {
    font-size: 1rem;
  }
}


/* コンテンツセクション：ファーストビューの下に配置 */
.content-section {
  width: 100%;
  min-height: 100vh;
  background: black;
  /* color: white; */
  padding: 40px;
  text-align: center;

  max-width: 540px;
  margin: auto;
  text-align: left;
}

@media (max-width: 768px) {
  .content-section {
    padding: 15px;
  }
}

/* TOPに戻るボタン */
.back-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 5px 20px;
  background: gray;
  border: 2px solid #fff;
  border-radius: 40px;
  cursor: pointer;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  text-align: center;
}

@media (max-width: 768px) {
  .back-button {
    font-size: 0.7rem;
  }
}

.back-button.show {
  opacity: 1;
  visibility: visible;
}

.title-text {
  font-size: 5rem;
  width: 100%;
}

@media (max-width: 768px) {
  .title-text {
    font-size: 1.6rem;
    font-size: calc(24px + 1vmin);
    /* font-size: clamp(14px, 3vmin, 24px); */
  }
}

footer {
  margin-top: 100px;
  color: white;
  font-size: 0.8rem;
}

.top-footer {
  position: absolute;
  bottom: 30px;
  left: auto;
  right: auto;
}

@media (max-width: 768px) {
  .top-footer {
    font-size: 0.5rem;
    bottom: 0;
  }
}

@media (max-width: 768px) {
  .top-footer p.press-start-2p-regular {
    margin-bottom: 2svh;
  }

}

.menu-game-icon {
  height: 45px;
  border-radius: 10px;
  margin-right: 10px;
}

@media (max-width: 768px) {
  .menu-game-icon {
    height: 40px;
    border-radius: 7px;
  }
}

.character {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  padding: 10px;
  /* background: #333;
border: 2px solid #888; */
}

.character img {
  width: 90px;
  /* height: 50px; */
  margin-right: 10px;
}

.character.right {
  justify-content: flex-end;
}

.character.right img {
  margin-right: 0;
  margin-left: 10px;
  order: 2;
}

/* .game-store-icon-character{
    margin: 0 !important;
} */

#space {
  /* position: fixed; */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000;
  z-index: -1;
}

.star {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
}

.planet {
  position: absolute;
  border-radius: 50%;
}

.space_character {
  position: absolute;
  width: 100px;
  height: 100px;
  transform-origin: center center;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
}

.content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

h1 {
  color: #fff;
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.7);
}

.center-image {
  width: 200px;
  height: 200px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
}

@keyframes twinkle {
  0% {
    opacity: 0.2;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.2;
  }
}

.blinking-text {
  font-size: 1rem;
  font-weight: bold;
  animation: blink 1.5s infinite;
  color: #fff;
  text-align: center;
}

@media (max-width: 768px) {
  .blinking-text {
    font-size: 0.7rem;
  }
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
  }
}

.reflect-x {
  transform: scale(-1, 1);
}

.game-logo {
  height: 100px;
}

.youtube-block {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 20px 0;
}

.youtube-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  /* 16:9のアスペクト比 */
  height: 0;
  overflow: hidden;
}

.youtube-container-short {
  padding-bottom: 175%;
}

.youtube-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.event-link {
  font-size: 0.8rem;
}

.event-link-arrow {
  background-color: orange;
  border-radius: 5px;
  width: 25px;
  height: 20px;
  margin-left: 3px;
  font-size: 0.8rem;
  position: relative;
  display: block;
}

.move-arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height: 600%; */
  display: flex;
  justify-content: center;
  align-items: center;
  animation: moveArrow 1s infinite ease-in-out;
}

@keyframes moveArrow {

  0%,
  100% {
    transform: translateY(2px);
  }

  50% {
    transform: translateY(7px);
  }
}

.official-link-list {
  font-size: 0.8rem;
  padding: 0;
}



/* --------------- ゲーム概要 -------------*/
.game-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* 中央揃え */
}

.game-item {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin: 15px;
  /* width: 48%; */
  overflow: hidden;
  transition: transform 0.2s;
}

.game-item img {
  /* width: 100%;
  height: auto; */
}

.game-details {
  padding: 15px;
}

.maste-box {
  position: relative;
  /* background-color: #fff;
  background: repeating-linear-gradient(-45deg, #edf5f4, #edf5f4 10px, #f6faf9 0, #f6faf9 20px); */
  padding: 1em;
}

.maste-tape {
  position: absolute;
  top: -0.5em;
  background-color: rgba(234, 234, 64, .3);
  border-left: 4px solid #edea40;
  padding: 0.25em 2em;
  color: #454545;
  transform: rotate(-3deg);
}

.game-icon {
  border-radius: 10px;
  width: 100%;
}

.game-info-icon {
  font-size: small;
  margin-bottom: 0.3rem;
}

.game-info-icon-free {
  border: solid 1px gray;
  border-radius: 8px;
  background-color: red;
  color: white;
  padding: 1px 4px;
  font-size: 0.7rem;
}

.game-info-icon-simulation {
  border: solid 1px gray;
  border-radius: 8px;
  background-color: orange;
  color: white;
  padding: 1px 4px;
  font-size: 0.7rem;
}

@media (max-width: 480px) {

  .game-info-icon-free,
  .game-info-icon-simulation {
    font-size: 0.6rem;
  }
}

.game-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 0 0 10px;
  color: #333;
}

.game-description {
  font-size: 1em;
  color: #666;
  margin: 0 0 5px;
}

.game-meta {
  font-size: 0.9em;
  color: #999;
  margin-bottom: 10px;
}

.official-web {
  border: 1px solid lightgray;
  border-radius: 5px;
  padding: 0.2rem 0.5rem;
  color: white;
  line-height: 0;
  background-color: black;

}

.sns-x {
  /* border: 1px solid lightgray; */
  color: black;
  font-size: 2rem;
  line-height: 0;
}

@media (max-width: 768px) {
  .sns-x {
    font-size: 1.8rem;
  }
}


/* ----------- おすすめポイント -------------- */
.recommend-points {
  /* background-color: #e9ecef;
    padding: 10px; */
  border-radius: 5px;
  margin-bottom: 15px;
  font-size: 0.9em;
  color: #444;
}

.recommend-points h3 {
  margin: 0 0 10px;
  font-size: 1em;
  color: #333;
}

.recommend-points ul {
  margin: 0;
  padding: 0;
  list-style: disc inside;
}

.recommend-points-text {
  position: relative;
  padding: 1rem 2rem;
  text-align: center;
  color: #0075a9;
  border-radius: 0 10px 10px 10px;
  background: #d8ecf5;
}

.recommend-points-text:before {
  font-family: 'Font Awesome 6 Free';
  font-size: 15px;
  font-size: 0.7rem;
  position: absolute;
  top: -18px;
  left: 0;
  height: 18px;
  padding: 0.3em 1em;
  content: '\f0a4  おすすめポイント';
  color: #fff;
  border-radius: 10px 10px 0 0;
  background: #0075a9;
}

.recommend-points-text ul li {
  line-height: 1.5;
  padding: 0.5em 0 0.5em 1.5em;
  /* border-bottom: 2px solid white; */
  list-style-type: none !important;
}

.recommend-points-text ul li:before {
  font-family: 'FontAwesome';
  content: '\f00c';
  font-size: 15px;
  font-size: 1rem;
  font-weight: 900;
  position: absolute;
  left: 1.5em;
  /*左端からのアイコンまで*/
  color: #668ad8;
  /*アイコン色*/
}

/* ----------------- ストアリンクボタン ----------------- */
.store-buttonsss {
  border: 1px solid lightgray;
  border-radius: 10px;
  padding: 10px 0px;
  background-color: lightyellow;
}

.store-buttons img {
  /* width: 48%; */
  width: auto;
  height: 50px;
  cursor: pointer;
}

.game-store-icon img {
  height: 45px;
  width: auto;
  margin: auto 5px;
}

@media (max-width: 768px) {
  .game-store-icon img {
    height: 40px;
  }
}

.store-icon-title {
  position: relative;
  display: inline-block;
  padding: 0 2em;
  text-align: center;
  font-weight: bold;
}

.store-icon-title:before,
.store-icon-title:after {
  font-family: 'FontAwesome';
  line-height: 1;
  position: absolute;
  top: calc(50% - .5em);
  color: #eb6100;
}

.store-icon-title:before {
  left: 0;
  content: '\f103';
  animation: moveRight 1.5s infinite;
}

.store-icon-title:after {
  right: 0;
  content: '\f103';
  animation: moveLeft 1.5s infinite;
}

.nes-balloon .game-store-icon img {
  height: 30px;
  width: auto;
  margin: 0;
}

.arrow.right {
  animation: moveRight 1.5s infinite;
}

.arrow.left {
  animation: moveLeft 1.5s infinite;
}

@keyframes moveRight {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

@keyframes moveLeft {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

.store-box {
  border: 1px solid lightgray;
  border-radius: 10px;
  background-color: lightyellow;
  padding: 10px 0px 0px;
}

/* --------------- ゲーム紹介 -------------*/
.game-read-text {
  position: relative;
  line-height: 1.4;
  padding: 0.25em 1em;
  display: inline-block;
  color: red;
  font-weight: bold;
}

.game-read-text:before,
.game-read-text:after {
  content: '';
  width: 20px;
  height: 30px;
  position: absolute;
  display: inline-block;
}

.game-read-text:before {
  border-left: solid 2px #000;
  border-top: solid 2px #000;
  top: 0;
  left: 0;
}

.game-read-text:after {
  border-right: solid 2px #000;
  border-bottom: solid 2px #000;
  bottom: 0;
  right: 0;
}

.game-info-text-pre {
  white-space: pre-wrap;

  overflow: hidden;
  max-height: 5.6rem;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out;
  opacity: 1;
  position: relative;
}

.game-info-text-pre::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.2em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.game-info-text-pre.expanded {
  max-height: 2000px;
  /* 大きめの値を設定してスムーズに表示 */
  opacity: 1;
}

.game-info-text-pre.expanded::after {
  opacity: 0;
}

.more-btn {
  display: block;
  margin-top: 10px;
  color: black;
  cursor: pointer;
  text-align: center;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.more-btn:hover {
  color: black;
}

/* --------------- ユーザーレビュー -------------*/
.review-text-pre {
  white-space: pre-wrap;
  margin-bottom: 0.1rem;
}

.review-item {
  padding: 10px 10px;
}


.review-slider-box {
  border: 1px solid lightgray;
  border-radius: 10px;
  width: 95%;
  max-width: 600px;
  margin: auto;
}


.review-title-text {
  position: relative;
  /*相対位置*/
  padding-left: 1.2em;
  /*アイコン分のスペース*/
  line-height: 1.4;
  /*行高*/
}

.review-title-text:before {
  font-family: "FontAwesome";
  content: "\f075";
  /*アイコンのユニコード*/
  font-weight: 900;
  position: absolute;
  /*絶対位置*/
  font-size: 1em;
  /*サイズ*/
  left: 0;
  /*アイコンの位置*/
  top: 0;
  /*アイコンの位置*/
  color: #5ab9ff;
  /*アイコン色*/
}

/* ------------------ other app link ---------------*/
.other-app-link-icon img {
  height: 65px;
  width: auto;
  border-radius: 10px;
}

.other-app-link-icon td {
  width: 33%;
  /* padding: 1px auto; */
}

.other-app-link-text td {
  font-size: 0.6rem;
  padding: 0;
}

.other-app-link-top {
  margin: auto 15px;
}

.other-app-link-top td {
  width: 25%;
  /* background-color: #fff2db; */
  background-color: black;
  vertical-align: middle;
  color: white;
}

.other-app-link-top .other-app-link-text td {
  padding: 0 5px 10px;
}

.other-app-link-top table {
  border-radius: 10px;
  overflow: hidden;
}

.other-app-link-top .other-app-link-icon img {
  height: 55px;
}

.other-app-info td {
  padding: 0.5rem 0.5rem 0;
}

.other-app-info-update {
  border: 1px solid lightgray;
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.7rem;
  display: inline-block;
  background-color: gold;
}

.other-app-info-update .blink-text {
  animation: blink 2s infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }
}

.other-app-info-features-add {
  border: 1px solid lightgray;
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.7rem;
  animation: textColorChange 3s infinite;
  display: inline-block;
  background-color: deepskyblue;
  white-space: nowrap;
}

@keyframes textColorChange {
  0% {
    color: red;
  }

  25% {
    color: yellow;
  }

  50% {
    color: green;
  }

  75% {
    color: blue;
  }

  100% {
    color: red;
  }
}

.other-app-info-renewal {
  border: 1px solid lightgray;
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.7rem;
  position: relative;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
  background-color: tomato;
}

.shine-text {
  position: relative;
  display: inline-block;
  color: white;
  /* color: black; */
}

.shine-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shine 4s infinite;
}

@keyframes shine {
  0% {
    left: -150%;
  }

  5% {
    left: 100%;
  }

  5.01% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

.other-app-info-attention {
  border: 1px solid lightgray;
  border-radius: 5px;
  padding: 1px 5px;
  font-size: 0.7rem;
  display: inline-block;
  background-color: lime;
}

.other-app-info-attention .shaking-text {
  display: inline-block;
  animation: shake 3s infinite;
  color: red;
  font-weight: bold;
}

@keyframes shake {

  /* 2秒間震える（0%～66%） */
  0%,
  3%,
  6%,
  9%,
  12%,
  15%,
  18%,
  21%,
  24%,
  27%,
  30%,
  33%,
  36%,
  39%,
  42%,
  45%,
  48%,
  51%,
  54%,
  57%,
  60%,
  63% {
    transform: translateX(0);
  }

  1.5%,
  4.5%,
  7.5%,
  10.5%,
  13.5%,
  16.5%,
  19.5%,
  22.5%,
  25.5%,
  28.5%,
  31.5%,
  34.5%,
  37.5%,
  40.5%,
  43.5%,
  46.5%,
  49.5%,
  52.5%,
  55.5%,
  58.5%,
  61.5%,
  64.5% {
    transform: translateX(-2px);
  }

  /* 1秒停止する（67%～100%） */
  66%,
  100% {
    transform: translateX(0);
  }
}

/* --------- image effect --------- */
.img-glow {
  position: relative;
  width: 100%;
  height: auto;
}

.img-glow img {
  border-radius: 5px;
}

/* .img-glow .image {
  width: 100%;
  height: 100%;
  overflow: hidden;
} */
.glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0) 70%);
  transform: translateX(-100%);
  filter: blur(8px);
  animation: none;
}

@keyframes img-shine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ------ X share ---------*/
.x-share-btn {
  border: 1px solid lightgray;
  border-radius: 5px;
  background-color: black;
  color: white;
  padding: 3px 10px;
}

/* ------ neon button ---------*/
.neon-button {
  font-size: 0.7rem;
  padding: 1px 5px;
  color: white;
  background-color: transparent;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  transition: text-shadow 0.3s ease-in-out;
  white-space: nowrap;
}


/* -------- top-message  -------------- */
/* .message img{
  width: 70px;
} */
.nes-container {
  border: none;
}

/* .nes-balloon{
  max-width: 300px;
} */
section.message-list {
  display: flex;
  flex-direction: column;
}

.message-list>.message {
  display: flex;
  margin-top: 2rem;
}

.message-list>.message.-right {
  align-self: flex-end;
}

.message-list>.message>.nes-balloon {
  max-width: 300px;
}

.message-list>.message.-right i {
  margin-left: 2rem;
}

.message-list>.message img {
  align-self: flex-end;
}

.nes-bcrikko {
  position: relative;
  display: inline-block;
  width: 96px;
  height: 96px;
}

.nes-balloon {
  border-image-repeat: stretch !important;
}

.nes-balloon p {
  font-size: 0.9rem;
}

pre {
  font-family: inherit;
}

.mark {
  background: linear-gradient(transparent 10%, yellow 0%);
}

.jikuu-info {
  margin: auto;
  padding: 10px;
  width: 100%;
  background-color: rgb(255 233 215);
  border-radius: 10px;
}


.bouncing-image {
  /* width: 50px;
  height: 50px; */
  margin: 10px 0;
  animation: jump 2s infinite ease-in-out;
}

@keyframes jump {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  25% {
    transform: translateY(-10px) scale(1.02);
  }

  50% {
    transform: translateY(0) scale(1);
  }

  75% {
    transform: translateY(0) scale(1);
  }
}

.wobble-right {
  animation: wobbleRight 2s ease 0s infinite normal none;
}

@keyframes wobbleRight {

  0%,
  100% {
    transform: translateY(0) rotate(0);
    transform-origin: 50% 50%;
  }

  15% {
    transform: translateY(-7px) rotate(7deg);
  }

  30% {
    transform: translateY(5px) rotate(-3deg);
  }

  45% {
    transform: translateY(-5px) rotate(1.6deg);
  }

  60% {
    transform: translateY(2px) rotate(-1.4deg);
  }

  75% {
    transform: translateY(-1px) rotate(0.2deg);
  }
}

.fuwafuwa {
  animation: fuwafuwa 3s ease-in-out infinite alternate;
}

@keyframes fuwafuwa {
  0% {
    transform: translate(0, 0) rotate(-4deg);
  }

  25% {
    transform: translate(0, -7px) rotate(0deg);
  }

  50% {
    transform: translate(0, 0) rotate(0deg);
  }

  75% {
    transform: translate(0, -3px) rotate(0deg);
  }

  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}


/* ------ pr ---------*/
.pr{
  max-width: 540px;
  margin: auto;
}

.pr img {
  max-width: 100%;
}

/* .pr-title-text {
  font-size: 0.7rem;
} */

.pr-text {
  font-size: 0.7rem;
}

.pr video {
  width: 100%;
}

.pr-title-text {
  font-size: 0.6rem;
  color: white;
}

.pr-info {
  font-size: 0.6rem;
}

@media (max-width: 768px) {
  .pr-info {
    font-size: 0.4rem;
    margin-bottom: 2svh;
  }
}

.ios-only {
  display: none;
}

.image-button {
  border: none;
  cursor: pointer;
}

.pr-block{
  border: 1px solid lightgray;
  border-radius: 5px;
}
.pr-block .pr-text{
  font-size: 0.7rem;
}
.pr-block .pr-bnr-text{
  font-size: 0.8rem;
}

#puzzles_chaos .game-details{
  background-color: lightsteelblue;
}


/* ------ slick slider ---------*/
.slick-prev-mod,
.slick-next-mod {
  font-size: 25px;
  line-height: 0;
  position: absolute;
  top: 50%;
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  -webkit-transform: translate(0, -50%);
  -ms-transform: translate(0, -50%);
  transform: translate(0, -50%);
  cursor: pointer;
  color: gray;
  border: none;
  outline: none;
  background: transparent;
}

.slick-prev-mod {
  left: -20px;
}

.slick-next-mod {
  right: -26px;
}

/* --------------- SimpleLightbox ------------ */
.sl-overlay {
  background-color: rgba(0, 0, 0, 0.9);
  /* 背景を黒の半透明に設定 */
}

.app-stars {
  /* display: flex; */
  position: relative;
  font-size: 0.9rem;
  color: #ccc;
  height: 1rem;
  width: 100%;
  margin: auto;
}

@media (max-width: 768px) {
  .app-stars {
    width: 92px;
  }
}

.app-stars span {
  font-size: 0.8rem;
}

.app-stars::before {
  content: '★★★★★';
  position: absolute;
  top: 0;
  left: 0;
  color: #ffd700;
  /* 塗りつぶしの星の色 */
  width: calc(var(--rating) * 15%);
  overflow: hidden;
  white-space: nowrap;
  z-index: 10;
}

@media (max-width: 768px) {
  .app-stars::before {
    width: calc(var(--rating) * 15.5%);
  }
}

.app-stars::after {
  content: '★★★★★';
  position: absolute;
  top: 0;
  left: 0;
  color: #ccc;
  /* 背景の星の色 */
}

.stars {
  display: flex;
  position: relative;
  font-size: 1.2rem;
  color: #ccc;
  height: 2rem;
}

@media (max-width: 768px) {
  .stars {
    width: 110px;
  }
}

.stars::before {
  content: '★★★★★';
  position: absolute;
  top: 0;
  left: 0;
  color: #ffd700;
  /* 塗りつぶしの星の色 */
  width: calc(var(--rating) * 4.6%);
  overflow: hidden;
  white-space: nowrap;
  z-index: 10;
}

@media (max-width: 768px) {
  .stars::before {
    width: calc(var(--rating) * 18%);
  }
}

.stars::after {
  content: '★★★★★';
  position: absolute;
  top: 0;
  left: 0;
  color: #ccc;
  /* 背景の星の色 */
}

footer p {
  font-size: 0.8rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .game-item {
    width: 100%;
    /* margin: 15px 0; */
    margin: auto;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .store-buttons img {
    /* width: 70%; */
    height: 40px;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .game-title {
    font-size: 1.2em;
  }

  .game-description,
  .game-meta {
    font-size: 0.8em;
  }

  .review-slider {
    height: auto;
  }

  .review-slider .review-item {
    font-size: 0.85em;
  }
}

/* 画像拡大 */
/* フルスクリーンモーダル */
.fullscreen-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.fullscreen-modal img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}


.radius-table{
  border-radius: 10px;
  border-spacing: 0;
  border: none;
  /* border-left: 1px solid #999;
  border-top: 1px solid #999; */
}
.radius-table tr>*{
  padding: 5px 10px;
  border: none;
  /* border-right: 1px solid #999;
  border-bottom: 1px solid #999; */
}
.radius-table tr:first-child>*:first-child{
  border-radius: 10px 0 0 0;
}
.radius-table tr:first-child>*:last-child{
  border-radius: 0 10px 0 0;
}
.radius-table tr:last-child>*:first-child{
  border-radius: 0 0 0 10px;
}
.radius-table tr:last-child>*:last-child{
  border-radius: 0 0 10px 0;
}




#menu .glowing-title {
  /* font-size: 2.5rem; */
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  color: #fff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
  transition: all 1.3s ease;
}

#menu .glowing {
  color: #ffffff;
  text-shadow: 0 0 10px #00aaff, 
               0 0 20px #00aaff, 
               0 0 30px #00aaff, 
               0 0 40px #00aaff;
  transform: scale(1.03);
}