@charset "UTF-8";
body {
  /* フォント */
  font-family: "M PLUS 1p", sans-serif;
  font-weight: 400;
  font-style: normal;
  /* 背景色 */
  background-color: #EFEFEF;
  /* レイアウト */
  margin: 0;
  padding: 0;
  display: block;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.8s ease; /* ふわっと表示アニメーションの設定 */
  min-width: 320px; /* ウィンドウの最小幅を320pxに設定 */
  flex-wrap: wrap;
  /* テキスト選択禁止 */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body.fade-in {
  opacity: 1;
}

.container {
  width: 70%;
  max-width: 700px;
  margin-top: 70px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px; /* ロゴとタイトル間のスペースを調整 */
  transition: all 0.3s ease; /* スムーズな変更 */
}

.logo {
  text-align: center;
  flex-shrink: 0; /* アイコンの幅が縮小しないように */
  margin-right: 50px;
  transform: translateY(-7px); /* Y軸方向に微調整 */
  transition: all 0.3s ease; /* スムーズな変更 */
}

.logo img {
  width: 167.5px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.title {
  flex-grow: 1; /* タイトル部分が残りのスペースを埋める */
  max-width: calc(100% - 167.5px); /* ロゴの幅を引いた分だけ広がる */
}

.title-content {
  display: flex;
  align-items: center;
  justify-content: space-between; /* 両端揃え */
  max-width: 500px; /* タイトル全体の幅調整 */
  margin: 0 auto; /* 中央に配置 */
  padding: 10px 0;
}

/* タイトルテキストの左揃え */
.titleleft {
  text-align: left;
}

/* 「にしゅ～」のスタイル */
.titleleft h1 {
  margin: 0;
  font-size: 24px;
}

/* 「nishu」のスタイル */
.titleleft span {
  font-size: 16px;
  padding: 0px 2px;
  color: #666;
}

.titleright {
  width: 60px; /* アイコンのサイズ */
  height: 60px;
  border-radius: 50%; /* 丸くする */
  -o-object-fit: cover;
     object-fit: cover;
}

.title hr {
  border-width: 0; /* 線を完全に消す */
  margin: 0; /* 不要な余白を削除 */
}

/* アイコンのスタイル */
.icons-wrapper {
  display: flex;
  flex-wrap: nowrap; /* 改行を防ぐ */
  gap: 40px; /* 要素間の間隔 */
  justify-content: center; /* 中央揃え */
  position: relative;
  padding: 1.5rem 0;
}

.icons-wrapper:after {
  position: absolute;
  top: 0; /* 上部に配置 */
  left: 0;
  width: 100%;
  height: 10px;
  content: "";
  background-image: repeating-linear-gradient(-45deg, #000, #000 1px, transparent 2px, transparent 5px);
  background-size: 7px 7px;
  backface-visibility: hidden;
}

.icons {
  flex-wrap: nowrap; /* 改行を防ぐ */
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 5px;
  justify-content: flex-start; /* アイコンを左揃え */
  transition: all 0.3s ease; /* スムーズな変更 */
}

.icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: black;
  transition: transform 0.2s ease; /* スムーズなアニメーション */
}

.icon {
  width: 50px;
  height: 50px;
  transition: transform 0.2s ease; /* スムーズなアニメーション */
}

/* ホバー時に画像をぴょんと跳ねさせる */
.icon-link:hover .icon {
  transform: translateY(-4px); /* 上に4px移動 */
}

.icon-link span {
  margin-top: 5px;
  font-size: 14px;
  font-weight: bold;
}

/* 過去頒布物 */
.content {
  margin-top: 20px;
  justify-content: space-between;
}

.filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.filter h2 {
  font-size: 16px;
}

.past-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* カードの最小幅を150pxに指定 */
  gap: 10px; /* カード間の間隔 */
  justify-items: center; /* 各サムネイルを中央揃え */
  justify-content: center; /* 全体を中央揃え */
  transition: width 0.3s ease; /* 幅の変化を滑らかに */
}

/* ボタンのスタイル */
.past-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* サムネイルの最小幅を150pxに指定 */
  gap: 20px; /* サムネイル間の間隔 */
  margin: 0 auto; /* コンテナを中央寄せ */
  justify-items: center; /* サムネイルを中央揃え */
}

.item {
  width: 167.5px; /* 1つのアイテムの幅 */
  height: 167.5px; /* 正方形に固定 */
  background-color: #231815;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px; /* 角丸 */
  border: 2px solid #231815; /* 枠線 */
}

.past-items .item.hide {
  display: none; /* 非表示にするクラス */
}

/* トリガー画像ボタンのスタイル */
.item img {
  width: 120%;
  height: auto;
  cursor: pointer;
  border-radius: 8px;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease; /* フィルターのアニメーション */
}

.item:hover img {
  transform: scale(1.05);
  filter: brightness(0.8) contrast(1.5); /* 色フィルターの適用 */
}

/* モーダルウィンドウのスタイル */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* 背景を半透明の黒に */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal img {
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.modal.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 40px;
  border-radius: 8px;
  width: 80%;
  max-width: 800px;
  text-align: left;
  position: relative;
  transform: scale(0.95); /* 初期状態で少し縮小 */
  opacity: 0; /* 初期状態で透明 */
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: flex; /* 横並びにする */
  gap: 60px; /* 画像とテキストの間にスペースを追加 */
  align-items: flex-start;
}

.modal.show .modal-content {
  transform: scale(1); /* 元のサイズに戻す */
  opacity: 1;
}

.modal-content h2 {
  font-size: 20px;
  margin-top: 0;
}

.modal-content p {
  font-size: 16px;
  margin-top: 0;
}
.modal-content p span {
  font-size: 12px;
  color: #595959;
}

.links a {
  display: block;
  margin-top: 10px;
  color: #231815;
  text-decoration: none;
  font-weight: bold;
}

.links a:hover {
  text-decoration: underline;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}

footer {
  margin-top: 100px;
  color: #231815;
  text-align: center;
  font-size: 14px;
}

@media (max-width: 960px) {
  .past-items {
    grid-template-columns: repeat(3, 1fr); /* 3列の設定 */
    width: 90%; /* 3列時の幅調整 */
  }
}
@media (max-width: 827px) {
  .past-items {
    grid-template-columns: repeat(2, 1fr); /* 2列の設定 */
    width: 70%; /* 2列時の幅調整 */
  }
}
@media (max-width: 730px) {
  .logo {
    flex: 0 0 auto; /* ロゴの幅を固定 */
    margin-right: 20px; /* 必要に応じて調整 */
  }
  .header {
    gap: 0px; /* ロゴとタイトル間のスペースを調整 */
  }
  .icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    justify-content: flex-start; /* アイコンを左揃え */
  }
  .slideshow-container {
    width: 40px; /* 角丸四角の幅を縮小 */
  }
  .icons-wrapper {
    gap: 20px; /* 要素間の間隔 */
  }
}
@media (max-width: 600px) {
  /* header 全体のレイアウト変更 */
  body {
    overflow-y: scroll;
  }
  .header {
    flex-direction: column; /* 縦並びに */
    align-items: center;
  }
  .container {
    width: 80%;
    max-width: 400px;
    margin-top: 30px;
  }
  /* タイトルとアイコンの位置調整 */
  .title-content {
    flex-direction: column; /* タイトルとアイコンを縦並びに */
    align-items: center;
    text-align: center;
    gap: 5px; /* タイトルとアイコンの間のスペースを詰める */
  }
  .titleleft {
    text-align: center; /* にしゅ～ と nishu を中央揃え */
  }
  /* ソーシャルメディアアイコンの配置 */
  .icons-wrapper {
    flex-wrap: wrap; /* 要素を折り返す */
  }
  .icons {
    display: flex;
    justify-content: center;
    gap: 20px; /* アイコン間のスペース */
  }
  .slideshow-container {
    flex-basis: 100%; /* 横幅全体を占める */
    margin-top: 0px; /* 上部に余白を追加 */
    width: 200px !important; /* 強制的に幅を200pxに指定 */
    height: 40px !important; /* 強制的に高さを20pxに指定 */
  }
  .logo {
    position: absolute; /* 左上に配置 */
    top: 45px;
    left: 20px;
    width: 50px; /* ロゴサイズを縮小 */
    height: auto; /* アスペクト比を維持 */
    margin: 0; /* 余白を削除 */
    z-index: 1000; /* 前面に表示 */
  }
  /* ロゴの大きさを小さく */
  .logo img {
    width: 63px; /* 画面幅が狭いときのロゴサイズ */
    height: auto;
    margin-top: 0; /* 上部余白 */
  }
  .titleleft span {
    padding: 0px;
  }
  .past-items {
    grid-template-columns: repeat(2, 1fr); /* 2列の設定 */
    width: 70%; /* 2列時の幅調整 */
  }
  .filter {
    display: flex;
    align-items: center;
    justify-content: space-between; /* 両端揃え */
    width: 100%;
    margin-bottom: 10px;
  }
  .filter h2 {
    margin: 0; /* 見出しの余白を調整 */
  }
  .filter select {
    margin: 0; /* プルダウンの余白を調整 */
  }
  .modal-content {
    flex-direction: column; /* 縦並びに変更 */
    align-items: center; /* 中央揃え */
    text-align: left; /* テキストを中央揃え */
    gap: 20px;
  }
  .modal-content a {
    margin: 10px 10px;
  }
  .modal-content br {
    margin: 0;
  }
  .modal-content img {
    max-width: 150px; /* 幅を固定して画像サイズを小さく保つ */
    height: auto; /* 高さはアスペクト比を維持 */
    -o-object-fit: contain;
       object-fit: contain; /* トリミングを防止し、画像全体を表示 */
  }
  .modal-content h2, .modal-content p {
    margin: 0 10px; /* テキストに左右の余白を追加 */
  }
}/*# sourceMappingURL=style.css.map */