/* KOLORS GAMES（ゲーム事業）・はむころ サポート。共通の部品は hp.css（hp_subpage / subpage-* / footer）を使う */

body.hp_subpage.hp_subpage--games {
  background:
    radial-gradient(900px circle at 8% -8%, rgba(255, 230, 0, 0.36), transparent 42%),
    radial-gradient(700px circle at 102% 10%, rgba(255, 47, 146, 0.2), transparent 48%),
    radial-gradient(750px circle at -5% 78%, rgba(87, 213, 225, 0.26), transparent 52%),
    linear-gradient(168deg, #fffdf6 0%, #fff3f8 36%, #eef6ff 72%, #e4eefc 100%);
}

.games-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.games-hero {
  position: relative;
  overflow: hidden;
}

.games-hero > * {
  position: relative;
  z-index: 1;
}

.games-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(220px circle at 14% 72%, rgba(255, 230, 0, 0.45), transparent 70%),
    radial-gradient(180px circle at 86% 40%, rgba(255, 47, 146, 0.22), transparent 70%),
    radial-gradient(160px circle at 70% 92%, rgba(87, 213, 225, 0.3), transparent 70%);
}

.games-hero .subpage-back {
  display: inline-flex;
}

.games-eyebrow {
  margin: 0 0 6px;
  font-family: "Montserrat", sans-serif !important;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #ff2f92;
}

body.hp_subpage .games-hero h1.games-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 3.2rem;
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 0 0 22px;
  color: #0f1f2d;
}

.games-hero--compact h1.games-title {
  font-size: 2.4rem !important;
  margin-bottom: 14px !important;
}

.games-main.subpage-content {
  max-width: 960px;
  width: 100%;
  padding: 0 28px 100px;
}

.games-h2 {
  position: relative;
  font-family: "Montserrat", "M PLUS Rounded 1c", sans-serif !important;
  font-weight: 900 !important;
  font-size: 1.6rem !important;
  color: #0f1f2d !important;
  margin: 0 0 22px !important;
  padding-left: 18px;
}

.games-h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe600 0%, #ff2f92 100%);
}

.games-about {
  margin-bottom: 56px;
}

.games-about p {
  font-weight: 600;
}

/* 理念の上のキャッチ */
body.hp_subpage .games-hero p.games-catch {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.6;
  margin: 0 0 12px;
  background: linear-gradient(90deg, #ff2f92 0%, #ff8a00 50%, #1eb66e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Our Values */
.games-values-section {
  margin-bottom: 56px;
}

.games-values {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.games-value {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px 24px 30px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 40, 80, 0.09);
}

.games-value-icon {
  font-size: 2rem;
  color: #ff2f92;
  margin-bottom: 14px;
}

.games-value:nth-child(2) .games-value-icon {
  color: #ff8a00;
}

.games-value:nth-child(3) .games-value-icon {
  color: #1eb66e;
}

.games-value-en {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: #0f1f2d;
}

.games-value-label {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: #0d4a9a;
  margin: 4px 0 10px;
}

.games-value-desc {
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.8;
  color: #1f2b47;
}

/* Works（事例） */
.game-case {
  padding: 32px 36px 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0, 40, 80, 0.09);
  margin-bottom: 20px;
}

.game-case-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.game-icon {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(255, 120, 60, 0.22);
  object-fit: cover;
}

.game-icon--hero {
  display: block;
  margin: 0 auto 18px;
}

.game-title-body {
  min-width: 0;
}

.subpage-content p.game-case-label {
  margin: 0 0 2px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #ff2f92;
}

.subpage-content p.game-name {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 2px;
  color: #6b3b1f;
}

.subpage-content p.game-tagline {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 10px;
  color: #1f2b47;
}

.subpage-content p.game-case-lead {
  font-size: 0.98rem;
  font-weight: 600;
}

.game-shots {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 16px;
  margin: 0 0 18px;
  -webkit-overflow-scrolling: touch;
}

.game-shot {
  flex: 1 0 150px;
  max-width: 190px;
  scroll-snap-align: start;
  margin: 0;
}

.game-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 40, 80, 0.12);
  background: #fdeef4;
}

.subpage-content p.game-case-subheading {
  font-weight: 800;
  color: #0d4a9a;
  margin-bottom: 10px;
}

.game-case-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.game-case-points li {
  display: grid;
  grid-template-columns: 96px 1fr;
  column-gap: 14px;
  align-items: baseline;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(160deg, #fff9e0 0%, #ffeef6 100%);
}

.game-case-point-en {
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: #ff2f92;
}

.game-case-point-text {
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.75;
  color: #1f2b47;
}

.game-title-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 22px;
}

.game-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-badges li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff6cc;
  color: #5a4300;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.subpage-content p.game-title-links {
  margin: 12px 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #8a94a8;
}

.game-title-links a {
  color: #0d6bc9;
  font-weight: 700;
}

.game-title-links span {
  margin: 0 6px;
}

.game-title-card--next {
  align-items: center;
  background: rgba(255, 255, 255, 0.55);
  border: 2px dashed rgba(13, 74, 154, 0.2);
  box-shadow: none;
}

.game-next-icon {
  width: 88px;
  flex-shrink: 0;
  text-align: center;
  font-size: 2.2rem;
  color: #b9c3d6;
}

.subpage-content .game-title-card--next p.game-name {
  font-family: "Montserrat", sans-serif;
  color: #5a6478;
}

.subpage-content .game-title-card--next p.game-next-text {
  margin: 0;
  font-size: 0.9rem;
  color: #5a6478;
}

/* ボタン */
.game-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.game-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 240px;
  padding: 15px 28px;
  border-radius: 999px;
  background: #ff2f92;
  color: #fff;
  text-decoration: none;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  box-shadow: 0 10px 24px rgba(255, 47, 146, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.game-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 47, 146, 0.34);
}

.game-link-btn--sub {
  background: #fff;
  color: #0d4a9a;
  border: 2px solid #0d6bc9;
  box-shadow: none;
}

.game-link-btn--sub:hover {
  background: #eef5ff;
  box-shadow: none;
}

/* サポート */
.support-contact {
  border-top: 1px solid rgba(15, 31, 45, 0.1);
  margin: 0 0 24px;
}

.support-contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(15, 31, 45, 0.1);
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}

.support-contact-row dt {
  font-weight: 800;
  color: #0d4a9a;
}

.support-contact-row dd {
  margin: 0;
  font-weight: 700;
  color: #1f2b47;
  word-break: break-all;
}

.support-contact-row a,
.faq-answer a {
  color: #0d6bc9;
}

.support-ext {
  font-size: 0.8em;
  margin-left: 6px;
}

.support-subheading {
  font-weight: 800 !important;
  margin-bottom: 0.5em !important;
}

.support-bullets {
  margin: 0 0 1.4em;
  padding-left: 1.3em;
}

.support-bullets li {
  list-style: disc;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: 0.95rem;
  line-height: 1.9;
  font-weight: 500;
  color: #1f2b47;
}

.subpage-content p.support-note {
  font-size: 0.88rem;
  line-height: 1.8;
  color: #5a6478;
  margin-bottom: 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: 16px;
  background: #f6f9ff;
  border: 1px solid rgba(13, 74, 154, 0.1);
}

.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 52px;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.6;
  color: #0f1f2d;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 14px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ff2f92;
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 26px;
  text-align: center;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Montserrat", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #0d6bc9;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 22px 8px 52px;
}

.subpage-content .faq-answer p {
  font-size: 0.95rem;
  line-height: 1.9;
  margin-bottom: 1em;
}

@media (max-width: 768px) {
  body.hp_subpage .games-hero h1.games-title {
    font-size: 2.2rem;
  }

  body.hp_subpage .games-hero p.games-catch {
    font-size: 1.2rem;
  }

  .games-hero--compact h1.games-title {
    font-size: 1.9rem !important;
  }

  .games-main.subpage-content {
    padding: 0 16px 72px;
  }

  .support-card {
    padding: 24px 18px 28px;
    border-radius: 18px;
  }

  .games-values {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .game-case {
    padding: 22px 18px 24px;
    border-radius: 18px;
  }

  .game-case-head {
    align-items: flex-start;
    gap: 14px;
  }

  .game-case-head .game-icon {
    width: 72px;
    height: 72px;
    border-radius: 17px;
  }

  .game-shot {
    flex: 0 0 140px;
  }

  .game-case-points li {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .game-title-card {
    padding: 18px;
  }

  .game-next-icon {
    width: 72px;
  }

  .support-contact-row {
    grid-template-columns: 1fr;
    row-gap: 2px;
  }

  .game-link-btn {
    width: 100%;
    min-width: 0;
  }

  .faq-item summary {
    padding-left: 48px;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 16px 6px 18px;
  }
}
