/* ==============================
   NEWS ページ レイアウト
   ============================== */

.p-news {
  padding: 100px 0;
  display: flex;
  justify-content: space-between;
}

@media screen and (max-width: 767px) {
  .p-news {
    padding: 50px 0;
    flex-wrap: wrap;
  }
}

/* メインカラム */
.p-news__main {
  padding-right: 80px;
  width: 100%;
}

.p-news__main-list li {
  margin-bottom: 80px;
}

.p-news__main-list li a {
  display: flex;
  justify-content: space-between;
}

@media screen and (max-width: 1100px) {
  .p-news__main {
    padding-right: 30px;
    margin-bottom: 50px;
  }

  .p-news__main-list li {
    margin-bottom: 50px;
  }

  .p-news__main-list li:last-of-type {
    margin-bottom: 0;
  }

  .p-news__main-list li a {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 767px) {
  .p-news__main {
    width: 100%;
    padding-right: 0;
  }
}

/* サムネイル */
.p-news__thumnail {
  width: 40%;
}

@media screen and (max-width: 1100px) {
  .p-news__thumnail {
    width: 100%;
  }
}

/* 記事詳細（一覧内） */
.p-news__detail {
  padding-left: 30px;
  width: 60%;
}

.p-news__detail-date {
  letter-spacing: 0.1em;
}

.p-news__detail-date span {
  font-size: 14px;
  color: #fff;
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  margin-right: 10px;
  letter-spacing: 0;
}

.p-news__detail-name {
  margin: 15px 0;
  font-size: 20px;
}

.p-news__detail-text {
  font-size: 14px;
  color: #727272;
}

@media screen and (max-width: 1100px) {
  .p-news__detail {
    width: 100%;
    padding-left: 0;
    margin: 10px 0 0 0;
  }

  .p-news__detail-date span {
    font-size: 10px;
  }

  .p-news__detail-name {
    font-size: 16px;
    margin: 10px 0;
  }

  .p-news__detail-text {
    font-size: 12px;
  }
}

/* ==============================
   NEWS サイドバー 共通
   ============================== */

.p-news__side {
  width: 30%;
  max-width: 320px;
  min-width: 280px;
}

.p-news__side h2 {
  text-align: center;
  font-size: 18px;
  margin-bottom: 15px;
}

.p-news__side-bnr {
  width: 100%;
  margin: 0 auto 30px;
}

.p-news__side-bnr img {
  width: 100%;
}

.p-news__side-category {
  background: #f7f7f7;
  border-radius: 10px;
  margin-bottom: 30px;
  padding: 30px 28px 40px;
}

.p-news__side-category input,
.p-news__side-category textarea,
.p-news__side-category select {
  width: calc(100% - 53px);
  border: none;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.p-news__side-category .search-btn {
  background: #2e2e2e;
  color: #fff;
  max-width: 80px;
  padding: 8px 10px;
  border: none;
  border-radius: 5px;
}

.p-news__side ul li {
  position: relative;
}

.p-news__side ul li a {
  display: block;
  padding-left: 9px;
  margin-bottom: 10px;
}

.p-news__side ul li a:hover {
  color: #ff4800;
}



.p-news__side ul li ul {
  padding-left: 12px;
}

.p-news__side ul li ul li {
  font-size: 14px;
}

.p-news__side ul li ul li a {
  margin-bottom: 0px;
}

.p-news__side ul li ul li::before {
  top: 8px;
}

@media screen and (max-width: 1100px) {
  .p-news__side-category input,
  .p-news__side-category textarea,
  .p-news__side-category select {
    max-width: 220px;
  }
}

@media screen and (max-width: 767px) {
  .p-news__side {
    width: 100%;
    margin-top: 0px;
    max-width: none;
  }

  .p-news__side-category {
    padding: 20px;
    margin-bottom: 15px;
  }

  .p-news__side-category input,
  .p-news__side-category textarea,
  .p-news__side-category select {
    flex-wrap: wrap;
    padding: 8px;
  }

  .p-news__side-category .search-btn {
    padding: 6px 10px;
  }

  .p-news__side ul li ul li a {
    font-size: 14px;
  }

}

/* ==============================
   NEWS サイドバー アーカイブ
   ============================== */

/* .p-news__side ul li::before の丸ドットをアーカイブ要素でリセット */
.news_category__list li::before,
.news_category__list li::after,
.news_category__months li::before,
.news_category__months li::after {
  display: none;
}

.news_category__list li a,
.news_category__months li a {
  padding-left: 0;
  margin-bottom: 0;
}

/* 年リスト */
.news_category__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* 年アイテム */
.news_category__year {
  border-bottom: 1px solid #e5e5e5;
}

/* 年ボタン */
.news_category__year-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 4px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  text-align: left;
}

.news_category__year-btn:hover {
  color: #f15a24;
}

/* 矢印アイコン */
.news_category__icon {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #f15a24;
  border-bottom: 2px solid #f15a24;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-bottom: 4px;
}

.news_category__year.is-open .news_category__icon {
  transform: rotate(-135deg);
  margin-bottom: -4px;
}


.news_all__icon {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1px solid #f15a24;
  border-bottom: 1px solid #f15a24;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  transform: rotate(-45deg);
  margin-bottom: 1px;
  margin-right: 7px;
}


/* 年全体リンク */
.news_category__year-all {
    display: block;
    padding: 7px 0px 10px;
    font-size: 14px;
    color: #f15a24;
    text-decoration: none;
    text-align: right;
    margin-bottom: 14px !important;
}

.news_category__year-all:hover {
  text-decoration: none;
}

/* 月リスト（2列グリッド） */
.news_category__months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px 8px;
  padding: 0 0 12px 0;
  margin: 0;
  list-style: none;
}

/* 月リンク */
.news_category__months > li > a {
  display: block;
  padding: 6px 5px 7px 5px;
  background: #fff;
  border-radius: 6px;
  color: #222;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.news_category__months > li > a::before {
  content: "→";
  color: #f15a24;
  font-weight: bold;
  margin-right: 5px;
}

.news_category__months > li > a:hover {
  background: #fff7f3;
  border-color: #f15a24;
}

.news_category__year-all {
    border-bottom: 1px dotted #ffac77;
    display: inline-block !important;
    padding-left: 0px !important;
    padding-bottom: 1px;
    margin-right: 0;
    margin-left: auto;
    margin-bottom: 0px !important;
    letter-spacing: -0.2px;
}
.news_category__months-wrap {
    margin-bottom: 26px;
}

/* 記事なし月（グレーアウト） */
.news_category__months > li > span.news_category__month--disabled {
  display: block;
  padding: 6px 5px 7px 9px;
  background: #fff;
  border-radius: 6px;
  color: #bbb;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  cursor: default;
}

.news_category__months > li > span.news_category__month--disabled::before {
  content: "→";
  color: #bbb;
  font-weight: bold;
  margin-right: 5px;
}