/*
Theme Name: SEO Case Portal
Theme URI: https://example.com/
Author: Your Name
Description: SEO事例ポータル用のオリジナルテーマ
Version: 1.0
*/

:root {
  --bg: #0f172a;
  --bg-alt: #020617;
  --card-bg: #0b1220;
  --accent: #38bdf8;
  --accent-soft: rgba(56,189,248,0.15);
  --text-main: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: #1f2937;
  --radius-lg: 18px;empty
  --shadow-soft: 0 18px 40px rgba(15,23,42,0.65);
  --max-width: 1120px;
  --transition-fast: 0.18s ease-out;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #1d283a 0, #020617 55%, #000 100%);
  color: var(--text-main);
  line-height: 1.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  opacity: .9;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(22px);
  background: linear-gradient(to bottom, rgba(15,23,42,0.96), rgba(15,23,42,0.75), transparent);
  border-bottom: 1px solid rgba(148,163,184,0.35);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: .03em;
}
.site-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(from 200deg, #38bdf8, #a855f7, #22c55e, #38bdf8);
  padding: 1px;
}
.site-logo-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #020617;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size: 13px;
  color:#e5e7eb;
}

.site-nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}
.site-nav a {
  color: var(--text-muted);
  padding: 6px 0;
  position: relative;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #22c55e, #38bdf8, #a855f7);
  transition: width var(--transition-fast);
}
.site-nav a:hover::after,
.site-nav .current-menu-item a::after,
.site-nav .current_page_ancestor > a::after {
  width: 100%;
}

/* Hero */
.hero {
  max-width: var(--max-width);
  margin: 22px auto 8px;     /* 上下を少し減らす */
  padding: 0 28px 26px;      /* 下パディングを控えめに */
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr);
  gap: 36px;
  align-items: center;
}
.hero-title {
  font-size: clamp(30px, 3.6vw, 38px);
  letter-spacing: .02em;
  margin: 10px 0 10px;
}
.hero-lead {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 520px;          /* 読みやすい幅に */
}

.hero-meta {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--text-muted);
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.btn-primary,
.btn-ghost {
  border-radius: 999px;
  font-size: 13px;
  padding: 9px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}
.btn-primary {
  background: linear-gradient(135deg, #22c55e, #38bdf8);
  color: #0b1120;
  box-shadow: 0 15px 35px rgba(34,197,94,0.35);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(34,197,94,0.45);
}
.btn-ghost {
  background: rgba(15,23,42,0.75);
  color: var(--text-main);
  border-color: rgba(148,163,184,0.6);
}
.btn-ghost:hover {
  background: rgba(15,23,42,0.95);
}


.hero-visual {
  position: relative;
}
.hero-panel {
  border-radius: 24px;
  background: radial-gradient(circle at top left, #1e293b, #020617 55%);
  border: 1px solid rgba(148,163,184,0.4);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
}
.hero-panel-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:11px;
  margin-bottom:10px;
  color:var(--text-muted);
}
.hero-panel-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
.hero-card {
  border-radius: 14px;
  padding:10px 11px;
  background: radial-gradient(circle at top, rgba(56,189,248,0.18), rgba(15,23,42,0.8));
  border:1px solid rgba(148,163,184,0.4);
}
.hero-card-title {
  font-size:11px;
  color: var(--text-muted);
}
.hero-card-value {
  font-size:16px;
  font-weight:600;
}
.hero-card-sub {
  font-size:11px;
  color: var(--text-muted);
}

/* Layout */
.main {
  flex: 1;
}

.section {
  max-width: var(--max-width);
  margin: 0 auto 24px;      /* 32px → 24px に縮める */
  padding: 0 28px 18px;     /* 横を少し広く・下だけ余白 */
}
.section-header {
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  margin-bottom:10px;       /* 14px → 10px */
}
.section-title {
  font-size:18px;
  font-weight:600;
  color: var(--text-main);  /* 薄グレー → メイン色に */
}
.section-desc {
  font-size:13px;
  color:var(--text-muted);
}

/* Card grid */
.card-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap:16px;
}
.card {
  background: radial-gradient(circle at top, rgba(15,23,42,0.9), rgba(2,6,23,1));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding:14px 14px 13px;
  position: relative;
  overflow:hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(56,189,248,0.7);
  background: radial-gradient(circle at top, rgba(56,189,248,0.13), rgba(2,6,23,1));
}
.card-tag-row {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-bottom:8px;
}
.card-tag {
  font-size:11px;
  padding:2px 8px;
  border-radius:999px;
  background: rgba(15,23,42,0.9);
  color: var(--text-muted);
  border: 1px solid rgba(148,163,184,0.35);
}
.card-title {
  font-size:14px;
  font-weight:600;
  margin: 0 0 6px;
}
.card-meta {
  font-size:11px;
  color:var(--text-muted);
}

.sort-bar {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
  font-size:12px;
  flex-wrap:wrap;
}
.sort-summary {
  padding-top:6px;
  color: var(--text-muted);
}
.sort-form {
  display:flex;
  align-items:flex-end;
  gap:8px;
}
.sort-form--wide {
  flex:1;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.sort-field {
  display:flex;
  flex-direction:column;
  gap:4px;
}
.sort-field label {
  font-size:11px;
  color: var(--text-muted);
}
.sort-input {
  background:#020617;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.6);
  padding:4px 10px;
  color:var(--text-main);
  font-size:12px;
}
.sort-input::placeholder {
  color:rgba(148,163,184,0.8);
}

@media (max-width: 820px) {
  .sort-form--wide {
    justify-content:flex-start;
  }
}


/* Pagination */
.pagination {
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:20px;
}
.pagination a,
.pagination span {
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.5);
  color:var(--text-muted);
}
.pagination .current {
  background: var(--accent);
  color:#020617;
  border-color:transparent;
}

/* Single layout */
.single-header {
  max-width: var(--max-width);
  margin: 30px auto 18px;
  padding: 0 20px;
}
.single-eyebrow {
  font-size:12px;
  color:var(--accent);
  letter-spacing:.1em;
  text-transform:uppercase;
}
.single-title {
  font-size:26px;
  margin: 8px 0 6px;
}
.single-meta {
  font-size:12px;
  color:var(--text-muted);
}

.single-body {
  max-width: var(--max-width);
  margin: 0 auto 40px;
  padding: 0 20px 30px;
  display:grid;
  grid-template-columns: minmax(0,2fr) minmax(260px,1fr);
  gap:26px;
}
.single-main {
  background:#020617;
  border-radius:var(--radius-lg);
  border:1px solid var(--border-subtle);
  padding:18px 18px 20px;
}
.single-main h2 {
  font-size:18px;
  margin-top:20px;
}
.single-main p {
  font-size:14px;
}

.single-aside {
  background: radial-gradient(circle at top, rgba(56,189,248,0.18), rgba(15,23,42,0.9));
  border-radius:var(--radius-lg);
  border:1px solid rgba(148,163,184,0.7);
  padding:16px 16px 14px;
}
.aside-title {
  font-size:13px;
  font-weight:600;
  margin-bottom:8px;
}
.aside-list {
  list-style:none;
  padding:0;
  margin:0;
  font-size:12px;
}
.aside-list li {
  display:flex;
  justify-content:space-between;
  gap:8px;
  padding:6px 0;
  border-bottom:1px dashed rgba(148,163,184,0.4);
}
.aside-label {
  color:var(--text-muted);
}
.aside-value {
  font-weight:500;
}

/* Footer */
.site-footer {
  margin-top:auto;
  border-top:1px solid rgba(148,163,184,0.25);
  background:#020617;
}
.site-footer-inner {
  max-width:var(--max-width);
  margin:0 auto;
  padding:14px 20px 20px;
  font-size:11px;
  color:var(--text-muted);
  display:flex;
  justify-content:space-between;
  gap:10px;
}

/* Responsive */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: minmax(0,1fr);
  }
  .single-body {
    grid-template-columns: minmax(0,1fr);
  }
  .site-nav ul {
    gap: 12px;
    font-size:13px;
  }
}

/* カードのベースはそのまま */

.card--empty {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}
.card--empty .card-title {
  font-size: 13px;
}
.card--empty .card-meta {
  font-size: 12px;
}