/* 夜更けのレビュー — dark, image-first theme */

:root {
  --ink: #14121a;
  --surface: #1d1a26;
  --surface-2: #262230;
  --line: #34303f;
  --text: #eae7f0;
  --muted: #9a93ac;
  --accent: #ef4565;
  --accent-soft: rgba(239, 69, 101, 0.14);
  --gold: #f0b429;
  --font-display: "Shippori Mincho B1", serif;
  --font-body: "Zen Kaku Gothic New", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(239, 69, 101, 0.08), transparent 60%),
    var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.8;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* --- header / footer --- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(20, 18, 26, 0.85);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: baseline; gap: 12px; padding: 12px 16px; }
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: 0.06em;
}
.brand:hover { text-decoration: none; color: var(--accent); }
.brand-sub { margin: 0; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.2em; }

.site-footer {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.75rem;
}
.footer-nav { margin-bottom: 14px; font-size: 0.8rem; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--accent); }
.copyright { margin-top: 14px; letter-spacing: 0.1em; }

/* --- tags --- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0; }
.tag {
  font-size: 0.75rem;
  padding: 3px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  transition: all 0.15s ease;
}
.tag:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
.tag-mini { font-size: 0.68rem; padding: 2px 8px; }

/* --- image-first card grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
@media (max-width: 480px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.card { min-width: 0; }
.card-link { color: var(--text); display: block; }
.card-link:hover { text-decoration: none; }

.card-thumb {
  position: relative;
  aspect-ratio: 800 / 538;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.25s ease; }
.card-link:hover .card-thumb { border-color: var(--accent); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.card-link:hover .card-thumb img { transform: scale(1.05); }

.source-badge {
  position: absolute;
  right: 6px; top: 6px;
  padding: 1px 8px;
  border-radius: 4px;
  background: rgba(12, 10, 16, 0.82);
  backdrop-filter: blur(4px);
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.rating-badge {
  position: absolute;
  left: 6px; bottom: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(12, 10, 16, 0.82);
  backdrop-filter: blur(4px);
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.rating-badge small { color: var(--muted); font-weight: 500; }

.card-title {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 8px 2px 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-link:hover .card-title { color: var(--accent); }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 2px; }

/* --- pagination --- */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: 24px;
  margin: 36px 0; color: var(--muted);
}

/* --- tag page heading --- */
.hero-small { padding: 28px 0 4px; }
.hero-small h1 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0;
}
.hero-small h1 em {
  font-style: normal;
  color: var(--accent);
}

/* --- article --- */
.post { max-width: 720px; margin: 28px auto 0; }
.pr-label { color: var(--muted); font-size: 0.72rem; margin: 0 0 6px; }
.post h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  line-height: 1.55;
  margin: 0 0 8px;
}
.post-meta { color: var(--muted); font-size: 0.82rem; margin: 0 0 16px; }
.stars { color: var(--gold); font-weight: 700; }
.post-image { margin: 0 0 14px; }
.post-image img { border-radius: 10px; border: 1px solid var(--line); width: 100%; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  margin: 18px 0 24px;
  background: var(--surface);
  border-radius: 10px;
  overflow: hidden;
}
.spec-table th, .spec-table td { padding: 8px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.spec-table th { color: var(--muted); white-space: nowrap; width: 88px; font-weight: 500; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

.post-body { font-size: 0.94rem; }
.post-body h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 36px 0 12px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  line-height: 1.5;
}
.post-body h3 { font-family: var(--font-display); font-size: 1rem; margin: 26px 0 8px; }
.post-body p { margin: 0 0 1.1em; }
.post-body ul { padding-left: 1.4em; }

/* --- CTA --- */
.cta { margin: 28px 0; text-align: center; }
.cta-top { margin: 0 0 8px; }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(239, 69, 101, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(239, 69, 101, 0.5); }
.btn-large { font-size: 1rem; padding: 14px 36px; width: 100%; max-width: 440px; }

/* --- related --- */
.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 56px 0 2px;
  padding-left: 12px;
  border-left: 4px solid var(--gold);
}
