/* ====== ベース ====== */
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;
}

/* ====== ヒーローセクション ====== */
.hero {
  position: relative;
  background: url("img/dairiseki.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;
}

/* ギャラりー */
/* ギャラリーコンテナの設定 */
.gallery {
    display: flex; /* 子要素を横並びにする（Flexboxの有効化） */
    flex-wrap: wrap; /* 画面が狭くなったら折り返すようにする */
    justify-content: space-between; /* 子要素間のスペースを均等にする */
    gap: 20px; /* 画像間の縦方向のスペースを設定 */
    max-width: 1000px; /* ギャラリーの最大幅を設定（任意） */
    margin: 0 auto; /* ページの中央に配置（任意） */
    padding: 20px;
}

/* 各画像アイテムの設定 */
.gallery-item {
    /* calc()を使って、コンテナの幅からマージン分などを引いた上で3等分する */
    width: calc(33.333% - 14px); /* (100% / 3) - 14px の計算例 */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 影を付けて立体感を出す（任意） */
    padding: 10px;
    box-sizing: border-box; /* paddingとborderを幅に含める */
}

/* 画像自体の設定 */
.gallery-item img {
    width: 100%; /* 親要素の幅いっぱいに広げる */
    height: auto; /* 高さは自動調整 */
    display: block; /* 余計な下部のスペースを消す */
    object-fit: cover; /* 画像の比率を保ったまま領域に収める（必要に応じて） */
    aspect-ratio: 1 / 1; /* 正方形にする例（不要なら削除） */
}

/* キャプションの設定 */
.gallery-item p {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

/* 画面幅が狭くなったときのレスポンシブ対応 */
@media (max-width: 768px) {
    .gallery-item {
        /* タブレットなどでは2列にする */
        width: calc(50% - 10px); /* (100% / 2) - 10px の計算例 */
    }
}

@media (max-width: 480px) {
    .gallery-item {
        /* スマートフォンでは1列にする */
        width: 100%;
    }
}








/* ====== プロジェクトカード ====== */
.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;
}


/* =====================================================
   2026 追加分：ロボットアーム（クレーンゲーム）のオレンジを差し色に
   ===================================================== */
:root {
  --pink: #ffc0cb;
  --pink-deep: #ff8fa6;
  --robot: #ff8a1f;
  --robot-deep: #e06a00;
}

/* ヘッダー下にピンク→オレンジのライン */
.header {
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--pink), var(--robot)) 1;
}
.header h1 { margin: 0.4rem 0; }
.header ul { flex-wrap: wrap; justify-content: flex-end; }

/* ヒーロー：NEWバッジ */
.hero { padding: 0 16px; }
.new-badge {
  display: inline-block;
  background: var(--robot);
  color: #fff;
  font-weight: 700;
  padding: 0.45rem 1.2rem;
  border-radius: 9999px;
  text-decoration: none;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(224, 106, 0, 0.45);
  animation: badge-bounce 2.4s ease-in-out infinite;
}
@keyframes badge-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@media (prefers-reduced-motion: reduce) { .new-badge { animation: none; } }

/* オレンジボタン */
.btn-orange { background: var(--robot); }
.btn-orange:hover { background: var(--robot-deep); }

/* 新作バナー */
.crane-banner {
  background:
    radial-gradient(circle, rgba(255,255,255,0.25) 3px, transparent 4px) 0 0 / 28px 28px,
    linear-gradient(120deg, #ffb36b, var(--robot) 55%, #ff7aa0);
  padding: 3rem 1rem;
  color: #fff;
}
.crane-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.crane-inner img {
  flex: 1 1 320px;
  max-width: 480px;
  width: 100%;
  border-radius: 1rem;
  border: 5px solid #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transform: rotate(-2deg);
}
.crane-text { flex: 1 1 320px; }
.crane-label {
  display: inline-block;
  background: #fff;
  color: var(--robot-deep);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 0.2rem 0.8rem;
  border-radius: 9999px;
}
.crane-text h2 { font-size: 1.8rem; margin: 0.6rem 0; }
.crane-text p { line-height: 1.8; margin-bottom: 1.4rem; }
.crane-text .btn-orange { background: #fff; color: var(--robot-deep); }
.crane-text .btn-orange:hover { background: #fff3e6; }

/* プロジェクト：3枚表示とNEWカード */
.projects-sub { margin: -1rem 0 2rem; color: #666; }
.project-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.project-card { position: relative; }
.robot-card { outline: 3px solid var(--robot); }
.robot-card .card-content h3 { color: var(--robot); }
.tag-new {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--robot);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* 2026年度メンバー */
.members-2026 {
  max-width: 900px;
  margin: 4rem auto 2rem;
  padding: 0 1rem;
  text-align: center;
}
.members-2026 h2, .legacy h2 { font-size: 2rem; margin-bottom: 1rem; }
.members-2026 figure { margin: 0; }
.members-2026 img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  border-bottom: 6px solid var(--robot);
}
.members-2026 figcaption { margin-top: 0.8rem; color: #555; }

/* 2025年度メンバー（ギャラリー見出し＋メモ） */
.legacy {
  max-width: 1000px;
  margin: 3rem auto 0;
  padding: 0 1rem;
  text-align: center;
}
.legacy-note {
  background: #fff5f7;
  border-left: 6px solid var(--pink);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  text-align: left;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .header { flex-direction: column; padding: 0.5rem 1rem; }
  .hero h2 { font-size: 1.6rem; }
  .crane-text h2 { font-size: 1.4rem; }
}
.hero-text { max-width: 100%; }
.new-badge { max-width: 100%; box-sizing: border-box; }
