@charset "UTF-8";

li {
  list-style: none; /* リストのスタイルを無効化 */
}

header,
main,
footer {
  width: 100%;
  max-width: 1200px;
  margin: auto;
}

body {
  margin: 20px;
  text-align: center;
  font-size: 15px;
  font-family: "Noto Sans JP", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 400;
  line-height: 1.3em;
  background-color: #fcfcfc;
  overflow-y: scroll;
}

header {
  margin-top: 50px;
  margin-bottom: 34px;
}

h1 {
  margin-bottom: 23px;
}

.menu a {
  color: #a9a9a9;
  transition: color 0.3s;
  text-decoration: none;
}

.menu a:hover {
  color: black;
}

.menu .current-page {
  color: black;
}

.menu {
  text-align: center;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 1px;
  font-family: 'Noto Sans JP', sans-serif;
  display: inline;
  margin: 5px;
}

main {
  margin-top: 22px;
  margin-bottom: 30px;
  text-align: center;
  overflow: hidden;
  width: 70%;
}

#loading {
  text-align: center;
  position: absolute;
  width: 60px;
  height: 60px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: auto;
  opacity: 0.2;
}

#loading p {
  text-align: center;
  font-size: 60px;
}

#gallery {
  margin: 0 auto;
  overflow: hidden;
  width: 100%;
  position: relative;
  padding-left: 0;
  transition: opacity 0.3s;
  opacity: 0;
  max-height: 100vh;
  box-sizing: border-box;
}

#gallery.on {
  opacity: 1;
  max-height: 100%;
}

#gallery li {
  display: inline;
}

#gallery li img {
  width: 100%;
  height: auto;
  margin: 3px;
  border: 1px #808080 solid;
}

.photo-box {
  width: 94px;
  /* 画像の幅調整 */
}

.photo-box .circumscribed-photo-box-hidden {
  width: 100%;
  position: relative;
}

.photo-box .gallery-item-image {
  border: 1px #686868 solid;
  width: 100%;
  height: 0;
  margin: 0 0 13px;
  padding-top: 94px;
  /* 画像の高さ調整 */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.photo-box .mask {
  position: absolute;
  width: 96px;
  height: 0;
  padding-top: 96px;
  /* 画像の高さ調整をした場合は、こちらも同じ値に変更 */
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
}

.photo-box .mask-text {
  position: absolute;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  font-size: 0.8em;
  color: #fff;
  text-align: center;
  letter-spacing: 1.5px;
  font-weight: 400;
}

.photo-box .mouse-over-mask {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 0.5s ease;
}

.photo-box :hover .mouse-over-mask {
  opacity: 1;
}


#caption1 {
  text-align: center;
  background-color: #fcfcfc;
  color: #bdbdbd;
  font-size: 0.9em;
  letter-spacing: 2px;
  font-weight: 400;
  margin-top: 5px;
  margin-bottom: 0;
  line-height: 1.5em;
}

#caption2 {
  text-align: center;
  background-color: #fcfcfc;
  font-size: 15px;
  letter-spacing: 2px;
  font-family: "Noto Sans JP", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 400;
  margin-top: 20px;
  margin-bottom: 50px;
}

.reload {
  appearance: none;
  border: 0;
  border-radius: 6px;
  background: #e6e6e6;
  color: #666666;
  padding: 6px 13px;
  font-size: 13px;
  margin-bottom: 10px;
}

#footer {
  margin-top: 30px;
  margin-bottom: 30px;
}

/* --- 【追加】タグフィルターのスタイル --- */
#filter-container {
    margin-bottom: 30px; /* ギャラリーとの間に余白 */
    text-align: center;
}

#tags-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* ボタンを横並びに */
    justify-content: center;
    flex-wrap: wrap; /* 画面幅が狭い場合は折り返す */
}

.tag-button {
    cursor: pointer;
    padding: 6px 12px;
    margin: 5px;
    border: 1px solid #a9a9a9;
    border-radius: 4px;
    display: inline-block;
    color: #a9a9a9;
    font-size: 14px;
    transition: all 0.2s ease;
}

.tag-button:hover {
    background-color: #f0f0f0;
}

.tag-button.is-active {
    background-color: #333; /* 選択中のタグの色 */
    color: white;
    border-color: #333;
}

/* --- 【追加】フィルタリングで非表示にするアイテムのスタイル --- */
/* Masonryは display: none の要素をレイアウトから除外します */
.item.hidden {
    display: none !important;
}


#notification-prompt-container {
    /* 画面の右上に固定 */
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 1000; /* 他の要素より手前に表示 */
    
    /* 背景と角丸で目立たない小さなバッジ風に */
    background-color: #e0e0e0;
    border-radius: 4px;
    padding: 2px 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    
    /* 初期状態は display: none; はHTML側で設定済み */
}

#notification-prompt-container button {
    /* ボタンの共通スタイル */
    appearance: none;
    border: none;
    cursor: pointer;
    margin: 0;
    padding: 3px 6px; /* 小さなパディング */
    font-size: 11px; /* 小さなフォント */
    font-weight: 500;
    line-height: 1;
    border-radius: 3px;
    transition: background-color 0.2s;
}

#notification-subscribe-button {
    background-color: #5cb85c; /* 緑系の色で「許可」を促す */
    color: white;
}

#notification-subscribe-button:hover {
    background-color: #4cae4c;
}

#notification-dismiss-button {
    background-color: transparent; /* 透明で目立たせない */
    color: #555;
    margin-left: 5px;
}

#notification-dismiss-button:hover {
    background-color: #d0d0d0;
}




/* --- iOSインストールガイドのスタイル --- */

/* ガイド全体（画面全体を覆うオーバーレイでもOKですが、今回は吹き出し風にします） */
#ios-install-guide {
    position: fixed;
    top: 50px; /* ボタンの下あたり */
    right: 10px;
    width: 260px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1100;
    padding: 15px;
    text-align: left;
    font-size: 13px;
    color: #333;
}

#ios-install-guide p {
    margin-bottom: 10px;
    line-height: 1.4;
    text-align: left; /* 左寄せ */
}

#ios-install-guide strong {
    font-weight: bold;
    color: #000;
}

#close-ios-guide {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 5px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 共有アイコンの代用（必要に応じて画像に置き換えてください） */
/* ここではMaterial Design Iconの文字コードを使うか、簡易的に表現 */




@media only screen and (max-width: 720px) {
  header img {
    width: 95%;
    height: auto;
    align-content: center;
  }

  main {
    width: 95%;
  }
}

