@charset "utf-8";

/* ========== Top page: Game list / cards / site-notice ========== */

/* ========== Game Cards Grid ========== */
.gamelist {
  scroll-margin-top: 12px;
}

.gamelist ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.gamelist ul li {
  margin: 0;
  width: 100%;
}

/* バナー＋「あそぶ！」をまとめるリンク */
.game-card-link {
  display: block;
  width: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.game-card-link:hover {
  transform: translateY(-3px);
}

.game-card-link:hover .game-card {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.game-card-link:active {
  transform: scale(0.98);
}

.game-card-link:focus-visible {
  outline: 3px solid #00b050;
  outline-offset: 3px;
  border-radius: 16px;
}

.game-card {
  display: block;
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.15s ease;
  background: #f5f5f5;
  aspect-ratio: 2.4 / 1;
}

.game-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* NEW リボン（.is-new を付けたリンクに表示） */
.game-card-link.is-new .game-card::before {
  content: "NEW";
  position: absolute;
  top: 10px;
  left: -28px;
  z-index: 2;
  width: 100px;
  padding: 4px 0;
  background: #ff5a3c;
  color: #fff;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  text-align: center;
  transform: rotate(-45deg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

/* バナー下の「あそぶ！」ラベル */
.game-card-play {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 8px auto 0;
  padding: 4px 16px;
  background: #00E667;
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.06em;
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(0, 180, 80, 0.4);
  text-align: center;
  line-height: 1.4;
  pointer-events: none;
}

/* Coming Soon */
.coming-soon .game-card {
  cursor: not-allowed;
  filter: grayscale(0.55) brightness(0.95);
}

.coming-soon .game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(80, 80, 80, 0.35);
  pointer-events: none;
}

.coming-soon-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: rgba(40, 40, 40, 0.82);
  color: #fff;
  font-size: 1.05rem;
  font-weight: bold;
  padding: 6px 18px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ========== Ad space ========== */
#adspace {
  text-align: center;
  margin: 20px auto 8px;
  padding: 0;
  min-height: 0;
}

/* ========== Site notice ========== */
.site-notice {
  margin: 16px auto 8px;
  padding: 0 4px;
  max-width: 100%;
  font-size: 0.85em;
  line-height: 1.6;
  color: #666;
  text-align: left;
}

.site-notice a {
  color: #00a050;
  text-decoration: underline;
}

.site-notice a:hover {
  color: #007a3d;
}

@media screen and (max-width: 768px) {
  .gamelist ul {
    gap: 12px;
  }

  .coming-soon-label {
    font-size: 0.95rem;
    padding: 5px 14px;
  }
}

@media screen and (max-width: 520px) {
  .gamelist ul {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .game-card {
    border-radius: 12px;
    aspect-ratio: 2.5 / 1;
  }

  .game-card-play {
    margin-top: 6px;
    padding: 3px 14px;
    font-size: 0.8rem;
  }

  .coming-soon-label {
    font-size: 0.9rem;
    padding: 5px 14px;
  }

  .site-notice {
    font-size: 0.8em;
    margin-top: 12px;
  }
}
