
/* ===============================
   共通レイアウト・ベーススタイル
=============================== */
body {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1rem 4rem;
  font-family: "Noto Sans JP", sans-serif;
  background-color: #f9f9f9;
  color: #333;
  letter-spacing: 0.03em;
}

@media (max-width: 600px) {
  body {
    padding: 1rem 0.8rem 3rem;
  }
}

/* ===============================
   タイポグラフィ
=============================== */
h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid #444;
}

h2.event-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: #0078d7;
}

a {
  color: #0078d7;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ボタンや戻るボタンなど、下線不要なリンク */
a.btn-register,
a.toggle-link,
a.back-to-top {
  text-decoration: none !important;
}

.event-label {
  font-weight: 600;
  color: #444;
  margin-right: 0.3rem;
}

.event-detail {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.2rem 0;
  color: #555;
}

/* ===============================
   イベント表示エリア
=============================== */
.event-details {
  font-size: 1.1em;
  background-color: #fff;
  border-left: 6px solid #005a9e;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  margin-bottom: 1rem;
}

.event-details-collapsed {
  display: none;
}

/* ===============================
   状態・強調表示
=============================== */
.event-remaining {
  font-size: 1.5em;
  font-weight: bold;
  color: #d9534f;
}

.urgent-event,
.new-event {
  font-weight: bold;
  color: red;
}
@keyframes slow-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.urgent-event {
  animation: slow-blink 2s ease-in-out infinite;
}

/* ===============================
   区切り・装飾
=============================== */
hr {
  border: 1px solid #444;
}

/* ===============================
   ボタン・リンク
=============================== */
.register-link {
  text-align: center;
  margin: 1.5em 0;
}

.btn-register {
  display: inline-block;
  padding: 1.2em 2.4em;
  font-size: 1.5rem;
  font-weight: 700;
  background-color: #0057b7;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease;
}

.btn-register:hover {
  background-color: #003f7d;
}

a.toggle-link {
  display: inline-block;
  margin: 10px 0;
  padding: 0.5em 1em;
  font-size: 0.95rem;
  font-weight: bold;
  background-color: #007acc;
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

a.toggle-link:hover {
  background-color: #005fa3;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ===============================
   ツールチップ
=============================== */
.tooltip {
  position: absolute;
  display: none;
  max-width: 300px;
  padding: 8px 12px;
  font-size: 0.9em;
  color: #fff;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 4px;
  pointer-events: none;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ===============================
   フッター
=============================== */
footer {
  background-color: #fff8e1;
  padding: 1.5rem 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #444;
  white-space: pre-wrap;
  user-select: text;
}

footer p {
  margin: 0;
}

/* ===============================
   更新履歴
=============================== */
#update-history {
  background-color: #f9f9f9;
  color: #333;
}

#update-history h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid #666;
  color: #222;
}

#update-history ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

#update-history > ul > li {
  font-weight: 700;
  margin-bottom: 0.8rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #ccc;
  color: #222;
}

#update-history ul ul {
  list-style: circle;
  padding-left: 1.5rem;
  margin-top: 0.3rem;
  font-weight: 400;
  color: #444;
}

#update-history ul ul li {
  margin-bottom: 0.3rem;
  line-height: 1.4;
}

#update-history li:last-child {
  margin-bottom: 0;
}

/* ===============================
   トップへ戻るボタン
=============================== */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 1.25em;
  padding: 0.5em 0.75em;
  background-color: #333;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  opacity: 0.7;
  z-index: 1000;
  transition: opacity 0.3s, background-color 0.3s;
}

.back-to-top:hover {
  opacity: 1;
  background-color: #555;
  text-decoration: none;
}

/* ===============================
   Event Index 関連
=============================== */
.event-index-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  background-color: #ffff99;
  gap: 1rem;
  flex-wrap: wrap;
  /* margin-bottom: 1em; */
  border-radius: 6px;
  padding: 10pt;
}

details.event-index {
  flex: 1;
  min-width: 200px;
  background-color: #fff;
  border-radius: 6px;
  padding: 0.5em;
  transition: background-color 0.3s ease;
  margin-bottom: 0.5em;
}

.event-index summary {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  padding: 0.25em 0;
  list-style: none;
  display: block;
}

.event-index summary:hover {
  text-decoration: underline;
}

.gray-background {
  background-color: #e0e0e0;
}

.event-summary-title{
  font-weight: bold;
}
.event-organizer{
  font-size: 0.8rem;
}