@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700;900&family=Outfit:wght@300;400;600;800&display=swap');

/* --- DESIGN SYSTEM TOKENS --- */
:root {
  /* Color Palette */
  --primary-rgb: 24, 76, 120;     /* Deep Blue */
  --secondary-rgb: 0, 168, 204;   /* Light Teal/Blue */
  --accent-rgb: 212, 175, 55;     /* Soft Gold */
  --bg-dark-rgb: 15, 23, 42;      /* Deep Slate Gray */
  --bg-light-rgb: 248, 250, 252;  /* Soft Warm White */
  
  --text-dark: #0f172a;
  --text-light: #f8fafc;
  --text-muted: #64748b;
  
  /* Glassmorphism Styles */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-bg-dark: rgba(15, 23, 42, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-border-dark: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
  --glass-blur: 16px;

  /* Font Families */
  --font-main: 'Noto Sans JP', sans-serif;
  --font-en: 'Outfit', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-light-rgb);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* --- UTILITIES --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

.section-padding {
  padding: 8rem 0;
}

.text-center {
  text-align: center;
}

/* Gradients & Backgrounds */
.bg-gradient-light {
  background: radial-gradient(circle at 10% 20%, rgba(240, 245, 255, 1) 0%, rgba(255, 255, 255, 1) 90%);
}

.bg-gradient-dark {
  background: linear-gradient(135deg, rgba(var(--bg-dark-rgb), 1) 0%, #1e293b 100%);
  color: var(--text-light);
}

/* Glassmorphism Classes */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
}

.glass-panel-dark {
  background: var(--glass-bg-dark);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border-dark);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  border-radius: 24px;
}

/* Headings */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.section-title span.en {
  display: block;
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgb(var(--secondary-rgb));
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, rgb(var(--primary-rgb)), rgb(var(--secondary-rgb)));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 1.5rem auto 4rem auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(135deg, rgb(var(--primary-rgb)) 0%, rgb(var(--secondary-rgb)) 100%);
  color: white;
  box-shadow: 0 10px 20px -10px rgba(var(--primary-rgb), 0.5);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px rgba(var(--primary-rgb), 0.7);
}

.btn-secondary {
  background: transparent;
  color: rgb(var(--primary-rgb));
  border: 2px solid rgb(var(--primary-rgb));
}

.btn-secondary:hover {
  background: rgb(var(--primary-rgb));
  color: white;
  transform: translateY(-3px);
}

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
  padding: 1.5rem 0;
}

header.scrolled {
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

header.scrolled .logo-text {
  color: rgb(var(--primary-rgb));
}

header.scrolled .nav-link {
  color: var(--text-dark);
}

header.scrolled .nav-link:hover {
  color: rgb(var(--secondary-rgb));
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgb(var(--primary-rgb)), rgb(var(--secondary-rgb)));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--font-en);
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.logo-text {
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: var(--text-light);
  transition: var(--transition-smooth);
}

.logo-text span {
  font-size: 0.8rem;
  display: block;
  font-weight: 400;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: rgb(var(--secondary-rgb));
  transition: var(--transition-smooth);
}

.nav-link:hover {
  color: white;
}

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

.nav-cta {
  background: linear-gradient(135deg, rgb(var(--secondary-rgb)), rgb(var(--primary-rgb)));
  color: white !important;
  padding: 0.6rem 1.5rem !important;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(var(--secondary-rgb), 0.4);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--secondary-rgb), 0.6);
}

.nav-cta::after {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  border: none;
  background: transparent;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  transition: var(--transition-smooth);
}

header.scrolled .hamburger span {
  background-color: var(--text-dark);
}

/* --- HERO SECTION --- */
.hero {
  height: 100vh;
  min-height: 700px;
  position: relative;
  display: flex;
  align-items: center;
  background: url('../images/hero_bg.png') no-repeat center center/cover;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0.2) 100%);
  z-index: 1;
}

.hero-content {
  max-width: 650px;
  z-index: 2;
  color: var(--text-light);
}

.hero-tagline {
  font-family: var(--font-en);
  font-weight: 600;
  text-transform: uppercase;
  color: rgb(var(--secondary-rgb));
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  display: inline-block;
  background: rgba(var(--secondary-rgb), 0.15);
  padding: 0.4rem 1.2rem;
  border-radius: 50px;
  border: 1px solid rgba(var(--secondary-rgb), 0.3);
  backdrop-filter: blur(5px);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

.hero h1 span {
  background: linear-gradient(to right, #ffffff, rgb(var(--secondary-rgb)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.15rem;
  color: #cbd5e1;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.hero-scroll-down {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: white;
  font-family: var(--font-en);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll-down span {
  display: block;
  width: 2px;
  height: 50px;
  background: linear-gradient(to bottom, white, transparent);
  animation: scrollDown 2s infinite ease-in-out;
}

@keyframes scrollDown {
  0% {
    height: 0;
    opacity: 0;
  }
  50% {
    height: 50px;
    opacity: 1;
  }
  100% {
    height: 50px;
    opacity: 0;
    transform: translateY(20px);
  }
}

/* --- CONCEPT / STRENGTHS --- */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.strength-card {
  padding: 3rem 2rem;
  border-radius: 24px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.strength-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgb(var(--primary-rgb)), rgb(var(--secondary-rgb)));
  opacity: 0;
  transition: var(--transition-smooth);
}

.strength-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  background: rgba(255, 255, 255, 0.9);
}

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

.strength-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: rgba(var(--primary-rgb), 0.05);
  color: rgb(var(--primary-rgb));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.strength-card:hover .strength-icon {
  background: linear-gradient(135deg, rgb(var(--primary-rgb)), rgb(var(--secondary-rgb)));
  color: white;
  transform: scale(1.1);
}

.strength-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.strength-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- SERVICES --- */
.services-container {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.service-row {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.service-row:nth-child(even) {
  flex-direction: row-reverse;
}

.service-image-wrapper {
  flex: 1;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.service-image-wrapper img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-row:hover .service-image-wrapper img {
  transform: scale(1.05);
}

.service-glass-overlay {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 1.5rem;
  border-radius: 16px;
}

.service-glass-overlay h4 {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.service-info {
  flex: 1;
}

.service-num {
  font-family: var(--font-en);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(var(--primary-rgb), 0.15);
  line-height: 1;
  margin-bottom: 1rem;
}

.service-info h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.service-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.service-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
}

.service-features li::before {
  content: '✓';
  color: rgb(var(--secondary-rgb));
  font-weight: bold;
}

/* --- GALLERY / PORTFOLIO (BEFORE-AFTER) --- */
.gallery-section {
  position: relative;
}

.comparison-slider-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.comparison-slider {
  position: relative;
  width: 100%;
  height: 500px;
  user-select: none;
}

.comparison-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-before {
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slider-after {
  width: 100%;
  height: 100%;
  z-index: 2;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: white;
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.slider-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  cursor: ew-resize;
  pointer-events: none;
}

.slider-button::before,
.slider-button::after {
  content: '';
  border: solid #0f172a;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
}

.slider-button::before {
  transform: rotate(135deg);
  margin-right: 4px;
}

.slider-button::after {
  transform: rotate(-45deg);
  margin-left: 4px;
}

.label-before,
.label-after {
  position: absolute;
  top: 20px;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: white;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 5;
  pointer-events: none;
}

.label-before {
  left: 20px;
}

.label-after {
  right: 20px;
}

/* --- COMPANY PROFILE --- */
.company-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.company-info-table {
  width: 100%;
  border-collapse: collapse;
}

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

.company-info-table tr:last-child {
  border-bottom: none;
}

.company-info-table th,
.company-info-table td {
  padding: 1.5rem 1rem;
  text-align: left;
}

.company-info-table th {
  width: 30%;
  font-weight: 700;
  color: rgb(var(--secondary-rgb));
}

.company-map {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  height: 400px;
}

.company-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --- CONTACT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
}

.contact-card {
  padding: 3rem;
  border-radius: 24px;
}

.contact-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.contact-method-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(var(--primary-rgb), 0.05);
  color: rgb(var(--primary-rgb));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-method-detail h4 {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-method-detail p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.contact-form-panel {
  padding: 3rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: rgb(var(--secondary-rgb));
  box-shadow: 0 0 0 4px rgba(var(--secondary-rgb), 0.15);
  background: white;
}

textarea.form-control {
  resize: vertical;
}

.submit-btn {
  width: 100%;
  margin-top: 1rem;
}

.form-success-message {
  display: none;
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 1.5rem;
  border-radius: 16px;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.5s ease forwards;
}

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

/* --- FOOTER --- */
footer {
  background: #090d16;
  color: rgba(255, 255, 255, 0.6);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-about .logo-text {
  color: white;
  margin-bottom: 1.5rem;
}

.footer-about p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.footer-links h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links a {
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: rgb(var(--secondary-rgb));
  padding-left: 5px;
}

.footer-copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

/* --- ANIMATION ON SCROLL --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
  .strengths-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .service-row, .service-row:nth-child(even) {
    flex-direction: column;
    gap: 2rem;
  }
  
  .service-image-wrapper {
    width: 100%;
  }
  
  .service-image-wrapper img {
    height: 350px;
  }
  
  .company-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .section-padding {
    padding: 5rem 0;
  }
  
  header {
    padding: 1rem 0;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #0f172a;
    z-index: 1000;
    padding: 6rem 2rem 2rem 2rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }
  
  .nav-link {
    color: white;
    font-size: 1.1rem;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
    background-color: white;
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
    background-color: white;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 1rem;
  }
  
  .strengths-grid {
    grid-template-columns: 1fr;
  }
  
  .comparison-slider {
    height: 350px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
