.section {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
  color: white;
  animation: zoomIn 10s ease-in-out infinite alternate;
  padding: 40px 0;
  font-family: Osaka, "ＭＳ Ｐゴシック", "MS PGothic","メイリオ", Meiryo, sans-serif;	/*フォント種類*/
}

.section.even {
  flex-direction: row-reverse;
}

.content {
  max-width: 1000px;
  padding: 0 50px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
}

.content h2 {
  font-size: 1.8rem;
  margin: 10px 0;
}

.content p {
  font-size: 1rem;
  margin: 10px 0;
}

/* 背景ズームアニメーション */
@keyframes zoomIn {
  0% { background-size: 100%; }
  100% { background-size: 110%; }
}

/* ===== PC用デザイン ===== */
@media (min-width: 1025px) {
  .section {
    height: 500px;
    margin: 0 0 0 200px; /* デフォルトは右に余白 */
  }
  .section.even {
    margin: 0 200px 0 0; /* 偶数は左に余白 */
  }
}

/* ===== タブレット ===== */
@media (max-width: 1024px) {
  .section {
    flex-direction: column;
    height: auto;
    margin: 0;
    padding: 30px 0;
  }
  .section.even {
    flex-direction: column;
    margin: 0;
  }
  .content {
    padding: 0 20px;
  }
}

/* ===== スマホ ===== */
@media (max-width: 768px) {
  .section {
    padding: 20px 0;
  }
  .content h2 {
    font-size: 1.4rem;
  }
  .content p {
    font-size: 0.9rem;
  }
}
