/*
Theme Name: WILD LAB HQ
Theme URI: https://thewildtongues.com/
Author: WILD LAB
Description: A lightweight WordPress theme for WILD LAB, a Language x Anime x AI Edutainment Lab.
Version: 0.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wild-lab-hq
*/

:root {
  --wl-ink: #f5f7fa;
  --wl-paper: #0b0d10;
  --wl-panel: #171c25;
  --wl-panel-soft: #10151d;
  --wl-muted: #aab3c2;
  --wl-soft: #d8dee8;
  --wl-line: #303947;
  --wl-line-soft: rgba(216, 222, 232, 0.08);
  --wl-acid: #c9f227;
  --wl-cyan: #4dd8d4;
  --wl-coral: #ff8068;
  --wl-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --wl-radius: 8px;
  --wl-max: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #0b0d10 0%, #0d1117 44%, #090b0e 100%);
  color: var(--wl-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration-color: var(--wl-cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--wl-acid);
}

img {
  height: auto;
  max-width: 100%;
}

.site-header {
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--wl-line-soft);
  background: rgba(11, 13, 16, 0.86);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner,
.site-footer__inner,
.wrap {
  margin: 0 auto;
  max-width: var(--wl-max);
  padding: 0 clamp(20px, 4vw, 32px);
}

.site-header__inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 74px;
}

.site-branding {
  display: grid;
  gap: 0;
  text-decoration: none;
}

.site-title {
  color: var(--wl-ink);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-tagline {
  color: var(--wl-muted);
  font-size: 0.78rem;
  line-height: 1.3;
}

.site-nav ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--wl-muted);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  color: var(--wl-ink);
}

.site-main {
  min-height: 64vh;
}

.hero {
    background: transparent;
    border-bottom: 1px solid var(--wl-line-soft);
    overflow: hidden;
    position: relative;
    display: flex; /* 追加：コンテンツ配置を安定させるため */
    align-items: center; /* 追加：縦位置を中央にするため */
    min-height: 590px; /* 重要：動画が表示される高さを強制確保 */
}

.hero::after {
}

.hero__inner {
  align-items: center;
  display: grid;
  gap: clamp(30px, 5vw, 58px);
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
  min-height: 590px;
  padding-bottom: clamp(58px, 8vw, 92px);
  padding-top: clamp(66px, 8vw, 102px);
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 800px;
}

.eyebrow {
  color: var(--wl-cyan);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  color: #ffffff;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin: 0;
  max-width: 850px;
}

.hero__copy {
  color: var(--wl-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
  line-height: 1.65;
  margin-bottom: 0;
  margin-top: 22px;
  max-width: 680px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  align-items: center;
  border: 1px solid rgba(216, 222, 232, 0.18);
  border-radius: var(--wl-radius);
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  line-height: 1.1;
  min-height: 50px;
  padding: 12px 18px;
  text-decoration: none;
}

.button--primary {
  background: var(--wl-acid);
  border-color: var(--wl-acid);
  color: #10120d;
  box-shadow: 0 14px 32px rgba(201, 242, 39, 0.16);
}

.button--primary:hover,
.button--primary:focus {
  color: #10120d;
  filter: brightness(1.06);
}

.button--secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--wl-ink);
}

.button--secondary:hover,
.button--secondary:focus {
  border-color: var(--wl-cyan);
  color: var(--wl-cyan);
}

.lab-panel {
  align-self: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02)),
    var(--wl-panel);
  border: 1px solid rgba(216, 222, 232, 0.14);
  border-radius: var(--wl-radius);
  box-shadow: var(--wl-shadow);
  padding: clamp(24px, 4vw, 34px);
}

.lab-panel__label {
  color: var(--wl-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lab-panel__formula {
  display: grid;
  font-size: 1.12rem;
  font-weight: 900;
  gap: 14px;
  line-height: 1.25;
  margin-top: 22px;
}

.lab-panel__formula span {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--wl-line-soft);
  border-radius: var(--wl-radius);
  padding: 13px 14px;
}

.section {
  padding: clamp(70px, 9vw, 104px) 0;
}

.hero + .section {
  padding-top: clamp(62px, 7vw, 86px);
}

.section + .section {
  border-top: 1px solid var(--wl-line-soft);
}

.section__header {
  display: grid;
  gap: 12px;
  margin-bottom: 0;
  max-width: 760px;
}

.section h2,
.entry-title {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.7rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
}

.section p,
.entry-content p {
  color: var(--wl-muted);
  max-width: 70ch;
  margin-top: 0;
}

.grid {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
}

.grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 100%),
    var(--wl-panel-soft);
}

.feature-section:nth-of-type(odd) {
  background: #0c1016;
}

.feature-copy {
  align-self: end;
  background: rgba(255, 255, 255, 0.025);
  border-left: 3px solid rgba(77, 216, 212, 0.7);
  font-size: 1.06rem;
  max-width: 620px;
  padding: 4px 0 4px 22px;
}

.feature-copy p:last-child {
  margin-bottom: 0;
}

.card,
.post-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--wl-panel);
  border: 1px solid rgba(216, 222, 232, 0.13);
  border-radius: var(--wl-radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  padding: clamp(22px, 4vw, 30px);
}

.card h3,
.post-card h3 {
  color: var(--wl-ink);
  font-size: 1.25rem;
  line-height: 1.15;
  margin: 0 0 10px;
}

.card__tag {
  color: var(--wl-cyan);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(201, 242, 39, 0.08), transparent 38%),
    #11151c;
  color: var(--wl-ink);
}

.cta-band a {
  color: var(--wl-ink);
}

.cta-band .button--primary {
  color: #10120d;
}

.cta-band .button--secondary {
  color: var(--wl-ink);
}

.latest-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card__meta,
.entry-meta {
  color: var(--wl-cyan);
  font-size: 0.86rem;
  font-weight: 750;
}

.content-area {
  padding: 64px 0;
}

.entry {
  background: var(--wl-panel);
  border: 1px solid rgba(216, 222, 232, 0.13);
  border-radius: var(--wl-radius);
  padding: clamp(24px, 5vw, 48px);
}

.entry-content {
  max-width: 780px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.page-landing {
  max-width: none;
}

.landing-lead {
  color: var(--wl-soft);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  line-height: 1.65;
  max-width: 760px;
}

.landing-block {
  border-top: 1px solid var(--wl-line-soft);
  margin-top: clamp(34px, 6vw, 58px);
  padding-top: clamp(28px, 5vw, 46px);
}

.landing-block h2,
.page-landing h2 {
  color: #ffffff;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  line-height: 1.12;
  margin: 0 0 18px;
}

.landing-grid {
  display: grid;
  gap: 18px;
}

.landing-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-card,
.signup-placeholder {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--wl-panel);
  border: 1px solid rgba(216, 222, 232, 0.13);
  border-radius: var(--wl-radius);
  padding: clamp(22px, 4vw, 30px);
}

.landing-card h3 {
  color: var(--wl-ink);
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 0 0 10px;
}

.landing-card p,
.signup-placeholder p {
  margin-bottom: 0;
}

.landing-split {
  display: grid;
  gap: clamp(20px, 4vw, 38px);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.signup-placeholder {
  border-color: rgba(77, 216, 212, 0.28);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.legal-placeholder .landing-block p {
  max-width: 820px;
}

.archive-list {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.site-footer {
  background: #08090b;
  border-top: 1px solid var(--wl-line-soft);
  color: var(--wl-ink);
  padding: 36px 0;
}

.site-footer__inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.site-footer__links a {
  color: var(--wl-muted);
  font-size: 0.86rem;
  text-decoration: none;
}

.site-footer__links a:hover,
.site-footer__links a:focus {
  color: var(--wl-acid);
}

/* Dark override for fixed WordPress pages. */
body.page {
  background:
    linear-gradient(180deg, #0b0d10 0%, #0d1117 44%, #090b0e 100%);
  color: var(--wl-ink);
}

body.page main,
body.page .site-main {
  background: transparent;
  color: var(--wl-ink);
}

body.page .section {
  background: var(--wl-paper);
  border-top: 1px solid var(--wl-line-soft);
  color: var(--wl-ink);
}

body.page .section:first-child {
  border-top: 0;
}

body.page .feature-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 100%),
    var(--wl-panel-soft);
}

body.page .cta-band {
  background:
    linear-gradient(135deg, rgba(201, 242, 39, 0.08), transparent 38%),
    #11151c;
  color: var(--wl-ink);
}

body.page .card,
body.page .feature-copy {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    var(--wl-panel);
  border-color: rgba(216, 222, 232, 0.13);
  color: var(--wl-ink);
}

body.page .section__header,
body.page .wrap {
  color: var(--wl-ink);
}

body.page .page-title,
body.page h1,
body.page h2,
body.page h3 {
  color: #ffffff;
}

body.page p,
body.page li {
  color: var(--wl-muted);
}

body.page a {
  color: inherit;
}

body.page a:hover,
body.page a:focus {
  color: var(--wl-acid);
}

body.page .button {
  border-color: rgba(216, 222, 232, 0.18);
  color: var(--wl-ink);
}

body.page .button--primary {
  background: var(--wl-acid);
  border-color: var(--wl-acid);
  color: #10120d;
}

@media (max-width: 820px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
    padding-top: 16px;
  }

  .site-nav ul {
    gap: 10px 14px;
    justify-content: flex-start;
  }

  .hero__inner,
  .grid--three,
  .grid--two {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    min-height: auto;
    padding-bottom: 56px;
    padding-top: 54px;
  }

  .hero h1,
  .page-title {
    font-size: clamp(2.9rem, 16vw, 4.7rem);
    line-height: 0.96;
  }

  .hero__copy {
    font-size: clamp(1.04rem, 3.4vw, 1.18rem);
    line-height: 1.68;
  }

  .section {
    padding: 62px 0;
  }

  .section__header {
    max-width: none;
  }

  .feature-copy {
    align-self: start;
    max-width: none;
  }

  .latest-list {
    grid-template-columns: 1fr;
  }

  .landing-grid--three,
  .landing-split {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .site-header {
    position: static;
  }

  .site-header__inner {
    min-height: 0;
  }

  .site-nav a {
    font-size: 0.82rem;
  }

  .hero__inner {
    gap: 28px;
    padding-bottom: 46px;
    padding-top: 42px;
  }

  .hero h1,
  .page-title {
    font-size: clamp(2.55rem, 17vw, 3.75rem);
  }

  .button-row {
    margin-top: 26px;
  }

  .lab-panel__formula {
    font-size: 1rem;
  }

  .section {
    padding: 52px 0;
  }
}

/* Force WILD LAB Dark Mode */
html,
body,
body.home,
body.page,
body.blog,
body.single,
body.archive,
body.front-page {
  background: #0b0d10 !important;
  color: #f5f7fa !important;
}

.site-main,
.content-area,
.section,
.feature-section,
.cta-band,
.entry,
.card,
.post-card,
.landing-card,
.signup-placeholder,
.lab-panel {
  color: #f5f7fa !important;
}

.section,
.feature-section,
.entry,
.card,
.post-card,
.landing-card,
.signup-placeholder {
  background-color: #0b0d10 !important;
}

.site-header {
  background: rgba(11, 13, 16, 0.92) !important;
}

.site-footer {
  background: #08090b !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.site-title {
  color: #ffffff !important;
}

p,
li,
.site-tagline,
.site-nav a,
.section p,
.entry-content p {
  color: #aab3c2 !important;
}

.lab-panel__label {
  color: #4dd8d4 !important;
}

.lab-panel__formula,
.lab-panel__formula span {
  color: #f5f7fa !important;
}

.button--primary,
body.page .button--primary {
  background: #c9f227 !important;
  border-color: #c9f227 !important;
  color: #10120d !important;
}

.button--secondary,
body.page .button--secondary {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #f5f7fa !important;
}