/* しめ縄の飾り */
.shimenawa {
  text-align: center;
  /*margin-bottom: 100px; /* お知らせセクションと重なり調整（微調整可能） */
}

.shimenawa img {
  width: 50%; /* 画像サイズ調整（微調整可能） */
  height: auto;
  max-width: 100%;
  display: inline-block;
  z-index: 25;
  position: relative;
}

/*しめ縄*/
/* お知らせセクションを重ねる用 */
.overlapped {
    position: relative;
}

/* しめ縄と文字を重ねるラッパー */
.shimenawa-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap; /* スマホで要素が折り返せるように */
    padding: 10px; /* 余白をつけて余裕を持たせる */
}

@media screen and (max-width: 768px) {
    .shimenawa-wrapper {
        flex-direction: column; /* スマホでは縦並びに */
        align-items: center;
        padding: 20px 10px;
    }
}


/* しめ縄画像を背面に */
.shimenawa-overlay {
    position: absolute;
    width: 50%;
    height: auto;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
    .shimenawa-overlay {
        width: 80%; /* スマホではもう少し大きめにして見やすく */
        top: 80px; /* スマホでは少し下にずらす場合 */
    }
}


/* 重ねる「お知らせ」文字 */
.over-text {
    position: relative;
    z-index: 2;
    color: #533; /* より見やすく調整可 */
    font-size: 2.5em;
    padding: 20px 0;
    letter-spacing: 2px;
}



.outside-character{
  width:18%;
}

/* お知らせセクションに相対位置を与える（これが超重要！） */
.announcement-section {
  position: relative;
  z-index: 10;
  border-radius: 40px;
  padding: 30px 10px 10px 10px;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .announcement-section {
    border-radius: 20px;
    padding: 0px 10px 30px 10px;
  }
}


/* キャラ画像をセクションに重ねる（左右配置） */
.inside-character {
  position: absolute;         /* セクション内での絶対配置 */
  height: auto;
  z-index: 20;                /* タイトルや背景より前面に */
  pointer-events: none;      /* マウス操作が裏に通るように */
  transition: all 0.3s ease; /* アニメーション付き微調整用 */
}

/* 左キャラ：寿様 */
.left-character {
  left: -23%;                 /* セクションの外側に少しはみ出す */
  top: 230px;                 /* 上から少しかぶせる */
  width: 27%;                 /* キャラサイズ */
}

/* 右キャラ：未菜さん */
.right-character {
  right: -23%;                /* セクションの外側に少しはみ出す */
  top: 230px;
  width: 25%;
}

/* モバイルでは非表示にする場合（任意） */
@media screen and (max-width: 768px) {
  .inside-character {
    display: none;
  }
}


/* お知らせセクションのスタイル */
a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

a:hover {
  color: #F6C6A2;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news {
  /*padding: 50px 0;*/
}

.inner {
  width: 85%;
  max-width: 1000px;
  background-color: #ffa5006b;
  margin: 0 auto;
  padding: 60px 40px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 10px;

  position: static !important; /* 絶対位置指定を解除 */
        transform: none !important;  /* 中央位置指定解除 */
        width: 80%;                  /* 幅調整 */
        max-width: 900px;
        margin: 50px auto 300px auto;           /* 上下余白を追加して中央揃え */
        padding: 10px;               /* 内部の余白調整 */
        background: rgba(135, 206, 235, 0.7);            /* 背景を明確化 */
        border: double 5px #4ec4d3;  /* 枠線スタイル統一 */
        border-radius: 10px;         /* 角丸調整 */
        box-sizing: border-box;      /* 余白込みでサイズ計算 */
        z-index: 20;                 /* 重なり順序調整 */
}

.sub_ttl {
  font-size: 30px;
  text-align: center;
  margin-bottom: 100px;
  letter-spacing: 2px;
  color: #555;
  z-index:30;
}

/* ニュース記事のスタイル */
.news_list_item {
  padding: 20px 0;
  border-bottom: 1px solid #E6E6E6;
}

.news_list_item:first-child {
  border-top: 1px solid #E6E6E6;
}

.news_list_item a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 30px;
}

.news_list_date {
  font-size: 14px;
  display: flex;
  align-items: center;
  min-width: 150px;
}

.news_list_date time {
  color: #444444;
}

.news_item {
  background: #F6C6A2;
  border-radius: 12px;
  padding: 3px 10px;
  font-size: 13px;
  text-align: center;
  margin-left: 15px;
  white-space: nowrap;
}

.news_list_item p {
  flex: 1;
  margin: 0 15px;
  line-height: 1.6;
}

.news_list_item_Date-and-Time {
  color: #656565;
}

.news_list_item a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  transition: background-color 0.3s ease;
  border-radius: 8px;
  color: #1f0c31;
}

.news_list_item a:hover {
  background-color: #FFF2E5; /* 背景色を薄いオレンジ系に変更 */
  color: #5f90e3; /* 文字色はそのまま */
}


.arrow {
  width: 20px;
  height: 1px;
  background: #707070;
  position: absolute;
  top: 50%;
  right: 0;
}

.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: -2.5px;
  width: 6px;
  height: 6px;
  border-top: 1px solid #707070;
  border-right: 1px solid #707070;
  transform: rotate(45deg);
}

/* レスポンシブ調整 */
@media screen and (max-width: 1024px) {
  .inner {
    width: 90%;
    padding: 50px 30px;
  }

  .news_list_item a {
    flex-direction: column;
    align-items: flex-start;
    padding-right: 0;
  }

  .news_list_date {
    margin-bottom: 10px;
  }

  .arrow {
    right: 0;
    top: 30px;
  }
}

@media screen and (max-width: 769px) {
  .sub_ttl {
    font-size: 26px;
  }

  .news_list_item p {
    font-size: 14px;
  }

  .news_list_date {
    font-size: 13px;
  }
}

@media screen and (max-width: 480px) {
  .inner {
    padding: 40px 20px;
  }

  .news_list_date {
    flex-wrap: wrap;
    min-width: unset;
  }

  .news_item {
    margin-left: 0;
    margin-top: 5px;
  }

  .arrow {
    display: none;
  }
}
