/* ============================
   LP CF2026 - CSS Custom Properties
   ============================ */
:root {
  --lp-color-bg: #112244;
  --lp-color-bg-dark: #0a1630;
  --lp-color-accent: #28a13a;
  --lp-color-accent-hover: #1e7e2d;
  --lp-color-text: #ffffff;
  --lp-color-text-muted: rgba(255, 255, 255, 0.7);
  --lp-color-white: #ffffff;
  --lp-color-black: #000000;
  --lp-font-sans: "Noto Sans JP", "Open Sans", system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --lp-font-serif: "Zen Old Mincho", serif;
  --lp-max-width: 430px;
  --lp-padding: min(24px, 5vw);
  --lp-section-padding: 48px 0;
  --lp-fixed-cta-height: 64px;
}

/* ============================
   Reset / Base
   ============================ */
.lp-cf2026 {
  margin: 0;
  padding: 0;
  font-family: var(--lp-font-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 2;
  color: var(--lp-color-text);
  background-color: var(--lp-color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

.lp-cf2026 img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================
   Layout
   ============================ */
.lp-inner {
  max-width: var(--lp-max-width);
  margin: 0 auto;
  padding: 0 var(--lp-padding);
}

/* ============================
   Typography
   ============================ */
.lp-heading {
  margin: 0 0 28px;
  text-align: center;
}

.lp-heading img {
  width: 100%;
  margin: 0 auto;
}

.lp-heading--sm img {
  width: 80%;
}

.lp-text {
  margin: 0 0 16px;
}

.lp-text:last-child {
  margin-bottom: 0;
}

.lp-text--highlight {
  font-family: var(--lp-font-sans);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  color: var(--lp-color-accent);
  margin: 32px 0;
}

/* ============================
   Section
   ============================ */
.lp-section {
  padding: var(--lp-section-padding);
  position: relative;
}

/* 緑背景セクション */
.lp-section--green {
  background-color: var(--lp-color-accent);
}

/* ダーク紺背景セクション */
.lp-section--dark {
  background-color: var(--lp-color-bg-dark);
}

/* 紺背景セクション */
.lp-section--navy {
  background-color: var(--lp-color-bg);
}

/* 白背景セクション */
.lp-section--white {
  background-color: var(--lp-color-white);
  color: var(--lp-color-bg);
}

.lp-section--white .lp-heading {
  color: var(--lp-color-bg);
}

.lp-section--white .lp-text {
  color: var(--lp-color-bg);
}

/* ============================
   斜めカット（セクション間に配置する独立div）
   上半分: 前のセクションの色、下半分: 次のセクションの色
   擬似要素 + clip-path で隙間なく三角を描画
   ============================ */
/* ============================
   Hero
   ============================ */
.lp-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px var(--lp-padding) 40px;
  background-image: url('../images/lp/hero_bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17, 34, 68, 0.15) 0%,
    rgba(17, 34, 68, 0.4) 35%,
    rgba(17, 34, 68, 0.8) 100%
  );
  z-index: 1;
}

.lp-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--lp-max-width);
  width: 100%;
}

.lp-hero__logo {
  width: 35%;
  margin: 0 auto 40px;
}

.lp-hero__catch {
  width: 30%;
  margin: 0 auto 24px;
}

.lp-hero__text {
  margin: 0 0 20px;
}

.lp-hero__sub {
  font-family: var(--lp-font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.15em;
  margin: 0 0 28px;
  color: var(--lp-color-accent);
}

/* ============================
   CTA Button
   ============================ */
.lp-cta {
  text-align: center;
  margin: 32px 0 0;
}

.lp-cta__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--lp-color-accent);
  color: var(--lp-color-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  padding: 14px 24px;
  border-radius: 10px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.lp-cta__link::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--lp-color-white);
  margin-right: 8px;
}

.lp-cta__link:hover {
  background-color: var(--lp-color-accent-hover);
  transform: translateY(-2px);
}

.lp-cta__link:active {
  transform: translateY(0);
}

/* ダーク紺・緑背景セクション内のCTA: 白背景・緑文字 */
.lp-section--dark .lp-cta__link,
.lp-section--green .lp-cta__link {
  background-color: var(--lp-color-white);
  color: var(--lp-color-accent);
}

.lp-section--dark .lp-cta__link::before,
.lp-section--green .lp-cta__link::before {
  border-color: transparent transparent transparent var(--lp-color-accent);
}

.lp-section--dark .lp-cta__link:hover,
.lp-section--green .lp-cta__link:hover {
  background-color: rgba(255, 255, 255, 0.85);
}

/* ============================
   Courses
   ============================ */
.lp-course {
  margin: 0 0 40px;
  padding: 0 0 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.lp-course:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.lp-course__image {
  margin: 0 calc(var(--lp-padding) * -1) 20px;
  overflow: hidden;
}

.lp-course__image img {
  width: 100%;
}

.lp-course__desc {
  margin: 0;
}

/* ============================
   Boss (Representative)
   ============================ */
.lp-boss__image {
  width: calc(100% + var(--lp-padding) * 2);
  margin: 0 calc(var(--lp-padding) * -1) 24px;
  overflow: hidden;
}

.lp-boss__image img {
  width: 100%;
}

/* ============================
   Video
   ============================ */
.lp-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  margin-top: 32px;
}

.lp-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ============================
   Footer
   ============================ */
.lp-footer {
  text-align: center;
  padding: 24px var(--lp-padding);
  font-size: 11px;
  color: var(--lp-color-text-muted);
  background-color: var(--lp-color-bg-dark);
}

.lp-footer__nav {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
}

.lp-footer__nav a {
  color: var(--lp-color-text-muted);
  text-decoration: none;
  font-size: 11px;
}

.lp-footer__nav a:hover {
  color: var(--lp-color-text);
  text-decoration: underline;
}

/* ============================
   Fixed CTA Bar
   ============================ */
.lp-fixed-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--lp-fixed-cta-height);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 0 16px;
  background: linear-gradient(to top, rgba(17, 34, 68, 0.95), rgba(17, 34, 68, 0.85));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.lp-fixed-cta__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  text-align: center;
  background-color: var(--lp-color-accent);
  color: var(--lp-color-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  padding: 14px 24px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.lp-fixed-cta__link::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--lp-color-white);
  margin-right: 8px;
}

.lp-fixed-cta__link:hover {
  background-color: var(--lp-color-accent-hover);
}

/* ============================
   Modal
   ============================ */
.lp-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 100;
}

.lp-modal-bg.is-active {
  opacity: 1;
  pointer-events: all;
}

.lp-modal {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 85vh;
  background-color: var(--lp-color-bg);
  border-radius: 16px 16px 0 0;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 101;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lp-modal.is-active {
  transform: translateY(0);
}

.lp-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.lp-modal__title {
  font-weight: 700;
  font-size: 15px;
  margin: 0;
  color: var(--lp-color-text);
}

.lp-modal__close {
  background: none;
  border: none;
  color: var(--lp-color-text);
  font-size: 28px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.lp-modal__close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.lp-modal__body {
  overflow-y: auto;
  padding: 24px;
}

.lp-modal__course {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lp-modal__course:first-child {
  padding-top: 0;
}

.lp-modal__course:last-child {
  border-bottom: none;
}

.lp-modal__course-price {
  font-weight: 900;
  font-size: 13px;
  color: var(--lp-color-accent);
  margin: 0 0 4px;
}

.lp-modal__course-price span {
  font-size: 28px;
}

.lp-modal__course-name {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 8px;
}

.lp-modal__course-desc {
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 16px;
  color: var(--lp-color-text-muted);
}

.lp-modal__course-btn {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--lp-color-accent);
  color: var(--lp-color-white);
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  padding: 12px 24px;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.lp-modal__course-btn:hover {
  background-color: var(--lp-color-accent-hover);
}

/* ============================
   Modal Course Cards (image + pink button style)
   ============================ */
.lp-modal__body .-course {
  margin-bottom: 40px;
}

.lp-modal__body .-course:last-of-type {
  margin-bottom: 0;
}

.lp-modal__body .-name {
  margin: 0 -20px;
  text-align: center;
}

.lp-modal__body .-name img {
  width: 95%;
  margin: 0 auto;
}

.lp-modal__body .-course:first-of-type .-name img {
  width: 79%;
}

.lp-modal__body .-course:nth-of-type(2) .-name img {
  width: 89%;
}

.lp-modal__body .-course:last-of-type .-name img {
  width: 89%;
}

.lp-modal__body .-list {
  width: fit-content;
  margin: 0 auto 25px;
  margin-top: -60px;
  font-weight: 700;
}

.lp-modal__body .-list ul {
  display: inline-block;
  list-style: disc;
}

.lp-modal__body .-list ul li {
  text-indent: -0.4em;
}

.lp-modal__body .-btn {
  text-align: center;
}

.lp-modal__body .-btn a {
  color: #ffffff;
  background-color: #e4007f;
  border-radius: 8px;
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 700;
  position: relative;
  width: 90%;
  padding: 12px 0;
  text-decoration: none;
  transition-duration: 0.3s;
}

.lp-modal__body .-btn a::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 27px;
  width: 12px;
  height: 12px;
  margin: auto;
  border-top: 3px solid #fff;
  border-right: 3px solid #fff;
  transform: rotate(45deg);
  box-sizing: border-box;
}

.lp-modal__body .-btn a:hover {
  color: #e4007f;
  background-color: #ffffff;
}

.lp-modal__body .-btn a:hover::after {
  border-top: 3px solid #e4007f;
  border-right: 3px solid #e4007f;
}

/* ============================
   Scrollbar (Modal)
   ============================ */
.lp-modal__body::-webkit-scrollbar {
  width: 4px;
}

.lp-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.lp-modal__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

/* ============================
   Animations - Keyframes
   ============================ */
@keyframes lp-fadeSlideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes lp-scaleFadeIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes lp-pulse-ring {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.15); opacity: 0; }
  100% { transform: scale(1.15); opacity: 0; }
}

@keyframes lp-btn-shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes lp-highlight-sweep {
  from { background-size: 0% 3px; }
  to   { background-size: 100% 3px; }
}

/* --- Hero entrance (auto-fire on load) --- */
[data-hero-anim] {
  opacity: 0;
}

[data-hero-anim="logo"] {
  animation: lp-scaleFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

[data-hero-anim="catch"] {
  animation: lp-fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

[data-hero-anim="text"] {
  animation: lp-fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

[data-hero-anim="sub"] {
  animation: lp-fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.0s forwards;
}

[data-hero-anim="cta"] {
  animation: lp-fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

/* --- Scroll reveal: fade-up --- */
[data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-anim="fade-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scroll reveal: heading zoom-settle --- */
[data-anim="heading"] {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-anim="heading"].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* --- Scroll reveal: slide-up (course cards with stagger) --- */
[data-anim="slide-up"] {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-anim="slide-up"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-anim="slide-up"][data-delay="1"] {
  transition-delay: 0.15s;
}

[data-anim="slide-up"][data-delay="2"] {
  transition-delay: 0.3s;
}

/* --- Scroll reveal: highlight text --- */
[data-anim="highlight"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-anim="highlight"].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scroll reveal: slide-right (boss image) --- */
[data-anim="slide-right"] {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-anim="slide-right"].is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Scroll reveal: scale-in (video) --- */
[data-anim="scale-in"] {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-anim="scale-in"].is-visible {
  opacity: 1;
  transform: scale(1);
}

/* --- CTA pulse ring --- */
.lp-cta__link {
  position: relative;
  overflow: hidden;
}

.lp-cta__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid currentColor;
  animation: lp-pulse-ring 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

/* --- CTA shimmer sweep --- */
.lp-cta__link {
  background-image: linear-gradient(110deg, transparent 25%, rgba(255, 255, 255, 0.2) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: lp-btn-shimmer 3.5s ease-in-out 2s infinite;
}

/* ============================
   Desktop (768px+)
   ============================ */
@media screen and (min-width: 768px) {
  .lp-cf2026 {
    background-image: url('../images/lp/bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
  }

  .lp-hero,
  .lp-section,
  .lp-footer {
    max-width: var(--lp-max-width);
    margin-left: auto;
    margin-right: auto;
  }

  .lp-hero {
    min-height: auto;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .lp-fixed-cta {
    max-width: var(--lp-max-width);
    left: 50%;
    transform: translateX(-50%);
  }

  .lp-modal {
    max-width: var(--lp-max-width);
    left: 50%;
    transform: translateX(-50%) translateY(100%);
  }

  .lp-modal.is-active {
    transform: translateX(-50%) translateY(0);
  }
}

/* ============================
   Reduced Motion
   ============================ */
@media (prefers-reduced-motion: reduce) {
  [data-hero-anim],
  [data-anim] {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .lp-cta__link {
    animation: none !important;
    background-image: none !important;
  }

  .lp-cta__link::after {
    animation: none !important;
    display: none;
  }
}
