:root {
  --orange: #ff6b1a;
  --blue: #0066ff;
  --yellow: #ffe14d;
  --green: #2f6f4e;
  --black: #171717;
  --white: #fffdf4;
  --cream: #fff3d1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background:
    radial-gradient(circle at 20% 10%, #ffe14d 0 12%, transparent 13%),
    radial-gradient(circle at 90% 20%, #ff8d3a 0 10%, transparent 11%),
    linear-gradient(135deg, #fff3d1 0%, #f7f3e8 45%, #dcecff 100%);
  color: var(--black);
}

/* 上部ナビ */
.site-header {
  width: 100%;
  padding: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.top-nav {
  max-width: 1100px;
  margin: auto;
  background: var(--black);
  border: 3px solid var(--black);
  border-radius: 999px;
  padding: 8px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  box-shadow: 6px 6px 0 var(--orange);
}

.top-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 8px 14px;
  border-radius: 999px;
}

.top-nav a:hover {
  background: var(--yellow);
  color: var(--black);
}

/* ヒーロー */
.hero {
  max-width: 1100px;
  margin: 24px auto 32px;
  padding: 28px;
  position: relative;
}

.hero-inner {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 107, 26, 0.95), rgba(255, 225, 77, 0.9)),
    repeating-linear-gradient(
      -10deg,
      transparent 0 14px,
      rgba(255, 255, 255, 0.25) 14px 20px
    );
  border: 4px solid var(--black);
  border-radius: 32px;
  padding: 48px 32px;
  box-shadow: 12px 12px 0 var(--blue);
}

.hero-inner::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 28px solid var(--blue);
  opacity: 0.8;
}

.hero-bg-text {
  position: absolute;
  top: -18px;
  left: 32px;
  font-size: clamp(48px, 12vw, 160px);
  font-weight: 1000;
  letter-spacing: -0.08em;
  color: rgba(0, 102, 255, 0.14);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 8px 14px;
  background: var(--blue);
  color: white;
  font-weight: 1000;
  letter-spacing: 0.12em;
  border: 3px solid var(--black);
  border-radius: 999px;
  box-shadow: 4px 4px 0 var(--black);
}

h1 {
  margin: 0;
  font-size: clamp(48px, 10vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  font-weight: 1000;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-tags span {
  background: var(--white);
  border: 3px solid var(--black);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 1000;
  box-shadow: 4px 4px 0 var(--black);
}

/* メイン */
main {
  max-width: 1100px;
  margin: auto;
  padding: 24px;
}

.info-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 4px solid var(--black);
  background: var(--blue);
  color: white;
  margin-bottom: 24px;
  box-shadow: 8px 8px 0 var(--orange);
}

.info-strip p {
  margin: 0;
  padding: 16px 12px;
  text-align: center;
  font-weight: 1000;
  letter-spacing: 0.08em;
  border-right: 3px solid var(--black);
}

.info-strip p:last-child {
  border-right: none;
}

/* 検索エリア */
.controls {
  background: var(--white);
  border: 4px solid var(--black);
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 8px 8px 0 var(--yellow);
}

.section-label {
  margin: 0;
  color: var(--orange);
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.controls h2 {
  margin: 4px 0 20px;
  font-size: clamp(28px, 5vw, 48px);
  letter-spacing: -0.06em;
}

.controls label {
  display: grid;
  gap: 8px;
  font-weight: 1000;
}

input {
  width: 100%;
  font: inherit;
  padding: 14px 16px;
  border: 3px solid var(--black);
  border-radius: 16px;
  background: #fff;
  outline: none;
  box-shadow: 4px 4px 0 var(--black);
}

input:focus {
  background: #fffbe0;
  box-shadow: 4px 4px 0 var(--orange);
}

/* カテゴリーボタン */
.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

button {
  padding: 10px 16px;
  border: 3px solid var(--black);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-weight: 1000;
  box-shadow: 4px 4px 0 var(--black);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}

button.active {
  background: var(--orange);
  color: white;
}

.count {
  display: inline-block;
  margin: 0 0 18px;
  padding: 10px 16px;
  background: var(--black);
  color: white;
  border-radius: 999px;
  font-weight: 900;
}

/* カード */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  overflow: hidden;
  background: white;
  border: 4px solid var(--black);
  border-radius: 24px;
  box-shadow: 8px 8px 0 var(--blue);
  transition: transform 0.18s, box-shadow 0.18s;
}

.card:hover {
  transform: translate(-4px, -4px) rotate(-1deg);
  box-shadow: 12px 12px 0 var(--orange);
}

.card::before {
  content: attr(data-number);
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: var(--yellow);
  border: 3px solid var(--black);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 1000;
  box-shadow: 3px 3px 0 var(--black);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  background: #ddd;
  border-bottom: 4px solid var(--black);
}

.no-image {
  height: 190px;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(
      -20deg,
      var(--cream) 0 16px,
      #ffd48a 16px 32px
    );
  border-bottom: 4px solid var(--black);
  font-size: 40px;
  font-weight: 1000;
}

.card-body {
  padding: 18px;
}

.category {
  display: inline-block;
  margin: 0 0 10px;
  color: white;
  background: var(--green);
  border: 3px solid var(--black);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 1000;
}

.card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.card p {
  line-height: 1.7;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.links a {
  display: inline-block;
  color: var(--black);
  background: var(--yellow);
  border: 3px solid var(--black);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 1000;
  box-shadow: 3px 3px 0 var(--black);
}

.links a:hover {
  background: var(--orange);
  color: white;
}

.empty {
  background: white;
  border: 4px solid var(--black);
  border-radius: 24px;
  padding: 24px;
  font-weight: 900;
  box-shadow: 8px 8px 0 var(--orange);
}

.footer {
  max-width: 1100px;
  margin: 48px auto 24px;
  padding: 24px;
  text-align: center;
}

.footer p {
  margin: 0;
  font-size: 32px;
  font-weight: 1000;
  letter-spacing: -0.06em;
}

.footer small {
  font-weight: 700;
}

/* スマホ対応 */
@media (max-width: 700px) {
  .hero,
  main {
    padding: 16px;
  }

  .hero-inner {
    padding: 36px 22px;
    border-radius: 24px;
    box-shadow: 7px 7px 0 var(--blue);
  }

  .info-strip {
    grid-template-columns: 1fr 1fr;
  }

  .info-strip p {
    border-bottom: 3px solid var(--black);
  }

  .info-strip p:nth-child(2n) {
    border-right: none;
  }

  .top-nav {
    justify-content: flex-start;
  }
}