/* © 2026 Filip Mráček / Japaneseffect. Shared look of the Japanese pages (Guidance, Grammar): the same calm dark
   world as the rest of the CHFX system – aurora behind, one tab bar on top – and the Japanese sentence rules. */
@import url('/lang/ja-sentence.css?v=3');
:root { color-scheme: dark; --text: #f5f5f7; --text-2: #a1a1a6; --text-3: #6e6e73; --line: rgba(255,255,255,.1); --surface: rgba(28,28,30,.62); --blue: #0a84ff; --cyan: #64d2ff; --orange: #ff9f0a;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, sans-serif;
  --ja: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; }
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: #000; color: var(--text); font: 16px/1.55 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: var(--cyan); text-decoration: none; }
[lang="ja"] { font-family: var(--ja); }

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #000; pointer-events: none; }
.aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .7; mix-blend-mode: screen; will-change: transform; }
.aurora i:nth-child(1) { background: radial-gradient(circle, rgba(10,132,255,.42), transparent 62%); top: -25vmax; left: -15vmax; animation: d1 40s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: radial-gradient(circle, rgba(48,176,199,.3), transparent 62%); top: 20vmax; right: -30vmax; animation: d2 50s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { background: radial-gradient(circle, rgba(94,92,230,.26), transparent 62%); bottom: -35vmax; left: 5vmax; animation: d3 56s ease-in-out infinite alternate; }
.aurora i:nth-child(4) { background: radial-gradient(circle, rgba(255,69,58,.09), transparent 60%); top: 30vmax; left: 25vmax; width: 45vmax; height: 45vmax; animation: d2 64s ease-in-out infinite alternate; }
.aurora::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, rgba(0,0,0,.25) 30%, rgba(0,0,0,.6) 100%); }
@keyframes d1 { to { transform: translate3d(18vmax, 22vmax, 0) scale(1.1); } }
@keyframes d2 { to { transform: translate3d(-22vmax, -10vmax, 0) scale(1.15); } }
@keyframes d3 { to { transform: translate3d(30vmax, -12vmax, 0) scale(.95); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } html { scroll-behavior: auto; } }

.gtop { position: sticky; top: 0; z-index: 20; background: rgba(0,0,0,.62); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.gtop__in { max-width: 1180px; margin: 0 auto; height: 56px; padding: 0 18px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; margin-right: auto; }
.brand__tile { width: 30px; height: 30px; border-radius: 8px; background: #000; color: #fff; display: grid; place-items: center; font: 600 17px var(--ja); box-shadow: 0 0 0 1px var(--line); }
.brand__sub { color: var(--text-2); font-weight: 400; }
@media (max-width: 560px) { .brand > span:last-child { display: none; } }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.lead { color: var(--text-2); font-size: 17px; max-width: 64ch; }
h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.06; letter-spacing: -.02em; margin: 34px 0 10px; text-wrap: balance; }
h2 { font-size: 24px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -.01em; }

/* the page's quiet tools row: romaji switch sits at the right edge, always in the same place */
.tools { display: flex; justify-content: flex-end; gap: 8px; margin: 10px 0 0; }
.gfoot { max-width: 1080px; margin: 60px auto 0; padding: 26px 18px 50px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 15px; }
.small { font-size: 13px; } .muted { color: var(--text-3); }
