/* Kamigame Point LP - Base Styles */

/* Overflow制御 - はみ出し要素を確実にクリップ */
html, body {
  overflow-x: clip;
  max-width: 100vw;
}

:root {
  --color-footer-bg-from: #363b4e;
  --color-footer-bg-to: #424860;
  --color-footer-border: #5b5f71;
  --font-family-footer: "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", "ヒラギノ角ゴ W3", Roboto, Helvetica, "Droid Sans", "メイリオ", Meiryo, sans-serif;
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: linear-gradient(to bottom, var(--color-footer-bg-from), var(--color-footer-bg-to));
  border-top: 1px solid var(--color-footer-bg-from);
  padding: 20px 0;
  font-family: var(--font-family-footer);
  font-size: 12px;
  text-align: center;
}

.footer-nav {
  display: block;
}

.footer-logo {
  margin-bottom: 10px;
}

.footer-logo a {
  display: inline-block;
}

.footer-logo img {
  display: block;
  margin: 0 auto;
  width: 120px;
  height: 40px;
}

.footer-links {
  list-style: none;
  margin: 10px auto 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

.footer-links li {
  font-size: 13px;
  line-height: 1.5;
  color: white;
  width: 50%;
}

.footer-links li a {
  display: block;
  border-top: 1px solid var(--color-footer-border);
  padding: 5px;
  color: white;
  font-feature-settings: 'palt';
  transition: opacity 0.15s ease;
}

.footer-links li a:hover {
  opacity: 0.6;
}

/* モバイル: 左側のリンクに右ボーダー */
.footer-links li:nth-child(odd) a {
  border-right: 1px solid var(--color-footer-border);
}

/* 最後の行に下ボーダー */
.footer-links li:nth-last-child(-n+2) a {
  border-bottom: 1px solid var(--color-footer-border);
}

/* セカンダリリンク（PC専用） */
.footer-links-secondary {
  display: none;
}

/* ソーシャルリンク */
.footer-social {
  margin: 10px 0;
}

.footer-social a {
  display: inline-block;
}

.footer-social img {
  display: block;
  margin: 0 auto;
  width: 30px;
  height: 30px;
}

/* コピーライト */
.footer-copyright {
  color: white;
  font-size: 12px;
  line-height: 1.75;
  margin: 0;
  padding: 20px 10px 136px;
}

/* ========================================
   Desktop (lg: 1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .footer-links {
    display: block;
    margin: 10px auto;
  }

  .footer-links li {
    display: inline-block;
    width: auto;
  }

  .footer-links li a {
    display: inline-block;
    border-top: 0;
    border-right: 0;
    padding: 0;
  }

  .footer-links li:nth-child(odd) a {
    border-right: 0;
  }

  .footer-links li:nth-last-child(-n+2) a {
    border-bottom: 0;
  }

  /* リンク間のセパレーター */
  .footer-links li::after {
    content: '|';
    padding: 0 1em;
    color: white;
  }

  .footer-links li:last-child::after {
    content: none;
  }

  /* セカンダリリンク（PC専用）を表示 */
  .footer-links-secondary {
    display: block;
    margin: 10px auto 20px;
  }

  .footer-copyright {
    padding-bottom: 120px;
  }
}
