:root {
  --ink: #f8f8fb;
  --muted: rgba(248, 248, 251, .72);
  --dark: #070b26;
  --panel: #11183f;
  --line: rgba(255, 255, 255, .16);
  --paper: #fbfbff;
  --paper-ink: #151821;
  --paper-muted: #5d6475;
  --accent: #ff8a00;
  --cream: #f3edcc;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px) 0 0 / 84px 84px,
    radial-gradient(circle at 82% 12%, rgba(255,138,0,.22), transparent 30vw),
    linear-gradient(135deg, #080c2b 0%, #101846 52%, #05071b 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 35%, rgba(255,255,255,.11) 44%, transparent 53%) -160% 0 / 70% 100% no-repeat;
  animation: scan 8s linear infinite;
}

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

img {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(100% - 48px, 1180px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 13, 42, .78);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.bird-logo {
  position: relative;
  display: block;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #070715;
  background: #f3edcc;
  filter: drop-shadow(0 10px 18px rgba(255,138,0,.22));
}

.bird-logo__video,
.bird-logo__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bird-logo__video {
  transform: none;
}

.bird-logo__fallback {
  display: none;
}

.brand__text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand__name {
  color: #fff;
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.brand__sub {
  color: rgba(255,255,255,.66);
  font-family: "Courier New", monospace;
  font-size: .68rem;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 12px;
  color: rgba(255,255,255,.76);
  font-size: .86rem;
}

.nav a:hover {
  border-color: var(--line);
  color: #fff;
  background: rgba(255,255,255,.08);
}

.article-hero {
  padding: 68px 0 28px;
}

.article-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,138,0,.46);
  border-radius: 999px;
  padding: 8px 12px;
  color: #ffd8a7;
  background: rgba(255,138,0,.1);
  font-size: .8rem;
  font-weight: 700;
}

h1 {
  margin: 18px 0 16px;
  max-width: 920px;
  font-size: clamp(2rem, 5.4vw, 4.6rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.95;
}

.meta-panel {
  position: relative;
  border: 1px solid rgba(118,245,201,.18);
  border-radius: 6px;
  padding: 14px 18px 14px 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035)),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 24px 24px;
  box-shadow: 0 18px 52px rgba(0,0,0,.2);
  overflow: hidden;
}

.meta-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--accent), #19c7df);
}

.meta-panel dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 18px;
  margin: 0;
}

.meta-panel dt {
  color: rgba(255,255,255,.54);
  font-family: "Courier New", monospace;
  font-size: .78rem;
}

.meta-panel dd {
  margin: 0;
  font-weight: 700;
}

.article-shell {
  padding: 0 0 86px;
}

.article-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 34px 90px rgba(0,0,0,.32);
}

.article-cover {
  position: relative;
  background: #fff;
  aspect-ratio: 1200 / 630;
}

.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(transparent, rgba(7, 11, 38, .5));
}

.post {
  padding: clamp(24px, 5vw, 62px);
}

.post p {
  margin: 0 0 1.45em;
  color: #2d3340;
  font-size: clamp(1rem, 1.7vw, 1.08rem);
  line-height: 2.05;
}

.post h2,
.post h3 {
  letter-spacing: 0;
}

.post h2 {
  margin: 2em 0 1em;
  border-left: 6px solid var(--accent);
  padding-left: 16px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  line-height: 1.35;
}

.post h3 {
  margin: 1.8em 0 .7em;
  color: #0b102e;
  font-size: clamp(1.1rem, 2.1vw, 1.48rem);
}

.post figure {
  margin: 32px 0;
  overflow: hidden;
  border-radius: 8px;
  background: #edf1f8;
}

.post figure img {
  width: 100%;
  height: auto;
}

.post ul,
.post ol {
  margin: 0 0 1.6em;
  padding-left: 1.25em;
  color: #2d3340;
  line-height: 2;
}

.post li + li {
  margin-top: .45em;
}

.post table {
  width: 100%;
  border-collapse: collapse;
  font-size: .96rem;
  line-height: 1.75;
}

.post th,
.post td {
  border: 1px solid #dce2ee;
  padding: 14px 16px;
  vertical-align: top;
}

.post th,
.post td:first-child {
  color: #0b102e;
  background: #f2f5fa;
  font-weight: 800;
}

.post td + td {
  width: auto;
  background: #fff;
}

.post a {
  color: #0f5e9c;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wp-block-table {
  overflow-x: auto;
}

.wp-block-image,
.wp-block-table {
  margin: 32px 0;
}

.wp-block-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.wp-element-caption {
  margin-top: 10px;
  color: #5d6475;
  font-size: .88rem;
  line-height: 1.7;
}

.wp-block-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0;
}

.wp-block-column {
  min-width: 0;
}

.aligncenter,
.has-text-align-center {
  text-align: center;
}

.swl-marker {
  background: linear-gradient(transparent 58%, rgba(255, 138, 0, .24) 0);
}

.swell-block-button {
  margin: 28px 0;
}

.swell-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 16px 30px rgba(255,138,0,.26);
}

.swell-block-button__link svg {
  display: none;
}

.page-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 30px 0 0;
  border-top: 1px solid rgba(255,255,255,.18);
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(90deg, rgba(255,255,255,.045), rgba(255,255,255,0));
}

.summary-card {
  flex: 1 1 190px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.14);
  border-radius: 0;
  padding: 15px 18px 16px 14px;
  background: transparent;
}

.summary-card + .summary-card {
  padding-left: 20px;
}

.summary-card span {
  display: block;
  color: #ffd8a7;
  font-family: "Courier New", monospace;
  font-size: .72rem;
  font-weight: 800;
}

.summary-card strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: .98rem;
  line-height: 1.5;
}

.post p.post-callout,
.post .post-callout {
  position: relative;
  margin: 0 0 34px;
  border-left: 0;
  border-radius: 6px;
  padding: 18px 22px 18px 94px;
  background:
    linear-gradient(90deg, rgba(255,138,0,.18), transparent 28%),
    linear-gradient(135deg, #0b102e, #141b49 58%, #18313c);
  color: rgba(255,255,255,.9);
  font-weight: 800;
  line-height: 1.8;
  box-shadow: 0 18px 40px rgba(11,16,46,.16);
}

.post-callout::before {
  content: "UPDATE";
  position: absolute;
  left: 18px;
  top: 20px;
  color: #ffd8a7;
  font-family: "Courier New", monospace;
  font-size: .72rem;
  font-weight: 800;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(255,138,0,.26);
}

.button-link.secondary {
  border: 1px solid #d6dce9;
  background: #fff;
  color: #0b102e;
  box-shadow: none;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.gallery-item {
  overflow: hidden;
  border: 1px solid #dfe5f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(10, 18, 48, .08);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.gallery-item figcaption {
  padding: 14px 16px 16px;
  color: #232936;
  font-weight: 800;
  line-height: 1.5;
}

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

.related a {
  border: 1px solid #dfe5f1;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  color: #161b27;
  font-weight: 800;
}

.article-footer {
  color: rgba(255,255,255,.7);
  background: #070b22;
  padding: 28px 0 86px;
  text-align: center;
}

.bottom-nav {
  display: none;
}

@keyframes scan {
  to { background-position: 180% 0; }
}

@media (max-width: 900px) {
  .article-hero__grid {
    grid-template-columns: 1fr;
  }

  .nav {
    display: none;
  }

  .related {
    grid-template-columns: 1fr;
  }

  .page-summary,
  .wp-block-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .site-header__inner {
    min-height: 70px;
  }

  .bird-logo {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
  }

  .brand__name {
    font-size: 1rem;
  }

  .brand__sub {
    display: none;
  }

  .article-hero {
    padding: 40px 0 24px;
  }

  h1 {
    font-size: 2.05rem;
  }

  .article-shell {
    padding-bottom: 112px;
  }

  .post {
    padding: 24px 18px 30px;
  }

  .post th,
  .post td {
    min-width: 150px;
    padding: 12px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid rgba(255,255,255,.12);
    background: rgba(12, 15, 30, .9);
    backdrop-filter: blur(16px);
  }

  .bottom-nav a {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 72px;
    color: rgba(255,255,255,.8);
    font-size: .78rem;
  }

  .bottom-nav strong {
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
