:root {
  --bg: #0e0f13;
  --bg-soft: #15171d;
  --card: #191b22;
  --card-border: #262a35;
  --text: #ecece6;
  --text-dim: #a7abb8;
  --text-faint: #6c7180;
  --accent: #e0b25a;
  --serif: "游明朝体", "Yu Mincho", YuMincho, "ヒラギノ明朝 ProN", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  --sans: "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "メイリオ", Meiryo, sans-serif;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Site header ---------- */

.site-header {
  padding: 96px 0 64px;
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(224,178,90,0.10), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 10%, rgba(127,178,217,0.10), transparent 60%);
  border-bottom: 1px solid var(--card-border);
}

.site-header .wrap { position: relative; }

.lunch-link {
  position: absolute;
  top: 0;
  right: 28px;
  padding: 8px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.4;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.lunch-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(224,178,90,0.08);
}

.site-eyebrow {
  font-size: 13px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}

.site-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.35;
  margin: 0 0 24px;
}

.site-lead {
  max-width: 680px;
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 8px;
}

.site-thesis {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--card-border);
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  max-width: 620px;
}

/* ---------- Category nav ---------- */

.cat-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(14,15,19,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--card-border);
}

.cat-nav-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 28px;
  max-width: var(--maxw);
  margin: 0 auto;
  scrollbar-width: thin;
}

.cat-nav-scroll::-webkit-scrollbar { height: 4px; }
.cat-nav-scroll::-webkit-scrollbar-thumb { background: var(--card-border); }

.cat-pill {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  color: var(--text-dim);
  font-size: 13px;
  white-space: nowrap;
  transition: border-color 0.15s, color 0.15s;
}

.cat-pill:hover { color: var(--text); border-color: var(--dot, var(--accent)); }

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
  flex: none;
}

/* ---------- Category sections ---------- */

.category-section {
  padding: 72px 0 24px;
  scroll-margin-top: 66px;
}

.category-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 6px;
}

.category-num {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--dot, var(--accent));
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 3px 11px;
}

.category-name {
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  margin: 0;
}

.category-question {
  color: var(--text-faint);
  font-size: 14.5px;
  margin: 10px 0 34px;
  max-width: 640px;
}

/* ---------- Card grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding-bottom: 8px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--dot, var(--accent));
}

.card-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--placeholder-bg, var(--bg-soft));
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-thumb.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.10), transparent 55%),
    linear-gradient(155deg, var(--dot, var(--accent)) 0%, rgba(14,15,19,0.9) 78%);
  opacity: 0.55;
}

.card-thumb .glyph {
  position: relative;
  font-family: var(--serif);
  font-size: 15px;
  color: rgba(236,236,230,0.55);
  letter-spacing: 0.05em;
}

.card-id {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11px;
  color: #fff;
  background: rgba(0,0,0,0.45);
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.06em;
  z-index: 2;
}

.card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card-title {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  margin: 0;
}

.card-teaser {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 60px;
  padding: 48px 0 80px;
  border-top: 1px solid var(--card-border);
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------- Detail page ---------- */

.detail-header {
  padding: 22px 0;
  border-bottom: 1px solid var(--card-border);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 13.5px;
}
.back-link:hover { color: var(--text); }

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  overflow: hidden;
  background: var(--bg-soft);
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-expand {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(10,11,14,0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.hero-expand:hover {
  background: rgba(10,11,14,0.8);
  border-color: rgba(255,255,255,0.5);
}

.hero-expand svg { width: 14px; height: 14px; flex: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(6,7,9,0.92);
  backdrop-filter: blur(4px);
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 101;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(10,11,14,0.6);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover { background: rgba(10,11,14,0.9); }

.hero.placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 15%, rgba(255,255,255,0.12), transparent 55%),
    linear-gradient(160deg, var(--dot, var(--accent)) 0%, rgba(14,15,19,0.92) 75%);
  opacity: 0.6;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(10,11,14,0.92) 5%, rgba(10,11,14,0.15) 55%, transparent 80%);
}

.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
  padding: 0 28px 40px;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.badge {
  font-size: 12px;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(236,236,230,0.35);
  color: var(--text);
}

.badge.accent {
  border-color: transparent;
  background: var(--dot, var(--accent));
  color: #10110f;
  font-weight: 600;
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 50px);
  margin: 0;
  line-height: 1.4;
}

.hero-subtitle {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-dim);
  font-size: 16px;
  margin: 14px 0 0;
  max-width: 640px;
}

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 28px 40px;
}

.article h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 56px 0 20px;
  padding-top: 4px;
  color: var(--text);
}

.article h2:first-child { margin-top: 0; }

.article h3 {
  font-family: var(--serif);
  font-size: 19px;
  margin: 34px 0 14px;
  color: var(--accent);
}

.article p {
  margin: 0 0 14px;
  color: #d7d8d3;
  font-size: 16px;
}

.teaser-overview p {
  font-size: 17.5px;
  line-height: 1.9;
}

.teaser-points {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
}

.teaser-points .point {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 28px;
  padding: 22px 24px;
  margin: 0 -24px;
  border-top: 1px solid var(--card-border);
  border-radius: 8px;
  transition: background 0.2s ease;
}

.teaser-points .point:last-child {
  border-bottom: 1px solid var(--card-border);
}

.teaser-points .point:hover {
  background: var(--card);
}

.teaser-points h3 {
  margin: 0;
  padding-top: 1px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

.teaser-points h3::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.teaser-points .point:hover h3::before {
  transform: scale(1.7);
}

.teaser-points p {
  margin: 0;
  font-size: 16px;
  color: #d7d8d3;
  line-height: 1.85;
}

.teaser-cta {
  margin-top: 72px;
  padding: 4px 0 0;
  text-align: center;
}

.teaser-cta::before {
  content: "";
  display: block;
  width: 40px;
  height: 2px;
  margin: 0 auto 36px;
  background: var(--dot, var(--accent));
}

.teaser-cta .cta-line {
  margin: 0 auto;
  max-width: 480px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--text);
}

@media (max-width: 560px) {
  .teaser-points .point {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.detail-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 28px 80px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--card-border);
  padding-top: 32px;
}

.nav-link {
  flex: 1;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13px;
  color: var(--text-dim);
}

.nav-link:hover { border-color: var(--accent); color: var(--text); }

.nav-link .dir { color: var(--text-faint); display: block; margin-bottom: 6px; }
.nav-link.next { text-align: right; }

@media (max-width: 640px) {
  .site-header { padding: 64px 0 44px; }
  .lunch-link {
    position: static;
    display: inline-flex;
    margin-bottom: 28px;
  }
  .article { padding: 40px 20px 20px; }
  .detail-nav { padding: 20px 20px 60px; }
}
