/*
Theme Name: Boost
Theme URI:  https://example.com/boost
Author:     Your Name
Version:    1.0
*/

/*── リセット & ベース ──*/
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.8;
  color: #333;
 
}
/* ヘッダーのサイトタイトルを非表示に */
.logo {
  display: none;
}

/*── ソフトな虹色背景 ──*/
:root {
  --rainbow-opacity: 0.3; /* 透明度を調整 */
}

/* body の背景を虹色グラデに変更 */
body {
  background: linear-gradient(
    90deg,
    rgba(255,   0,   0, var(--rainbow-opacity)),
    rgba(255, 127,   0, var(--rainbow-opacity)),
    rgba(255, 255,   0, var(--rainbow-opacity)),
    rgba(0,   255,   0, var(--rainbow-opacity)),
    rgba(0,     0, 255, var(--rainbow-opacity)),
    rgba(75,    0, 130, var(--rainbow-opacity)),
    rgba(148,   0, 211, var(--rainbow-opacity)),
    rgba(255,   0,   0, var(--rainbow-opacity))
  );
  background-size: 300% 300%;
  animation: rainbowGradient 60s linear infinite;
  background-attachment: fixed;
}

/* ホワイトオーバーレイでさらにソフトに */
body::before {
  content: "";
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.6);
  pointer-events: none;
  z-index: -1;
}

/*── アニメーション定義 ──*/
@keyframes rainbowGradient {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}



/*── フェードイン用 初期非表示 ──*/
header,
.hero,
section,
.item,
.summary-item,
footer {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/*── フェードイン後の状態 ──*/
header.visible,
.hero.visible,
section.visible,
.item.visible,
.summary-item.visible,
footer.visible {
  opacity: 1;
  transform: translateY(0);
}


/*── ヘッダー ──*/
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
  background-color: rgba(255,255,255,0.8);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-bottom: 1px solid #eaeaea;
}
.logo {
  font-size: 32px;
  font-weight: bold;
}
nav a {
  margin-left: 24px;
  color: #333;
  text-decoration: none;
  font-weight: 500;
}
nav a:hover {
  color: #fc5e09;
}

/*── ヒーロー ──*/
.hero {
  padding: 100px 24px;
  text-align: center;
  background: radial-gradient(circle at top, #ffffff, #e6e8eb);
}
.hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
}
.hero p {
  font-size: 18px;
  margin-bottom: 24px;
  color: #666;
}
.cta-button {
  padding: 12px 32px;
  font-size: 18px;
  background-color: #fc5e09;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.cta-button:hover {
  background-color: #e65100;
}

/*── セクション共通 ──*/
section {
  max-width: 1200px;
  margin: 0 auto 60px;
  padding: 0 24px;
}
section h2 {
  font-size: 32px;
  margin-bottom: 24px;
  text-align: center;
}

/*── グリッド ──*/

.grid {
  display: grid;
  /* 最小幅250pxとして、空きがあれば自動的に列を増やす */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}


/*── カード ──*/
.item {
  padding: 24px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.item strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
}

/*── フッター ──*/
footer {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
}

/*── レスポンシブ ──*/
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero p  { font-size: 16px; }
  section h2 { font-size: 28px; }

/* #works セクションの .grid-3 を縦並び（１カラム）に */
  #works .grid-3 {
    grid-template-columns: 1fr !important;
  }
}


/* ── 大画面向け調整 ── */
@media (min-width: 1200px) {
  /* ページ全体の左右余白 */
  body {
    padding: 0 80px;
  }

  /* ヒーロー */
  .hero {
    max-width: 1000px;
    margin: 0 auto;
    padding: 200px 0;
  }
  .hero h1 {
    font-size: 64px;
  }
  .hero p {
    font-size: 22px;
    max-width: 800px;
  }
  .cta-button {
    padding: 18px 44px;
    font-size: 22px;
  }

  /* セクション間の間隔 */
  section {
    padding: 120px 0;
  }

  /* グリッドの間隔を広げる */
  .grid {
    gap: 40px;
  }
  .item {
    padding: 40px;
  }

  /* まとめ（summary） */
  .summary-item {
    padding: 40px;
  }
  .summary-item h3 {
    font-size: 64px;
  }
@media (min-width: 769px) {
  #summary .summary {
    display: flex;
    flex-direction: column;    /* 縦並び */
    justify-content: center;   /* 縦方向の中央寄せ */
    align-items: center;       /* 横方向の中央揃え */
    gap: 24px;                 /* 要素間の隙間 */
  }


}