/* =========================================================
   wise-inc / ニュース（お知らせ・ブログ・詳細）専用スタイルシート (pages/news.css)
   ・最新情報 一覧（カテゴリータグ絞り込み、件数表示）
   ・記事カード一覧（グリッド、ホバー線アニメーション）
   ・ページ送り（WordPress paginate_links 互換）
   ・記事詳細ページ（見出し、アイキャッチ、本文装飾、前後の記事ナビ、おすすめ記事）
   ========================================================= */

main.page {
  padding-block: clamp(40px, 6vh, 72px) clamp(60px, 9vh, 110px);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- タグ（カテゴリー絞り込みバー） --- */
.tagbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: clamp(14px, 1.6vw, 18px);
  border-bottom: 1px solid var(--line);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding-inline: 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: inherit;
  font-size: clamp(12px, .97vw, 13.5px);
  letter-spacing: .05em;
  color: var(--sub);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .28s ease, color .28s ease, background-color .28s ease;
}
.tag i {
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--c, var(--blue));
  transition: background-color .28s ease;
}
.tag[data-cat="all"] i {
  display: none;
}
.tag b {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: .08em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  transition: color .28s ease;
}
.tag:hover {
  border-color: #C6D3E4;
  color: var(--strong);
  background: #F7FAFE;
}
.tag[aria-current="page"],
.tag.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.tag[aria-current="page"] b,
.tag.is-active b {
  color: var(--gold);
}
.tag[data-cat="news"] { --c: #2F80ED; }
.tag[data-cat="blog"] { --c: #1C4F94; }
.tag[data-cat="effort"] { --c: #3F8F73; }
.tag[data-cat="recruit"] { --c: #C8A22B; }

@media (max-width: 640px) {
  .tagbar { gap: 7px; }
  .tag { height: 32px; padding-inline: 13px; }
}

/* --- 件数・結果なし --- */
.count {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: clamp(18px, 2.4vw, 28px) 0 clamp(18px, 2.2vw, 26px);
  font-size: 12.5px;
  letter-spacing: .06em;
  color: var(--sub);
}
.count b {
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: .04em;
  color: var(--strong);
  font-variant-numeric: tabular-nums;
}
.count em {
  font-style: normal;
  color: var(--faint);
}
.empty[hidden] {
  display: none;
}
.empty {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: clamp(28px, 4vw, 48px);
  border: 1px dashed #C6D0DE;
  border-radius: 4px;
  background: var(--bg2);
}
.empty b {
  font-size: clamp(14.5px, 1.2vw, 17px);
  font-weight: 500;
  color: var(--strong);
  letter-spacing: .06em;
}
.empty p {
  margin: 0;
  font-size: clamp(13.5px, 1.05vw, 15px);
  color: var(--sub);
}

/* =========================================================
   記事カード一覧（グリッド）
   ========================================================= */
.ncs {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3vw, 44px) clamp(20px, 2.2vw, 32px);
}
@media (max-width: 900px) {
  .ncs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .ncs { grid-template-columns: 1fr; gap: clamp(22px, 6vw, 30px); }
}
.ncs[hidden], .nc[hidden] {
  display: none;
}

.nc__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* 写真 */
.nc__ph {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 3px;
  background: var(--bg2);
}
.nc__ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 1.1s var(--ease);
}
.nc__ph::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.nc__link:hover .nc__ph img,
.nc__link:focus-visible .nc__ph img {
  transform: scale(1.045);
}
.nc__link:hover .nc__ph::after,
.nc__link:focus-visible .nc__ph::after {
  transform: none;
}

/* 日付とカテゴリ */
.nc__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: clamp(13px, 1.3vw, 17px);
}
.nc__date {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}
.nc__cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding-inline: 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--sub);
  white-space: nowrap;
}
.nc__cat::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--c, var(--blue));
}
.nc[data-cat="news"],    .nc__cat[data-cat="news"]    { --c: #2F80ED; }
.nc[data-cat="blog"],    .nc__cat[data-cat="blog"]    { --c: #1C4F94; }
.nc[data-cat="effort"],  .nc__cat[data-cat="effort"]  { --c: #3F8F73; }
.nc[data-cat="recruit"], .nc__cat[data-cat="recruit"] { --c: #C8A22B; }

/* 見出しと抜粋 */
.nc__t {
  margin: clamp(9px, 1vw, 12px) 0 0;
  font-size: clamp(15px, 1.18vw, 17px);
  font-weight: 500;
  line-height: 1.66;
  letter-spacing: .03em;
  color: var(--strong);
  transition: color .3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nc__link:hover .nc__t,
.nc__link:focus-visible .nc__t {
  color: var(--mid);
}
.nc__x {
  margin: 8px 0 0;
  font-size: clamp(12.5px, .98vw, 13.5px);
  line-height: 1.85;
  color: var(--sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 立ち上がりアニメーション */
.nc {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .8s var(--ease);
}
.nc.is-in {
  opacity: 1;
  transform: none;
}
.nc__ph::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  background: var(--bg);
  transform-origin: right;
  transition: transform 1s cubic-bezier(.76, 0, .24, 1) .12s;
}
.nc.is-in .nc__ph::before {
  transform: scaleX(0);
}

@media (prefers-reduced-motion: __disabled__) {
  .nc, .nc__ph img, .nc__ph::before, .nc__ph::after {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .nc__ph::before { display: none; }
  .nc__ph::after { transform: scaleX(0) !important; }
}

/* =========================================================
   ページ送り (WordPress paginate_links 互換)
   ========================================================= */
.pagination {
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.pagination[hidden] {
  display: none;
}
.pagination .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding-inline: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-family: "Barlow", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--sub);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: border-color .28s ease, color .28s ease, background-color .28s ease;
}
a.page-numbers:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #F2F7FE;
}
.page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  cursor: default;
}
.page-numbers.dots {
  border: 0;
  background: transparent;
  min-width: 22px;
  color: var(--faint);
  letter-spacing: .12em;
}
.page-numbers.prev, .page-numbers.next {
  gap: 8px;
  padding-inline: 16px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: .06em;
}
.page-numbers.prev svg, .page-numbers.next svg {
  width: 13px;
  height: 13px;
}
.page-numbers.prev { margin-right: 6px; }
.page-numbers.next { margin-left: 6px; }
@media (max-width: 560px) {
  .page-numbers { min-width: 36px; height: 36px; font-size: 13px; }
  .page-numbers.prev, .page-numbers.next { padding-inline: 12px; font-size: 12px; }
  .page-numbers.prev span, .page-numbers.next span { display: none; }
}

/* =========================================================
   記事詳細ページ専用スタイル
   ========================================================= */
/* --- 見出し部分の日付とカテゴリ --- */
.ph__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 clamp(14px, 1.6vw, 18px);
}
.ph__date {
  font-family: "Barlow", sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .62);
  font-variant-numeric: tabular-nums;
}
.ph__cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding-inline: 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 2px;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: #fff;
}
.ph__cat::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--gold);
}
.ph__h--art {
  font-size: clamp(23px, 3.1vw, 42px);
  line-height: 1.5;
  letter-spacing: .02em;
  max-width: 22em;
}
.crumb em {
  display: inline-block;
  max-width: 24em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}

/* --- 記事の写真（アイキャッチ） --- */
.arthero {
  position: relative;
  margin: 0 0 clamp(30px, 4vw, 54px);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  border-radius: 4px;
  background: var(--bg2);
}
.arthero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.arthero::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  background: var(--bg);
  transform-origin: right;
  transition: transform 1.1s cubic-bezier(.76, 0, .24, 1) .1s;
}
.arthero.is-in::after {
  transform: scaleX(0);
}
@media (max-width: 640px) {
  .arthero { aspect-ratio: 16 / 10; }
}

/* --- 本文 --- */
.art {
  max-width: 820px;
  margin-inline: auto;
}
.art__body {
  font-size: clamp(14.5px, 1.12vw, 16px);
  line-height: 2.1;
  color: var(--ink);
  letter-spacing: .04em;
}
.art__body > * + * {
  margin-top: 1.6em;
}
.art__body p {
  margin: 0;
}
.art__body strong {
  font-weight: 500;
  color: var(--strong);
}
.art__body h2 {
  margin: clamp(40px, 4.4vw, 60px) 0 0;
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .04em;
  color: var(--strong);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.art__body h2::before {
  content: "";
  width: 4px;
  height: 1em;
  flex: none;
  background: var(--mid);
  transform: translateY(.12em);
}
.art__body h3 {
  margin: clamp(30px, 3.4vw, 44px) 0 0;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .04em;
  color: var(--strong);
}
.art__body ul {
  margin: 1.4em 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .7em;
}
.art__body ul li {
  position: relative;
  padding-left: 1.4em;
}
.art__body ul li::before {
  content: "";
  position: absolute;
  left: .25em;
  top: .92em;
  width: 5px;
  height: 5px;
  background: var(--blue);
}
.art__body blockquote {
  margin: clamp(28px, 3.2vw, 40px) 0 0;
  padding: clamp(20px, 2.4vw, 30px) clamp(22px, 2.6vw, 34px);
  border-left: 2px solid var(--gold);
  background: var(--bg2);
  border-radius: 0 4px 4px 0;
  font-size: clamp(14px, 1.05vw, 15.5px);
  line-height: 2;
  color: var(--sub);
}
.art__body blockquote p {
  margin: 0;
}
.art__body figure {
  margin: clamp(30px, 3.6vw, 46px) 0 0;
}
.art__body figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.art__body figcaption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--faint);
}

/* --- 記事の終わり：一覧へ戻る／前後の記事 --- */
.artfoot {
  max-width: 820px;
  margin: clamp(44px, 5vw, 68px) auto 0;
  padding-top: clamp(26px, 3vw, 36px);
  border-top: 1px solid var(--line);
}
.artfoot__back {
  display: flex;
  justify-content: center;
}
.artnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.6vw, 20px);
  margin-top: clamp(26px, 3vw, 36px);
}
.artnav a {
  display: grid;
  gap: 7px;
  padding: clamp(16px, 1.8vw, 22px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color .3s ease, background-color .3s ease;
}
.artnav a:hover {
  border-color: #C6D3E4;
  background: #F7FAFE;
}
.artnav a[hidden] {
  display: none;
}
.artnav__dir {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--faint);
}
.artnav__dir svg {
  width: 12px;
  height: 12px;
}
.artnav--next {
  text-align: right;
}
.artnav--next .artnav__dir {
  justify-content: flex-end;
}
.artnav__t {
  font-size: clamp(13px, 1.02vw, 14.5px);
  line-height: 1.7;
  color: var(--strong);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 640px) {
  .artnav { grid-template-columns: 1fr; }
  .artnav--next { text-align: left; }
  .artnav--next .artnav__dir { justify-content: flex-start; }
}

/* --- おすすめ記事 --- */
.reco {
  margin-top: clamp(60px, 8vw, 110px);
}

@media (prefers-reduced-motion: __disabled__) {
  .arthero::after { display: none; }
}

/* 押せるものだけが丸い枠と点を持つ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding-inline: 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(11.5px, .95vw, 13px);
  letter-spacing: .05em;
  color: var(--sub);
  transition: border-color .28s ease, color .28s ease, background-color .28s ease;
}
.pill::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: .65;
  transition: transform .28s var(--ease);
}
.pill:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: #F2F7FE;
}
.pill:hover::after {
  transform: translateX(2px);
}
