/* ==========================================================
   お知らせ（news__）… 一覧（固定ページ news）と詳細（個別ページ single-news.php）
   ※ 色はすべて css/common.css の :root 変数を使用
   ========================================================== */

/* 固定ヘッダーの高さぶん、上を空ける（css/wp_fullwidth.css が main の上余白を消すため !important で確保） */
body.axcel-page main.news {
  padding-top: 80px !important;
}
@media (max-width: 767px) {
  body.axcel-page main.news {
    padding-top: 60px !important;
  }
}

/* ---------- パンくず ---------- */
.news__crumb-bar {
  padding-block: 24px;
  background: var(--color-white);
}
@media (max-width: 767px) {
  .news__crumb-bar {
    padding-block: 16px;
  }
}

.news__crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-text-sub);
}
@media (max-width: 767px) {
  .news__crumb {
    font-size: 11px;
  }
}

.news__crumb-item:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
}

.news__crumb-link {
  transition: color 0.3s ease;
}
.news__crumb-link:hover {
  color: var(--color-brand);
}

/* ---------- ページ見出し（一覧） ---------- */
.news__head {
  padding-block: 64px 56px;
  /* 薄い写真（css変数は functions.php が出力。無いとき＝手元の確認用は相対パス） */
  background-color: var(--color-brand-pale);
  background-image: var(--hero-news, url("../wp-content/uploads/2026/09/news-main.webp"));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
@media (max-width: 767px) {
  .news__head {
    padding-block: 40px 36px;
    background-image: var(--hero-news-sp, url("../wp-content/uploads/2026/09/news-main-sp.webp"));
  }
}

.news__title {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 24px;
  text-align: center;
}

.news__title-en {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.3em;
  color: var(--color-brand);
}

.news__title-ja {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.5;
  letter-spacing: 0.1em;
  color: var(--color-text);
}
@media (max-width: 767px) {
  .news__title-ja {
    font-size: 28px;
  }
}

.news__lead {
  max-width: 720px;
  margin: 0 auto;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  text-align: start;
  color: var(--color-text);
}
@media (max-width: 767px) {
  .news__lead {
    font-size: 14px;
  }
}

/* ---------- 一覧（日付・タイトルを横に並べたリスト） ---------- */
.news__section {
  padding-block: 72px 104px;
  background: var(--color-white);
}
@media (max-width: 767px) {
  .news__section {
    padding-block: 40px 72px;
  }
}

/* 左：リスト／右：カレンダー（SPはカレンダーを上に） */
.news__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 1023px) {
  .news__layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
  }
}
@media (max-width: 767px) {
  .news__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .news__aside {
    order: -1;
  }
}

.news__main {
  min-width: 0;
}

.news__list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--color-line);
}

/* 絞り込み中の表示 */
.news__filter-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 20px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--color-text);
}
.news__filter-label {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 18px;
}
.news__filter-clear {
  padding: 3px 14px;
  border: 1px solid var(--color-brand);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--color-brand);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.news__filter-clear:hover {
  background: var(--color-brand);
  color: var(--color-white);
}

/* ---------- カレンダー ---------- */
.news__aside {
  position: sticky;
  top: 100px;
}
@media (max-width: 767px) {
  .news__aside {
    position: static;
  }
}

.news__cal {
  padding: 24px 20px 20px;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 6px 24px var(--color-card-shadow);
}

.news__cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.news__cal-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--color-text);
  transition: color 0.3s ease;
}
.news__cal-title:hover {
  color: var(--color-brand);
}
/* JS版では見出しがボタン（押すとプルダウンが開く） */
button.news__cal-title {
  margin: 0;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  font: inherit;
  cursor: pointer;
}
button.news__cal-title[aria-expanded="true"] {
  background: var(--color-brand-pale);
}
.news__cal-caret {
  align-self: center;
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-right: 1.5px solid var(--color-brand);
  border-bottom: 1.5px solid var(--color-brand);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s ease;
}
button.news__cal-title[aria-expanded="true"] .news__cal-caret {
  transform: translateY(1px) rotate(225deg);
}

/* 西暦・月のプルダウン */
.news__cal-picker {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 8px;
  background: var(--color-brand-pale);
}
.news__cal-picker[hidden] {
  display: none;
}
.news__cal-field {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.news__cal-field-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--color-text-sub);
}
.news__cal-select {
  width: 100%;
  height: 38px;
  padding: 0 8px;
  border: 1px solid var(--color-line);
  border-radius: 6px;
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
}
.news__cal-select:focus-visible {
  outline: 2px solid var(--color-brand-soft);
  outline-offset: 1px;
}

/* カレンダーの下の「表示する」ボタン */
.news__cal-submit {
  display: block;
  width: 100%;
  height: 46px;
  margin: 18px 0 0;
  padding: 0;
  border: 1px solid var(--color-brand);
  border-radius: 999px;
  background: var(--color-brand);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--color-white);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.news__cal-submit:hover {
  background: var(--color-white);
  color: var(--color-brand);
}
.news__cal-submit:focus-visible {
  outline: 2px solid var(--color-brand-soft);
  outline-offset: 3px;
}
.news__cal-hint {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  text-align: start;
  color: var(--color-text-sub);
}

.news__cal-year {
  font-family: var(--font-en);
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--color-brand);
}
.news__cal-month {
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0.06em;
}

.news__cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: var(--color-brand);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
button.news__cal-nav {
  padding: 0;
  background: none;
  font-family: inherit;
  cursor: pointer;
}
a.news__cal-nav:hover,
button.news__cal-nav:hover {
  border-color: var(--color-brand);
  background: var(--color-brand);
  color: var(--color-white);
}
.news__cal-nav.is-disabled {
  color: var(--color-line);
}

.news__cal-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
}
.news__cal-dow {
  padding: 6px 0;
  border: 0;
  background: none;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--color-text-sub);
}
.news__cal-cell {
  padding: 2px 0;
  border: 0;
  text-align: center;
}
.news__cal-dow.is-sun,
.news__cal-cell.is-sun {
  color: var(--color-brand);
}
.news__cal-dow.is-sat,
.news__cal-cell.is-sat {
  color: var(--color-text);
}

.news__cal-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-inline: auto;
  border-radius: 50%;
  font-family: var(--font-sans);
  line-height: 1;
  color: var(--color-text-sub);
}
/* お知らせがある日（クリックでその日のお知らせへ） */
.news__cal-day.has-post {
  position: relative;
  padding: 0;
  border: 0;
  font-size: inherit;
  cursor: pointer;
  background: var(--color-brand-pale);
  font-weight: 700;
  color: var(--color-brand);
  transition: background-color 0.3s ease, color 0.3s ease;
}
.news__cal-day.has-post::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}
.news__cal-day.has-post:hover,
.news__cal-day.has-post.is-current {
  background: var(--color-brand);
  color: var(--color-white);
}
.news__cal-day.has-post:focus-visible {
  outline: 2px solid var(--color-brand-soft);
  outline-offset: 2px;
}

.news__cal-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-text-sub);
}
.news__cal-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-brand-pale);
  box-shadow: inset 0 0 0 1px var(--color-brand-soft);
}

.news__item {
  margin: 0;
  border-bottom: 1px solid var(--color-line);
}

.news__card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 8px;
  transition: background-color 0.3s ease;
}
.news__card:hover {
  background: var(--color-brand-pale);
}
.news__card:focus-visible {
  outline: 2px solid var(--color-brand-soft);
  outline-offset: -2px;
}
@media (max-width: 767px) {
  .news__card {
    gap: 14px;
    padding: 16px 4px;
  }
}

.news__thumb {
  flex: 0 0 168px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 6px;
  background: var(--color-brand-pale);
}
@media (max-width: 767px) {
  .news__thumb {
    flex-basis: 104px;
  }
}

.news__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.news__card:hover .news__img {
  transform: scale(1.05);
}

.news__card-body {
  flex: 1;
  min-width: 0;
}

.news__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.news__date {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--color-text-sub);
}
@media (max-width: 767px) {
  .news__date {
    font-size: 12px;
  }
}

.news__card-title {
  display: -webkit-box;
  margin: 8px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--color-text);
  transition: color 0.3s ease;
}
.news__card:hover .news__card-title {
  color: var(--color-brand);
}
@media (max-width: 767px) {
  .news__card-title {
    margin-top: 4px;
    font-size: 15px;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

.news__empty {
  margin: 0;
  padding-block: 48px;
  text-align: center;
  font-size: 15px;
  color: var(--color-text-sub);
}

/* ---------- ページ送り ---------- */
.news__pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 64px 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 767px) {
  .news__pager {
    gap: 6px;
    margin-top: 40px;
  }
}

.news__pager-link,
.news__pager-current,
.news__pager-gap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 12px;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.04em;
}
@media (max-width: 767px) {
  .news__pager-link,
  .news__pager-current,
  .news__pager-gap {
    min-width: 38px;
    height: 38px;
    padding-inline: 8px;
    font-size: 13px;
  }
}

.news__pager-link {
  border: 1px solid var(--color-line);
  background: var(--color-white);
  color: var(--color-text);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.news__pager-link:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
}
.news__pager-link--arrow {
  border-radius: 999px;
  padding-inline: 18px;
}

.news__pager-current {
  border: 1px solid var(--color-brand);
  background: var(--color-brand);
  color: var(--color-white);
}

.news__pager-gap {
  color: var(--color-text-sub);
}

/* ==========================================================
   詳細（single-news.php）
   ========================================================== */
.news__article {
  padding-block: 40px 104px;
  background: var(--color-white);
}
@media (max-width: 767px) {
  .news__article {
    padding-block: 24px 72px;
  }
}

.news__article-inner {
  width: min(840px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

.news__article-head {
  margin-bottom: 32px;
}

.news__article-title {
  margin: 14px 0 0;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 34px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-align: start;
  color: var(--color-text);
}
@media (max-width: 767px) {
  .news__article-title {
    margin-top: 10px;
    font-size: 22px;
  }
}

.news__eyecatch {
  margin: 0 0 48px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-brand-pale);
}
@media (max-width: 767px) {
  .news__eyecatch {
    margin-bottom: 32px;
    border-radius: 6px;
  }
}

.news__eyecatch-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;   /* 縦長の画像でも大きくなりすぎないよう、比率をそろえて切り抜く */
  object-fit: cover;
}

/* 本文（ACF の WYSIWYG が出す h2〜h4・p・img・ul など） */
.news__body {
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0.04em;
  text-align: start;
  color: var(--color-text);
}
@media (max-width: 767px) {
  .news__body {
    font-size: 15px;
    line-height: 1.95;
  }
}

.news__body > * + * {
  margin-top: 1.6em;
}

.news__body h2 {
  margin-top: 3em;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 2px solid var(--color-brand);
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-align: start;
  color: var(--color-text);
}
.news__body h2::before,
.news__body h2::after {
  content: none;
}
@media (max-width: 767px) {
  .news__body h2 {
    font-size: 20px;
  }
}

.news__body h3 {
  margin-top: 2.4em;
  padding: 0 0 0 14px;
  border: 0;
  border-left: 4px solid var(--color-brand);
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-align: start;
  color: var(--color-text);
}
.news__body h3::after {
  content: none;
}
@media (max-width: 767px) {
  .news__body h3 {
    font-size: 18px;
  }
}

.news__body h4 {
  margin-top: 2em;
  padding: 0;
  background: none;
  font-family: var(--font-mincho);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  text-align: start;
  color: var(--color-brand);
}
@media (max-width: 767px) {
  .news__body h4 {
    font-size: 16px;
  }
}

.news__body p {
  margin-bottom: 0;
}

.news__body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 480px;   /* 縦長の画像が画面いっぱいに大きくならないよう上限を付ける（比率はそのまま） */
  margin-inline: auto;
  border-radius: 8px;
}
@media (max-width: 767px) {
  .news__body img {
    max-height: 360px;
  }
}

.news__body a {
  color: var(--color-brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news__body ul,
.news__body ol {
  padding-left: 1.6em;
}

.news__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.news__body th,
.news__body td {
  padding: 10px 14px;
  border: 1px solid var(--color-line);
  text-align: start;
}
.news__body th {
  background: var(--color-brand-pale);
}

/* 前後の記事・一覧へ戻る */
.news__pn {
  display: grid;
  grid-template-newss: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 767px) {
  .news__pn {
    grid-template-newss: 1fr;
    margin-top: 48px;
  }
}

.news__pn-link {
  display: block;
  height: 100%;
  padding: 18px 22px;
  border: 1px solid var(--color-line);
  border-radius: 10px;
  background: var(--color-white);
  transition: border-color 0.3s ease;
}
.news__pn-link:hover {
  border-color: var(--color-brand);
}

.news__pn-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--color-brand);
}

.news__pn-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.news__pn-item--next {
  grid-column: 2;
}
@media (max-width: 767px) {
  .news__pn-item--next {
    grid-column: auto;
  }
}

.news__back {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
@media (max-width: 767px) {
  .news__back {
    margin-top: 40px;
  }
}
