@charset "UTF-8";
/**
 * コラム一覧 2026 — Dark Editorial
 * home.php 専用（カテゴリー等のアーカイブも兼ねる）。
 * front-2026.css（トークン・リセット・ナビ・フッター・共通部品）の後に読み込む。
 *
 * デザインは Pencil に無いので、トップページの配色・字組みをそのまま使っている。
 *   見出し … Noto Serif JP Light(300)
 *   日付・カテゴリ・ページ送り … DM Sans
 *   本文 … Noto Sans JP Light
 */

/* ---------- 見出し ---------- */

.ar-head {
  padding: 120px var(--gutter) 60px;
  background: var(--bg);
}

.ar-head__title {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 300;
  line-height: 1.3;
  color: var(--fg);
}

.ar-head__desc {
  margin-top: 24px;
  max-width: 640px;
  font-size: 13px;
  line-height: 26px;
  color: var(--muted);
}

/* ---------- カテゴリー絞り込み ---------- */

.ar-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.ar-cats__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, .03);
  font-size: 11px;
  color: var(--muted);
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.ar-cats__item:hover {
  border-color: var(--muted);
  color: var(--fg);
}

.ar-cats__item.is-current {
  border-color: var(--accent);
  background: rgba(200, 184, 154, .13);
  color: var(--accent);
}

.ar-cats__count {
  font-family: var(--display);
  font-size: 10px;
  opacity: .7;
}

/* ---------- 一覧 ---------- */

.ar-list {
  padding: 40px var(--gutter) 120px;
  background: var(--bg);
}

/* auto-fill なので件数が変わってもカード幅が揃う */
.ar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 48px 32px;
}

.ar-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ar-card__thumb {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

.ar-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.7) brightness(.85);
  transition: filter .3s ease, transform .4s ease;
}

.ar-card__link:hover .ar-card__img {
  filter: none;
  transform: scale(1.03);
}

.ar-card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
}

.ar-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}

.ar-card__cat {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--accent);
}

.ar-card__title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--fg);
  transition: color .2s ease;
}

.ar-card__link:hover .ar-card__title { color: #fff; }

.ar-card__excerpt {
  font-size: 12px;
  line-height: 23px;
  color: var(--muted);
  /* 3行で打ち切る。記事の抜粋は自動生成なので長さがまちまち */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ar-empty {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- ページ送り ---------- */

/* the_posts_pagination() の `class` 引数は既定の `pagination` を置き換えるため、
   出力されるのは .navigation.ar-pager になる。.pagination では当たらない。 */
.ar-list .navigation {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.ar-list .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.ar-list .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--display);
  font-size: 12px;
  color: var(--muted);
  transition: border-color .2s ease, color .2s ease;
}

.ar-list a.page-numbers:hover {
  border-color: var(--muted);
  color: var(--fg);
}

.ar-list .page-numbers.current {
  border-color: var(--accent);
  background: rgba(200, 184, 154, .13);
  color: var(--accent);
}

.ar-list .page-numbers.dots { border-color: transparent; }

/* ---------- responsive ---------- */

@media (max-width: 1200px) {
  .ar-head__title { font-size: 44px; }
}

@media (max-width: 900px) {
  .ar-head { padding: 96px var(--gutter) 48px; }
  .ar-list { padding-bottom: 88px; }
  .ar-head__title { font-size: 34px; }
  .ar-grid { gap: 40px 24px; }
}

@media (max-width: 560px) {
  .ar-head__title { font-size: 28px; }
  .ar-grid { grid-template-columns: 1fr; }
}

/* ---------- 制作事例一覧（archive-sites.php）の差分 ---------- */

/* サイトのスクリーンショットなので上端基準で切り抜く */
.wk-card__img { object-position: top center; }

.wk-card__cate { color: var(--accent); }

.wk-card__url {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: .5px;
  color: var(--muted);
  transition: color .2s ease;
}

.ar-card__link:hover .wk-card__url { color: var(--accent); }

/* ---------- 汎用アーカイブ（archive.php）の差分 ---------- */

/* 縦横比と切り抜き位置は投稿タイプごとに変わるので、グリッド側の変数で受け取る
   （写真作例=3:2、楽曲サンプル=1:1のジャケット、WEBサンプル=3:2の上端基準）。 */
.gen-card__thumb { aspect-ratio: var(--card-ratio, 3 / 2); }
.gen-card__img { object-position: var(--card-pos, center); }

/* ---------- 写真作例の拡大表示（archive.php の lightbox） ---------- */

/* 個別ページに本文が無いので、遷移させずその場で大きく見せる。
   マークアップとスクリプトは archive.php 内（写真作例のときだけ出力）。 */

.ar-card__link--zoom { cursor: zoom-in; }

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 64px 72px;
  background: rgba(10, 9, 9, .96);
  /* 背景のグリッドをうっすら残して、別ページに移った印象にしない */
  backdrop-filter: blur(6px);
  cursor: zoom-out;
}

/* [hidden] は display:flex に負けるので、ここで明示的に打ち消す */
.lb[hidden] { display: none; }

.lb__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
}

.lb__img {
  max-width: 100%;
  /* キャプションと枚数表示の分を引く。画像が画面からはみ出さないようにする */
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--bg-alt);
  cursor: default;
}

.lb__cap {
  max-width: 640px;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  color: var(--muted);
}

.lb__count {
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--muted);
}

.lb__count:empty { display: none; }

/* 操作ボタン。front-2026.css の :where() リセットは button に及ばないので明示する */
.lb__close,
.lb__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, .04);
  font-family: var(--display);
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.lb__close:hover,
.lb__nav:hover {
  border-color: var(--accent);
  background: rgba(200, 184, 154, .13);
  color: var(--accent);
}

.lb__close:focus-visible,
.lb__nav:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
}

.lb__close {
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 20px;
  line-height: 1;
}

.lb__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.lb__prev { left: 24px; }
.lb__next { right: 24px; }

/* 1枚しかないときは前後ボタンを出さない */
.lb__count:empty ~ .lb__nav,
.lb:has(.lb__count:empty) .lb__nav { display: none; }

@media (max-width: 900px) {
  .lb { padding: 56px 16px 72px; }
  .lb__img { max-height: calc(100vh - 200px); }

  /* 画面が狭いと写真の左右に重なるので、前後ボタンは下端に並べる */
  .lb__nav {
    top: auto;
    bottom: 16px;
    transform: none;
    width: 44px;
    height: 44px;
  }

  .lb__prev { left: calc(50% - 52px); }
  .lb__next { right: calc(50% - 52px); }

  .lb__close { top: 12px; right: 12px; }
  .lb__count { padding-bottom: 4px; }
}
