/* 
  Exact Style Recreation for jp-anime.support 
  Base Styles & Variables
*/
:root {
  --bg-color: #0a0a0a;
  --bg-header: rgba(0, 0, 0, 0.85);
  --bg-footer: #050505;
  --surface-color: rgba(20, 20, 20, 0.6);
  --primary-color: #00c089;
  --primary-gradient: linear-gradient(135deg, #00c089, #007a57);
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --accent-color: #00c089;
  --glow-color: rgba(0, 192, 137, 0.15);
  --btn-shadow: rgba(0, 192, 137, 0.25) 0px 10px 25px 0px;
  --card-shadow: rgba(0, 192, 137, 0.1) 0px 20px 40px 0px;
  --container-max-width: 1400px;
}

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

html {
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  line-height: 1.5;
  overflow-x: clip; 
  width: 100%;
  position: relative;
  padding-top: 90px; /* Space for the fixed header */
}

h1, h2, h3 {
  word-wrap: break-word;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 40px; 
  width: 100%;
  box-sizing: border-box;
}

section {
  width: 100%;
  overflow: hidden; /* Contain animations */
}

@media (min-width: 1600px) {
  .container {
    padding: 0 80px;
  }
}

/* Animations (Simulating AOS) */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* Header */
header {
  background-color: var(--bg-header);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
}

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

.logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo .jp {
  color: var(--primary-color);
  text-transform: lowercase;
}

.logo .support {
  font-size: 12px;
  font-weight: 300;
  display: block;
  margin-top: -5px;
  opacity: 0.8;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

nav a {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

nav a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  padding: 120px 0;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 1.2;
}

.hero-content h1 {
  font-size: 72px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -2px;
}

.hero-content p {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 600px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 18px 48px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 40px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--btn-shadow);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: rgba(0, 192, 137, 0.4) 0px 15px 30px 0px;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: none;
  margin-left: 15px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: #ffffff;
}

.hero-image {
  flex: 0.8;
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  display: block;
}

/* Partner Logos (Marquee style) */
.partners {
  padding: 80px 0;
  background-color: var(--bg-footer);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.partners h3 {
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 3px;
  margin-bottom: 50px;
  text-transform: uppercase;
}

.logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.logo-grid span {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  opacity: 0.4;
  transition: all 0.3s ease;
  cursor: default;
}

.logo-grid span:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Service / Roles Section */
.role {
  padding: 120px 0;
}

.role h2 {
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
}

.role-box {
  background-color: var(--surface-color);
  padding: 80px 100px;
  border-radius: 20px;
  border: 1px solid rgba(0, 192, 137, 0.15);
  box-shadow: var(--card-shadow);
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.role-box p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.role-box .highlight {
  color: var(--accent-color);
  font-weight: 700;
}

/* Card Grid (About page) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 60px;
}

.card {
  background-color: var(--surface-color);
  padding: 50px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

.card:hover {
  border-color: rgba(0, 192, 137, 0.3);
  transform: translateY(-10px);
  box-shadow: var(--card-shadow);
}

.card h3 {
  font-size: 28px;
  color: var(--accent-color);
  margin-bottom: 24px;
  font-weight: 800;
}

/* Info Table */
.info-table {
  width: 100%;
  margin-top: 80px;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-table th {
  text-align: left;
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
  width: 250px;
}

.info-table td {
  padding: 30px 0;
  font-weight: 500;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  margin-top: 60px;
}

.contact-form {
  background-color: var(--surface-color);
  padding: 60px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 24px;
  border-radius: 12px;
  color: white;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  min-height: 180px;
  resize: vertical;
}

/* Footer Case */
footer {
  background-color: var(--bg-footer);
  padding: 100px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 80px;
}

.footer-brand .logo {
  margin-bottom: 24px;
  display: inline-block;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-links h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 30px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 16px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

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

.copyright {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.2);
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

/* Responsive Design */

/* Tablet & Smaller Desktop */
@media (max-width: 1200px) {
  .container {
    padding: 12px 32px;
  }
  .hero-content h1 {
    font-size: 56px;
  }
  .role-box {
    padding: 60px;
  }
}

/* Mobile & Tablet Transition */
@media (max-width: 992px) {
  .header-inner {
    padding: 12px 16px;
  }
  
  /* Mobile Menu Toggle (Hamburger) */
  .menu-toggle {
    display: block;
    cursor: pointer;
    z-index: 10001;
  }
  
  .menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 6px 0;
    transition: 0.3s;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background-color: #111;
    display: flex;
    flex-direction: column;
    padding: 100px 40px;
    gap: 30px;
    transform: translateX(100%); /* Use transform for zero overflow */
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    visibility: hidden;
    z-index: 10000;
  }

  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
  }

  nav ul {
    flex-direction: column;
    gap: 25px;
  }
  
  nav a {
    font-size: 18px;
  }

  /* Hero */
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding: 0 20px;
  }
  
  .hero-content {
    order: 1;
    width: 100%;
  }
  
  .hero-image {
    order: 2;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }

  .hero-content p {
    margin: 0 auto 40px;
    font-size: 16px;
  }

  .hero-content h1 {
    font-size: 48px;
    margin-bottom: 24px;
    line-height: 1.2;
  }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .footer-brand p {
    margin: 0 auto;
  }
}

/* Small Mobile Devices */
@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .hero {
    padding: 60px 0;
  }

  .hero-content h1 {
    font-size: 32px; /* Prevent clipping */
    letter-spacing: -1px;
    word-break: break-all;
  }

  .role-box {
    padding: 40px 24px;
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 30px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .btn {
    padding: 16px 32px;
    font-size: 14px;
    width: 100%;
    margin-left: 0 !important;
    margin-bottom: 15px;
  }

  .logo-grid {
    gap: 30px;
  }
  
  .logo-grid span {
    font-size: 16px;
  }
  
  .info-table th {
    width: 120px;
    font-size: 13px;
    padding: 20px 10px;
  }
  
  .info-table td {
    font-size: 14px;
    padding: 20px 10px;
  }
}

/* Animations for Mobile Toggle */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -7px);
}
