:root {
  --ink: #33333b;
  --muted: #575764;
  --canvas: #f5f5fa;
  --focus: #2456aa;
  font-family: 'Inter', 'Noto Sans JP', 'Hiragino Sans', 'Yu Gothic', system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body, h1, h2, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.skip {
  position: absolute;
  z-index: 3;
  padding: .65rem 1rem;
  clip-path: inset(50%);
  background: white;
}
.skip:focus-visible { clip-path: none; }
header { background: white; box-shadow: 0 2px 7px #24243712; }
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
  padding: 0 clamp(16px, 3vw, 36px);
}
.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #202027;
  font-size: 1.68rem;
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: 1;
  border-radius: 5px;
}
.mark { position: relative; width: 27px; height: 27px; margin-right: 8px; }
.mark i {
  position: absolute;
  top: 2px;
  left: 1px;
  width: 11px;
  height: 23px;
  border-radius: 3px;
  background: #397de7;
  transform: rotate(26deg);
  opacity: .38;
}
.mark i:nth-child(2) { left: 7px; opacity: .72; }
.mark i:nth-child(3) { left: 13px; opacity: 1; }
.languages { position: relative; font-size: .93rem; }
.languages summary {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 42px;
  padding: 0 .85rem;
  border-radius: 6px;
  list-style: none;
  cursor: pointer;
}
.languages summary::-webkit-details-marker { display: none; }
.languages summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.languages[open] summary::after { transform: translateY(2px) rotate(225deg); }
.languages nav {
  position: absolute;
  z-index: 2;
  top: calc(100% + 5px);
  right: 0;
  width: min(200px, calc(100vw - 32px));
  background: white;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 6px 30px #24243729;
}
.languages nav a { display: block; padding: .5rem .75rem; border-radius: 6px; }
.languages summary:hover, .languages nav a:hover { background: var(--canvas); }
.languages a[aria-current] { background: #ebf3ff; color: var(--focus); font-weight: 650; }
main {
  width: min(100%, 1080px);
  margin-inline: auto;
  padding: clamp(30px, 5vw, 68px) clamp(16px, 3vw, 32px) 3rem;
}
h1 { font-size: clamp(2rem, 4.1vw, 3.15rem); line-height: 1.16; letter-spacing: -.04em; }
.intro { max-width: 62ch; margin-top: .8rem; color: var(--muted); line-height: 1.65; }
.catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  align-items: start;
  gap: clamp(18px, 2vw, 24px);
  margin-top: clamp(28px, 4vw, 44px);
}
.category { --accent: #2456aa; --hover: #eef5ff; min-width: 0; }
.category.pdf { --accent: #b2221d; --hover: #fff2f0; }
.category.video { --accent: #5b21b6; --hover: #f5f0ff; }
.category.diagram { --accent: #075c41; --hover: #ecf8f2; }
.category h2 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -.04em; }
.category h2 a { display: inline-block; padding: 6px 2px; border-radius: 5px; }
.category h2 b { color: var(--accent); font-weight: 650; }
.category h2 span { margin-left: .25rem; color: var(--accent); font-weight: 500; }
.category h2 a:hover { text-decoration: underline; text-underline-offset: .18em; }
.tools { display: grid; gap: 8px; padding: 0; margin-top: 8px; list-style: none; }
.tools a {
  display: grid;
  gap: 4px;
  padding: .9rem 1.05rem;
  border-radius: 10px;
  background: white;
  overflow-wrap: anywhere;
}
.tools a:hover { background: var(--hover); }
.tools strong { font-size: 1.03rem; font-weight: 680; }
.tools a:hover strong { color: var(--accent); }
.tools span { color: var(--muted); font-size: .9rem; line-height: 1.55; }
.about { max-width: 62ch; margin-top: clamp(32px, 5vw, 52px); }
.about h2 { font-size: 1.25rem; }
.about p { margin-top: .5rem; color: var(--muted); line-height: 1.7; }
footer { padding: 1.2rem clamp(16px, 3vw, 32px) 2rem; color: var(--muted); font-size: .85rem; text-align: center; }
@media (max-width: 650px) {
  .catalogue { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
