:root {
  --white: #ffffff;
  --off-white: #fbfbfd;
  --gray-50: #f5f5f7;
  --gray-100: #eeeef0;
  --gray-200: #d2d2d7;
  --gray-400: #86868b;
  --gray-600: #515154;
  --black: #1d1d1f;
  --pure-black: #000000;

  --orange-50: #fff4ec;
  --orange-100: #ffe4d1;
  --orange-300: #ffb380;
  --orange-500: #ff6b1a;
  --orange-600: #ff5500;
  --orange-700: #e04d00;

  --accent: var(--orange-500);
  --accent-strong: var(--orange-600);

  --font-jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-en: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Inter", Arial, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, monospace;

  --max-w: 1440px;
  --container-w: 1200px;
  --tight-w: 980px;

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--white); color: var(--black); }
body {
  font-family: var(--font-jp);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: white; }

/* ============ HEADER ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: background 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}
.header-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 32px; height: 32px;
  position: relative;
  flex-shrink: 0;
  background-image: url("logo-sun.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.logo-mark.is-dark {
  background-image: url("logo-sun-dark.png");
}
.logo-mark svg { display: none; }
.logo-img {
  height: 30px !important;
  max-height: 30px;
  width: auto !important;
  max-width: none;
  display: block;
  flex-shrink: 0;
}
.footer-brand .logo-img,
.footer-brand .footer-logo .logo-img {
  height: 38px !important;
  max-height: 38px;
}
.nav {
  display: flex;
  gap: 36px;
  align-items: center;
}
.nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 13px;
  font-weight: 500;
  color: inherit;
  opacity: 0.75;
  transition: opacity 0.2s ease, color 0.2s ease;
  position: relative;
}
.nav a:hover { opacity: 1; }
.nav a.is-active { opacity: 1; color: var(--accent); }
.nav a.is-active .en { color: var(--accent); opacity: 1; }
.nav a .en {
  font-family: var(--font-en);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  opacity: 0.55;
  text-transform: uppercase;
}
.nav-cta {
  padding: 8px 16px;
  border-radius: 980px;
  background: var(--black);
  color: white !important;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.2s ease;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--accent); }
.nav a.nav-cta.is-active { background: var(--accent); color: white !important; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-jp);
}
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px -10px rgba(255, 107, 26, 0.6);
}
.btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.btn-secondary:hover { background: var(--black); color: white; }
.btn-ghost { background: transparent; color: inherit; padding: 14px 0; }
.btn-ghost::after { content: "→"; transition: transform 0.25s ease; }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ============ PAGE HERO (subpages) ============ */
.page-hero {
  padding: 200px 32px 120px;
  text-align: center;
  position: relative;
}
.page-hero-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.page-hero h1 {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--black);
}
.page-hero h1 .accent { color: var(--accent); }
.page-hero-sub {
  margin: 28px auto 0;
  max-width: 640px;
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--gray-600);
  line-height: 1.8;
}

/* ============ SECTIONS ============ */
.section { padding: 140px 32px; position: relative; }
.section-dark { background: linear-gradient(180deg, #FFF9F2 0%, #FFF4EC 100%); color: var(--black); }
.section-soft { background: var(--off-white); }
.container { max-width: var(--container-w); margin: 0 auto; }
.container-tight { max-width: var(--tight-w); margin: 0 auto; }
.section-eyebrow {
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-title {
  font-weight: 600;
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}
.section-lede {
  margin-top: 28px;
  font-size: clamp(17px, 1.6vw, 22px);
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 680px;
}
.section-dark .section-lede { color: #555; }

/* ============ FOOTER ============ */
.footer {
  background: #FAFAF7;
  color: #333;
  padding: 80px 32px 40px;
  font-size: 13px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.footer-brand .logo { color: var(--black); margin-bottom: 20px; }
.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: #555;
  max-width: 320px;
}
.footer-col h5 {
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: #555; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-company {
  padding: 40px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  font-size: 12px;
  color: #666;
  line-height: 1.8;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.footer-company dt {
  font-family: var(--font-en);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: #888;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-copyright {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============ CTA ============ */
.cta-section { padding: 160px 32px; text-align: center; }
.cta-title {
  font-weight: 600;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.cta-title .accent { color: var(--accent); }
.cta-sub { margin-top: 24px; font-size: 19px; color: var(--gray-600); }
.cta-buttons {
  margin-top: 48px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ NUMBERED LIST (1/2/3) ============ */
.num-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  counter-reset: numlist;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.num-list > li {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 28px;
  align-items: start;
  counter-increment: numlist;
}
.num-list > li::before {
  content: counter(numlist);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 56px;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--accent);
  display: block;
  padding-top: 2px;
}
.num-list .nl-title {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.015em;
  color: var(--black);
  margin: 0 0 10px;
}
.num-list .nl-body {
  font-size: 16px;
  line-height: 1.95;
  color: var(--gray-600);
  margin: 0;
}
.num-list .nl-body + .nl-body { margin-top: 10px; }
@media (max-width: 700px) {
  .num-list > li { grid-template-columns: 56px 1fr; gap: 20px; }
  .num-list > li::before { font-size: 44px; }
  .num-list .nl-title { font-size: 18px; }
  .num-list .nl-body { font-size: 15px; }
}

/* compact variant inline with prose */
.num-list.is-compact { gap: 36px; margin: 28px 0; }
.num-list.is-compact > li::before { font-size: 40px; padding-top: 4px; }
.num-list.is-compact > li { grid-template-columns: 52px 1fr; gap: 20px; }
.num-list.is-compact .nl-title { font-size: 17px; margin-bottom: 6px; }
.num-list.is-compact .nl-body { font-size: 15px; line-height: 1.85; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .nav { gap: 20px; }
  .nav a:not(.nav-cta) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-company { grid-template-columns: 1fr 1fr; }
  .section { padding: 100px 24px; }
  .page-hero { padding: 160px 24px 80px; }
}

/* ============ LOGO WATERMARK ============ */
/* Subtle brand mark behind text-heavy sections. Add `has-watermark` to any section. */
.has-watermark {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.has-watermark::before {
  content: "";
  position: absolute;
  background-image: url("logo-watermark.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  /* center, fills section height */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: 90%;
  aspect-ratio: 1 / 1;
}
/* keep real content above the watermark */
.has-watermark > * { position: relative; z-index: 1; }

/* Opacity variants (default .045) */
.has-watermark.wm-faint::before  { opacity: 0.03; }
.has-watermark.wm-strong::before { opacity: 0.07; }

/* (Legacy position/size modifiers kept as no-ops for back-compat) */
.has-watermark.wm-left::before,
.has-watermark.wm-top::before,
.has-watermark.wm-bottom::before,
.has-watermark.wm-center::before,
.has-watermark.wm-sm::before,
.has-watermark.wm-lg::before,
.has-watermark.wm-xl::before {
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: auto;
  height: 90%;
  aspect-ratio: 1 / 1;
}

@media (max-width: 900px) {
  .has-watermark::before,
  .has-watermark.wm-sm::before,
  .has-watermark.wm-lg::before,
  .has-watermark.wm-xl::before {
    height: 70%;
  }
}
