/* 
  ONE EIGHT - Premium Light Theme CSS
*/

:root {
  --bg-color: #ffffff;
  --bg-color-alt: #f4f7fb;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  
  --accent-cyan: #0ea5e9;
  --accent-purple: #3b82f6;
  --accent-blue: #2563eb;
  
  --gradient-primary: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  --gradient-glow: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(37, 99, 235, 0.2));
  
  --font-en: 'Outfit', sans-serif;
  --font-jp: 'Noto Sans JP', sans-serif;
  
  --transition-fast: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

h1:lang(ja), h2:lang(ja), h3:lang(ja), p:lang(ja), li:lang(ja), dt:lang(ja), dd:lang(ja), label:lang(ja), input:lang(ja), textarea:lang(ja), select:lang(ja), button:lang(ja) {
  font-family: var(--font-jp);
}

p, li, dt, dd {
  font-family: var(--font-jp);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: inline-block;
  position: relative;
  font-weight: 800;
  letter-spacing: 2px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Utilities */
.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Custom Cursor Glow */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,0.05) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease-out;
  mix-blend-mode: multiply;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: 0 10px 20px -10px var(--accent-blue);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 25px -10px var(--accent-blue);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: #fff;
  color: var(--text-primary);
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: #f8fafc;
  transform: translateY(-3px);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: padding var(--transition-fast), background var(--transition-fast), backdrop-filter var(--transition-fast);
}

.header.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav-list {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-link:not(.btn-contact)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-fast);
}

.nav-link:not(.btn-contact):hover::after {
  width: 100%;
}

.nav-link:not(.btn-contact):hover {
  color: var(--accent-blue);
}

.btn-contact {
  padding: 10px 24px;
  border-radius: 20px;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.btn-contact:hover {
  background: var(--accent-cyan);
  color: var(--bg-color);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0.8) 80%, rgba(255,255,255,1) 100%);
}

@keyframes slowZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.15); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.3;
  margin-bottom: 24px;
  word-break: auto-phrase;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
}

.scroll-indicator span {
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mouse {
  width: 26px;
  height: 42px;
  border: 2px solid var(--text-secondary);
  border-radius: 13px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

/* Services */
.services {
  background-color: var(--bg-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.service-card {
  background: var(--bg-color);
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(14, 165, 233, 0.3);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 20px rgba(14, 165, 233, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-image {
  height: 200px;
  position: relative;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-icon {
  position: absolute;
  bottom: -24px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--bg-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  z-index: 2;
}

.service-content {
  padding: 40px 30px;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-content p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-cyan);
  font-family: var(--font-en);
}

/* About Section */
.about {
  background: linear-gradient(to bottom, var(--bg-color) 0%, var(--bg-color-alt) 100%);
}

.about-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-content {
  flex: 1;
}

.about-content .section-title {
  margin-bottom: 8px;
}

.about-content .section-title::after {
  left: 0;
  transform: none;
}

.company-name {
  font-size: 3rem;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.company-info dl {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px 20px;
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}

.company-info dt {
  color: var(--text-primary);
  font-weight: 600;
}

.company-info dd {
  color: var(--text-secondary);
}

.about-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  position: relative;
}

.glow-sphere {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: var(--gradient-primary);
  position: relative;
  box-shadow: 0 20px 40px rgba(37,99,235,0.25);
  animation: float 6s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.glow-sphere::before {
  content: '\221E';
  font-family: var(--font-jp), sans-serif;
  font-weight: 400;
  font-size: 8rem;
  color: rgba(255,255,255,0.9);
  z-index: 2;
}

.glow-sphere::after {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  border-radius: 50%;
  border: 2px dashed rgba(37,99,235,0.4);
  animation: rotate 20s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Contact Section */
.contact {
  background-color: var(--bg-color-alt);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,0.05) 0%, rgba(255,255,255,0) 60%);
  border-radius: 50%;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-jp);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
  background: #ffffff;
}

.btn-submit {
  width: 100%;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.form-status {
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  display: none;
}

.form-status.success {
  color: #00ff88;
  display: block;
}

.form-status.error {
  color: #ff5555;
  display: block;
}

/* Footer */
.footer {
  background: #0f172a;
  padding: 60px 0 20px;
  color: #fff;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  color: var(--text-secondary);
}

.social-links a:hover {
  background: var(--gradient-primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
}

/* Animations */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

.active.reveal-text,
.active.reveal-fade,
.active.reveal-slide-up {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .about-inner {
    flex-direction: column;
  }
  .about-content {
    text-align: center;
  }
  .about-content .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .company-info dl {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    padding: 100px 30px;
    transition: right var(--transition-fast);
    border-left: 1px solid #e2e8f0;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
  }
  .nav.open {
    right: 0;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .mobile-menu-btn.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-btn.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .footer-top {
    flex-direction: column;
    gap: 20px;
  }
}
