:root {
  --ink: #05060d;
  --panel: #101525;
  --paper: #f7f3e8;
  --muted: rgba(247, 243, 232, 0.72);
  --line: rgba(255, 255, 255, 0.16);
  --cyan: #63e8ff;
  --blue: #1c5cff;
  --yellow: #eaff00;
  --red: #ff4127;
  --orange: #ff982f;
  --pink: #ff3b9f;
  --shadow: 16px 16px 0 rgba(0, 0, 0, 0.38);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 82% 8%, rgba(28, 92, 255, 0.2), transparent 27%),
    radial-gradient(circle at 10% 34%, rgba(255, 65, 39, 0.14), transparent 23%),
    var(--ink);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
  color: var(--paper);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans JP", sans-serif;
}

img {
  max-width: 100%;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 60px);
  border-bottom: 1px solid rgba(99, 232, 255, 0.24);
  background: rgba(5, 6, 13, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 6px 6px 0 rgba(255, 65, 39, 0.78);
}

.brand strong {
  font-size: 0.96rem;
  font-weight: 950;
}

.site-header nav {
  display: flex;
  gap: clamp(14px, 2.4vw, 28px);
  align-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
}

.site-header,
.site-header nav,
.brand,
main,
section,
article,
div,
figure {
  min-width: 0;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--yellow);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--paper);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    overflow: visible;
    padding: 4px 0 2px;
  }

  .site-header nav a {
    min-height: 28px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(440px, 1fr);
  min-height: calc(100svh - 78px);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  overflow: hidden;
  padding: clamp(56px, 8vw, 112px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.home-hero::before {
  position: absolute;
  left: 4%;
  top: 11%;
  width: min(32vw, 430px);
  height: min(36vw, 470px);
  background: var(--red);
  clip-path: polygon(8% 9%, 100% 0, 88% 96%, 0 84%);
  content: "";
  opacity: 0.84;
  transform: rotate(-7deg);
}

.hero-outline {
  position: absolute;
  left: 2%;
  top: 17%;
  color: transparent;
  font-size: clamp(5rem, 16vw, 19rem);
  font-weight: 950;
  line-height: 0.8;
  opacity: 0.28;
  pointer-events: none;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(247, 243, 232, 0.26);
}

.hero-copy,
.home-hero figure {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.7rem, 8vw, 9rem);
  line-height: 0.88;
  text-shadow: 5px 5px 0 rgba(255, 65, 39, 0.85), -3px -3px 0 rgba(28, 92, 255, 0.8);
  overflow-wrap: anywhere;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(247, 243, 232, 0.86);
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  font-weight: 650;
  line-height: 1.9;
}

.home-hero figure {
  min-height: min(68vh, 720px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(99, 232, 255, 0.42);
  box-shadow: 18px 18px 0 var(--red), -16px -16px 0 rgba(28, 92, 255, 0.82), var(--shadow);
}

.home-hero figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(68vh, 720px);
  object-fit: cover;
  object-position: center;
}

.featured-section,
.latest-section,
.guide-list,
.portal-grid,
.guild-code,
.principle-grid {
  padding: clamp(44px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 28px;
}

.section-heading span {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(2.4rem, 5vw, 6rem);
  line-height: 0.94;
}

.page-hero,
.principles-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  min-height: 56svh;
  gap: 36px;
  align-items: center;
  overflow: hidden;
  padding: clamp(50px, 7vw, 96px) clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}

.page-hero h1,
.principles-hero h1 {
  margin: 0;
  font-size: clamp(3.4rem, 7.5vw, 8rem);
  line-height: 0.9;
  overflow-wrap: anywhere;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.9;
}

.page-hero img,
.principles-hero img {
  width: 100%;
  height: min(46vh, 500px);
  object-fit: cover;
  border: 1px solid rgba(99, 232, 255, 0.34);
  box-shadow: 14px 14px 0 rgba(28, 92, 255, 0.6);
}

@media (max-width: 980px) {
  .home-hero,
  .page-hero,
  .principles-hero {
    grid-template-columns: 1fr;
  }

  .home-hero figure {
    min-height: 52vh;
  }

  .home-hero figure img {
    min-height: 52vh;
  }
}

@media (max-width: 620px) {
  .home-hero {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 13.5vw, 4.4rem);
    line-height: 0.94;
  }

  .home-hero figure,
  .home-hero figure img {
    min-height: 44vh;
  }
}

.primary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  margin-top: 30px;
  padding: 0 20px;
  background: var(--pink);
  color: #fff;
  font-weight: 950;
  box-shadow: 7px 7px 0 rgba(28, 92, 255, 0.72);
}

.secondary-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 20px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-weight: 950;
}

.featured-guide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.46fr);
  min-height: 360px;
  overflow: hidden;
  border: 1px solid rgba(234, 255, 0, 0.66);
  background: linear-gradient(135deg, rgba(255, 65, 39, 0.2), transparent 46%), rgba(255, 255, 255, 0.055);
  box-shadow: 14px 14px 0 rgba(28, 92, 255, 0.62);
}

.featured-guide > div {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 52px);
}

.featured-guide span,
.portal span,
.guide-card span,
.guild-code span,
.principle-grid span {
  color: var(--cyan);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.14em;
}

.featured-guide strong {
  display: block;
  margin-top: 24px;
  font-size: clamp(2rem, 4vw, 4.8rem);
  line-height: 1;
}

.featured-guide p {
  max-width: 760px;
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.85;
}

.featured-guide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
}

.portal {
  min-height: 310px;
  padding: 26px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.portal strong {
  display: block;
  margin-top: 100px;
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.94;
}

.portal p {
  margin-top: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.portal-guide { border-color: rgba(255, 65, 39, 0.62); background: linear-gradient(135deg, rgba(255, 65, 39, 0.2), transparent 55%), rgba(255,255,255,.05); }
.portal-gear { border-color: rgba(99, 232, 255, 0.62); background: linear-gradient(135deg, rgba(99, 232, 255, 0.18), transparent 55%), rgba(255,255,255,.05); }
.portal-field { border-color: rgba(234, 255, 0, 0.62); background: linear-gradient(135deg, rgba(234, 255, 0, 0.16), transparent 55%), rgba(255,255,255,.05); }

.guild-code,
.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--line);
}

.guild-code div,
.principle-grid article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid rgba(99, 232, 255, 0.3);
  background: rgba(0, 0, 0, 0.24);
}

.guild-code strong,
.principle-grid strong {
  display: block;
  margin-top: 38px;
  font-size: clamp(1.45rem, 2.5vw, 3rem);
  line-height: 1.06;
}

.principle-grid p {
  color: var(--muted);
  line-height: 1.75;
}

.guide-list {
  display: grid;
  gap: 18px;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.latest-grid .guide-card a {
  min-height: 320px;
}

.latest-grid .guide-card strong {
  font-size: clamp(1.45rem, 2.25vw, 2.7rem);
}

.guide-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.052);
}

.guide-card a {
  display: block;
  min-height: 240px;
  padding: clamp(22px, 4vw, 42px);
}

.guide-card strong {
  display: block;
  max-width: 1040px;
  margin-top: 24px;
  font-size: clamp(1.7rem, 3.2vw, 3.8rem);
  line-height: 1.06;
}

.guide-card p {
  max-width: 780px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.guide-card small {
  display: block;
  margin-top: 24px;
  color: var(--cyan);
  font-weight: 800;
}

.guide-card--guide { border-color: rgba(255, 65, 39, 0.6); background: linear-gradient(90deg, rgba(255,65,39,.16), transparent 42%), rgba(255,255,255,.05); }
.guide-card--gear { border-color: rgba(99, 232, 255, 0.6); }
.guide-card--field { border-color: rgba(234, 255, 0, 0.6); }

.empty-state {
  min-height: 280px;
  padding: clamp(24px, 5vw, 56px);
  border: 1px dashed rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.035);
}

.empty-state span { color: var(--cyan); font-size: .74rem; font-weight: 950; letter-spacing: .14em; }
.empty-state strong { display: block; margin-top: 44px; font-size: clamp(1.8rem, 4vw, 4rem); }
.empty-state p { color: var(--muted); line-height: 1.8; }
.empty-state a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 24px;
  border-bottom: 2px solid var(--yellow);
  color: var(--paper);
  font-weight: 900;
}

@media (max-width: 800px) {
  .featured-guide,
  .latest-grid,
  .portal-grid,
  .guild-code,
  .principle-grid {
    grid-template-columns: 1fr;
  }

  .featured-guide img {
    max-height: 320px;
  }
}

.article-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(44px, 7vw, 96px) clamp(18px, 5vw, 72px);
}

.article-header {
  padding-bottom: clamp(38px, 6vw, 72px);
  border-bottom: 1px solid rgba(234, 255, 0, 0.34);
}

.article-header h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(2.35rem, 4.8vw, 5.3rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-lead {
  max-width: 820px;
  margin: 30px 0 0;
  color: var(--paper);
  font-size: clamp(1.18rem, 1.7vw, 1.42rem);
  font-weight: 800;
  line-height: 2;
}

.article-body,
.article-faq,
.article-sources,
.article-next {
  max-width: 780px;
  min-width: 0;
}

.article-next {
  margin-top: clamp(58px, 9vw, 110px);
  padding-top: clamp(34px, 6vw, 64px);
  border-top: 1px solid rgba(99, 232, 255, 0.42);
}

.article-next h2 {
  margin: 0 0 26px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.article-next > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.article-next > div a {
  min-height: 150px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.045);
}

.article-next span {
  color: var(--cyan);
  font-size: .74rem;
  font-weight: 950;
}

.article-next strong {
  display: block;
  margin-top: 18px;
  line-height: 1.45;
}

.article-next-all {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 24px;
  border-bottom: 2px solid var(--yellow);
  font-weight: 900;
}

.article-body > p:first-child {
  margin-top: 44px;
  color: var(--muted);
  font-weight: 760;
}

.article-body h2,
.article-faq h2,
.article-sources h2 {
  margin: 0 0 28px;
  padding-top: clamp(52px, 8vw, 94px);
  color: var(--yellow);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.24;
}

.article-body p,
.article-body li,
.article-sources li {
  color: rgba(247, 243, 232, 0.92);
  font-size: clamp(1.16rem, 1.45vw, 1.3rem);
  font-weight: 620;
  line-height: 2.08;
}

.article-body p { margin: 0; }
.article-body p + p { margin-top: 1.55em; }
.article-body ul,
.article-body ol { margin: 1.8rem 0 0; padding-left: 1.6rem; }
.article-body li + li { margin-top: 1em; }
.article-body a,
.article-sources a { color: var(--cyan); text-decoration: underline; text-underline-offset: .22em; }

.article-body pre {
  max-width: 100%;
  margin: 2rem 0 0;
  overflow-x: auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(99, 232, 255, 0.38);
  background: rgba(2, 5, 14, 0.88);
  box-shadow: 8px 8px 0 rgba(28, 92, 255, 0.28);
  color: rgba(247, 243, 232, 0.94);
  font-size: clamp(0.86rem, 1.15vw, 1rem);
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.article-body code {
  font-family: "Cascadia Code", Consolas, monospace;
}

.article-body :not(pre) > code {
  padding: 0.15em 0.38em;
  border: 1px solid rgba(99, 232, 255, 0.22);
  background: rgba(99, 232, 255, 0.08);
  color: var(--cyan);
  font-size: 0.9em;
}

.article-summary,
.article-flow,
.article-compare,
.article-route,
.article-image {
  margin-top: clamp(32px, 5vw, 58px);
}

.article-summary,
.article-route {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(234, 255, 0, 0.56);
  background: linear-gradient(90deg, rgba(234,255,0,.13), transparent 54%), rgba(0,0,0,.28);
  box-shadow: 10px 10px 0 rgba(28, 92, 255, 0.42);
}

.article-summary span,
.article-flow span,
.article-compare span,
.article-route span {
  color: var(--cyan);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .14em;
}

.article-summary p,
.article-route p {
  margin-top: 14px;
}

.article-flow,
.article-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.article-flow div,
.article-compare article {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(99, 232, 255, 0.38);
  background: linear-gradient(135deg, rgba(99,232,255,.11), transparent 65%), rgba(255,255,255,.045);
}

.article-flow strong,
.article-compare strong,
.article-route strong {
  display: block;
  margin-top: 14px;
  font-size: clamp(1.12rem, 1.8vw, 1.6rem);
  line-height: 1.25;
}

.article-flow p,
.article-compare p,
.article-route p {
  color: rgba(247, 243, 232, 0.78);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.8;
}

.article-compare article:first-child { border-color: rgba(255,65,39,.56); background: linear-gradient(135deg, rgba(255,65,39,.14), transparent 65%), rgba(255,255,255,.045); }
.article-compare article:last-child { border-color: rgba(234,255,0,.52); background: linear-gradient(135deg, rgba(234,255,0,.12), transparent 65%), rgba(255,255,255,.045); }

.article-image {
  overflow: hidden;
  border: 1px solid rgba(99, 232, 255, 0.4);
  box-shadow: 10px 10px 0 rgba(255, 65, 39, 0.34);
}

.article-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
}

.article-image figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}

.article-sources {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.article-faq {
  margin-top: clamp(52px, 8vw, 94px);
  border-top: 1px solid rgba(234, 255, 0, 0.34);
}

.article-faq details {
  border-bottom: 1px solid var(--line);
}

.article-faq summary {
  padding: 22px 0;
  color: var(--paper);
  cursor: pointer;
  font-size: clamp(1.08rem, 1.45vw, 1.25rem);
  font-weight: 850;
  line-height: 1.65;
}

.article-faq p {
  margin: 0;
  padding: 0 0 24px;
  color: rgba(247, 243, 232, 0.78);
  font-size: 1.02rem;
  font-weight: 620;
  line-height: 1.9;
}

.article-sources li {
  font-size: 1rem;
  line-height: 1.7;
}

.article-sources small {
  display: block;
  color: var(--muted);
}

@media (max-width: 620px) {
  .article-shell {
    width: 100%;
    overflow: hidden;
    padding-inline: 16px;
  }
  .article-header h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 8.7vw, 3rem);
    line-height: 1.14;
  }
  .article-lead {
    font-size: 1.08rem;
    line-height: 1.9;
  }
  .article-body p,
  .article-body li {
    max-width: 100%;
    overflow-wrap: anywhere;
    font-size: 1.02rem;
    line-height: 1.95;
  }
  .article-body h2,
  .article-faq h2,
  .article-sources h2 {
    overflow-wrap: anywhere;
    font-size: clamp(1.55rem, 7vw, 2.25rem);
  }
  .article-flow,
  .article-compare,
  .article-next > div { grid-template-columns: 1fr; }
}

.listing-guide .page-hero { background: linear-gradient(90deg, rgba(255,65,39,.12), transparent 48%); }
.listing-gear .page-hero { background: linear-gradient(90deg, rgba(99,232,255,.12), transparent 48%); }
.listing-field .page-hero { background: linear-gradient(90deg, rgba(234,255,0,.1), transparent 48%); }

.principles-hero {
  background: linear-gradient(90deg, rgba(28, 92, 255, 0.18), transparent 52%);
}

.principle-grid article:nth-child(1) { border-color: rgba(255,65,39,.56); }
.principle-grid article:nth-child(2) { border-color: rgba(247,243,232,.48); }
.principle-grid article:nth-child(3) { border-color: rgba(99,232,255,.56); }

.category-guide .article-header { border-bottom-color: rgba(255,65,39,.48); }
.category-gear .article-header { border-bottom-color: rgba(99,232,255,.48); }
.category-field .article-header { border-bottom-color: rgba(234,255,0,.48); }

.not-found {
  min-height: calc(100svh - 150px);
  padding: clamp(70px, 12vw, 160px) clamp(18px, 7vw, 96px);
}

.not-found h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: .96;
}

.not-found > p:not(.eyebrow) {
  margin-top: 30px;
  color: var(--muted);
  font-size: 1.2rem;
}

.not-found > div {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}
