/* フェード表示/非表示 */
.fade-in { opacity: 0; animation: fadeIn .35s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.fade-out { opacity: 0 !important; transition: opacity .35s; }

/* 中央寄せ＆基本 */
html, body { height: 100%; margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* 背景 */
body{
  position: relative;
  min-height: 100%;
  color: #fff;
  background: #000;
}
body::before{
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url("./images/gym.png") center/cover no-repeat; 
  z-index: -1;
}


.center { display: grid; place-items: center; padding: 24px; }
main { text-align: center; max-width: 680px; }

/* カウント表示 */
.count {
  font-size: clamp(48px, 10vw, 96px);
  font-weight: 800;
  margin: 8px 0 20px;
}

/* ボタン共通スタイル */
.btn {
  display: inline-block;
  padding: 40px 80px;      
  font-size: 3rem;          
  font-weight: bold;
  color: #fff;
  background-color: lab(45.31% 69.38 55.31); 
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;   
  transition: transform 0.1s ease-in-out;
}

.btn:hover {
  transform: scale(1.05);  
}

.btn:active {
  transform: scale(0.95);   
}

/* 右下の説明ボタン */
.info-btn{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1001;
  background-color: #2196f3;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 10px;
}

/* 説明閉じるボタン */
#closePopup {
  background-color: #2196f3; 
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 10px;
}

/* ポップアップ本体（初期なし） */
.popup{
  position: fixed;
  right: 20px;
  bottom: 72px;
  width: min(340px, 100vw);
  z-index: 1002;
  background: rgba(0,0,0,0.85);
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  padding: 14px;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
}

/* 非表示・表示の切替 */
.hidden{ display: none; }
.popup.show{
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* 表示状態 */
.popup.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.popup-content h2 {
  margin: 0 0 6px;
  font-size: 16px;
}
.popup-content p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
}

/* 小さめボタン */
.btn-small {
  padding: 8px 12px;
  font-size: 13px;
}

/* 見た目を揃える */
a.btn, button.btn {
  appearance: none;
  text-decoration: none;
}

/* ツイートボタンの位置 */
.tweet-area {
  margin-top: 120px; 
  text-align: right; 
}
