/* =========================================
   🌈 基本テーマ変数（ライトモード）
========================================= */
:root {
  --bg-gradient-start: #a0e0ff;
  --bg-gradient-end: #ffb6c1;
  --text-color: #202020;
  --button-bg: rgba(255, 255, 255, 0.6);
  --button-bg-hover: rgba(255, 255, 255, 0.8);
  --overlay-bg: rgba(255, 255, 255, 0.5);
  --sns-bg: rgba(255, 255, 255, 0.2);
  --discord-blue: #7289da;
}

/* =========================================
   🌙 ダークモード変数
========================================= */
body.dark-mode {
  --bg-gradient-start: #3a3a3a;
  --bg-gradient-end: #181818;
  --text-color: #f0f0f0;
  --button-bg: rgba(24, 24, 24, 0.6);
  --button-bg-hover: rgba(24, 24, 24, 0.8);
  --overlay-bg: rgba(0, 0, 0, 0.5);
  --sns-bg: rgba(255, 255, 255, 0.08);
}

/* =========================================
   🌍 全体レイアウト
========================================= */
html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  font-family: 'Mochiy Pop One', sans-serif;
  background: linear-gradient(120deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-color);
  transition: background 0.4s ease, color 0.4s ease;
}

/* =========================================
   🧭 見出し・テキスト
========================================= */
h1, p {
  text-align: center;
  color: var(--text-color);
  transition: color 0.4s ease;
}

h1 {
  font-size: 3rem;
  margin-top: 100px;
  margin-bottom: auto;
}

p {
  font-size: 1.5rem;
  margin-top: 100px;
  margin-bottom: auto;
}

/* =========================================
   🔽 下部セクション
========================================= */
.bottom-section {
  width: 100%;
  text-align: center;
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* =========================================
   💬 Discordボタン
========================================= */
.discord-button {
  display: inline-block;
  background-color: var(--discord-blue);
  color: white;
  padding: 12px 24px;
  font-size: 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.discord-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* =========================================
   📱 SNSアイコン
========================================= */
.sns-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  background-color: var(--sns-bg);
  padding: 15px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 0.4s ease;
}

.sns-icons a img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition: transform 0.2s;
}

.sns-icons a img:hover {
  transform: scale(1.1);
}

/* =========================================
   🩵 オーバーレイ
========================================= */
#overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--overlay-bg);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease, background 0.4s ease;
}

#overlay-text {
  font-family: 'Mochiy Pop One', sans-serif;
  font-size: 3rem;
  color: var(--text-color);
  text-align: center;
  opacity: 0;
  animation: fadeInText 1.5s forwards;
}

@keyframes fadeInText {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* =========================================
   🔝 右上のコントロールボタン
========================================= */
.top-right-controls {
  position: fixed;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 10000;
}

/* 共通ボタンスタイル */
.icon-button {
  background: var(--button-bg);
  border: none;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-button:hover {
  background: var(--button-bg-hover);
  transform: scale(1.05);
}

/* コピー成功アニメ */
.icon-button.copied {
  background: rgba(144, 238, 144, 0.7);
  transform: scale(1.15);
}
/* =========================================
   🩶 アイコン色（ライト／ダーク対応）
========================================= */
.icon-button svg {
  stroke: var(--text-color);
  transition: stroke 0.4s ease;
}
/* =========================================
   📱 スマホ対応
========================================= */
@media (max-width: 430px) {
  html, body {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.9rem;
  }

  h1 {
    font-size: 2rem;
    margin-top: 50px;
  }

  p {
    font-size: 1.1rem;
    margin-top: 50px;
  }

  .bottom-section {
    gap: 15px;
    padding-left: 5px;
    padding-right: 5px;
  }

  .discord-button {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .sns-icons {
    gap: 10px;
    padding: 10px 15px;
  }

  .sns-icons a img {
    width: 30px;
    height: 30px;
  }

  #overlay-text {
    font-size: 1.8rem;
    padding: 0 10px;
  }
}
