/* Background */
body.bg-gradient {
  background: linear-gradient(
    to bottom right,
    #f8f9fb 0%,
    #eef2f7 40%,
    #dbe4ee 100%
  );
  margin: 0;
  font-family: "Inter", sans-serif;
}

/* Header (small, left, rounded bottom-right) */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border-bottom-right-radius: 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 100;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0d1b3d;
}
/* general */
body{
  padding-bottom: 100px;
}

h2{
  color:#4b5266;
  font-size: 1rem;
  margin-left: 4px;
}
a{
  margin-right: 8px;
  color: #0d1b3d;
}
p{
  font-size: 15px;
}
/* Top Image */
.top-image-container {
  margin-top: 90px; /* header offset */
  display: flex;
  justify-content: center;
}
.top-image {
  width: min(90%, 600px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Section layout */
.section {
  padding: 60px 12px 0px 12px;
  max-width: 900px;
  margin: 0 auto;
}

/* Coming Next */
.next-card {
  margin: 20px 0;
}

.next-header {
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.6;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.next-title {
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.next-body {
  display: flex;
  gap: 20px;
  align-items: center;
}

.next-img {
  width: 420px;
  object-fit: cover;
  border-radius: 20px;
}

.next-text {
  flex: 1;
}

/* ---------- Illustration / Manga Gallery ---------- */

.gallery-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-section-title small {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* PC: サムネ左・メイン右の2カラム（SPでは縦積み） */
.gallery-layout {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

/* サムネ列 */
.art-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 900px;        /* PC での最大高さ */
  overflow-y: auto;
  padding-right: 4px;
}

/* サムネボタン */
.art-thumb {
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.06),
    -2px -2px 4px rgba(255, 255, 255, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  opacity: 0.8;
}

.art-thumb img {
  display: block;
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.art-thumb:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.art-thumb.is-active {
  box-shadow:
    0 0 0 2px #7a8fae,
    2px 2px 6px rgba(0, 0, 0, 0.1);
  opacity: 1;
}

/* メインのビューワー 
.art-viewer {
  flex: 1;
  background: #eef2f7;
  border-radius: 20px;
  box-shadow:
      8px 8px 16px rgba(0, 0, 0, 0.08),
      -8px -8px 16px rgba(255, 255, 255, 0.8);
  padding: 16px;
}*/

/* メイン画像＋コントロール */
.art-viewer-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* メイン画像本体：高さ制限 */
.art-viewer-img {
  width: 100%;
  max-width: 700px;
  max-height: 700px;       /* PC の最大高さ */
  object-fit: contain;
  border-radius: 20px;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* 読み込み完了後に付くクラス */
.art-viewer-img.is-loaded {
  opacity: 1;
}

/* 前後ボタン */
.art-viewer-controls {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.art-nav-btn {
  border: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  min-width: 40px;
  height: 40px;
  border-radius: 999px;
  box-shadow:
    4px 4px 8px rgba(0, 0, 0, 0.08),
    -4px -4px 8px rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5266;
}

.art-nav-btn:active {
  transform: translateY(1px);
}

/* タイトル・キャプション */
.section-gallery {
  padding: 20px 12px 0px 12px;
  max-width: 900px;
  margin: 0 auto;
}
.art-meta {
  margin-top: 12px;
}

.art-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #4b5266;
  margin-bottom: 4px;
}

.art-caption {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.7;
}

/* ---------- SP レイアウト調整 ---------- */
@media (max-width: 640px) {
  .gallery-layout {
    flex-direction: column-reverse;
  }

  .art-thumbs {
    flex-direction: row;
    max-height: none;
    max-width: 100%;
    overflow-x: auto;   /* 横スクロール */
    overflow-y: hidden;
    padding-bottom: 4px;
  }

  .art-thumb img {
    width: 72px;
    height: 72px;
  }

  .art-viewer {
    padding: 0px;
  }

  /* SP のメイン画像高さ制限 */
  .art-viewer-img {
    max-height: 600px;
  }
}
















@media (max-width: 640px) {
  .next-body {
    flex-direction: column;
    text-align: center;
  }
}


/* Smartphone layout */
@media (max-width: 600px) {
  .next-body {
    flex-direction: column;
  }
  .next-img {
    width: 100%;
  }
}

/* News Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card,
.next-card,
.book-card {
  background: #eef2f7;
  border-radius: 20px;

  box-shadow:
    8px 8px 16px rgba(0, 0, 0, 0.08),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.card {
  border-radius: 16px;
  padding: 16px;
  transition: 0.3s;
}



/* Books Section*/
.book-card {
  display: flex;
  gap: 20px;
  align-items: left;
  margin-bottom: 24px;
}

.book-img {
  width: 420px;

  object-fit: cover;
  border-radius: 20px;
}

.book-text {
  flex: 1;
  margin: 0px 16px 20px 0px;
}
.booth-btn {
  display: inline-block;
  padding: 8px 22px;
  border-radius: 999px;
  background: linear-gradient(
    to bottom right,
    #9fb0c8 0%,
    #7a8fae 100%
  );

  color: #ffffff;
  font-weight: 400;
  text-decoration: none;
  font-size: 0.95rem;
  opacity: 0.8;
}

.booth-btn:hover {

}

.booth-btn:active {
  transform: translateY(0);
}


@media (max-width: 640px) {
  .book-card {
    flex-direction: column;
    text-align: left;
  }
}


.card-img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}

.book-title {
  font-size: 1.3rem;
  margin-bottom: 0px;
}


/* SP */
@media (max-width: 600px) {
  .book-card {
    flex-direction: column;
  }
  .book-img {
    width: 50%;
  }
}
