:root {
  --navy: #071432;
  --navy-2: #0f1f46;
  --navy-3: #182a5f;
  --purple: #7c4dff;
  --purple-soft: #d8ceff;
  --white: #ffffff;
  --ink: #111a35;
  --muted: #687087;
  --line: #d8deef;
  --paper: #f8faff;
  --shadow: 0 16px 34px rgba(5, 12, 34, 0.22);
  --mint: #51d7d2;
  --yellow: #f4dc6a;
  --pink: #ff70b8;
  --blue: var(--purple);
  --mint-deep: #4e35d8;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--white);
  background-color: var(--navy);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='220' viewBox='0 0 260 220'%3E%3Ctext x='24' y='58' font-family='Arial,sans-serif' font-size='42' font-weight='900' fill='%23ffffff' opacity='.075' transform='rotate(-10 24 58)'%3E=%3C/text%3E%3Ctext x='168' y='48' font-family='Arial,sans-serif' font-size='36' font-weight='900' fill='%237c4dff' opacity='.20' transform='rotate(12 168 48)'%3E%E2%89%A0%3C/text%3E%3Ctext x='74' y='148' font-family='Arial,sans-serif' font-size='34' font-weight='900' fill='%23ffffff' opacity='.07' transform='rotate(8 74 148)'%3E%E2%89%92%3C/text%3E%3Ctext x='202' y='186' font-family='Arial,sans-serif' font-size='44' font-weight='900' fill='%23d8ceff' opacity='.12' transform='rotate(-16 202 186)'%3E=%3C/text%3E%3C/svg%3E"),
    radial-gradient(circle at 12% 9%, rgba(124, 77, 255, 0.38), transparent 22rem),
    radial-gradient(circle at 90% 13%, rgba(255, 255, 255, 0.12), transparent 19rem),
    radial-gradient(circle at 70% 38%, rgba(124, 77, 255, 0.18), transparent 18rem),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 48%, #060d24 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.7;
}

a {
  color: inherit;
}

.site-header {
  border-bottom: 4px solid var(--white);
  background: rgba(7, 20, 50, 0.94);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}

.header-inner,
.hero,
.main-layout,
.footer-inner,
.page-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.3rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border: 3px solid var(--white);
  border-radius: 12px;
  background:
    linear-gradient(180deg, transparent 0 27%, var(--white) 27% 40%, transparent 40% 60%, var(--white) 60% 73%, transparent 73% 100%),
    linear-gradient(135deg, var(--purple), #4527a8);
  box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.28);
  position: relative;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  font-weight: 900;
  color: var(--purple-soft);
  text-shadow: 1px 1px 0 var(--navy);
}

.brand-mark::before {
  content: "≠";
  left: -13px;
  top: -16px;
  font-size: 1rem;
}

.brand-mark::after {
  content: "≒";
  right: -16px;
  bottom: -15px;
  font-size: 1rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-nav a,
.chip-row button,
.article-link {
  min-height: 38px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  padding: 7px 13px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--purple);
}

.hero {
  padding: 28px 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.55fr);
  gap: 26px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  font-weight: 900;
  color: var(--purple-soft);
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.02rem;
}

.page-hero {
  padding: 28px 0 20px;
}

.detail-hero {
  min-height: 170px;
  display: grid;
  align-content: center;
}

.detail-hero h1 {
  max-width: 820px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
}

.detail-hero p {
  max-width: 760px;
  margin: 14px 0 0;
}

.hero-art {
  min-height: 210px;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.75);
  border-radius: 22px;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.16), transparent 42px),
    linear-gradient(135deg, rgba(124, 77, 255, 0.72), rgba(255, 255, 255, 0.08));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-art::before,
.hero-art::after,
.hero-art span {
  position: absolute;
  font-family: Arial, sans-serif;
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  text-shadow: 5px 5px 0 rgba(7, 20, 50, 0.34);
}

.hero-art::before {
  content: "=";
  left: 22px;
  top: 12px;
  font-size: 7.8rem;
  transform: rotate(-9deg);
}

.hero-art::after {
  content: "≠";
  right: 20px;
  top: 34px;
  font-size: 4.6rem;
  color: var(--purple-soft);
  transform: rotate(11deg);
}

.hero-art span {
  right: 70px;
  bottom: 20px;
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.9);
  transform: rotate(-13deg);
}

.hero-art span::before,
.hero-art span::after {
  position: absolute;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.72);
}

.hero-art span::before {
  content: "≒";
  left: 0;
  top: 0;
  font-size: inherit;
}

.hero-art span::after {
  content: "=";
  right: -58px;
  bottom: -22px;
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.stats span {
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 8px 12px;
  font-weight: 800;
}

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
  padding: 16px 0 56px;
}

.content,
.sidebar,
.page-hero,
.static-page {
  min-width: 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.45rem;
}

.section-title p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.filter-panel,
.side-panel,
.static-page {
  border: 3px solid var(--white);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 16px;
}

.filter-panel h2,
.side-panel h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip-row button {
  cursor: pointer;
}

.chip-row button[aria-pressed="true"] {
  background: var(--purple);
  color: var(--white);
  border-color: var(--purple-soft);
}

.article-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.article-card,
.link-card,
.index-tile {
  display: block;
  border: 3px solid var(--white);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  padding: 16px;
  box-shadow: 4px 4px 0 rgba(124, 77, 255, 0.45);
  text-decoration: none;
}

.article-card h2 {
  margin: 8px 0 10px;
  font-size: 1rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-title-link {
  color: var(--ink);
  text-decoration: none;
}

.article-title-link:hover,
.article-title-link:focus-visible {
  color: var(--mint-deep);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.article-summary {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-meta span,
.article-meta time,
.tag-row span {
  border-radius: 999px;
  background: #f1edff;
  padding: 4px 9px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.tag-row span:nth-child(2) {
  background: #eef2ff;
}

.tag-row span:nth-child(3) {
  background: #f7f5ff;
}

.article-link {
  display: inline-flex;
  margin-top: 12px;
  background: var(--purple);
  color: var(--white);
}

.ad-slot {
  min-height: 110px;
  border: 2px dashed rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(216, 206, 255, 0.92));
  color: var(--ink);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
}

.article-list > .ad-slot,
.more-row {
  grid-column: 1 / -1;
}

.more-row {
  display: grid;
  place-items: center;
  padding: 6px 0 0;
}

.more-row button {
  min-height: 42px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--white), var(--purple-soft));
  color: var(--navy);
  padding: 8px 18px;
  font-weight: 900;
  box-shadow: 4px 4px 0 rgba(43, 38, 48, 0.18);
  cursor: pointer;
}

.ad-slot span {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--purple);
}

.ad-slot strong {
  display: block;
  font-size: 0.92rem;
}

.index-grid,
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.index-tile strong,
.link-card strong {
  display: block;
  font-size: 1.03rem;
}

.index-tile span,
.link-card span {
  color: var(--muted);
  font-weight: 800;
}

.empty {
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 22px;
  color: var(--muted);
  font-weight: 800;
}

.static-page {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 56px;
}

.static-page h2 {
  border-left: 8px solid var(--purple);
  padding-left: 10px;
}

.site-footer {
  border-top: 4px solid var(--white);
  background: #030819;
  color: var(--white);
}

.footer-inner {
  padding: 28px 0;
}

.footer-inner a {
  color: var(--purple-soft);
}

@media (max-width: 780px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .main-layout {
    grid-template-columns: 1fr;
  }

  .article-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-art {
    min-height: 170px;
  }

  .hero-art::before {
    left: 18px;
    top: 22px;
    font-size: 5.8rem;
  }

  .hero-art::after {
    right: 18px;
    top: 36px;
    font-size: 3.6rem;
  }

  .hero-art span {
    right: 44px;
    bottom: 12px;
    font-size: 3.9rem;
  }

  .site-nav a,
  .chip-row button,
  .article-link {
    font-size: 0.82rem;
    padding: 6px 10px;
  }
}

@media (min-width: 781px) and (max-width: 1080px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .article-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
