/* ===== 共通 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto;
  background: #fff;
  color: #111;
}

/* ===== ヘッダー ===== */
header {
  position: fixed;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
}

.logo {
  font-weight: 600;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #555;
}

nav a:hover {
  color: #000;
}

/* ===== ヒーロー ===== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.3;
}

.hero p {
  margin-top: 20px;
  font-size: 20px;
  color: #666;
}

/* ===== セクション ===== */
section {
  padding: 120px 20px;
  text-align: center;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

/* ===== カード ===== */
.cards {
  display: grid;
  gap: 20px;
  max-width: 800px;
  margin: auto;
}

.card {
  padding: 40px;
  border-radius: 20px;
  background: #f5f5f7;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* ===== フッター ===== */
footer {
  padding: 40px;
  text-align: center;
  color: #888;
}

/* ===== アニメーション ===== */
.fade {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* 遅延 */
.card:nth-child(1) { transition-delay: 0.1s; }
.card:nth-child(2) { transition-delay: 0.2s; }
.card:nth-child(3) { transition-delay: 0.3s; }

/* ===== スマホ ===== */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 32px;
  }
}
