/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background: #121212;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;  /* 横スクロール防止 */
  padding: 0 10px;     /* 左右の余白確保 */
}

/* リンク */
a {
  text-decoration: none;
  color: inherit;
}

/* ヘッダー */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: #1e1e1e;
  flex-wrap: wrap;
}

header .logo {
  height: 60px;
  margin-bottom: 5px;
}

nav a {
  color: #fff;
  margin-left: 15px;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff7f50;
}

/* ヒーローセクション */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.hero h1 {
  font-size: 2.5em;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 25px;
}

.hero ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.hero ul li {
  margin: 8px 0;
}

/* ボタン */
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s;
  color: #fff;
  cursor: pointer;
}

.btn-primary {
  background: #ff7f50;
}

.btn-primary:hover {
  background: #ff4500;
  transform: translateY(-3px);
}

.btn-secondary {
  background: #20b2aa;
}

.btn-secondary:hover {
  background: #008b8b;
  transform: translateY(-3px);
}

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

.section h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

/* カード */
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 10px;
  width: 250px;
  transition: transform 0.3s;
}

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

.card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9em;
}

/* モーダル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal-content {
  background-color: #1e1e1e;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 5px;
  border: none;
}

.close {
  color: #fff;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #ff7f50;
}

/* フッター */
footer {
  text-align: center;
  padding: 15px 0;
  background: #1e1e1e;
  margin-top: 50px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    margin: 10px 0 0 0;
  }

  .card-container {
    flex-direction: column;
    align-items: center;
  }
}
