@charset "UTF-8";

body {
  width: 100%;
  max-width: 960px;
  min-width: 480px;
  margin: 0 auto;
  padding: 0;
  background-image: url("../img/haikeimomo_x2_1280.png");
  font-family: 'BIZ UDゴシック';
  color: #ffffff;
  line-height: 150%;
}

.mb {
  background-color: #141414;
}

footer {
  background-color: #000000;
  padding: 1%;
}

h1 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 0;
  text-align: center;
}

h2 {
  margin-bottom: 0;
  text-align: center;
}

h3 {
  margin-bottom: 0;
  text-align: left;
  font-size: 100%;
}

a {
  color: #ffffff;
}

.gyo {
  margin: auto;
  width: 100%;
  table-layout: fixed;
  border: none;
}

.fl {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.box {
  width: calc(100% - 30px);
  border: solid #ffffff 4px;
  border-radius: 16px;
  margin: 2px;
  padding: 10px 10px;
}

.fl_2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 49%;
  .box {
  width: calc(100% - 16px);
  border: solid #ffffff 4px;
  border-radius: 16px;
  margin: 0;
  padding: 10px 4px;
  }
} 

.topimg {
  width: 50%;
}

.com_1 {
  text-align: center;
  padding: 1%;
  margin: 2px;
  border: solid 4px #ffffff;
  border-radius: 8px;
}

.com_1_l {
  text-align: left;
  padding: 1%;
  margin: 2px;
  border: solid 4px #ffffff;
  border-radius: 8px;
}

.com_2 {
  padding: 1%;
  margin: 2px;
  border: solid 4px #ffffff;
  border-radius: 8px;
}

.mokuzi{
  width: 50%;
  padding: 1%;
  margin: auto;
  border: solid 4px #ffffff;
  border-radius: 8px;
}

.top {
  margin: 2px;
  padding: 0.5% 2%;
  border: solid #ffffff 4px;
  border-radius: 8px;
  position: relative;
}

.gamename {
  width: 88%;
  padding: 0.5% 2%;
  border: solid #ffffff 4px;
  border-radius: 8px;
  position: absolute;
  top: -4px;
  right: -4px;
}

.pagetl {
  width: 65%;
  padding: 0.5% 2%;
  border: solid #ffffff 4px;
  border-radius: 8px;
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #141414;
}

.slmntl {
  width: 40%;
  padding: 0.5% 2%;
  border: solid #ffffff 4px;
  border-radius: 8px;
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #141414;
}

.fl, .gamedata {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.fl table, .gamedata_1 {
  width: calc( 33% - 2px );
}

.gamedata_2 {
  width: calc( 66% - 2px );
  text-align: left;
}

table {
  width: 100%;
  border: solid #ffffff 4px;
  border-radius: 8px;
}

.c {
  text-align: center;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 300px);
  gap: 0.5rem;
  justify-content: center;
}

.game-card {
  display: block;
  background: #272727;
  border-radius: 12px;
  text-decoration: none;
  line-height: 50%;
}

.game-card:hover {
  transform: translateY(-5px);
}

.game-card img {
  height: 180px;
  object-fit: none;
  display: block;
  margin: 0 auto;
}

.game-card h2 {
  font-size: 1.2rem;
}

.game-card p {
  font-size: 0.9rem;
}

.app-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, 224px);
  gap: 0.5rem;
  justify-content: center;
}

.app-card {
  background: #272727;
  border-radius: 12px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
}

.app-card img {
  height: 72px;
  object-fit: none;
  display: block;
  margin: 0 auto;
}

.app-card h3 {
  font-size: 0.8rem;
}

.download-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
  margin-top: auto;
}

.download-links a {
  text-align: center;
  border-radius: 12px;
  text-decoration: none;
  background: #ff74dc;
  color: #fff;
  font-size: 1rem;
  transition: background 0.2s;
  display: block;
}

.download-links a:hover {
  background: #e92792;
}

@media(max-width: 960px) {
  .fl {
    flex-direction: column;
  }

  .topimg {
    width: auto;
    margin: 0 auto;
  }

  .fl_2 {
    width: 100%;
  }
}

@media(max-width:460px) {
  body {
    max-width: 460px;
    min-width: 320px;
    line-height: 1.5;
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 18px;
  }
  h3 {
    font-size: 16px;
  }
  .mokuzi {
    width: 90%;
  }
  .fl {
    width: 100%;
  }
  .fl table {
    width: calc( 48% - 2px );
  }
  .gamename {
    width: 80%;
  }
  .pagetl {
    width: 100%;
    position: relative;
    top: auto;
    bottom: -5px;
    right: calc( 2% + 4px );
  }
  .slmntl {
    width: 100%;
    position: relative;
    top: auto;
    bottom: -5px;
    right: calc( 2% + 4px );
  }
  .gamedata_1 {
    width: 100%;
  }
  .gamedata_2 {
    width: 100%;
  }
  iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
  img {
    width: calc( 40vw - 2px );
  }
  .slmnimg {
    width: 90%;
  }
}

@keyframes blinking {
  0%,100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}