@charset "UTF-8";

/* ページタイトル */
.section_header_title {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-top: 133px;
    margin-bottom: 225px;
}

.section_header_title h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: var(--fv-main-text);
    font-weight: 400;
    line-height: 1.13;
}

.section_header_title h1 span {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.42;
    display: block;
    margin-bottom: 26px; 
}

.section_header_title p {
    font-size: var(--fv-sub-text);
    font-weight: 700;
    line-height: 1.45;
}

/* 投稿一覧 */
.archive_inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(24px, 4vw, 64px);
    max-width: 1600px;
    padding-left: min(3.125%, 50px);
    padding-right: min(7.5%, 120px);
    margin: 0 auto 120px;
}

.archive_nav {
  flex: 0 0 auto;
}

.archive_content {
  flex: 0 1 880px;
  min-width: 0; /* はみ出し防止 */
}

.post_item {
    border-bottom: 1px dashed #D0D0D0;
}

.post_link {
  display: block;
    padding: 30px 0;
}

.post_item:nth-child(1) {
    border-top: 1px dashed #D0D0D0;;
}

.post_meta {
    display: flex;
    margin-bottom: 12px;
}

.post_box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
}

.post_title {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    /* 追加 */
    overflow-wrap: anywhere; /* 一番強力 */
    word-break: break-word;  /* 互換性用 */
    hyphens: auto;           /* 英語の見た目も自然に */
}

.archive_nav_heading {
    font-family: 'Overpass', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 23px;
}

.archive_nav_item a {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    color: #C1C1C1;
    text-decoration: none;
    padding-bottom: 7px;
}

.archive_nav_item.is-active a {
  color: #333333;
}

.post_cat_list span {
  font-size: 1rem;
  font-weight: 700;
  color: #864C2B;
}

.post_date {
    font-family: 'Overpass', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;
    line-height: 1; /* ← 数字が上にズレるのを防ぐ */
    position: relative;
    top: 1.75px;
}

.post_meta{
  display:flex;
  align-items: center;
  gap: 20px;
}
.post_cat_list{            /* カテゴリ複数の想定 */
  display:flex;
  flex-wrap: wrap;
  column-gap: 15px;
  row-gap: 10px;
}

.post_title {
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
  overflow: hidden;                /* はみ出しを隠す */
  display: -webkit-box;            /* flexboxの一種（省略用） */
  -webkit-line-clamp: 2;           /* 2行で切る */
  -webkit-box-orient: vertical;    /* 縦方向に指定 */
  text-overflow: ellipsis;         /* 省略記号（…）を付ける */
}

.meta_right {
    font-family: 'Overpass', sans-serif;
    font-size: 0.875rem;
    font-weight: 300;       
    display: flex;
    align-items: center; /* ← ここがポイント！ */
    gap: 5px;
}       

.post_meta_dash {
  line-height: 1;
  position: relative;
  top: 1px;
}

/* ページネーション全体デザイン */
.pagination_list {
    display: flex;
    gap: 15px 30px;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    padding: 0;
    margin: 40px 0 0;
    flex-wrap: wrap;
}

/* ページ番号（通常） */
.pagination_item a,
.pagination_item span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-family: 'Manrope', sans-serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #bebebe;
  background: transparent;
  /* border: 1px solid #c7c7c7; */
  text-decoration: none;
  transition: all 0.3s ease;
}

/* 数字ボタンだけボーダーを適用 */
.pagination_item a.page-numbers:not(.prev):not(.next) {
  border: 1px solid #c7c7c7;
}

/* 前へ・次へボタンはボーダーなし */
.pagination_item a.page-numbers.prev,
.pagination_item a.page-numbers.next {
  border: none;
}

/* .pagination_item a:has(.pagination_arrow) {
  border: none;
} */

/* 現在ページ */
.pagination_item.is-active span {
  background: #493932;
  color: #f7f6f4;
  border: none;
}

/* 親がflexなので、はみ出さないように */
.archive_nav {
  position: sticky;
  top: 200px;          /* ← ここで「上から何pxで固定するか」を指定 */
  align-self: flex-start;
  height: max-content; /* 余計な伸びを防ぐ */
  z-index: 2;          /* 必要なら前面に */
}

/* 競合しやすい既存指定を打ち消し（あれば） */
.archive_nav { height: auto; }                /* height: max-content; の上書き */
.archive_nav_list { height: auto; max-height: none; overflow: visible; }

/* ←ここから本命（asideにだけ付ける）*/
.archive_nav{
  position: sticky;
  top: 200px;                         /* 既存値 */
  align-self: flex-start;
  max-height: calc(100vh - 300px);    /* 画面高 − stickyオフセット */
  overflow-y: auto;                   /* 内部スクロール */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;  /* iOS慣性 */
  overscroll-behavior: contain;       /* 親へのスクロール伝播を抑える */
  padding-right: 5px;
  scrollbar-gutter: stable both-edges; /* ← これで「常に余白確保」 */


  /* 👇 ここを調整 */
  padding-right: 10px; /* ← スクロールバーとカテゴリの間の余白を完全に消す */
  scrollbar-gutter: auto; /* ← 余白を常に確保しない（スクロール時のみ発生） */
}

/* ラベルは1行省略（見た目は変えない） */
.archive_nav_item a{
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
}

.archive_nav::-webkit-scrollbar {
  width: 8px; /* 細めに */
}
.archive_nav::-webkit-scrollbar-thumb {
  background-color: #C1C1C1; /* ← 非アクティブカテゴリと統一 */
  border-radius: 999px;
  padding-left: 5px;
}
/* .archive_nav_list {
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  
} */




.post_title, .post_title a {
  overflow-wrap: anywhere; /* 一番強力 */
  word-break: break-word;  /* 互換性用 */
  hyphens: auto;           /* 英語の見た目も自然に */
}
.post_item .text { min-width: 0; } /* 親がflexなら必須 */

/* ホバー */
/* 通常状態 */
.pagination_item .page-numbers {
  transition: all 0.3s ease;
}

/* ホバー時 */
.pagination_item .page-numbers:hover {
  border-color: rgba(112, 112, 112, 0.3);   /* 線：#707070 不透明度30% */
  background-color: rgba(190, 190, 190, 0.3); /* 塗り：#BEBEBE 不透明度30% */
  color: #fff;
}

/* 前へ・次へボタン共通 */
.pagination_item .page-numbers.prev,
.pagination_item .page-numbers.next {
  transition: all 0.3s ease;
}

/* ホバー時：数字ボタンと同じ効果 */
.pagination_item .page-numbers.prev:hover,
.pagination_item .page-numbers.next:hover {
  border-color: rgba(112, 112, 112, 0.3);   /* 線：#707070 不透明度30% */
  background-color: rgba(190, 190, 190, 0.3); /* 塗り：#BEBEBE 不透明度30% */
}

.post_text_box {
    flex: 1 1 auto;
    min-width: 0;
}

/* 投稿 矢印 */
.post_arrow_box {
  flex: 0 0 auto;
  position: relative;
  width: 50px;
  height: 50px;
  margin-left: auto;
  border-radius: 50%;
  background-color: #fff;
  border: 1px solid #707070;
  overflow: hidden;
}

/* 1枚目の矢印（通常の img） */
.post_arrow_box .post_arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 50px;
  height: 50px;
}

/* 2枚目の矢印（背景側） */
.post_arrow_box::after {
  content: "";
  position: absolute;
  top: 0;
  left: -50px; /* 最初は左側に隠しておく */
  width: 50px;
  height: 50px;
  background-image: url(../img/common/arrow_black_circle_transparent.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: calc(100% + 4px);
  transform: scaleX(0.9);
}

/* ▼ a 全体にホバーしたときの動き（news__item の完全コピー） */
.post_link:hover .post_arrow_box .post_arrow {
  transform: translateX(50px);
  transition: all .3s ease-out;
}

.post_link:hover .post_arrow_box::after {
  left: 0;
  transition: all .3s ease-out;
  animation: post-yazirushi-new .8s ease-in-out forwards;
}

/* news の yazirushi-new と同じ動き */
@keyframes post-yazirushi-new {
  0% {
    transform: scaleX(1);
    margin-left: 0;
  }
  50% {
    transform: scaleX(0.8);
    margin-left: 4px;
  }
  100% {
    transform: scaleX(1);
    margin-left: 0;
  }
}

.pagination_arrow_box {
  position: relative;
  display: inline-block;
}

.pagination_arrow--hover {
  display: none;
}

/* hoverで切り替え */
.pagination_item a:hover .pagination_arrow--default {
  display: none;
}
.pagination_item a:hover .pagination_arrow--hover {
  display: inline;
}

@media screen and (max-width: 800px) {
  .archive_nav {
    position: static;  /* ← sticky解除 */
    top: auto;        /* 念のため解除 */
  }

  .section_header_title {
    gap: 12px;
    margin-top: 6px;
    margin-bottom: 40px;
    padding: 0 calc((20 / 390) * 100%);
  }

  .section_header_title h1 span {
    font-size: 0.875rem;
    margin-bottom: 8px;
  }

  .section_header_title h1 {
    font-size: 2.5rem;
  }

  .section_header_title p {
    font-size: 0.75rem;
  }

  .archive_inner {
    gap: 38px;
    flex-direction: column;
    padding: 0 calc((20 / 390) * 100%);
    margin: 0 auto 60px;
  }

  .archive_content {
    width: 100%;
    flex: 1 1 auto;
  }

  .archive_nav_heading {
    font-size: 0.8125rem;
    margin-bottom: 10px;
    color: #634A3C;
  }

  .archive_nav_list {
    display: flex;
    gap: 10px 20px;
    flex-wrap: wrap;
  }

  .archive_nav_item a {
    font-size: 0.9375rem;
    padding-bottom: 0;
  }

  .archive_nav {
    padding-right: 0;
  }

  .post_link {
    padding: 20px 0 14px;
  }

  .post_cat_list span {
    font-size: 0.75rem;
  }

  .post_date {
    font-size: 0.75rem;
  }

  .post_meta {
    gap: 10px;
  }

  .post_title {
    font-size: 0.9375rem;
    line-height: 1.55;
  }

  .post_arrow_box {
    display: none;
  }

  .pagination_list {
    justify-content: center;
  }

  .pagination_item a, .pagination_item span {
    font-size: 0.9375rem;
    width: 35px;
    height: 35px;
  }
 
}



