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);
  /* 半透明 */
}

.header-left {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.logo {
  position: absolute;
  top: auto;
  left: 1%;
  width: 60px;
  ;
  padding: 5px;
  top: 10px;
}



#nishikosai {
  /* 中央に配置 */
  font-size: 2.5em;
  font-family: "Zen Antique", serif;
  font-weight: 400;
  font-style: normal;
  margin: 0;

  top: -10px;
  text-align: center;
  height: 80px;


}

@media (max-width: 768px) {
  header {
    height: 70px;
    padding: 10px 0;
  }

  .logo {
    top: 0;
  }

  body {
    padding-top: 70px;
  }

}

.maintext {
  font-size: xx-large;
  font-weight: bolder;
  text-align: center;
  margin-top: 20px;
}

#subtext {
  text-align: center;
}

#contents {
  text-align: center;
}

.index-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* PC: 横12枚 */
  gap: 10px;
  justify-items: center;
}

/* 画像サイズ調整 */
.index-container img {
  width: 100%;
  /* グリッドに合わせて可変 */
  height: auto;
  max-width: 300px;
  /* 最大幅制限 */
}

/* スマホ表示時（幅768px以下） */
@media (max-width: 768px) {
  .index-container {
    grid-template-columns: repeat(5, 1fr);
    /* スマホ: 横6枚 */
  }
}

/* 全体の基本設定 */
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;
}

/* 管理者用フォーム */
#admin {
  max-width: 600px;
  margin: 20px auto;
  padding: 15px 20px;
  border: 2px solid #3498db;
  border-radius: 8px;
  background: #f0f8ff;
}

#admin h2 {
  margin-top: 0;
  color: #3498db;
}

#admin label {
  display: block;
  margin: 10px 0;
  font-weight: bold;
}

#admin input[type="text"],
#admin textarea,
#admin input[type="file"] {
  width: 100%;
  padding: 8px;
  margin-top: 4px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#admin button {
  margin-top: 10px;
  padding: 10px 20px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#admin button:hover {
  background: #2980b9;
}

#l-msg {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #e74c3c;
}

/* 一般向け一覧 */
#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;
}

.lost-item p {
  margin: 5px 0;
}

.lost-item .small {
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

.googlemap {

  right: 3%;
  size: 60%;
  color: white;
}

#footer {
  background-color: rgb(44, 44, 65);
  color: white;
  font-family: HG正楷書体-PRO;
}



footer {
  background-color: rgb(44, 44, 65);
  /* 背景を濃紺 */
  color: white;
  /* 文字を白に */
  padding: 20px;
  text-align: center;
  border-top: 2px solid white;
  /* 上の境界線を白 */
  margin-top: 0;
  /* 余計な隙間をなくす */
}



#botton-sentence {
  bottom: 0.1%;
  text-align: center;
}

.map {
  text-align: center;
  color: white;

}

.link {
  color: white;
  text-align: center;
}

.about-us {
  text-align: center;
}

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;

}

/* モーダル背景 */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
}

/* モーダル内の画像 */
.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
}

/* キャプション */
#caption {
  margin: 15px auto;
  text-align: center;
  color: #fff;
  font-size: 16px;
}

/* 閉じるボタン */
.close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #bbb;
}