.newsletter-section {
  padding: 2rem;
  padding-bottom: 2rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #ccc;
  margin-bottom: 2rem;
}

.newsletter-section h2 {
  margin-top: 0;
}

.year-block {
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
}

.year-block h3 {
  border-left: 4px solid #228b22;
  background: #f2f2f2;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0 1.2rem;
}

/* ただし最初のyear-blockだけは元の余白を維持 */
.year-block:first-of-type h3 {
  margin-top: 2rem;
}

/* 2つ目以降の year-block の上を詰める */
.year-block+.year-block {
  margin-top: -0.5rem;
}

.issue-links {
  margin-bottom: 0;
}

.issue-links a {
  display: inline-block;
  /* 横に並ぶけど、幅や高さを指定できるスタイル */
  padding: 0.8rem 1.2rem;
  margin: 0 1.5rem 1.5rem 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;

  min-width: 16rem;
  /* ←タブの幅を揃える（16rem以上小さくならないように） */
  text-align: center;
}

.issue-links a:hover {
  background: #f7f7f7;
  border-color: #ccc;
}

.note {
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.5rem;
}

.newsletter-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
}

.newsletter-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* 1つだけ右寄せ */
.nav-single-right {
  justify-content: flex-end;
}

/* 1つだけ左寄せ */
.nav-single-left {
  justify-content: flex-start;
}

/* 2つ（左右に配置） */
.nav-double {
  justify-content: space-between;
}


/* アーカイブリンク */
.archive-link-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  padding: 0.6rem 1rem;

  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;

  text-decoration: none;
  color: #228b22;
  font-weight: bold;
}

.archive-link-button:hover {
  background: #f7f7f7;
  border-color: #ccc;
}

.archive-link-button:visited {
  color: #228b22;
}

.archive-link-button img {
  width: 20px;
  height: auto;
}

/* 2ページ目以降の戻るリンク */
.back-to-index {
  display: inline-flex;
  /* アイコンとテキストを横に並べて、位置をそろえる */
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;

  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;

  text-decoration: none;
  color: #228b22;
  font-weight: bold;
}

.back-to-index:hover {
  background: #f7f7f7;
  border-color: #ccc;
}

.back-to-index:visited {
  color: #228b22;
}

.back-to-index img {
  width: 20px;
  height: auto;
}

/* =========================
   スマホ表示用
   ========================= */

@media (max-width: 768px) {

  .newsletter-section {
    padding: 1.5rem 1rem;
  }

  .newsletter-section {
    padding-bottom: 1rem;
  }

  .issue-links {
    text-align: center;
  }

  .newsletter-nav {
    margin-top: 1rem;
  }

   /* スマホでは「戻るボタン」を消してレイアウト崩れを防止
      スマホで「戻るボタン」を消した際に、「もっと見る」ボタンが左寄りになるため、右寄りにするコード（現在未使用）

  .newsletter-nav .back-to-index {
    display: none;
  }

  .nav-double {
    justify-content: flex-end;
  }

  */


  /* スマホだけ表示文字を短い文言に変えて、矢印アイコンとの距離を少し詰める */

  /* font-size: 0;にすることでPC用の文言が消える */
  .back-to-index,
  .archive-link-button {
    font-size: 0;
  }

  /* PC用で指定しているgap: 0.4rem;を無効化（重要！） */
  .newsletter-nav a {
    gap: 0;
  }

  /* PC用の文言のあとにスマホ用の文言を指定 */
  .back-to-index::after {
    content: "戻る";
    font-size: 1rem;
  }

  .archive-link-button::after {
    content: "進む";
    font-size: 1rem;
  }

  /* アイコンと文字の距離 */
  .newsletter-nav a img {
    margin-right:6px;
  }
}