      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }

      body {
        font-family: "Noto Sans JP", sans-serif;
        background: #f0f4f8;
        color: #1e293b;
        line-height: 1.7;
        min-height: 100vh;
      }

      .header {
        background: linear-gradient(135deg, #172554 0%, #1e3a8a 100%);
        padding: 40px 20px;
        text-align: center;
      }
      .header h1 {
        font-size: 1.75rem;
        color: #fff;
        font-weight: 700;
        margin-bottom: 6px;
      }
      .header p {
        color: rgba(255, 255, 255, 0.85);
        font-size: 1rem;
        max-width: 720px;
        margin: 0 auto;
        line-height: 1.6;
      }

      .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 32px 20px 64px;
      }

      .layout {
        display: grid;
        grid-template-columns: 300px minmax(0, 1fr);
        gap: 24px;
        align-items: start;
      }
      /* グリッドトラックを内容で押し広げないための保険 */
      .main {
        min-width: 0;
      }

      /* 左カラム：コントロール */
      .sidebar {
        position: sticky;
        top: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        padding-right: 4px;
      }

      .input-card {
        background: #fff;
        border-radius: 16px;
        padding: 24px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
      }
      .input-card h2 {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 16px;
        color: #1e293b;
      }
      .field + .field {
        margin-top: 18px;
      }
      .field label {
        display: block;
        font-size: 0.95rem;
        font-weight: 600;
        margin-bottom: 6px;
        color: #475569;
      }
      .field select {
        width: 100%;
        padding: 12px 14px;
        font-size: 1rem;
        border: 2px solid #e2e8f0;
        border-radius: 8px;
        font-family: inherit;
        background: #f8fafc;
        transition: border-color 0.2s;
      }
      .field select:focus {
        outline: none;
        border-color: #3b82f6;
        background: #fff;
      }
      .field input[type="range"] {
        width: 100%;
        accent-color: #3b82f6;
      }
      .range-val {
        font-weight: 700;
        color: #1e40af;
        font-size: 0.95rem;
      }

      .play-all {
        width: 100%;
        margin-top: 18px;
        padding: 14px;
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
        background: #1e3a8a;
        border: none;
        border-radius: 10px;
        cursor: pointer;
        font-family: inherit;
        transition: background 0.2s;
      }
      .play-all:hover {
        background: #172554;
      }

      .reset-settings {
        width: 100%;
        margin-top: 12px;
        padding: 12px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #475569;
        background: #fff;
        border: 1px solid #cbd5e1;
        border-radius: 10px;
        cursor: pointer;
        font-family: inherit;
        transition: background 0.2s, border-color 0.2s;
      }
      .reset-settings:hover {
        background: #f1f5f9;
        border-color: #94a3b8;
      }

      .toggle-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 16px;
        font-size: 0.95rem;
        color: #475569;
      }
      .toggle-row input {
        width: 18px;
        height: 18px;
        accent-color: #3b82f6;
      }

      .count-note {
        margin-top: 16px;
        padding: 10px 12px;
        background: #eff6ff;
        border-radius: 8px;
        font-size: 0.9rem;
        color: #1e40af;
      }

      /* 設定アコーディオン */
      .settings-card {
        margin-top: 16px;
        padding: 0;
        overflow: hidden;
      }
      .accordion-header {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 24px;
        background: none;
        border: none;
        cursor: pointer;
        font-family: inherit;
        font-size: 1rem;
        font-weight: 700;
        color: #1e293b;
      }
      .accordion-icon {
        transition: transform 0.25s;
        color: #64748b;
      }
      .settings-card.collapsed .accordion-icon {
        transform: rotate(-90deg);
      }
      .accordion-body {
        padding: 0 24px 24px;
      }
      .settings-card.collapsed .accordion-body {
        display: none;
      }

      /* コードプレビュー */
      .preview-card {
        margin-top: 0;
      }
      .fmt-toggle {
        display: flex;
        gap: 6px;
        margin-bottom: 12px;
      }
      .fmt-toggle.hidden {
        display: none;
      }
      .fmt-btn {
        flex: 1;
        padding: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        color: #475569;
        background: #f1f5f9;
        border: none;
        border-radius: 7px;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.2s;
      }
      .fmt-btn:hover {
        background: #e2e8f0;
      }
      .fmt-btn.active {
        background: #1e3a8a;
        color: #fff;
      }
      .code-box {
        background: #0f172a;
        color: #e2e8f0;
        border-radius: 8px;
        padding: 14px;
        margin: 0;
        max-height: 280px;
        overflow: auto;
      }
      .code-box code {
        font-family: "Courier New", monospace;
        font-size: 0.8rem;
        line-height: 1.55;
        white-space: pre;
        display: block;
      }
      .code-box code:empty::before {
        content: "カード・3Dショーケースを選ぶとコードが表示されます";
        color: #64748b;
        white-space: normal;
        font-family: "Noto Sans JP", sans-serif;
      }
      .copy-preview {
        margin-top: 12px;
      }
      .copy-preview:disabled {
        background: #cbd5e1;
        cursor: not-allowed;
      }
      .card.selected,
      .showcase-item.selected {
        outline: 3px solid #3b82f6;
        outline-offset: 2px;
      }

      /* カテゴリフィルタ */
      .filters {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
      }
      .chip {
        padding: 8px 16px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #475569;
        background: #fff;
        border: 2px solid #e2e8f0;
        border-radius: 999px;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.2s;
      }
      .chip:hover {
        border-color: #93c5fd;
      }
      .chip.active {
        background: #1e3a8a;
        color: #fff;
        border-color: #1e3a8a;
      }

      /* カードグリッド */
      .grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
      }
      .card {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        overflow: hidden;
        display: flex;
        flex-direction: column;
      }
      .stage {
        height: 140px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 10px, #f1f5f9 10px, #f1f5f9 20px);
        cursor: pointer;
        overflow: hidden;
        position: relative;
      }
      .stage::after {
        content: "クリックで再生";
        position: absolute;
        bottom: 6px;
        right: 8px;
        font-size: 0.75rem;
        color: #94a3b8;
        opacity: 0;
        transition: opacity 0.2s;
      }
      .stage:hover::after {
        opacity: 1;
      }

      /* プレビュー要素のスタイル（差し替え対応） */
      .demo-text {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1e3a8a;
      }
      .demo-box {
        width: 64px;
        height: 64px;
        border-radius: 12px;
        background: linear-gradient(135deg, #3b82f6, #8b5cf6);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
      }
      .demo-button {
        padding: 12px 22px;
        font-size: 1rem;
        font-weight: 700;
        color: #fff;
        background: #3b82f6;
        border-radius: 8px;
      }
      .demo-image {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        background: linear-gradient(135deg, #f59e0b, #ef4444);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
      }

      .card-info {
        padding: 14px 16px;
        border-top: 1px solid #f1f5f9;
      }
      .card-cat {
        font-size: 0.8rem;
        font-weight: 600;
        color: #3b82f6;
        margin-bottom: 2px;
      }
      .card-name {
        font-size: 1rem;
        font-weight: 700;
        color: #1e293b;
        font-family: "Courier New", monospace;
        word-break: break-all;
      }
      .btn-group {
        display: flex;
        gap: 6px;
        margin-top: 12px;
      }
      .copy-btn {
        flex: 1;
        padding: 8px 6px;
        font-size: 0.85rem;
        font-weight: 600;
        color: #475569;
        background: #f1f5f9;
        border: none;
        border-radius: 7px;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.2s;
        text-align: center;
      }
      .copy-btn:hover {
        background: #e2e8f0;
      }
      .copy-btn.copied {
        background: #16a34a;
        color: #fff;
      }

      /* トースト */
      .toast {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%) translateY(20px);
        background: #1e293b;
        color: #fff;
        padding: 12px 24px;
        border-radius: 10px;
        font-size: 0.95rem;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
        z-index: 100;
      }
      .toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }

      footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 24px 40px;
        color: #64748b;
        font-size: 1rem;
        border-top: 1px solid #e2e8f0;
        background: #fff;
      }
      footer a {
        color: #1e293b;
        text-decoration: none;
        transition: color 0.2s;
      }
      footer a:hover {
        color: #1e3a8a;
      }
      .footer-links {
        display: flex;
        gap: 16px;
      }
      .footer-links a {
        border: 1px solid #e2e8f0;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 1rem;
        transition: all 0.2s;
      }
      .footer-links a:hover {
        border-color: #1e3a8a;
        color: #1e3a8a;
      }

      @media (max-width: 900px) {
        .layout {
          grid-template-columns: minmax(0, 1fr);
        }
        .sidebar {
          position: static;
          max-height: none;
          overflow-y: visible;
          padding-right: 0;
        }
      }
      @media (max-width: 768px) {
        footer {
          flex-direction: column;
          gap: 16px;
          padding: 24px 16px;
          text-align: center;
        }
        .footer-links {
          flex-wrap: wrap;
          justify-content: center;
        }
      }
      @media (max-width: 600px) {
        .header {
          padding: 28px 16px;
        }
        .header h1 {
          font-size: 1.4rem;
        }
        .container {
          padding: 20px 14px 48px;
        }
        .grid {
          grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
          gap: 12px;
        }
        .showcase-row {
          gap: 14px;
        }
        /* ショーケースの固定幅要素をはみ出させない */
        .showcase-item {
          width: 100%;
          padding: 18px;
        }
        .showcase-item .copy-btn {
          width: 100%;
        }
      }

      /* 3Dショーケース（フリップカード・キューブ） */
      .showcase {
        margin-top: 40px;
      }
      .section-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: #1e293b;
        margin-bottom: 4px;
      }
      .section-desc {
        font-size: 0.95rem;
        color: #64748b;
        margin-bottom: 20px;
      }
      .showcase-row {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
      }
      .showcase-item {
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        padding: 24px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 16px;
      }
      .showcase-item .label {
        font-size: 1rem;
        font-weight: 700;
        color: #1e293b;
      }
      .showcase-item .copy-btn {
        width: 180px;
        flex: none;
        padding: 10px;
      }

      /* フリップカード */
      .flip-card {
        width: 220px;
        height: 140px;
        margin: 10px 0;
        perspective: 1400px;
        cursor: pointer;
      }
      .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transition: transform 0.6s;
        transform-style: preserve-3d;
      }
      .flip-card-front,
      .flip-card-back {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        backface-visibility: hidden;
        font-size: 1.1rem;
        font-weight: 700;
        color: #fff;
      }
      /* 厚み 20px のスラブ：表/裏を半分の厚みだけ前後へ */
      .flip-card-front {
        background: linear-gradient(135deg, #3b82f6, #6366f1);
        transform: translateZ(10px);
      }
      .flip-card-back {
        background: linear-gradient(135deg, #8b5cf6, #ec4899);
      }
      .flip-h .flip-card-back {
        transform: rotateY(180deg) translateZ(10px);
      }
      .flip-v .flip-card-back {
        transform: rotateX(180deg) translateZ(10px);
      }
      /* 側面（厚みの面）*/
      .flip-edge {
        position: absolute;
        left: 50%;
        top: 50%;
        background: #4338ca;
      }
      .flip-edge-left,
      .flip-edge-right {
        width: 20px;
        height: 140px;
        margin: -70px 0 0 -10px;
      }
      .flip-edge-top,
      .flip-edge-bottom {
        width: 220px;
        height: 20px;
        margin: -10px 0 0 -110px;
      }
      .flip-edge-right {
        transform: rotateY(90deg) translateZ(110px);
      }
      .flip-edge-left {
        transform: rotateY(-90deg) translateZ(110px);
      }
      .flip-edge-top {
        transform: rotateX(90deg) translateZ(70px);
      }
      .flip-edge-bottom {
        transform: rotateX(-90deg) translateZ(70px);
      }

      /* 3Dキューブ */
      .cube-scene {
        width: 220px;
        height: 220px;
        max-width: 100%;
        perspective: 600px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .cube {
        position: relative;
        width: 120px;
        height: 120px;
        transform-style: preserve-3d;
      }
      .cube-scene:hover .cube {
        animation-play-state: paused;
      }
      .cube-face {
        position: absolute;
        width: 120px;
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2rem;
        font-weight: 700;
        color: #fff;
        border: 2px solid rgba(255, 255, 255, 0.5);
        box-sizing: border-box;
      }
      .cube-front {
        background: rgba(59, 130, 246, 0.85);
        transform: rotateY(0deg) translateZ(60px);
      }
      .cube-back {
        background: rgba(139, 92, 246, 0.85);
        transform: rotateY(180deg) translateZ(60px);
      }
      .cube-right {
        background: rgba(236, 72, 153, 0.85);
        transform: rotateY(90deg) translateZ(60px);
      }
      .cube-left {
        background: rgba(16, 185, 129, 0.85);
        transform: rotateY(-90deg) translateZ(60px);
      }
      .cube-top {
        background: rgba(245, 158, 11, 0.85);
        transform: rotateX(90deg) translateZ(60px);
      }
      .cube-bottom {
        background: rgba(239, 68, 68, 0.85);
        transform: rotateX(-90deg) translateZ(60px);
      }

      /* 3Dメリーゴーランド（回転カルーセル） */
      .mg-scene {
        width: 360px;
        height: 170px;
        max-width: 100%;
        perspective: 1000px;
      }
      .mg-ring {
        position: relative;
        width: 100%;
        height: 100%;
        transform-style: preserve-3d;
      }
      .mg-scene:hover .mg-ring {
        animation-play-state: paused;
      }
      .mg-panel {
        position: absolute;
        width: 120px;
        height: 90px;
        left: 120px;
        top: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 2rem;
        font-weight: 700;
        color: #fff;
        box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
      }

      /* =========================================================
       スライダー・カルーセル（すべてCSSのみ・JS不要）
       ========================================================= */
      /* フェードスライダー（自動クロスフェード切替） */
      .fade-slider {
        position: relative;
        width: 320px;
        height: 180px;
        max-width: 100%;
        border-radius: 12px;
        overflow: hidden;
      }
      .fade-slide {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 2rem;
        font-weight: 700;
        opacity: 0;
      }
      @keyframes fadeSlider {
        0% {
          opacity: 0;
        }
        9% {
          opacity: 1;
        }
        11% {
          opacity: 1;
        }
        20% {
          opacity: 0;
        }
        100% {
          opacity: 0;
        }
      }

      /* 自動スクロール無限カルーセル */
      .scroll-carousel {
        width: 360px;
        max-width: 100%;
        overflow: hidden;
        border-radius: 12px;
      }
      .scroll-track {
        display: flex;
        gap: 16px;
        width: max-content;
      }
      .scroll-track:hover {
        animation-play-state: paused;
      }
      .scroll-item {
        flex: none;
        width: 150px;
        height: 120px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.8rem;
        font-weight: 700;
      }
      @keyframes scrollCarousel {
        from {
          transform: translateX(0);
        }
        to {
          transform: translateX(calc(-50% - 8px));
        }
      }

      /* ドットナビ カルーセル（純CSS・ラジオボタン制御。状態ルールはJSで生成・注入） */
      .css-carousel {
        position: relative;
        width: 360px;
        max-width: 100%;
        overflow: hidden;
        border-radius: 12px;
      }
      .css-carousel > input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
      }
      .cc-track {
        display: flex;
        transition: transform 0.5s ease;
      }
      .cc-slide {
        flex: 0 0 100%;
        height: 180px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 2rem;
        font-weight: 700;
      }
      .cc-dots {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 12px;
        display: flex;
        justify-content: center;
        gap: 8px;
      }
      .cc-dots label {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        transition: background 0.2s;
      }

      /* ロゴマーキー（無限横流れ） */
      .marquee {
        width: 360px;
        max-width: 100%;
        overflow: hidden;
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
        mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
      }
      .marquee-track {
        display: flex;
        align-items: center;
        gap: 36px;
        width: max-content;
      }
      .marquee-track:hover {
        animation-play-state: paused;
      }
      .marquee-item {
        flex: none;
        font-size: 1.4rem;
        font-weight: 800;
        color: #475569;
        white-space: nowrap;
      }
      @keyframes marquee {
        from {
          transform: translateX(0);
        }
        to {
          transform: translateX(calc(-50% - 18px));
        }
      }

      /* カバーフロー（純CSS・ラジオボタン制御。状態ルールはJSで生成・注入） */
      .cf {
        position: relative;
        width: 360px;
        max-width: 100%;
        height: 200px;
        perspective: 1000px;
        overflow: hidden;
        border-radius: 12px;
      }
      .cf > input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
      }
      .cf-stage {
        position: relative;
        width: 100%;
        height: 160px;
        margin-top: 12px;
        transform-style: preserve-3d;
      }
      .cf-item {
        position: absolute;
        top: 0;
        left: 50%;
        width: 140px;
        height: 160px;
        margin-left: -70px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 2.2rem;
        font-weight: 700;
        transition: transform 0.5s ease, opacity 0.5s ease;
      }
      .cf-dots {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 12px;
        display: flex;
        justify-content: center;
        gap: 8px;
        z-index: 10;
      }
      .cf-dots label {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.18);
        cursor: pointer;
        transition: background 0.2s;
      }

      /* =========================================================
       アニメーション定義（@keyframes）
       ========================================================= */
      @keyframes bounce {
        from,
        20%,
        53%,
        to {
          animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
          transform: translate3d(0, 0, 0);
        }
        40%,
        43% {
          animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
          transform: translate3d(0, -30px, 0) scaleY(1.1);
        }
        70% {
          animation-timing-function: cubic-bezier(0.755, 0.05, 0.855, 0.06);
          transform: translate3d(0, -15px, 0) scaleY(1.05);
        }
        80% {
          animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
          transform: translate3d(0, 0, 0) scaleY(0.95);
        }
        90% {
          transform: translate3d(0, -4px, 0) scaleY(1.02);
        }
      }
      @keyframes flash {
        from,
        50%,
        to {
          opacity: 1;
        }
        25%,
        75% {
          opacity: 0;
        }
      }
      @keyframes pulse {
        from {
          transform: scale3d(1, 1, 1);
        }
        50% {
          transform: scale3d(1.05, 1.05, 1.05);
        }
        to {
          transform: scale3d(1, 1, 1);
        }
      }
      @keyframes rubberBand {
        from {
          transform: scale3d(1, 1, 1);
        }
        30% {
          transform: scale3d(1.25, 0.75, 1);
        }
        40% {
          transform: scale3d(0.75, 1.25, 1);
        }
        50% {
          transform: scale3d(1.15, 0.85, 1);
        }
        65% {
          transform: scale3d(0.95, 1.05, 1);
        }
        75% {
          transform: scale3d(1.05, 0.95, 1);
        }
        to {
          transform: scale3d(1, 1, 1);
        }
      }
      @keyframes shakeX {
        from,
        to {
          transform: translate3d(0, 0, 0);
        }
        10%,
        30%,
        50%,
        70%,
        90% {
          transform: translate3d(-10px, 0, 0);
        }
        20%,
        40%,
        60%,
        80% {
          transform: translate3d(10px, 0, 0);
        }
      }
      @keyframes shakeY {
        from,
        to {
          transform: translate3d(0, 0, 0);
        }
        10%,
        30%,
        50%,
        70%,
        90% {
          transform: translate3d(0, -10px, 0);
        }
        20%,
        40%,
        60%,
        80% {
          transform: translate3d(0, 10px, 0);
        }
      }
      @keyframes headShake {
        0% {
          transform: translateX(0);
        }
        6.5% {
          transform: translateX(-6px) rotateY(-9deg);
        }
        18.5% {
          transform: translateX(5px) rotateY(7deg);
        }
        31.5% {
          transform: translateX(-3px) rotateY(-5deg);
        }
        43.5% {
          transform: translateX(2px) rotateY(3deg);
        }
        50% {
          transform: translateX(0);
        }
      }
      @keyframes swing {
        20% {
          transform: rotate3d(0, 0, 1, 15deg);
        }
        40% {
          transform: rotate3d(0, 0, 1, -10deg);
        }
        60% {
          transform: rotate3d(0, 0, 1, 5deg);
        }
        80% {
          transform: rotate3d(0, 0, 1, -5deg);
        }
        to {
          transform: rotate3d(0, 0, 1, 0deg);
        }
      }
      @keyframes tada {
        from {
          transform: scale3d(1, 1, 1);
        }
        10%,
        20% {
          transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
        }
        30%,
        50%,
        70%,
        90% {
          transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
        }
        40%,
        60%,
        80% {
          transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
        }
        to {
          transform: scale3d(1, 1, 1);
        }
      }
      @keyframes wobble {
        from {
          transform: translate3d(0, 0, 0);
        }
        15% {
          transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg);
        }
        30% {
          transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg);
        }
        45% {
          transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg);
        }
        60% {
          transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg);
        }
        75% {
          transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg);
        }
        to {
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes jello {
        from,
        11.1%,
        to {
          transform: translate3d(0, 0, 0);
        }
        22.2% {
          transform: skewX(-12.5deg) skewY(-12.5deg);
        }
        33.3% {
          transform: skewX(6.25deg) skewY(6.25deg);
        }
        44.4% {
          transform: skewX(-3.125deg) skewY(-3.125deg);
        }
        55.5% {
          transform: skewX(1.5625deg) skewY(1.5625deg);
        }
        66.6% {
          transform: skewX(-0.78125deg) skewY(-0.78125deg);
        }
        77.7% {
          transform: skewX(0.390625deg) skewY(0.390625deg);
        }
        88.8% {
          transform: skewX(-0.1953125deg) skewY(-0.1953125deg);
        }
      }
      @keyframes heartBeat {
        0% {
          transform: scale(1);
        }
        14% {
          transform: scale(1.3);
        }
        28% {
          transform: scale(1);
        }
        42% {
          transform: scale(1.3);
        }
        70% {
          transform: scale(1);
        }
      }

      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }
      @keyframes fadeInDown {
        from {
          opacity: 0;
          transform: translate3d(0, -100%, 0);
        }
        to {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes fadeInUp {
        from {
          opacity: 0;
          transform: translate3d(0, 100%, 0);
        }
        to {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes fadeInLeft {
        from {
          opacity: 0;
          transform: translate3d(-100%, 0, 0);
        }
        to {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes fadeInRight {
        from {
          opacity: 0;
          transform: translate3d(100%, 0, 0);
        }
        to {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes fadeOut {
        from {
          opacity: 1;
        }
        to {
          opacity: 0;
        }
      }
      @keyframes fadeOutDown {
        from {
          opacity: 1;
        }
        to {
          opacity: 0;
          transform: translate3d(0, 100%, 0);
        }
      }
      @keyframes fadeOutUp {
        from {
          opacity: 1;
        }
        to {
          opacity: 0;
          transform: translate3d(0, -100%, 0);
        }
      }
      @keyframes fadeInDownBig {
        from {
          opacity: 0;
          transform: translate3d(0, -2000px, 0);
        }
        to {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes fadeInUpBig {
        from {
          opacity: 0;
          transform: translate3d(0, 2000px, 0);
        }
        to {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
      }

      @keyframes bounceIn {
        from,
        20%,
        40%,
        60%,
        80%,
        to {
          animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        }
        0% {
          opacity: 0;
          transform: scale3d(0.3, 0.3, 0.3);
        }
        20% {
          transform: scale3d(1.1, 1.1, 1.1);
        }
        40% {
          transform: scale3d(0.9, 0.9, 0.9);
        }
        60% {
          opacity: 1;
          transform: scale3d(1.03, 1.03, 1.03);
        }
        80% {
          transform: scale3d(0.97, 0.97, 0.97);
        }
        to {
          opacity: 1;
          transform: scale3d(1, 1, 1);
        }
      }
      @keyframes bounceInDown {
        from,
        60%,
        75%,
        90%,
        to {
          animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        }
        0% {
          opacity: 0;
          transform: translate3d(0, -3000px, 0) scaleY(3);
        }
        60% {
          opacity: 1;
          transform: translate3d(0, 25px, 0) scaleY(0.9);
        }
        75% {
          transform: translate3d(0, -10px, 0) scaleY(0.95);
        }
        90% {
          transform: translate3d(0, 5px, 0) scaleY(0.985);
        }
        to {
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes bounceInUp {
        from,
        60%,
        75%,
        90%,
        to {
          animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        }
        from {
          opacity: 0;
          transform: translate3d(0, 3000px, 0) scaleY(5);
        }
        60% {
          opacity: 1;
          transform: translate3d(0, -20px, 0) scaleY(0.9);
        }
        75% {
          transform: translate3d(0, 10px, 0) scaleY(0.95);
        }
        90% {
          transform: translate3d(0, -5px, 0) scaleY(0.985);
        }
        to {
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes bounceInLeft {
        from,
        60%,
        75%,
        90%,
        to {
          animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        }
        0% {
          opacity: 0;
          transform: translate3d(-3000px, 0, 0) scaleX(3);
        }
        60% {
          opacity: 1;
          transform: translate3d(25px, 0, 0) scaleX(1);
        }
        75% {
          transform: translate3d(-10px, 0, 0) scaleX(0.98);
        }
        90% {
          transform: translate3d(5px, 0, 0) scaleX(0.995);
        }
        to {
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes bounceInRight {
        from,
        60%,
        75%,
        90%,
        to {
          animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        }
        from {
          opacity: 0;
          transform: translate3d(3000px, 0, 0) scaleX(3);
        }
        60% {
          opacity: 1;
          transform: translate3d(-25px, 0, 0) scaleX(1);
        }
        75% {
          transform: translate3d(10px, 0, 0) scaleX(0.98);
        }
        90% {
          transform: translate3d(-5px, 0, 0) scaleX(0.995);
        }
        to {
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes bounceOut {
        20% {
          transform: scale3d(0.9, 0.9, 0.9);
        }
        50%,
        55% {
          opacity: 1;
          transform: scale3d(1.1, 1.1, 1.1);
        }
        to {
          opacity: 0;
          transform: scale3d(0.3, 0.3, 0.3);
        }
      }

      @keyframes zoomIn {
        from {
          opacity: 0;
          transform: scale3d(0.3, 0.3, 0.3);
        }
        50% {
          opacity: 1;
        }
      }
      @keyframes zoomOut {
        from {
          opacity: 1;
        }
        50% {
          opacity: 0;
          transform: scale3d(0.3, 0.3, 0.3);
        }
        to {
          opacity: 0;
        }
      }
      @keyframes zoomInDown {
        from {
          opacity: 0;
          transform: scale3d(0.1, 0.1, 0.1) translate3d(0, -1000px, 0);
          animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
        }
        60% {
          opacity: 1;
          transform: scale3d(0.475, 0.475, 0.475) translate3d(0, 60px, 0);
          animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
        }
      }
      @keyframes zoomInUp {
        from {
          opacity: 0;
          transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);
          animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
        }
        60% {
          opacity: 1;
          transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);
          animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
        }
      }

      @keyframes slideInDown {
        from {
          transform: translate3d(0, -100%, 0);
          visibility: visible;
        }
        to {
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes slideInUp {
        from {
          transform: translate3d(0, 100%, 0);
          visibility: visible;
        }
        to {
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes slideInLeft {
        from {
          transform: translate3d(-100%, 0, 0);
          visibility: visible;
        }
        to {
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes slideInRight {
        from {
          transform: translate3d(100%, 0, 0);
          visibility: visible;
        }
        to {
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes slideOutDown {
        from {
          transform: translate3d(0, 0, 0);
        }
        to {
          visibility: hidden;
          transform: translate3d(0, 100%, 0);
        }
      }
      @keyframes slideOutUp {
        from {
          transform: translate3d(0, 0, 0);
        }
        to {
          visibility: hidden;
          transform: translate3d(0, -100%, 0);
        }
      }
      @keyframes zoomInLeft {
        from {
          opacity: 0;
          transform: scale3d(0.1, 0.1, 0.1) translate3d(-1000px, 0, 0);
          animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
        }
        60% {
          opacity: 1;
          transform: scale3d(0.475, 0.475, 0.475) translate3d(10px, 0, 0);
          animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
        }
      }
      @keyframes zoomInRight {
        from {
          opacity: 0;
          transform: scale3d(0.1, 0.1, 0.1) translate3d(1000px, 0, 0);
          animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
        }
        60% {
          opacity: 1;
          transform: scale3d(0.475, 0.475, 0.475) translate3d(-10px, 0, 0);
          animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
        }
      }

      @keyframes flip {
        from {
          transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, -360deg);
          animation-timing-function: ease-out;
        }
        40% {
          transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -190deg);
          animation-timing-function: ease-out;
        }
        50% {
          transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 150px) rotate3d(0, 1, 0, -170deg);
          animation-timing-function: ease-in;
        }
        80% {
          transform: perspective(400px) scale3d(0.95, 0.95, 0.95) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);
          animation-timing-function: ease-in;
        }
        to {
          transform: perspective(400px) scale3d(1, 1, 1) translate3d(0, 0, 0) rotate3d(0, 1, 0, 0deg);
          animation-timing-function: ease-in;
        }
      }
      @keyframes flipInX {
        from {
          transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
          animation-timing-function: ease-in;
          opacity: 0;
        }
        40% {
          transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
          animation-timing-function: ease-in;
        }
        60% {
          transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
          opacity: 1;
        }
        80% {
          transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
        }
        to {
          transform: perspective(400px);
        }
      }
      @keyframes flipInY {
        from {
          transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
          animation-timing-function: ease-in;
          opacity: 0;
        }
        40% {
          transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
          animation-timing-function: ease-in;
        }
        60% {
          transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
          opacity: 1;
        }
        80% {
          transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
        }
        to {
          transform: perspective(400px);
        }
      }
      @keyframes flipOutX {
        from {
          transform: perspective(400px);
        }
        30% {
          transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
          opacity: 1;
        }
        to {
          transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
          opacity: 0;
        }
      }
      @keyframes flipOutY {
        from {
          transform: perspective(400px);
        }
        30% {
          transform: perspective(400px) rotate3d(0, 1, 0, -15deg);
          opacity: 1;
        }
        to {
          transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
          opacity: 0;
        }
      }

      @keyframes rotateIn {
        from {
          transform: rotate3d(0, 0, 1, -200deg);
          opacity: 0;
        }
        to {
          transform: translate3d(0, 0, 0);
          opacity: 1;
        }
      }
      @keyframes rotateInDownLeft {
        from {
          transform: rotate3d(0, 0, 1, -45deg);
          opacity: 0;
        }
        to {
          transform: translate3d(0, 0, 0);
          opacity: 1;
        }
      }
      @keyframes rotateInUpRight {
        from {
          transform: rotate3d(0, 0, 1, -90deg);
          opacity: 0;
        }
        to {
          transform: translate3d(0, 0, 0);
          opacity: 1;
        }
      }
      @keyframes rotateInUpLeft {
        from {
          transform: rotate3d(0, 0, 1, 45deg);
          opacity: 0;
        }
        to {
          transform: translate3d(0, 0, 0);
          opacity: 1;
        }
      }
      @keyframes rotateInDownRight {
        from {
          transform: rotate3d(0, 0, 1, 45deg);
          opacity: 0;
        }
        to {
          transform: translate3d(0, 0, 0);
          opacity: 1;
        }
      }
      @keyframes rotateOut {
        from {
          opacity: 1;
        }
        to {
          transform: rotate3d(0, 0, 1, 200deg);
          opacity: 0;
        }
      }

      @keyframes backInDown {
        0% {
          transform: translateY(-1200px) scale(0.7);
          opacity: 0.7;
        }
        80% {
          transform: translateY(0px) scale(0.7);
          opacity: 0.7;
        }
        100% {
          transform: scale(1);
          opacity: 1;
        }
      }
      @keyframes backInUp {
        0% {
          transform: translateY(1200px) scale(0.7);
          opacity: 0.7;
        }
        80% {
          transform: translateY(0px) scale(0.7);
          opacity: 0.7;
        }
        100% {
          transform: scale(1);
          opacity: 1;
        }
      }
      @keyframes backInLeft {
        0% {
          transform: translateX(-2000px) scale(0.7);
          opacity: 0.7;
        }
        80% {
          transform: translateX(0px) scale(0.7);
          opacity: 0.7;
        }
        100% {
          transform: scale(1);
          opacity: 1;
        }
      }
      @keyframes backInRight {
        0% {
          transform: translateX(2000px) scale(0.7);
          opacity: 0.7;
        }
        80% {
          transform: translateX(0px) scale(0.7);
          opacity: 0.7;
        }
        100% {
          transform: scale(1);
          opacity: 1;
        }
      }
      @keyframes backOutDown {
        0% {
          transform: scale(1);
          opacity: 1;
        }
        20% {
          transform: translateY(0px) scale(0.7);
          opacity: 0.7;
        }
        100% {
          transform: translateY(700px) scale(0.7);
          opacity: 0.7;
        }
      }
      @keyframes backOutUp {
        0% {
          transform: scale(1);
          opacity: 1;
        }
        20% {
          transform: translateY(0px) scale(0.7);
          opacity: 0.7;
        }
        100% {
          transform: translateY(-700px) scale(0.7);
          opacity: 0.7;
        }
      }

      @keyframes lightSpeedInRight {
        from {
          transform: translate3d(100%, 0, 0) skewX(-30deg);
          opacity: 0;
        }
        60% {
          transform: skewX(20deg);
          opacity: 1;
        }
        80% {
          transform: skewX(-5deg);
        }
        to {
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes lightSpeedInLeft {
        from {
          transform: translate3d(-100%, 0, 0) skewX(30deg);
          opacity: 0;
        }
        60% {
          transform: skewX(-20deg);
          opacity: 1;
        }
        80% {
          transform: skewX(5deg);
        }
        to {
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes lightSpeedOutRight {
        from {
          opacity: 1;
        }
        to {
          transform: translate3d(100%, 0, 0) skewX(30deg);
          opacity: 0;
        }
      }

      @keyframes rollIn {
        from {
          opacity: 0;
          transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg);
        }
        to {
          opacity: 1;
          transform: translate3d(0, 0, 0);
        }
      }
      @keyframes rollOut {
        from {
          opacity: 1;
        }
        to {
          opacity: 0;
          transform: translate3d(100%, 0, 0) rotate3d(0, 0, 1, 120deg);
        }
      }
      @keyframes hinge {
        0% {
          animation-timing-function: ease-in-out;
        }
        20%,
        60% {
          transform: rotate3d(0, 0, 1, 80deg);
          animation-timing-function: ease-in-out;
        }
        40%,
        80% {
          transform: rotate3d(0, 0, 1, 60deg);
          animation-timing-function: ease-in-out;
          opacity: 1;
        }
        to {
          transform: translate3d(0, 700px, 0);
          opacity: 0;
        }
      }
      @keyframes jackInTheBox {
        from {
          opacity: 0;
          transform: scale(0.1) rotate(30deg);
          transform-origin: center bottom;
        }
        50% {
          transform: rotate(-10deg);
        }
        70% {
          transform: rotate(3deg);
        }
        to {
          opacity: 1;
          transform: scale(1);
        }
      }

      /* 3D（単一要素） */
      @keyframes spin3DX {
        from {
          transform: perspective(600px) rotateX(0);
        }
        to {
          transform: perspective(600px) rotateX(360deg);
        }
      }
      @keyframes spin3DY {
        from {
          transform: perspective(600px) rotateY(0);
        }
        to {
          transform: perspective(600px) rotateY(360deg);
        }
      }
      @keyframes spin3DZ {
        from {
          transform: rotateZ(0);
        }
        to {
          transform: rotateZ(360deg);
        }
      }
      @keyframes swing3D {
        20% {
          transform: perspective(600px) rotateY(45deg);
        }
        40% {
          transform: perspective(600px) rotateY(-35deg);
        }
        60% {
          transform: perspective(600px) rotateY(25deg);
        }
        80% {
          transform: perspective(600px) rotateY(-15deg);
        }
        to {
          transform: perspective(600px) rotateY(0deg);
        }
      }
      @keyframes tilt3D {
        0% {
          transform: perspective(600px) rotateX(0) rotateY(0);
        }
        25% {
          transform: perspective(600px) rotateX(15deg) rotateY(-15deg);
        }
        50% {
          transform: perspective(600px) rotateX(0) rotateY(15deg);
        }
        75% {
          transform: perspective(600px) rotateX(-15deg) rotateY(-10deg);
        }
        100% {
          transform: perspective(600px) rotateX(0) rotateY(0);
        }
      }
      @keyframes pop3DIn {
        from {
          opacity: 0;
          transform: perspective(600px) translateZ(-400px);
        }
        to {
          opacity: 1;
          transform: perspective(600px) translateZ(0);
        }
      }
      @keyframes flipDownIn {
        from {
          opacity: 0;
          transform: perspective(600px) rotateX(-90deg);
        }
        to {
          opacity: 1;
          transform: perspective(600px) rotateX(0);
        }
      }
      @keyframes flipUpIn {
        from {
          opacity: 0;
          transform: perspective(600px) rotateX(90deg);
        }
        to {
          opacity: 1;
          transform: perspective(600px) rotateX(0);
        }
      }
      @keyframes rotateY3DIn {
        from {
          opacity: 0;
          transform: perspective(600px) rotateY(-180deg);
        }
        to {
          opacity: 1;
          transform: perspective(600px) rotateY(0);
        }
      }
      @keyframes vortexIn {
        from {
          opacity: 0;
          transform: rotateZ(-720deg) scale(0);
        }
        to {
          opacity: 1;
          transform: rotateZ(0) scale(1);
        }
      }

      /* 3Dキューブ */
      @keyframes cubeSpin {
        from {
          transform: rotateX(0) rotateY(0);
        }
        to {
          transform: rotateX(360deg) rotateY(360deg);
        }
      }

      /* 3Dメリーゴーランド */
      @keyframes mgSpin {
        from {
          transform: rotateX(-12deg) rotateY(0);
        }
        to {
          transform: rotateX(-12deg) rotateY(360deg);
        }
      }

      /* 3D（追加） */
      @keyframes flipDownOut {
        from {
          opacity: 1;
          transform: perspective(600px) rotateX(0);
        }
        to {
          opacity: 0;
          transform: perspective(600px) rotateX(90deg);
        }
      }
      @keyframes flipUpOut {
        from {
          opacity: 1;
          transform: perspective(600px) rotateX(0);
        }
        to {
          opacity: 0;
          transform: perspective(600px) rotateX(-90deg);
        }
      }
      @keyframes flipLeftIn {
        from {
          opacity: 0;
          transform: perspective(600px) rotateY(-90deg);
        }
        to {
          opacity: 1;
          transform: perspective(600px) rotateY(0);
        }
      }
      @keyframes flipRightIn {
        from {
          opacity: 0;
          transform: perspective(600px) rotateY(90deg);
        }
        to {
          opacity: 1;
          transform: perspective(600px) rotateY(0);
        }
      }
      @keyframes swing3DX {
        20% {
          transform: perspective(600px) rotateX(45deg);
        }
        40% {
          transform: perspective(600px) rotateX(-35deg);
        }
        60% {
          transform: perspective(600px) rotateX(25deg);
        }
        80% {
          transform: perspective(600px) rotateX(-15deg);
        }
        to {
          transform: perspective(600px) rotateX(0);
        }
      }
      @keyframes tumble3D {
        from {
          transform: perspective(600px) rotate3d(1, 1, 1, 0deg);
        }
        to {
          transform: perspective(600px) rotate3d(1, 1, 1, 360deg);
        }
      }
      @keyframes coinFlip {
        from {
          transform: perspective(600px) rotateY(0) scale(1);
        }
        50% {
          transform: perspective(600px) rotateY(360deg) scale(1.1);
        }
        to {
          transform: perspective(600px) rotateY(720deg) scale(1);
        }
      }
      @keyframes spiral3DIn {
        from {
          opacity: 0;
          transform: perspective(600px) rotateY(-360deg) scale(0.2);
        }
        to {
          opacity: 1;
          transform: perspective(600px) rotateY(0) scale(1);
        }
      }
      @keyframes doorOpenLeft {
        from {
          opacity: 0;
          transform: perspective(800px) rotateY(-110deg);
        }
        60% {
          opacity: 1;
          transform: perspective(800px) rotateY(15deg);
        }
        to {
          transform: perspective(800px) rotateY(0);
        }
      }
      @keyframes depthPop {
        0% {
          transform: perspective(600px) translateZ(0);
        }
        50% {
          transform: perspective(600px) translateZ(120px);
        }
        100% {
          transform: perspective(600px) translateZ(0);
        }
      }
      @keyframes flip3DDiagonal {
        from {
          transform: perspective(600px) rotate3d(1, 1, 0, 0deg);
        }
        to {
          transform: perspective(600px) rotate3d(1, 1, 0, 360deg);
        }
      }
      @keyframes wobble3D {
        0%,
        100% {
          transform: perspective(600px) rotateX(0) rotateY(0);
        }
        20% {
          transform: perspective(600px) rotateX(20deg) rotateY(-20deg);
        }
        40% {
          transform: perspective(600px) rotateX(-15deg) rotateY(15deg);
        }
        60% {
          transform: perspective(600px) rotateX(10deg) rotateY(-10deg);
        }
        80% {
          transform: perspective(600px) rotateX(-5deg) rotateY(5deg);
        }
      }
      @keyframes helixIn {
        from {
          opacity: 0;
          transform: perspective(600px) translateY(60px) rotateY(-360deg);
        }
        to {
          opacity: 1;
          transform: perspective(600px) translateY(0) rotateY(0);
        }
      }
      @keyframes popOut3D {
        from {
          opacity: 1;
          transform: perspective(600px) translateZ(0);
        }
        to {
          opacity: 0;
          transform: perspective(600px) translateZ(-400px);
        }
      }

      /* エフェクト */
      @keyframes glitch {
        0%,
        100% {
          transform: translate(0);
        }
        20% {
          transform: translate(-4px, 2px) skewX(8deg);
        }
        40% {
          transform: translate(4px, -2px) skewX(-8deg);
        }
        60% {
          transform: translate(-3px, 1px) skewX(4deg);
        }
        80% {
          transform: translate(3px, -1px) skewX(-4deg);
        }
      }
      @keyframes neonFlicker {
        0%,
        18%,
        22%,
        25%,
        53%,
        57%,
        100% {
          opacity: 1;
        }
        20%,
        24%,
        55% {
          opacity: 0.3;
        }
      }
      @keyframes float {
        0%,
        100% {
          transform: translateY(0);
        }
        50% {
          transform: translateY(-14px);
        }
      }
      @keyframes blurIn {
        from {
          opacity: 0;
          filter: blur(12px);
        }
        to {
          opacity: 1;
          filter: blur(0);
        }
      }
      @keyframes blurOut {
        from {
          opacity: 1;
          filter: blur(0);
        }
        to {
          opacity: 0;
          filter: blur(12px);
        }
      }
      @keyframes popRotateIn {
        from {
          opacity: 0;
          transform: scale(0) rotate(-180deg);
        }
        to {
          opacity: 1;
          transform: scale(1) rotate(0);
        }
      }
      @keyframes elasticIn {
        0% {
          opacity: 0;
          transform: scale(0);
        }
        60% {
          opacity: 1;
          transform: scale(1.15);
        }
        80% {
          transform: scale(0.95);
        }
        100% {
          transform: scale(1);
        }
      }
      @keyframes swirlOut {
        from {
          opacity: 1;
          transform: rotate(0) scale(1);
        }
        to {
          opacity: 0;
          transform: rotate(360deg) scale(0);
        }
      }

      /* exit（追加） */
      @keyframes fadeOutLeft {
        from {
          opacity: 1;
        }
        to {
          opacity: 0;
          transform: translate3d(-100%, 0, 0);
        }
      }
      @keyframes fadeOutRight {
        from {
          opacity: 1;
        }
        to {
          opacity: 0;
          transform: translate3d(100%, 0, 0);
        }
      }
      @keyframes zoomOutDown {
        40% {
          opacity: 1;
          transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -60px, 0);
          animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
        }
        to {
          opacity: 0;
          transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 2000px, 0);
          animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1);
        }
      }
      @keyframes slideOutLeft {
        from {
          transform: translate3d(0, 0, 0);
        }
        to {
          visibility: hidden;
          transform: translate3d(-100%, 0, 0);
        }
      }

      /* ============ i18n: 言語切替 & 英語用テキスト上書き ============ */
      .header {
        position: relative;
      }
      /* 言語切替リンク（ja ↔ en。ヘッダー右上） */
      .lang-switch {
        position: absolute;
        top: 16px;
        right: 16px;
        display: inline-block;
        padding: 4px 12px;
        border: 1px solid rgba(147, 197, 253, 0.5);
        border-radius: 999px;
        color: #bfdbfe;
        font-size: 1rem;
        text-decoration: none;
      }
      .lang-switch:hover {
        background: rgba(147, 197, 253, 0.15);
      }
      /* 英語ページ用に CSS 内テキストを差し替え */
      html[lang="en"] .code-box code:empty::before {
        content: "Select a card or 3D showcase to see its code";
      }
      html[lang="en"] .stage::after {
        content: "Click to play";
      }

      /* ---- FAQ ---- */
      .faq-section {
        max-width: 820px;
        margin: 0 auto;
        padding: 0 20px 24px;
      }
      .faq-heading {
        font-size: 1.5rem;
        margin: 0 0 16px;
        color: #1e293b;
      }
      .faq {
        margin: 0;
      }
      .faq dt {
        font-weight: 700;
        font-size: 1.05rem;
        color: #1e293b;
        margin-top: 18px;
      }
      .faq dd {
        margin: 6px 0 0;
        color: #475569;
        line-height: 1.8;
      }
