/*
究極大富豪 LP
(c) rpaka-farm
*/

/* ================
   変数定義
   ================ */

:root {
  --brand-color: linear-gradient(45deg, rgba(0, 176, 176, 1) 0%, rgba(0, 176, 88, 1) 100%);
  --hero-shadow: drop-shadow(0 20px 10px rgba(0, 0, 0, .9));
  --fontsize-announce: 65px;
  --fontsize-meta: 28px;
  --fontsize-cite: 18px;
}

@media screen and (max-width: 1100px) {
  :root {
    --fontsize-announce: 38px;
    --fontsize-meta: 20px;
    --fontsize-cite: 14px;
  }
}

/* ================
   リセット
   ================ */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

/* ================
   ページレイアウト
   ================ */

/* ビューポートいっぱいに広げ、フッターを下部固定 */
.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh; /* モバイルブラウザのアドレスバーを除いた高さ */
}

/* ================
   ヒーロー
   ================ */

.hero {
  flex: 1;
  position: relative;
  overflow: hidden;
  min-height: 0;
}

/* ゲーム画面の静止画背景 */
.hero_bg {
  position: absolute;
  inset: 0;
  background-image: url('https://cdn.rpaka-farm.jp/president-noir/v2/GameScreen.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* ブラー＋暗転オーバーレイ */
.imageOverlap {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

/* コンテンツ全体（hero に重なる） */
.hero_content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* 横幅を制限する内側コンテナ */
.hero_inner {
  max-width: 1200px;
  width: 100%;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero_content_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

/* モバイル */
@media screen and (max-width: 1100px) {
  .hero_inner {
    flex-direction: column;
    justify-content: center;
    padding: 30px 20px;
    gap: 28px;
  }

  /* コンテンツがはみ出した場合のフォールバック */
  .hero_content {
    overflow-y: auto;
  }
}

/* 縦が短い小型スマホ（iPhone SE 等）向け追加調整 */
@media screen and (max-width: 1100px) and (max-height: 700px) {
  :root {
    --fontsize-announce: 30px;
  }

  .hero_inner {
    gap: 16px;
    padding: 16px 20px;
  }

  .logo_image {
    height: 190px;
  }

  .announce {
    gap: 16px;
  }

  .linkButton {
    font-size: 16px;
    padding: 10px 20px;
  }
}

/* ================
   ロゴ
   ================ */

.logo_image {
  height: 360px;
  filter: var(--hero-shadow);
}

@media screen and (max-width: 1100px) {
  .logo_image {
    height: 240px;
  }
}

/* ================
   メタ情報（Made with Unity）
   ================ */

.metainfo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.metainfo_item {
  color: white;
  font-size: var(--fontsize-meta);
  filter: var(--hero-shadow);
  letter-spacing: 0.05em;
}

@media screen and (max-width: 1100px) {
  .metainfo {
    display: none;
  }
}

/* ================
   アナウンス
   ================ */

.announce {
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* グラデーション帯付きテキスト */
.announceText {
  position: relative;
  display: inline-block;
}

.announceText_bg {
  position: absolute;
  bottom: 0;
  left: -10px;
  width: calc(100% + 20px);
  height: 40%;
  background: var(--brand-color);
  z-index: 0;
}

.announceText_label {
  position: relative;
  z-index: 1;
  font-size: var(--fontsize-announce);
  font-weight: 800;
  text-align: center;
}

/* ================
   ボタン
   ================ */

.linkButton {
  display: inline-block;
  color: white;
  text-decoration: none;
  border: 2px solid white;
  border-radius: 12px;
  padding: 12px 28px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}

.linkButton:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ボタンコンテナ：PC は横並び、モバイルは縦並び統一幅 */
.announce_buttons {
  display: flex;
  flex-direction: row;
  gap: 16px;
}

@media screen and (max-width: 1100px) {
  .announce_buttons {
    flex-direction: column;
    width: 100%;
  }

  .announce_buttons .linkButton {
    width: 100%;
    text-align: center;
  }
}

/* ================
   フッター
   ================ */

.footer {
  background: var(--brand-color);
  flex-shrink: 0;
}

.cite {
  display: block;
  padding: 16px 20px;
  font-size: var(--fontsize-cite);
  color: white;
  text-align: center;
  text-decoration: none;
}

/* モバイルでは言語スイッチャー（固定バー）の高さ分だけ余白を確保 */
@media screen and (max-width: 1100px) {
  .footer {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

/* ================
   言語スイッチャー
   ================ */

.langSwitcher {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 12px;
  padding: 6px 10px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
}

@media screen and (max-width: 1100px) {
  .langSwitcher {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 -6px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
  }

  .langSwitcher .linkButton {
    display: block;
    width: 100%;
    max-width: 640px;
    text-align: center;
    font-size: 18px;
    padding: 12px 16px;
    margin: 0;
  }
}
