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

body {
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.4;
  color: #fff;
  overflow: hidden;
  height: 100svh;
  background: #000;
}

/* Teaser Hero Section */
.teaser-hero {
  position: relative;
  width: 100vw;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

/* Logo */
.teaser-logo {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
}

.logo-white {
  height: 60px;
  filter: invert(1) brightness(2);
}

/* Video Background */
.teaser-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  z-index: 1;
  overflow: hidden;
}

.teaser-video video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  object-fit: cover;
  object-position: center center;
  transition: opacity 1s ease-in-out;
  z-index: 1;
  
  /* Safari-specific fixes */
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000;
  perspective: 1000;
  
  /* Force hardware acceleration */
  will-change: transform;
  
  /* Prevent Safari video controls */
  -webkit-appearance: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.teaser-video::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2));
  z-index: 2;
  pointer-events: none;
}

/* Content */
.teaser-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 90%;
  max-width: 800px;
}

.teaser-title {
  font-size: 4rem;
  font-weight: 100;
  margin-bottom: 2rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUpText 2s ease-out 0.5s forwards;
  font-family: "Helvetica Neue", "Arial", sans-serif;
}

.teaser-subtitle {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 300;
  opacity: 0;
  animation: fadeInUpText 2s ease-out 1s forwards;
  letter-spacing: 0.1em;
}

.teaser-description {
  font-size: 1.1rem;
  font-weight: 200;
  opacity: 0;
  animation: fadeInUpText 2s ease-out 1.5s forwards;
  margin-bottom: 3rem;
  letter-spacing: 0.05em;
}

/* CTA Button */
.teaser-cta {
  opacity: 0;
  animation: fadeInUpText 2s ease-out 2.5s forwards;
}

.line-cta-button {
  display: inline-block;
  background: transparent;
  color: white !important;
  text-decoration: none;
  padding: 16px 40px;
  border: 2px solid white;
  border-radius: 0;
  font-weight: 300;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  z-index: 11;
  cursor: pointer;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

.line-cta-button:hover {
  background: white;
  color: black !important;
  transform: translateY(-1px);
  border-color: white;
}

.line-cta-button:active {
  transform: translateY(0);
}

.cta-text {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: 0.1em;
}

.cta-subtext {
  display: block;
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 300;
  letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(30px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }
}

@keyframes fadeInUpText {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .teaser-logo {
    top: 20px;
  }

  .logo-white {
    height: 40px;
  }

  .teaser-video video {
    object-position: center center;
    object-fit: cover;
  }

  .teaser-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.2em;
  }

  .teaser-subtitle {
    font-size: 0.8rem;
    margin-bottom: 0.8rem;
  }

  .teaser-description {
    font-size: 0.9rem;
  }

  .line-cta-button {
    padding: 14px 32px;
    font-size: 0.85rem;
  }

  .cta-text {
    font-size: 1rem;
  }

  .cta-subtext {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .teaser-video video {
    object-position: center center;
    object-fit: cover;
  }

  .teaser-title {
    font-size: 2.2rem;
    letter-spacing: 0.15em;
  }

  .teaser-subtitle {
    font-size: 1rem;
  }

  .teaser-description {
    font-size: 0.8rem;
  }

  .line-cta-button {
    padding: 12px 28px;
    font-size: 0.8rem;
  }

  .cta-text {
    font-size: 0.95rem;
  }

  .cta-subtext {
    font-size: 0.75rem;
  }
}

/* Company Info Button */
.company-info-btn {
  position: fixed;
  bottom: 40px;
  left: 40px;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  z-index: 30;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.company-info-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.info-icon {
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  font-family: serif;
}

/* Company Modal */
.company-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  display: none;
  transition: all 0.4s ease;
}

.company-modal.active {
  opacity: 1;
  visibility: visible;
  display: block;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 400px;
  max-width: 500px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.company-modal.active .modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 300;
}

.modal-close:hover {
  color: #000;
  transform: scale(1.1);
}

.company-details h3 {
  font-size: 1.4rem;
  font-weight: 300;
  color: #333;
  margin-bottom: 30px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.company-item {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}

.company-label {
  font-size: 0.9rem;
  font-weight: 400;
  color: #666;
  min-width: 80px;
  margin-right: 20px;
  letter-spacing: 0.05em;
}

.company-value {
  font-size: 0.9rem;
  font-weight: 300;
  color: #333;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .company-info-btn {
    bottom: 30px;
    left: 30px;
    width: 45px;
    height: 45px;
  }

  .info-icon {
    font-size: 1.1rem;
  }

  .modal-content {
    min-width: 320px;
    max-width: 90vw;
    padding: 30px 25px;
  }

  .company-details h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
  }

  .company-item {
    flex-direction: column;
    margin-bottom: 15px;
  }

  .company-label {
    margin-bottom: 5px;
    margin-right: 0;
    font-size: 0.8rem;
  }

  .company-value {
    font-size: 0.85rem;
  }
}


/* macOS Safari video optimizations */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
  .teaser-video video {
    /* Force GPU acceleration on macOS Safari */
    -webkit-transform: translate3d(0, 0, 0);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    
    /* Improve rendering performance */
    image-rendering: optimizeSpeed;
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Play button overlay styles */
.video-play-overlay {
  transition: opacity 0.3s ease;
}

.video-play-overlay .play-button {
  transition: transform 0.2s ease;
}

.video-play-overlay .play-button:hover {
  transform: scale(1.1);
}

/* Video Loading Overlay */
.video-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 50;
  transition: opacity 0.5s ease;
  pointer-events: auto;
}

.video-loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Loading Spinner */
.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

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

/* Loading Text */
.loading-text {
  color: white;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

/* Loading Progress */
.loading-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loading-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #fff, rgba(255, 255, 255, 0.8));
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

/* Loading percentage */
.loading-percentage {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  font-weight: 300;
  margin-top: 10px;
  letter-spacing: 0.05em;
}


/* Responsive loading overlay */
@media (max-width: 768px) {
  .loading-spinner {
    width: 50px;
    height: 50px;
    border-width: 2px;
  }
  
  .loading-text {
    font-size: 0.8rem;
  }
  
  .loading-progress {
    width: 160px;
    height: 3px;
  }
  
  .loading-percentage {
    font-size: 0.7rem;
  }
}
