/* ===== L.E.O. Custom Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

:root {
  --brand-orange: #E8792A;
  --brand-yellow: #FFCC00;
  --brand-gradient: linear-gradient(180deg, #FFCC00 0%, #F4B017 50%, #E8792A 100%);
  --brand-gradient-soft: linear-gradient(135deg, rgba(255, 204, 0, 0.06) 0%, rgba(232, 121, 42, 0.06) 100%);
  --ink: #0F0E0D;
  --ink-2: #3D3935;
  --ink-3: #6E6863;
  --ink-4: #A39E98;
  --paper: #FEFCF9;
  --line: #EAE6DF;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}

.font-display { font-family: 'Fraunces', 'Hiragino Mincho ProN', serif; }
.font-sans-jp { font-family: 'Noto Sans JP', sans-serif; }

/* Gradient text */
.text-gradient {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Gradient backgrounds */
.bg-gradient-brand { background: var(--brand-gradient); }
.bg-gradient-soft { background: var(--brand-gradient-soft); }

/* Subtle grain on hero */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* Section label (English serif italic with line) */
.section-label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  color: var(--brand-orange);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  letter-spacing: 0.02em;
}
.section-label::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--brand-orange);
}

/* Headline display */
.display-xl {
  font-family: 'Fraunces', 'Hiragino Mincho ProN', serif;
  font-weight: 400;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.display-lg {
  font-family: 'Fraunces', 'Hiragino Mincho ProN', serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.display-md {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
}

/* Japanese display headline */
.headline-jp {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 9999px;
  background: var(--ink);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.05em;
}
.btn-primary:hover {
  background: var(--brand-orange);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(255, 107, 26, 0.4);
}
.btn-primary .arrow { transition: transform 0.3s ease; }
.btn-primary:hover .arrow { transform: translate(3px, -3px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 9999px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.05em;
}
.btn-secondary:hover {
  background: var(--ink);
  color: white;
}

.btn-gradient {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.75rem;
  border-radius: 9999px;
  background: var(--brand-gradient);
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(255, 107, 26, 0.5);
}
.btn-gradient .arrow { transition: transform 0.3s ease; }
.btn-gradient:hover .arrow { transform: translate(3px, -3px); }

/* Nav */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: all 0.3s ease;
  backdrop-filter: blur(0px);
}
.nav-wrap.scrolled {
  background: rgba(254, 252, 249, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  position: relative;
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--brand-orange);
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link .en {
  font-family: 'Fraunces', serif;
  font-style: italic;
  display: block;
  font-size: 0.7rem;
  color: var(--ink-4);
  margin-bottom: 2px;
}

/* Logo */
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img { height: 32px; width: auto; display: block; }
@media (max-width: 768px) { .logo-img { height: 26px; } }

.logo-link-footer { display: inline-flex; align-items: center; text-decoration: none; }
.logo-img-footer { height: 40px; width: auto; display: block; }

/* Service row interactive */
.service-row {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}
.service-row:hover {
  padding-left: 1.5rem;
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.03) 0%, transparent 100%);
}
.service-row .arrow-circle {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.service-row:hover .arrow-circle {
  background: var(--brand-gradient);
  border-color: transparent;
  color: white;
}

/* Card hover */
.card-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15, 14, 13, 0.15);
}

/* Decorative blob behind hero */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 500px; height: 500px;
  background: var(--brand-yellow);
  top: -100px; right: -100px;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--brand-orange);
  bottom: -100px; left: -50px;
  opacity: 0.3;
}

/* FAQ accordion */
.faq-item summary {
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus-icon {
  transition: transform 0.3s ease;
}
.faq-item[open] .plus-icon { transform: rotate(45deg); }

/* Decorative blobs (dark-section background highlights) */
.blob-orange-tr {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background: radial-gradient(circle at 80% 20%, var(--brand-orange) 0%, transparent 50%);
}
.blob-yellow-bl {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background: radial-gradient(circle at 20% 80%, var(--brand-yellow) 0%, transparent 50%);
}

/* Diagonal gradient text (used inside dark sections) */
.text-gradient-diagonal {
  background: linear-gradient(135deg, var(--brand-yellow) 0%, var(--brand-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* AOS-like fade up - using vanilla CSS in case AOS fails */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Marquee for hero secondary */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  animation: marquee 30s linear infinite;
  width: max-content;
}

/* Mobile nav */
@media (max-width: 768px) {
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--paper);
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 6rem 2rem 2rem;
  }
  .mobile-menu.open { transform: translateX(0); }
}

/* Pretty selection */
::selection {
  background: var(--brand-orange);
  color: white;
}
