/*
 Theme Name:   Shiritomo AI
 Theme URI:    https://ai.shiritomo.jp
 Description:  Modern editorial news theme for Shiritomo AI — v2 redesign
 Author:       Shiritomo
 Version:      3.0.0
 License:      GNU General Public License v2 or later
 Text Domain:  shiritomo-ai
*/

/* ===================================================================
   Design Tokens
   =================================================================== */
:root {
  --indigo:    #6366F1;
  --purple:    #8B5CF6;
  --pink:      #EC4899;
  --blue:      #1D4ED8;
  --blue-500:  #3B82F6;

  --ink:       #0F172A;
  --ink-2:     #1E293B;
  --ink-3:     #334155;
  --ink-4:     #374151;
  --slate:     #64748B;
  --slate-2:   #94A3B8;

  --line:      #E2E8F0;
  --line-2:    #EEF2F7;

  --bg:        #FFFFFF;
  --bg-2:      #F8FAFC;
  --bg-3:      #F1F5F9;
  --bg-tint:   #F0F4FF;
  --bg-purple: #F5F3FF;

  --cat-ai:    #3B82F6;
  --cat-claude:#8B5CF6;
  --cat-text:  #EC4899;
}

/* ===================================================================
   Reset
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", "Noto Sans JP", system-ui, -apple-system,
               "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 15px;
  line-height: 1.7;
}
img  { max-width: 100%; display: block; height: auto; }
a    { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }

.display { font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif; letter-spacing: -.02em; }
.mono    { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ===================================================================
   Trending Bar
   =================================================================== */
.trendbar {
  height: 34px;
  overflow: hidden;
  background: linear-gradient(90deg, #4F46E5 0%, #7C3AED 35%, #EC4899 100%);
  color: #fff;
  position: relative;
}
.trendbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
  padding: 0 16px 0 0;
}
.trend-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  flex: none;
  background: #fff;
  color: #6366F1;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .06em;
  margin-left: 20px;
}
.trend-badge .spark {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #EC4899;
  box-shadow: 0 0 0 3px rgba(236,72,153,.35);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(236,72,153,.35); }
  50%       { box-shadow: 0 0 0 6px rgba(236,72,153,.05); }
}
.marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 36px;
  white-space: nowrap;
  animation: marquee-scroll 50s linear infinite;
  font-size: 12.5px;
  font-weight: 500;
}
.marquee-track a {
  color: rgba(255,255,255,.95);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.marquee-track a::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
}
.marquee-track a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===================================================================
   Header
   =================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 24px -14px rgba(15,23,42,.14);
  border-color: transparent;
}
.site-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-size: 17px;
  letter-spacing: -.01em;
  color: var(--ink);
}
.brand-star {
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);
  border-radius: 7px;
  box-shadow: 0 6px 18px -6px rgba(236,72,153,.6);
  color: #fff;
  flex: none;
}
.brand-star svg { width: 14px; height: 14px; }

/* Nav */
.site-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  margin-left: 12px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background .15s ease, color .15s ease;
}
.site-nav a:hover   { background: var(--bg-3); color: var(--ink); }
.site-nav a.current { color: var(--indigo); background: rgba(99,102,241,.08); }

/* Header end */
.header-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px 7px 12px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--slate);
  font-size: 13px;
  min-width: 200px;
  transition: border-color .15s ease, background .15s ease;
}
.search-btn:hover { border-color: var(--slate-2); background: #fff; }
.search-btn .kbd {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--slate);
}
.search-btn svg { color: var(--slate-2); }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

/* ===================================================================
   Buttons
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13.5px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s;
}
.btn-gradient {
  color: #fff;
  background: linear-gradient(135deg, #6366F1 0%, #EC4899 100%);
  box-shadow: 0 10px 24px -12px rgba(236,72,153,.7);
}
.btn-gradient:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-dark {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 6px 16px -8px rgba(15,23,42,.5);
}
.btn-dark:hover { background: #0B1220; transform: translateY(-1px); }
.btn-light {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}
.btn-light:hover { border-color: var(--ink-3); }

/* ===================================================================
   Hero / Featured
   =================================================================== */
.hero {
  position: relative;
  background:
    radial-gradient(60% 80% at 10% 0%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(50% 80% at 100% 100%, rgba(236,72,153,.12), transparent 60%),
    linear-gradient(180deg, #F0F4FF 0%, #FFFFFF 85%);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 64px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: .02em;
  box-shadow: 0 4px 14px -8px rgba(15,23,42,.1);
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #EC4899);
}

.featured-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 28px;
}

/* Category pill (hero) */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--purple);
  box-shadow: 0 6px 16px -8px rgba(139,92,246,.7);
}
.cat-pill.cat-ai    { background: var(--blue-500); box-shadow: 0 6px 16px -8px rgba(59,130,246,.7); }
.cat-pill.cat-text  { background: var(--pink);     box-shadow: 0 6px 16px -8px rgba(236,72,153,.7); }

.feat-text .cat-pill { margin-bottom: 0; }
.feat-title {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.3;
  margin: 18px 0 14px;
  color: var(--ink);
}
.feat-lead {
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.8;
  margin: 0;
  max-width: 540px;
}
.feat-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  font-size: 13px;
  color: var(--slate);
  flex-wrap: wrap;
}
.dot-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--slate-2);
}
.author-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-weight: 600;
}
.avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex: none;
  background: linear-gradient(135deg, #6366F1, #EC4899);
}
.feat-cta { display: flex; gap: 10px; align-items: center; }

/* Hero art placeholder */
.feat-art {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(15,23,42,.3), 0 12px 24px -18px rgba(15,23,42,.15);
  background:
    radial-gradient(70% 80% at 20% 10%, rgba(255,255,255,.3), transparent 60%),
    linear-gradient(135deg, #1E1B4B 0%, #4338CA 40%, #BE185D 100%);
  border: 1px solid rgba(255,255,255,.2);
}
.feat-art img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.feat-art .mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 80% 20%, rgba(251,191,36,.4), transparent 55%),
    radial-gradient(50% 50% at 30% 80%, rgba(59,130,246,.6), transparent 55%);
  mix-blend-mode: screen;
}
.feat-art .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 80%);
}
.feat-art .glyph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.feat-art .glyph svg { width: 40%; height: auto; opacity: .9; }

/* ===================================================================
   Main Layout
   =================================================================== */
.site-main { padding: 0 0 64px; }
.layout-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 48px;
}

.sec-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 22px;
}
.sec-header h2 {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
}
.sec-header h2 .count {
  font-size: 12px;
  color: var(--slate);
  background: var(--bg-3);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0;
}
.sec-header .more {
  font-size: 13px;
  font-weight: 600;
  color: var(--indigo);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.sec-header .more:hover { gap: 8px; }

/* ===================================================================
   Card Grid
   =================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  box-shadow: 0 24px 50px -24px rgba(15,23,42,.18);
  transform: translateY(-3px);
  border-color: #D4DBEB;
}
.card:hover .card-title {
  background-image: linear-gradient(90deg, #6366F1, #EC4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.card.card-wide { grid-column: 1 / -1; }

/* Thumbnail */
.thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  margin: 10px 10px 0;
}
.card-wide .thumb { aspect-ratio: 21/9; }
.thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .thumb img { transform: scale(1.04); }

/* Gradient placeholders */
.g-ai     { background: radial-gradient(60% 70% at 20% 20%,rgba(255,255,255,.3),transparent 60%), linear-gradient(135deg,#1D4ED8,#3B82F6 60%,#22D3EE); }
.g-claude { background: radial-gradient(60% 70% at 80% 20%,rgba(255,255,255,.3),transparent 60%), linear-gradient(135deg,#4C1D95,#8B5CF6 55%,#EC4899); }
.g-text   { background: radial-gradient(60% 70% at 20% 80%,rgba(255,255,255,.3),transparent 60%), linear-gradient(135deg,#BE185D,#EC4899 60%,#F97316); }
.g-ai-2   { background: radial-gradient(60% 70% at 80% 80%,rgba(255,255,255,.3),transparent 60%), linear-gradient(135deg,#0369A1,#0EA5E9 55%,#6366F1); }
.g-claude-2 { background: radial-gradient(60% 70% at 40% 30%,rgba(255,255,255,.3),transparent 60%), linear-gradient(135deg,#6D28D9,#A855F7 55%,#6366F1); }
.g-text-2 { background: radial-gradient(60% 70% at 60% 70%,rgba(255,255,255,.3),transparent 60%), linear-gradient(135deg,#9F1239,#F43F5E 55%,#F59E0B); }

.thumb .t-tag {
  position: absolute;
  left: 12px; top: 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: #fff;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(3px);
}

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

/* Category badge */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cat-badge .pill { width: 5px; height: 5px; border-radius: 50%; }
.b-ai     { background: rgba(59,130,246,.1);  color: var(--cat-ai);    }
.b-ai .pill     { background: var(--cat-ai); }
.b-claude { background: rgba(139,92,246,.1); color: var(--cat-claude); }
.b-claude .pill { background: var(--cat-claude); }
.b-text   { background: rgba(236,72,153,.1); color: var(--cat-text);   }
.b-text .pill   { background: var(--cat-text); }

.card-title {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-weight: 700;
  letter-spacing: -.015em;
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  margin: 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s ease;
}
.card-wide .card-title { font-size: 20px; }

.card-excerpt {
  color: var(--slate);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--slate);
  flex-wrap: wrap;
}
.card-meta .author-inline { font-size: 12px; }
.card-meta .author-inline .avatar { width: 22px; height: 22px; font-size: 10px; }

/* ===================================================================
   List Section (compact horizontal)
   =================================================================== */
.list-sec { margin-top: 48px; }

.list-items { display: flex; flex-direction: column; gap: 2px; }

.list-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 16px 0;
  background-image: linear-gradient(90deg, transparent 0%, var(--line-2) 15%, var(--line-2) 85%, transparent 100%);
  background-repeat: no-repeat;
  background-position: top;
  background-size: 100% 1px;
  transition: background-color .2s;
  text-decoration: none;
  color: inherit;
}
.list-item:first-child { background-image: none; }
.list-item:hover { background-color: var(--bg-2); }
.list-item:hover .list-title { color: var(--indigo); }

.list-thumb {
  width: 96px; height: 72px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  flex: none;
}
.list-thumb img { width: 100%; height: 100%; object-fit: cover; }

.list-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.list-top  { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.list-title {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  transition: color .2s;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.list-meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--slate); }
.list-read-time { font-size: 11px; color: var(--slate); }

.list-arrow {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  transition: all .2s;
  flex: none;
}
.list-item:hover .list-arrow {
  border-color: var(--indigo);
  color: var(--indigo);
  transform: translateX(2px);
}

/* ===================================================================
   Pagination
   =================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span,
.page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  border: 1px solid var(--line);
  background: #fff;
  transition: all .15s ease;
}
.pagination a:hover,
.page-numbers:hover { border-color: var(--ink-3); color: var(--ink); }
.pagination .current,
.page-numbers.current {
  background: linear-gradient(135deg, #6366F1, #EC4899);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px -10px rgba(236,72,153,.6);
}
.pagination .dots,
.page-numbers.dots { border: 0; background: transparent; color: var(--slate-2); }

/* ===================================================================
   Sidebar
   =================================================================== */
.side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 84px;
  align-self: start;
}
.side-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}
.side-box h3 {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sidebar search */
.side-search { position: relative; }
.side-search input {
  width: 100%; height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 0 14px 0 40px;
  font-size: 13.5px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.side-search input::placeholder { color: var(--slate-2); }
.side-search input:focus {
  outline: 0;
  border-color: var(--indigo);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99,102,241,.12);
}
.side-search svg {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--slate-2);
  pointer-events: none;
}

/* CTA box */
.cta-box {
  position: relative;
  overflow: hidden;
  border: 0 !important;
  padding: 22px 20px;
  color: #fff;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(251,191,36,.35), transparent 55%),
    linear-gradient(135deg, #6366F1 0%, #8B5CF6 40%, #EC4899 100%);
}
.cta-box::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,.16), transparent 50%);
  pointer-events: none;
}
.cta-box .cta-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  letter-spacing: .12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.cta-box h3 { color: #fff; font-size: 17px; line-height: 1.4; margin: 6px 0 12px; }
.cta-box p  { margin: 0 0 14px; font-size: 12.5px; color: rgba(255,255,255,.85); line-height: 1.6; }
.cta-box .btn {
  width: 100%;
  justify-content: center;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  position: relative;
}
.cta-box .btn:hover { background: rgba(255,255,255,.94); }

/* Ranking (new arrivals) */
.rank { display: flex; flex-direction: column; }
.rank-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line-2);
  text-decoration: none;
  color: inherit;
}
.rank-item:first-child { border-top: 0; padding-top: 2px; }
.rank-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--slate-2);
  letter-spacing: -.02em;
  line-height: 1.4;
}
.rank-item.top .rank-num {
  background: linear-gradient(135deg, #6366F1, #EC4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rank-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rank-item:hover .rank-title { color: var(--indigo); }
.rank-meta { font-size: 11px; color: var(--slate); margin-top: 3px; }

/* Category list */
.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background .15s;
  text-decoration: none;
}
.cat-row:hover { background: var(--bg-3); color: var(--indigo); }
.cat-row .l { display: flex; align-items: center; gap: 9px; font-weight: 500; }
.cat-row .l .pill { width: 6px; height: 6px; border-radius: 50%; }
.cat-row .n {
  font-size: 11px;
  color: var(--slate);
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  background: var(--bg-3);
  padding: 2px 8px;
  border-radius: 6px;
  min-width: 26px;
  text-align: center;
}
.cat-row:hover .n { background: #fff; color: var(--indigo); }

/* ===================================================================
   Single Article
   =================================================================== */
.article-wrap { padding: 0 0 64px; }
.layout-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 312px;
  gap: 56px;
  padding: 24px 0 0;
}

/* Breadcrumbs */
.breadcrumbs {
  padding: 22px 0 4px;
  font-size: 12.5px;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--slate); transition: color .15s; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .accent { color: var(--purple); font-weight: 600; }
.breadcrumbs .sep { color: var(--slate-2); opacity: .7; }
.breadcrumbs .cur {
  color: var(--ink);
  font-weight: 500;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Article header */
.art-header { margin: 0 0 24px; }
.tags-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.time-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--slate);
  font-size: 12px;
  font-weight: 600;
}
.time-pill svg { width: 12px; height: 12px; }

.art-title {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-weight: 800;
  letter-spacing: -.025em;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.4;
  margin: 0 0 24px;
  color: var(--ink);
  max-width: 860px;
}

/* Author bar */
.author-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.author-bar .avatar { width: 32px; height: 32px; font-size: 11px; }
.author-name {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}
.author-name b    { font-size: 13.5px; color: var(--ink); }
.author-name span { font-size: 11.5px; color: var(--slate); font-weight: 500; }

.date-info {
  font-size: 12.5px;
  color: var(--slate);
  display: flex;
  align-items: center;
  gap: 10px;
}

.share { margin-left: auto; display: flex; gap: 6px; }
.share-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--slate);
  transition: all .15s;
  background: transparent;
}
.share-btn:hover { border-color: var(--ink-3); color: var(--ink); background: var(--bg-2); }

/* Eyecatch */
.eyecatch {
  margin: 28px 0 28px;
  aspect-ratio: 16/8;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 60px -30px rgba(15,23,42,.3), 0 12px 24px -18px rgba(15,23,42,.15);
}
.eyecatch img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.eyecatch.eyecatch-placeholder {
  background:
    radial-gradient(70% 80% at 20% 10%, rgba(255,255,255,.3), transparent 60%),
    linear-gradient(135deg, #1E1B4B 0%, #4338CA 40%, #BE185D 100%);
  border: 1px solid rgba(255,255,255,.2);
}
.eyecatch .mesh {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 60% at 80% 20%, rgba(251,191,36,.35), transparent 55%),
    radial-gradient(50% 50% at 30% 80%, rgba(59,130,246,.55), transparent 55%);
  mix-blend-mode: screen;
}
.eyecatch .grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 80%);
}

/* Prose (article body) */
.prose {}
.prose p {
  color: var(--ink-4);
  font-size: 18px;
  line-height: 1.95;
  margin: 0 0 20px;
}
.prose p:first-of-type { font-size: 18.5px; }
.prose a {
  color: var(--indigo);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.prose a:hover { border-bottom-color: var(--indigo); }
.prose strong { color: var(--ink); font-weight: 700; }

.prose h2 {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.45;
  color: var(--ink);
  margin: 44px 0 18px;
  padding: 14px 18px;
  background: linear-gradient(90deg, rgba(99,102,241,.08), rgba(236,72,153,.06));
  border-left: 3px solid var(--indigo);
  border-radius: 4px 10px 10px 4px;
}
.prose h3 {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.5;
  color: var(--indigo);
  margin: 36px 0 14px;
}
.prose h3::before {
  content: "#";
  color: var(--pink);
  margin-right: 8px;
  font-weight: 400;
  opacity: .7;
}
.prose ul {
  margin: 0 0 20px;
  padding: 0 0 0 4px;
  list-style: none;
}
.prose ul li {
  position: relative;
  padding-left: 22px;
  margin: 0 0 8px;
  color: var(--ink-4);
  font-size: 16px;
  line-height: 1.75;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: .65em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, #6366F1, #EC4899);
}

.prose blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  background: var(--bg-purple);
  border-left: 4px solid var(--purple);
  border-radius: 4px 12px 12px 4px;
  font-style: italic;
  color: var(--ink-3);
  font-size: 15.5px;
  line-height: 1.8;
}
.prose blockquote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--slate);
  font-weight: 500;
}
.prose blockquote cite::before { content: "— "; }

/* Table */
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
  line-height: 1.7;
}
.prose table th,
.prose table td {
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  text-align: left;
  vertical-align: top;
}
.prose table th {
  background: rgba(99,102,241,.08);
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
  text-transform: none;
}
.prose table tr:nth-child(even) td { background: rgba(0,0,0,.025); }
.prose table tr:hover td { background: rgba(99,102,241,.05); }

/* Twitter embed */
.prose .twitter-tweet-rendered,
.prose .wp-block-embed { margin: 28px auto !important; }

/* Link cards (deep-dive section) */
.link-cards { display: grid; gap: 10px; margin: 14px 0 24px; }
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: all .15s;
  text-decoration: none;
  color: inherit;
}
.link-card:hover {
  background: var(--bg-2);
  box-shadow: 0 12px 24px -16px rgba(15,23,42,.2);
  border-color: #D4DBEB;
}

/* Summary box */
.summary-box {
  margin: 40px 0 24px;
  padding: 26px 28px;
  background: linear-gradient(135deg, rgba(99,102,241,.08) 0%, rgba(236,72,153,.06) 100%);
  border: 1px solid rgba(139,92,246,.18);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.summary-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6366F1, #EC4899);
}
.summary-label {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .02em;
  background: linear-gradient(90deg, #6366F1, #EC4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 12px;
  display: block;
}
.summary-box p { margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.85; }

/* Related articles */
.related-section { margin-top: 56px; }
.related-section h2 {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  margin: 0 0 20px;
  color: var(--ink);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ===================================================================
   Footer CTA
   =================================================================== */
.foot-cta {
  background: linear-gradient(180deg, #0B1220 0%, #0F172A 100%);
  color: #fff;
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}
.foot-cta::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 120% at 80% 0%, rgba(236,72,153,.18), transparent 55%),
    radial-gradient(50% 120% at 0% 100%, rgba(99,102,241,.22), transparent 55%);
  pointer-events: none;
}
.foot-cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
.foot-cta h3 {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-weight: 800;
  letter-spacing: -.02em;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  margin: 0 0 6px;
  color: #fff;
}
.foot-cta p { margin: 0; color: rgba(255,255,255,.65); font-size: 13.5px; max-width: 540px; }
.foot-cta .btns { display: flex; gap: 10px; }

/* ===================================================================
   Footer
   =================================================================== */
.site-footer {
  background: #0F172A;
  color: #fff;
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 40px;
}
.foot-brand .brand { color: #fff; }
.foot-brand p {
  color: rgba(255,255,255,.6);
  font-size: 13px;
  line-height: 1.7;
  margin: 14px 0 0;
  max-width: 280px;
}
.foot-col h5 {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  color: rgba(255,255,255,.5);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.foot-col ul  { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col li  { display: flex; flex-direction: column; }
.foot-col a   { font-size: 13.5px; color: rgba(255,255,255,.8); }
.foot-col a:hover { color: #fff; }

.foot-social { display: flex; gap: 8px; margin-top: 14px; }
.sc {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  transition: all .15s;
  border: 1px solid rgba(255,255,255,.08);
}
.sc:hover { background: rgba(255,255,255,.12); color: #fff; }

.foot-bar {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
}
.foot-bar .links { display: flex; gap: 20px; }
.foot-bar a { color: rgba(255,255,255,.5); transition: color .15s; }
.foot-bar a:hover { color: rgba(255,255,255,.8); }

/* ===================================================================
   404 / Archive / Search
   =================================================================== */
.error-page {
  text-align: center;
  padding: 80px 0;
}
.error-page h1 {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 8vw, 96px);
  background: linear-gradient(135deg, #6366F1, #EC4899);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 12px;
}
.error-page h2 { font-size: 24px; margin: 0 0 16px; }
.error-page p  { color: var(--slate); margin: 0 0 24px; }

.archive-header {
  padding: 40px 0 0;
  margin-bottom: 32px;
}
.archive-header h1 {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--ink);
  margin: 0 0 8px;
}
.archive-header p { color: var(--slate); margin: 0; }

/* ===================================================================
   あわせて読みたい（関連記事カード）
   =================================================================== */
.related-article {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 28px;
}

.related-article__label {
  position: relative;
  text-align: center;
  font-size: 12px;
  color: var(--slate);
  padding: 10px 16px 6px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.related-article__label::before,
.related-article__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.related-article__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.related-article__link:hover { background: var(--bg-2); }

.related-article__img {
  width: 140px;
  height: 88px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.related-article__body { flex: 1; min-width: 0; }

.related-article__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-article__excerpt {
  font-size: 12.5px;
  color: var(--slate);
  margin-top: 5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 480px) {
  .related-article__img  { width: 96px; height: 64px; }
  .related-article__title { font-size: 13.5px; }
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1024px) {
  .layout-main    { grid-template-columns: 1fr; }
  .layout-article { grid-template-columns: 1fr; }
  .side { position: static; }
  .featured-card { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-cta-inner { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .site-nav { display: none; }
  .search-btn { display: none; }
  .hamburger { display: inline-flex; }
  .hero { padding: 44px 0 48px; }
  .card-grid { grid-template-columns: 1fr; }
  .card.card-wide { grid-column: auto; }
  .foot-cta .btns { flex-wrap: wrap; }
  .list-thumb { width: 72px; height: 54px; }
  .list-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .author-bar { flex-wrap: wrap; }
  .share { margin-left: 0; order: 3; width: 100%; }
  .site-main { padding: 0 0 48px; }

  /* フォントサイズ調整 */
  body            { font-size: 17px; }
  .card-title     { font-size: 17px; }
  .card-excerpt   { font-size: 15.5px; }
  .card-meta      { font-size: 13.5px; }
  .feat-lead      { font-size: 17px; }
  .list-title     { font-size: 17px; }
  .list-meta      { font-size: 13.5px; }
  .prose p        { font-size: 17.5px; line-height: 2.0; }
  .prose p:first-of-type { font-size: 18px; }
  .prose h2       { font-size: 22px; }
  .prose h3       { font-size: 19px; }
  .prose ul li    { font-size: 17.5px; }

  /* パンくず上余白 */
  .breadcrumbs    { padding-top: 40px; }
}

/* ===================================================================
   Hub Header (category-ai / category-sns / category.php)
   =================================================================== */
.hub-header {
  background: linear-gradient(135deg, #EEF2FF 0%, #F0F4FF 60%, #FAF5FF 100%);
  border-bottom: 1px solid var(--line);
  padding: 48px 0 40px;
}

.hub-header--sns {
  background: linear-gradient(135deg, #FFF1F2 0%, #FDF4FF 60%, #FFF7ED 100%);
}

.hub-breadcrumb {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 16px;
}
.hub-breadcrumb a {
  color: var(--indigo);
}
.hub-breadcrumb a:hover { text-decoration: underline; }

.hub-title {
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 8px;
}

.hub-desc {
  font-size: 15px;
  color: var(--slate);
  margin: 0 0 24px;
}

/* ===================================================================
   Subcategory Nav Pill
   =================================================================== */
.sub-cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 20px;
}

.sub-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--ink-3);
  transition: border-color .15s, background .15s, color .15s;
}
.sub-pill:hover {
  border-color: var(--indigo);
  color: var(--indigo);
  background: var(--bg-tint);
}
.sub-pill.active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #fff;
}
.sub-pill--sns:hover,
.sub-pill--sns.active {
  border-color: var(--pink);
  color: var(--pink);
  background: #FFF1F2;
}
.sub-pill--sns.active {
  background: var(--pink);
  color: #fff;
}

.sub-count {
  font-size: 11px;
  font-weight: 500;
  opacity: .7;
}

/* ===================================================================
   Hub Section (front-page.php)
   =================================================================== */
.hub-section {
  padding-top: 56px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line-2);
}
.hub-section:first-of-type {
  border-top: none;
}

/* ===================================================================
   Renewal Banner (sitewide)
   =================================================================== */
.renewal-banner-shell {
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(99,102,241,.08), transparent 62%),
    radial-gradient(50% 120% at 100% 100%, rgba(236,72,153,.07), transparent 68%),
    #fff;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.renewal-banner {
  margin-top: 0;
}
.renewal-banner__inner {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 22px 24px 22px 28px;
  border-radius: 18px;
  background: #1F5DD8;
  color: #fff;
  box-shadow: 0 18px 36px -24px rgba(31,93,216,.75);
}
.renewal-banner__inner::before,
.renewal-banner__inner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  pointer-events: none;
}
.renewal-banner__inner::before {
  width: 190px;
  height: 190px;
  top: -92px;
  right: 250px;
}
.renewal-banner__inner::after {
  width: 280px;
  height: 280px;
  right: -118px;
  bottom: -156px;
}
.renewal-banner__content,
.renewal-banner__switch,
.renewal-banner__cta {
  position: relative;
  z-index: 1;
}
.renewal-banner__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.17);
  color: rgba(255,255,255,.96);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: .04em;
}
.renewal-banner h2 {
  margin: 10px 0 4px;
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: 0;
}
.renewal-banner p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}
.renewal-banner__switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  white-space: nowrap;
}
.renewal-banner__switch span,
.renewal-banner__switch strong {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}
.renewal-banner__switch span {
  background: #fff;
  color: #475569;
}
.renewal-banner__switch strong {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.renewal-banner__switch svg {
  color: rgba(255,255,255,.9);
  flex: none;
}
.renewal-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: #1F5DD8;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.renewal-banner__inner:hover .renewal-banner__cta,
.renewal-banner__inner:focus-visible .renewal-banner__cta {
  transform: translateX(2px);
  box-shadow: 0 10px 20px rgba(15,23,42,.18);
}

/* ===================================================================
   Login Fixed Page
   =================================================================== */
.login-page {
  padding-bottom: 0;
  background: #fff;
}
.login-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background:
    radial-gradient(55% 95% at 100% 0%, rgba(31,93,216,.16), transparent 60%),
    radial-gradient(45% 90% at 0% 100%, rgba(236,72,153,.10), transparent 62%),
    linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--line);
}
.login-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  align-items: center;
  gap: 54px;
}
.login-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #EAF1FF;
  color: #1F5DD8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
}
.login-hero h1 {
  margin: 18px 0 18px;
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--ink);
}
.login-hero__copy p {
  max-width: 700px;
  margin: 0;
  color: var(--slate);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.9;
}
.login-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.login-hero__primary,
.login-hero__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.login-hero__primary {
  gap: 8px;
  color: #fff;
  background: #1F5DD8;
  box-shadow: 0 18px 32px -24px rgba(31,93,216,.8);
}
.login-hero__secondary {
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
}
.login-hero__primary:hover,
.login-hero__secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -22px rgba(15,23,42,.45);
}
.login-service-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border-radius: 24px;
  background: #1F5DD8;
  color: #fff;
  box-shadow: 0 26px 58px -36px rgba(31,93,216,.9);
}
.login-service-card::before,
.login-service-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.10);
  pointer-events: none;
}
.login-service-card::before {
  width: 210px;
  height: 210px;
  top: -110px;
  right: -74px;
}
.login-service-card::after {
  width: 160px;
  height: 160px;
  left: -72px;
  bottom: -94px;
}
.login-service-card__top,
.login-service-card__list {
  position: relative;
  z-index: 1;
}
.login-service-card__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.13);
}
.login-service-card__top span,
.login-service-card__top strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}
.login-service-card__top span {
  background: #fff;
  color: #475569;
}
.login-service-card__top strong {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.login-service-card__top svg {
  color: rgba(255,255,255,.9);
}
.login-service-card__list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.login-service-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  font-weight: 700;
}
.login-service-card__list span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: #1F5DD8;
  font-weight: 900;
  flex: none;
}
.login-info {
  padding: 46px 0 72px;
}
.login-info__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.login-info__item {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.login-info__item span {
  display: inline-flex;
  margin-bottom: 16px;
  color: #1F5DD8;
  font-family: "JetBrains Mono", ui-monospace, Menlo, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}
.login-info__item h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Noto Sans JP", sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.45;
}
.login-info__item p {
  margin: 0;
  color: var(--slate);
  font-size: 14px;
  line-height: 1.8;
}

@media (max-width: 640px) {
  .hub-title      { font-size: 24px; }
  .hub-header     { padding: 32px 0 28px; }
  .sub-cat-nav    { gap: 6px; }
  .sub-pill       { font-size: 12px; padding: 5px 11px; }
  .hub-section    { padding-top: 40px; padding-bottom: 40px; }

  .renewal-banner {
    margin-top: 0;
  }
  .renewal-banner-shell {
    padding: 14px 0;
  }
  .renewal-banner__inner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 20px;
    border-radius: 16px;
  }
  .renewal-banner__inner::before {
    width: 150px;
    height: 150px;
    top: -76px;
    right: -48px;
  }
  .renewal-banner__inner::after {
    width: 180px;
    height: 180px;
    right: -82px;
    bottom: -116px;
  }
  .renewal-banner h2 {
    font-size: 20px;
  }
  .renewal-banner p {
    font-size: 13.5px;
  }
  .renewal-banner__switch {
    justify-content: center;
    width: 100%;
    gap: 8px;
    padding: 10px;
  }
  .renewal-banner__switch span,
  .renewal-banner__switch strong {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }
  .renewal-banner__switch svg {
    width: 28px;
  }
  .renewal-banner__cta {
    width: 100%;
  }

  .login-hero {
    padding: 42px 0 50px;
  }
  .login-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .login-hero h1 {
    font-size: 30px;
  }
  .login-hero__copy p {
    font-size: 16px;
  }
  .login-hero__actions {
    margin-top: 24px;
  }
  .login-hero__primary,
  .login-hero__secondary {
    width: 100%;
  }
  .login-service-card {
    padding: 18px;
    border-radius: 18px;
  }
  .login-service-card__top {
    gap: 8px;
    padding: 10px;
  }
  .login-service-card__top span,
  .login-service-card__top strong {
    min-height: 46px;
    padding: 10px 8px;
    font-size: 14px;
  }
  .login-service-card__top svg {
    width: 28px;
  }
  .login-info {
    padding: 34px 0 52px;
  }
  .login-info__grid {
    grid-template-columns: 1fr;
  }
}

/* ===================================================================
   Mobile Nav Drawer
   =================================================================== */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 199;
}
.nav-drawer {
  position: fixed;
  top: 0; right: 0;
  width: min(300px, 85vw);
  height: 100%;
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
}
.nav-drawer__inner {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}
.nav-drawer__close {
  align-self: flex-end;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--ink);
  margin-bottom: 12px;
  flex-shrink: 0;
}
.nav-drawer__close:hover { background: var(--bg-2); }
.nav-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-drawer__nav a {
  display: block;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s;
}
.nav-drawer__nav a:hover,
.nav-drawer__nav a.current { background: var(--bg-2); color: var(--indigo); }

.body--nav-open { overflow: hidden; }
.body--nav-open .nav-overlay { display: block; }
.body--nav-open .nav-drawer { transform: translateX(0); }

/* ── 蛍光ペンハイライト ── */
.highlight {
    background: linear-gradient(transparent 50%, #ffff66 0%);
    line-height: 1.3em;
}
