@charset "utf-8";

/* img { max-width: 100%; height: auto; display: block; border: 20px solid #FFF; } */
a { color: inherit; text-decoration: none; }


/* ===== レイアウト共通 ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
section { padding: 60px 0; }

/* ===== カラー変数 ===== */
:root {
  --yellow:  #FFD94A;
  --orange:  #FF8C00;
  --pink:    #FF6B9D;
  --purple:  #9B5FC0;
  --blue:    #4A90D9;
  --light-bg:#FFF9F0;
  --gray-bg: #F5F5F5;
}

/* ===== ヘッダー ===== */
.site-header {
  background: linear-gradient(135deg, var(--yellow) 0%, #FFB347 50%, var(--pink) 100%);
  padding: 40px 20px 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* --
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='2' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
-- */
.header-badge {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}
.header-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}
.header-logos .company-name {
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 900;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header-logos .cross {
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
}
.header-title {
  display: inline-block;
  background: #fff;
  color: var(--pink);
  font-size: clamp(1.2rem, 3.5vw, 2rem);
  font-weight: 900;
  padding: 10px 40px;
  border-radius: 40px;
  margin-top: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  letter-spacing: 0.05em;
}

/* ===== セクションタイトル ===== */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 800;
  color: #fff;
  background: var(--orange);
  padding: 10px 24px;
  border-radius: 8px;
  margin-bottom: 32px;
}
.section-title::before {
  content: attr(data-icon);
  font-size: 1.3em;
}
.section-title.blue  { background: var(--blue); }
.section-title.purple{ background: var(--purple); }
.section-title.pink  { background: var(--pink); }

/* ===== 連携の背景 ===== */
#background {
  background: var(--light-bg);
}
.background-text {
  font-size: 1rem;
  line-height: 2;
  border-left: 4px solid var(--orange);
  padding-left: 20px;
  background: #fff;
  border-radius: 0 8px 8px 0;
  padding: 20px 24px 20px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* ===== 授業タイムライン ===== */
#timeline { background: #fff; }
.timeline {
  position: relative;
  padding-left: 0;
  list-style: none;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 40px;
  top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--yellow), var(--orange), var(--pink));
  border-radius: 4px;
}
.timeline-item {
  position: relative;
  padding: 0 0 48px 100px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-day {
  position: absolute;
  left: 0;
  top: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.2;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  z-index: 1;
}
.timeline-day .day-num {
  font-size: 1.8rem;
  line-height: 1;
}
.timeline-day.day1 { background: var(--yellow); color: #333; }
.timeline-day.day2 { background: var(--orange); }
.timeline-day.day3 { background: var(--pink); }

.timeline-content {
  background: var(--gray-bg);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.timeline-content h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--orange);
}
.timeline-content p { font-size: 0.95rem; }

/* ===== アイデア作品 ===== */
#ideas { background: var(--gray-bg); }
.ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.idea-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}
.idea-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.13);
}
.idea-card-header {
  padding: 20px 20px 0;
}
.idea-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  background: var(--yellow);
  color: #333;
}
.idea-tag.blue   { background: #D0E8FF; color: var(--blue); }
.idea-tag.pink   { background: #FFD0E8; color: var(--pink); }
.idea-tag.purple { background: #E8D0FF; color: var(--purple); }
.idea-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.idea-card p {
  font-size: 0.85rem;
  color: #666;
  padding: 0 20px 20px;
  line-height: 1.7;
}
.idea-card-body {
  padding: 0 20px;
}
.idea-meta {
  font-size: 0.78rem;
  color: #999;
  margin-bottom: 4px;
}
.idea-meta span { font-weight: 700; color: #555; }

/* ===== 生徒感想 ===== */
#voices { background: #fff; }
.voices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.voice-card {
  background: var(--light-bg);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.voice-card::before {
  content: "\201C";
  font-size: 5rem;
  line-height: 1;
  color: var(--yellow);
  position: absolute;
  top: -10px;
  left: 16px;
  font-family: Georgia, serif;
}
.voice-card p {
  font-size: 0.9rem;
  padding-top: 28px;
  line-height: 1.9;
}

/* ===== パートナー企業・協力校 ===== */
#partners { background: var(--gray-bg); }
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.partner-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.07);
}
.partner-card .role-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  background: #E8F4FF;
  color: var(--blue);
}
.partner-card .role-badge.startup { background: #FFF0E8; color: var(--orange); }
.partner-card .role-badge.school  { background: #F0E8FF; color: var(--purple); }
.partner-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.partner-card .partner-sub {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 12px;
}
.partner-card p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: #555;
}
.partner-card .contact-person {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: #777;
  flex-wrap: wrap;
}
.partner-card .contact-person span {
  background: var(--gray-bg);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ===== フッター ===== */
.site-footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.82rem;
}
.site-footer strong { color: #fff; }

/* ===== レスポンシブ ===== */
@media (max-width: 640px) {
  section { padding: 40px 0; }

  .timeline::before { left: 28px; }
  .timeline-item { padding-left: 72px; }
  .timeline-day { width: 56px; height: 56px; font-size: 0.6rem; }
  .timeline-day .day-num { font-size: 1.3rem; }

  .header-title { padding: 8px 24px; }
  .section-title { font-size: 1rem; padding: 8px 16px; }
}

.popup-image-src { max-width: 98%; height: auto; display: block; border: 10px solid #FFF; }
.popup-image-src2 { max-width: 94%; height: auto; display: block; border: 10px solid #FFF; }
.kankeisha-shinsa{ margin-bottom:28px; font-size:0.92rem; color:#555; }

/* 1. ポップアップの初期状態（非表示） */
.popup-box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

/* 3. 背景クリック用エリア */
.close-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 4. 画像を囲むボックス */
.popup-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.popup-content img {
  max-width: 100%;
  max-height: 85vh;
  display: block;
}

/* 5. 閉じるボタンのデザイン */
.close-btn {
  position: absolute;
  top: -40px;
  right: 0;
  color: #000;
  font-size: 30px;
  width: 40px;
  text-decoration: none;
}