/* 基本設定 */
body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans',
    'Noto Sans JP', sans-serif;
  /* ゲーム画面に合わせた白背景 */
  background-color: #ffffff;
  /* 基本の文字色を少し柔らかい黒に */
  color: #3d405b;
}

/* 全体を中央に寄せるコンテナ */
.maintenance-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

/* アイコンとブロックのエリア */
.icon-area {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

/* 歯車アイコン */
.gear-icon {
  width: 60px;
  height: 60px;
  color: #ced4da; /* 落ち着いたグレー */
  animation: rotate 10s linear infinite; /* ゆっくり回転するアニメーション */
}

/* カラフルなブロックの共通スタイル */
.block {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  opacity: 0;
  animation: pop-in 0.8s ease-out forwards;
}

/* ブロックの色 (参照画像から抽出) */
.block.color-1 {
  background-color: #a8d8b0;
  top: 10px;
  left: 20px;
  animation-delay: 0.1s;
}
.block.color-2 {
  background-color: #f8c471;
  top: 20px;
  right: 10px;
  animation-delay: 0.2s;
}
.block.color-3 {
  background-color: #a3a7e2;
  bottom: 15px;
  left: 30px;
  animation-delay: 0.3s;
}
.block.color-4 {
  background-color: #e9967a;
  bottom: 25px;
  right: 20px;
  animation-delay: 0.4s;
}

/* テキストスタイル */
h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 15px 0;
}

p {
  font-size: 15px;
  line-height: 1.8;
  color: #818398;
  max-width: 450px;
}

.schedule {
  margin-top: 30px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  background-color: #f1f3f5;
  border-radius: 20px;
  color: #495057;
}

/* スマートフォンでの改行用 */
.mobile-only {
  display: none;
}

/* アニメーション定義 */
@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* スマートフォン向けのレスポンシブ調整 */
@media (max-width: 600px) {
  h1 {
    font-size: 22px;
  }
  p {
    font-size: 14px;
  }
  .mobile-only {
    display: inline;
  }
  .schedule {
    font-size: 13px;
  }
  .icon-area {
    width: 130px;
    height: 130px;
  }
  .gear-icon {
    width: 50px;
    height: 50px;
  }
  .block {
    width: 35px;
    height: 35px;
  }
}
