.hero-swiper {
  aspect-ratio: 5 / 2;
}

/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, main {
  font-family: 'Arial Black', Arial, sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.6;
}

/* ===== mainなど白背景を持つ要素の補正 ===== */ 
main, .content, .wrapper { 
  background: #000; /* ← 黒帯とつなげるため */ 
  margin: 0; 
  padding: 0; 
}

/* ===== 固定ヘッダー ===== */
.header-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: rgba(0, 0, 0, 0.90);
  color: #fff;
  z-index: 1000;
  padding: 0.8rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.header-fixed.is-top {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.85) 35%,
    rgba(0, 0, 0, 0.8) 100%
  );
  box-shadow: none;
  backdrop-filter: blur(6px);
}

/* homeページのみ以前のグラデーションバージョン */
body.home-page .header-fixed.is-top {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.20) 35%,
    rgba(0, 0, 0, 0) 100%
  );
  box-shadow: none;
  backdrop-filter: blur(6px);
}
.header-fixed.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ===== ヘッダー内部配置 ===== */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 100%;   /* ← 固定幅を解除 */
  margin: 0;
  padding: 0 1.5rem 0 2rem;
  position: relative;
  height: 100%;
}

/* ===== ロゴ ===== */
.logo {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #fff;
  text-decoration: none;
  margin-left: 100px;
}

/* ===== ナビゲーション（中央配置） ===== */
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2rem;
}
.main-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}
.main-nav a:hover { opacity: 0.7; }
.main-nav a.active { border-bottom: 2px solid #fff; }

/* ===== タグ検索 ===== */
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
}

/* テーマボタングループ（クリスマス + ダークモード） */
.theme-buttons {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.tag-search-container {
  position: relative;
  flex: 0 0 auto;
}

.tag-search-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  width: 150px;
  transition: all 0.3s ease;
}

.tag-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.tag-search-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

.tag-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  border-radius: 8px;
  margin-top: 0.5rem;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.tag-suggestions.show {
  display: block;
}

.tag-suggestion-item {
  padding: 0.75rem 1rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tag-suggestion-item:last-child {
  border-bottom: none;
}

.tag-suggestion-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tag-suggestion-item.active {
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

/* ===== テーマ切り替えボタン ===== */
.theme-toggle-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.theme-toggle-btn {
  overflow: hidden;
}

.theme-toggle-btn img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  object-position: center;
  display: block;
}

.theme-toggle-btn:hover {
  transform: scale(1.15);
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.1);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

/* 展示モードボタン（絵文字） */
#gallery-mode-toggle {
  font-size: 1.8rem;
  min-width: 3rem;
  min-height: 3rem;
}

/* 製作者一覧ボタン */
#creators-toggle {
  display: flex !important;
  visibility: visible !important;
}

#creators-toggle img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}

/* ===== SNSアイコン（右上） ===== */
.sns-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
}
.sns-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
}
.sns-icons img {
  width: 30px;
  height: auto;
  filter: invert(0); 
  aspect-ratio: 1 / 1;   /* ← 念のため正方形比率を維持 */
  object-fit: contain;   /* ← アイコンが潰れないように */
  transition: transform 0.3s ease, filter 0.3s ease;
}
.sns-icons img:hover {
  transform: scale(1.15);
  filter: invert(0) brightness(1.5);
}

/* ===== ハンバーガーボタン ===== */
.menu-toggle {
  font-size: 27px;
  line-height: 1;
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* ===== モバイルメニュー ===== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100%;
  background: rgba(0, 0, 0, 0.97);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 3rem 1.5rem;
  transition: right 0.3s ease;
  z-index: 1500;
}
.mobile-menu.open { right: 0; }
.menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
}
.mobile-menu nav a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  margin: 0.8rem 0;
  display: block;
}

/* ===== 黒帯（LITTLE NUNS） ===== */
.page-header {
  background: #000;
  color: #fff;
  text-align: center;
  height: 340px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 0 30px 0;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-top: 0; border-top: none;
}

/* ===== フィルターナビ ===== */
.filter-nav {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 0rem; /* ← サムネとの距離を調整 */ 
  padding: 0; /* ← paddingをリセットして上下位置を明確に */
}
.filter-btn {
  border: none;
  background: none;
  color: #666;
  margin: 0 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}
.filter-btn.active {
  color: #000;
  border-bottom: 2px solid #000;
}

/* ===== ギャラリー ===== */
.gallery-grid {
  display: grid;
  gap: 10px;
  padding-top: 0rem; /* ← 上だけ少し余裕を残す */ 
  padding-right: 2rem; 
  padding-bottom: 2rem; 
  padding-left: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  justify-items: center;
}
.gallery-item {
  text-align: center;
  max-width: 240px;
  position: relative;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 0;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.5s ease;
  opacity: 0;
  transform: scale(0.95);
}
.gallery-item img.fade-in {
  opacity: 0;
  transform: scale(0.95);
}
.gallery-item img.visible {
  opacity: 1;
  transform: scale(1);
  animation: fadeInScale 0.6s ease-out forwards;
}
.gallery-item img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* プレースホルダー（スケルトンローディング） */
.gallery-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    #f0f0f0 0%,
    #e0e0e0 50%,
    #f0f0f0 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 1;
}
.gallery-item img {
  position: relative;
  z-index: 1;
  display: block;
}
.gallery-item:has(img.visible)::before {
  opacity: 0;
  animation: none;
}

@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* ===== ライトボックス ===== */
.lightbox {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.lightbox.hidden { display: none; }
.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-media {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-media img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 0;
}
#lightbox-caption {
  margin-top: 15px;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.6);
  text-align: center;
}

/* キャプション（タイトル）行：中央は維持しつつ、右端に封筒を置く */
.lightbox-caption-row {
  position: relative;
  width: 100%;
  margin-top: 15px; /* 以前の #lightbox-caption の位置を維持 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-caption-row #lightbox-caption {
  margin-top: 0; /* margin は行側で持つ */
}

/* 矢印ボタン */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  padding: 0 1rem;
  box-sizing: border-box;
}
.lightbox-nav button {
  /* 通常は非表示（JSで端に寄った時だけ表示） */
  opacity: 0;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 0; /* 中の文字は表示しない */
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 1001;
  width: 30px;   /* 横（縦:横 = 5:2） */
  height: 75px;  /* 縦 */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.lightbox.show-left #prev-btn,
.lightbox.show-right #next-btn {
  opacity: 1;
  pointer-events: all;
}
/* 矢印を枠の中心に描画（字面ズレ回避） */
.lightbox-nav button#prev-btn::before,
.lightbox-nav button#next-btn::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.lightbox-nav button#prev-btn::before {
  border-right: 16px solid rgba(255, 255, 255, 0.95); /* ◀ */
}
.lightbox-nav button#next-btn::before {
  border-left: 16px solid rgba(255, 255, 255, 0.95); /* ▶ */
}
#prev-btn { 
  position: relative; 
  left: 0;
}
#next-btn { 
  position: relative; 
  right: 0;
}

/* ===== 1279 演出：封筒ボタン ===== */
.lightbox-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-envelope-btn {
  position: relative;
  width: 44px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  cursor: pointer;
  z-index: 1;
  padding: 0;
}

.lightbox-envelope-btn.hidden {
  display: none;
}

/* ===== 絵日記（★）ボタン ===== */
.lightbox-diary-btn {
  position: relative;
  width: 44px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  cursor: pointer;
  z-index: 1;
  padding: 0;
  color: rgba(255, 255, 255, 0.95);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-diary-btn.hidden {
  display: none;
}

/* 封筒（CSSで描画） */
.lightbox-envelope-btn::before,
.lightbox-envelope-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* 本体 */
.lightbox-envelope-btn::before {
  width: 24px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  background: transparent;
}

/* フラップ */
.lightbox-envelope-btn::after {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 9px solid rgba(255, 255, 255, 0.9);
  top: calc(50% - 1px);
}

/* ===== 手紙モーダル ===== */
.letter-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.letter-modal.hidden {
  display: none;
}

.letter-modal__content {
  position: relative;
  max-width: min(900px, 92vw);
  max-height: 92vh;
}

.letter-modal__img {
  width: 100%;
  height: auto;
  max-height: 92vh;
  display: block;
  object-fit: contain;
  background: #fff;
}

/* ===== 絵日記モーダル（手紙と同じ） ===== */
.diary-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.diary-modal.hidden {
  display: none;
}

.diary-modal__content {
  position: relative;
  max-width: min(900px, 92vw);
  max-height: 92vh;
}

.diary-modal__img {
  width: 100%;
  height: auto;
  max-height: 92vh;
  display: block;
  object-fit: contain;
  background: #fff;
}

/* ===== PB（絵本）モーダル（手紙/絵日記と同じ） ===== */
.pb-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
}

.pb-modal.hidden {
  display: none;
}

.pb-modal__content {
  position: relative;
  max-width: min(900px, 92vw);
  max-height: 92vh;
}

.pb-modal__img {
  width: 100%;
  height: auto;
  max-height: 92vh;
  display: block;
  object-fit: contain;
  background: #fff;
}

/* ===== PB（絵本）ボタン：🍩を白黒で表現（CSSドーナツ） ===== */
.lightbox-pb-btn {
  position: relative;
  width: 44px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  cursor: pointer;
  z-index: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-pb-btn.hidden {
  display: none;
}

/* 白黒ドーナツ（外輪＋穴） */
.lightbox-pb-btn::before,
.lightbox-pb-btn::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.lightbox-pb-btn::before {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.95);
}

.lightbox-pb-btn::after {
  width: 6px;
  height: 6px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: transparent;
}

/* 手紙モーダルは背景クリックで閉じるため、×ボタンは使用しない */

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  background: none;
  color: #fff;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  z-index: 1000;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}
.lightbox-close:hover {
  opacity: 1;
  transform: scale(1.1);
}

.lightbox-toggle-l-btn {
  position: relative;
  width: 44px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.35);
  border-radius: 6px;
  cursor: pointer;
  z-index: 1;
  padding: 0;
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-toggle-l-btn:hover {
  opacity: 1;
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.5);
}

/* 消しゴムマーク（四角形と斜めの線） */
.lightbox-toggle-l-btn::before,
.lightbox-toggle-l-btn::after {
  content: "";
  position: absolute;
}

/* 四角形の背景 */
.lightbox-toggle-l-btn::before {
  width: 24px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  background: transparent;
}

/* 斜めの線（消しゴムのマーク） */
.lightbox-toggle-l-btn::after {
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
  top: 50%;
  left: 50%;
  margin-top: -1px;
  margin-left: -7px;
}

/* ===== ページナビ ===== */
.page-nav {
  text-align: center;
  padding: 1.5rem 0 3rem;
}
.page-btn {
  display: inline-block;
  margin: 0 0.25rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid #000;
  background: #fff;
  cursor: pointer;
  transition: 0.2s;
}
.page-btn:hover,
.page-btn.active {
  background: #000;
  color: #fff;
}

/* ===== フッター ===== */
.site-footer {
  background: #000;
  color: #fff;
  padding: 3rem 0 1rem 0;
  font-family: 'Arial Black', Arial, sans-serif;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
  gap: 2rem;
}
.footer-credit {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2rem;
  padding-top: 1rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h2,
.footer-column h3 {
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}
.footer-logo {
  font-size: 1.4rem;
}
.footer-column p {
  color: #ccc;
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-sns a {
  margin-right: 0.6rem;
  display: inline-block;
}
.footer-sns {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ← 左寄せ */
  gap: 0.8rem; /* ← アイコン間隔 */
}
.footer-sns img {
  width: 26px;
  filter: invert(0);
  transition: opacity 0.3s ease;
}
.footer-sns img:hover {
  opacity: 0.7;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1200px) {
  .logo {
    margin-left: 2rem;
  }
  .main-nav { 
    display: none; 
  }
  .menu-toggle { 
    display: inline-block; 
    align-items: center;
  }
  .header-right {
    gap: 0.5rem;
  }
  .tag-search-input {
    width: 120px;
  }
}

@media (max-width: 1000px) {
  .logo {
    margin-left: 1.5rem;
  }
  .header-container {
    padding: 0 1rem 0 1.5rem;
  }
  .header-right {
    gap: 0.75rem;
  }
  .tag-search-input {
    width: 120px;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
  .sns-icons {
    gap: 1rem;
  }
  .sns-icons img {
    width: 26px;
  }
  .theme-toggle-btn img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 600px) {
  .logo {
    margin-left: 1rem;
    font-size: 1rem;
    letter-spacing: 1px;
  }
  .header-container {
    padding: 0 0.75rem 0 1rem;
  }
  .header-right {
    gap: 0.5rem;
  }
  .tag-search-input {
    width: 100px;
    font-size: 0.8rem;
    padding: 0.35rem 0.7rem;
  }
  .tag-search-input::placeholder {
    font-size: 0.75rem;
  }
  .sns-icons {
    gap: 0.75rem;
  }
  .sns-icons img {
    width: 24px;
  }
  .theme-toggle-btn img {
    width: 26px;
    height: 26px;
    object-fit: cover;
    object-position: center;
  }
  
  /* さらに小さい画面でのギャラリー最適化 */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  /* ライトボックスをさらに最適化 */
  .lightbox-content {
    max-width: 98%;
  }
  .lightbox-media img {
    max-height: 70vh;
  }
  .lightbox-nav button {
    width: 40px;
    height: 60px;
    min-width: 40px;
    min-height: 60px;
  }
  
  .lightbox-nav button#prev-btn::before,
  .lightbox-nav button#next-btn::before {
    border-top-width: 8px;
    border-bottom-width: 8px;
  }
  
  .lightbox-nav button#prev-btn::before {
    border-right-width: 12px;
  }
  
  .lightbox-nav button#next-btn::before {
    border-left-width: 12px;
  }
  
  /* ページヘッダーをさらに小さく */
  .page-header {
    height: 180px !important;
    min-height: 180px;
    max-height: 180px;
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
  .footer-logo { font-size: 1.2rem; }
  .footer-sns img { width: 20px; }
  
  /* ギャラリーグリッドをスマホでも2列表示 */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .gallery-item {
    max-width: 100%;
  }
  
  /* ライトボックス最適化 */
  .lightbox-content {
    max-width: 90%;
    max-height: 85vh;
  }
  .lightbox-media img {
    width: 100%;
    max-width: 900px;
    max-height: 75vh;
    object-fit: contain;
  }
  .lightbox-nav {
    padding: 0 0.75rem;
  }
  .lightbox-nav button {
    width: 36px;
    height: 50px;
    min-width: 36px;
    min-height: 50px;
  }
  
  .lightbox-nav button#prev-btn::before,
  .lightbox-nav button#next-btn::before {
    border-top-width: 7px;
    border-bottom-width: 7px;
  }
  
  .lightbox-nav button#prev-btn::before {
    border-right-width: 10px;
  }
  
  .lightbox-nav button#next-btn::before {
    border-left-width: 10px;
  }
  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
  }
  .lightbox-toggle-l-btn {
    width: 38px;
    height: 30px;
  }
  
  .lightbox-toggle-l-btn::before {
    width: 20px;
    height: 15px;
  }
  
  .lightbox-toggle-l-btn::after {
    width: 12px;
    margin-left: -6px;
  }
  #lightbox-caption {
    font-size: 0.95rem;
    margin-top: 10px;
    padding: 0 1rem;
  }
  
  /* クリスマスページとzookeepersページの画像サイズ調整（スマホ用） */
  .zoo-section img,
  .zoo-about img,
  .christmas-section img,
  .christmas-about img,
  .christmas-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 1rem auto !important;
    box-sizing: border-box !important;
  }
  
  /* フィルターボタンの調整 */
  .filter-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 1rem;
    margin-top: 2rem;
  }
  .filter-btn {
    font-size: 0.9rem;
    margin: 0 0.3rem;
    white-space: nowrap;
  }
  
  /* ページヘッダーの調整 */
  .page-header {
    height: 200px !important;
    min-height: 200px;
    max-height: 200px;
    font-size: 1.8rem;
    padding: 0 0 20px 0;
  }
}

/* ===== ZOOKEEPERS PAGE ===== */
.zoo-section,
.christmas-section {
  text-align: center;
  background: #fff;
  padding: 3rem 1rem 1rem 1rem;
}

.zoo-about,
.christmas-about {
  text-align: center;
  background: #fff;
  padding: 1rem 1rem;
}
.zoo-section h2,
.zoo-about h2,
.christmas-section h2,
.christmas-about h2 {
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  display: inline-block;
  padding-bottom: 0.3rem;
}
.zoo-section h2,
.christmas-section h2 {
  font-size: 2rem;
}
.zoo-about h2,
.christmas-about h2 {
  font-size: 1.6rem;
}
/*******************************************
  ABOUT ZOOKEEPERS（画像幅に線を合わせる）
********************************************/
.about-block {
  width: 90%;
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
  padding: 1rem 0;
}

.about-block h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

/* 画像 */
.about-img {
  width: 80%;
  display: block;
  margin: 0 auto 2rem auto;
}

/* 説明テキスト（左寄せ） */
.about-text {
  text-align: left;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 0.8rem;
  font-size: 1rem;
  line-height: 1.7;
}

.zoo-section img,
.zoo-about img,
.christmas-section img,
.christmas-about img,
.about-section img,
.character img {
  width: 100%;
  max-width: 900px;
  margin: 1rem auto;
  display: block;
}

.christmas-image {
  cursor: pointer;
  transition: opacity 0.3s ease;
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.christmas-image:hover {
  opacity: 0.9;
}

.zoo-about .p1,
.zoo-about .p2,
.christmas-about .p1,
.christmas-about .p2 {
  color: #333;
  font-weight: 700;
  line-height: 1.8;
  margin: 1rem auto 1rem;
  max-width: 800px;
  font-size: 1rem;
}
.zoo-about .p2,
.christmas-about .p2 {
  margin-top: 3rem;
}
.patreon {
  margin-top: 2rem;
}

.christmas-about .patreon p {
  margin-bottom: 2rem;
}

.patreon-btn {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.patreon-btn:hover {
  background: #444;
}


/* ===== ABOUT LITTLE NUNS PAGE ===== */
.hero-section,
.characters-section,
.about-section {
  background: #fff;
  color: #000;
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid #ddd;
}

.about-section h2,
.characters-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #000;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.about-section:has(.patreon-btn) h2 {
  border-bottom: none;
  padding-bottom: 0;
}

.about-section p {
  max-width: 700px;
  margin: 0 auto 0.75rem;
  line-height: 1.8;
  font-size: 1rem;
}

.about-section p + .about-swiper,
.about-section p + .comic-swiper {
  margin-top: -0.5rem;
}

.patreon-highlight {
  background: #fff;
  padding: 2rem 1rem 1.5rem;
  margin-bottom: 0;
  text-align: center;
}

.patreon-highlight + .about-section {
  padding-top: 1.5rem;
}

.patreon-card {
  position: relative;
  display: block;
  width: min(90vw, 900px);
  aspect-ratio: 5 / 2;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.6s ease;
}

.patreon-card img {
  width: 100%;
  height: 100%;
  display: block;
  transform: scale(1);
  transition: transform 6s ease, filter 0.6s ease;
  object-fit: cover;
}

.patreon-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0.75) 100%);
  opacity: 0.7;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.patreon-card__ribbon {
  position: absolute;
  top: 18px;
  right: -55px;
  background: #ff5b5f;
  color: #fff;
  padding: 0.45rem 3.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  transform: rotate(45deg);
  z-index: 1;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}

.patreon-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.85);
}

.patreon-card:hover::after {
  opacity: 0.95;
}

.character {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
}

.character h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.hero-section,
.characters-section {
  padding: 4rem 0 3rem;
}

.hero-swiper,
.characters-swiper,
.about-swiper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.about-little-nuns-page .characters-swiper,
.about-little-nuns-page .about-swiper {
  max-width: 900px;
}

.hero-swiper .swiper-wrapper,
.characters-swiper .swiper-wrapper,
.about-swiper .swiper-wrapper {
  display: flex;
  align-items: center;
}

.hero-swiper .swiper-slide,
.characters-swiper .swiper-slide,
.about-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.hero-swiper img,
.characters-swiper img,
.about-swiper img {
  width: 100%;
  max-width: 1200px;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  user-select: none;
  pointer-events: none;
}

.about-little-nuns-page .characters-swiper img,
.about-little-nuns-page .about-swiper img {
  max-width: 900px;
}

.swiper-button-prev,
.swiper-button-next {
  color: #000;
  top: 50%;
  transform: translateY(-50%);
}

.swiper-pagination-bullet-active {
  background: #000;
}

/* ===== キャラクタースライダー画像調整 ===== */

/* ===== ICON LINKS（トップページのアイコン横並び）===== */
.icon-links {
  background: #fff;
  padding: 3rem 0;
}

.home-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;   /* 横方向に中央寄せ */
  align-items: center;       /* アイコンの縦位置を揃える */
  gap: 3rem;                 /* アイコンの間隔 */
  flex-wrap: wrap;           /* スマホ時に折り返し */
}

.icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;       /* 中央揃え */
  justify-content: center;
  text-decoration: none;
}

.icon-item img {
  width: 180px;              /* アイコンの大きさ調整 */
  max-width: 25vw;           /* 画面幅に合わせて自動縮小 */
  height: auto;
  transition: transform 0.25s ease;
}

.icon-item img[src*="faq"] {
  width: 140px;              /* FAQアイコンの大きさ調整 */
  max-width: 20vw;           /* 画面幅に合わせて自動縮小 */
}

.icon-item img:hover {
  transform: scale(1.07);    /* ホバーで少し拡大 */
}

/* ===== スノーモード（配色変更なし・雪だけ） ===== */
.christmas-theme {
  position: relative;
  overflow-x: hidden;
}

/* 雪のアニメーション（色やUIは一切変更しない） */
.christmas-theme::before {
  content: '';
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  height: 200%;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.80) 1px, transparent 1px),
    radial-gradient(circle at 40% 50%, rgba(255, 255, 255, 0.60) 1px, transparent 1px),
    radial-gradient(circle at 60% 50%, rgba(255, 255, 255, 0.90) 1px, transparent 1px),
    radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.70) 1px, transparent 1px);
  background-size: 200px 200px, 150px 150px, 180px 180px, 160px 160px;
  background-position: 0 0, 50px 50px, 100px 100px, 150px 150px;
  animation: snowfall 20s linear infinite;
  pointer-events: none;
  z-index: 999; /* ヘッダー(1001)より下 */
}

@keyframes snowfall {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100vh);
  }
}

/* 以前の「クリスマス配色」用の上書きは削除（雪だけを残す） */

/* ===== ダークモード ===== */
body.dark-mode {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode main,
body.dark-mode .content,
body.dark-mode .wrapper {
  background: #1a1a1a;
}

body.dark-mode .hero-section,
body.dark-mode .characters-section,
body.dark-mode .about-section,
body.dark-mode .zoo-section,
body.dark-mode .zoo-about,
body.dark-mode .christmas-section,
body.dark-mode .christmas-about,
body.dark-mode .icon-links,
body.dark-mode .duck-game-section {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .page-header {
  background: #000;
  color: #fff;
}

body.dark-mode .filter-btn {
  color: #999;
}

body.dark-mode .filter-btn.active {
  color: #fff;
  border-bottom-color: #fff;
}

body.dark-mode .gallery-item::before {
  background: linear-gradient(
    90deg,
    #2a2a2a 0%,
    #333 50%,
    #2a2a2a 100%
  );
}

body.dark-mode .lightbox {
  background: rgba(0, 0, 0, 0.98);
}

body.dark-mode .lightbox-close {
  color: #fff;
}

body.dark-mode .site-footer {
  background: #000;
  color: #fff;
}

body.dark-mode .footer-column p {
  color: #ccc;
}

body.dark-mode .footer-credit {
  color: rgba(255, 255, 255, 0.4);
  border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .patreon-btn {
  background: #fff;
  color: #000;
}

body.dark-mode .patreon-btn:hover {
  background: #ccc;
}

body.dark-mode .zoo-section h2,
body.dark-mode .zoo-about h2,
body.dark-mode .christmas-section h2,
body.dark-mode .christmas-about h2,
body.dark-mode .about-section h2,
body.dark-mode .characters-section h2 {
  color: #fff;
  border-bottom-color: #fff;
}

body.dark-mode .about-section:has(.patreon-btn) h2 {
  border-bottom: none;
}

body.dark-mode .about-text p {
  color: #e0e0e0;
}

body.dark-mode .about-section p {
  color: #e0e0e0;
}

body.dark-mode .about-section {
  border-top-color: #444;
}

body.dark-mode .patreon-highlight {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .patreon-highlight + .about-section {
  background: #1a1a1a;
  color: #e0e0e0;
  border-top-color: #444;
}

body.dark-mode .zoo-about .p1,
body.dark-mode .zoo-about .p2,
body.dark-mode .christmas-about .p1,
body.dark-mode .christmas-about .p2 {
  color: #e0e0e0;
}

body.dark-mode .letter-modal__img,
body.dark-mode .diary-modal__img,
body.dark-mode .pb-modal__img {
  background: #2a2a2a;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: #fff;
  color: #000;
  padding: 3rem 1rem;
  border-top: 1px solid #ddd;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 3rem;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-message {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.faq-message:last-child {
  margin-bottom: 0;
}

/* 質問は左側 */
.faq-question {
  justify-content: flex-start;
}

/* 回答は右側 */
.faq-answer {
  justify-content: flex-end;
  flex-direction: row-reverse;
  margin-left: auto;
  max-width: 80%;
}

.faq-avatar {
  flex-shrink: 0;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-avatar-img {
  width: auto;
  height: auto;
  max-width: 63px;
  max-height: 63px;
  display: block;
}

.faq-bubble {
  max-width: calc(100% - 70px);
  padding: 1rem 1.25rem;
  border-radius: 18px;
  position: relative;
  word-wrap: break-word;
}

.faq-answer .faq-bubble {
  margin-left: auto;
}

.faq-bubble-question {
  background: #e8e8e8;
  color: #000;
  border-bottom-left-radius: 4px;
}

.faq-bubble-answer {
  background: #007bff;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.faq-text {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
}

.faq-text + .faq-text {
  margin-top: 0.75rem;
}

/* ダークモード対応 */
body.dark-mode .faq-section {
  background: #1a1a1a;
  color: #e0e0e0;
  border-top-color: #444;
}

body.dark-mode .faq-bubble-question {
  background: #2a2a2a;
  color: #e0e0e0;
}

body.dark-mode .faq-bubble-answer {
  background: #0056b3;
  color: #fff;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
  .faq-message {
    gap: 0.75rem;
  }

  .faq-avatar-img {
    max-width: 50px;
    max-height: 50px;
  }

  .faq-bubble {
    max-width: calc(100% - 60px);
    padding: 0.875rem 1rem;
  }

  .faq-text {
    font-size: 0.95rem;
  }
}

/* ===== COMMISSION FORM ===== */
.form-section {
  background: #fff;
  color: #000;
  text-align: center;
  padding: 3rem 1rem;
  border-top: 1px solid #ddd;
}

.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid #000;
  display: inline-block;
  padding-bottom: 0.3rem;
}

.form-description {
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
  font-size: 1rem;
  color: #333;
}

.google-form-container {
  max-width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.google-form-container iframe {
  display: block;
  width: 100%;
  min-height: 1800px;
  border: none;
}

.form-note {
  margin-top: 1rem;
  padding: 1rem;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #666;
  text-align: left;
  line-height: 1.6;
}

.commission-form {
  text-align: left;
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #000;
  font-size: 0.95rem;
}

.required {
  color: #d32f2f;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Arial Black', Arial, sans-serif;
  color: #000;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.file-upload-container {
  position: relative;
}

.file-upload-container input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  overflow: hidden;
}

.file-upload-label {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px dashed #ddd;
  border-radius: 4px;
  background: #f9f9f9;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.file-upload-label:hover {
  border-color: #999;
  background: #f0f0f0;
}

.file-upload-text {
  display: block;
  font-size: 1rem;
  color: #333;
  margin-bottom: 0.25rem;
}

.file-upload-icon {
  font-size: 1.5rem;
  display: block;
}

.image-preview {
  margin-top: 1rem;
  display: none;
}

.image-preview.has-image {
  display: block;
}

.image-preview img {
  max-width: 100%;
  max-height: 300px;
  border: 2px solid #ddd;
  border-radius: 4px;
  display: block;
  margin: 0 auto;
}

.image-preview .preview-info {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #666;
}

.plan-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.plan-option {
  flex: 1;
  min-width: 200px;
  cursor: pointer;
}

.plan-option input[type="radio"] {
  display: none;
}

.plan-card {
  padding: 1.5rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  background: #fff;
}

.plan-option input[type="radio"]:checked + .plan-card {
  border-color: #000;
  background: #f5f5f5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.plan-option:hover .plan-card {
  border-color: #999;
  transform: translateY(-2px);
}

.plan-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #000;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: #000;
}

.plan-option.plan-unavailable {
  opacity: 0.6;
  cursor: not-allowed;
}

.plan-option.plan-unavailable .plan-card {
  background: #f5f5f5;
  border-color: #ccc;
  position: relative;
}

.plan-option.plan-unavailable .plan-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.plan-option.plan-unavailable:hover .plan-card {
  border-color: #ccc;
  transform: none;
}

.plan-option input[type="radio"]:disabled + .plan-card {
  cursor: not-allowed;
}

.plan-unavailable-text {
  position: relative;
  z-index: 2;
  color: #d32f2f;
  font-size: 0.9rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  font-weight: bold;
  font-family: 'Arial Black', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: 1rem;
}

.submit-btn:hover {
  background: #333;
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

/* ダークモード対応 */
body.dark-mode .form-section {
  background: #1a1a1a;
  color: #e0e0e0;
  border-top-color: #444;
}

body.dark-mode .form-section h2 {
  color: #fff;
  border-bottom-color: #fff;
}

body.dark-mode .form-description {
  color: #e0e0e0;
}

body.dark-mode .google-form-container {
  background: #2a2a2a;
}

body.dark-mode .form-note {
  background: #333;
  border-color: #555;
  color: #ccc;
}

body.dark-mode .form-group label {
  color: #fff;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
  background: #2a2a2a;
  color: #e0e0e0;
  border-color: #555;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
  border-color: #fff;
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
  color: #999;
}

body.dark-mode .file-upload-label {
  background: #2a2a2a;
  border-color: #555;
}

body.dark-mode .file-upload-label:hover {
  border-color: #888;
  background: #333;
}

body.dark-mode .file-upload-text {
  color: #e0e0e0;
}

body.dark-mode .image-preview img {
  border-color: #555;
}

body.dark-mode .image-preview .preview-info {
  color: #999;
}

body.dark-mode .plan-card {
  background: #2a2a2a;
  border-color: #555;
}

body.dark-mode .plan-option input[type="radio"]:checked + .plan-card {
  border-color: #fff;
  background: #333;
}

body.dark-mode .plan-option:hover .plan-card {
  border-color: #888;
}

body.dark-mode .plan-name,
body.dark-mode .plan-price {
  color: #fff;
}

body.dark-mode .plan-option.plan-unavailable .plan-card {
  background: #1a1a1a;
  border-color: #555;
}

body.dark-mode .plan-option.plan-unavailable .plan-card::after {
  background: rgba(0, 0, 0, 0.7);
}

body.dark-mode .plan-unavailable-text {
  color: #ff6b6b;
}

body.dark-mode .submit-btn {
  background: #fff;
  color: #000;
}

body.dark-mode .submit-btn:hover {
  background: #ccc;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .form-section {
    padding: 2rem 1rem;
  }

  .form-section h2 {
    font-size: 1.4rem;
  }

  .form-description {
    font-size: 0.9rem;
  }

  .google-form-container iframe {
    min-height: 1600px;
  }

  .form-note {
    font-size: 0.85rem;
    padding: 0.75rem;
  }

  .form-group {
    margin-bottom: 1.25rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
    padding: 0.65rem;
  }

  .plan-options {
    flex-direction: column;
  }

  .plan-option {
    min-width: 100%;
  }

  .plan-card {
    padding: 1.25rem;
  }

  .plan-name {
    font-size: 1.1rem;
  }

  .plan-price {
    font-size: 1.3rem;
  }

  .file-upload-label {
    padding: 0.65rem 1rem;
  }

  .file-upload-text {
    font-size: 0.9rem;
  }

  .image-preview img {
    max-height: 200px;
  }
}

/* ===== FANARTS ギャラリー ===== */
.fanarts-section {
  background: #fff;
  color: #000;
  padding: 2rem 0;
}

.fanarts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.fanarts-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fanarts-item img {
  width: 100%;
  height: auto;
  border-radius: 0;
  cursor: pointer;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.5s ease;
  opacity: 0;
  transform: scale(0.95);
}

.fanarts-item img.visible {
  opacity: 1;
  transform: scale(1);
  animation: fadeInScale 0.6s ease-out forwards;
}

.fanarts-item img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

.fanarts-creator {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  text-transform: capitalize;
}

.fanarts-empty {
  text-align: center;
  padding: 4rem 2rem;
  color: #666;
  font-size: 1.2rem;
}


/* ダークモード対応 */
body.dark-mode .fanarts-section {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .fanarts-creator {
  color: #999;
}

body.dark-mode .fanarts-empty {
  color: #999;
}


/* モバイル対応（fanarts） */
@media (max-width: 1024px) {
  .fanarts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .fanarts-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .fanarts-creator {
    font-size: 0.85rem;
  }

  .fanarts-empty {
    font-size: 1rem;
    padding: 3rem 1rem;
  }
}

/* ===== 展示モード（fanarts専用） ===== */
body.gallery-mode .fanarts-section {
  background: #8B0000; /* 高級感のある深紅 */
  background-image: 
    linear-gradient(45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(0, 0, 0, 0.1) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  padding: 3rem 2rem;
}

body.gallery-mode .fanarts-item {
  padding: 1.5rem;
  background: transparent;
  border-radius: 8px;
}

/* 額縁スタイル */
body.gallery-mode .fanarts-item img {
  border: 8px solid #D4AF37; /* 金色の額縁 */
  border-image: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%) 1;
  box-shadow: 
    0 0 0 2px #8B4513, /* 内側の茶色の縁 */
    0 0 0 4px #D4AF37, /* 金色の縁 */
    0 8px 32px rgba(0, 0, 0, 0.6), /* 影 */
    inset 0 0 20px rgba(212, 175, 55, 0.2); /* 内側の光沢 */
  background: #fff;
  padding: 0.5rem;
}



body.gallery-mode .fanarts-item img:hover {
  transform: scale(1.05);
  box-shadow: 
    0 0 0 2px #8B4513,
    0 0 0 4px #D4AF37,
    0 12px 40px rgba(0, 0, 0, 0.8),
    inset 0 0 30px rgba(212, 175, 55, 0.3);
}

body.gallery-mode .fanarts-creator {
  color: #FFD700; /* 金色のテキスト */
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  margin-top: 1rem;
  font-size: 1rem;
}

body.gallery-mode .fanarts-empty {
  color: #FFD700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* 展示モードボタンのスタイル */
#gallery-mode-toggle {
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.4rem;
}

#gallery-mode-toggle.active {
  background: rgba(212, 175, 55, 0.2);
  border-radius: 4px;
}

/* ダークモード + 展示モードの組み合わせ */
body.dark-mode.gallery-mode .fanarts-section {
  background: #5C0000; /* より暗い赤 */
}

body.dark-mode.gallery-mode .fanarts-creator {
  color: #FFD700;
}

/* モバイル対応（展示モード） */
@media (max-width: 768px) {
  body.gallery-mode .fanarts-section {
    padding: 2rem 1rem;
  }

  body.gallery-mode .fanarts-item {
    padding: 1rem;
  }

  body.gallery-mode .fanarts-item img {
    border-width: 6px;
    padding: 0.3rem;
  }
}

/* ===== 製作者一覧モーダル ===== */
.creators-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 2rem;
}

.creators-modal.hidden {
  display: none;
}

.creators-modal-content {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.creators-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.creators-modal-close:hover {
  color: #000;
}

.creators-modal-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #000;
  text-align: center;
}

.creators-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.creator-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f5f5f5;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.creator-item:hover {
  background: #e8e8e8;
}

.creator-name {
  font-size: 1rem;
  font-weight: 500;
  color: #000;
}

.creator-stars {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.creator-stars .star-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ダークモード対応 */
body.dark-mode .creators-modal-content {
  background: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .creators-modal-content h2 {
  color: #e0e0e0;
}

body.dark-mode .creators-modal-close {
  color: #999;
}

body.dark-mode .creators-modal-close:hover {
  color: #fff;
}

body.dark-mode .creator-item {
  background: #2a2a2a;
}

body.dark-mode .creator-item:hover {
  background: #333;
}

body.dark-mode .creator-name {
  color: #e0e0e0;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .creators-modal {
    padding: 1rem;
  }

  .creators-modal-content {
    padding: 1.5rem;
    max-height: 90vh;
  }

  .creators-modal-content h2 {
    font-size: 1.5rem;
  }

  .creator-name {
    font-size: 0.9rem;
  }

  .creator-stars .star-icon {
    width: 14px;
    height: 14px;
  }
}
