/* ==========================================================
   お知らせ 一覧・詳細（news__）
   本番：一覧＝固定ページ news の [news_list]、詳細＝single-news.php
   ========================================================== */
.news__hero {
  background-image: var(--hero-news, url("../wp-content/uploads/2026/10/company-top.webp"));
}

.news__body-wrap {
  max-width: 920px;
  margin: 50px auto 0;
}

/* ---------- カテゴリで絞り込む ---------- */
.news__cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.news__cat-link {
  display: block;
  min-width: 100px;
  padding: 8px 20px;
  border: 1px solid var(--color-brand);
  border-radius: 100px;
  background: var(--color-white);
  color: var(--color-brand);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.news__cat-link:hover,
.news__cat-link.is-current {
  background: var(--color-brand);
  color: var(--color-white);
}

/* ---------- 一覧 ---------- */
.news__list {
  display: grid;
  gap: 14px;
}

.news__item {
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 2px 10px var(--color-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.news__item:hover {
  box-shadow: 0 6px 18px var(--color-shadow);
}

.news__link {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
}
@media (max-width: 767px) {
  .news__link {
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 16px 16px;
  }
}

.news__date {
  flex: none;
  color: var(--color-text-sub);
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.news__cat {
  flex: none;
  min-width: 90px;
  padding: 2px 12px;
  border: 1px solid var(--color-brand);
  border-radius: 100px;
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

.news__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
@media (max-width: 767px) {
  .news__text {
    flex-basis: 100%;
  }
}
.news__item-title {
  color: var(--color-text);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
.news__link:hover .news__item-title {
  color: var(--color-brand);
}
.news__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-text-sub);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.7;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

/* 1件ずつ、画面に入ったときにふわっと現れる（js/common.js の .common__pop が is-visible を付ける） */
.news__item.common__pop {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.3s ease;
}
.news__item.common__pop.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .news__item.common__pop {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- ページ送り（?news_page=） ---------- */
.news__pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.news__pager-num,
.news__pager-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--color-brand);
  border-radius: 100px;
  background: var(--color-white);
  color: var(--color-brand);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a.news__pager-num:hover,
a.news__pager-btn:hover,
.news__pager-num.is-current {
  background: var(--color-brand);
  color: var(--color-white);
}
.news__pager-btn.is-disabled {
  border-color: var(--color-line);
  color: var(--color-line);
}

/* ---------- 詳細 ---------- */
.news__article {
  padding: 40px 48px 44px;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 4px 16px var(--color-shadow);
}
@media (max-width: 767px) {
  .news__article {
    padding: 24px 18px 28px;
  }
}

.news__head {
  padding-bottom: 20px;
  border-bottom: 2px solid var(--color-brand);
}
.news__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.news__title {
  margin: 0;
  color: var(--color-text);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.5;
}
@media (max-width: 767px) {
  .news__title {
    font-size: 20px;
  }
}

.news__eyecatch {
  margin: 28px 0 0;
}
.news__eyecatch-img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
}

/* 本文（WordPressの本文エディタで入力した内容） */
.news__content {
  margin-top: 28px;
  font-size: 16px;
  font-weight: 300;
  line-height: 2;
  text-align: start;
}
.news__content p {
  margin: 0 0 1.4em;
}
.news__content h3,
.news__content h4 {
  margin: 2em 0 0.8em;
  padding: 6px 0 6px 14px;
  border-left: 5px solid var(--color-brand);
  color: var(--color-brand);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.5;
}
.news__content h4 {
  font-size: 17px;
}
.news__content ul,
.news__content ol {
  margin: 0 0 1.4em;
  padding-left: 1.6em;
}
.news__content ul {
  list-style: disc;
}
.news__content ol {
  list-style: decimal;
}
.news__content a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.news__content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
.news__content figure {
  margin: 0 0 1.6em;
}
.news__content figcaption {
  margin-top: 6px;
  color: var(--color-text-sub);
  font-size: 13px;
}

/* 前後の記事 */
.news__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 30px;
}
@media (max-width: 767px) {
  .news__nav {
    grid-template-columns: 1fr;
  }
}
.news__nav-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px solid var(--color-brand);
  border-radius: var(--radius);
  background: var(--color-white);
  transition: background-color 0.3s ease;
}
.news__nav-link:hover {
  background: var(--color-brand-pale);
}
.news__nav-link--next {
  text-align: right;
}
.news__nav-label {
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 600;
}
.news__nav-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news .common__btn-box {
  margin-top: 40px;
}

/* ---------- 2カラム：左＝一覧、右＝投稿日カレンダー（スクロールについてくる） ---------- */
.news__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
  margin-top: 50px;
}
@media (max-width: 991px) {
  .news__layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.news__layout .news__cats {
  justify-content: flex-start;
}

.news__side {
  position: sticky;
  top: calc(var(--header-nav-h) + 24px);   /* スクロールすると上段がたたまれ、細いメニューバーだけになる */
}
@media (max-width: 991px) {
  .news__side {
    position: static;
  }
}

.news__cal {
  padding: 18px 16px 16px;
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: 0 4px 16px var(--color-shadow);
}
.news__cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.news__cal-title {
  margin: 0;
  color: var(--color-brand);
  font-size: 17px;
  font-weight: 600;
}
.news__cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-brand);
  border-radius: 50%;
  color: var(--color-brand);
  line-height: 1;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a.news__cal-nav:hover {
  background: var(--color-brand);
  color: var(--color-white);
}
span.news__cal-nav {
  border-color: var(--color-line);
  color: var(--color-line);
}

.news__cal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  text-align: center;
}
.news__cal-table th {
  padding: 6px 0;
  color: var(--color-text-sub);
  font-size: 12px;
  font-weight: 600;
}
.news__cal-table th:first-child,
.news__cal-table td:first-child {
  color: var(--color-urgent-dark);
}
.news__cal-table th:last-child,
.news__cal-table td:last-child {
  color: var(--color-brand);
}
.news__cal-table td {
  padding: 2px 0;
  font-size: 14px;
}
.news__cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0 auto;
  border-radius: 50%;
}
/* 投稿のある日：緑の丸で、押すとその日のお知らせだけを表示 */
a.news__cal-day {
  background: var(--color-brand);
  color: var(--color-white);
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.3s ease;
}
a.news__cal-day:hover {
  background: var(--color-brand-light);
  color: var(--color-white);   /* 本番でテーマの a:hover に負けないよう明示 */
  transform: scale(1.1);
}
a.news__cal-day.is-current {
  outline: 3px solid var(--color-yellow);
  outline-offset: 1px;
}
.news__cal-day.is-today {
  box-shadow: inset 0 0 0 2px var(--color-text-sub);
}

.news__cal-today {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px 12px;
  border: 1px solid var(--color-brand);
  border-radius: 100px;
  background: var(--color-white);
  color: var(--color-brand);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
a.news__cal-today:hover,
a.news__cal-today.is-active {
  background: var(--color-brand);
  color: var(--color-white);
}
a.news__cal-today.is-active:hover {
  background: var(--color-brand-light);
}

.news__cal-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--color-text-sub);
  font-size: 12px;
}
.news__cal-foot::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-brand);
}

/* 一覧の一番下：TOPページへ戻るボタン（2カラムの外で、左右中央） */
.news__top {
  display: flex;
  justify-content: center;
  margin-top: 50px;
}
.news__top .common__btn {
  width: min(100%, 320px);
}
