:root {
  color-scheme: light;
  --ink: #172029;
  --muted: #617180;
  --line: #d9e1e8;
  --page: #f6f8f9;
  --panel: #ffffff;
  --accent: #087f7a;
  font-family: "Segoe UI", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.home-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.home-header {
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.home-header p:last-child,
.tool-card p {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.search-box {
  width: min(340px, 100%);
}

.search-box input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tool-card {
  min-height: 230px;
  display: grid;
  grid-template-rows: 1fr auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

.tool-body {
  padding: 20px 20px 16px;
}

.tool-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}

.tag {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 6px;
  background: #eef3f5;
  color: #4c5c69;
  font-size: 12px;
  font-weight: 800;
}

.tool-card h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.tool-action {
  min-height: 44px;
  margin: 0 20px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
}

.tool-action:hover {
  background: #273442;
}

.home-content {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.home-content p {
  max-width: 840px;
  color: var(--muted);
  line-height: 1.9;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 680px) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
