/* ====== ベース ====== */
body {
  margin: 0;
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  color: #333;
  background: #f9fafc;
}

/* ====== ヘッダー ====== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffc0cb;
  color: white;
  padding: 0.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header h1 a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
}

.header ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.header a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.header a:hover {
  opacity: 0.8;
}

.content {
  max-width: 980px;
  margin: 3rem auto 3rem; /* ヒーローと重ねてカード感 */
  padding: 2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,255,255,0.98));
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(18, 12, 44, 0.06);
  position: relative;
  z-index: 5;
}

/* sectionごとの余白 */
.content section {
  margin-bottom: 2rem;
}

/* セクション見出し */
.content h2 {
  font-size: 1.5rem;
  color: var(--main-color);
  border-left: 6px solid var(--accent-color);
  padding-left: 0.75rem;
  margin-bottom: 0.8rem;
  font-family: 'Poppins', sans-serif;
}

/* 段落 */
.content p {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 0.9rem;
  word-wrap: break-word;
}

/* 強調テキスト */
.content strong {
  color: #222;
  font-weight: 700;
}

/* イメージ（デモ図など） */
.illustration {
  width: 100%;
  border-radius: 12px;
  margin: 1rem 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  display: block;
}

.illustration:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

/* リスト（順序あり/なし） */
.content ol,
.content ul {
  margin-left: 1.2rem;
  margin-bottom: 1rem;
}

.content ol li,
.content ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* コードっぽい注釈（必要なら） */
.content .note {
  background: #f5f7ff;
  padding: .75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

/* -------------------------------
   MEMBERS
   ------------------------------- */
.members {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin-top: 0.6rem;
}

.members li {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
  font-weight: 600;
  color: #2d2d2d;
  font-size: 0.95rem;
}

/* -------------------------------
   DONATION SECTION
   ------------------------------- */
.donation {
  background-color: #fff8ee;
  padding: 1.2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  margin-top: 1rem;
}

.donation h2 {
  color: #d78a00;
  margin-bottom: 0.6rem;
}



/* ====== ヒーローセクション ====== */
.hero {
  position: relative;
  background: url("img/robot_top.jpg") center/cover no-repeat;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-text {
  position: relative;
  z-index: 2;
}

.hero h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ====== ボタン ====== */
.btn {
  display: inline-block;
  background: #ffc0cb;
  color: white;
  padding: 0.8rem 1.6rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  background: #ffc0cb;
}

/* ====== プロジェクトカード ====== */
.projects {
  max-width: 1100px;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}

.projects h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  color: #ffc0cb;
}

/* ====== About ====== */
.about {
  background: #f3f4ff;
  padding: 4rem 1rem;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ====== 募金セクション ====== */
.donation {
  text-align: center;
  padding: 4rem 1rem;
}

.donation h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ====== フッター ====== */
footer {
  text-align: center;
  background: #ffc0cb;
  color: white;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 3rem;
}


/* =====================================================
   ロボットアーム ページ用（オレンジテーマ）
   ===================================================== */
:root {
  --main-color: #e06a00;
  --accent-color: #ff8a1f;
  --text-color: #333;
  --card-bg: #fff3e6;
}
.header {
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, #ffc0cb, #ff8a1f) 1;
}
.header ul { flex-wrap: wrap; }
.hero { padding: 0 16px; }
.btn-orange { background: #ff8a1f; }
.btn-orange:hover { background: #e06a00; }

.rule-list { list-style: none; margin-left: 0 !important; padding: 0; }
.rule-list li {
  background: #fff8ee;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  margin-bottom: 0.6rem !important;
}

.button-table { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; }
.button-table th, .button-table td { padding: 0.7rem; border-bottom: 1px solid #eee; text-align: left; vertical-align: middle; }
.button-table th { background: #fff3e6; color: #a04a00; }
.dot {
  display: inline-block; width: 1.6rem; height: 1.6rem; line-height: 1.6rem;
  border-radius: 50%; text-align: center; font-weight: 700; margin-right: 0.4rem;
  border: 2px solid #333; font-size: 0.9rem;
}
.dot.g { background: #2fb45a; color: #fff; }
.dot.w { background: #fff; color: #333; }
.dot.y { background: #ffd400; color: #333; }
.dot.r { background: #ee3333; color: #fff; }

.poster-box {
  text-align: center;
  background: #fff8ee;
  border: 2px dashed #ff8a1f;
  border-radius: 12px;
  padding: 1.2rem;
}
@media (max-width: 600px) {
  .header { flex-direction: column; padding: 0.5rem 1rem; }
  .button-table th, .button-table td { padding: 0.5rem 0.3rem; font-size: 0.9rem; }
}
