.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 58px; padding: 10px max(20px, calc((100vw - 1160px) / 2)); border-bottom: 1px solid var(--line); background: #f4f6ee; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; color: var(--text); }
.brand-mark { position: relative; display: block; flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid #8f6421; border-radius: 8px; color: #202522; background: #d99b36; box-shadow: inset 0 -1px 0 rgba(0,0,0,.14), 0 1px 1px rgba(32,37,34,.08); line-height: 1; overflow: hidden; }
.brand-mark::after { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(255, 244, 218, .42); border-radius: 6px; pointer-events: none; }
.brand-mark .kana-su { position: absolute; left: 50%; top: calc(48% + 4px); z-index: 1; transform: translate(-50%, -50%); font-family: Meiryo, "Yu Gothic UI", "Yu Gothic", system-ui, sans-serif; font-size: 1.78rem; font-weight: 950; line-height: 1; letter-spacing: 0; }
.brand-mark .kana-gu { position: absolute; right: 5px; bottom: 5px; z-index: 1; font-family: Meiryo, "Yu Gothic UI", "Yu Gothic", system-ui, sans-serif; font-size: .52rem; font-weight: 900; line-height: 1; letter-spacing: 0; }
.brand-copy { display: grid; gap: 0; min-width: 0; }
.brand-text { white-space: nowrap; font-size: 1.05rem; line-height: 1.2; }
.brand-tagline { max-width: min(58vw, 560px); color: var(--muted); font-size: 0.68rem; font-weight: 700; line-height: 1.35; white-space: normal; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
.nav a { padding: 6px 8px; border-radius: 4px; color: var(--muted); font-size: 0.88rem; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav-share { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 5px 9px; border: 1px solid #cfc5b6; border-radius: 6px; color: var(--text); background: #fbfbf5; font-size: 0.84rem; font-weight: 850; white-space: nowrap; }
.share-icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav-share:hover { background: var(--surface-2); }
.palette-page { padding-bottom: 92px; }
.command-hub { display: grid; grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1.3fr); gap: 28px; align-items: center; max-width: 100%; margin-top: 22px; padding: 26px; border: 1px solid #334239; border-radius: var(--radius); color: #f4f2e8; background: #1f2923; }
.command-heading h1 { margin: 4px 0 8px; font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; }
.command-heading p { max-width: 520px; margin: 0; color: #c7c0b5; }
.command-search { display: grid; gap: 8px; }
.command-search label { font-size: 0.82rem; color: #d6cfc4; font-weight: 800; }
.command-search input { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #70806f; border-radius: 4px; color: #f8f4ec; background: #263129; outline: none; }
.command-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(189, 122, 42, 0.25); }
.command-hints { display: flex; flex-wrap: wrap; gap: 10px; color: #aaa299; font-size: 0.82rem; }
kbd { display: inline-grid; place-items: center; min-width: 20px; min-height: 20px; margin-right: 3px; padding: 0 5px; border: 1px solid #80786e; border-radius: 3px; color: #f8f4ec; background: #17191b; font-size: 0.75rem; }
.quick-search-dock { position: fixed; top: 66px; left: max(16px, calc((100vw - 1160px) / 2)); right: max(16px, calc((100vw - 1160px) / 2)); z-index: 30; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 54px; padding: 8px 12px; border: 1px solid #334239; border-radius: var(--radius); color: #f4f2e8; background: rgba(31, 41, 35, .97); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .16s ease, transform .16s ease; }
body.search-docked .quick-search-dock, .quick-search-dock:focus-within { transform: translateY(0); opacity: 1; pointer-events: auto; }
.quick-search-dock label { color: #d6cfc4; font-size: .82rem; font-weight: 850; }
.quick-search-dock input { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #70806f; border-radius: 4px; color: #f8f4ec; background: #263129; outline: none; }
.command-hub.is-commanding { border-color: #d49a3a; box-shadow: 0 0 0 2px rgba(189, 122, 42, .24); }
.mobile-search-button { display: none; }
.palette-workspace { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
.category-rail { position: sticky; top: 76px; display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #e4ebdc; }
.category-rail button { display: flex; justify-content: space-between; gap: 12px; width: 100%; min-height: 36px; padding: 8px 9px; border: 1px solid transparent; border-radius: 4px; color: var(--muted); background: transparent; text-align: left; }
.category-rail button:hover, .category-rail button.active { border-color: #b9c5b2; color: var(--text); background: var(--surface); }
.category-rail strong { color: var(--accent); font-size: 0.78rem; }
.command-results { min-width: 0; }
.result-header { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.result-header h2 { margin: 0; font-size: 1.2rem; }
.result-header p { margin: 2px 0 0; color: var(--muted); font-size: 0.9rem; }
#result-count { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.btn-share { min-height: 34px; padding: 6px 10px; }
.tool-directory { display: grid; gap: 18px; padding: 8px 0 0; }
.category-section { scroll-margin-top: 88px; }
.tool-page { padding: 20px 0 48px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 0.9rem; }
.breadcrumb > * + *::before { content: "/"; margin-right: 8px; color: #9a9388; }
.tool-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding: 18px 0 8px; border-bottom: 1px solid var(--line); }
.tool-heading > div:first-child { min-width: 0; }
.tool-heading h1 { margin: 4px 0 8px; font-size: clamp(1.7rem, 4vw, 2.45rem); line-height: 1.12; }
.tool-heading p { max-width: 760px; margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.tool-heading-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.related-section { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.use-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; list-style: none; }
.use-cases li { min-height: 64px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px max(20px, calc((100vw - 1160px) / 2)); border-top: 1px solid var(--line); color: var(--muted); background: #e4ebdc; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 14px; }
@media (max-width: 880px) {
  main { width: min(100% - 24px, 1160px); }
  .site-header { position: static; align-items: flex-start; flex-direction: column; }
  .header-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; align-items: start; }
  .nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; justify-content: flex-start; gap: 2px 8px; overflow: visible; padding-bottom: 2px; }
  .nav a { min-width: 0; padding: 4px 0; font-size: 0.84rem; }
  .command-hub { grid-template-columns: 1fr; gap: 18px; margin-top: 14px; padding: 18px; }
  .quick-search-dock { top: 10px; left: 12px; right: 12px; }
  .palette-workspace { grid-template-columns: 1fr; }
  .category-rail { position: static; display: flex; flex-wrap: wrap; overflow: visible; }
  .category-rail button { flex: 1 1 106px; width: auto; min-width: 0; }
  .result-header { align-items: flex-start; flex-direction: column; }
  .tool-heading { align-items: flex-start; flex-direction: column; }
  .use-cases { grid-template-columns: 1fr; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 680px) {
  .site-header { padding: 10px 12px; }
  .header-actions { grid-template-columns: 1fr; }
  .nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 10px; }
  .nav-share { justify-self: start; }
  .command-hub { padding: 16px; overflow: hidden; }
  .command-search input { min-width: 0; min-height: 48px; }
  .tool-heading-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .tool-heading-actions .btn-secondary { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-width: 0; padding-inline: 8px; text-align: center; white-space: normal; overflow-wrap: anywhere; }
  .category-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-rail button { width: 100%; }
  .mobile-search-button { position: fixed; left: 14px; right: 14px; bottom: 14px; z-index: 40; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 14px; border: 1px solid #916729; border-radius: 6px; color: #202522; background: #d49a3a; font-weight: 900; box-shadow: var(--shadow); }
}
