/* ==============================
   News（mobile-first / 完成版）
============================== */

.section-news {
  padding: 10px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.news-list {
  max-width: 900px;
  margin: 0 auto;
  list-style: none;
  padding: 0;

  /* レイアウト用（必要な場合のみ） */
  flex: 1;
  overflow-y: visible;
}
.news-list li {
  margin-bottom: 12px;
}
.news-list time {
  display: block;
  color: #666;
}
/* ==============================
   news item
============================== */

.news-item {
  position: relative;
  border: 2px solid var(--blue);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 6px 44px 6px 16px;
  background: #fff;
}

/* ==============================
   header（button）
============================== */

.news-head {
  width: 100%;
  background: #fff;
  border: none;
  padding: 2px;
  display: flex;
  flex-direction: column; /* SP：縦 */
  align-items: flex-start;
  gap: 0.2em;
  cursor: pointer;
  font-size: 1.6rem;
  appearance: none;
  -webkit-appearance: none;
  color: #333;
  text-align: left;
}

.news-head:active {
  background: rgba(0,0,0,0.03);
}

.news-date {
  font-weight: bold;
  white-space: nowrap;
}

.news-title {
	font-size: 1.6rem;
  margin-bottom: 12px;
	border-bottom: dotted 2px;
  flex: 1;
}

/* ==============================
   arrow icon（安定回転）
============================== */

.news-icon {
  position: absolute;
  right: 20px;
  top: 50%;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue);
  transform: translateY(-50%) rotate(-45deg);
  transition: transform 0.35s ease;
}

.news-item.is-open .news-icon {
  transform: translateY(-50%) rotate(-135deg);
}

/* ==============================
   body（アコーディオン）
   ※高さのみアニメーション
============================== */

.news-body {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
  background: #fafafa;
  transition: height 0.3s ease;
}


/* 中身（余白はここで管理） */
.news-body-inner {
  padding: 16px 20px;
}

/* ==============================
   tablet
============================== */

@media (min-width: 768px) {
.news-title {
	font-size: 1.8rem;
}
  .news-item {
    margin-bottom: 16px;
  }

  .news-body-inner {
    padding: 14px 24px;
  }
}

/* ==============================
   PC
============================== */

@media (min-width: 1024px) {
.news-title {
	font-size: 2rem;
}
  .news-head {
    flex-direction: row; /* 横並び */
    align-items: center;
    gap: 20px;
  }

}

/* ==============================
   他CSSの影響を遮断
============================== */

.section-news .news-title {
  border-bottom: none;
  padding-top: 10px;
}
