@import url("https://fonts.googleapis.com/css2?family=Sora:wght@600;700&display=swap");

:root {
  --bg: #f3f1ec;
  --ink: #141414;
  --muted: #5a5a5a;
  --line: #d6d2c8;
  --panel: #ffffff;
  --accent: #171717;
  --max: 42rem;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Noto Sans", system-ui, sans-serif;
  --display: "Sora", var(--sans);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-soft: 0 18px 50px rgba(28, 24, 16, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 8% -8%, #e8e2d4 0%, transparent 58%),
    radial-gradient(900px 480px at 100% 4%, #dfe8e3 0%, transparent 52%),
    radial-gradient(700px 420px at 70% 100%, #ebe6dc 0%, transparent 55%),
    var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 42vw;
  height: 42vw;
  max-width: 28rem;
  max-height: 28rem;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
  opacity: 0.45;
  animation: drift 22s var(--ease-out) infinite alternate;
}

body::before {
  top: -8%;
  left: -10%;
  background: #e4ddd0;
}

body::after {
  right: -12%;
  bottom: 8%;
  background: #d7e2dc;
  animation-duration: 28s;
  animation-delay: -6s;
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 4%, 0) scale(1.08);
  }
}

a {
  color: var(--ink);
  text-underline-offset: 0.18em;
}

.site-header,
.site-footer,
.hero,
.doc {
  width: min(100% - 2rem, 56rem);
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  font-size: 1.2rem;
  transition: opacity 0.25s var(--ease-out);
}

.brand:hover {
  opacity: 0.72;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.1rem;
  font-size: 0.92rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--ink);
}

.hero {
  padding: 3.5rem 0 5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 36rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.06rem;
}

.promo-figure {
  margin: 0 0 2rem;
  padding: 0;
}

.promo-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.55s var(--ease-out),
    box-shadow 0.55s var(--ease-out);
}

.promo-figure:hover img {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 24px 60px rgba(28, 24, 16, 0.12);
}

.encourage {
  max-width: 36rem;
  margin: 0 0 1.75rem;
  padding: 1.1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
  border-radius: 0 10px 10px 0;
  transition: background 0.3s ease;
}

html[dir='rtl'] .encourage {
  border-left: none;
  border-right: 3px solid var(--accent);
  border-radius: 10px 0 0 10px;
}

.encourage:hover {
  background: rgba(255, 255, 255, 0.86);
}

.encourage h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.encourage p {
  margin: 0;
  color: var(--ink);
  opacity: 0.78;
  font-size: 0.98rem;
}

.feature-list {
  max-width: 36rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.98rem;
}

.feature-list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.35rem;
  border-bottom: 1px solid rgba(217, 214, 207, 0.7);
}

.feature-list li:last-child {
  border-bottom: none;
}

.hero .google-note {
  margin: 0.5rem 0 0;
  padding: 0;
  border: none;
  max-width: 36rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero .google-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.55;
}

html[dir='rtl'] .feature-list li {
  padding: 0.55rem 1.35rem 0.55rem 0;
}

html[dir='rtl'] .feature-list li::before {
  left: auto;
  right: 0;
}

.doc code {
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: #f0eee8;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.25s var(--ease-out),
    background 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.btn:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.btn-ghost:hover {
  background: #fff;
  border-color: #c7c2b6;
  box-shadow: 0 8px 20px rgba(28, 24, 16, 0.08);
}

.doc {
  padding: 1rem 0 4rem;
}

.doc-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 10px 30px rgba(28, 24, 16, 0.04);
}

.doc h1 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.meta {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.doc h2 {
  margin: 1.75rem 0 0.6rem;
  font-size: 1.1rem;
}

.doc p,
.doc li {
  color: #2a2a2a;
}

.doc ul {
  padding-left: 1.2rem;
}

.note {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid transparent;
}

.lang-switch {
  position: relative;
}

.lang-switch summary {
  cursor: pointer;
  color: var(--muted);
  list-style: none;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.lang-switch summary:hover {
  color: var(--ink);
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(7.5rem, 1fr));
  gap: 0.35rem 0.75rem;
  min-width: 16rem;
  max-height: 70vh;
  overflow: auto;
  padding: 0.75rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.lang-list a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.lang-list a[aria-current='page'],
.lang-list a:hover {
  color: var(--ink);
}

html[dir='rtl'] .lang-list {
  right: auto;
  left: 0;
}

.lang-index {
  columns: 2;
  gap: 1.5rem;
}

/* Reveal animations */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 1ms);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.js-ready .promo-figure[data-reveal] {
  transform: translate3d(0, 24px, 0) scale(0.985);
}

.js-ready .promo-figure[data-reveal].is-visible {
  transform: translate3d(0, 0, 0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  body::before,
  body::after {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }

  .js-ready [data-reveal],
  .js-ready .promo-figure[data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .promo-figure:hover img,
  .btn:hover {
    transform: none;
  }
}

.reduce-motion body::before,
.reduce-motion body::after {
  animation: none;
}

@media (max-width: 640px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .lang-list {
    right: auto;
    left: 0;
    grid-template-columns: 1fr;
  }

  .lang-index {
    columns: 1;
  }
}
