/* =========================================================
   barisaku-jazz-lab / after-hours.css
   "After Hours" — 23時すぎのジャズクラブ。
   暗色基調 × 白熱灯のあたたかさ × 真鍮の細い線。
   このファイルは `.theme-after-hours` 配下でだけ効く。
   既存の base.css / article.css と並走させる前提。
   ========================================================= */

/* ---------- Design tokens（夜版） ---------- */
.theme-after-hours {
  /* 墨と燻し */
  --ink:        #0e0c0a;
  --ink-elev:   #16120e;
  --ink-card:   #1a1610;
  --ink-veil:   rgba(14, 12, 10, 0.78);

  /* 白熱灯に照らされた紙 */
  --paper:      #ebdfc4;
  --paper-soft: #c5b696;
  --paper-mute: #8a7c5f;
  --paper-faint:#5d543f;

  /* 真鍮（ベル）と非常灯 */
  --brass:        #c8a665;
  --brass-strong: #dcbe7a;
  --brass-deep:   #8a6a30;
  --red-hot:      #c1402a;
  --red-deep:     #8c2a18;

  /* 仕切り */
  --line:        #2a241c;
  --line-strong: #3e3527;

  /* タイポ */
  --display-en: "Cormorant Garamond", "Shippori Mincho", serif;
  --display-jp: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body-jp:    "Yu Gothic Medium", "Yu Gothic", "Hiragino Sans",
                "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  --mono:       "JetBrains Mono", "SF Mono", "Menlo", monospace;
}

/* ---------- Body 上書き ---------- */
body.theme-after-hours {
  background: var(--ink);
  color: var(--paper-soft);
  font-family: var(--body-jp);
  font-size: 16.5px;
  line-height: 1.95;
  font-feature-settings: "palt" 1, "pkna" 1;
}

/* スポットライト：ページ全体に1枚、白熱灯の落ちる楕円 */
body.theme-after-hours::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 30% 0%,
      rgba(200, 166, 101, 0.06) 0%,
      transparent 70%),
    radial-gradient(ellipse 80% 60% at 80% 100%,
      rgba(193, 64, 42, 0.04) 0%,
      transparent 70%);
  pointer-events: none;
  z-index: 0;
}
/* ノイズ（控えめなフィルムグレイン） */
body.theme-after-hours::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.08;
  mix-blend-mode: screen;
  background-image:
    repeating-conic-gradient(from 0deg at 50% 50%,
      rgba(255,255,255,0.012) 0deg 0.5deg,
      transparent 0.5deg 1deg);
}
.theme-after-hours main,
.theme-after-hours header,
.theme-after-hours footer { position: relative; z-index: 2; }

/* リンク */
.theme-after-hours a {
  color: var(--brass-strong);
  text-decoration: underline;
  text-decoration-color: var(--brass-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.theme-after-hours a:hover {
  color: var(--paper);
  text-decoration-color: var(--paper);
}
.theme-after-hours a:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 3px;
}

/* 見出しベース */
.theme-after-hours h1,
.theme-after-hours h2,
.theme-after-hours h3,
.theme-after-hours h4 {
  color: var(--paper);
  font-family: var(--display-jp);
  font-weight: 600;
  letter-spacing: 0.015em;
}

/* ---------- HEADER: 真鍮プレートと細い罫線 ---------- */
.theme-after-hours .site-header {
  background: linear-gradient(180deg, var(--ink) 0%, rgba(14,12,10,0.85) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.theme-after-hours .site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  position: relative;
}
.theme-after-hours .site-header__bar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, var(--brass-deep) 30%, var(--brass) 50%,
    var(--brass-deep) 70%, transparent 100%);
  opacity: 0.4;
}
.theme-after-hours .masthead {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.theme-after-hours .masthead__title {
  font-family: var(--display-jp);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.08em;
  line-height: 1.1;
}
.theme-after-hours .masthead__english {
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--brass);
  letter-spacing: 0.16em;
  line-height: 1.2;
}
.theme-after-hours .site-nav { gap: 0; }
.theme-after-hours .site-nav__link {
  color: var(--paper-mute);
  font-family: var(--body-jp);
  font-size: 0.88rem;
  padding: 12px 16px;
  border-bottom: none;
  position: relative;
  letter-spacing: 0.04em;
  transition: color .2s ease;
}
.theme-after-hours .site-nav__link::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.theme-after-hours .site-nav__link:hover {
  color: var(--paper);
  border-bottom-color: transparent;
}
.theme-after-hours .site-nav__link:hover::after { transform: scaleX(1); }
.theme-after-hours .site-header__about-link {
  color: var(--paper-mute);
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.theme-after-hours .site-header__about-link:hover { color: var(--brass-strong); }

/* ---------- HERO: スポットライト下の譜面台 ---------- */
.theme-after-hours .hero-v4 {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 88px 0 96px;
  overflow: visible;
}
.theme-after-hours .hero-v4__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 1140px;
  padding: 0 32px;
  margin: 0 auto;
}

.theme-after-hours .hero-v4__overline {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 36px;
}
.theme-after-hours .hero-v4__overline-rule {
  width: 64px;
  height: 1px;
  background: var(--brass);
  position: relative;
}
.theme-after-hours .hero-v4__overline-rule::before {
  content: "";
  position: absolute;
  left: -6px; top: -2px;
  width: 5px; height: 5px;
  background: var(--brass);
  transform: rotate(45deg);
}
.theme-after-hours .hero-v4__overline-text {
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--brass-strong);
  letter-spacing: 0.32em;
  font-weight: 500;
}

.theme-after-hours .hero-v4__headline {
  margin: 0 0 32px;
  font-family: var(--display-jp);
  font-weight: 600;
  line-height: 1.32;
  color: var(--paper);
}
.theme-after-hours .hero-v4__headline-main {
  display: block;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  letter-spacing: 0.005em;
}
/* 日本語の em は明朝＋ブラス色、イタリック化しない（CJKに italic は効かないため） */
.theme-after-hours .hero-v4__headline-main em {
  font-family: var(--display-jp);
  font-style: normal;
  color: var(--brass-strong);
  font-weight: 600;
  letter-spacing: 0.04em;
  position: relative;
}
/* em の下にブラスの薄い下線 */
.theme-after-hours .hero-v4__headline-main em::after {
  content: "";
  position: absolute;
  left: 4%; right: 4%; bottom: -6px;
  height: 1px;
  background: var(--brass);
  opacity: 0.5;
}

.theme-after-hours .hero-v4__lede {
  max-width: 540px;
  margin: 0 0 48px;
  font-size: 1.02rem;
  line-height: 1.95;
  color: var(--paper-soft);
}
.theme-after-hours .hero-v4__lede strong {
  color: var(--paper);
  font-weight: 700;
  background: linear-gradient(transparent 64%, rgba(200,166,101,0.22) 64%);
  padding: 0 2px;
}

.theme-after-hours .hero-v4__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.theme-after-hours .hero-v4__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  font-family: var(--body-jp);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 0;
  text-decoration: none;
  position: relative;
  transition: background .25s ease, color .25s ease, transform .25s ease;
  box-shadow:
    0 1px 0 var(--brass-strong) inset,
    0 6px 20px rgba(200,166,101,0.18);
}
.theme-after-hours .hero-v4__cta::after {
  content: "→";
  font-family: var(--display-en);
  font-weight: 600;
  font-size: 1.05rem;
  transition: transform .25s ease;
}
.theme-after-hours .hero-v4__cta:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
  transform: translateY(-1px);
  text-decoration: none;
}
.theme-after-hours .hero-v4__cta:hover::after { transform: translateX(4px); }
.theme-after-hours .hero-v4__about {
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--paper-mute);
  text-decoration: underline;
  text-decoration-color: var(--brass-deep);
  text-underline-offset: 5px;
}
.theme-after-hours .hero-v4__about:hover {
  color: var(--brass-strong);
  text-decoration-color: var(--brass);
}

/* 画像：sepia + multiply で夜に沈める */
.theme-after-hours .hero-v4__image {
  margin: 0;
  position: relative;
  aspect-ratio: 4/5;
  background: var(--ink-elev);
  border: 1px solid var(--line-strong);
  overflow: hidden;
  /* ベルがランプの下から覗くような暈し */
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    0 0 0 1px rgba(200,166,101,0.08) inset;
}
.theme-after-hours .hero-v4__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%,
      transparent 0%,
      rgba(14,12,10,0.35) 60%,
      rgba(14,12,10,0.75) 100%);
  pointer-events: none;
}
.theme-after-hours .hero-v4__image-img {
  filter: sepia(0.35) saturate(0.85) brightness(0.78) contrast(1.08);
}

/* 写真プレースホルダ：ベルの形を抽象的に描く */
.theme-after-hours .hero-v4__image--placeholder {
  background:
    radial-gradient(circle at 50% 55%,
      var(--brass-deep) 0%,
      rgba(138,106,48,0.4) 25%,
      transparent 45%),
    var(--ink-elev);
}
.theme-after-hours .hero-v4__image--placeholder::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 56%; height: 56%;
  border-radius: 50%;
  border: 1px solid var(--brass-deep);
  transform: translate(-50%, -50%);
  opacity: 0.35;
}
.theme-after-hours .hero-v4__image--placeholder::after {
  content: "Photo";
  position: absolute;
  bottom: 14px; right: 16px;
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  color: var(--paper-mute);
  background: none;
  border: none;
  padding: 0;
  transform: none;
  top: auto; left: auto;
}

@media (max-width: 880px) {
  .theme-after-hours .hero-v4 { padding: 56px 0 64px; }
  .theme-after-hours .hero-v4__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .theme-after-hours .hero-v4__image {
    order: -1;
    aspect-ratio: 16/10;
    max-height: 340px;
  }
}
@media (max-width: 600px) {
  .theme-after-hours .hero-v4__grid { padding: 0 22px; gap: 32px; }
  .theme-after-hours .hero-v4__overline { margin-bottom: 22px; }
  .theme-after-hours .hero-v4__overline-rule { width: 36px; }
  .theme-after-hours .hero-v4__overline-text { font-size: 0.7rem; letter-spacing: 0.22em; }
  .theme-after-hours .hero-v4__headline-main { font-size: 1.9rem; }
  .theme-after-hours .hero-v4__headline-main em { font-size: 0.95em; }
  .theme-after-hours .hero-v4__lede { font-size: 0.96rem; margin-bottom: 32px; }
  .theme-after-hours .hero-v4__actions { gap: 18px; }
  .theme-after-hours .hero-v4__cta { padding: 14px 22px; font-size: 0.92rem; }
}

/* ---------- INDEX セクション：罫線の節 + ローマン数字 ---------- */
.theme-after-hours .site-index {
  background: transparent;
  border-bottom: 1px solid var(--line);
  padding: 80px 0 88px;
  position: relative;
}
.theme-after-hours .site-index__inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}
.theme-after-hours .site-index__header {
  margin: 0 0 36px;
  padding-bottom: 0;
  border-bottom: none;
  display: flex;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.theme-after-hours .site-index__header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--brass-deep);
  align-self: center;
  min-width: 60px;
}
.theme-after-hours .site-index__label {
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--brass);
  letter-spacing: 0.32em;
  margin: 0;
  font-weight: 500;
  text-transform: none;
}
.theme-after-hours .site-index__title {
  font-family: var(--display-jp);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--paper);
  margin: 0;
  letter-spacing: 0.04em;
}

.theme-after-hours .site-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}
.theme-after-hours .site-index__list .idx-row {
  border-bottom: 1px solid var(--line);
  position: relative;
}
.theme-after-hours .site-index__list .idx-row__link {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  grid-template-rows: auto auto;
  grid-template-areas:
    "num name count"
    "num meta count";
  column-gap: 24px;
  row-gap: 2px;
  align-items: baseline;
  padding: 26px 0 22px;
  color: var(--paper-soft);
  text-decoration: none;
  transition: color .25s ease, padding .25s ease, background .25s ease;
}
.theme-after-hours .site-index__list .idx-row__link::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--brass);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.theme-after-hours .site-index__list .idx-row__link:hover {
  color: var(--paper);
  padding-left: 14px;
  background: linear-gradient(90deg, rgba(200,166,101,0.04) 0%, transparent 70%);
}
.theme-after-hours .site-index__list .idx-row__link:hover::before { transform: scaleY(1); }

.theme-after-hours .site-index__list .idx-row__num {
  grid-area: num;
  font-family: var(--display-en);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--brass);
  letter-spacing: 0.08em;
  font-weight: 500;
  align-self: start;
  margin-top: 6px;
}
.theme-after-hours .site-index__list .idx-row__name {
  grid-area: name;
  font-family: var(--display-jp);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--paper);
  letter-spacing: 0.06em;
  align-self: end;
}
.theme-after-hours .site-index__list .idx-row__meta {
  grid-area: meta;
  font-family: var(--body-jp);
  font-size: 0.86rem;
  color: var(--paper-mute);
  line-height: 1.6;
  letter-spacing: 0.02em;
}
.theme-after-hours .site-index__list .idx-row__count {
  grid-area: count;
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.86rem;
  color: var(--brass-deep);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  align-self: center;
}
.theme-after-hours .site-index__list .idx-row__link:hover .idx-row__count {
  color: var(--brass);
}

@media (max-width: 640px) {
  .theme-after-hours .site-index { padding: 56px 0 64px; }
  .theme-after-hours .site-index__inner { padding: 0 22px; }
  .theme-after-hours .site-index__list .idx-row__link {
    grid-template-columns: 36px 1fr;
    grid-template-areas:
      "num name"
      "num meta"
      ". count";
    column-gap: 16px;
    padding: 20px 0;
  }
  .theme-after-hours .site-index__list .idx-row__num { font-size: 0.95rem; margin-top: 4px; }
  .theme-after-hours .site-index__list .idx-row__name { font-size: 1.16rem; }
  .theme-after-hours .site-index__list .idx-row__count { margin-top: 6px; }
}

/* ---------- LATEST: セットリスト風 ---------- */
.theme-after-hours .latest {
  padding: 80px 32px 64px;
  max-width: 880px;
  margin: 0 auto;
}
.theme-after-hours .latest__header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin: 0 0 32px;
  position: relative;
}
.theme-after-hours .latest__header::before {
  content: "";
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--red-hot);
  box-shadow: 0 0 12px rgba(193,64,42,0.7);
  animation: ah-rec-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
  align-self: center;
}
@keyframes ah-rec-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 14px rgba(193,64,42,0.8); }
  50%      { opacity: 0.35; box-shadow: 0 0 4px rgba(193,64,42,0.2); }
}
@media (prefers-reduced-motion: reduce) {
  .theme-after-hours .latest__header::before { animation: none; }
}
.theme-after-hours .latest__title {
  font-family: var(--display-jp);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--paper);
  margin: 0;
  letter-spacing: 0.06em;
}
.theme-after-hours .latest__lede {
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--paper-mute);
  margin: 0;
  letter-spacing: 0.04em;
}

.theme-after-hours .latest__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: track-counter;
  border-top: 1px solid var(--line-strong);
}
.theme-after-hours .latest__item {
  counter-increment: track-counter;
  display: grid;
  grid-template-columns: 38px 96px 84px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.theme-after-hours .latest__item::before {
  content: counter(track-counter, decimal-leading-zero);
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--brass);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  align-self: center;
}
.theme-after-hours .latest__date {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--paper-mute);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.theme-after-hours .latest__tag {
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.78rem;
  color: var(--brass-strong);
  background: transparent;
  border: 1px solid var(--brass-deep);
  padding: 3px 10px;
  letter-spacing: 0.06em;
  text-align: center;
  border-radius: 0;
  justify-self: start;
  white-space: nowrap;
}
.theme-after-hours .latest__link {
  font-family: var(--display-jp);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--paper);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color .2s ease;
}
.theme-after-hours .latest__link:hover {
  color: var(--brass-strong);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-underline-offset: 5px;
}

@media (max-width: 720px) {
  .theme-after-hours .latest { padding: 56px 22px 48px; }
  .theme-after-hours .latest__header { gap: 14px; margin-bottom: 22px; }
  .theme-after-hours .latest__title { font-size: 1.2rem; }
  .theme-after-hours .latest__item {
    grid-template-columns: 28px 1fr;
    grid-template-areas:
      "num    date"
      ".      tag"
      ".      title";
    gap: 4px 14px;
    padding: 18px 0;
  }
  .theme-after-hours .latest__item::before { grid-area: num; align-self: start; margin-top: 2px; }
  .theme-after-hours .latest__date { grid-area: date; }
  .theme-after-hours .latest__tag { grid-area: tag; margin-top: 4px; }
  .theme-after-hours .latest__link { grid-area: title; margin-top: 4px; font-size: 1rem; }
}

/* ---------- ARCHIVE: 年別タイポインデックス ---------- */
.theme-after-hours #archive {
  padding: 80px 32px 96px;
  max-width: 980px;
  margin: 0 auto;
  position: relative;
}
.theme-after-hours #archive::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, var(--brass-deep) 30%, var(--brass) 50%,
    var(--brass-deep) 70%, transparent 100%);
  opacity: 0.4;
  margin-bottom: 64px;
}
.theme-after-hours .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 40px;
  border-bottom: none;
}
.theme-after-hours .section-heading__title {
  font-family: var(--display-jp);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--paper);
  margin: 0;
  letter-spacing: 0.08em;
}
.theme-after-hours .section-heading__note {
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.86rem;
  color: var(--brass);
  letter-spacing: 0.06em;
}

/* card-grid の17カードを「行リスト」に変換 */
.theme-after-hours .card-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
}
.theme-after-hours .card {
  display: grid;
  grid-template-columns: 120px 100px 1fr 120px;
  gap: 28px;
  align-items: baseline;
  padding: 26px 4px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  transition: background .25s ease, padding .25s ease, color .25s ease;
  color: var(--paper-soft);
  text-decoration: none;
  position: relative;
}
.theme-after-hours .card:hover {
  background: linear-gradient(90deg, rgba(200,166,101,0.04) 0%, transparent 60%);
  padding-left: 16px;
  padding-right: 16px;
  color: var(--paper);
  text-decoration: none;
  border-color: var(--line);
}
.theme-after-hours .card:first-child { padding-top: 26px; }

.theme-after-hours .card__meta {
  display: contents;
}
.theme-after-hours .card__meta time {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--paper-mute);
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.theme-after-hours .card__tag {
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.76rem;
  color: var(--brass-strong);
  border: 1px solid var(--brass-deep);
  background: transparent;
  padding: 3px 9px;
  letter-spacing: 0.05em;
  text-transform: none;
  font-weight: 500;
  border-radius: 0;
  justify-self: start;
  white-space: nowrap;
  align-self: center;
}
.theme-after-hours .card__title {
  font-family: var(--display-jp);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.7;
  color: var(--paper);
  margin: 0;
  letter-spacing: 0.015em;
  transition: color .2s ease;
}
.theme-after-hours .card:hover .card__title { color: var(--brass-strong); }
.theme-after-hours .card__desc {
  display: none; /* 行リストでは説明文を隠す（情報過多回避） */
}
.theme-after-hours .card__footer {
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.84rem;
  color: var(--brass-deep);
  font-weight: 500;
  justify-self: end;
  align-self: center;
  letter-spacing: 0.04em;
  transition: color .25s ease, transform .25s ease;
}
.theme-after-hours .card:hover .card__footer {
  color: var(--brass);
  transform: translateX(4px);
}

@media (max-width: 780px) {
  .theme-after-hours #archive { padding: 56px 22px 64px; }
  .theme-after-hours #archive::before { margin-bottom: 40px; }
  .theme-after-hours .section-heading { margin-bottom: 26px; }
  .theme-after-hours .section-heading__title { font-size: 1.3rem; }
  .theme-after-hours .card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 0;
  }
  .theme-after-hours .card:hover { padding-left: 0; padding-right: 0; }
  .theme-after-hours .card__meta { display: flex; gap: 14px; align-items: center; }
  .theme-after-hours .card__title { font-size: 1.02rem; line-height: 1.65; }
  .theme-after-hours .card__footer { justify-self: start; }
}

/* ---------- FOOTER: 演奏終演後の余韻 ---------- */
.theme-after-hours .site-footer {
  background: linear-gradient(180deg, transparent 0%, var(--ink-elev) 100%);
  border-top: 1px solid var(--line);
  padding: 72px 0 40px;
  margin-top: 80px;
  position: relative;
}
.theme-after-hours .site-footer::before {
  content: "—  ✦  —";
  display: block;
  text-align: center;
  font-family: var(--display-en);
  font-size: 0.78rem;
  color: var(--brass-deep);
  letter-spacing: 0.6em;
  margin: 0 auto 48px;
  opacity: 0.65;
}
.theme-after-hours .site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.theme-after-hours .masthead--footer .masthead__title { color: var(--paper); }
.theme-after-hours .masthead--footer .masthead__english { color: var(--brass-deep); }
.theme-after-hours .site-footer__heading {
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--brass);
  letter-spacing: 0.18em;
  text-transform: none;
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-strong);
}
.theme-after-hours .site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.theme-after-hours .site-footer__list li { margin-bottom: 10px; }
.theme-after-hours .site-footer__list a {
  color: var(--paper-soft);
  font-family: var(--display-jp);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  position: relative;
  transition: color .2s ease;
}
.theme-after-hours .site-footer__list a:hover {
  color: var(--brass-strong);
  text-decoration: underline;
  text-decoration-color: var(--brass-deep);
  text-underline-offset: 4px;
}
.theme-after-hours .site-footer__note {
  font-family: var(--body-jp);
  font-size: 0.86rem;
  color: var(--paper-mute);
  line-height: 1.95;
  margin-top: 14px;
  letter-spacing: 0.01em;
}
.theme-after-hours .site-footer__copy {
  max-width: 1080px;
  margin: 56px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--paper-faint);
  letter-spacing: 0.12em;
}

@media (max-width: 780px) {
  .theme-after-hours .site-footer { padding: 48px 0 32px; margin-top: 56px; }
  .theme-after-hours .site-footer::before { margin-bottom: 32px; letter-spacing: 0.4em; }
  .theme-after-hours .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 22px;
  }
  .theme-after-hours .site-footer__copy { padding: 20px 22px 0; margin-top: 40px; }
}

/* ---------- Container override：少し広めに ---------- */
.theme-after-hours .container { max-width: 1140px; padding: 0 32px; }
.theme-after-hours .container.page { padding-top: 0; padding-bottom: 0; }
.theme-after-hours main .container.page > section:not(:first-child) { margin-top: 0; }

@media (max-width: 600px) {
  .theme-after-hours .container { padding: 0 22px; }
}

/* =========================================================
   ADDITIONS — bettersax / prog-8 / skillshare / hodinkee.jp 由来
   ヒーロー直下: Credentials 帯
   その下: From the player（編集者ノート）
   その下: 3 Chorus（このサイトの歩き方）
   アーカイブ: カテゴリタブ（スマホで圧縮）
   ========================================================= */

/* ---------- 奏者から（編集者ノート） ---------- */
.theme-after-hours .ah-editor {
  padding: 64px 32px 56px;
  max-width: 880px;
  margin: 0 auto;
  position: relative;
}
.theme-after-hours .ah-editor__overline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
}
.theme-after-hours .ah-editor__overline-rule {
  width: 42px;
  height: 1px;
  background: var(--brass);
}
.theme-after-hours .ah-editor__overline-text {
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  color: var(--brass);
  font-weight: 500;
}
.theme-after-hours .ah-editor__body {
  font-family: var(--display-jp);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 2;
  color: var(--paper);
  margin: 0 0 28px;
  letter-spacing: 0.025em;
  font-weight: 400;
  max-width: 720px;
}
.theme-after-hours .ah-editor__body em {
  font-style: normal;
  color: var(--brass-strong);
  font-weight: 600;
  background: linear-gradient(transparent 65%, rgba(200,166,101,0.18) 65%);
  padding: 0 2px;
}
.theme-after-hours .ah-editor__sign {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--paper-mute);
  letter-spacing: 0.06em;
}
.theme-after-hours .ah-editor__sign-rule {
  width: 32px;
  height: 1px;
  background: var(--brass-deep);
}
.theme-after-hours .ah-editor__sign-name {
  font-family: var(--display-jp);
  font-style: normal;
  color: var(--paper);
  font-weight: 600;
  letter-spacing: 0.06em;
}
@media (max-width: 720px) {
  .theme-after-hours .ah-editor { padding: 48px 22px 40px; }
  .theme-after-hours .ah-editor__body { font-size: 1rem; line-height: 1.95; }
}

/* ---------- 3 Chorus（このサイトの歩き方）---------- */
.theme-after-hours .ah-chorus {
  padding: 72px 32px 88px;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}
.theme-after-hours .ah-chorus::before {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, var(--brass-deep) 30%, var(--brass) 50%,
    var(--brass-deep) 70%, transparent 100%);
  opacity: 0.4;
  margin-bottom: 56px;
}
.theme-after-hours .ah-chorus__header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin: 0 0 40px;
  flex-wrap: wrap;
}
.theme-after-hours .ah-chorus__label {
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  color: var(--brass);
  margin: 0;
  font-weight: 500;
}
.theme-after-hours .ah-chorus__title {
  font-family: var(--display-jp);
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--paper);
  margin: 0;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
.theme-after-hours .ah-chorus__title em {
  font-style: normal;
  color: var(--brass-strong);
  font-weight: 600;
}
.theme-after-hours .ah-chorus__lede {
  font-family: var(--body-jp);
  font-size: 0.94rem;
  line-height: 1.85;
  color: var(--paper-mute);
  margin: 0 0 36px;
  max-width: 640px;
}

.theme-after-hours .ah-chorus__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.theme-after-hours .ah-chorus__item {
  position: relative;
  padding: 32px 28px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.theme-after-hours .ah-chorus__item:last-child { border-right: none; }
.theme-after-hours .ah-chorus__num {
  font-family: var(--display-jp);
  font-style: normal;
  font-size: 0.82rem;
  color: var(--brass);
  letter-spacing: 0.18em;
  font-weight: 600;
  margin: 0 0 14px;
}
.theme-after-hours .ah-chorus__verb {
  font-family: var(--display-jp);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--paper);
  margin: 0 0 12px;
  letter-spacing: 0.08em;
  line-height: 1.3;
}
.theme-after-hours .ah-chorus__desc {
  font-family: var(--body-jp);
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--paper-soft);
  margin: 0 0 22px;
  flex: 1;
}
.theme-after-hours .ah-chorus__cta {
  font-family: var(--display-jp);
  font-style: normal;
  font-size: 0.92rem;
  color: var(--brass-strong);
  text-decoration: none;
  letter-spacing: 0.06em;
  font-weight: 600;
  align-self: flex-start;
  border-bottom: 1px solid var(--brass-deep);
  padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease, transform .25s ease;
}
.theme-after-hours .ah-chorus__cta:hover {
  color: var(--paper);
  border-color: var(--paper);
  text-decoration: none;
  transform: translateX(3px);
}
.theme-after-hours .ah-chorus__cta::after {
  content: " →";
  font-style: normal;
}

@media (max-width: 780px) {
  .theme-after-hours .ah-chorus { padding: 56px 22px 64px; }
  .theme-after-hours .ah-chorus::before { margin-bottom: 36px; }
  .theme-after-hours .ah-chorus__list {
    grid-template-columns: 1fr;
  }
  .theme-after-hours .ah-chorus__item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 26px 4px 24px;
  }
  .theme-after-hours .ah-chorus__item:last-child { border-bottom: none; }
  .theme-after-hours .ah-chorus__verb { font-size: 1.3rem; }
}

/* ---------- アーカイブ：カテゴリタブ（CSS-only フィルタ）---------- */
/* ラジオは .card-grid の兄弟として #archive 直下にある。sr-only で視覚非表示。 */
.theme-after-hours #archive > input[type="radio"].sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.theme-after-hours .ah-archive-filters {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}
.theme-after-hours .ah-archive-filters label {
  cursor: pointer;
  font-family: var(--display-en);
  font-style: italic;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: var(--paper-mute);
  padding: 10px 14px 12px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.theme-after-hours .ah-archive-filters label:hover { color: var(--paper); }
.theme-after-hours .ah-archive-filters label span {
  font-family: var(--display-en);
  font-style: normal;
  color: var(--brass-deep);
  font-size: 0.78rem;
  margin-left: 4px;
  font-variant-numeric: tabular-nums;
}
/* 各ラジオ → 直後 .ah-archive-filters > label[for=...] に当てる */
.theme-after-hours #ah-filter-all:checked      ~ .ah-archive-filters label[for="ah-filter-all"],
.theme-after-hours #ah-filter-players:checked  ~ .ah-archive-filters label[for="ah-filter-players"],
.theme-after-hours #ah-filter-gear:checked     ~ .ah-archive-filters label[for="ah-filter-gear"],
.theme-after-hours #ah-filter-practice:checked ~ .ah-archive-filters label[for="ah-filter-practice"],
.theme-after-hours #ah-filter-albums:checked   ~ .ah-archive-filters label[for="ah-filter-albums"] {
  color: var(--paper);
  border-bottom-color: var(--brass);
}
.theme-after-hours #ah-filter-all:checked      ~ .ah-archive-filters label[for="ah-filter-all"] span,
.theme-after-hours #ah-filter-players:checked  ~ .ah-archive-filters label[for="ah-filter-players"] span,
.theme-after-hours #ah-filter-gear:checked     ~ .ah-archive-filters label[for="ah-filter-gear"] span,
.theme-after-hours #ah-filter-practice:checked ~ .ah-archive-filters label[for="ah-filter-practice"] span,
.theme-after-hours #ah-filter-albums:checked   ~ .ah-archive-filters label[for="ah-filter-albums"] span {
  color: var(--brass);
}

/* キーボード操作時のフォーカスリング — どのタブにフォーカスが当たっているか視認 */
.theme-after-hours #ah-filter-all:focus-visible      ~ .ah-archive-filters label[for="ah-filter-all"],
.theme-after-hours #ah-filter-players:focus-visible  ~ .ah-archive-filters label[for="ah-filter-players"],
.theme-after-hours #ah-filter-gear:focus-visible     ~ .ah-archive-filters label[for="ah-filter-gear"],
.theme-after-hours #ah-filter-practice:focus-visible ~ .ah-archive-filters label[for="ah-filter-practice"],
.theme-after-hours #ah-filter-albums:focus-visible   ~ .ah-archive-filters label[for="ah-filter-albums"] {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* デフォルト「すべて」が選択された状態 — どのカードも表示 */
.theme-after-hours #ah-filter-all:checked      ~ .card-grid .card { display: grid; }
.theme-after-hours #ah-filter-players:checked  ~ .card-grid .card { display: none; }
.theme-after-hours #ah-filter-players:checked  ~ .card-grid .card[data-cat="players"] { display: grid; }
.theme-after-hours #ah-filter-gear:checked     ~ .card-grid .card { display: none; }
.theme-after-hours #ah-filter-gear:checked     ~ .card-grid .card[data-cat="gear"] { display: grid; }
.theme-after-hours #ah-filter-practice:checked ~ .card-grid .card { display: none; }
.theme-after-hours #ah-filter-practice:checked ~ .card-grid .card[data-cat="practice"] { display: grid; }
.theme-after-hours #ah-filter-albums:checked   ~ .card-grid .card { display: none; }
.theme-after-hours #ah-filter-albums:checked   ~ .card-grid .card[data-cat="albums"] { display: grid; }

/* スマホ：タブを横スクロール */
@media (max-width: 640px) {
  .theme-after-hours .ah-archive-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -22px 22px;
    padding: 0 22px;
  }
  .theme-after-hours .ah-archive-filters::-webkit-scrollbar { display: none; }
  .theme-after-hours .ah-archive-filters label {
    font-size: 0.78rem;
    padding: 8px 10px 10px;
  }
}
