@charset "UTF-8";

/* ==========================================================================
   CSS Variables (groxi Clone Theme)
   ========================================================================== */
:root {
  /* Colors */
  --bg-dark-navy: #08091a;
  --bg-deep-purple: #3f35a4;
  --bg-light: #f8fafc;

  --text-primary: #ffffff;
  --text-dark: #111827;
  --text-secondary: #94a3b8;
  --accent-cyan: #00e5ff;

  --btn-purple: #5b4bd4;
  --btn-purple-hover: #4a3eb3;

  /* Typography */
  --font-sans: 'Zen Kaku Gothic New', sans-serif;
  --font-display: 'Montserrat', sans-serif;

  /* Layout */
  --container-width: 1200px;
  --nav-height: 80px;
}

/* ==========================================================================
   Global Reset & Base Styles
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-dark-navy);
  color: var(--text-primary);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

.sp-only {
  display: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 300;
  transition: background-color 0.3s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(8, 9, 26, 0.9);
  backdrop-filter: blur(10px);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 3vw;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 102;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: 'Orbitron', var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.logo-sub {
  font-size: 0.7rem;
  opacity: 0.8;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  font-weight: 400;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-entry {
  background: var(--btn-purple);
  padding: 0.8rem 2.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn-entry:hover {
  background: var(--btn-purple-hover);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   Hero Section (Diagonal Split)
   ========================================================================== */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  background-color: var(--bg-dark-navy);
  /* Base background right side */
}

/* The left side purple diagonal */
.hero-bg-split {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-deep-purple);
  clip-path: polygon(0 0, 80% 0, 30% 100%, 0 100%);
  z-index: 3;
  opacity: 0.85;
  /* mix-blend-mode: multiply; */
}

.hero-content {
  position: absolute;
  top: calc(43% + 30px);
  left: 8%;
  transform: translateY(-50%);
  z-index: 10;
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: var(--btn-purple);
  color: #fff;
  font-size: 3vw;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 9vw;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  margin-bottom: 2rem;
}

.hero-eng {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 2;
  opacity: 0.8;
}

/* Hero Character Setup */
.hero-character-wrapper {
  position: absolute;
  top: 0%;
  right: -19%;
  width: 82%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hero-character {
  height: 100%;
  width: 100%;
  object-fit: contain;
  transform-origin: center right;
  mix-blend-mode: lighten;
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  right: 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: rotate(90deg);
  transform-origin: right bottom;
  z-index: 10;
}

.scroll-text {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-cyan);
  animation: scroll-anim 2s infinite ease-in-out;
}

@keyframes scroll-anim {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ==========================================================================
   Message Section (Floating & Highlighted Text)
   ========================================================================== */
.message-section {
  position: relative;
  padding: 10rem 0;
  background-color: var(--bg-dark-navy);
  overflow: hidden;
  min-height: 1000px;
}

/* Geometric Background Grid */
.message-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

/* Purple slant overlay behind characters */
.message-bg::after {
  content: '';
  position: absolute;
  bottom: 0%;
  right: -10%;
  width: 80%;
  height: 123%;
  background-color: var(--btn-purple);
  clip-path: polygon(52% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.8;
  z-index: 1;
}

.message-character-wrapper {
  position: absolute;
  top: 5%;
  right: 0;
  width: 70%;
  height: 90%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.message-character {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right center;
  opacity: 0.8;
}

.relative-z {
  position: relative;
  z-index: 10;
}

/* Title Component */
.section-title-wrapper {
  margin-bottom: 4rem;
}

.section-title-en {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.section-title-ja {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.title-deco-line {
  margin-top: 2rem;
  width: 160px;
  height: 6px;
  background: repeating-linear-gradient(45deg,
      #fff,
      #fff 10px,
      transparent 10px,
      transparent 20px);
}

.message-intro {
  font-size: 1.2rem;
  line-height: 2;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 3rem;
}

/* Highlight Box Effect */
.highlight-text-group {
  margin-bottom: 4rem;
  line-height: 1.6;
}

.highlight-box {
  display: inline-block;
  background: white;
  color: var(--text-dark);
  font-size: 3rem;
  font-weight: 900;
  padding: 0.5rem 1.5rem;
  margin-bottom: 0.5rem;
  transform: skewX(-5deg);
}

.message-body {
  font-size: 0.95rem;
  line-height: 2.2;
  letter-spacing: 0.05em;
  margin-bottom: 4rem;
  max-width: 600px;
}

/* Button Component */
.btn-more {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 1rem 0;
  position: relative;
}

.btn-more .btn-arrow {
  margin-left: 1rem;
  font-family: var(--font-display);
  transition: transform 0.3s ease;
}

.btn-more::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: #fff;
  transition: opacity 0.3s ease;
}

.btn-more:hover .btn-arrow {
  transform: translateX(10px);
}

.btn-more:hover::after {
  opacity: 0.5;
}

/* ==========================================================================
   Works Section (Light variation)
   ========================================================================== */
.works-section {
  background-color: #ffffff;
  color: var(--text-dark);
  padding: 8rem 0;
  position: relative;
}

.works-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom right, var(--bg-dark-navy) 49%, transparent 51%);
}

.light-theme .section-title-en {
  color: var(--bg-dark-navy);
}

.light-theme .title-deco-line {
  background: repeating-linear-gradient(45deg,
      var(--bg-dark-navy),
      var(--bg-dark-navy) 10px,
      transparent 10px,
      transparent 20px);
}

.relative-z {
  position: relative;
  z-index: 2;
}

.services-bg-character {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background-image: url('/images/services-character.png');
  background-size: contain;
  background-position: right bottom;
  background-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

/* Speech Bubble */
.speech-bubble {
  position: absolute;
  top: 33%;
  right: 15%;
  background: rgba(8, 9, 26, 0.9);
  border: none;
  color: #fff;
  font-size: 0.85rem;
  line-height: 2;
  padding: 1.5rem 1.2rem;
  border-radius: 8px;
  pointer-events: auto;
  z-index: 5;
  box-shadow: 0 0 20px rgba(91, 75, 212, 0.3);
  animation: bubblePulse 3s ease-in-out infinite;
  writing-mode: vertical-rl;
}

.tcy {
  text-combine-upright: all;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -12px;
  transform: translateY(-50%);
  width: 12px;
  height: 24px;
  background: rgba(8, 9, 26, 0.9);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  z-index: -1;
}

@keyframes bubblePulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(91, 75, 212, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(91, 75, 212, 0.6);
  }
}

.services-text-wrapper {
  max-width: 55%;
  position: relative;
  z-index: 2;
}

.works-description {
  max-width: 800px;
  font-size: 1rem;
  line-height: 2;
  margin-bottom: 3rem;
}

.btn-more.dark {
  color: var(--bg-dark-navy);
}

.btn-more.dark::after {
  background: var(--bg-dark-navy);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--bg-dark-navy);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  padding: 3rem 0;
  border: none;
  padding-bottom: 10vw;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Orbitron', var(--font-display);
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  justify-content: flex-start;
  max-width: 600px;
}

.footer-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  /* Much lighter/translucent */
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--btn-purple);
}

.footer-bottom {
  position: absolute;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.6;
  padding-top: 2rem;
  border: none;
  font-family: var(--font-sans);
  font-weight: 400;
  bottom: 2vw;
  left: 2vw;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer-links {
    display: none;
  }

  .footer-bottom {
    position: absolute;
    text-align: left;
    font-size: 0.75rem;
    opacity: 0.6;
    padding-top: 2rem;
    border: none;
    font-family: var(--font-sans);
    font-weight: 400;
    bottom: 2vw;
    left: 2vw;
  }

  .footer {
    padding: 1rem 0 12vw;
  }
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
.animate-on-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
  transform: translateY(40px);
}

.fade-in-left {
  transform: translateX(-40px);
}

.fade-in-right {
  transform: translateX(40px);
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

@media (max-width: 1024px) {
  .hero-title {
    font-size: 6rem;
  }

  .highlight-box {
    font-size: 2.5rem;
  }

  .hero-bg-split {
    clip-path: polygon(0 0, 70% 0, 10% 100%, 0 100%);
  }
}

/* ==========================================================================
   Mobile Menu (Cyber Theme)
   ========================================================================== */
@media (max-width: 1060px) {
  .nav-links,
  .btn-entry {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 201;
    position: relative;
  }

  .mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 9, 26, 0.97);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  background-image:
    linear-gradient(rgba(91, 75, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 75, 212, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-overlay::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: var(--btn-purple);
  clip-path: polygon(60% 0, 100% 0, 100% 100%, 20% 100%);
  opacity: 0.5;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.mobile-menu-nav a {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 1.2rem 2rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s, transform 0.4s, color 0.3s;
}

.mobile-menu-overlay.active .mobile-menu-nav a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(6) { transition-delay: 0.35s; }

.mobile-menu-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(91, 75, 212, 0.4), transparent);
}

.mobile-menu-nav a:hover {
  color: var(--btn-purple);
}

.mobile-menu-contact {
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s, transform 0.4s;
  transition-delay: 0.4s;
}

.mobile-menu-overlay.active .mobile-menu-contact {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu-contact a {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--btn-purple);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.15em;
  transition: background 0.3s, box-shadow 0.3s;
}

.mobile-menu-contact a:hover {
  background: var(--btn-purple-hover);
  box-shadow: 0 0 25px rgba(91, 75, 212, 0.5);
}

@media (max-width: 768px) {

  .pc-only {
    display: none;
  }

  .sp-only {
    display: inline;
  }

  .hero-eng {
    display: none;
  }

  .section-title-en {
    font-size: 12vw;
    line-height: 1.1;
  }

  .hero-bg-split {
    clip-path: polygon(0 0, 100% 0, 100% -22%, 0 87%);
  }

  .hero-character-wrapper {
    top: 48%;
    width: 120%;
    justify-content: center;
  }

  .hero-content {
    top: 80px;
    left: 2rem;
    transform: none;
  }

  .hero-title {
    font-size: 12vw;
  }

  .hero-badge {
    font-size: 4vw;
    padding: 0.3rem 1rem;
    margin-bottom: 1rem;
  }

  .highlight-box {
    font-size: 1.8rem;
    padding: 0.5rem 1rem;
  }

  .message-character-wrapper {
    width: 100%;
    height: 50%;
    top: auto;
    bottom: 0;
    opacity: 0.6;
    z-index: 0;
  }

  .message-bg::after {
    clip-path: none;
    top: 50%;
    right: 0;
    width: 100%;
    height: 50%;
    opacity: 0.5;
  }

  .services-bg-character {
    width: 78%;
    right: -20%;
    opacity: 0.15;
  }

  .speech-bubble {
    display: none;
  }

  .services-text-wrapper {
    max-width: 100%;
  }
}

/* ==========================================================================
   Subpage Common Styles
   ========================================================================== */
.subpage-main {
  padding-top: 0;
  /* Account for absolute navbar */
  min-height: 100vh;
  background-color: var(--bg-dark-navy);
  position: relative;
  z-index: 0;
}

/* Add grid pattern to the background of subpage content */
.subpage-main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
}

.subpage-hero {
  position: relative;
  width: 100%;
  height: 30vh;
  /* Accommodate navbar vertically */
  min-height: 250px;
  padding-top: var(--nav-height);
  /* Push content below header */
  display: flex;
  align-items: center;
  background-color: transparent;
  /* Changed from dark navy to allow main bg to show if needed */
  /* overflow: hidden; Removed to allow character and split to overflow */
  z-index: 10;
}

.subpage-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
}

.subpage-hero-split {
  position: absolute;
  top: 0;
  left: 0;
  width: 44%;
  height: 300%;
  background-color: var(--btn-purple);
  clip-path: polygon(0 0, 100% 0, 0% 100%, 0 100%);
  z-index: 101;
  /* Higher than navbar (100) but lower than logo (102) */
  opacity: 0.9;
}

.subpage-character-wrapper {
  position: absolute;
  top: 0%;
  right: 0%;
  width: 100%;
  /* height: 159%; */
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.subpage-character {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(-10px 10px 20px rgba(0, 0, 0, 0.4));
  transform: scale(1.2);
  /* Make character bolder */
}

.subpage-hero-content {
  position: absolute;
  z-index: 103;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  /* padding: 13rem 2rem 0 6rem; */
  text-align: left;
  top: 54%;
  left: 10%;
}

.subpage-title-en {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #fff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(91, 75, 212, 0.5);
}

.subpage-title-ja {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  color: #fff;
  /* Changed to white */
}

.subpage-catchphrase {
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  margin-top: 1.5rem;
  line-height: 1.8;
  opacity: 0.9;
  display: inline-block;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 1);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.subpage-content-wrapper {
  padding: 5rem 0;
  max-width: 1000px;
  /* Wider container for grid layouts */
  margin: 0 auto;
  position: relative;
  z-index: 10;
  margin-top: 10vh;
  /* Add margin to push content down below the overlapping background */
}

/* Grid layout for cards */
.subpage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* 1-column list layout for services */
.subpage-list-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-bottom: 4rem;
}

.content-block {
  background-color: #fff;
  border-radius: 0;
  /* Removing rounded corners */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 3rem;
  margin-bottom: 0;
  line-height: 1.8;
  color: #333;
  transition: transform 0.3s ease;
  flex: 1;
}

.content-block:hover {
  transform: translateY(-5px);
}

.content-block h3 {
  font-size: 1.8rem;
  color: #08091a;
  margin-bottom: 2rem;
  padding-left: 1.5rem;
  position: relative;
  font-weight: 900;
  border-left: none;
  /* Remove previous border */
  display: flex;
  align-items: center;
}

/* Diagonal stripe accent for H3 like reference site */
.content-block h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) skewX(-20deg);
  width: 12px;
  height: 100%;
  background-color: var(--btn-purple);
}

.content-block p {
  margin-bottom: 1.5rem;
  color: #444;
  /* Darker text on white background */
}

.content-block ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.content-block li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: #444;
}

.content-block li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background-color: var(--btn-purple);
  border-radius: 50%;
  box-shadow: none;
  /* Removed shadow for cleaner look on white */
}

/* ==========================================================================
   Flow Timeline styles
   ========================================================================== */
.flow-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 2rem 0;
}

/* Vertical Line */
.flow-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--btn-purple), rgba(91, 75, 212, 0.2));
  z-index: 1;
}

.flow-step {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 80px;
}

/* Dot on the timeline */
.flow-step::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 30px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #fff;
  border: 4px solid var(--btn-purple);
  z-index: 2;
  box-shadow: 0 0 15px rgba(91, 75, 212, 0.6);
}

.flow-step:last-child {
  margin-bottom: 0;
}

.flow-step-header {
  display: flex;
  align-items: baseline;
  margin-bottom: 1rem;
}

.flow-step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--btn-purple);
  margin-right: 1.5rem;
  line-height: 1;
}

.flow-step-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #333;
}

.flow-step-content {
  background-color: #fff;
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  color: #444;
  line-height: 1.8;
  border-left: 4px solid var(--btn-purple);
}

@media (max-width: 768px) {
  .subpage-title-en {
    font-size: 12vw;
  }

  .flow-timeline::before {
    left: 20px;
  }

  .flow-step {
    padding-left: 60px;
  }

  .flow-step::before {
    left: 13px;
    top: 25px;
  }

  .flow-step-header {
    flex-direction: column;
  }

  .flow-step-number {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .flow-step-title {
    font-size: 1.2rem;
  }

  .flow-step-content {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Cases Page - Cyber Theme
   ========================================================================== */
.cases-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.case-card {
  position: relative;
  background: var(--bg-dark-navy);
  border: 1px solid rgba(91, 75, 212, 0.3);
  padding: 3rem;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.case-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--btn-purple), transparent);
}

.case-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(91, 75, 212, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.case-card:hover {
  border-color: rgba(91, 75, 212, 0.6);
  box-shadow: 0 0 40px rgba(91, 75, 212, 0.15), inset 0 0 40px rgba(91, 75, 212, 0.03);
}

.case-card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.case-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--btn-purple);
  line-height: 1;
  text-shadow: 0 0 20px rgba(91, 75, 212, 0.4);
}

.case-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--btn-purple);
  border: 1px solid rgba(91, 75, 212, 0.5);
  padding: 0.4rem 1rem;
  display: inline-block;
}

.case-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 2.5rem;
  padding-left: 0;
  line-height: 1.5;
}

.case-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.case-section {
  position: relative;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(91, 75, 212, 0.4);
}

.case-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--btn-purple);
  margin-bottom: 0.8rem;
}

.case-section p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
}

.case-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(91, 75, 212, 0.2);
}

.case-result-item {
  text-align: center;
  padding: 1.5rem 1rem;
  background: rgba(91, 75, 212, 0.06);
  border: 1px solid rgba(91, 75, 212, 0.15);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.case-result-item:hover {
  background: rgba(91, 75, 212, 0.12);
  border-color: rgba(91, 75, 212, 0.4);
}

.result-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(91, 75, 212, 0.3);
}

.result-unit {
  font-size: 1.2rem;
  color: var(--btn-purple);
}

.result-desc {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .case-card {
    padding: 2rem 1.5rem;
  }

  .case-body {
    grid-template-columns: 1fr;
  }

  .case-results {
    grid-template-columns: 1fr;
  }

  .case-number {
    font-size: 2.5rem;
  }

  .case-title {
    font-size: 1.3rem;
  }
}

/* ==========================================================================
   Cyber Card - Shared Component (Services, Company)
   ========================================================================== */
.cyber-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.cyber-card {
  position: relative;
  background: var(--bg-dark-navy);
  border: 1px solid rgba(91, 75, 212, 0.3);
  padding: 3rem;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--btn-purple), transparent);
}

.cyber-card:hover {
  border-color: rgba(91, 75, 212, 0.6);
  box-shadow: 0 0 40px rgba(91, 75, 212, 0.15), inset 0 0 40px rgba(91, 75, 212, 0.03);
}

.cyber-card-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.cyber-card-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--btn-purple);
  line-height: 1;
  text-shadow: 0 0 20px rgba(91, 75, 212, 0.4);
}

.cyber-card-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--btn-purple);
  border: 1px solid rgba(91, 75, 212, 0.5);
  padding: 0.4rem 1rem;
}

.cyber-card-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.cyber-card-desc {
  font-size: 0.95rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

.cyber-card-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.cyber-card-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}

.cyber-card-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--btn-purple);
  box-shadow: 0 0 8px rgba(91, 75, 212, 0.6);
}

/* Company Info Table */
.cyber-info-table {
  display: flex;
  flex-direction: column;
}

.cyber-info-row {
  display: flex;
  border-bottom: 1px solid rgba(91, 75, 212, 0.15);
  padding: 1.2rem 0;
}

.cyber-info-row:last-child {
  border-bottom: none;
}

.cyber-info-label {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--btn-purple);
  min-width: 120px;
  flex-shrink: 0;
}

.cyber-info-value {
  font-size: 0.95rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .cyber-card {
    padding: 2rem 1.5rem;
  }

  .cyber-card-number {
    font-size: 2.2rem;
  }

  .cyber-card-title {
    font-size: 1.3rem;
  }

  .cyber-info-row {
    flex-direction: column;
    gap: 0.3rem;
  }
}

/* ==========================================================================
   Contact Form (Cyber Theme)
   ========================================================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--btn-purple);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.form-control {
  padding: 1rem;
  background: rgba(8, 9, 26, 0.8);
  border: 1px solid rgba(91, 75, 212, 0.3);
  color: #fff;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--btn-purple);
  box-shadow: 0 0 8px rgba(91, 75, 212, 0.3);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-checkbox {
  display: flex;
  align-items: center;
}

.form-checkbox label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--btn-purple);
  cursor: pointer;
}

.form-checkbox a {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.form-submit {
  margin-top: 1rem;
  padding: 1.2rem;
  background: var(--btn-purple);
  color: #fff;
  border: none;
  font-weight: 900;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
  border-radius: 0;
  letter-spacing: 0.1em;
  font-family: var(--font-sans);
}

.form-submit:hover {
  background: var(--btn-purple-hover);
  box-shadow: 0 0 20px rgba(91, 75, 212, 0.4);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235b4bd4' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

select.form-control option {
  background: var(--bg-dark-navy);
  color: #fff;
}

/* ==========================================================================
   Cyber Flow - Timeline (Flow Page)
   ========================================================================== */
.cyber-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.cyber-flow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 44px;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--btn-purple), rgba(91, 75, 212, 0.1));
}

.cyber-flow-step {
  display: flex;
  gap: 2.5rem;
  padding-bottom: 3rem;
  position: relative;
}

.cyber-flow-step:last-child {
  padding-bottom: 0;
}

.cyber-flow-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--btn-purple);
  text-shadow: 0 0 15px rgba(91, 75, 212, 0.4);
  min-width: 90px;
  text-align: center;
  position: relative;
  line-height: 1;
  padding-top: 1.5rem;
}

.cyber-flow-number::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 1.8rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--btn-purple);
  box-shadow: 0 0 12px rgba(91, 75, 212, 0.8);
}

.cyber-flow-body {
  background: var(--bg-dark-navy);
  border: 1px solid rgba(91, 75, 212, 0.3);
  padding: 2rem 2.5rem;
  flex: 1;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.cyber-flow-body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--btn-purple), transparent);
}

.cyber-flow-body:hover {
  border-color: rgba(91, 75, 212, 0.6);
  box-shadow: 0 0 30px rgba(91, 75, 212, 0.12);
}

.cyber-flow-tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--btn-purple);
  margin-bottom: 0.5rem;
}

.cyber-flow-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
}

.cyber-flow-period {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(91, 75, 212, 0.3);
  padding: 0.2rem 0.8rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.cyber-flow-body p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .cyber-flow::before {
    left: 30px;
  }

  .cyber-flow-step {
    flex-direction: column;
    padding-left: 60px;
    gap: 0.5rem;
  }

  .cyber-flow-number {
    min-width: auto;
    text-align: left;
    font-size: 1.6rem;
    padding-top: 0;
  }

  .cyber-flow-number::after {
    left: -36px;
    right: auto;
    top: 0.3rem;
  }

  .cyber-flow-body {
    padding: 1.5rem;
  }

  .cyber-flow-title {
    font-size: 1.2rem;
  }
}

/* ==========================================================================
   LINE Fixed Button & Modal
   ========================================================================== */
/* Wrapper for button + bubble */
.line-float-wrapper {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Speech bubble above icon */
.line-float-bubble {
  background: #fff;
  color: #111;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  margin-bottom: 10px;
  white-space: nowrap;
  position: relative;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  animation: bubbleBounce 2s ease-in-out infinite;
  pointer-events: none;
}

/* Triangle tail */
.line-float-bubble::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 8px solid #fff;
}

@keyframes bubbleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.line-float-btn {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #06C755;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 20px rgba(6, 199, 85, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.line-float-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 28px rgba(6, 199, 85, 0.55);
}

.line-float-btn svg {
  width: 36px;
  height: 36px;
  fill: #fff;
}

/* Pulse ring */
.line-float-btn::before {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  border: 2px solid rgba(6, 199, 85, 0.5);
  animation: linePulse 2s ease-out infinite;
}

@keyframes linePulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Modal Overlay */
.line-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 9, 26, 0.85);
  backdrop-filter: blur(6px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.line-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.line-modal {
  position: relative;
  background: var(--bg-dark-navy);
  border: 1px solid rgba(6, 199, 85, 0.4);
  padding: 3rem 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.3s ease;
}

.line-modal-overlay.active .line-modal {
  transform: translateY(0) scale(1);
}

/* Top gradient line */
.line-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #06C755, transparent);
}

.line-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
  line-height: 1;
}

.line-modal-close:hover {
  color: #fff;
}

.line-modal-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  fill: #06C755;
}

.line-modal-title {
  font-size: 1.3rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.line-modal-desc {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2rem;
}

.line-modal-qr {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  display: inline-block;
  margin-bottom: 2rem;
}

.line-modal-qr img {
  width: 180px;
  height: 180px;
  display: block;
}

.line-modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #06C755;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  padding: 1rem 2.5rem;
  border: none;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.line-modal-cta:hover {
  background: #05b34c;
  box-shadow: 0 0 20px rgba(6, 199, 85, 0.4);
  transform: translateY(-2px);
}

.line-modal-cta svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

@media (max-width: 768px) {
  .line-float-wrapper {
    bottom: 1.2rem;
    right: 0.5rem;
  }

  .line-float-btn {
    width: 56px;
    height: 56px;
  }

  .line-float-btn svg {
    width: 30px;
    height: 30px;
  }

  .line-float-bubble {
    font-size: 0.65rem;
    padding: 0.4rem 0.7rem;
    margin-bottom: 8px;
  }

  .line-modal {
    padding: 2rem 1.5rem;
  }

  .line-modal-qr img {
    width: 150px;
    height: 150px;
  }
}