/* Shared homepage styles for RuLa Gems (en / ja 共通). フォントは欧文＋和文の統合スタック。 */
      :root {
        --bg: #07090f;
        --bg-elevated: #11151e;
        --surface: #1a1f2b;
        --surface-2: #232936;
        --text: #f5f6f9;
        --text-secondary: #aab1c2;
        --text-tertiary: #6b7488;
        --accent: #ff6b1a;
        --accent-hi: #ffb347;
        --accent-glow: #ffd580;
        --hairline: rgba(255, 255, 255, 0.08);
        --hairline-strong: rgba(255, 255, 255, 0.14);
        --radius-md: 16px;
        --radius-lg: 24px;
        --radius-xl: 32px;
      }

      * {
        box-sizing: border-box;
      }

      html,
      body {
        margin: 0;
        padding: 0;
        background: var(--bg);
        color: var(--text);
        font-family:
          -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Inter",
          "Hiragino Sans", "Noto Sans JP", "Helvetica Neue", sans-serif;
        font-feature-settings: "palt";
        line-height: 1.65;
        -webkit-font-smoothing: antialiased;
      }

      body {
        min-height: 100vh;
        position: relative;
        overflow-x: hidden;
        background:
          radial-gradient(
            ellipse 70% 50% at 50% -10%,
            rgba(255, 107, 26, 0.22),
            transparent 60%
          ),
          radial-gradient(
            ellipse 60% 40% at 20% 30%,
            rgba(46, 90, 172, 0.18),
            transparent 60%
          ),
          radial-gradient(
            ellipse 60% 50% at 90% 70%,
            rgba(255, 179, 71, 0.1),
            transparent 60%
          ),
          var(--bg);
      }

      body::before {
        content: "";
        position: fixed;
        inset: 0;
        background-image: radial-gradient(
          circle at 1px 1px,
          rgba(255, 255, 255, 0.015) 1px,
          transparent 0
        );
        background-size: 3px 3px;
        pointer-events: none;
        z-index: 0;
      }

      .container {
        position: relative;
        max-width: 960px;
        margin: 0 auto;
        padding: clamp(28px, 5vw, 60px) 24px 72px;
        z-index: 1;
      }

      .lang-switch {
        position: absolute;
        top: 20px;
        right: 24px;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 0.5px;
        background: rgba(255, 255, 255, 0.04);
        border: 0.5px solid var(--hairline-strong);
        border-radius: 999px;
        padding: 4px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 2;
      }

      .lang-switch a,
      .lang-switch span {
        display: inline-flex;
        align-items: center;
        padding: 5px 11px;
        border-radius: 999px;
        color: var(--text-secondary);
        text-decoration: none;
        transition:
          background 0.15s ease,
          color 0.15s ease;
      }

      .lang-switch a:hover {
        color: var(--text);
      }

      .lang-switch .active {
        background: var(--accent);
        color: #fff;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
      }


      .hero {
        text-align: center;
        margin-bottom: clamp(24px, 4vw, 40px);
      }

      .hero-title {
        font-size: clamp(48px, 10vw, 96px);
        font-weight: 900;
        margin: 0 0 20px;
        letter-spacing: -0.035em;
        line-height: 1;
      }

      .hero-title .accent {
        background: linear-gradient(
          135deg,
          var(--accent) 0%,
          var(--accent-hi) 40%,
          var(--accent-glow) 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        background-size: 200% 200%;
        animation: shift 8s ease-in-out infinite;
      }

      @keyframes shift {
        0%,
        100% {
          background-position: 0% 50%;
        }
        50% {
          background-position: 100% 50%;
        }
      }

      .hero-subtitle {
        font-size: clamp(15px, 2.2vw, 18px);
        color: var(--text-secondary);
        max-width: 560px;
        margin: 0 auto;
        font-weight: 400;
      }

      .hero-subtitle strong {
        color: var(--text);
        font-weight: 700;
      }

      .section {
        margin: clamp(28px, 5vw, 48px) 0;
      }

      .section-head {
        display: flex;
        align-items: baseline;
        gap: 12px;
        margin-bottom: 28px;
        padding-left: 4px;
      }

      .section-num {
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 1.5px;
        color: var(--accent);
        font-variant-numeric: tabular-nums;
      }

      .section-title {
        font-size: clamp(22px, 3.5vw, 28px);
        font-weight: 900;
        letter-spacing: -0.01em;
        margin: 0;
        color: var(--text);
      }

      .app-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 18px;
      }

      .app-card {
        background:
          linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0) 50%
          ),
          var(--bg-elevated);
        border: 0.5px solid var(--hairline);
        border-radius: var(--radius-lg);
        padding: 28px;
        text-decoration: none;
        color: inherit;
        display: flex;
        flex-direction: column;
        gap: 18px;
        transition:
          transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
          border-color 0.25s ease,
          box-shadow 0.25s ease;
        position: relative;
        overflow: hidden;
      }

      .app-card::before {
        content: "";
        position: absolute;
        inset: -1px;
        background: linear-gradient(
          135deg,
          rgba(255, 107, 26, 0.18),
          transparent 45%
        );
        border-radius: inherit;
        opacity: 0;
        transition: opacity 0.25s ease;
        pointer-events: none;
        z-index: 0;
      }

      .app-card > * {
        position: relative;
        z-index: 1;
      }

      .app-card:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 107, 26, 0.4);
        box-shadow:
          0 20px 48px -8px rgba(0, 0, 0, 0.6),
          0 0 0 1px rgba(255, 107, 26, 0.12);
      }

      .app-card:hover::before {
        opacity: 1;
      }

      .app-card-head {
        display: flex;
        align-items: center;
        gap: 18px;
      }

      .app-icon-wrap {
        position: relative;
      }

      .app-icon-wrap::after {
        content: "";
        position: absolute;
        inset: -6px;
        background: radial-gradient(
          circle at 50% 50%,
          rgba(255, 107, 26, 0.3),
          transparent 70%
        );
        border-radius: 50%;
        opacity: 0;
        transition: opacity 0.25s ease;
        z-index: -1;
      }

      .app-card:hover .app-icon-wrap::after {
        opacity: 1;
      }

      .app-icon {
        width: 68px;
        height: 68px;
        border-radius: 16px;
        flex-shrink: 0;
        box-shadow:
          0 8px 24px rgba(0, 0, 0, 0.5),
          0 0 0 0.5px rgba(255, 255, 255, 0.08);
        display: block;
      }

      .app-name {
        font-size: 20px;
        font-weight: 900;
        margin: 0 0 4px;
        letter-spacing: -0.01em;
      }

      .app-tag {
        font-size: 11px;
        font-weight: 700;
        color: var(--text-tertiary);
        letter-spacing: 0.8px;
        text-transform: uppercase;
      }

      .app-desc {
        font-size: 14px;
        color: var(--text-secondary);
        line-height: 1.65;
        margin: 0;
      }

      .app-cta {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 10px 16px;
        margin-top: auto;
        background: rgba(255, 255, 255, 0.06);
        border: 0.5px solid var(--hairline-strong);
        border-radius: 12px;
        font-size: 12px;
        font-weight: 800;
        color: var(--text);
        align-self: flex-start;
        letter-spacing: 0.3px;
        transition:
          background 0.2s ease,
          border-color 0.2s ease;
      }

      .app-card:hover .app-cta {
        background: rgba(255, 107, 26, 0.16);
        border-color: rgba(255, 107, 26, 0.5);
      }

      .app-cta svg {
        width: 13px;
        height: 13px;
      }

      .app-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: auto;
      }

      .app-actions .app-cta {
        margin-top: 0;
        text-decoration: none;
      }

      .app-cta.ghost {
        background: transparent;
        border-color: var(--hairline-strong);
        color: var(--text-secondary);
      }

      .app-card:hover .app-cta.ghost {
        background: rgba(255, 255, 255, 0.06);
        border-color: rgba(255, 107, 26, 0.5);
        color: var(--text);
      }

      /* GlassCSV: whole card → App Store (stretched link), buttons sit above */
      .glasscsv-card {
        position: relative;
      }

      .glasscsv-card .card-cover {
        position: absolute;
        inset: 0;
        z-index: 1;
        border-radius: inherit;
      }

      .glasscsv-card .app-actions {
        position: relative;
        z-index: 2;
      }

      .about {
        background:
          linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.04),
            rgba(255, 255, 255, 0) 50%
          ),
          var(--bg-elevated);
        border: 0.5px solid var(--hairline);
        border-radius: var(--radius-xl);
        padding: clamp(28px, 5vw, 48px);
      }

      .about p {
        margin: 0 0 12px;
        color: var(--text-secondary);
        font-size: 14px;
      }

      .about p:last-of-type {
        margin-bottom: 0;
      }

      .link-row {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
      }

      .link-pill {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 14px 24px;
        background: var(--bg-elevated);
        border: 0.5px solid var(--hairline-strong);
        border-radius: 999px;
        color: var(--text);
        text-decoration: none;
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0.2px;
        transition:
          background 0.2s ease,
          border-color 0.2s ease,
          transform 0.2s ease,
          box-shadow 0.2s ease;
      }

      .link-pill:hover {
        background: var(--surface);
        border-color: rgba(255, 107, 26, 0.4);
        transform: translateY(-2px);
      }

      .link-pill.primary {
        background: linear-gradient(
          135deg,
          var(--accent) 0%,
          var(--accent-hi) 100%
        );
        border-color: transparent;
        color: #fff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
        box-shadow:
          0 8px 24px rgba(255, 107, 26, 0.42),
          inset 0 1px 0 rgba(255, 255, 255, 0.25);
      }

      .link-pill.primary:hover {
        background: linear-gradient(
          135deg,
          var(--accent-hi) 0%,
          var(--accent-glow) 100%
        );
        border-color: transparent;
        box-shadow:
          0 12px 32px rgba(255, 107, 26, 0.55),
          inset 0 1px 0 rgba(255, 255, 255, 0.35);
      }

      .link-arrow {
        font-size: 12px;
        opacity: 0.75;
      }

      /* ─── Language suggestion banner ─────────────────────────── */
      .lang-banner {
        position: fixed;
        left: 50%;
        bottom: 20px;
        transform: translateX(-50%) translateY(120%);
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 10px 14px 10px 18px;
        background: var(--bg-elevated);
        border: 0.5px solid var(--hairline-strong);
        border-radius: 999px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 99;
        max-width: calc(100vw - 32px);
      }

      .lang-banner.is-visible {
        transform: translateX(-50%) translateY(0);
      }

      .lang-banner a {
        color: var(--accent-hi);
        text-decoration: none;
        font-weight: 800;
      }

      .lang-banner button {
        background: rgba(255, 255, 255, 0.06);
        border: 0.5px solid var(--hairline-strong);
        border-radius: 999px;
        width: 26px;
        height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        cursor: pointer;
        font-size: 14px;
        line-height: 1;
        padding: 0;
      }

      .lang-banner button:hover {
        color: var(--text);
        background: rgba(255, 255, 255, 0.1);
      }

      footer {
        margin-top: clamp(48px, 7vw, 72px);
        padding: 32px 0;
        border-top: 0.5px solid var(--hairline);
        font-size: 12px;
        color: var(--text-tertiary);
        text-align: center;
      }

      footer a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: color 0.15s ease;
      }

      footer a:hover {
        color: var(--accent);
      }

      @media (max-width: 600px) {
        /* 言語トグルを流し込み（右寄せの行）にして、中央の大見出しとの重なりを防ぐ */
        .lang-switch {
          position: static;
          display: flex;
          width: fit-content;
          margin: 0 0 8px auto;
        }

        .app-card {
          padding: 22px;
        }

        .about {
          padding: 26px;
        }

        .link-pill {
          padding: 12px 20px;
          font-size: 13px;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
          animation: none !important;
          transition: none !important;
        }
      }
    
