/* ============================
   CSS Variables & Reset
   ============================ */
:root {
  --navy: #1a2744;
  --navy-dark: #0f1a30;
  --navy-mid: #243460;
  --gold: #c9a84c;
  --gold-light: #e8c97a;
  --gold-pale: #f5e9c8;
  --white: #ffffff;
  --off-white: #f9f6f0;
  --gray-light: #f0ece4;
  --gray: #9a8f80;
  --text: #2a2420;
  --text-light: #6b6055;

  --font-serif-jp: 'Noto Serif JP', 'Shippori Mincho', serif;
  --font-serif-kr: 'Noto Serif KR', serif;
  --font-serif: var(--font-serif-jp);

  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.2s ease;
  --shadow: 0 8px 40px rgba(26, 39, 68, 0.12);
  --shadow-gold: 0 4px 24px rgba(201, 168, 76, 0.25);
}

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

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

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

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

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

/* ============================
   Utility
   ============================ */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding { padding: 100px 0; }

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.section-desc {
  color: var(--text-light);
  font-size: 1rem;
  line-height: 1.9;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

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

.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.85rem; }
.btn-full { width: 100%; text-align: center; }

/* ============================
   Reveal Animations
   ============================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.reveal-right {
  transform: translateX(40px);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================
   HEADER
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-en {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}
.logo-ja {
  font-size: 0.62rem;
  color: var(--gold);
  letter-spacing: 0.15em;
}

.nav {
  display: flex;
  gap: 2rem;
}
.nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { width: 100%; }

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.lang-sep { color: rgba(255,255,255,0.3); font-size: 0.8rem; }
.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  transition: color var(--transition-fast);
}
.lang-btn:hover, .lang-btn.active {
  color: var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: all var(--transition-fast);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--navy-dark);
  padding: 1rem 2rem 1.5rem;
}
.mobile-nav a {
  color: rgba(255,255,255,0.8);
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.mobile-nav.open { display: flex; }

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 30px,
      rgba(201, 168, 76, 0.04) 30px,
      rgba(201, 168, 76, 0.04) 31px
    ),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 30px,
      rgba(201, 168, 76, 0.04) 30px,
      rgba(201, 168, 76, 0.04) 31px
    );
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 50%, rgba(36, 52, 96, 0.6) 0%, rgba(15, 26, 48, 0.9) 70%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 2rem 4rem;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero-title-line {
  display: block;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
}
.hero-title-line:nth-child(1) { animation-delay: 0.5s; }
.hero-title-line:nth-child(2) { animation-delay: 0.7s; }
.hero-title-line:nth-child(3) { animation-delay: 0.9s; }

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

.hero-sub {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.1s forwards;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s ease 1.3s forwards;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: fadeIn 1s ease 1.8s forwards;
}

.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.15);
}
.deco-circle-1 {
  width: 500px; height: 500px;
  top: -100px; right: -100px;
  animation: rotateSlow 30s linear infinite;
}
.deco-circle-2 {
  width: 300px; height: 300px;
  bottom: -50px; left: -50px;
  animation: rotateSlow 20s linear infinite reverse;
}

.deco-kanji {
  position: absolute;
  bottom: 15%;
  right: 8%;
  font-size: 12rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.06);
  line-height: 1;
  font-family: var(--font-serif-jp);
  user-select: none;
}

/* ============================
   ABOUT
   ============================ */
.about { background: var(--off-white); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(26, 39, 68, 0.1);
}

.stat-num {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat-num span { font-size: 1rem; color: var(--gold); }
.stat-label {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.3rem;
  letter-spacing: 0.05em;
}

.about-visual { display: flex; justify-content: center; }

.about-img-wrap {
  width: 100%;
  max-width: 460px;
  position: relative;
}

.about-img-inner {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
}

.texture-block {
  position: absolute;
  border-radius: 2px;
}
.texture-1 {
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(201,168,76,0.15) 3px, rgba(201,168,76,0.15) 4px),
    repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(26,39,68,0.08) 3px, rgba(26,39,68,0.08) 4px),
    linear-gradient(135deg, #2a1f10 0%, #1a2744 50%, #0f1a30 100%);
}
.texture-2 {
  top: 10%; left: 10%;
  width: 40%; height: 35%;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(201,168,76,0.3) 4px, rgba(201,168,76,0.3) 5px);
  border: 1px solid rgba(201,168,76,0.4);
}
.texture-3 {
  bottom: 15%; right: 10%;
  width: 50%; height: 40%;
  background:
    repeating-linear-gradient(-45deg, transparent, transparent 4px, rgba(255,255,255,0.08) 4px, rgba(255,255,255,0.08) 5px);
  border: 1px solid rgba(255,255,255,0.15);
}
.about-img-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: rgba(26,39,68,0.85);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  padding: 0.4rem 0.8rem;
  backdrop-filter: blur(4px);
}

/* ============================
   SERVICE
   ============================ */
.service { background: var(--white); }

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--off-white);
  border: 1px solid rgba(26,39,68,0.08);
  padding: 2rem;
  border-radius: 4px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(201,168,76,0.3);
}
.service-card:hover::before { height: 100%; }

.card-icon {
  width: 52px; height: 52px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.7rem;
  font-weight: 600;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
}

.service-card-cta {
  background: var(--navy);
  border-color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-card-cta::before { background: var(--gold); }
.service-card-cta:hover { background: var(--navy-mid); }

.cta-inner { text-align: center; }
.cta-inner p {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

/* Reveal delays for cards */
.service-card[data-delay="0"] { transition-delay: 0s; }
.service-card[data-delay="1"] { transition-delay: 0.1s; }
.service-card[data-delay="2"] { transition-delay: 0.2s; }
.service-card[data-delay="3"] { transition-delay: 0.3s; }
.service-card[data-delay="4"] { transition-delay: 0.4s; }
.service-card[data-delay="5"] { transition-delay: 0.5s; }

/* ============================
   WHY US
   ============================ */
.whyus {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.whyus .section-title { color: var(--white); }
.whyus .section-label { color: var(--gold); }

.whyus-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 700;
  color: rgba(255,255,255,0.03);
  letter-spacing: 0.1em;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}

.whyus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.whyus-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  padding: 2.5rem 2rem;
  border-radius: 4px;
  transition: all var(--transition);
}
.whyus-item:hover {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.5);
  transform: translateY(-4px);
}

.whyus-num {
  font-size: 3rem;
  font-weight: 700;
  color: rgba(201,168,76,0.2);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.whyus-icon {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.whyus-item h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}
.whyus-item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  line-height: 1.8;
}

.whyus-item[data-delay="0"] { transition-delay: 0s; }
.whyus-item[data-delay="1"] { transition-delay: 0.15s; }
.whyus-item[data-delay="2"] { transition-delay: 0.3s; }

/* ============================
   FLOW
   ============================ */
.flow { background: var(--off-white); }

.flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.flow-steps::before {
  content: '';
  position: absolute;
  left: 38px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), rgba(201,168,76,0.1));
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 0;
  position: relative;
}

.step-num {
  flex-shrink: 0;
  width: 76px; height: 76px;
  background: var(--navy);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 2px solid rgba(201,168,76,0.3);
  transition: all var(--transition);
}

.flow-step:hover .step-num {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.step-content {
  flex: 1;
  padding: 1rem 0;
}
.step-content h3 {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.step-content p {
  color: var(--text-light);
  font-size: 0.875rem;
  line-height: 1.8;
}

.step-arrow {
  color: var(--gold);
  font-size: 1.5rem;
  padding-top: 1.2rem;
  opacity: 0.5;
}

.flow-step[data-delay="0"] { transition-delay: 0s; }
.flow-step[data-delay="1"] { transition-delay: 0.1s; }
.flow-step[data-delay="2"] { transition-delay: 0.2s; }
.flow-step[data-delay="3"] { transition-delay: 0.3s; }
.flow-step[data-delay="4"] { transition-delay: 0.4s; }

/* ============================
   CONTACT
   ============================ */
.contact { background: var(--white); }

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 1rem; }
.contact-info > p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  line-height: 1.9;
}

.contact-detail { display: flex; flex-direction: column; gap: 0.8rem; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.875rem;
  color: var(--text-light);
}
.contact-icon { color: var(--gold); font-size: 1rem; }

.contact-form {
  background: var(--off-white);
  padding: 2.5rem;
  border-radius: 4px;
  border: 1px solid rgba(26,39,68,0.08);
}

.form-group {
  margin-bottom: 1.4rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(26,39,68,0.15);
  border-radius: 2px;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition-fast);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-group textarea { resize: vertical; }

.form-note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--gray);
  margin-top: 0.8rem;
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--navy-dark);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo-footer .logo-en { font-size: 1.2rem; }
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  line-height: 1.8;
  margin-top: 0.8rem;
}

.footer-links, .footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links h4, .footer-info h4 {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--white); }
.footer-info p {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.footer-lang { display: flex; gap: 0.5rem; }

/* ============================
   TOAST
   ============================ */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--navy);
  color: var(--white);
  padding: 0.8rem 2rem;
  border-radius: 2px;
  font-size: 0.875rem;
  border-left: 3px solid var(--gold);
  transition: transform 0.4s ease;
  z-index: 9999;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1024px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { gap: 3rem; }
}

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

  .nav { display: none; }
  .hamburger { display: flex; }
  .lang-switcher { display: none; }

  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }

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

  .whyus-grid { grid-template-columns: 1fr; gap: 1rem; }

  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; }

  .flow-steps::before { left: 36px; }
  .step-num { width: 72px; height: 72px; }
  .step-arrow { display: none; }

  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; text-align: center; }

  .deco-kanji { font-size: 7rem; }
  .deco-circle-1 { width: 300px; height: 300px; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.2rem; }
  .contact-form { padding: 1.5rem; }
  .about-stats { gap: 1.5rem; }
}
