/* ===== 全体 ===== */
.ap_gallery_body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans JP", sans-serif;
  background: #ffffff;
  color: #1e293b;
  line-height: 1.7;
}

/* ===== バナー ===== */
.ap_gallery_banner {
  max-width: 100%;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 40px 20px;
}

.ap_gallery_banner-image {
  max-width: 100%;
  height: auto;
  display: block;
}

.ap_gallery_banner h1 {
  background: rgba(255, 255, 255, 0.9);
  padding: 15px 30px;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: #0f172a;
  border-radius: 8px;
  text-align: center;
  margin: 0;
}

/* ===== セクション ===== */
.ap_gallery_section {
  max-width: 1000px;
  margin: 70px auto;
  padding: 0 20px;
}

.ap_gallery_section h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-left: 10px solid #000000;
  padding-left: 10px;
  color: #000000;
}

.ap_gallery_section h3 {
  font-size: 1.1rem;
  margin: 15px 0 10px;
  color: #0f172a;
}

/* ===== テキストボックス ===== */
.ap_gallery_text-box {
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 1.1rem;
}

.ap_gallery_text-box-noback {
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 1.1rem;
}

.ap_gallery_warning {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
  font-weight: bold;
  padding: 18px 20px;
  border-radius: 10px;
  font-size: 1.05rem;
}

/* ===== リンクエリア ===== */
.ap_gallery_links {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ap_gallery_links a {
  font-size: 1.3rem;
  text-decoration: none;
  color: #1f3a8a;
  position: relative;
  width: fit-content;
}

.ap_gallery_links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background: #1f3a8a;
  transition: width 0.3s ease;
}

.ap_gallery_links a:hover::after {
  width: 100%;
}

/* ===== ボタン ===== */
.ap_gallery_button {
  display: inline-block;
  padding: 14px 28px;
  background-color: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 10px;
}

.ap_gallery_button:hover {
  background-color: #0f172a;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ===== リスト ===== */
.ap_gallery_ul {
  padding-left: 20px;
  list-style: disc inside;
  margin: 0;
}

/* ===== 目次 ===== */
.ap_gallery_table-of-contents {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 40px 30px !important;
  margin: 50px auto !important;
}

.ap_gallery_table-of-contents h2 {
  margin-bottom: 30px;
  font-size: 1.6rem;
  color: #0f172a;
}

.ap_gallery_toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1100px;
}

.ap_gallery_toc-item a {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  background-color: #1a1a1a;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ap_gallery_toc-item a:hover {
  background-color: #0f172a;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* ===== アーティスト内クイックナビ ===== */
.ap_gallery_artist-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.ap_gallery_artist-nav a {
  font-size: 0.85rem;
  text-decoration: none;
  color: #1a1a1a;
  background: #eef2f7;
  border: 1px solid #dbe3ec;
  padding: 6px 12px;
  border-radius: 20px;
  transition: all 0.2s ease;
}

.ap_gallery_artist-nav a:hover {
  background: #1a1a1a;
  color: #ffffff;
}

/* ===== アーティストカード ===== */
.ap_gallery_artist-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
  padding: 20px;
  scroll-margin-top: 20px;
}

.ap_gallery_artist-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.ap_gallery_artist-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
}

.ap_gallery_artist-name-jp {
  font-size: 1.2rem;
  font-weight: bold;
  color: #0f172a;
}

.ap_gallery_artist-name-en {
  font-size: 0.95rem;
  color: #475569;
}

.ap_gallery_artist-x {
  font-size: 0.85rem;
  color: #64748b;
}

/* ===== 商品画像グリッド ===== */
.ap_gallery_image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.ap_gallery_image-grid img {
  width: 100%;
  max-width: 1000px;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.ap_gallery_image-grid img:hover {
  transform: scale(1.03);
}

.ap_gallery_image-overlay {
  visibility: hidden;
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.ap_gallery_image-overlay:target {
  visibility: visible;
  opacity: 1;
}

.ap_gallery_image-overlay-content {
  max-width: 90%;
  max-height: 90%;
  overflow: auto;
  background: #fff;
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease-out;
}

.ap_gallery_image-overlay:target .ap_gallery_image-overlay-content {
  transform: scale(1);
}

.ap_gallery_image-overlay-content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.ap_gallery_image-overlay-close {
  position: absolute;
  top: 15px;
  right: 25px;
  color: #fff;
  font-size: 40px;
  text-decoration: none;
  line-height: 1;
  z-index: 1001;
}

.ap_gallery_image-overlay-close:hover {
  color: #ccc;
}

/* サムネイルをクリックできることが分かるように */
.ap_gallery_image-grid img {
  cursor: pointer;
}

.ap_gallery_image-overlay .ap_gallery_image-overlay-close-area { /* オーバーレイ全体をクリックで閉じるための要素を別途用意する場合 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
}

/* ===== 商品リスト ===== */
.ap_gallery_item-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
}

.ap_gallery_item-list li {
  font-size: 0.95rem;
  padding: 4px 0;
  color: #334155;
}

.ap_gallery_item-note {
  font-size: 0.9rem;
  color: #b91c1c;
  font-weight: 600;
  margin-top: 4px;
}

.ap_gallery_artist-comment {
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  padding: 12px 16px;
  margin-top: 10px;
  border-radius: 0 8px 8px 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #475569;
}

.ap_gallery_artist-comment-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

/* ===== スマートフォン対応 ===== */
@media (max-width: 768px) {
  .ap_gallery_body {
    font-size: 0.95rem;
  }

  .ap_gallery_section h2 {
    font-size: 1.3rem;
  }

  .ap_gallery_text-box, .ap_gallery_warning {
    font-size: 1rem;
  }

  .ap_gallery_toc-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ap_gallery_toc-item a {
    padding: 12px;
    font-size: 0.9rem;
  }

  .ap_gallery_artist-header {
    flex-wrap: wrap;
  }
}
