:root {
  color-scheme: light;
  --navy: #1f2e55;
  --ink: #192642;
  --muted: #55647b;
  --line: #dce4ef;
  --canvas: #f5f7fb;
  --white: #fff;
  --sidebar-width: 224px;
  font: 16px/1.55 "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
}
* { box-sizing: border-box; }
body { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-width: 280px; min-height: 100vh; margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #326ac6; outline-offset: 3px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 5; top: 10px; left: 12px; padding: 8px 14px; background: var(--white); border-radius: 6px; }
.sidebar { position: sticky; top: 0; align-self: start; display: flex; flex-direction: column; gap: 34px; height: 100dvh; overflow-y: auto; padding: 29px 15px 20px; background: var(--white); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; margin-inline: 8px; width: fit-content; color: var(--navy); font-size: .875rem; font-weight: 800; white-space: nowrap; }
.brand img { display: block; object-fit: contain; }
.brand span { border-left: 1px solid var(--line); padding-left: 12px; }
.nav-label { margin: 0 0 10px 12px; color: var(--muted); font-size: .8125rem; font-weight: 700; letter-spacing: .06em; }
.filters { display: grid; gap: 5px; }
.filter { display: flex; align-items: center; gap: 11px; min-height: 46px; border: 1px solid transparent; border-radius: 9px; padding: 7px 11px; background: transparent; color: var(--muted); font-size: .925rem; font-weight: 700; text-align: left; white-space: nowrap; }
.filter:hover { background: #f0f4fa; color: var(--navy); }
.filter[aria-pressed="true"] { color: var(--navy); background: #e9effb; border-color: #dce6fa; }
.filter-icon { width: 19px; height: 19px; flex: 0 0 19px; background: currentColor; mask: var(--icon) center / contain no-repeat; }
.filter-icon.grid-icon { mask: none; background: linear-gradient(currentColor 0 0) 3px 3px / 5px 5px, linear-gradient(currentColor 0 0) 11px 3px / 5px 5px, linear-gradient(currentColor 0 0) 3px 11px / 5px 5px, linear-gradient(currentColor 0 0) 11px 11px / 5px 5px; background-repeat: no-repeat; }
.sidebar-footer { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.shell { width: 100%; max-width: 1450px; padding: 28px clamp(20px, 3.2vw, 48px) 64px; margin-inline: auto; }
.hero { position: relative; isolation: isolate; display: flex; align-items: center; overflow: hidden; min-height: 246px; padding: 30px clamp(23px, 4vw, 52px); border-radius: 22px; color: var(--white); background: radial-gradient(ellipse at 91% 3%, #405fad 0%, transparent 54%), linear-gradient(111deg, #18284e 4%, #1f2e55 54%, #2f477f 100%); }
.hero-content { z-index: 1; width: min(100%, 460px); }
.hero h1 { margin: 0; font-size: clamp(2.1rem, 4.2vw, 3.5rem); letter-spacing: .03em; line-height: 1.18; font-weight: 850; }
.hero-description { margin: 11px 0 23px; font-size: 1rem; color: #edf1fa; }
.search { position: relative; display: flex; align-items: center; width: 100%; color: var(--muted); }
.search input { width: 100%; min-height: 52px; padding: 9px 44px; background: #fff; border: 1px solid transparent; border-radius: 10px; color: var(--ink); box-shadow: 0 7px 24px #10234f44; font-size: 1rem; }
.search input::placeholder { opacity: 1; color: var(--muted); }
.search input::-webkit-search-cancel-button { appearance: none; }
.search input:focus-visible { outline-color: #b6ceff; }
.magnifier { position: absolute; left: 17px; width: 14px; height: 14px; border: 1.8px solid currentColor; border-radius: 50%; pointer-events: none; transform: translateY(-1px); }
.magnifier::after { content: ""; position: absolute; top: 10px; left: 8px; width: 7px; height: 1.8px; background: currentColor; transform: rotate(45deg); }
.search-key, .search-clear { position: absolute; right: 12px; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: #f5f7fb; }
.search-key { font: 600 .875rem/1 ui-monospace, monospace; }
.search-clear { width: 34px; height: 34px; right: 8px; border-color: transparent; background: transparent; font-size: 1.4rem; line-height: 1; }
.search-clear:hover { color: var(--navy); background: #edf2fb; }
.architecture { pointer-events: none; position: absolute; inset: 0 0 0 43%; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 36%); }
.architecture::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 37px, #dbe7ff13 37px 38px), repeating-linear-gradient(0deg, transparent 0 37px, #dbe7ff13 37px 38px); }
.facade { position: absolute; display: block; inset-block-start: 10%; height: 145%; border: 1px solid #dbe7ff75; background-image: repeating-linear-gradient(90deg, transparent 0 26px, #bfcefa45 26px 27px), repeating-linear-gradient(0deg, transparent 0 24px, #bfcefa45 24px 25px); }
.facade-left { width: 34%; right: 32%; transform: skewY(-24deg); background-color: #6988cb3b; }
.facade-right { width: 26%; right: 6%; transform: skewY(24deg); background-color: #1f2e556e; }
.facade-top { width: 19%; height: 130%; top: 54%; right: 48%; transform: skewY(23deg); border-top-color: #e0b757cc; background-color: #6685bd38; }
.tools { margin-top: 28px; scroll-margin-top: 12px; }
.tools-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.tools-heading h2 { margin: 0; letter-spacing: .02em; font-size: clamp(1.4rem, 2.7vw, 1.8rem); line-height: 1.3; }
#result-count { margin: 0; color: var(--muted); font-size: .875rem; white-space: nowrap; }
.tool-group { --accent: #4268a7; margin-bottom: 28px; }
.tool-group + .tool-group { border-top: 1px solid var(--line); padding-top: 21px; }
.tool-group[data-category="sale"] { --accent: #9c6d08; }
.tool-group[data-category="shared"] { --accent: #33776b; }
.group-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 11px; }
.group-heading::before { content: ""; width: 4px; height: 19px; border-radius: 3px; background: var(--accent); }
.group-heading h3 { margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: .025em; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tool-type { min-width: 0; }
.tool-surface { height: 100%; border: 1px solid var(--line); background: var(--white); border-radius: 15px; box-shadow: 0 2px 5px #19264205; }
.tool-type:has(.tool-button:focus-visible) .tool-surface { border-color: #a6b9dd; box-shadow: 0 4px 12px #1f2e5514; }
.type-heading { display: flex; align-items: center; gap: 10px; min-height: 50px; margin: 0; padding: 11px 12px 5px; color: var(--navy); font-size: .975rem; font-weight: 800; line-height: 1.35; }
.tool-icon { display: grid; flex: 0 0 34px; place-items: center; height: 34px; color: #3c5d9c; background: #ecf2fe; border-radius: 10px; }
.tool-type[data-icon="mail"] .tool-icon { color: #665097; background: #f0ecf9; }
.tool-type[data-icon="document"] .tool-icon { color: #906313; background: #faf1df; }
.tool-type[data-icon="house"] .tool-icon, .tool-type[data-icon="compare"] .tool-icon { color: #306f65; background: #e7f3f0; }
.tool-icon::before { content: ""; width: 20px; height: 20px; background: currentColor; mask: var(--icon) center / contain no-repeat; }
.tool-list { list-style: none; margin: 0; padding: 3px 8px 9px; }
.tool-list li + li { border-top: 1px solid #edf0f5; }
.tool-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 41px; padding: 7px 7px 7px 11px; border: 0; border-radius: 7px; text-align: left; background: transparent; font-size: .925rem; line-height: 1.45; overflow-wrap: anywhere; }
.tool-button::before { content: ""; flex: 0 0 5px; height: 5px; border: 1px solid #7485a4; border-radius: 50%; }
.tool-button:focus-visible, .tool-button:active { background: #edf3fd; color: #1e4c8b; }
.tool-button:focus-visible { outline-offset: -2px; }
@media (hover: hover) and (pointer: fine) {
  .tool-type:hover .tool-surface { border-color: #a6b9dd; box-shadow: 0 8px 20px #1f2e5524; }
  .tool-button:hover { background: #edf3fd; color: #1e4c8b; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .tool-surface { transition: transform .16s ease-out, box-shadow .16s ease-out, border-color .16s ease-out; }
  .tool-type:hover .tool-surface { transform: translateY(-4px); }
}
.empty { display: grid; justify-items: center; gap: 10px; padding: 34px 20px; text-align: center; color: var(--muted); border: 1px dashed #c4d2e7; border-radius: 14px; background: var(--white); }
.empty p { margin: 0; }
.empty button { color: var(--navy); font-weight: 700; border: 1px solid var(--line); border-radius: 8px; padding: 7px 13px; background: #eef3fc; }
.toast { position: fixed; z-index: 2; right: 24px; bottom: 24px; max-width: calc(100% - 48px); border-radius: 11px; color: var(--white); background: var(--navy); padding: 12px 17px; box-shadow: 0 8px 25px #16234240; pointer-events: none; }
.toast:empty { visibility: hidden; }
@media (max-width: 1150px) {
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 810px) {
  body { display: block; }
  .sidebar { position: static; height: auto; gap: 12px; overflow: visible; padding: 13px 16px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { margin: 0; }
  .nav-label, .sidebar-footer { display: none; }
  .filters { display: flex; flex-wrap: wrap; gap: 5px; }
  .filter { gap: 7px; min-height: 40px; padding: 6px 9px; font-size: .875rem; }
  .filter-icon { transform: scale(.9); }
  .shell { padding: 17px 16px 40px; }
  .hero { min-height: 212px; border-radius: 16px; padding-block: 23px; }
}
@media (max-width: 520px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .tool-button { min-height: 44px; }
  .architecture { opacity: .42; }
}
@media (pointer: coarse) {
  .search-key { display: none; }
}
