/* --------------------------------------------- */
/* ▼モバイルファースト (全環境に共通のデザイン) */
/* --------------------------------------------- */
/* topics */
.contents {
  padding: 3em 0 3em;
  margin: auto;
  width: 90%;
  max-width: 1200px;
}
.contents_main {
  margin: 0 auto 3em;
}
.sidenav {
  text-align: left;
  width: 95%;
  margin: auto;
}
.sidenav_ttl {
  color: var(--red);
  font-family: "sicunsui", sans-serif;
  font-weight: 400;
  font-size: 2.8rem;
  line-height: 1.2;
}
.sidenavi_list {
  position: relative;
  margin: 0.5em auto 0;
}
.sidenavi_list li {
  line-height: 1.5;
  font-weight: 700;
  padding: 10px 0;
  list-style-type: none !important;
  /* 下線：赤い点線 */
  background: radial-gradient(circle, var(--red) 1.2px, transparent 1.6px) left bottom / 6px 3px repeat-x;
}
/* 先頭に赤丸の矢印アイコン */
.sidenavi_list a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #000;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  transition: color .3s;
}
.sidenavi_list a::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23E62B2A'/%3E%3Cpath d='M7.6 5.6 11 9l-3.4 3.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: translate .3s;
}
@media (hover: hover) {
  .sidenavi_list a:hover {
    color: var(--red);
  }
  .sidenavi_list a:hover::before {
    translate: 3px 0;
  }
}
/* ------------------------------------ */
/* ▼PC用デザインとして付け足すデザイン */
/* ------------------------------------ */
@media all and (min-width: 768px) {
  /* topics */
  .contents {
    padding: 60px 0 100px;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0em auto 0em;
    justify-content: center;
  }
  .contents_main {
    width: 75%;
    margin: 0 0em;
  }
  .sidenav_stickey {
    /*stickyで固定*/
    position: -webkit-sticky; /*Safari*/
    position: sticky;
    /*固定したい位置*/
    top: 160px;
  }
  .sidenav {
    width: 20%;
    padding: 0;
    margin: 0 0 0 5%;
  }
  .sidenav_ttl {
    font-size: 3.2rem;
  }
  .sidenavi_list {
    margin-top: 14px;
  }
  .sidenavi_list li {
    padding: 12px 0;
  }
}
@media all and (min-width: 1024px) {
  .sidenavi_list a {
    font-size: 1.6rem;
  }
}
/* =========================================================
   記事カードのスライダー（インフォメーション・活動レポートなど共通）
   <div class="post_slider js-post-slider">  … カードの背景を白にする時は -white
     <ul class="post_list"> <li class="post_item"><a class="post_card"> … </a></li> … </ul>
     <div class="post_ctrl"> 前へ・次へ（.post_arrow）／記事一覧（.post_more） </div>
   </div>
   横スクロール（スワイプ可）＋矢印ボタンで1枚ずつ送る。JSは main.js
   表示枚数：SP 約1.4枚 / タブレット 3枚 / PC 4枚（リストの最大幅1200px）

   一覧ページ用（information.html など）は .post_grid
   <div class="post_grid"> <ul class="post_list"> … </ul> <nav class="pager"> … </nav> </div>
   カードは同じ部品（画像／本文：カテゴリのラベル＋タイトル）。SP・タブレット 2列 / PC 3列
   ========================================================= */
.post_slider,
.post_grid {
  --post-gap: 12px;
  --post-bg: var(--lightblue); /* カード下部の背景 */
  --post-radius: 12px;
  --post-bleed: 5vw; /* SPで左右に広げる幅（＝親要素の外側の余白。ページに合わせて上書き） */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  letter-spacing: 0;
  font-feature-settings: normal; /* カンプは等幅組み（palt なし） */
}
.post_slider.-white {
  --post-bg: #fff;
}
.post_list {
  display: flex;
  gap: var(--post-gap);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* SPは画面の端までスワイプできるように左右へ広げる */
  margin: 0 calc(var(--post-bleed) * -1);
  padding: 0 var(--post-bleed);
  scroll-padding: 0 var(--post-bleed);
}
.post_list::-webkit-scrollbar {
  display: none;
}
.post_item {
  display: flex; /* カードの高さをそろえる */
  flex: 0 0 70%;
  scroll-snap-align: start;
  list-style: none;
}
/* style.css の a:link / a:visited より優先させるため .post_slider から指定 */
:is(.post_slider, .post_grid) .post_card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  color: #000;
}
.post_img {
  overflow: hidden;
  aspect-ratio: 398 / 287;
  background: #dfdfdf;
  border-radius: var(--post-radius) var(--post-radius) 0 0;
}
.post_img img {
  height: 100%;
  object-fit: cover;
}
.post_body {
  flex-grow: 1;
  padding: 12px 16px 16px;
  background: var(--post-bg);
  border-radius: 0 0 var(--post-radius) var(--post-radius);
}
/* カテゴリ：本文内の緑のラベル */
.post_cat {
  display: inline-block;
  padding: 0 12px;
  background: var(--green);
  border-radius: 9999px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.7;
}
/* タイトルは3行まで（はみ出す分は…） */
.post_ttl {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  min-height: calc(1.6em * 3);
  margin-top: 4px;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.6;
}
/* 前へ・次へ・記事一覧 */
.post_ctrl {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  align-items: center;
  margin-top: 18px;
}
.post_arrow {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--green);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity .3s, scale .3s;
}
.post_arrow.-prev {
  grid-column: 2;
  margin-right: 14px;
}
.post_arrow.-next {
  grid-column: 3;
  margin-left: 14px;
}
/* 白い「く」の字 */
.post_arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 8px;
  height: 8px;
  margin: auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  border-radius: 1px;
  translate: -1.5px 0;
  rotate: 45deg;
}
.post_arrow.-prev::before {
  translate: 1.5px 0;
  rotate: -135deg;
}
.post_arrow:disabled {
  opacity: .35;
  cursor: default;
}
.post_slider .post_more {
  grid-row: 2;
  grid-column: 1 / -1;
  justify-self: center;
  position: relative;
  display: grid;
  place-items: center;
  width: 160px;
  height: 40px;
  margin-top: 20px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  border-radius: 9999px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  transition: opacity .3s;
}
/* 白い三角 */
.post_more::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 7px;
  height: 10px;
  background: #fff;
  -webkit-mask: var(--icon-arrow) no-repeat center / contain;
  mask: var(--icon-arrow) no-repeat center / contain;
  translate: 0 -50%;
  transition: right .3s;
}
@media (hover: hover) {
  .post_card:hover {
    color: #000;
  }
  .post_card:hover .post_ttl {
    color: var(--blue);
  }
  .post_arrow:not(:disabled):hover {
    scale: 1.1;
  }
  .post_more:hover {
    color: #fff;
    opacity: .8;
  }
  .post_more:hover::after {
    right: 13px;
  }
}
/* タブレット：3枚 */
@media all and (min-width: 768px) {
  .post_list {
    margin: 0;
    padding: 0;
    scroll-padding: 0;
  }
  .post_item {
    flex-basis: calc((100% - var(--post-gap) * 2) / 3);
  }
  .post_ctrl {
    margin-top: 18px;
  }
  .post_slider .post_more {
    grid-row: 1;
    grid-column: 4;
    justify-self: end;
    margin-top: 0;
  }
}
/* PC：4枚（カンプ 1640px → 1200px に縮小した寸法） */
@media all and (min-width: 1024px) {
  .post_slider,
  .post_grid {
    --post-radius: 15px;
  }
  .post_item {
    flex-basis: calc((100% - var(--post-gap) * 3) / 4);
  }
  .post_cat {
    padding: 0 17px;
    font-size: 1.4rem;
    line-height: 21px;
  }
  .post_body {
    padding: 15px clamp(16px, 1.8vw, 26px) 22px;
  }
  .post_ttl {
    margin-top: 5px;
    font-size: clamp(1.5rem, 1.4vw, 1.8rem);
  }
  .post_arrow {
    width: 40px;
    height: 40px;
  }
  .post_arrow.-prev {
    margin-right: 16px;
  }
  .post_arrow.-next {
    margin-left: 16px;
  }
  .post_slider .post_more {
    width: 155px;
  }
}
/* ---------- 一覧ページ用（.post_grid） ---------- */
.post_grid {
  --post-gap: 12px;
}
.post_grid .post_list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px var(--post-gap);
  overflow: visible;
  margin: 0;
  padding: 0;
  scroll-snap-type: none;
}
.post_grid .post_body {
  padding: 10px 12px 14px;
}
/* SPは2列でカードが小さいので、ラベル・タイトルも小さめに */
.post_grid .post_cat {
  padding: 0 10px;
  font-size: 1.1rem;
}
.post_grid .post_ttl {
  margin-top: 3px;
  font-size: 1.3rem;
}
/* ページ送り（前へ・次への丸ボタンは .post_arrow を流用） */
.pager {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
}
.pager .post_arrow {
  display: block;
  flex-shrink: 0;
  margin: 0;
}
.pager_list {
  display: flex;
  margin: 0 16px;
}
.pager_list li {
  list-style: none;
}
.pager .pager_list :is(a, span) {
  display: block;
  min-width: 22px;
  color: #000;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 38px;
  text-align: center;
  transition: color .3s;
}
/* 今いるページ */
.pager .pager_list a[aria-current="page"] {
  color: var(--green);
}
@media (hover: hover) {
  .pager .pager_list a:hover {
    color: var(--green);
  }
}
@media all and (min-width: 768px) {
  .post_grid .post_body {
    padding: 14px 18px 18px;
  }
  .post_grid .post_cat {
    font-size: 1.2rem;
  }
  .post_grid .post_ttl {
    font-size: 1.5rem;
  }
}
/* PC：3列（カンプ 1640px → 1200px に縮小した寸法） */
@media all and (min-width: 1024px) {
  .post_grid .post_list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px 20px;
  }
  .post_grid .post_body {
    padding: 15px clamp(16px, 1.8vw, 26px) 22px;
  }
  .post_grid .post_cat {
    padding: 0 17px;
    font-size: 1.4rem;
  }
  .post_grid .post_ttl {
    margin-top: 5px;
    font-size: clamp(1.5rem, 1.4vw, 1.8rem);
  }
  .pager {
    margin-top: 57px;
  }
  .pager_list {
    margin: 0 28px;
  }
  .pager .pager_list :is(a, span) {
    line-height: 40px;
  }
}
/* =========================================================
   記事詳細（information_detail.html など）
   <article class="post_detail"> 見出し（.post_detail_head）／本文（.post_detail_body）／記事一覧に戻る（.post_back）
   本文は投稿エディタの出力（p・figure・img など）をそのまま入れる想定
   ========================================================= */
.post_detail {
  text-align: left;
  letter-spacing: 0;
  font-feature-settings: normal; /* カンプは等幅組み（palt なし） */
}
.post_detail_head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--blue);
}
/* カテゴリ：緑のラベル */
.post_detail_cat {
  display: inline-block;
  padding: 0 18px;
  background: var(--green);
  border-radius: 9999px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 26px;
}
.post_detail_ttl {
  margin-top: 10px;
  font-size: 1.9rem;
  font-weight: 500;
  line-height: 1.6;
}
.post_detail_body {
  padding-top: 30px;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 2;
}
.post_detail_body > :first-child {
  margin-top: 0;
}
.post_detail_body p {
  margin-top: 2em;
}
.post_detail_body figure {
  margin: 36px 0 0;
}
.post_detail_body figure + p {
  margin-top: 16px;
}
.post_detail_body img {
  border-radius: 12px;
}
/* 記事一覧に戻る */
.post_back {
  margin-top: 44px;
  text-align: center;
}
.post_detail .post_back a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--blue);
  color: var(--blue);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  transition: opacity .3s;
}
/* 緑の丸に白い「く」の字 */
.post_back a::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%2300BA6B'/%3E%3Cpath d='M13.6 8 9.6 12l4 4' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  transition: translate .3s;
}
@media (hover: hover) {
  .post_detail .post_back a:hover {
    color: var(--blue);
    opacity: .8;
  }
  .post_back a:hover::before {
    translate: -4px 0;
  }
}
@media all and (min-width: 768px) {
  .post_detail_head {
    padding-bottom: 26px;
  }
  .post_detail_ttl {
    font-size: 2.2rem;
  }
  .post_detail_body {
    padding-top: 40px;
    font-size: 1.5rem;
  }
}
/* PC（カンプ 1640px → 1200px に縮小した寸法） */
@media all and (min-width: 1024px) {
  .post_detail_cat {
    padding: 0 33px;
    font-size: 1.9rem;
    line-height: 35px;
  }
  .post_detail_ttl {
    margin-top: 12px;
    font-size: 2.6rem;
  }
  .post_detail_head {
    padding-bottom: 28px;
  }
  .post_detail_body {
    padding-top: 47px;
    font-size: 1.6rem;
    line-height: 2.05;
  }
  .post_detail_body figure {
    margin-top: 48px;
  }
  .post_detail_body figure + p {
    margin-top: 22px;
  }
  .post_detail_body img {
    border-radius: 15px;
  }
  .post_back {
    margin-top: 58px;
  }
  .post_detail .post_back a {
    gap: 14px;
    padding-bottom: 9px;
    font-size: 1.8rem;
  }
  .post_back a::before {
    width: 24px;
    height: 24px;
  }
}
