
/* ===============================
   ▼ 基本レイアウトと全体設定
================================ */
body {
  font-family: "Noto Sans JP", sans-serif;
  background: #fafafa;
  color: #222;
  padding: 2em;
  max-width: 1080px;
  margin: auto;
}
h2 {
  font-size: 1.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 0.2em;
}
p.site-description {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 1.5em;
}

/* ===============================
   ▼ タグフィルター・共通タグボタン
================================ */
.tag-filter,
.gallery-tags,
.random-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.tag-filter {
  padding: 6px;
  height: 100px;
  overflow-y: auto;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 20px;
}
.tag-filter button,
.gallery-tags .tag,
.random-tags .tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75em;
  font-weight: 500;
  color: #333;
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.tag-filter button.active,
.random-tags .tag.active {
  background: rgba(0,0,0,0.8) !important;
  color: #fff !important;
  border-color: transparent;
}
.tag-filter button:not(.active):hover,
.random-tags .tag:not(.active):hover {
  background: rgba(0,0,0,0.05);
  color: #333;
}

/* ===============================
   ▼ ギャラリー表示
================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.gallery-item {
  background: white;
  padding: 12px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  transition: 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.gallery-item img {
  width: 100%;
  border-radius: 8px;
}
.gallery-item.hidden {
  display: none !important;
}
.gallery-tags .tag-label {
  font-size: 0.75em;
  color: #666;
  margin-right: 6px;
  transition: color 0.2s;
}
.gallery-tags .tag-label.active {
  color: #000;
  font-weight: bold;
}
.tag-toggle-label {
  font-size: 0.7em;
  color: #0073aa;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
}

/* ===============================
   ▼ ランダムピック
================================ */
.random-pick {
  margin-bottom: 32px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 20px;
}
.random-pick-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 8px;
  margin-bottom: 14px;
}
.random-pick-scroll {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  padding-bottom: 8px;
}
.random-pick-item {
  flex: 0 0 auto;
  width: 160px;
}
.random-pick-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}

/* ===============================
   ▼ その他スタイル
================================ */
.load-more-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.load-more-button {
  padding: 10px 20px;
  background: #f1f1f1;
  border: 1px solid #ccc;
  border-radius: 9999px;
  color: #333;
  cursor: pointer;
  transition: 0.2s;
}
.load-more-button:hover {
  background-color: #e2e2e2;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.copyright-note {
  font-size: 0.85em;
  color: #999;
  text-align: center;
  margin: 2em 0 1em;
  padding: 0.5em;
  line-height: 1.6;
}

.random-pick-scroll {
  min-height: 200px; /* 画像が最低1つある時の高さに合わせる */
}


