:root {
  --ivory: #faf7f0; --honey: #d4952b; --honey-light: #e0a94a;
  --honey-pale: rgba(212,149,43,0.08); --walnut: #5c4033;
  --walnut-light: #7a5c4a; --cream: #f0e8d8; --cream-deep: #e8dece;
  --charcoal: #3a3530; --text: #3a3530; --text-light: #7a7268;
  --text-lighter: #a09888; --white: #ffffff; --border: #e5ddd0;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-ui: 'DM Sans', 'Noto Sans JP', sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --max-width: 1200px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text); background: var(--ivory); line-height: 1.8; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===========================
   Page Transition Overlay
   =========================== */
.page-transition {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--walnut);
  transform: translateY(100%);
  pointer-events: none;
}

/* ===========================
   Loading Screen
   =========================== */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--walnut);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
}
.loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 500;
  color: var(--ivory); letter-spacing: 8px;
  overflow: hidden;
}
.loader-logo .char {
  display: inline-block; opacity: 0;
  transform: translateY(100%);
  animation: charReveal 0.6s var(--ease-out) forwards;
}
.loader-bar {
  width: 140px; height: 1px; background: rgba(255,255,255,0.1);
  margin-top: 28px; border-radius: 2px; overflow: hidden;
}
.loader-bar::after {
  content: ''; display: block; width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--honey), var(--honey-light));
  animation: loaderProgress 1.4s 0.6s var(--ease-in-out) forwards;
}
@keyframes charReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes loaderProgress { to { width: 100%; } }

/* ===========================
   Scroll Animations
   =========================== */
.reveal {
  opacity: 0; transform: translateY(50px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

/* Split text animation */
.split-text .word {
  display: inline-block; overflow: hidden; vertical-align: top;
}
.split-text .word .char-inner {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 0.7s var(--ease-out);
}
.split-text.visible .word .char-inner {
  transform: translateY(0);
}

/* Stagger children */
.split-text .word:nth-child(1) .char-inner { transition-delay: 0.0s; }
.split-text .word:nth-child(2) .char-inner { transition-delay: 0.05s; }
.split-text .word:nth-child(3) .char-inner { transition-delay: 0.1s; }
.split-text .word:nth-child(4) .char-inner { transition-delay: 0.15s; }
.split-text .word:nth-child(5) .char-inner { transition-delay: 0.2s; }
.split-text .word:nth-child(6) .char-inner { transition-delay: 0.25s; }
.split-text .word:nth-child(7) .char-inner { transition-delay: 0.3s; }
.split-text .word:nth-child(8) .char-inner { transition-delay: 0.35s; }
.split-text .word:nth-child(9) .char-inner { transition-delay: 0.4s; }
.split-text .word:nth-child(10) .char-inner { transition-delay: 0.45s; }

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 48px; height: 80px;
  display: flex; align-items: center; justify-content: space-between;
  background: transparent;
  transition: height 0.4s var(--ease-out), background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.nav.scrolled {
  height: 64px;
  background: rgba(250,247,240,0.95);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 24px rgba(92,64,51,0.06);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600;
  color: var(--walnut); letter-spacing: 3px;
  transition: color 0.3s, font-size 0.4s;
}
.nav.scrolled .nav-logo { font-size: 24px; }
.nav-logo:hover { color: var(--honey); }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  font-family: var(--font-ui); font-size: 12px; font-weight: 500;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-light); position: relative; transition: color 0.3s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 50%; width: 0; height: 1.5px;
  background: var(--honey); transition: width 0.3s var(--ease-out), left 0.3s var(--ease-out);
}
.nav-link:hover { color: var(--walnut); }
.nav-link:hover::after { width: 100%; left: 0; }
.nav-cta {
  font-family: var(--font-ui); font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--white); background: var(--walnut);
  padding: 10px 24px; border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
}
.nav-cta:hover { background: var(--charcoal); transform: translateY(-1px); }
.nav-toggle { display: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--walnut); margin: 5px 0; }

/* ===========================
   Hero
   =========================== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 80px 48px 0;
  background: linear-gradient(165deg, var(--ivory) 0%, var(--cream) 45%, var(--cream-deep) 100%);
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute;
  top: -50%; right: -20%; width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(212,149,43,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-width); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-content { position: relative; z-index: 2; }
.hero-label {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--honey); margin-bottom: 24px;
  opacity: 0; animation: heroSlideUp 0.8s 2s var(--ease-out) forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 500; line-height: 1.3; color: var(--walnut); margin-bottom: 24px;
}
.hero-title em { font-style: italic; color: var(--honey); }
/* Hero title chars animated individually */
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line-inner {
  display: block; transform: translateY(110%);
  animation: heroLineReveal 0.9s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) .line-inner { animation-delay: 2s; }
.hero-title .line:nth-child(2) .line-inner { animation-delay: 2.15s; }
@keyframes heroLineReveal { to { transform: translateY(0); } }

.hero-desc {
  font-size: 15px; line-height: 2; color: var(--text-light); margin-bottom: 40px;
  opacity: 0; animation: heroSlideUp 0.8s 2.4s var(--ease-out) forwards;
}
.hero-actions {
  display: flex; gap: 16px; align-items: center;
  opacity: 0; animation: heroSlideUp 0.8s 2.6s var(--ease-out) forwards;
}
.btn-primary {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600; letter-spacing: 1px;
  color: var(--white); background: var(--walnut);
  padding: 16px 36px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%); transition: transform 0.6s;
}
.btn-primary:hover::before { transform: translateX(100%); }
.btn-primary:hover { background: var(--charcoal); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(92,64,51,0.2); }
.btn-primary .arrow { transition: transform 0.3s var(--ease-out); }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  font-family: var(--font-ui); font-size: 13px; font-weight: 500; letter-spacing: 1px;
  color: var(--walnut); padding: 16px 24px;
  display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s;
}
.btn-ghost:hover { color: var(--honey); }

.hero-visual {
  position: relative;
  opacity: 0; animation: heroFadeIn 1s 2.4s var(--ease-out) forwards;
}
/* Tilt effect container */
.tilt-card {
  transform-style: preserve-3d; perspective: 1000px;
  transition: transform 0.15s ease-out;
}
.hero-img-main {
  width: 100%; aspect-ratio: 4/5;
  background: var(--cream-deep); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-lighter);
  font-family: var(--font-ui); letter-spacing: 1px;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px rgba(92,64,51,0.12);
  transition: box-shadow 0.3s;
}
.tilt-card:hover .hero-img-main { box-shadow: 0 30px 80px rgba(92,64,51,0.18); }
.hero-float-card {
  position: absolute; bottom: -20px; left: -40px;
  background: var(--white); padding: 20px 24px; border-radius: 8px;
  box-shadow: 0 12px 40px rgba(92,64,51,0.12);
  display: flex; align-items: center; gap: 16px;
  animation: floatCard 3s ease-in-out infinite;
  transform: translateZ(30px);
}
.hero-float-icon {
  width: 44px; height: 44px; background: var(--honey-pale); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.hero-float-text .label {
  font-family: var(--font-ui); font-size: 10px; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-lighter);
}
.hero-float-text .value {
  font-family: var(--font-ui); font-size: 20px; font-weight: 700; color: var(--walnut);
}
@keyframes heroSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroFadeIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }
@keyframes floatCard { 0%, 100% { transform: translateY(0) translateZ(30px); } 50% { transform: translateY(-8px) translateZ(30px); } }

/* ===========================
   About
   =========================== */
.about { padding: 140px 48px; background: var(--ivory); }
.about-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center;
}
.about-img {
  aspect-ratio: 3/4; background: var(--cream-deep); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--text-lighter); font-family: var(--font-ui);
  position: relative; overflow: hidden;
}
/* Parallax image shift */
.about-img-parallax { transition: transform 0.1s linear; }
.about-label {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--honey); margin-bottom: 12px;
}
.about-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px); font-weight: 500;
  color: var(--walnut); line-height: 1.3; margin-bottom: 28px;
}
.about-text p { font-size: 15px; line-height: 2.2; color: var(--text-light); margin-bottom: 16px; }
.link-arrow {
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  color: var(--honey); display: inline-flex; align-items: center; gap: 8px;
  margin-top: 16px; transition: gap 0.3s var(--ease-out);
}
.link-arrow:hover { gap: 14px; }

/* ===========================
   Features
   =========================== */
.features { padding: 140px 48px; background: var(--cream); position: relative; }
.features-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.features-label {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--honey); margin-bottom: 12px;
}
.features-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px); font-weight: 500;
  color: var(--walnut); line-height: 1.3; margin-bottom: 64px;
}
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.feature-card {
  background: var(--ivory); border-radius: 12px; padding: 48px 36px;
  text-align: center;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.feature-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(92,64,51,0.1); }
.feature-icon {
  width: 64px; height: 64px; margin: 0 auto 24px;
  background: var(--honey-pale); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-3deg); background: rgba(212,149,43,0.15); }
.feature-card h3 { font-size: 18px; font-weight: 700; color: var(--walnut); margin-bottom: 12px; }
.feature-card p { font-size: 14px; line-height: 1.9; color: var(--text-light); }

/* ===========================
   Numbers Bar — with countup
   =========================== */
.numbers { background: var(--walnut); padding: 64px 48px; position: relative; overflow: hidden; }
/* Animated gradient line at top */
.numbers::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--honey), transparent);
  background-size: 200% 100%;
  animation: shimmerLine 3s ease-in-out infinite;
}
@keyframes shimmerLine { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.numbers-inner {
  max-width: var(--max-width); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  position: relative; z-index: 1;
}
.number-item { text-align: center; }
.number-value {
  font-family: var(--font-ui); font-size: clamp(28px, 3vw, 44px);
  font-weight: 700; color: var(--white); line-height: 1;
}
.number-value .accent { color: var(--honey-light); }
.number-value .count-num { display: inline-block; min-width: 1ch; }
.number-label {
  font-family: var(--font-ui); font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase; color: rgba(255,255,255,0.45); margin-top: 10px;
}

/* ===========================
   Page Links
   =========================== */
.page-links { padding: 140px 48px; background: var(--ivory); }
.page-links-inner { max-width: var(--max-width); margin: 0 auto; text-align: center; }
.page-links-label {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--honey); margin-bottom: 12px;
}
.page-links-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 36px); font-weight: 500;
  color: var(--walnut); margin-bottom: 56px;
}
.page-links-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.page-link-card {
  background: var(--white); border-radius: 10px; padding: 40px 24px;
  text-align: center; border: 1px solid var(--border);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s, border-color 0.3s;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.page-link-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(92,64,51,0.1); border-color: var(--honey); }
.page-link-icon {
  width: 48px; height: 48px; background: var(--honey-pale); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  transition: transform 0.4s var(--ease-out);
}
.page-link-card:hover .page-link-icon { transform: scale(1.15); }
.page-link-card h3 { font-size: 15px; font-weight: 700; color: var(--walnut); }
.page-link-card p { font-size: 12px; color: var(--text-light); line-height: 1.7; }
.page-link-arrow {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  color: var(--honey); letter-spacing: 1px;
  display: inline-flex; align-items: center; gap: 6px; margin-top: auto;
  transition: gap 0.3s var(--ease-out);
}
.page-link-card:hover .page-link-arrow { gap: 12px; }

/* ===========================
   Contact CTA
   =========================== */
.contact-cta {
  padding: 120px 48px; background: var(--walnut);
  text-align: center; position: relative; overflow: hidden;
}
.contact-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(212,149,43,0.12) 0%, transparent 60%);
  pointer-events: none;
}
.contact-cta-inner { max-width: 600px; margin: 0 auto; position: relative; z-index: 1; }
.contact-cta .cta-label {
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  letter-spacing: 4px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); margin-bottom: 12px;
}
.contact-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.5vw, 36px); font-weight: 500;
  color: var(--ivory); margin-bottom: 16px;
}
.contact-cta p { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.9; margin-bottom: 40px; }
.btn-cta-light {
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; letter-spacing: 1px;
  color: var(--walnut); background: var(--ivory);
  padding: 18px 48px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.2s, box-shadow 0.3s;
  position: relative; overflow: hidden;
}
.btn-cta-light::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent, rgba(212,149,43,0.15), transparent);
  transform: translateX(-100%); transition: transform 0.6s;
}
.btn-cta-light:hover::before { transform: translateX(100%); }
.btn-cta-light:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.15); }
.contact-sub { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 20px; }

/* ===========================
   Footer
   =========================== */
.footer { background: var(--charcoal); padding: 64px 48px 32px; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logo { font-family: var(--font-display); font-size: 28px; font-weight: 500; color: var(--ivory); letter-spacing: 3px; margin-bottom: 12px; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-nav { display: flex; gap: 64px; }
.footer-nav-title { font-family: var(--font-ui); font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.footer-nav-link { display: block; font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 10px; transition: color 0.3s; }
.footer-nav-link:hover { color: var(--honey-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; font-size: 11px; color: rgba(255,255,255,0.25); }
.footer-social { display: flex; gap: 20px; }
.footer-social a { color: rgba(255,255,255,0.35); transition: color 0.3s; font-size: 13px; }
.footer-social a:hover { color: var(--honey-light); }

/* ===========================
   Responsive
   =========================== */
@media (max-width: 1024px) {
  .cursor-dot, .cursor-ring { display: none !important; }
  .hero { padding: 80px 32px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 400px; margin: 0 auto; }
  .hero-float-card { left: auto; right: -20px; bottom: -16px; }
  .about { padding: 80px 32px; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-img { max-width: 360px; }
  .features { padding: 80px 32px; }
  .features-grid { grid-template-columns: 1fr; gap: 20px; }
  .numbers { padding: 40px 32px; }
  .numbers-inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .page-links { padding: 80px 32px; }
  .page-links-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cta { padding: 80px 32px; }
  .footer { padding: 48px 32px 24px; }
  .footer-top { flex-direction: column; gap: 40px; }
  .nav { padding: 0 32px; }
}
@media (max-width: 768px) {
  .nav { padding: 0 20px; height: 64px; }
  .nav.scrolled { height: 56px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(250,247,240,0.98); padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08); gap: 20px;
    backdrop-filter: blur(20px);
  }
  .nav-toggle { display: block; }
  .hero { padding: 64px 20px 0; min-height: auto; padding-top: 100px; padding-bottom: 48px; }
  .hero-title { font-size: 32px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .about { padding: 56px 20px; }
  .features { padding: 56px 20px; }
  .numbers { padding: 32px 20px; }
  .numbers-inner { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .number-value { font-size: 24px; }
  .page-links { padding: 56px 20px; }
  .page-links-grid { grid-template-columns: 1fr; }
  .contact-cta { padding: 56px 20px; }
  .footer { padding: 40px 20px 20px; }
  .footer-nav { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
}

/* ===========================
   Magnetic button effect
   =========================== */
.magnetic { transition: transform 0.2s ease-out; }
