:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #15202b;
  --muted: #5b6b7c;
  --line: #dfe7ef;
  --accent: #0077ff;
  --accent-2: #18b88a;
  --warn: #a86600;
  --shadow: 0 16px 40px rgba(24, 42, 68, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  padding: 16px 24px;
}

.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
}

.wrap {
  margin: 0 auto;
  max-width: 1160px;
  padding: 56px 24px;
}

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: center;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  margin: 0 0 20px;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
  max-width: 720px;
}

.search-panel,
.tool-panel,
.trust-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel {
  padding: 22px;
}

.search-panel label {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.search-panel input,
.tool-panel textarea,
.tool-panel input,
.tool-panel select {
  background: #fff;
  border: 1px solid #cfd9e4;
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
  width: 100%;
}

.search-panel input:focus,
.tool-panel textarea:focus,
.tool-panel input:focus,
.tool-panel select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.14);
  outline: none;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.ad-slot {
  align-items: center;
  background: #eef3f8;
  border: 1px dashed #c9d5e1;
  border-radius: 8px;
  color: #6a7888;
  display: flex;
  font-size: 13px;
  justify-content: center;
  margin: 28px 0;
  min-height: 84px;
  text-align: center;
}

.privacy-strip {
  background: #ecfff8;
  border: 1px solid #bfeede;
  border-radius: 8px;
  color: #145c48;
  font-weight: 700;
  margin-top: 24px;
  padding: 14px 16px;
}

.meta-list {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.meta-list span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
}

.badge {
  background: #eaf4ff;
  border: 1px solid #cfe6ff;
  border-radius: 999px;
  color: #075fa8;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 10px;
}

.section-head {
  align-items: end;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 52px 0 18px;
}

.section-head h2 {
  font-size: 28px;
  line-height: 1.2;
  margin: 0;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 22px;
  text-decoration: none;
}

.tool-card:hover {
  border-color: #9bcaff;
  transform: translateY(-1px);
}

.tool-card small {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.tool-card h3 {
  font-size: 22px;
  line-height: 1.25;
  margin: 12px 0 8px;
}

.tool-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.tool-card .local {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  margin-top: auto;
}

.tool-card[data-hidden="true"] {
  display: none;
}

.tool-header {
  max-width: 820px;
}

.tool-header h1 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  margin: 0 0 16px;
}

.tool-header p {
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.tool-panel {
  margin-top: 32px;
  padding: 22px;
}

.tool-panel textarea {
  min-height: 260px;
  resize: vertical;
}

.tool-panel select {
  width: auto;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

button,
.button-link {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 16px;
  text-decoration: none;
}

button.secondary {
  background: #e9eef5;
  color: #233449;
}

.status {
  color: var(--muted);
  font-size: 14px;
  min-height: 24px;
}

.status.error {
  color: #b42318;
  font-weight: 700;
}

.two-col {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.trust-panel {
  color: var(--muted);
  margin-top: 28px;
  padding: 18px;
}

.trust-panel strong {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 56px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  padding: 26px 24px;
}

.footer-inner a {
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero,
  .grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
