:root {
  --bg: #f6f4ef;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --ink: #171412;
  --ink-soft: #6d665d;
  --line: rgba(23, 20, 18, 0.08);
  --line-strong: rgba(23, 20, 18, 0.14);
  --shadow: 0 18px 60px rgba(41, 33, 24, 0.08);
  --max-width: 1380px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 16%, rgba(255, 255, 255, 0.78), transparent 24%),
    radial-gradient(circle at 85% 18%, rgba(224, 234, 229, 0.72), transparent 24%),
    linear-gradient(180deg, #fbfaf7 0%, #f4f1eb 100%);
}

img {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
  color: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(23, 20, 18, 0.18);
  outline-offset: 3px;
}

.page-shell {
  width: min(calc(100% - 28px), var(--max-width));
  margin: 0 auto;
  padding: 20px 0 56px;
}

.site-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.language-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.language-pill:hover {
  border-color: var(--line-strong);
}

.language-pill-current {
  color: var(--ink);
  font-weight: 600;
}

.language-pill-separator {
  opacity: 0.34;
}

.language-pill-next {
  opacity: 0.72;
}

.hero-shell {
  padding: 56px 0 26px;
}

.hero-line {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.6rem, 3.35vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.hero-credit {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.5;
}

.hero-credit a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(23, 20, 18, 0.18);
  text-underline-offset: 0.2em;
}

.site-legal {
  margin-top: 32px;
  text-align: center;
}

.site-legal-line {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.72rem;
  line-height: 1.5;
  opacity: 0.56;
}

.site-legal-line a {
  color: inherit;
  text-decoration: none;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.case-card {
  grid-column: span 4;
}

.case-card:nth-child(8n + 1),
.case-card:nth-child(8n + 6) {
  grid-column: span 5;
}

.case-card-hitarea {
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.case-cover-frame {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.case-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  image-rendering: auto;
  transition: transform 220ms ease;
}

.case-meta {
  padding: 12px 4px 0;
}

.case-actions {
  padding: 8px 4px 0;
}

.case-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.case-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.case-tag {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface-strong);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.prompt-chip {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0.78;
}

.prompt-chip:hover {
  opacity: 1;
  border-color: var(--line-strong);
}

.case-card:hover .case-cover,
.case-card:focus-within .case-cover {
  transform: scale(1.018);
}

@media (max-width: 1040px) {
  .hero-shell {
    padding: 48px 0 22px;
  }

  .case-card,
  .case-card:nth-child(8n + 1),
  .case-card:nth-child(8n + 6) {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding: 16px 0 40px;
  }

  .site-topbar {
    gap: 12px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .language-pill {
    min-height: 34px;
    padding: 0 11px;
  }

  .hero-shell {
    padding: 40px 0 18px;
  }

  .case-grid {
    gap: 14px;
  }

  .case-card,
  .case-card:nth-child(8n + 1),
  .case-card:nth-child(8n + 6) {
    grid-column: span 12;
  }

  .case-title {
    font-size: 0.94rem;
  }
}
