*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #080808;
  --surface: #121212;
  --surface2: #1c1c1c;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --p5-red: #ff003c;
  --p5-red-dark: #c8002f;
  --game: #ffb020;
  --art: #ff6eb4;
  --think: #5ecbff;
  --dev: #c89bff;
  --shadow: 4px 4px 0 #000;
  --font: "Noto Sans JP", "Segoe UI", sans-serif;
  --font-en: "Bebas Neue", "Outfit", sans-serif;
  --font-display: "Anton", "Noto Sans JP", sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 40px,
      rgba(255, 0, 60, 0.03) 40px,
      rgba(255, 0, 60, 0.03) 41px
    ),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 0, 60, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.wrap { position: relative; z-index: 1; }

nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 12px clamp(20px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 200;
  background: rgba(8, 8, 8, 0.92);
  border-bottom: 3px solid var(--p5-red);
}

nav .logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
}

nav .logo span { color: var(--p5-red); }

nav .links { display: flex; gap: clamp(16px, 3vw, 28px); align-items: center; }

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: var(--font-en);
  letter-spacing: 0.12em;
  transition: color 0.15s;
}

nav a:hover { color: var(--p5-red); }

nav .nav-cta {
  padding: 8px 16px;
  background: var(--p5-red);
  color: #fff !important;
  font-weight: 700;
  transform: skewX(-8deg);
  border: 2px solid #000;
  box-shadow: var(--shadow);
}

nav .nav-cta:hover {
  background: var(--p5-red-dark);
  color: #fff !important;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 48px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 120px clamp(20px, 4vw, 48px) 64px;
}

.hero-copy { max-width: 540px; }

.hero .eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.18em;
  color: #fff;
  background: var(--p5-red);
  padding: 6px 14px;
  transform: skewX(-8deg);
  border: 2px solid #000;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-shadow: 2px 2px 0 #000;
}

.hero h1 .accent {
  color: var(--p5-red);
  -webkit-text-fill-color: var(--p5-red);
  position: relative;
}

.hero .lead {
  color: var(--muted);
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  margin-bottom: 28px;
  max-width: 460px;
  border-left: 4px solid var(--p5-red);
  padding-left: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.88rem;
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transform: skewX(-8deg);
  border: 2px solid #000;
  transition: transform 0.15s, background 0.15s;
}

.btn:hover { transform: skewX(-8deg) translate(-2px, -2px); }

.btn-primary {
  background: var(--p5-red);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover { background: var(--p5-red-dark); }

.btn-ghost {
  background: var(--surface2);
  color: var(--text);
}

.btn-ghost:hover { background: #252525; }

.hero-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  background: var(--surface);
  border: 2px solid #000;
  box-shadow: var(--shadow);
  width: fit-content;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.hero-profile img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  object-position: 32% center;
  border: 2px solid var(--p5-red);
}

.hero-profile .name { font-weight: 700; font-size: 0.9rem; }
.hero-profile .role {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-en);
  letter-spacing: 0.08em;
}

.hero-visual { position: relative; }

.art-frame {
  position: relative;
  overflow: hidden;
  border: 3px solid #000;
  box-shadow: 8px 8px 0 var(--p5-red);
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 580px);
  margin-left: auto;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.art-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 88% center;
  display: block;
}

.art-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 50%);
  pointer-events: none;
}

.art-caption {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
}

.art-caption .label {
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--p5-red);
  margin-bottom: 4px;
}

.art-caption p { font-size: 0.85rem; color: #ddd; }

.float-badge {
  position: absolute;
  top: 8px;
  right: 0;
  z-index: 3;
  background: #fff;
  color: #000;
  padding: 8px 14px;
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  transform: skewX(-8deg) rotate(2deg);
  border: 2px solid #000;
  box-shadow: var(--shadow);
}

.skills-strip {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 24px;
}

.skills-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 2px solid #000;
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.skills-label {
  font-family: var(--font-en);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--p5-red);
  white-space: nowrap;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills-list li {
  font-size: 0.78rem;
  font-family: var(--font-en);
  letter-spacing: 0.08em;
  padding: 5px 12px;
  background: var(--surface2);
  border: 1px solid var(--line);
  transform: skewX(-6deg);
}

section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px clamp(20px, 4vw, 48px);
}

.section-head { margin-bottom: 40px; }

.section-head .label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 1rem;
  letter-spacing: 0.2em;
  color: #fff;
  background: var(--p5-red);
  padding: 4px 12px;
  transform: skewX(-8deg);
  border: 2px solid #000;
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible { opacity: 1; transform: none; }

.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 40px);
  align-items: start;
  background: var(--surface);
  border: 2px solid #000;
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 36px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.about-photo {
  width: clamp(120px, 20vw, 150px);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 32% center;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 var(--p5-red);
}

.about-text h3 { font-size: 1.2rem; margin-bottom: 12px; }
.about-text p { color: var(--muted); font-size: 0.94rem; margin-bottom: 12px; }
.about-text p:last-child { margin-bottom: 0; }

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.pillar {
  background: var(--surface2);
  border: 2px solid #000;
  padding: 18px;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
}

.pillar h4 {
  font-family: var(--font-en);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.pillar.build h4 { color: var(--p5-red); }
.pillar.draw h4 { color: var(--art); }
.pillar.think h4 { color: var(--think); }
.pillar p { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }

.projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.project-card {
  background: var(--surface);
  border: 2px solid #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s;
}

.project-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 #000;
}

.project-card.featured,
.project-card.featured-dev {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.project-card.featured-dev {
  position: relative;
  overflow: visible;
}

.project-card.featured-dev::before {
  content: "PICK UP ▶";
  position: absolute;
  top: 14px;
  right: 12px;
  z-index: 3;
  background: var(--p5-red);
  color: #fff;
  font-family: var(--font-en);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  transform: skewX(-8deg);
  border: 2px solid #000;
  box-shadow: var(--shadow);
}

.card-thumb {
  min-height: 180px;
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid #000;
}

.project-card.featured .card-thumb,
.project-card.featured-dev .card-thumb { min-height: 260px; }

.works-category {
  grid-column: 1 / -1;
  margin: 8px 0 2px;
}

.works-category:first-of-type { margin-top: 0; }

.works-category h3 {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  color: #fff;
  background: #000;
  border: 2px solid var(--p5-red);
  padding: 8px 18px;
  transform: skewX(-8deg);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  width: fit-content;
  transform: skewX(-6deg);
}

.tag.game { color: var(--game); border-color: var(--game); }
.tag.art { color: var(--art); border-color: var(--art); }
.tag.think { color: var(--think); border-color: var(--think); }
.tag.dev { color: var(--dev); border-color: var(--dev); }
.tag.web { color: var(--p5-red); border-color: var(--p5-red); background: rgba(255, 0, 60, 0.08); }

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; }
.card-body p { font-size: 0.86rem; color: var(--muted); flex: 1; margin-bottom: 14px; }
.card-body .btn { align-self: flex-start; padding: 9px 18px; font-size: 0.8rem; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; }

.thumb-web-splatoon img,
.thumb-screenshot img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
  display: block;
}

.thumb-web-splatoon img { object-position: top center; min-height: 220px; }
.thumb-screenshot img.shot-moji-othello { object-position: 42% 38%; }
.thumb-screenshot img.shot-kiewado { object-position: 50% 32%; }

.thumb-web-pdf {
  background: linear-gradient(160deg, #1a1a1a, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.thumb-web-pdf .mock-stack {
  display: flex;
  gap: 12px;
  font-family: var(--font-en);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--p5-red);
}

.thumb-web-md {
  background: #0e0e0e;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 24px;
}

.thumb-web-md pre {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  font-family: ui-monospace, monospace;
}

.thumb-web-md .accent { color: var(--p5-red); }

.thumb-game {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 47px, rgba(255,255,255,0.04) 47px, rgba(255,255,255,0.04) 48px),
    #181818;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-preview { width: 120px; height: 120px; position: relative; }
.game-preview .player {
  position: absolute; top: 50%; left: 50%;
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  background: #00dc50; border-radius: 50%;
  box-shadow: 0 0 16px rgba(0, 220, 80, 0.5);
}
.game-preview .enemy {
  position: absolute; width: 18px; height: 18px;
  background: var(--p5-red); border-radius: 50%;
}
.game-preview .enemy:nth-child(2) { top: 10%; left: 20%; }
.game-preview .enemy:nth-child(3) { top: 15%; right: 15%; }
.game-preview .enemy:nth-child(4) { bottom: 20%; left: 10%; }
.game-preview .enemy:nth-child(5) { bottom: 15%; right: 20%; }
.game-preview .enemy:nth-child(6) { top: 40%; left: 5%; }

.thumb-art {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.thumb-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}

.thumb-art img.char-focus-right { object-position: 88% center; }

.thumb-ux {
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.thumb-ux .chart {
  width: 80%;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}

.thumb-ux .bar {
  flex: 1;
  background: linear-gradient(to top, var(--p5-red), rgba(255, 0, 60, 0.25));
}

.thumb-ux .bar:nth-child(1) { height: 45%; }
.thumb-ux .bar:nth-child(2) { height: 70%; }
.thumb-ux .bar:nth-child(3) { height: 55%; }
.thumb-ux .bar:nth-child(4) { height: 90%; }

.contact-box {
  text-align: center;
  background: var(--surface);
  border: 2px solid #000;
  box-shadow: var(--shadow);
  padding: clamp(36px, 6vw, 56px) clamp(24px, 4vw, 40px);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.contact-box p { color: var(--muted); max-width: 480px; margin: 0 auto 24px; }

.contact-box .mail {
  display: inline-block;
  font-family: var(--font-en);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  color: var(--p5-red);
  text-decoration: none;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 24px;
}

.social-links a {
  display: inline-flex;
  padding: 9px 18px;
  font-family: var(--font-en);
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--text);
  border: 2px solid #000;
  background: var(--surface2);
  transform: skewX(-6deg);
  transition: background 0.15s;
}

.social-links a:hover { background: var(--p5-red); color: #fff; }

footer {
  text-align: center;
  padding: 28px 20px 44px;
  color: var(--muted);
  font-size: 0.82rem;
  font-family: var(--font-en);
  letter-spacing: 0.08em;
  border-top: 3px solid var(--p5-red);
}

footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  justify-content: center;
  margin-bottom: 14px;
}

footer .footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

footer .footer-links a:hover { color: var(--p5-red); }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 96px;
    min-height: auto;
  }

  .hero-visual { order: -1; }

  .art-frame {
    max-height: 400px;
    margin: 0 auto;
    max-width: 340px;
  }

  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-photo { margin: 0 auto; }
  .pillars { grid-template-columns: 1fr; }
  .projects { grid-template-columns: 1fr; }
  .project-card.featured,
  .project-card.featured-dev { grid-template-columns: 1fr; }
  nav .links a:not(.nav-cta) { display: none; }
}
