@charset "UTF-8";
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fafafa;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* ヘッダー */
h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 50px;
  letter-spacing: 0.1em;
  color: #222;
}

/* タブナビゲーション */
.tab-nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.tab-link {
  padding: 12px 32px;
  background-color: #fff;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  color: #555;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  cursor: pointer;
}

.tab-link:hover {
  background-color: #f5f5f5;
  border-color: #999;
}

.tab-link.active {
  background-color: #222;
  color: #fff;
  border-color: #222;
}

/* 説明セクション */
.description-box {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  padding: 40px;
  max-width: 800px;
  margin: 0 auto 50px;
}

.description-box ol {
  list-style-position: inside;
  font-size: 1.1rem;
  line-height: 2;
  color: #555;
}

.description-box li {
  margin-bottom: 15px;
}

/* ギャラリーグリッド */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.gallery-item-wrapper {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background-color: #f0f0f0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ダウンロードボタン */
.download-btn {
  display: block;
  width: 100%;
  padding: 12px 0;
  background-color: #222;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.download-btn:hover {
  background-color: #444;
}

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

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
}

.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: 300;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.close:hover {
  opacity: 0.7;
}

/* タブコンテンツ */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* レスポンシブ */
@media (max-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  h1 {
    font-size: 2rem;
  }
  .tab-nav {
    flex-direction: column;
    align-items: center;
  }
  .tab-link {
    width: 200px;
    text-align: center;
  }
  .description-box {
    padding: 25px;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}