:root {
  color-scheme: light;
  --ink: #142433;
  --muted: #667585;
  --line: #e4e9ee;
  --soft: #f5f8fa;
  --blue: #086fae;
  --blue-dark: #075786;
  --blue-soft: #eaf5fb;
  --orange: #e9692c;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(25, 55, 78, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(228, 233, 238, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
  max-width: 1120px;
  min-height: 68px;
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.2;
  letter-spacing: 0.08em;
}

.brand strong {
  font-size: 13px;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.company-link {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 100% 0, rgba(8, 111, 174, 0.09), transparent 44%),
    var(--white);
}

.hero-inner,
.content-section {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin-inline: auto;
}

.hero-inner {
  padding: 48px 0 34px;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 9vw, 52px);
  line-height: 1.35;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 680px;
  margin-top: 28px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(8, 111, 174, 0.1);
}

.search-box svg {
  width: 21px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 2;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 16px;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-tabs::-webkit-scrollbar {
  display: none;
}

.filter-button {
  min-height: 40px;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: #455565;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.filter-button.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.content-section {
  padding: 42px 0 10px;
}

.featured-section {
  padding-top: 38px;
}

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

.section-heading h2 {
  margin: 3px 0 0;
  font-size: 22px;
  line-height: 1.35;
}

.section-note,
.result-count {
  color: var(--muted);
  font-size: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.content-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 22px;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 112px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  text-decoration: none;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.content-card:active {
  transform: scale(0.985);
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--blue);
}

.content-card[data-type="manual"] .card-icon {
  background: #f2f0ff;
  color: #6756b3;
}

.content-card[data-type="video"] .card-icon {
  background: #fff0e9;
  color: var(--orange);
}

.card-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.card-body {
  min-width: 0;
  overflow: hidden;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.type-label {
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.new-label {
  padding: 1px 6px;
  border-radius: 999px;
  background: #e9f7ee;
  color: #23804a;
  font-size: 9px;
  font-weight: 800;
}

.content-card h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
}

.content-card p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-arrow {
  color: #9ba7b1;
  font-size: 22px;
}

.empty-state {
  padding: 54px 20px;
  border: 1px dashed #cbd4dc;
  border-radius: 16px;
  text-align: center;
}

.empty-state p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 54px auto 0;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p {
  margin: 0 0 4px;
}

@media (min-width: 700px) {
  .header-inner,
  .hero-inner,
  .content-section,
  .site-footer {
    width: calc(100% - 64px);
  }

  .hero-inner {
    padding: 68px 0 46px;
  }

  .hero h1 br {
    display: none;
  }

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

  .featured-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .content-card:hover {
    transform: translateY(-3px);
    border-color: #cbd9e3;
    box-shadow: var(--shadow);
  }
}

@media (min-width: 1040px) {
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
