/* ===============================
   基本設定
================================ */
body {
  letter-spacing: 0.2em;
  font-family: 'Roboto', 'Noto Sans JP', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #1a3a6e;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #121f40;
}

/* ===============================
   共通ユーティリティ
================================ */
.scroll-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* ===============================
   ヒーローセクション
================================ */
.page-hero {
	background-color: #ffffff;
	padding: 110px 50px 20px;
	text-align: center;
	border-bottom: 5px solid #1a3a6e;
}

.page-hero h1 {
	font-size: clamp(2.1rem, 4.5vw, 4rem);
	letter-spacing: 0.1em;
	margin: 0;
	color: #000000;
	text-transform: uppercase;
	opacity: 0;
	animation: slide-in-from-top 1s ease-out forwards;
}

/* ===============================
   NEWS セクション
================================ */
.news-section {
  padding: 60px 50px;
  text-align: center;
  margin: 50px 50px;
}

.news-section h2 {
  font-size: 3em;
  margin-bottom: 30px;
  letter-spacing: 0.1em;
  position: relative;
  display: inline-block;
}

.news-section h2::after {
  content: '';
  display: block;
  width: 50%;
  height: 3px;
  background-color: #1a3a6e;
  margin: 10px auto 0;
  transition: width 0.5s;
}

.news-section:hover h2::after {
  width: 80%;
}

.news-listings {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.news-item {
  width: 80%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px;
  margin: 0 auto 20px;
  background-color: #fff;
  border-left: 5px solid #1a3a6e;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(26, 58, 110, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: left;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.news-header h3 {
  color: #1a3a6e;
  font-size: 1.4em;
  margin: 0;
  white-space: nowrap;
}

.news-header p {
  font-size: 1.2em;
  margin: 0;
  flex: 1;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-body {
  font-size: 1em;
  color: #555;
  margin-top: 8px;
}

.news-body::after {
  content: "\A...続きを読む";
  white-space: pre-line;
  color: #1a3a6e;
  font-weight: 600;
}

.news-item:hover .news-body::after {
  opacity: 0.6;
}

/* ===============================
   レスポンシブ
================================ */
@media (max-width: 768px) {

  .page-hero h1 {
	  font-size: 2.1em;
    letter-spacing: 0.2em;
  }

  /* セクション余白を調整 */
  .news-section {
    padding: 32px 16px;
    margin: 24px 0;
  }

  /* リスト全体 */
  .news-listings {
    width: 100%;
    padding: 0 8px;
  }

  /* カード */
  .news-item {
    width: 100%;
    padding: 16px;
    margin-bottom: 16px;
    border-left-width: 4px;
        margin-left: 0; 
    box-sizing: border-box;
  }

  /* リンクを縦並びに */
  .news-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* 日付＋タイトル */
  .news-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .news-header h3 {
    font-size: 0.8em;
    white-space: normal; /* ← 折り返し許可 */
  }

  .news-header p {
    font-size: 0.9em;
    white-space: normal;
    line-height: 1.5;
  }

  /* 本文 */
  .news-body {
    font-size: 0.9em;
    line-height: 1.6;
    margin-top: 6px;
  }

  /* ページトップボタン */
  .page-top-button {
    right: 10px;
    bottom: 16px;
    padding: 10px 16px;
    font-size: 0.9em;
  }
  
}

@media (prefers-reduced-motion: reduce) {
  .scroll-fade,
  .page-top-button {
    transition: none;
    animation: none;
  }
}
