/* 全体設定 */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #fffaf0;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* ヘッダー */
header {
  background: #4da6ff;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  font-size: 1.5em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 0;
  margin: 0;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover {
  opacity: 0.8;
}

/* ヒーローセクション */
#hero {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(to right, #a0e0ff, #ffd6a0);
}

#hero h2 {
  font-size: 2em;
}

#hero button {
  background: #4da6ff;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 1em;
  margin-top: 15px;
  cursor: pointer;
  transition: 0.3s;
}

#hero button:hover {
  transform: scale(1.05);
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 250px;
  transition: transform 0.3s;
}

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

/* フォーム */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

input, textarea {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1em;
}

button[type="submit"] {
  background: #4da6ff;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button[type="submit"]:hover {
  background: #3399ff;
}

/* フッター */
footer {
  background: #4da6ff;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 40px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .card-container {
    flex-direction: column;
    align-items: center;
  }
}
