/* モーダルウィンドウの基本的なスタイル */
.sirniors-modal {
  display: none;
  /* 初期状態では非表示 */
  position: fixed;
  /* 画面に固定 */
  z-index: 1000;
  /* 他の要素より手前に表示 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  /* 内容が多い場合にスクロール可能にする */
  background-color: rgba(0, 0, 0, 0.6);
  /* 半透明の背景 */
  padding-top: 60px;
  /* モーダルコンテンツの上部マージン */
}

/* モーダルコンテンツのスタイル */
.sirniors-modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  /* 上下5%、左右自動で中央寄せ */
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  /* モーダルの幅 */
  max-width: 1050px;
  /* 最大幅 */
  border-radius: 8px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  position: relative;
}

/* 閉じるボタンのスタイル */
.sirniors-modal-close-button {
  color: #a7a7a7;
  /* 背景色に合わせて白に変更 */
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 15px;
  /* 位置調整 */
  right: 25px;
  /* 位置調整 */
}

.sirniors-modal-close-button:hover,
.sirniors-modal-close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* モーダル内の見出し */
.sirniors-modal-content h2 {
  margin-top: 0;
  color: #fff;
  /* 白文字に変更 */
  background-color: #011B6A;
  /* 青い背景色を追加 */
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  padding-left: 10px;
  /* 文字と背景の間に余白を追加 */
  padding-top: 10px;
  /* 文字と背景の間に余白を追加 */
}

/* モーダル本文のスタイル */
.sirniors-modal-body {
  padding-top: 10px;
  line-height: 1.6;
  color: #333;
}

.sirniors-modal-body p,
.sirniors-modal-body ol {
  margin-bottom: 15px;
}

.sirniors-modal-body ol {
  padding-left: 20px;
}

.sirniors-modal-body li {
  margin-bottom: 10px;
}

/* pタグ内のstrongタグ（見出し）のスタイル */
.sirniors-modal-body p strong {
  font-weight: bold;
  color: #011B6A;
  /* 青色 */
}

/* liタグ内のstrongタグ（小見出し）のスタイル */
.sirniors-modal-body li strong {
  font-weight: bold;
}

/* リンクのスタイル */
.sirniors-modal-link {
  color: #007bff;
  /* リンクの色 */
  text-decoration: underline;
  /* 下線 */
  cursor: pointer;
  /* カーソルをポインターに */
}

.sirniors-modal-link:hover {
  color: #0056b3;
  /* ホバー時の色 */
}


/* スマートフォン向けの調整 */
@media screen and (max-width: 768px) {
  .sirniors-modal-content {
    width: 90%;
    margin: 10% auto;
  }

  .sirniors-modal-close-button {
    top: 5px;
    right: 15px;
    font-size: 24px;
  }

  .sirniors-modal-content h2 {
    font-size: 1.5em;
  }
}