body {
  margin: 0;
  font-family: sans-serif;
  padding-top: 100px;
  /* ヘッダー高さ分 */

}

header {
  position: fixed;
  /* スクロールしても固定 */
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: #4cafef;
  /* 初期は不透明 */
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: background 0.3s ease;
  /* 背景色をなめらかに変化 */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

header.scrolled {
  background: rgba(76, 175, 239, 0.8);
  /* 半透明 */
}

.logo {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 50px;
  transform: translateY(-50%);
}



#nishikosai {
  font-size: 2.5em;
  font-family: "Noto Sans JP", "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-style: normal;
  margin: 0;
  top: -10px;
  text-align: center;
  height: 70px;


}

@media (max-width: 768px) {
  header {
    height: 60px;
    padding: 5px 0;
  }

  .logo {
    width: 40px;
    top: 50%;
    transform: translateY(-50%);
    left: 8px;
  }

  #nishikosai {
    font-size: 1.5em;
    height: 50px;
    line-height: 50px;
  }

  body {
    padding-top: 60px;
  }

}

.maintext {
  font-size: xx-large;
  font-weight: bolder;
  text-align: center;
  margin-top: 20px;
}

#subtext {
  text-align: center;
}

@media (max-width: 768px) {
  .maintext {
    font-size: 1.5em;
    margin-top: 12px;
  }

  #subtext {
    font-size: 0.85em;
  }
}


/* 全体の基本設定 */
body {
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  margin: 0;
  background: #fafafa;
  color: #333;
  line-height: 1.6;
}

h1.maintext {
  text-align: center;
  margin: 20px 0;
  font-size: 2rem;
  color: #000000;
}

h2#subtext {
  text-align: center;
  color: #666;
  margin: 10px 0 30px;
}



/* 一般向け一覧 */
#lost-list {
  max-width: 800px;
  margin: 30px auto;
  padding: 0 15px;
}

.lost-item {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.lost-item h3 {
  margin: 0 0 10px;
  color: #2c3e50;
}

.lost-item img {
  display: block;
  max-width: 200px;
  margin: 10px 0;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lost-item img:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.lost-item p {
  margin: 5px 0;
}

.lost-item .small {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}


h2 {
  display: block;
  font-size: 1.5em;
  margin-block-start: 0.83em;
  margin-block-end: 0.83em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
  unicode-bidi: isolate;

}

/* モーダル背景 */
#lostItemsImgModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  padding: 18px;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
}

#lostItemsImgModal.is-open {
  display: flex;
}

.image-modal__frame {
  width: min(100%, 1400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* モーダル内の画像 */
.modal-content {
  display: block;
  max-width: min(96vw, 1280px);
  max-height: min(90vh, 900px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

/* キャプション */
#caption {
  text-align: center;
  color: #fff;
  font-size: 17px;
  line-height: 1.5;
  max-width: min(96vw, 1100px);
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* 閉じるボタン */
.close {
  position: fixed;
  top: 18px;
  right: 18px;
  color: #fff;
  font-size: 46px;
  font-weight: bold;
  cursor: pointer;
  pointer-events: auto;
  z-index: 2001;
  line-height: 1;
  user-select: none;
  background: transparent;
  border: 0;
  padding: 0;
}

.close:hover {
  color: #bbb;
}

@media (max-width: 768px) {
  #lostItemsImgModal {
    padding: 20px 12px 36px;
  }

  .close {
    top: 12px;
    right: 12px;
    font-size: 32px;
  }

  #caption {
    font-size: 14px;
  }
}