    /* ---- Reset/ベース ---- */
    *, *::before, *::after {
      box-sizing: border-box;
    }
    body, h1, h2, p {
      margin: 0;
      padding: 0;
    }
    button, input {
      font-family: inherit;
    }

    body {
      min-height: 100vh;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        "Noto Sans JP", sans-serif;
      background: linear-gradient(135deg, #fff7ed, #ffe4f3, #f5f3ff);
      color: #111827;
    }
    a {
	    text-decoration: none;
    }

    /* ---- 全体レイアウト ---- */
    .page {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .container {
      max-width: 100%;
      margin: 0 auto;
      padding: 0 5%;
    }

    /* ---- ヘッダー ---- */
    .header {
      position: sticky;
      top: 0;
      z-index: 40;
      backdrop-filter: blur(16px);
      background: rgba(255, 255, 255, 0.85);
      border-bottom: 1px solid rgba(209, 213, 219, 0.6);
      box-shadow: 0 4px 12px rgba(148, 163, 184, 0.3);
      height: 150px;
    }

    .header-inner {
      padding: 16px 0 18px;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .header-title-row {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .header-icon {
      width: 52px;
      height: 52px;
      border-radius: 18px;
      background: linear-gradient(135deg, #fb923c, #ec4899);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow:
        0 8px 20px rgba(248, 113, 113, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.9);
      color: #fff;
      font-size: 28px;
    }

    .header-texts h1 {
      font-size: 1.6rem;
      font-weight: 800;
      letter-spacing: 0.02em;
      color: #111827;
    }

    .header-texts p {
      font-size: 0.9rem;
      color: #6b7280;
      margin-top: 2px;
    }

    /* ---- 検索ボックス ---- */
    .search-wrapper {
      position: relative;
    }

    .search-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 18px;
      color: #9ca3af;
    }

    .search-input {
      width: 100%;
      height: 48px;
      border-radius: 999px;
      border: 1px solid #e5e7eb;
      padding: 0 16px 0 42px;
      font-size: 1rem;
      background: #f9fafb;
      outline: none;
      transition: border-color 0.18s ease, box-shadow 0.18s ease,
        background-color 0.18s ease;
    }

    .search-input:focus {
      background: #ffffff;
      border-color: #fb7185;
      box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.3);
    }

    /* ---- カテゴリフィルタ ---- */
    .category-row {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 4px;
      scrollbar-width: none;
      flex-wrap: wrap;
    }
    .category-row::-webkit-scrollbar {
      display: none;
    }

    .category-button {
      flex-shrink: 0;
      border-radius: 999px;
      border: 1px solid #e5e7eb;
      background: #ffffff;
      padding: 6px 14px;
      font-size: 0.8rem;
      color: #374151;
      cursor: pointer;
      white-space: nowrap;
      display: inline-flex;
      align-items: center;
      gap: 0;
      transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease,
        border-color 0.18s ease, transform 0.08s ease;
    }

    .category-button:hover {
      background: #f3f4f6;
      transform: translateY(-1px);
    }

    .category-button.active {
      border-color: transparent;
      color: #ffffff;
      background: linear-gradient(90deg, #fb923c, #ec4899);
      box-shadow:
        0 6px 16px rgba(248, 113, 113, 0.45),
        0 0 0 2px rgba(249, 250, 251, 0.9);
    }

    /* ---- メイン ---- */
    .main {
      flex: 1;
    }

    .main-inner {
      padding: 24px 0 32px;
    }

    /* ---- セクションヘッダー ---- */
    .section-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 16px;
    }

    .section-title {
      font-size: 1.2rem;
      font-weight: 700;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 4px 10px;
      border-radius: 999px;
      font-size: 0.8rem;
      background: #f3f4f6;
      color: #4b5563;
      border: 1px solid #e5e7eb;
    }

    /* ---- 絵文字グリッド ---- */
    .category-block + .category-block {
      margin-top: 32px;
    }

    .emoji-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 15px;
    }
    @media (min-width: 640px) {
      .emoji-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
      }
    }
    @media (min-width: 768px) {
      .emoji-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
      }
    }
    @media (min-width: 1024px) {
      .emoji-grid {
        grid-template-columns: repeat(10, minmax(0, 1fr));
      }
    }
    @media (min-width: 1280px) {
      .emoji-grid {
        grid-template-columns: repeat(13, minmax(0, 1fr));
      }
    }

    .emoji-card {
      position: relative;
      border-radius: 18px;
      background: #ffffff;
      border: 2px solid transparent;
      box-shadow: 0 2px 6px rgba(148, 163, 184, 0.35);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 3vw;
      cursor: pointer;
      aspect-ratio: 1 / 1;
      transition: transform 0.12s ease, box-shadow 0.12s ease,
        border-color 0.12s ease, background 0.12s ease;
    }
    @media (max-width: 639px) {
	  .emoji-card {
	      font-size: 9vw;
		}
    }

    .emoji-card:hover {
      transform: translateY(-2px) scale(1.05);
      box-shadow: 0 8px 20px rgba(148, 163, 184, 0.55);
      border-color: #fecaca;
      background: linear-gradient(135deg, #fff7ed, #fdf2ff);
    }

    .emoji-card:active {
      transform: translateY(1px) scale(0.96);
      box-shadow: 0 2px 6px rgba(148, 163, 184, 0.4);
    }

    /* コピー時オーバーレイ */
    .emoji-card.copied::before {
      content: "✓";
      position: absolute;
      inset: 0;
      background: rgba(34, 197, 94, 0.92);
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.6rem;
      animation: fadeOut 1.1s forwards;
	  border-radius: 18px;
    }

    @keyframes fadeOut {
      0% { opacity: 1; }
      60% { opacity: 1; }
      100% { opacity: 0; }
    }

    /* hover時の「コピー」ラベル */
    .emoji-card .copy-hint {
      position: absolute;
	  right: -8px;
	  top: -5px;
      background: rgba(17, 24, 39, 0.95);
      color: #f9fafb;
      font-size: 0.65rem;
      padding: 4px 8px;
      border-radius: 999px;
      opacity: 0;
      transform: translateY(-3px);
      transition: opacity 0.15s ease, transform 0.15s ease;
      pointer-events: none;
    }

    .emoji-card:hover .copy-hint {
      opacity: 1;
      transform: translateY(0);
    }

    /* ---- 空状態 ---- */
    .empty-state {
      text-align: center;
      padding: 60px 16px 40px;
      color: #6b7280;
    }

    .empty-state-emoji {
      font-size: 3rem;
      margin-bottom: 8px;
    }

    .empty-state-title {
      font-size: 1.1rem;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .empty-state-text {
      font-size: 0.9rem;
      color: #9ca3af;
    }

    /* ---- フッター ---- */
    .footer {
      border-top: 1px solid #e5e7eb;
      background: rgba(255, 255, 255, 0.7);
      backdrop-filter: blur(8px);
    }

    .footer-inner {
      padding: 18px 0 22px;
      text-align: center;
    }

    .footer-main {
      font-size: 0.9rem;
      color: #4b5563;
    }

    .footer-sub,
        .footer-sub a {
      font-size: 0.8rem;
      color: #9ca3af;
      margin-top: 4px;
    }

    /* ---- トースト ---- */
    .toast {
      position: fixed;
      left: 50%;
      bottom: 20px;
      transform: translateX(-50%) translateY(120%);
      background: rgba(17, 24, 39, 0.98);
      color: #f9fafb;
      padding: 9px 16px;
      border-radius: 999px;
      font-size: 0.85rem;
      display: flex;
      align-items: center;
      gap: 8px;
      box-shadow: 0 10px 25px rgba(15, 23, 42, 0.75);
      opacity: 0;
      pointer-events: none;
      transition: transform 0.18s ease-out, opacity 0.18s ease-out;
      z-index: 9999;
    }

    .toast.visible {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
    }

    .toast-emoji {
      font-size: 1.1rem;
    }

    /* ---- その他 ---- */
    .emoji-count {
      font-size: 0.8rem;
      color: #6b7280;
      margin-top: 4px;
    }
	.copy-hint svg {
	  width: 13px;
	  height: 13px;
	  display: block;
	}
	
	/* タイトルと切り替えボタンを左右に配置 */
	.header-top {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  gap: 16px;
	}
	
	/* スマホで窮屈な場合は縦積み */
	@media (max-width: 640px) {
	  .header-top {
	    gap: 8px;
	  }
	  .lang-switch {
	    position: fixed;
	    top: 10px;
	    right: 5%;
	  }
	  .lang-link {
		  font-size: 2.2vw;
	  }
	}
	
	/* 言語切り替え */
	.lang-switch {
	  display: flex;
	  align-items: center;
	  gap: 6px;
	  font-size: 0.85rem;
	}
	
	.lang-link {
	  text-decoration: none;
	  color: #6b7280; /* gray-500 */
	  padding: 4px 8px;
	  border-radius: 999px;
	  transition: background-color 0.15s ease, color 0.15s ease;
	}
	
	.lang-link:hover {
	  background-color: #f3f4f6; /* gray-100 */
	  color: #111827;           /* gray-900 */
	}
	
	.lang-link-active {
	  background: linear-gradient(90deg, #fb923c, #ec4899);
	  color: #ffffff;
	  font-weight: 600;
	}
	.lang-link-active:hover {
	  color: #ffffff;
	}
	
	.lang-divider {
	  color: #9ca3af; /* gray-400 */
	}
p.copy {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-top: 15px;
}
  .category-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* iOSでスムーズに */
    scrollbar-width: none; /* Firefox */
    flex-wrap: nowrap;
  }
  .category-row::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
  }

  .category-button {
    flex-shrink: 0;
  }
  
/* ========== トップページ文章コンテンツ ========== */

.emoji-article {
  margin-top: 48px;
  margin-bottom: 40px;
  padding: 24px 20px 28px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.emoji-article__title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 16px;
}

.emoji-article__lead {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #374151;
  margin-bottom: 20px;
}

.emoji-article__subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 10px;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 6px;
}

.emoji-article__subtitle::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fb923c, #ec4899);
}

.emoji-article p {
  font-size: 0.92rem;
  line-height: 1.9;
  color: #4b5563;
  margin-bottom: 10px;
}

.emoji-article p + p {
  margin-top: 4px;
}

/* スマホ向け微調整 */
@media (max-width: 640px) {
  .emoji-article {
    margin-top: 32px;
    margin-bottom: 32px;
    padding: 18px 14px 22px;
    border-radius: 14px;
  }

  .emoji-article__title {
    font-size: 1.25rem;
    margin-bottom: 12px;
  }

  .emoji-article p {
    font-size: 0.9rem;
  }
}

@media (min-width: 1024px) {
  .emoji-article {
  	width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

    .policy-main {
      padding: 32px 0 40px;
    }

    .policy-wrapper {
      margin: 0 auto;
      padding: 24px 20px 28px;
      border-radius: 18px;
      background: #ffffff;
      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
      border: 1px solid rgba(226, 232, 240, 0.9);
    }

    .policy-title {
      font-size: 1.5rem;
      font-weight: 800;
      margin-bottom: 16px;
      color: #111827;
    }

    .policy-updated {
      font-size: 0.85rem;
      color: #6b7280;
      margin-bottom: 18px;
    }

    .policy-section {
      margin-top: 18px;
    }

    .policy-section__title {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 6px;
      color: #111827;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .policy-section__title::before {
      content: "";
      display: inline-block;
      width: 4px;
      height: 18px;
      border-radius: 999px;
      background: linear-gradient(180deg, #fb923c, #ec4899);
    }

    .policy-section p {
      font-size: 0.92rem;
      line-height: 1.9;
      color: #4b5563;
      margin-bottom: 6px;
    }

    .policy-section ul {
      margin: 6px 0 10px 1.1em;
      padding: 0;
      list-style: disc;
    }

    .policy-section li {
      font-size: 0.9rem;
      line-height: 1.8;
      color: #4b5563;
      margin-bottom: 2px;
    }

    @media (max-width: 640px) {
      .policy-main {
        padding-top: 24px;
      }

      .policy-wrapper {
        padding: 18px 14px 22px;
        border-radius: 14px;
      }

      .policy-title {
        font-size: 1.3rem;
      }
    }