@charset "UTF-8";

/* =========================================================
   OSHIRASE PAGE
========================================================= */

.oshirase-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: blue;
  background: #ffffff;
  padding: 10px;
  border-radius: 10px;
  border: 2px dotted #0000ff;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto 15px;
  max-width: calc(100% - 30px);
}

.oshirase-header img {
  flex-shrink: 0;
  max-height: 40px;
  width: auto;
}

.oshirase-header .oshirase-title {
  font-size: 1.5rem;
}

.oshirase-header .oshirase-date {
  margin-left: auto;
  white-space: nowrap;
  align-self: flex-end;
  margin-bottom: -2px;
}

.oshirase-header-sm {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  color: blue;
  background: #ffffff;
  padding: 8px 10px;
  border-radius: 8px;
  border: 2px dotted #0000ff;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto 15px;
  max-width: calc(100% - 30px);
}

.oshirase-header-sm img {
  flex-shrink: 0;
  max-height: 28px;
  width: auto;
}

.oshirase-header-sm .oshirase-title {
  font-size: 1.15rem;
}

.oshirase-header-sm .oshirase-date {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.85rem;
  align-self: flex-end;
  margin-bottom: -2px;
}

/* お知らせ本文・詳細エリアの余白調整 */

.oshirase-header ~ p,
.oshirase-header ~ .flex-tayori {
  padding-left: 30px;
  padding-right: 15px;
  box-sizing: border-box;
}

.oshirase-main-title {
  border-left: 8px solid #00a1e9;
  margin: 8px 0;
  padding: 4px 16px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333333;
  background-color: #ffffff;
  display: block;
  scroll-margin-top: 15px;
}

.return-link {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  flex: 0 0 100%;
  width: 100%;
  color: #0056b3;
  font-size: 14px;
  text-decoration: none;
}

.return-link:hover {
  color: #003d82;
  text-decoration: underline;
}

.return-link::before {
  content: "▲";
  font-size: 10px;
}

.oshirase-index {
  padding-left: 30px;
  padding-right: 15px;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.oshirase-index dl {
  display: grid;
  grid-template-columns: 180px 1fr;
  column-gap: 30px;
  margin: 0;
  padding: 0;
  align-items: start;
}

.oshirase-index dt {
  margin: 0;
  padding: 4px 0;
  font-weight: bold;
}

.oshirase-index dd {
  margin: 0;
  padding: 4px 0;
}

.oshirase-index dd a {
  display: block;
  line-height: 1.4;
}

/* oshirase だけに効かせる */
.oshirase-page .flex-tayori > .item a {
  line-height: 0;
}

/* oshirase だけに効かせる */
.oshirase-page .flex-tayori > .item a {
  line-height: 0;
}

.oshirase-page .flex-tayori > .item img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
}

/* =========================================================
   TAYORI IMAGE
========================================================= */

.flex-tayori img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   避難情報エリア（赤枠・文字の先頭揃え）の修正追加
========================================================= */

/* 🔴 赤枠（警告ボックス）のサイズと余白を青枠と完全に一致させる */
.alert-box {
  width: 100%;
  box-sizing: border-box;
  margin: 15px auto;                /* 左右中央配置（auto）にして青枠と位置を揃える */
  max-width: calc(100% - 30px);     /* 青枠と全く同じ横幅計算を適用 */
  border: 2px solid #d9534f;
  background-color: #fdf7f7;
  text-align: left;
  
  /* 💡 枠の線から文字を離しつつ、先頭ラインを他の本文（30px）に合わせるための計算 */
  padding: 12px 15px; 
}

/* 🏢 枠内のテキストと、枠外のリスト（ul）の先頭ラインを「30px」に完全に揃える */
.alert-box strong {
  display: block;
  padding-left: 15px; /* 枠のpadding(15px) + この15px = 合計30pxになり、外の文章と縦一列に揃います */
}

/* 枠外のテキスト、避難場所の箇条書き（ul）の左側を30pxに揃える設定 */
.oshirase-section p,
.oshirase-section ul {
  padding-left: 30px !important;   /* 他の設定に負けないよう強力に30pxを適用 */
  padding-right: 15px;
  box-sizing: border-box;
  margin-left: 0;
}

/* 避難場所の箇条書き（ul）の黒丸（・）の位置調整 */
.oshirase-section ul {
  margin-top: 10px;
  margin-bottom: 15px;
  list-style-position: inside;     /* 黒丸を30pxのラインより内側に入れます */
}