
    :root {
      --bg: #f5f7fb;
      --bg-soft: #eef3fb;
      --surface: rgba(255,255,255,.88);
      --surface-strong: #fff;
      --ink: #111827;
      --text: #1f2937;
      --muted: #667085;
      --line: rgba(17,24,39,.10);
      --primary: #3156d8;
      --primary-2: #7258dd;
      --primary-soft: rgba(49,86,216,.09);
      --success: #169f67;
      --warning-bg: #fff9e9;
      --warning-line: rgba(176,126,26,.20);
      --navy: #0b1630;
      --shadow: 0 20px 52px rgba(24,39,75,.10);
      --shadow-soft: 0 12px 30px rgba(24,39,75,.07);
      --radius-xl: 34px;
      --radius-lg: 26px;
      --radius: 20px;
      --max: 1120px;
    }

    * { box-sizing: border-box; }

    html {
      scroll-behavior: smooth;
      scroll-padding-top: 88px;
    }

    body {
      margin: 0;
      color: var(--text);
      background:
        radial-gradient(circle at 5% 0%, rgba(49,86,216,.10), transparent 27%),
        radial-gradient(circle at 94% 9%, rgba(114,88,221,.10), transparent 24%),
        linear-gradient(180deg, #fbfcff 0%, var(--bg) 48%, #f8f9fc 100%);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC",
        "Noto Sans JP", "Helvetica Neue", Arial, sans-serif;
      line-height: 1.7;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(11,22,48,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11,22,48,.025) 1px, transparent 1px);
      background-size: 52px 52px;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 78%);
    }

    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }
    button, a { -webkit-tap-highlight-color: transparent; }

    .page,
    .nav,
    .footer-inner {
      width: min(var(--max), calc(100% - 40px));
      margin-inline: auto;
    }

    .skip-link {
      position: absolute;
      left: 16px;
      top: -70px;
      z-index: 100;
      padding: 10px 14px;
      border-radius: 999px;
      color: #fff;
      background: var(--navy);
      transition: top .18s ease;
    }

    .skip-link:focus { top: 14px; }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      border-bottom: 1px solid rgba(255,255,255,.78);
      background: rgba(250,252,255,.78);
      box-shadow: 0 12px 34px rgba(24,39,75,.05);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }

    .nav {
      min-height: 68px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 11px;
      color: var(--navy);
      font-weight: 900;
      letter-spacing: -.03em;
      white-space: nowrap;
    }

    .brand-mark {
      width: 39px;
      height: 39px;
      display: grid;
      place-items: center;
      border-radius: 14px;
      color: #fff;
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      box-shadow: 0 10px 24px rgba(49,86,216,.23);
      font-weight: 950;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .nav-link {
      padding: 8px 12px;
      border-radius: 999px;
      color: var(--muted);
      font-size: .88rem;
      font-weight: 800;
      transition: color .18s ease, background .18s ease;
    }

    .nav-link:hover {
      color: var(--primary);
      background: var(--primary-soft);
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 9px;
    }

    .language-switcher {
      display: inline-flex;
      gap: 4px;
      padding: 5px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,.82);
      box-shadow: var(--shadow-soft);
    }

    .language-switcher a {
      border: 0;
      padding: 7px 10px;
      border-radius: 999px;
      color: var(--muted);
      background: transparent;
      cursor: pointer;
      font: inherit;
      font-size: .78rem;
      font-weight: 900;
    }

    .language-switcher a.active {
      color: #fff;
      background: var(--navy);
    }

    .github-mini {
      min-height: 39px;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 13px;
      border-radius: 999px;
      color: #fff;
      background: var(--navy);
      font-size: .82rem;
      font-weight: 900;
      box-shadow: 0 10px 24px rgba(11,22,48,.16);
    }

    main { padding-bottom: 20px; }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(310px, .78fr);
      gap: 38px;
      align-items: center;
      padding: 52px 0 34px;
    }

    .hero-copy { min-width: 0; }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 16px;
      padding: 7px 11px;
      border: 1px solid rgba(49,86,216,.11);
      border-radius: 999px;
      color: var(--primary);
      background: var(--primary-soft);
      font-size: .78rem;
      font-weight: 950;
      letter-spacing: .06em;
      text-transform: uppercase;
    }

    .eyebrow::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--success);
      box-shadow: 0 0 0 5px rgba(22,159,103,.10);
    }

    h1, h2, h3, p { margin-top: 0; }

    h1 {
      margin-bottom: 18px;
      color: var(--navy);
      font-size: clamp(2.55rem, 6.5vw, 5rem);
      line-height: .98;
      letter-spacing: -.07em;
    }

    .hero-title-accent {
      color: transparent;
      background: linear-gradient(90deg, var(--primary), var(--primary-2));
      -webkit-background-clip: text;
      background-clip: text;
    }

    .hero-subtitle {
      max-width: 690px;
      margin-bottom: 23px;
      color: var(--muted);
      font-size: clamp(1.02rem, 2vw, 1.2rem);
    }

    .hero-alias {
      max-width: 690px;
      margin: -12px 0 24px;
      color: var(--muted);
      font-size: .95rem;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 11px;
      margin-bottom: 20px;
    }

    .button {
      min-height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 11px 18px;
      border: 1px solid transparent;
      border-radius: 999px;
      font-weight: 900;
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .button:hover { transform: translateY(-2px); }

    .button.primary {
      color: #fff;
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      box-shadow: 0 15px 31px rgba(49,86,216,.23);
    }

    .button.light {
      color: var(--navy);
      border-color: var(--line);
      background: rgba(255,255,255,.84);
      box-shadow: var(--shadow-soft);
    }

    .button.subtle {
      min-height: 42px;
      color: var(--primary);
      border-color: rgba(49,86,216,.12);
      background: var(--primary-soft);
      font-size: .86rem;
    }

    .hero-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 0;
      padding: 0;
      list-style: none;
    }

    .hero-tags li {
      padding: 6px 10px;
      border: 1px solid rgba(17,24,39,.07);
      border-radius: 999px;
      color: var(--muted);
      background: rgba(255,255,255,.68);
      font-size: .78rem;
      font-weight: 800;
    }

    .hero-visual {
      position: relative;
      min-height: 480px;
      display: grid;
      place-items: center;
    }

    .phone-frame {
      position: relative;
      width: min(330px, 90%);
      overflow: hidden;
      border: 10px solid #121a2c;
      border-radius: 42px;
      background: #fff;
      box-shadow: 0 30px 70px rgba(11,22,48,.22);
      transform: rotate(1.8deg);
    }

    .phone-frame::before {
      content: "";
      position: absolute;
      left: 50%;
      top: 7px;
      z-index: 2;
      width: 66px;
      height: 5px;
      border-radius: 999px;
      background: rgba(15,23,42,.72);
      transform: translateX(-50%);
    }

    .phone-frame img {
      width: 100%;
      height: auto;
    }

    .floating-note {
      position: absolute;
      right: 0;
      bottom: 36px;
      max-width: 190px;
      padding: 13px 15px;
      border: 1px solid rgba(255,255,255,.9);
      border-radius: 18px;
      color: var(--navy);
      background: rgba(255,255,255,.90);
      box-shadow: var(--shadow);
      backdrop-filter: blur(16px);
    }

    .floating-note strong {
      display: block;
      margin-bottom: 2px;
      font-size: .95rem;
    }

    .floating-note span {
      display: block;
      color: var(--muted);
      font-size: .76rem;
      line-height: 1.45;
    }

    .version-line {
      display: flex;
      flex-wrap: wrap;
      gap: 9px;
      margin-top: 18px;
    }

    .version-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 10px;
      border-radius: 999px;
      color: var(--primary);
      background: var(--primary-soft);
      font-size: .75rem;
      font-weight: 900;
    }

    .section {
      padding: 52px 0;
    }

    .section.compact { padding-top: 22px; }

    .section-head {
      display: grid;
      grid-template-columns: .85fr 1.15fr;
      gap: 24px;
      align-items: end;
      margin-bottom: 25px;
    }

    .kicker {
      display: inline-flex;
      margin-bottom: 10px;
      padding: 6px 10px;
      border-radius: 999px;
      color: var(--primary);
      background: var(--primary-soft);
      font-size: .72rem;
      font-weight: 950;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    h2 {
      margin-bottom: 0;
      color: var(--navy);
      font-size: clamp(1.8rem, 3.5vw, 2.85rem);
      line-height: 1.15;
      letter-spacing: -.055em;
    }

    .section-desc {
      margin-bottom: 0;
      color: var(--muted);
      font-size: 1rem;
    }

    .how-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
    }

    .step-card,
    .feature-card,
    .story-card,
    .download-panel,
    .gallery-card {
      border: 1px solid rgba(255,255,255,.85);
      background: var(--surface);
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(16px);
    }

    .step-card {
      position: relative;
      min-height: 210px;
      padding: 22px;
      border-radius: var(--radius-lg);
      overflow: hidden;
    }

    .step-number {
      width: 43px;
      height: 43px;
      display: grid;
      place-items: center;
      margin-bottom: 28px;
      border-radius: 15px;
      color: #fff;
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      font-weight: 950;
      box-shadow: 0 10px 22px rgba(49,86,216,.20);
    }

    .step-card::after {
      content: "";
      position: absolute;
      right: -34px;
      top: -34px;
      width: 110px;
      height: 110px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(49,86,216,.10), transparent 70%);
    }

    .step-card h3,
    .feature-card h3 {
      margin-bottom: 7px;
      color: var(--navy);
      font-size: 1.05rem;
      letter-spacing: -.025em;
    }

    .step-card p,
    .feature-card p {
      margin-bottom: 0;
      color: var(--muted);
      font-size: .9rem;
    }

    .flow-line {
      display: grid;
      grid-template-columns: 1fr auto 1fr auto 1fr;
      gap: 10px;
      align-items: center;
      margin-top: 18px;
      padding: 20px;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background: rgba(255,255,255,.58);
    }

    .flow-node {
      padding: 13px;
      border-radius: 17px;
      color: var(--navy);
      background: #fff;
      text-align: center;
      font-size: .84rem;
      font-weight: 900;
      box-shadow: var(--shadow-soft);
    }

    .flow-arrow {
      color: var(--primary);
      font-size: 1.1rem;
      font-weight: 950;
    }

    .feature-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 15px;
    }

    .feature-card {
      padding: 21px;
      border-radius: var(--radius-lg);
    }

    .feature-icon {
      width: 45px;
      height: 45px;
      display: grid;
      place-items: center;
      margin-bottom: 16px;
      border: 1px solid rgba(49,86,216,.09);
      border-radius: 16px;
      color: var(--primary);
      background: var(--primary-soft);
      font-size: 1.15rem;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 15px;
      align-items: start;
    }

    .gallery-card {
      overflow: hidden;
      border-radius: 25px;
    }

    .gallery-image-wrap {
      overflow: hidden;
      background: #e9edf6;
    }

    .gallery-card.phone .gallery-image-wrap {
      aspect-ratio: 9 / 20;
    }

    .gallery-card.browser .gallery-image-wrap {
      aspect-ratio: 935 / 903;
    }

    .gallery-card.browser {
      grid-column: 1 / -1;
      width: min(935px, 100%);
      margin-inline: auto;
    }

    .gallery-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
      transition: transform .25s ease;
    }

    .gallery-card:hover img { transform: scale(1.015); }

    .gallery-card.browser img { object-fit: contain; }

    .gallery-caption {
      padding: 14px 16px 16px;
    }

    .gallery-caption strong {
      display: block;
      color: var(--navy);
      font-size: .92rem;
    }

    .gallery-caption span {
      display: block;
      margin-top: 2px;
      color: var(--muted);
      font-size: .76rem;
      line-height: 1.45;
    }

    .story-card {
      display: grid;
      grid-template-columns: .78fr 1.22fr;
      gap: 28px;
      padding: 31px;
      border-radius: var(--radius-xl);
    }

    .story-side {
      display: flex;
      min-height: 250px;
      flex-direction: column;
      justify-content: space-between;
      padding: 24px;
      border-radius: var(--radius-lg);
      color: #fff;
      background:
        radial-gradient(circle at 90% 10%, rgba(255,255,255,.18), transparent 25%),
        linear-gradient(145deg, var(--primary), var(--primary-2));
    }

    .story-side .small {
      color: rgba(255,255,255,.76);
      font-size: .8rem;
      font-weight: 800;
    }

    .story-side strong {
      display: block;
      max-width: 310px;
      font-size: 1.45rem;
      line-height: 1.25;
      letter-spacing: -.04em;
    }

    .story-copy {
      align-self: center;
    }

    .story-copy p {
      color: var(--muted);
      font-size: 1rem;
    }

    .story-copy p:last-child { margin-bottom: 0; }

    .case-study-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }

    .case-study-item {
      min-height: 220px;
      padding: 21px;
      border: 1px solid var(--line);
      border-radius: var(--radius-lg);
      background: rgba(255, 255, 255, .82);
      box-shadow: var(--shadow-sm);
    }

    .case-study-item span {
      display: block;
      margin-bottom: 24px;
      color: var(--primary);
      font-size: .72rem;
      font-weight: 950;
      text-transform: uppercase;
    }

    .case-study-item h3 { margin-bottom: 9px; color: var(--navy); font-size: 1.02rem; }
    .case-study-item p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.7; }

    .signature {
      display: inline-flex;
      margin-top: 10px;
      color: var(--navy);
      font-size: .86rem;
      font-weight: 900;
    }

    .safety {
      display: grid;
      grid-template-columns: auto 1fr auto;
      gap: 18px;
      align-items: center;
      padding: 23px;
      border: 1px solid var(--warning-line);
      border-radius: var(--radius-lg);
      background: var(--warning-bg);
    }

    .safety-icon {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      color: #8a6116;
      background: rgba(176,126,26,.10);
      font-size: 1.3rem;
    }

    .safety h3 {
      margin-bottom: 4px;
      color: #67480f;
      font-size: 1rem;
    }

    .safety p {
      margin-bottom: 0;
      color: #7a622f;
      font-size: .88rem;
    }

    .safety-links {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 7px;
    }

    .safety-links a {
      padding: 7px 10px;
      border: 1px solid rgba(176,126,26,.20);
      border-radius: 999px;
      color: #755213;
      background: rgba(255,255,255,.65);
      font-size: .76rem;
      font-weight: 900;
    }

    .download-panel {
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 24px;
      align-items: center;
      padding: 34px;
      border-radius: var(--radius-xl);
    }

    .download-panel::after {
      content: "";
      position: absolute;
      right: -90px;
      bottom: -110px;
      width: 260px;
      height: 260px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(49,86,216,.11), transparent 67%);
      pointer-events: none;
    }

    .download-panel h2 { margin-bottom: 9px; }
    .download-panel p {
      max-width: 690px;
      margin-bottom: 0;
      color: var(--muted);
    }

    .download-panel .release-checksum {
      display: grid;
      gap: 5px;
      margin-top: 16px;
      font-size: .72rem;
    }

    .release-checksum span { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 8px; align-items: start; }
    .release-checksum strong { color: var(--navy); font-size: .7rem; letter-spacing: 0; }
    .release-checksum a { width: fit-content; color: var(--primary); font-weight: 850; }
    .release-checksum code {
      max-width: 100%;
      overflow-wrap: anywhere;
      color: #3d4c66;
      font: 700 .68rem/1.55 ui-monospace, SFMono-Regular, Consolas, monospace;
    }

    .download-actions {
      position: relative;
      z-index: 1;
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 9px;
    }

    footer {
      margin-top: 28px;
      padding: 28px 0 42px;
      border-top: 1px solid var(--line);
      color: var(--muted);
    }

    .footer-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
      font-size: .78rem;
    }

    .footer-links {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    .footer-links a:hover { color: var(--primary); }

    /* Content stays visible by default. Motion is enabled only after JS confirms support. */
    .reveal {
      opacity: 1;
      transform: none;
    }

    .reveal-ready .reveal {
      opacity: 1;
      transform: none;
    }

    .reveal-ready .reveal.show {
      animation: reveal-in .62s ease both;
    }

    @keyframes reveal-in {
      from { opacity: 0; transform: translateY(18px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @media (prefers-reduced-motion: reduce) {
      .reveal-ready .reveal {
        opacity: 1;
        transform: none;
        transition: none;
      }
    }

    #top-btn {
      position: fixed;
      right: 17px;
      bottom: 17px;
      z-index: 40;
      width: 44px;
      height: 44px;
      border: 0;
      border-radius: 50%;
      color: #fff;
      background: var(--navy);
      box-shadow: 0 13px 28px rgba(11,22,48,.22);
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
    }

    #top-btn.visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    @media (max-width: 950px) {
      .nav-links { display: none; }

      .hero {
        grid-template-columns: 1fr;
        padding-top: 38px;
      }

      .hero-copy { text-align: center; }
      .hero-subtitle { margin-inline: auto; }
      .hero-actions, .hero-tags, .version-line { justify-content: center; }

      .hero-visual { min-height: 430px; }
      .floating-note { right: 8%; }

      .how-grid,
      .feature-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .gallery-card.browser {
        grid-column: 1 / -1;
        grid-row: 1;
      }

      .gallery-card.browser .gallery-image-wrap {
        aspect-ratio: 935 / 903;
      }

      .story-card {
        grid-template-columns: 1fr;
      }

      .case-study-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

      .download-panel {
        grid-template-columns: 1fr;
      }

      .download-actions { justify-content: flex-start; }
    }

    @media (max-width: 680px) {
      .page,
      .nav,
      .footer-inner {
        width: min(var(--max), calc(100% - 26px));
      }

      .nav {
        min-height: 62px;
        gap: 8px;
      }

      .brand span:last-child { display: none; }
      .github-mini { display: none; }

      .language-switcher a {
        padding: 6px 8px;
        font-size: .73rem;
      }

      .hero {
        gap: 24px;
        padding: 27px 0 20px;
      }

      h1 {
        font-size: clamp(2.25rem, 13vw, 3.3rem);
      }

      .hero-actions .button { width: 100%; }
      .hero-visual { min-height: 405px; }
      .phone-frame { width: min(285px, 86%); }
      .floating-note {
        right: 0;
        bottom: 14px;
        max-width: 165px;
      }

      .section {
        padding: 40px 0;
      }

      .section-head {
        grid-template-columns: 1fr;
        gap: 10px;
      }

      .how-grid,
      .feature-grid,
      .gallery-grid {
        grid-template-columns: 1fr;
      }

      .gallery-card.browser {
        grid-column: auto;
        grid-row: auto;
      }

      .gallery-card.browser .gallery-image-wrap {
        aspect-ratio: 935 / 903;
      }

      .gallery-card.phone {
        width: min(310px, 100%);
        margin-inline: auto;
      }

      .flow-line {
        grid-template-columns: 1fr;
      }

      .flow-arrow {
        transform: rotate(90deg);
        text-align: center;
      }

      .story-card,
      .download-panel {
        padding: 21px;
      }

      .story-side { min-height: 210px; }

      .case-study-grid { grid-template-columns: 1fr; }
      .case-study-item { min-height: 0; }

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

      .safety-links { justify-content: flex-start; }

      .download-actions .button { width: 100%; }

      footer { padding-bottom: 72px; }
    }

    @media (max-width: 390px) {
      .language-switcher a { padding-inline: 7px; }
      .brand-mark { width: 36px; height: 36px; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        animation: none !important;
        transition: none !important;
      }
      .reveal {
        opacity: 1;
        transform: none;
      }
    }

.language-switcher a{text-decoration:none;display:inline-flex;align-items:center}

.product-faq details{padding:18px 0;border-bottom:1px solid var(--line)}
.product-faq summary{cursor:pointer;font-weight:750;color:var(--navy);line-height:1.6}
.product-faq p{color:var(--muted);line-height:1.8;margin:12px 0 0;max-width:72ch}

/* Real language links need enough width for the complete Japanese label. */
.topbar .language-switcher a[data-lang]{width:auto!important;min-width:44px!important;padding:0 9px!important;white-space:nowrap;font-size:.75rem!important;justify-content:center;min-height:44px}
