:root {
  color-scheme: light;
  --ink: #242a30;
  --muted: #69747c;
  --line: #e2e7e9;
  --page: #f5f7f8;
  font-family: "Segoe UI", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: none;
  letter-spacing: 0;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #356dce; outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 14px 32px; background: #fff; border-bottom: 1px solid var(--line); }
.topbar-left { display: flex; align-items: center; gap: 26px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.brand span { display: grid; gap: 2px; }
.brand strong { font-size: 17px; line-height: 1.2; font-weight: 750; }
.brand small { color: var(--muted); font-size: 11px; }
.topbar-label { color: #77828a; font-size: 11px; font-weight: 600; }

main { width: min(1120px, calc(100% - 64px)); margin: 0 auto; padding: 42px 0 64px; }
.workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.eyebrow { margin: 0 0 10px; color: #68767d; font-size: 10px; font-weight: 700; }
h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.search-field { display: flex; align-items: center; gap: 10px; width: 264px; flex: 0 0 264px; min-height: 42px; padding: 0 12px; border: 1px solid #dce2e5; border-radius: 6px; background: #fff; }
.search-field:focus-within { outline: 2px solid #356dce; outline-offset: 2px; }
.search-field img { opacity: .48; flex: none; }
.search-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 10px 0; font-size: 13px; }
.search-field input::placeholder { color: #77838c; }
.tool-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid #dce3e6; margin-bottom: 24px; }
.filters { display: flex; align-items: stretch; gap: 26px; min-width: 0; }
.filter-button { position: relative; flex: none; min-height: 46px; border: 0; padding: 8px 2px 15px; color: #657078; background: transparent; font-size: 13px; white-space: nowrap; }
.filter-button:hover { color: #1e272d; }
.filter-button[aria-pressed="true"] { color: #202b31; font-weight: 700; }
.filter-button[aria-pressed="true"]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: #243d43; border-radius: 2px 2px 0 0; }
.tool-count { flex: none; font-size: 11px; color: #78838b; font-variant-numeric: tabular-nums; padding-bottom: 7px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tool-card { --accent: #246c54; --tint: #eaf4ed; position: relative; min-width: 0; background: #fff; border: 1px solid #dee5e7; border-radius: 8px; box-shadow: 0 3px 8px #172f3a03; transition: border-color .16s, box-shadow .16s, transform .16s; }
.tool-card[data-accent="red"] { --accent: #d73548; --tint: #fff0f1; }
.tool-card[data-accent="teal"] { --accent: #16827e; --tint: #e9f5f4; }
.tool-card[data-accent="blue"] { --accent: #376cc4; --tint: #edf3ff; }
.tool-card[data-accent="gold"] { --accent: #916109; --tint: #fff4d9; }
.tool-card:hover { border-color: var(--accent); box-shadow: 0 8px 24px #1f353a0b; transform: translateY(-2px); }
.tool-card:focus-within { border-color: var(--accent); }
.tool-card-body { display: flex; flex-direction: column; height: 100%; padding: 24px 24px 0; }
.tool-card-head { display: flex; align-items: center; gap: 16px; min-height: 54px; }
.tool-icon { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; background: var(--tint); color: var(--accent); border-radius: 8px; }
.tool-icon > span { display: block; width: 25px; height: 25px; background: currentColor; mask: var(--icon) center / contain no-repeat; }
.tool-title-wrap { min-width: 0; }
.tool-kicker { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.tool-card h2 { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.tool-copy { margin: 20px 0 24px; color: #66747d; font-size: 13px; line-height: 1.9; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; margin-top: auto; border-top: 1px solid #edf0f1; }
.category-badge { font-size: 10px; font-weight: 600; color: #839098; }
.tool-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--accent); }
.tool-link img { width: 18px; height: 18px; opacity: .6; transition: transform .16s; }
.tool-link::after { content: ""; position: absolute; inset: 0; border-radius: 8px; }
.tool-link:focus-visible { outline: none; }
.tool-link:focus-visible::after { outline: 3px solid #356dce; outline-offset: 3px; }
.tool-card:hover .tool-link img { transform: translate(2px, -2px); }
.tool-note { margin: 0 0 16px; font-size: 12px; line-height: 1.7; }
.empty-state { grid-column: 1 / -1; padding: 72px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.noscript-links { display: grid; gap: 16px; padding: 24px 0; }
.noscript-links a { text-decoration: underline; }
.launch-command { position: relative; z-index: 2; padding: 12px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 6px; font-size: 12px; }
.launch-command-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.launch-command code { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.copy-command { border: 1px solid var(--line); padding: 8px; background: #fff; border-radius: 4px; }

.site-switcher { position: relative; flex: none; z-index: 30; }
.site-menu-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 40px; padding: 0 13px; border: 1px solid #26343d; border-radius: 22px; background: #26343d; color: #fff; font-size: 12px; font-weight: 600; }
.site-menu-button::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid #d9e3e8; border-bottom: 1.5px solid #d9e3e8; transform: translateY(-2px) rotate(45deg); margin-left: 1px; }
.site-menu-button[aria-expanded="true"]::after { transform: translateY(2px) rotate(225deg); }
.switcher-grid { display: grid; grid-template-columns: repeat(2, 6px); grid-auto-rows: 6px; gap: 3px; }
.switcher-grid i { background: #ed5160; border-radius: 2px; }
.switcher-grid i:nth-child(2) { background: #37af91; }
.switcher-grid i:nth-child(3) { background: #6a96ff; }
.switcher-grid i:nth-child(4) { background: #e5b344; }
.site-menu-panel { position: absolute; top: calc(100% + 10px); left: 0; width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 86px); overflow-y: auto; background: #fff; padding: 10px; border: 1px solid #dce3e8; border-radius: 8px; box-shadow: 0 18px 48px #27384024; }
.site-menu-head { display: grid; gap: 3px; padding: 12px; margin-bottom: 8px; border-radius: 6px; background: #f5f7f8; }
.site-menu-head span { font-size: 10px; font-weight: 700; color: #6d7b85; text-transform: uppercase; }
.site-menu-head strong { font-size: 13px; }
.site-menu-panel > a { display: flex; align-items: center; gap: 14px; padding: 10px; min-height: 64px; border: 1px solid transparent; border-radius: 6px; }
.site-menu-panel > a:hover, .site-menu-panel > a[aria-current="page"] { background: #f5f8fa; border-color: #e1e9ee; }
.site-menu-mark { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border-radius: 7px; font-size: 10px; font-weight: 800; background: #f0f3f5; color: #3f4e59; }
.site-menu-mark.watch { background: #eaf4ed; color: #246c54; }
.site-menu-mark.upload { background: #fff0f1; color: #d73548; }
.site-menu-mark.article { background: #e9f5f4; color: #16827e; }
.site-menu-mark.scale { background: #edf3ff; color: #376cc4; }
.site-menu-copy { display: grid; gap: 4px; min-width: 0; }
.site-menu-copy strong { font-size: 13px; font-weight: 600; }
.site-menu-copy em { color: #6a7883; font-size: 11px; font-style: normal; }

@media (max-width: 960px) {
  .workspace-head { align-items: flex-start; flex-direction: column; gap: 20px; }
  .search-field { flex: none; width: 100%; max-width: 360px; }
  .tool-card h2 { font-size: 19px; }
  .tool-card-body { padding: 20px 20px 0; }
  .tool-card-head { gap: 12px; }
}
@media (max-width: 680px) {
  .topbar { min-height: 68px; padding: 12px 16px; }
  .topbar-left { gap: 20px; }
  .topbar-label { display: none; }
  main { width: calc(100% - 32px); padding: 30px 0 40px; }
  .workspace-head { margin-bottom: 18px; }
  h1 { font-size: 23px; line-height: 1.5; }
  .eyebrow { margin-bottom: 8px; }
  .search-field { max-width: none; }
  .tool-controls { gap: 0; margin-bottom: 20px; }
  .filters { width: 100%; gap: 0; justify-content: space-between; overflow-x: auto; overflow-y: hidden; }
  .filter-button { font-size: 11px; padding-right: 4px; padding-left: 4px; }
  .tool-count { display: none; }
  .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tool-card h2 { font-size: 20px; }
  .tool-card-body { padding: 20px 20px 0; }
  .tool-copy { margin: 16px 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .tool-card, .tool-link img { transition: none; transform: none !important; }
}

/* The portal shell is intentionally separate from the shared app menu. */
:root { --page: #f6f7f9; --ink: #25272d; font-family: "Segoe UI", "Yu Gothic", Meiryo, sans-serif; }
.topbar { min-height: 72px; padding: 12px 28px; gap: 20px; }
.topbar-left { gap: 24px; }
.brand { padding-left: 22px; border-left: 1px solid var(--line); }
.account-slot { min-width: 0; max-width: 420px; }
.account-slot .team-login-account { padding: 0; border: 0; background: transparent; gap: 16px; font-family: inherit; }
.account-slot .team-login-account span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-slot .team-login-account button { text-decoration: none; border: 1px solid #dfe2e7; border-radius: 6px; padding: 6px 12px; color: #565d65; font-size: 12px; }
.workspace-shell { display: grid; grid-template-columns: 208px minmax(0,1fr); min-height: calc(100dvh - 72px); }
.workspace-sidebar { display: flex; flex-direction: column; padding: 32px 16px 24px; background: #fff; border-right: 1px solid var(--line); }
.sidebar-label { margin: 0 12px 20px; font-size: 10px; font-weight: 700; color: #92969e; }
.filters { display: flex; flex-direction: column; gap: 7px; }
.filter-button { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 6px; font-size: 13px; text-align: left; }
.filter-button::before { content: ""; width: 17px; height: 17px; flex: none; background: currentColor; mask: var(--category-icon) center/contain no-repeat; opacity: .8; }
.filter-count { margin-left: auto; color: #a2a6ae; font-size: 11px; font-variant-numeric: tabular-nums; }
.filter-button:hover { background: #f5f6f8; }
.filter-button[aria-pressed="true"] { color: #c73747; background: #fcedef; }
.filter-button[aria-pressed="true"]::after { display: none; }
.filter-button[aria-pressed="true"] .filter-count { color: #c73747; }
.sidebar-signature { display: grid; gap: 6px; margin: auto 12px 0; padding-top: 64px; color: #a3a6ae; }
.sidebar-signature strong { color: #6c717b; font-size: 15px; }
.sidebar-signature span { font-size: 9px; }
.workspace-shell main { width: 100%; max-width: 1460px; padding: 38px 40px 56px; margin: 0 auto; min-width: 0; }
.workspace-head { align-items: center; margin-bottom: 32px; gap: 24px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: #a45962; font-size: 10px; margin-bottom: 9px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 1px; background: #e54757; }
h1 { font-size: 27px; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.search-field { width: 240px; flex-basis: 240px; border-color: #e0e3e8; box-shadow: 0 2px 4px #24283303; }
.tool-controls { border: 0; margin-bottom: 16px; }
.tool-controls h2 { font-size: 14px; margin: 0; font-weight: 700; }
.tool-count { padding: 0; font-size: 12px; color: #868c94; }
.tool-grid { grid-template-columns: repeat(6,minmax(0,1fr)); gap: 18px; }
.tool-card { grid-column: span 2; min-height: 226px; border-color: #e1e4e9; box-shadow: 0 3px 8px #1e263a03; overflow: visible; }
.tool-grid[data-filtered="false"] .tool-card:nth-child(-n+2) { grid-column: span 3; min-height: 235px; }
.tool-grid[data-filtered="false"] .tool-card:nth-child(1) { background: #fffcf5; border-color: #eadfc3; }
.tool-grid[data-filtered="false"] .tool-card:nth-child(2) { background: #f5faf7; border-color: #d4e7dc; }
.tool-card-body { padding: 24px 24px 0; }
.tool-card-head { align-items: flex-start; flex-direction: column; gap: 16px; }
.tool-grid[data-filtered="false"] .tool-card:nth-child(-n+2) .tool-card-head { flex-direction: row; align-items: center; }
.tool-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 8px; }
.tool-icon > span { width: 23px; height: 23px; }
.tool-kicker { font-size: 11px; color: #868b94; margin-bottom: 6px; }
.tool-card h2 { font-size: 19px; line-height: 1.55; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.tool-grid[data-filtered="false"] .tool-card:nth-child(-n+2) h2 { font-size: 22px; }
.tool-copy { margin: 16px 0 20px; font-size: 12px; line-height: 1.9; color: #6c7580; }
.card-actions { min-height: 54px; border-color: #2428330c; }
.category-badge { font-size: 9px; color: #9298a0; }
.tool-link { gap: 9px; font-size: 12px; }
.tool-link img { width: 17px; height: 17px; }
.tool-card:hover { box-shadow: 0 10px 26px #2935430d; }
.tool-grid { display: flex; flex-direction: column; gap: 30px; }
.platform-section { min-width: 0; }
.platform-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 13px; font-size: 18px; }
.platform-heading::before { content: ""; width: 4px; height: 19px; background: #d83d50; border-radius: 2px; }
.platform-section[data-platform="X"] .platform-heading::before { background: #262a30; }
.platform-section[data-platform="共通ツール"] .platform-heading::before { background: #16827e; }
.platform-heading span { color: #7b828c; font-size: 11px; font-weight: 400; }
.platform-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.platform-grid .tool-card, .tool-grid[data-filtered="false"] .platform-grid .tool-card { grid-column: auto; min-height: 220px; background: #fff; border-color: #e1e4e9; }
.platform-grid .tool-card-head, .tool-grid[data-filtered="false"] .platform-grid .tool-card-head { flex-direction: row; align-items: flex-start; gap: 12px; }
.platform-grid .tool-card-body { padding: 22px 20px 0; }
.tool-card h3 { margin: 0; font-size: 17px; line-height: 1.6; word-break: keep-all; overflow-wrap: anywhere; text-wrap: balance; }
.tool-title-wrap { min-width: 0; }
.platform-grid .tool-copy { flex: 1; }
@media (max-width: 1280px) { .platform-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 760px) { .platform-grid { grid-template-columns: minmax(0,1fr); } .platform-grid .tool-card, .tool-grid[data-filtered="false"] .platform-grid .tool-card { min-height: 0; } }
@media (max-width: 1200px) {
  .workspace-shell { grid-template-columns: 184px minmax(0,1fr); }
  .workspace-shell main { padding: 28px 28px 48px; }
  .workspace-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .search-field { flex: none; width: 100%; max-width: none; }
  .tool-card, .tool-grid[data-filtered="false"] .tool-card:nth-child(-n+2) { grid-column: span 3; }
  .tool-card-head { flex-direction: row; align-items: center; }
  .tool-card h2, .tool-grid[data-filtered="false"] .tool-card:nth-child(-n+2) h2 { font-size: 19px; }
}
@media (max-width: 760px) {
  .topbar { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .topbar-left { gap: 16px; }
  .brand { padding-left: 16px; }
  .account-slot { margin-left: auto; max-width: 100%; }
  .account-slot .team-login-account span { max-width: 200px; }
  .workspace-shell { display: block; }
  .workspace-sidebar { padding: 12px 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-label, .sidebar-signature { display: none; }
  .filters { flex-direction: row; width: 100%; overflow: auto; gap: 10px; justify-content: flex-start; padding-bottom: 12px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filter-button { min-height: 36px; padding: 8px 10px; font-size: 12px; gap: 7px; }
  .filter-button::before { width: 14px; height: 14px; }
  .filter-count { display: none; }
  .workspace-shell main { padding: 24px 16px 36px; }
  .workspace-head { margin-bottom: 24px; }
  h1 { font-size: 23px; }
  .tool-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .tool-card, .tool-grid[data-filtered="false"] .tool-card:nth-child(-n+2) { grid-column: auto; min-height: 0; }
  .tool-card-body { padding: 20px 20px 0; }
  .tool-card-head { gap: 12px; }
  .tool-card h2, .tool-grid[data-filtered="false"] .tool-card:nth-child(-n+2) h2 { font-size: 19px; }
  .tool-count { display: inline; }
}
