/* ===== 全体・フォント設定 ===== */
body {
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-weight: 400;
  font-style: normal;
  margin: 20px;
}

h1 {
  font-family: "Yusei Magic", sans-serif;
  font-weight: 400;
  font-style: normal;
  text-align: center;
}

/* ===== コンテナ設定 ===== */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  /* display: flex; */
  /* flex-wrap: wrap; */
  /* justify-content: center; /* タイルを中央から配置 */
  gap: 10px; /* タイル間の隙間 */
  padding: 10px;
}

/* ===== タイル設定 ===== */
.tile {
  text-align: center;
  /* 画像サイズに合わせて幅を調整 */
  width: 100px;
}

.tile a {
  text-decoration: none;
  color: inherit;
}

.tile img {
  /* 写真切り抜き */
  width: 80px;
  height: 80px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  /* 中央揃え */
  display: block;
  margin: 0 auto;
  /* 影をつけて少し立体的に */
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
}

.tile-title {
  margin-top: 8px;
  font-weight: bold;
  /* 画像サイズに合わせて文字サイズを調整 */
  font-size: 12px;
}

/* ===== 検索フォーム ===== */
.search-container {
  text-align: center;
  margin: 20px 0;
}

#search-input {
  width: 80%;
  max-width: 400px;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: "M PLUS Rounded 1c", sans-serif; /* フォントを合わせる */
}

/* ===== ページネーション ===== */
.page-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* ボタンが多い場合に折り返す */
  gap: 8px;
  padding: 16px;
}

.page-nav a,
.page-nav .current {
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  text-decoration: none;
  background-color: #eee;
  color: #333;
  transition: background-color 0.2s;
}

.page-nav a:hover {
  background-color: #ddd;
}

.page-nav .current {
  background-color: #333;
  color: #fff;
  pointer-events: none; /* クリックできないようにする */
}
