/* ▼ #kairosNote 全体レイアウト */
#kairosNote {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px 20px 40px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue",
               "Segoe UI", "Yu Gothic", "YuGothic", "Hiragino Kaku Gothic ProN",
               "Meiryo", sans-serif;
  color: #333333;
  line-height: 1.7;
}

/* PC で横幅が広いとき余白を少し増やす */
@media (min-width: 1024px) {
  #kairosNote {
    padding: 32px 40px 48px;
  }
}

/* ▼ タイトル（SpaceONE社 カイロスロケット…） */
#kairosNote h2,
#kairosNote h1 {
  margin: 0 0 24px;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #333333;
  border-left: 6px solid #c0392b; /* Bistro ISAKI の赤系イメージ */
  padding-left: 12px;
}

/* ▼ 日付＋イベントの行全体 */
#kairosNote .event {
  display: grid;
  grid-template-columns: 110px 1fr;
  column-gap: 16px;
  row-gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid #e3e3e3;
}

#kairosNote .event:first-of-type {
  border-top: 1px solid #e3e3e3;
}

/* スマホでは縦並びに */
@media (max-width: 599px) {
  #kairosNote .event {
    grid-template-columns: 1fr;
  }
}

/* ▼ 日付部分（例: 2024.12.14） */
#kairosNote .event-date {
  font-size: 0.9rem;
  color: #777777;
  white-space: nowrap;
}

/* ▼ イベント本文（タイトル、画像など） */
#kairosNote .event-body {
  font-size: 0.95rem;
}

/* ▼ イベント名リンク */
#kairosNote .event-body a {
  color: #005b9f;
  text-decoration: none;
  font-weight: 600;
}
/* ▼ event-body の背景色をアニメーション可能にする */
#kairosNote .event {
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
  border-radius: 6px;
  padding: 4px 6px;
}

/* ▼ a に hover したら event-body 全体が変化 */
#kairosNote .event:has(a:hover) {
  background-color: #f0f6ff;
  box-shadow: 0 2px 8px rgba(0, 80, 160, 0.15);
}


#kairosNote .event-body a:hover {
  text-decoration: underline;
}

/* ▼ イベント画像 */
#kairosNote .event-body img {
  display: block;
  margin-top: 8px;
  max-width: 512px;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 1024px) {
    #kairosNote .event-body img {
        justify-self: center;
        max-width: 90%;
    }
    #kairosNote .event-body blockquote {
        justify-self: center;
    }
}

/* ▼ オーバーレイ全体 */
#image-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* ▼ 表示状態 */
#image-preview-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ▼ プレビュー画像 */
#image-preview-overlay img {
  max-width: 95vw;
  max-height: 95vh;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: zoomIn 0.25s ease;
}

/* ▼ ズームアニメーション */
@keyframes zoomIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ▼ 「ついに伊咲亭が…」などのリード文がある場合 */
#kairosNote .lead-text {
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: #444444;
}

/* ▼ 著作権表記 */
#kairosNote .copyright {
  margin-top: 32px;
  font-size: 0.8rem;
  color: #999999;
  text-align: center;
}

/* ▼ 小さめの SNS / 補足リンク */
#kairosNote .sub-links {
  margin: 8px 0 16px;
  font-size: 0.85rem;
}

#kairosNote .sub-links a {
  color: #888888;
  text-decoration: none;
}

#kairosNote .sub-links a:hover {
  text-decoration: underline;
}

/* ▼ 画像やボタン風バナーを横並びにしたいとき */
#kairosNote .banner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

#kairosNote .banner-links a img {
  display: block;
  height: auto;
  max-height: 40px;
}
