:root {
  --ink: #1f2340;
  --cream: #fffaf2;
  --paper: #ffffff;
  --pink: #ff5c8a;
  --yellow: #ffd23f;
  --mint: #3ddc97;
  --blue: #4d7cfe;
  --purple: #7b61ff;
  --orange: #ff8a3d;
  --muted: #5b5f7a;
  --radius: 22px;
  --shadow: 6px 6px 0 var(--ink);
  --font: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --display: "Outfit", "Zen Maru Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  background-image: radial-gradient(rgba(31, 35, 64, .08) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code { font-family: var(--display); background: #fff3c4; padding: 0 .35em; border-radius: 6px; }

/* nav */
.nav {
  position: sticky; top: 14px; z-index: 50;
  margin: 14px auto 0; width: min(1120px, calc(100% - 28px));
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 18px 10px 22px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 4px 4px 0 var(--ink);
}
.nav__logo { font-family: var(--display); font-weight: 900; font-size: 1.35rem; text-decoration: none; letter-spacing: -.02em; }
.nav__logo span { color: var(--pink); }
.nav__links { display: flex; gap: 4px; flex-wrap: wrap; }
.nav__links a {
  font-family: var(--display); font-weight: 700; font-size: .92rem; text-decoration: none;
  padding: 6px 14px; border-radius: 999px; transition: background .2s, transform .2s;
}
.nav__links a:hover { background: var(--yellow); transform: rotate(-3deg); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 96px 24px 110px; }
.hero__inner { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; }
.hero__tag {
  display: inline-block; margin: 0 0 18px; padding: 6px 16px;
  font-family: var(--display); font-weight: 700; letter-spacing: .08em;
  background: var(--ink); color: var(--yellow); border-radius: 999px; transform: rotate(-2deg);
}
.hero__name {
  margin: 0; font-family: var(--display); font-weight: 900;
  font-size: clamp(3.2rem, 9vw, 6.6rem); line-height: 1.05; letter-spacing: .02em;
  text-shadow: 5px 5px 0 var(--pink);
}
.hero__lead { max-width: 640px; margin: 26px 0 0; font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 700; }
.hero__lead mark { background: linear-gradient(transparent 55%, var(--yellow) 55%); color: inherit; padding: 0 .1em; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.chip {
  font-family: var(--display); font-weight: 700; font-size: .9rem;
  padding: 6px 14px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--paper);
}
.chip--blue { background: #dfe8ff; } .chip--green { background: #d9f7e9; } .chip--pink { background: #ffe0ea; }
.chip--orange { background: #ffe9d6; } .chip--purple { background: #ebe5ff; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.btn {
  display: inline-block; font-family: var(--display); font-weight: 900; text-decoration: none;
  padding: 14px 26px; border: 3px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn--primary { background: var(--pink); color: #fff; }
.btn--ghost { background: var(--paper); }

.blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .55; z-index: 0; }
.blob--pink { width: 420px; height: 420px; background: var(--pink); top: -120px; right: -80px; opacity: .25; }
.blob--yellow { width: 300px; height: 300px; background: var(--yellow); bottom: -90px; left: 30%; opacity: .45; }
.blob--mint { width: 220px; height: 220px; background: var(--mint); top: 40%; right: 22%; opacity: .3; }

.hero__stickers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sticker {
  position: absolute; width: 88px; height: 88px; object-fit: contain; padding: 14px;
  background: var(--paper); border: 3px solid var(--ink); border-radius: 26px; box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.s1 { top: 14%; right: 9%; transform: rotate(8deg); }
.s2 { top: 44%; right: 4%; animation-delay: -1s; }
.s3 { top: 66%; right: 17%; animation-delay: -2s; }
.s4 { top: 28%; right: 24%; width: 104px; animation-delay: -3s; }
.s5 { top: 70%; right: 33%; width: 100px; animation-delay: -4s; }
.s6 { top: 8%; right: 30%; animation-delay: -5s; }
@keyframes float {
  0%, 100% { translate: 0 0; rotate: -4deg; }
  50% { translate: 0 -14px; rotate: 4deg; }
}

/* marquee */
.marquee { overflow: hidden; background: var(--ink); border-block: 3px solid var(--ink); padding: 16px 0; transform: rotate(-1.2deg); margin: -10px -10px 0; }
.marquee__track { display: flex; gap: 46px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track img {
  height: 40px; width: 40px; object-fit: contain; padding: 6px;
  background: #fff; border-radius: 12px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.section { padding: 110px 24px; }
.section > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.section--tinted { background: #fff0f5; border-block: 3px solid var(--ink); }
.section__title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-top: 0; margin-bottom: 40px; letter-spacing: -.01em;
}
.num {
  display: inline-grid; place-items: center; width: 58px; height: 58px; font-size: 1.2rem;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-6deg);
}
.section__lead { font-weight: 500; color: var(--muted); margin-top: -18px; margin-bottom: 44px; }

/* about */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.about__text p { margin: 0 0 1.1em; font-size: 1.04rem; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  padding: 22px 18px; border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 8px;
}
.stat b { font-family: var(--display); font-weight: 900; font-size: 2.1rem; line-height: 1.1; }
.stat b small { font-size: .9rem; margin-left: 4px; }
.stat span { font-size: .85rem; font-weight: 700; line-height: 1.55; }
.stat--pink { background: #ffd1df; transform: rotate(-1.5deg); }
.stat--yellow { background: #fff0b3; transform: rotate(1.2deg); }
.stat--yellow b { font-size: 1.55rem; }
.stat--mint { background: #c9f5df; transform: rotate(1deg); }
.stat--blue { background: #d5e1ff; transform: rotate(-1deg); }

/* stack */
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stack__card {
  background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; transition: transform .2s;
}
.stack__card:hover { transform: translateY(-6px) rotate(-.6deg); }
.stack__card h3 { margin: 0 0 14px; font-family: var(--display); font-size: 1.3rem; }
.stack__card p { margin: 14px 0 0; font-size: .9rem; color: var(--muted); line-height: 1.7; }
.logos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.logos li {
  display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700;
  padding: 5px 11px 5px 6px; background: var(--cream); border: 2px solid var(--ink); border-radius: 999px;
}
.logos img { width: 24px; height: 24px; object-fit: contain; }

/* architecture */
.arch {
  background: var(--paper); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 8px 8px 0 var(--ink);
  padding: 34px; margin-bottom: 56px;
}
.arch__head h3 { margin: 12px 0 4px; font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.4; }
.arch__meta { margin: 0 0 22px; color: var(--muted); font-weight: 700; font-size: .92rem; }
.badge {
  display: inline-block; font-family: var(--display); font-weight: 900; font-size: .85rem; letter-spacing: .06em;
  padding: 4px 14px; border: 2.5px solid var(--ink); border-radius: 999px;
}
.badge--orange { background: var(--orange); } .badge--blue { background: var(--blue); color: #fff; }
.badge--pink { background: var(--pink); color: #fff; } .badge--purple { background: var(--purple); color: #fff; }
.arch__fig { margin: 0 0 26px; }
.zoom {
  display: block; width: 100%; padding: 0; cursor: zoom-in; background: #fff;
  border: 2.5px dashed #b9bdd3; border-radius: 18px; overflow: hidden; transition: border-color .2s;
}
.zoom:hover { border-color: var(--pink); }
.arch__fig figcaption { display: flex; gap: 10px; justify-content: flex-end; margin-top: 12px; flex-wrap: wrap; }
.arch__fig figcaption a {
  font-family: var(--display); font-weight: 700; font-size: .85rem; text-decoration: none;
  padding: 4px 14px; border: 2px solid var(--ink); border-radius: 999px; background: #fff3c4;
}
.arch__fig figcaption a:hover { background: var(--yellow); }
.arch__body { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 18px; }
.point { border-radius: 18px; padding: 18px 20px; border: 2.5px solid var(--ink); }
.point h4 { margin: 0 0 6px; font-family: var(--display); font-size: 1rem; }
.point p { margin: 0; font-size: .93rem; line-height: 1.8; }
.point--problem { background: #ffe9ef; }
.point--design { background: #eef3ff; }
.point--result { background: #e2f9ee; }

/* timeline */
.timeline { list-style: none; padding: 0 0 0 30px; margin: 0 auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 4px; background: var(--ink); border-radius: 4px; }
.timeline li {
  position: relative; background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink);
  padding: 16px 22px; margin-bottom: 18px;
}
.timeline li::before {
  content: ""; position: absolute; left: -31px; top: 22px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--pink); border: 3px solid var(--ink);
}
.timeline li:nth-child(3n+2)::before { background: var(--yellow); }
.timeline li:nth-child(3n)::before { background: var(--mint); }
.timeline time { font-family: var(--display); font-weight: 900; color: var(--pink); }
.timeline h3 { margin: 2px 0 4px; font-size: 1.08rem; }
.timeline p { margin: 0; font-size: .92rem; color: var(--muted); }

/* projects */
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.project {
  position: relative; display: block; text-decoration: none; padding: 28px 28px 24px;
  border: 3px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.project:hover { transform: translate(-3px, -3px) rotate(-.8deg); box-shadow: 10px 10px 0 var(--ink); }
.project img, .project__emoji {
  width: 58px; height: 58px; object-fit: contain; padding: 8px; display: grid; place-items: center; font-size: 2rem;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 16px;
}
.project h3 { margin: 16px 0 6px; font-family: var(--display); font-size: 1.35rem; }
.project p { margin: 0; font-size: .93rem; }
.project__more { display: inline-block; margin-top: 14px; font-family: var(--display); font-weight: 900; }
.project--blue { background: #dfe8ff; } .project--orange { background: #ffe5d2; }
.project--mint { background: #d4f7e6; } .project--pink { background: #ffdbe6; }

/* certs */
.certs { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.certs li {
  font-weight: 700; font-size: .92rem; padding: 10px 18px; background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 14px; box-shadow: 3px 3px 0 var(--ink);
}
.certs li::before { content: "★ "; }
.c-aws::before { color: #ff9900; } .c-k8s::before { color: #326ce5; } .c-az::before { color: #0078d4; }
.c-db::before { color: #c74634; } .c-py::before { color: #3ddc97; }

/* footer */
.footer { text-align: center; padding: 100px 24px 60px; background: var(--ink); color: #fff; }
.footer__msg { font-family: var(--display); font-weight: 900; font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.5; margin: 0 0 32px; }
.footer .btn { border-color: #fff; box-shadow: 4px 4px 0 var(--yellow); }
.footer__note { margin: 40px 0 0; font-size: .8rem; color: #b9bdd3; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(31, 35, 64, .82);
  display: grid; place-items: center; padding: 24px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 90vh; background: #fff; border: 3px solid #fff; border-radius: 16px; }
.lightbox__close {
  position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1;
  background: var(--yellow); border: 3px solid var(--ink); border-radius: 50%; cursor: pointer;
}

/* reveal */
.reveal { opacity: 0; translate: 0 26px; transition: opacity .6s ease, translate .6s ease; }
.reveal.is-in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: 0 0; }
}

@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .stack { grid-template-columns: 1fr 1fr; }
  .arch__body { grid-template-columns: 1fr; }
  .hero__stickers { opacity: .35; }
}
@media (max-width: 640px) {
  .nav { border-radius: 22px; flex-direction: column; align-items: flex-start; padding: 12px 16px; }
  .nav__links a { padding: 4px 10px; font-size: .82rem; }
  .stack, .projects, .stats { grid-template-columns: 1fr; }
  .arch { padding: 22px; }
  .hero { padding-top: 60px; }
  .hero__stickers { display: none; }
}
