* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', 'Hiragino Kaku Gothic ProN', sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

.content-wrapper {
  max-width: 1520px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-header h1 {
  font-size: 2.5rem;
  color: #6a5acd; /* スレートブルー */
  margin-bottom: 0.5rem;
}

.section-header p {
  font-size: 1.1rem;
  color: #666;
}

.motion-category {
  margin-bottom: 40px;
}

.category-title {
  font-size: 1.8rem;
  color: #6a5acd;
  margin-bottom: 15px;
  border-bottom: 2px solid #6a5acd;
  padding-bottom: 5px;
}

.motion-grid {
  display: grid;
  gap: 20px;
}

/* カテゴリA（Front/Sideあり）のグリッド */
.motion-grid.dual-view {
  grid-template-columns: repeat(auto-fill, minmax(700px, 700px));
}

/* カテゴリB（単一画像）のグリッド */
.motion-grid.single-view {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
}

.motion-item {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 15px;
  transition: all 0.3s;
}

.motion-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.motion-title {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #333;
}

.motion-images {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.motion-image-container {
  position: relative;
  text-align: center;
}

.motion-image-container img {
  width: 320px;
  height: 240px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
}

.motion-image-label {
  font-size: 0.9rem;
  margin-top: 5px;
  color: #666;
}

/* モーダル用スタイル */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
  position: relative;
  margin: auto;
  padding: 20px;
  max-width: 80%;
  max-height: 90%;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
}

.modal-content img {
  max-width: 640px;
  max-height: 480px;
  object-fit: contain;
}

.close-modal {
  position: absolute;
  top: -20px;
  right: -20px;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

/* タブ切り替え用スタイル */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-button {
  padding: 10px 20px;
  background-color: #f1f1f1;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.tab-button.active {
  background-color: #6a5acd;
  color: white;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
  .motion-grid.dual-view {
    grid-template-columns: 1fr;
  }
  
  .motion-images {
    flex-direction: column;
    align-items: center;
  }
  
  .motion-image-container img {
    width: 100%;
    max-width: 320px;
  }
}