:root {
  --cream: #fff9e6;
  --paper: #ffffff;
  --yellow: #ffcd00;
  --yellow-deep: #e6b800;
  --libe-red: #e53935;
  --green: #2cb67d;
  --green-deep: #1a9b66;
  --ink: #1c1c1c;
  --ink-muted: #5c5c5c;
  --line: #e8e0c8;
  --shadow: 0 12px 40px rgba(28, 28, 28, 0.08);
  --shadow-sm: 0 4px 16px rgba(28, 28, 28, 0.06);
  --radius: 16px;
  --radius-pill: 999px;
  --header-h: 72px;
  --font: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.notice-bar {
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 0.55rem 1rem;
  text-align: center;
}

.notice-bar strong {
  color: var(--yellow);
  font-weight: 700;
}

.libe-channel-bar {
  background: linear-gradient(90deg, var(--yellow) 0%, #ffe566 50%, var(--yellow) 100%);
  border-bottom: 3px solid var(--ink);
  padding: 0.65rem 1rem;
  text-align: center;
}

.libe-channel-bar p {
  margin: 0;
  font-weight: 900;
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  letter-spacing: 0.02em;
}

.libe-channel-bar .sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  margin-top: 0.15rem;
  opacity: 0.85;
}

.libe-official-banner {
  margin: 0;
  border-bottom: 3px solid var(--ink);
  background: #fff;
}

.libe-official-banner img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  object-position: center;
}

.libe-official-banner figcaption {
  font-size: 0.72rem;
  color: var(--ink-muted);
  text-align: center;
  padding: 0.45rem 1rem 0.65rem;
  background: #fff;
}

.logo-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-stack .logo-main {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.logo-stack .logo-sub {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink-muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 245, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 48px;
  height: auto;
  flex-shrink: 0;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a:hover {
  color: var(--green-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 20px;
  margin-inline: auto;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn-primary:hover {
  box-shadow: 6px 6px 0 var(--ink);
}

.btn-line {
  background: var(--green);
  color: #fff;
  border-color: #0d7a4f;
  box-shadow: 4px 4px 0 #0d7a4f;
}

.btn-line:hover {
  background: var(--green-deep);
}

.btn-ghost {
  background: var(--paper);
  color: var(--ink);
}

.hero {
  padding: 2rem 0 3rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 205, 0, 0.55), transparent 42%),
    linear-gradient(180deg, #fff 0%, var(--cream) 100%);
  border-bottom: 3px solid var(--ink);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.lecture-stage {
  position: relative;
  background: linear-gradient(#cfe9ff 0 52%, #fff 52%);
  border: 4px solid var(--ink);
  border-radius: 20px;
  box-shadow: 10px 10px 0 var(--ink);
  min-height: 420px;
  overflow: hidden;
}

.chalkboard {
  position: absolute;
  left: 1rem;
  top: 2.5rem;
  width: 58%;
  background: #1e3a2f;
  color: #fff;
  border: 4px solid var(--ink);
  padding: 1rem 1.1rem;
  transform: rotate(-2deg);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.25);
}

.chalkboard-kicker {
  display: inline-block;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.2rem 0.5rem;
  border: 2px solid var(--ink);
  margin-bottom: 0.5rem;
}

.chalkboard h2 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 900;
}

.chalkboard ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
  font-weight: 700;
}

.chalkboard li {
  margin: 0.35rem 0;
}

.chalkboard li::before {
  content: "✓ ";
  color: #7dffb3;
}

.lion-wrap {
  position: absolute;
  right: -0.5rem;
  bottom: 0;
  width: 52%;
  max-width: 240px;
}

.lion-wrap img,
.lion-wrap object {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(6px 8px 0 rgba(0, 0, 0, 0.15));
}

.youtube-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  box-shadow: 6px 6px 0 var(--ink);
  margin-bottom: 1.25rem;
}

.yt-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--libe-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  border: 3px solid var(--ink);
  flex-shrink: 0;
}

.youtube-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 900;
}

.youtube-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.hero h1 {
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero h1 .ryo {
  display: block;
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ink);
  letter-spacing: -0.04em;
}

.hero h1 .libe {
  background: var(--yellow);
  padding: 0 0.35rem;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.topic-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0 1.25rem;
}

.topic-chips span {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
}

.motto-strip {
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 1.75rem 1rem;
}

.motto-strip blockquote {
  margin: 0;
  font-size: clamp(1.2rem, 3vw, 1.65rem);
  font-weight: 900;
}

.motto-strip cite {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.9rem;
  font-style: normal;
  color: var(--yellow);
  font-weight: 800;
}

.power-card.featured {
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  text-align: left;
  align-items: center;
  background: linear-gradient(135deg, #fff9d6, #fff);
}

.power-card .power-num {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--yellow-deep);
  -webkit-text-stroke: 1px var(--ink);
}

.section-head .libe-tag {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
  padding: 0.25rem 0.65rem;
  margin-bottom: 0.5rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--yellow);
  border: 2px solid var(--ink);
  margin-bottom: 1rem;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 55%, var(--yellow) 55%);
}

.hero-lead {
  color: var(--ink-muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-note {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: 0;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.mindmap {
  position: relative;
  min-height: 280px;
}

.mindmap svg {
  width: 100%;
  height: auto;
}

.mindmap-caption {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: var(--paper);
  border-block: 1px solid var(--line);
}

.section-head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
}

.powers-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.power-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.1rem 0.85rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.power-card:hover {
  transform: translateY(-3px);
}

.power-icon {
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.power-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
}

.power-card p {
  font-size: 0.75rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.45;
}

.lesson-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(135deg, #fff9e6 0%, #fff 60%);
  border: 2px solid var(--ink);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.lesson-box h3 {
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
}

.formula {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  background: var(--paper);
  border: 2px dashed var(--green-deep);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  margin: 1rem 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.step-card::before {
  counter-increment: step;
  content: "STEP " counter(step);
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.step-card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.company-panel {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}

.company-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.company-table th,
.company-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px dashed var(--line);
  text-align: left;
  vertical-align: top;
}

.company-table th {
  width: 8.5rem;
  font-weight: 800;
  white-space: nowrap;
}

.faq-list {
  max-width: 42rem;
  margin: 0 auto;
}

.faq-list details {
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.faq-list summary {
  font-weight: 800;
  cursor: pointer;
}

.faq-list p {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

.cta-section {
  text-align: center;
  padding: 4rem 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 210, 30, 0.4), transparent 55%),
    var(--cream);
}

.cta-section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  margin: 0 0 1rem;
}

.cta-section p {
  color: var(--ink-muted);
  max-width: 32rem;
  margin: 0 auto 1.5rem;
}

.site-footer {
  background: var(--ink);
  color: #e8e8e8;
  padding: 2.5rem 0 1.5rem;
}

.site-footer a {
  color: var(--yellow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo-text {
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
}

.disclaimer-text {
  font-size: 0.78rem;
  line-height: 1.65;
  color: #aaa;
  margin: 0.75rem 0 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.88rem;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1rem;
  font-size: 0.78rem;
  color: #888;
}

.float-cta {
  position: fixed;
  z-index: 90;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  max-width: calc(100% - 2rem);
  font-size: 0.95rem;
  padding: 0.75rem 1.35rem;
  animation: float-pulse 2.5s ease-in-out infinite;
}

@keyframes float-pulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }
  50% {
    transform: translateX(-50%) scale(1.03);
  }
}

.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.legal-breadcrumb a {
  color: var(--green-deep);
}

.legal-document {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.legal-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.legal-lead {
  color: var(--ink-muted);
}

.legal-section {
  margin-top: 2rem;
}

.legal-section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--yellow);
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.25rem;
}

.legal-contact-box {
  background: #fffef8;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.legal-footer-note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 960px) {
  .powers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .powers-grid .power-card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 1rem;
  }

  .site-header.nav-open .primary-nav {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
  }

  .hero-grid,
  .lesson-box,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .powers-grid {
    grid-template-columns: 1fr;
  }

  .powers-grid .power-card:last-child {
    max-width: none;
  }

  .power-card.featured {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .lecture-stage {
    min-height: 360px;
  }

  .chalkboard {
    width: 70%;
    font-size: 0.9rem;
  }

  .lion-wrap {
    width: 45%;
  }
}
