/* ===========================
   ZERO-ONE Inc. - Main Styles
   =========================== */

/* --- Variables --- */
:root {
  --color-primary: #1a1a2e;
  --color-secondary: #16213e;
  --color-accent: #e8b86d;
  --color-accent-light: #f5d08a;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #ffffff;
  --color-bg: #f9f7f4;
  --color-bg-dark: #0f0f1a;
  --font-main: 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  --font-en: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --transition: all 0.3s ease;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --radius-lg: 16px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

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

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

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

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.en-font {
  font-family: var(--font-en);
}

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* ===========================
   HEADER / NAVIGATION
   =========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 15, 26, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 184, 109, 0.2);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 40px;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  line-height: 1;
  text-decoration: none;
}

.nav-logo-img {
  height: 26px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  flex-shrink: 0;
  transition: opacity 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  opacity: 1;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-logo .logo-main {
  font-family: var(--font-en);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.1em;
  line-height: 1;
}

.nav-logo .logo-main .accent {
  color: var(--color-accent);
}

.nav-logo .logo-sub {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.15em;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-en);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(15, 15, 26, 0.98);
  padding: 20px 40px 30px;
  border-top: 1px solid rgba(232, 184, 109, 0.2);
}

.mobile-nav a {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav a:hover {
  color: var(--color-accent);
}

.mobile-nav.open {
  display: flex;
}

@media (max-width: 768px) {
  nav {
    padding: 0 20px;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
}

/* ===========================
   SECTION COMMON STYLES
   =========================== */
section {
  padding: 100px 0;
}

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

.section-label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.section-title.white {
  color: var(--color-white);
}

.section-divider {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  margin: 20px auto 0;
  border-radius: 2px;
}

.section-lead {
  margin-top: 24px;
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   PAGE HERO (Inner pages)
   =========================== */
.page-hero {
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-secondary) 50%, #1a2a4a 100%);
  position: relative;
  overflow: hidden;
  padding-top: 70px;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border: 1px solid rgba(232, 184, 109, 0.1);
  border-radius: 50%;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: 5%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(232, 184, 109, 0.15);
  border-radius: 50%;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero-label {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: 16px;
}

.page-hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.page-hero-title .accent {
  color: var(--color-accent);
}

.page-hero-subtitle {
  margin-top: 16px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .page-hero-title {
    font-size: 2.2rem;
  }
  section {
    padding: 70px 0;
  }
  .section-title {
    font-size: 1.9rem;
  }
}

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-primary);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(232, 184, 109, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline-accent {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-outline-accent:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 26px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  flex-shrink: 0;
}

.footer-logo-text {
  font-family: var(--font-en);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.1em;
  line-height: 1;
}

.footer-logo-text .accent {
  color: var(--color-accent);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.5);
}

.footer-nav h4 {
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav ul a {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.footer-nav ul a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom .copy {
  font-family: var(--font-en);
  letter-spacing: 0.05em;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* ===========================
   ANIMATIONS
   =========================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
