:root {
  --bg: #14171d;
  --bg-soft: #1b2028;
  --surface: rgba(28, 33, 42, 0.82);
  --surface-alt: rgba(36, 41, 51, 0.92);
  --text: #f1f3f6;
  --muted: #a8b0bc;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #7a8799;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(122, 135, 153, 0.16), transparent 28%),
    linear-gradient(135deg, #101319 0%, #14171d 45%, #191e26 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.45;
}

.page-shell {
  width: min(1100px, calc(100% - 32px));
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  min-height: min(760px, calc(100vh - 48px));
  align-content: center;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 45%);
  pointer-events: none;
}

.card-label {
  margin: 0 0 14px;
  font-family: "Manrope", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-card h1,
.note-text,
.tag-list li {
  font-family: "Manrope", "Noto Sans JP", sans-serif;
}

.hero-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.05em;
}

.lead,
.card p,
.contact-links a,
.tag-list li {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 36rem;
  font-size: 1rem;
}

.card-note {
  grid-column: span 3;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--surface-alt);
}

.note-text {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.3;
  color: var(--text);
}

.card-skills {
  grid-column: span 3;
  min-height: 320px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.2;
}

.card-about {
  grid-column: span 8;
  min-height: 190px;
}

.card-links {
  grid-column: span 4;
  min-height: 190px;
  background: var(--surface-alt);
}

.contact-links {
  display: grid;
  gap: 10px;
}

.contact-links a {
  width: fit-content;
  text-decoration: none;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 180ms ease, transform 180ms ease;
}

.contact-links a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 900px) {
  body {
    display: block;
  }

  .page-shell {
    width: min(100% - 24px, 1100px);
    margin: 12px auto;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-card,
  .card-note,
  .card-skills,
  .card-about,
  .card-links {
    grid-column: span 1;
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .card {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-card h1 {
    font-size: 2.8rem;
  }
}
