/* =====================================================
   python.css — くむすたPython専用スタイル
   education.qumcum.com/python.html
   ===================================================== */

/* ===== HERO ===== */
.py-hero {
  background: #1A2236;
  padding: 80px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.py-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/321EUP-removebg-preview.png') right center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}
.py-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.py-hero-badge {
  display: inline-block;
  background: rgba(55,118,171,0.25);
  border: 1px solid rgba(55,118,171,0.5);
  color: #7EC8E3;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}
.py-hero-title {
  font-size: clamp(22px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin-bottom: 20px;
}
.py-hero-lead {
  font-size: 16px;
  line-height: 1.9;
  color: #fff;
  margin-bottom: 32px;
  max-width: 480px;
}
.py-hero-cta {
  border-color: rgba(255,255,255,0.3) !important;
  color: #fff !important;
}
.py-hero-cta:hover {
  background: rgba(255,255,255,0.08) !important;
  border-color: rgba(255,255,255,0.5) !important;
}
.py-hero-visual img {
  width: 100%;
  border-radius: 8px;
}

/* ===== WHY NEEDED ===== */
.py-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.py-why-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 32px 28px;
}
.py-why-icon {
  width: 48px; height: 48px;
  background: #FFF5F5;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: #C53030;
}
.py-why-icon svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.py-why-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1E2A3B;
  margin-bottom: 12px;
}
.py-why-card p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.8;
}

/* ===== PHILOSOPHY ===== */
.py-philosophy-lead {
  font-size: 17px;
  font-weight: 500;
  color: #1E2A3B;
  line-height: 1.8;
  margin-bottom: 40px;
  padding: 20px 24px;
  border-left: 3px solid #1A56A4;
  background: #EBF4FF;
  border-radius: 0 4px 4px 0;
}
.py-philosophy-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.py-philosophy-point {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.py-philosophy-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: #1A56A4;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.py-philosophy-point h4 {
  font-size: 15px;
  font-weight: 700;
  color: #1E2A3B;
  margin-bottom: 8px;
}
.py-philosophy-point p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.8;
}

/* ===== IDE SECTION ===== */
.py-ide-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
/* ===== ABOUT / BEFORE-AFTER ===== */
.py-ba-section {
  background: #fff;
  padding: 80px 0;
}
.py-ba-header {
  text-align: center;
  margin-bottom: 56px;
}
.py-ba-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1A56A4;
  background: #EBF4FF;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
}
.py-ba-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: #1E2A3B;
  line-height: 1.35;
  margin-bottom: 16px;
}
.py-ba-lead {
  font-size: 16px;
  color: #718096;
  line-height: 1.7;
}
.py-ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 56px;
}
.py-ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E0;
}
.py-ba-arrow svg {
  width: 32px;
  height: 32px;
}
.py-ba-card {
  border-radius: 16px;
  padding: 36px 32px;
  align-self: stretch;
}
.py-ba-card--before {
  background: #F7F8FA;
  border: 1px solid #E2E8F0;
}
.py-ba-card--after {
  background: #EBF4FF;
  border: 1px solid #BDD7F5;
}
.py-ba-card-header {
  margin-bottom: 24px;
}
.py-ba-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.py-ba-tag--before {
  background: #E2E8F0;
  color: #4A5568;
}
.py-ba-tag--after {
  background: #1A56A4;
  color: #fff;
}
.py-ba-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.py-ba-card--before .py-ba-card-title { color: #4A5568; }
.py-ba-card--after .py-ba-card-title { color: #1A3A6B; }
.py-ba-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.py-ba-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
}
.py-ba-card--before .py-ba-list li { color: #718096; }
.py-ba-card--after .py-ba-list li { color: #1E2A3B; }
.py-ba-icon {
  flex-shrink: 0;
  font-weight: 700;
}
.py-ba-icon--before { color: #A0AEC0; }
.py-ba-icon--after { color: #1A56A4; }
.py-ba-footer {
  text-align: center;
}
.py-ba-footer-msg {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 700;
  color: #1E2A3B;
  line-height: 1.7;
}

.py-ide-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1E2A3B;
  margin-bottom: 16px;
  line-height: 1.5;
}
.py-ide-text p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.9;
  margin-bottom: 24px;
}
.py-ide-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.py-ide-benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F7F9FC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #1E2A3B;
}
.py-ide-benefit-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  background: #EBF4FF;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #1A56A4;
}
.py-ide-benefit-icon svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.py-ide-visual img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* ===== LEARNING CONTENT ===== */
.py-learn-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.py-learn-column {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
}
.py-learn-column-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E2E8F0;
  background: #F7F9FC;
  display: flex;
  align-items: center;
  gap: 12px;
}
.py-learn-column-icon {
  width: 36px; height: 36px;
  background: #EBF4FF;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #1A56A4;
  flex-shrink: 0;
}
.py-learn-column-icon svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.py-learn-column h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1E2A3B;
}
.py-learn-list {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.py-learn-list li {
  font-size: 13px;
  color: #4A5568;
  padding-left: 14px;
  position: relative;
  line-height: 1.6;
}
.py-learn-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px; height: 5px;
  background: #1A56A4;
  border-radius: 50%;
}

/* ===== WHY ROBOTICS ===== */
.py-robotics-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.py-robotics-visual img {
  width: 100%;
  border-radius: 8px;
}
.py-robotics-text h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1E2A3B;
  margin-bottom: 16px;
  line-height: 1.5;
}
.py-robotics-text p {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.9;
  margin-bottom: 16px;
}
.py-robotics-text p:last-child { margin-bottom: 0; }
.py-robotics-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.py-robotics-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: #2D3748;
}
.py-robotics-point-dot {
  flex-shrink: 0;
  width: 8px; height: 8px;
  background: #1A56A4;
  border-radius: 50%;
  margin-top: 6px;
}

/* ===== CURRICULUM POSITION ===== */
.py-position-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 32px;
}
.py-position-step {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
}
.py-position-step--current {
  border-color: #1A56A4;
  background: #EBF4FF;
}
.py-position-num {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #CBD5E0;
  margin-bottom: 8px;
}
.py-position-step--current .py-position-num {
  color: #1A56A4;
}
.py-position-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1E2A3B;
  margin-bottom: 4px;
}
.py-position-info p {
  font-size: 12px;
  color: #718096;
  line-height: 1.6;
}
.py-position-arrow {
  font-size: 18px;
  color: #CBD5E0;
  text-align: center;
}
.py-position-note {
  font-size: 14px;
  color: #4A5568;
  line-height: 1.8;
  text-align: center;
  padding: 20px;
  background: #F7F9FC;
  border-radius: 4px;
}

/* ===== MATERIALS ===== */
.py-materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.py-material-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 28px 24px;
}
.py-material-icon {
  width: 44px; height: 44px;
  background: #EBF4FF;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #1A56A4;
  margin-bottom: 16px;
}
.py-material-icon svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.py-material-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: #1E2A3B;
  margin-bottom: 8px;
}
.py-material-card p {
  font-size: 13px;
  color: #4A5568;
  line-height: 1.7;
  margin-bottom: 12px;
}
.py-video-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid #CBD5E0;
  border-radius: 4px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #4A5568;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Noto Sans JP', sans-serif;
}
.py-video-btn:hover {
  border-color: #1A56A4;
  color: #1A56A4;
}
.py-play-icon {
  width: 22px; height: 22px;
  background: #EBF4FF;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #1A56A4;
  flex-shrink: 0;
}

/* ===== TARGET ===== */
.py-target-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.py-target-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 32px 28px;
  display: flex;
  gap: 20px;
}
.py-target-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: #EBF4FF;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #1A56A4;
}
.py-target-icon svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.py-target-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: #1E2A3B;
  margin-bottom: 8px;
}
.py-target-card p {
  font-size: 13px;
  color: #4A5568;
  line-height: 1.7;
}

/* ===== CTA ===== */
.py-cta-section { text-align: center; }
.py-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* ===== VIDEO OVERLAY ===== */
.py-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  z-index: 200;
  align-items: center;
  justify-content: center;
}
.py-overlay.active { display: flex; }
.py-overlay-content {
  position: relative;
  width: min(90vw, 900px);
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}
.py-overlay-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.15);
  border: none; color: #fff;
  font-size: 20px; line-height: 1;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.py-overlay-content video { width: 100%; display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .py-hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .py-hero-visual { order: -1; }
  .py-ba-grid { grid-template-columns: 1fr; }
  .py-ba-arrow { transform: rotate(90deg); }
  .py-why-grid { grid-template-columns: 1fr; }
  .py-ide-inner { grid-template-columns: 1fr; }
  .py-ide-visual { order: -1; }
  .py-learn-columns { grid-template-columns: 1fr; }
  .py-robotics-inner { grid-template-columns: 1fr; }
  .py-robotics-visual { order: -1; }
  .py-position-flow { grid-template-columns: 1fr 1fr; }
  .py-position-arrow { display: none; }
  .py-materials-grid { grid-template-columns: 1fr 1fr; }
  .py-target-grid { grid-template-columns: 1fr; }
  .py-cta-buttons { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .py-position-flow { grid-template-columns: 1fr; }
  .py-materials-grid { grid-template-columns: 1fr; }
}
