@font-face { font-family: "Manrope"; src: url("fonts/manrope_regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope_semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope_bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope_extra_bold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #f7f4ec;
  --surface: #ffffff;
  --surface-2: #eef2ec;
  --ink: #16201b;
  --muted: #56645c;
  --line: #dde3dc;
  --moss: #2e5a44;
  --moss-deep: #1b3629;
  --mint: #7ccb9e;
  --amber: #e9a23b;
  --caramel: #d9a46c;
  --night: #0f1d17;
  --night-2: #16291f;
  --on-night: #eef4ef;
  --on-night-muted: #a9bdb1;
  --radius: 22px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1512;
    --surface: #17201b;
    --surface-2: #1c2721;
    --ink: #eef4ef;
    --muted: #a3b3a9;
    --line: #26332c;
    --moss: #7ccb9e;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
:lang(ja) body, body:lang(ja) { line-height: 1.8; }
img { max-width: 100%; display: block; }
a { color: var(--moss); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { padding: 18px 0; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { margin-left: auto; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
.on-night .nav a { color: var(--on-night-muted); }
.on-night .nav a:hover { color: var(--on-night); }
.on-night .lang { border-color: rgba(255,255,255,0.18); }
.on-night .brand { color: var(--on-night); }

/* Hero: the night perch */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 80% at 75% 10%, #24443a 0%, var(--night-2) 45%, var(--night) 100%);
  color: var(--on-night);
}
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #f3e7b8; opacity: 0.55; animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: 0.15; } }
.moon { position: absolute; top: 70px; right: 9%; width: 54px; height: 54px; border-radius: 50%; box-shadow: -12px 6px 0 0 #f3e7b8; transform: rotate(-20deg); filter: drop-shadow(0 0 22px rgba(243,231,184,0.35)); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: end; padding-top: 40px; }
.hero-copy { padding-bottom: 72px; }
/* Keeps Japanese phrases from splitting mid-word. */
.nobr { display: inline-block; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 800; }
:lang(ja) h1 { letter-spacing: 0; line-height: 1.25; }
.lede { font-size: 19px; color: var(--on-night-muted); max-width: 33em; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 16px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn-primary { background: var(--on-night); color: var(--night); }
.btn-primary:hover { background: #fff; }
.btn-primary svg { width: 20px; height: 20px; }
.btn-ghost { color: var(--on-night); border: 1px solid rgba(255,255,255,0.2); }
.note { font-size: 14px; color: var(--on-night-muted); margin-top: 14px; }
.note a { color: var(--on-night); }
.cta-center { justify-content: center; }
.perch { position: relative; align-self: end; display: flex; justify-content: center; }
.perch .owl { width: min(360px, 80%); position: relative; z-index: 2; margin-bottom: -6px; animation: breathe 5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes breathe { 50% { transform: scale(1.015, 0.99); } }
.branch { position: absolute; z-index: 1; left: -10%; right: -40%; bottom: 0; height: 22px; background: #2a2420; border-radius: 12px 0 0 12px; }
.lantern { position: absolute; z-index: 3; bottom: -70px; left: 12%; width: 22px; height: 30px; border-radius: 6px; background: #f2c46b; box-shadow: 0 0 40px 18px rgba(242,196,107,0.28); }
.lantern::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 48px; background: #6d5b4a; }
.ground { height: 90px; background: linear-gradient(#152a20, var(--night)); }

/* Sections */
section { padding: 84px 0; }
h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 14px; font-weight: 800; }
:lang(ja) h2 { letter-spacing: 0; line-height: 1.35; }
.section-lede { color: var(--muted); max-width: 38em; margin: 0 0 40px; font-size: 18px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 800; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.badge { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--moss); }
.badge svg { width: 24px; height: 24px; }

.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.screens figure { margin: 0; }
.screens img { border-radius: 30px; border: 1px solid var(--line); box-shadow: 0 24px 50px -28px rgba(10, 30, 20, 0.45); background: var(--night); width: 100%; height: auto; }
.screens figcaption { margin-top: 12px; color: var(--muted); font-size: 15px; text-align: center; }

.privacy-band { background: var(--surface-2); }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; font-weight: 600; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--moss); margin-top: 2px; }

.closing { text-align: center; }
.closing img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 18px; }
.closing .btn-primary { background: var(--ink); color: var(--bg); }

/* Document pages */
.doc { padding: 40px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc .meta { color: var(--muted); margin-bottom: 28px; }
.doc li { margin: 6px 0; }
.summary { background: var(--surface-2); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0; }
.summary ul { margin: 8px 0 0; padding-left: 20px; }
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { color: var(--muted); margin: 10px 0 0; }
.contact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 24px 0 32px; }
.contact .email { font-size: 20px; font-weight: 800; word-break: break-all; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; margin-left: auto; }
.site-footer a { color: var(--muted); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 16px; }
  .hero-copy { padding-bottom: 8px; }
  .perch .owl { width: 230px; }
  .features, .screens { grid-template-columns: 1fr; }
  .screens { max-width: 360px; margin: 0 auto; }
  .privacy-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .moon { top: 92px; right: 26px; width: 36px; height: 36px; }
}
@media (max-width: 520px) {
  .nav { gap: 12px; }
  .nav .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .stars i, .perch .owl { animation: none; }
}
