body {
  margin: 0;
  padding: 0;
  padding-top: 100px;

}


#nishikokousyo {
  position: absolute;
  top: 0.5%;
  left: 0.5%;
  width: 50px;
}

#title {
  text-align: center;
}

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);
}

#nishikosai {
  /* 中央に配置 */
  font-size: 2.5em;
  font-family: "Zen Antique", serif;
  font-weight: 900;
  font-style: normal;
  margin: 0;
  top: -10px;
  text-align: center;
  height: 70px;



}

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

  .logo {
    top: 0;
  }

  body {
    padding-top: 70px;
  }

}

.photo {
  max-width: 100%;
  height: auto;
  display: block;
}

.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: #ffffff;
  /* 文字を白に */
  padding: 20px;
  text-align: center;
  border-top: 2px solid white;
  /* 上の境界線を白 */
  margin-top: 0;
  /* 余計な隙間をなくす */
}



#bottom-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;

}

/* index 画像を並べるコンテナ */
.index-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  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);
  }
}

/* 通知リストのアイテム */
.notification-item {
  padding: 0.6em;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}

.notification-item:hover {
  background: #f5f5f5;
}

/* 詳細モーダル */
#notificationDetailModal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
}

#notificationDetailModal.show {
  display: block;
}

#notificationDetailModal .meta {
  font-size: 0.85em;
  color: #666;
  margin-top: 1em;
}

/* 通知リストのマーカーを消す */
#notificationList {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#notificationList li {
  padding: 0.6em;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

#notificationList li:hover {
  background: #f5f5f5;
}

/* 通知サムネイル */
.notification-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 56px;
}

/* メッセージ表示 */
#admin #n-msg {
  margin-top: 0.8em;
  font-size: 0.9em;
  color: #d00;
  text-align: center;
}

/* モーダル共通 */
.modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: #fff;
  border-left: 1px solid #ccc;

  transform: translateX(100%);
  /* 初期状態は画面外 */
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
}

/* モーダル内のボタンを縦一列に */
.modal button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  border-radius: 4px;
  text-align: center;
}


/* 表示状態 */
.modal.show {
  transform: translateX(0);
}

/* 🔔 通知ボタン（右上配置） */
#header-menu {
  position: fixed;
  top: 20px;
  /* 上からの距離 */
  right: 20px;
  /* 右からの距離 */
  z-index: 1100;
  /* ヘッダーより前に出す */
}

#notificationBtn {
  background: none;
  border: none;
  font-size: 28px;
  /* アイコンを大きく */
  cursor: pointer;
  position: relative;
  color: white;
  /* 白文字（ヘッダー上に映える） */
}

#settingsBtn {
  background: none;
  border: none;
  font-size: 28px;
  /* アイコンを大きく */
  cursor: pointer;
  position: relative;
  color: #ffffff;

}

#settingsBtn:hover {
  color: #6d6d6d;
}

@media (max-width:768px) {
  #header-menu {
    top: 10px;
    right: 10px;
    font-size: 15px;
  }

  #notificationBtn,
  #settingsBtn {
    font-size: 23px;
    padding: 1px;
  }
}


.live-section {
  margin: 20px auto;
  width: 90%;
  max-width: 600px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  font-family: sans-serif;
}

.live-header {
  background: #333;
  color: #fff;
  padding: 8px 15px;
  font-size: 0.9em;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-dot {
  width: 10px;
  height: 10px;
  background: #ff4d4d;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }

  100% {
    opacity: 1;
  }
}

.match-card {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.match-card:last-child {
  border-bottom: none;
}

.match-info .status-label {
  font-size: 0.7em;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 5px;
}

.status-now {
  background: #ffeded;
  color: #ff4d4d;
  border: 1px solid #ff4d4d;
}

.status-soon {
  background: #eef9ff;
  color: #007bff;
  border: 1px solid #007bff;
}

.match-title {
  font-weight: bold;
  display: block;
  margin-top: 5px;
}

.match-time {
  font-size: 0.85em;
  color: #666;
}

#statusBannerContainer {
  width: 90%;
  max-width: 600px;
  margin: 10px auto;
  font-family: sans-serif;
}

.status-banner {
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.status-banner.green {
  background-color: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #389e0d;
}

.status-banner.red {
  background-color: #fff1f0;
  border: 1px solid #ffa39e;
  color: #cf1322;
}

.status-banner .category-name {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 10px;
}