/* ゲームポータル（{PORTAL_URL}/）と各ゲームのLP（{PORTAL_URL}/<slug>/）の共通スタイル。
   配色とフォントは euryops.co.jp のコーポレートサイトに揃えている（同じ会社の
   別セクションとして見えることを狙う）。ゲーム本体の style.css とは別系統。 */

:root {
  /* euryops.co.jp のブランドトークン */
  --teal: #1e7d8c; /* ヒーローの地色 */
  --teal-lt: #009baf;
  --teal-dk: #2c5e5e;
  --yellow: #f5d000; /* 花・現在地ドット */
  --orange: #ff9114;
  --ink: #1a1a1a;
  --sub: #5b6a6d;
  --line: #e8e8e8;
  --white: #fff;
  --tint: #f2f8f9; /* ごく淡いティール。セクションの地色 */

  /* ゲームごとに上書きされる（site/games.json の accent） */
  --accent: #009baf;

  --radius: 18px;
  --head-h: 72px;
  --shadow: 0 10px 30px rgba(30, 125, 140, 0.12);
  --shadow-lift: 0 16px 40px rgba(30, 125, 140, 0.2);

  --font-round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans",
    "Noto Sans JP", sans-serif;
  --font-head: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP",
    -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", -apple-system, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

.inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- ヘッダー（企業サイト AppHeader.vue と同じ構成） ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1600px;
  height: var(--head-h);
  margin: 0 auto;
  padding: 8px max(1rem, min(90px, 4.7vw));
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.site-logo__img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

@media (min-width: 768px) {
  .site-logo__img {
    height: 56px;
  }
}

.site-nav {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }
}

@media (min-width: 1280px) {
  .site-nav {
    gap: 56px;
  }
}

.site-nav a,
.site-nav-mobile a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav-mobile a:hover {
  color: var(--orange);
}

.site-nav a[aria-current="page"],
.site-nav-mobile a[aria-current="page"] {
  color: var(--orange);
  font-weight: 700;
}

.site-nav a[aria-current="page"]::before,
.site-nav-mobile a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.site-menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

@media (min-width: 768px) {
  .site-menu-btn {
    display: none;
  }
}

.site-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.site-menu-btn.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.site-menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.site-menu-btn.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.site-nav-mobile {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.site-nav-mobile a {
  display: block;
  padding: 12px max(1rem, min(90px, 4.7vw));
}

@media (min-width: 768px) {
  .site-nav-mobile {
    display: none;
  }
}

/* ---- ヒーロー ---- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, var(--accent), var(--teal) 62%);
  color: var(--white);
  padding: clamp(56px, 11vw, 120px) 0 clamp(64px, 12vw, 132px);
}

.hero .inner {
  position: relative;
  z-index: 1;
}

.hero__label {
  margin: 0 0 22px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: rgba(255, 255, 255, 0.72);
}

.hero__title {
  margin: 0 0 26px;
  font-family: var(--font-round);
  font-weight: 900;
  font-size: clamp(34px, 7.6vw, 62px);
  line-height: 1.34;
  letter-spacing: 0.01em;
  white-space: pre-line;
}

.hero__lead {
  margin: 0;
  max-width: 34em;
  font-size: clamp(13px, 1.7vw, 15px);
  line-height: 2.15;
  white-space: pre-line;
  color: rgba(255, 255, 255, 0.94);
}

/* ゲームLPのヒーロー。マークとタイトルを横並びにする */
.game-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.game-hero__icon {
  flex: none;
  width: clamp(64px, 12vw, 88px);
  height: clamp(64px, 12vw, 88px);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.game-hero__mark {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 12vw, 88px);
  height: clamp(64px, 12vw, 88px);
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-round);
  font-weight: 900;
  font-size: clamp(34px, 6.4vw, 46px);
  line-height: 1;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.game-hero .hero__title {
  margin: 0 0 4px;
  font-size: clamp(28px, 5.6vw, 46px);
}

.hero__tagline {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(13px, 2vw, 16px);
  color: var(--yellow);
}

/* 黄色い花の装飾。右下に散らす。狭い画面では邪魔になるので薄く小さくする */
.hero__flowers {
  position: absolute;
  right: -3%;
  bottom: -8%;
  width: clamp(200px, 34vw, 400px);
  pointer-events: none;
  opacity: 0.95;
}

/* 狭い画面では本文やボタンに重なってしまうので、大半を画面外に逃がして
   右下の質感として残す程度にする */
@media (max-width: 720px) {
  .hero__flowers {
    right: -26%;
    bottom: -10%;
    width: 240px;
    opacity: 0.3;
  }
}

/* ---- セクション ---- */

.section {
  padding: clamp(52px, 8vw, 92px) 0;
}

.section--tint {
  background: var(--tint);
}

.section__label {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--teal-lt);
}

.section__title {
  margin: 0 0 10px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: clamp(22px, 3.6vw, 30px);
  line-height: 1.5;
}

.section__lead {
  margin: 0 0 34px;
  color: var(--sub);
  font-size: 14px;
}

/* ---- ゲーム一覧のカード ---- */

/* ゲームが 1 本でも 6 本でもカード幅が変わらないように、列の上限を決めて左詰めにする
   （auto-fit で伸ばすと 1 本のときだけ極端に横長になる） */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 330px));
  justify-content: start;
  gap: 22px;
}

@media (max-width: 700px) {
  .game-grid {
    grid-template-columns: 1fr;
  }
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.game-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.game-card__icon {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.game-card__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: var(--tint);
  box-shadow: inset 0 0 0 3px var(--card-accent, var(--accent));
  color: var(--ink);
  font-family: var(--font-round);
  font-weight: 900;
  font-size: 32px;
  line-height: 1;
}

.game-card__name {
  margin: 0 0 6px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.5;
}

.game-card__tagline {
  margin: 0 0 10px;
  color: var(--card-accent, var(--accent));
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
}

.game-card__lead {
  margin: 0 0 20px;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.85;
}

.game-card__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.game-card__more {
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
}

.game-card__more::after {
  content: " →";
}

.game-card__more:hover {
  color: var(--teal-lt);
}

.game-card__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.game-card__stores a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
}

.game-card__stores a:hover {
  background: var(--teal);
  color: var(--white);
}

/* 準備中のカード。ストアボタンを出さず、地色を落として区別する */
.game-card.is-coming {
  background: var(--tint);
  box-shadow: none;
}

.game-card.is-coming:hover {
  transform: none;
  box-shadow: none;
}

.game-card.is-coming .game-card__icon {
  opacity: 0.72;
}

.game-card.is-coming .game-card__mark {
  background: var(--white);
  box-shadow: inset 0 0 0 3px var(--line);
  color: #a9b6b8;
}

.badge {
  display: inline-block;
  /* カードは flex コンテナなので、指定しないと横幅いっぱいに伸びてしまう */
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 3px 11px;
  border-radius: 999px;
  background: rgba(245, 208, 0, 0.24);
  color: #8a6a00;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* ---- ボタン ---- */

.store-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 12px;
  background: var(--white);
  border: none;
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transition: background 0.14s ease, transform 0.14s ease;
}

.btn:hover {
  background: #fffdf3;
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--yellow);
  color: var(--ink);
}

.btn.primary:hover {
  background: #ffe44a;
}

/* ---- 特徴カード（LP） ---- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
}

.feature h3 {
  margin: 0 0 8px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
}

.feature p {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.9;
}

/* ---- 法的文書（LP） ---- */

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.legal-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.legal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: var(--teal-lt);
}

.legal-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  color: var(--teal);
}

.legal-card p {
  margin: 0;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.85;
}

/* ---- 未インストール時の案内 ---- */

.note {
  margin: 26px 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-size: 13px;
  line-height: 1.85;
}

/* ---- 言語切替 ---- */

.lang {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.lang button {
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--sub);
  font: inherit;
  font-family: var(--font-head);
  font-size: 12px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  border-color: var(--teal-lt);
  color: var(--teal);
  font-weight: 700;
}

/* ---- フッター（企業サイト AppFooter.vue と同じ構成） ---- */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line);
  color: var(--ink);
  padding: 32px 0;
  font-size: 14px;
}

.site-footer__inner {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.site-footer nav,
.site-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 40px;
  margin-bottom: 16px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-body);
}

.site-footer a:hover {
  color: var(--orange);
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

@media (max-width: 560px) {
  .inner {
    padding: 0 18px;
  }
  .store-btns .btn {
    width: 100%;
    text-align: center;
  }
}
