:root {
  /* Colors */
  --bg-color: #ffffff;
  --text-main: #111111;
  --text-gray: #666666;
  --text-light: #999999;
  --accent-color: #00ffff;
  --border-color: #eeeeee;

  /* Gradients - More vivid and saturated, increased variety */
  --gradient-1: #00ecbc; /* Vivid Teal/Cyan */
  --gradient-2: #ff00cc; /* Vivid Magenta */
  --gradient-3: #ffcc00; /* Vivid Yellow */
  --gradient-4: #007bff; /* Vivid Blue */

  /* Typography */
  --font-en: "Inter", sans-serif;
  --font-jp: "Noto Sans JP", sans-serif;

  /* Spacing */
  --spacing-container: 4vw;
  --spacing-section: 120px;
}

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

body {
  font-family: var(--font-jp);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 80px; /* Space for sticky nav */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-en);
  font-weight: 600;
  line-height: 1.2;
}

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

a:hover {
  color: var(--text-gray);
}

/* Utilities */
.section-container {
  padding: var(--spacing-section) var(--spacing-container);
  max-width: 1600px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-size: 14px;
  letter-spacing: 0.2em;
  color: var(--text-gray);
  text-transform: uppercase;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #fff;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5; /* Slightly increased for better visibility */
  animation: float 12s infinite ease-in-out alternate; /* Speed increased */
  mix-blend-mode: multiply;
}

.orb-1 {
  width: 60vw;
  height: 60vw;
  background: var(--gradient-1);
  top: -20%;
  left: -10%;
  animation-duration: 12s;
}

.orb-2 {
  width: 50vw;
  height: 50vw;
  background: var(--gradient-2);
  bottom: -10%;
  right: -10%;
  animation-duration: 15s;
  animation-direction: alternate-reverse; /* Move in opposite rhythm */
}

.orb-3 {
  width: 40vw;
  height: 40vw;
  background: var(--gradient-3);
  top: 40%;
  left: 30%;
  animation-duration: 13s;
  animation-delay: -5s;
}

.orb-4 {
  width: 35vw;
  height: 35vw;
  background: var(--gradient-4);
  top: 10%;
  right: 20%;
  animation-duration: 14s;
  animation-delay: -2s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  33% {
    transform: translate(100px, 50px) rotate(10deg) scale(1.1);
  }
  66% {
    transform: translate(-50px, 80px) rotate(-5deg) scale(0.9);
  }
  100% {
    transform: translate(20px, -100px) rotate(5deg) scale(1.05);
  }
}

/* Spotlight Effect */
.hero-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    background: radial-gradient(
        circle 200px at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
        rgba(255, 255, 255, 0.5) 0%,
        rgba(255, 255, 255, 0.1) 40%,
        transparent 70%
    );
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-section:hover .hero-spotlight {
    opacity: 1;
}

.hero-content {
  width: 100%;
  height: 100%;
  padding: var(--spacing-container);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-header {
  position: absolute;
  top: var(--spacing-container);
  left: var(--spacing-container);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.brand-logo .logo-icon {
  width: auto;
  height: 120px; /* Increased by 200% */
  display: block;
}

.logo-text {
  font-family: var(--font-en);
  font-size: 24px;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--text-main);
}

.logo-text .bold {
  font-weight: 700;
}

.brand-logo:hover {
  transform: scale(1.05);
  cursor: pointer;
}

.brand-logo:hover .logo-text {
  color: var(--gradient-1); /* Change text color */
}

.brand-logo:hover .logo-icon {
  filter: drop-shadow(0 0 2px var(--gradient-1)); /* Subtle glow */
  transform: scale(1.1); /* Slight icon pop */
}

.brand-logo .logo-icon,
.brand-logo .logo-text {
  transition: all 0.3s ease;
}

.hero-main-copy {
  text-align: left;
  margin-top: 10vh;
}

.hero-main-copy .hero-title {
  font-size: clamp(40px, 9vw, 120px); /* Larger than h2 */
  line-height: 1.2;
  margin-bottom: 30px;
  font-family: var(--font-jp);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.hero-main-copy h2 {
  font-size: clamp(20px, 3vw, 40px); /* Reduced significantly to emphasize H1 */
  line-height: 1.4;
  letter-spacing: 0.05em;
  font-weight: 500;
  margin-bottom: 30px;
}

.hero-main-copy .en-copy {
  display: block;
  margin-bottom: 20px;
  background: -webkit-linear-gradient(45deg, #333, #000);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-main-copy .jp-copy {
  font-family: var(--font-jp);
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 400;
  color: var(--text-main);
  display: block;
}

.sp-only {
  display: none;
}

@media (max-width: 768px) {
  .sp-only {
    display: block;
  }
  .hero-main-copy .hero-title {
    font-size: clamp(32px, 8vw, 60px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: var(--spacing-container);
  left: var(--spacing-container);
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-gray);
  animation: scrollBounce 2.5s infinite ease-in-out;
}

.scroll-indicator:hover {
  color: var(--text-main);
  animation-play-state: paused;
}

.scroll-indicator .line {
  width: 60px;
  height: 1px;
  background: var(--text-gray);
  transform-origin: left;
  animation: scrollLine 2.5s infinite cubic-bezier(0.8, 0, 0.2, 1);
}

.scroll-indicator:hover .line {
  background: var(--text-main);
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}

@keyframes scrollLine {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  45% {
    transform: scaleX(1);
    transform-origin: left;
  }
  55% {
    transform: scaleX(1);
    transform-origin: right;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right;
  }
}

/* Concept Section */
.concept-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(
    135deg,
    var(--gradient-1) 0%,
    var(--gradient-2) 100%
  ); /* Vivid gradient */
  opacity: 0.8;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease;
}

.img-placeholder:hover {
  transform: scale(1.02);
  opacity: 1;
}

.img-placeholder::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.8) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0.3;
  transform: rotate(30deg);
}

.concept-text {
  padding-right: 5%;
}

.lead-text {
  font-size: clamp(18px, 2.5vw, 32px);
  font-weight: 500;
  margin-bottom: 30px;
  line-height: 1.6;
}

.price-amount {
  font-size: clamp(60px, 12vw, 120px); /* Significantly larger */
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: inline-block;
  margin-bottom: 20px;
}

.body-text {
  color: var(--text-gray);
  font-size: 15px;
}

/* Services Section */
.services-list {
  border-top: 1px solid var(--border-color);
}

.service-item {
  display: flex;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
  transition:
    background 0.3s ease,
    padding-left 0.3s ease; /* Animate padding for movement */
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

/* Solution Section - Card Layout */
.solution-grid {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.solution-card {
  display: flex;
  background-color: #f7f7f5; /* Light beige background */
  min-height: 400px;
  align-items: stretch;
  overflow: hidden; /* Ensure rounded corners if any, or keep clean edges */
}

.solution-card.reverse {
  flex-direction: row-reverse;
}

.solution-text {
  flex: 1;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 50%;
}

.solution-image-container {
  flex: 1;
  width: 50%;
  overflow: hidden; /* Key for zoom effect */
}

.solution-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); /* Smooth ease-out */
}

/* Hover Effect */
.solution-card:hover .solution-image {
  transform: scale(1.05);
}

.solution-number {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--gradient-4); /* Blue for number */
  font-weight: 600;
  margin-bottom: 20px;
  display: block;
  letter-spacing: 0.1em;
}

.solution-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.4;
}

.solution-desc {
  font-size: 15px;
  color: var(--text-gray);
  margin-bottom: 30px;
  line-height: 1.8;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.solution-tags span {
  background: #fff;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-main);
  border-radius: 4px; /* Slight radius or 0 depending on preference */
}

.solution-more {
  font-family: var(--font-en);
  font-size: 14px;
  font-weight: 600;
  color: var(--gradient-4); /* Blue link */
  letter-spacing: 0.1em;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.solution-more:hover {
  gap: 10px;
}

/* Responsive Solution Card */
@media (max-width: 900px) {
  .solution-card {
    flex-direction: column-reverse;
  }

  .solution-card.reverse {
    flex-direction: column-reverse;
  }

  .solution-text {
    width: 100%;
    padding: 40px 20px;
  }

  .solution-image-container {
    width: 100%;
    height: 250px; /* Fixed height for mobile image */
    flex: none;
  }
}

/* Services List (Kept for Flow/FAQ) */
.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0%;
  background: var(--gradient-1); /* Changed to Teal */
  transition: height 0.3s ease;
}

.service-item:hover {
  background: #fafafa;
  padding-left: 20px; /* Slight indentation */
}

.service-item:hover::before {
  height: 100%;
}

.service-number {
  font-family: var(--font-en);
  font-size: 14px;
  color: var(--text-light);
  width: 80px;
}

.service-item:hover .service-number {
  color: var(--gradient-1); /* Change color on hover */
  font-weight: 600;
}

.service-info {
  flex: 1;
}

.service-name {
  font-size: 24px;
  margin-bottom: 5px;
  transition: color 0.3s ease;
}

.service-item:hover .service-name {
  color: var(--gradient-1); /* Highlight text */
}

.service-desc {
  color: var(--text-gray);
  font-size: 14px;
}

.service-arrow {
  font-size: 20px;
  color: var(--text-light);
  transform: translateX(0);
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.service-item:hover .service-arrow {
  transform: translateX(15px);
  color: var(--gradient-1);
}

/* Works Section */
.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
}

.work-image.placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(
    45deg,
    var(--gradient-3) 0%,
    var(--gradient-1) 100%
  ); /* Different gradient pair */
  opacity: 0.8;
  transition:
    filter 0.3s ease,
    transform 0.5s ease,
    opacity 0.3s ease;
  border-radius: 4px;
}

.work-card:hover .work-image.placeholder {
  filter: brightness(1); /* Brighten */
  opacity: 1;
  transform: scale(1.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Lift effect */
}

.work-category {
  font-family: var(--font-en);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-gray);
  display: block;
  margin-bottom: 5px;
}

.work-title {
  font-size: 20px;
  margin-bottom: 5px;
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
}

.work-card:hover .work-title {
  color: var(--gradient-1);
}

.work-tags {
  font-size: 12px;
  color: var(--accent-color); /* Cyan accent */
  filter: brightness(0.7); /* Adjusted for better contrast on white */
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Column Section */
.column-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.column-card {
  display: block;
  text-decoration: none;
  color: var(--text-main);
}

.column-image-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  margin-bottom: 20px;
}

.column-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.column-card:hover .column-image {
  transform: scale(1.05); /* Same hover effect as solution cards */
}

.column-content {
  padding: 0 5px;
}

.column-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--text-gray);
  font-family: var(--font-en); /* For numbers */
}

.column-cat {
  font-family: var(--font-ja);
}

.column-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  transition: color 0.3s ease;
}

.column-card:hover .column-title {
  color: var(--gradient-1);
}

/* Responsive Column */
@media (max-width: 900px) {
  .column-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Concept Section */
.concept-content {
  display: flex;
  gap: 80px;
  align-items: center;
}

.concept-image {
  flex: 1;
  width: 50%;
}

.concept-text {
  flex: 1;
  width: 50%;
}

@media (max-width: 900px) {
  .concept-content {
    flex-direction: column;
    gap: 40px;
  }

  .concept-image,
  .concept-text {
    width: 100%;
  }
}

/* Contact Section - Inverted Colors */
#contact {
  background-color: #000;
  color: #fff;
  padding-bottom: 120px; /* Add some bottom padding */
}

#contact .section-title {
  color: #999;
}

#contact .lead-text {
  color: #fff;
}

#contact .body-text {
  color: #ccc;
}

#contact .contact-btn {
  background: #fff;
  color: #000;
  border-color: #fff;
}

#contact .contact-btn:hover {
  background: #e6e6e6;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Footer */
.site-footer {
  padding: 80px var(--spacing-container) 120px; /* Extra padding bottom for sticky nav */
  background: #fafafa;
  margin-top: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-logo {
  display: inline-flex; /* Use inline-flex to fit content */
  align-items: center;
  gap: 15px;
  transition: transform 0.3s ease;
  cursor: pointer;
  transform-origin: left center; /* Fix layout shift on scale */
}

.footer-logo .logo-icon {
  width: auto;
  height: 100px; /* Increased by 200% */
  display: block;
}

.footer-logo:hover {
  transform: scale(1.05);
}

.footer-logo:hover .logo-text {
  color: var(--gradient-1);
}

.footer-logo:hover .logo-icon {
  filter: drop-shadow(0 0 2px var(--gradient-1));
  transform: scale(1.1);
}

.footer-logo .logo-icon,
.footer-logo .logo-text {
  transition: all 0.3s ease;
}

.footer-links {
  display: flex;
  gap: 30px;
  font-size: 13px;
}

.copyright {
  font-size: 11px;
  color: var(--text-light);
  font-family: var(--font-en);
}

/* Sticky Navigation */
.sticky-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  z-index: 2000; /* Increased to stay above menu overlay */
  display: flex;
  align-items: center;
}

.nav-container {
  width: 100%;
  height: 100%;
  padding: 0 var(--spacing-container);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.menu-trigger {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  z-index: 2000; /* Ensure above overlay */
  position: relative;
  width: 100px; /* Force width to avoid layout shift */
}

.menu-trigger .lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 25px;
  transition: transform 0.3s ease;
}

.menu-trigger .line {
  display: block;
  width: 100%;
  height: 1px;
  background: #000;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    background 0.3s ease;
}

/* Hamburger Animation */
.menu-trigger.active .lines {
  gap: 0;
}

.menu-trigger.active .line:nth-child(1) {
  transform: rotate(45deg) translate(2px, 2px);
}

.menu-trigger.active .line:nth-child(2) {
  opacity: 0;
}

.menu-trigger.active .line:nth-child(3) {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* Overlay Menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.menu-list li {
  overflow: hidden; /* For text reveal animation if needed */
}

.menu-list a {
  font-family: var(--font-en);
  font-size: 32px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  display: block;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  transform: translateY(20px);
  opacity: 0;
}

.menu-overlay.active .menu-list a {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.1s;
}

.menu-overlay.active .menu-list li:nth-child(1) a {
  transition-delay: 0.1s;
}
.menu-overlay.active .menu-list li:nth-child(2) a {
  transition-delay: 0.15s;
}
.menu-overlay.active .menu-list li:nth-child(3) a {
  transition-delay: 0.2s;
}
.menu-overlay.active .menu-list li:nth-child(4) a {
  transition-delay: 0.25s;
}
.menu-overlay.active .menu-list li:nth-child(5) a {
  transition-delay: 0.3s;
}
.menu-overlay.active .menu-list li:nth-child(6) a {
  transition-delay: 0.35s;
}
.menu-overlay.active .menu-list li:nth-child(7) a {
  transition-delay: 0.4s;
}
.menu-overlay.active .menu-list li:nth-child(8) a {
  transition-delay: 0.45s;
}

.menu-list a:hover {
  color: var(--gradient-1);
  transform: scale(1.1);
}

.contact-btn {
  background: var(--text-main);
  color: #fff;
  padding: 12px 30px;
  border-radius: 4px;
  font-family: var(--font-en);
  font-size: 12px;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent; /* Prepare for border transition */
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.contact-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
  z-index: -1;
}

.contact-btn:hover {
  background: #000;
  box-shadow: 0 0 15px rgba(0, 236, 188, 0.4); /* Glow matching gradient-1 */
  transform: translateY(-2px);
  border-color: var(--gradient-1);
}

.contact-btn:hover::before {
  left: 100%;
}

.contact-btn .arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.contact-btn:hover .arrow {
  transform: translate(3px, -3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .concept-content {
    grid-template-columns: 1fr;
  }

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

  .hero-bg .orb-1 {
    width: 100vw;
    height: 100vw;
  }

  /* Mobile Menu Adjustments */
  .menu-list {
    gap: 15px; /* Reduced specific gap for mobile */
  }

  .menu-list a {
    font-size: 20px; /* Reduced specific font size for mobile */
  }
}
