:root {
  --bg-deep: #070b10;
  --bg-forest: #0b1310;
  --bg-panel: rgba(14, 24, 22, 0.72);
  --ink: #d8e6df;
  --ink-dim: #8fa39a;
  --glow: #9dff6a;
  --glow-soft: rgba(157, 255, 106, 0.35);
  --eye: #c6ff4f;
  --eye-core: #f3ffd0;
  --violet: #6a4c93;
  --line: rgba(157, 255, 106, 0.16);
  --radius: 14px;
  --maxw: 980px;
  --font: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  line-height: 1.85;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% -10%, #16241c 0%, transparent 55%),
    linear-gradient(180deg, #05080b 0%, var(--bg-forest) 45%, #060a09 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.6em 1em;
  color: #04120a;
  background: var(--eye);
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

.forest {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.moon {
  position: absolute;
  top: 8vh;
  right: 12vw;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #e9f7d6 0%, #b9d8a8 45%, #6b8f74 100%);
  box-shadow: 0 0 60px 18px rgba(180, 230, 170, 0.12);
  opacity: 0.7;
  filter: blur(0.4px);
}

.tree {
  position: absolute;
  bottom: -8vh;
  width: 340px;
  height: 90vh;
  background: linear-gradient(180deg, transparent 0%, rgba(4, 9, 7, 0.85) 30%, #040907 70%);
  clip-path: polygon(48% 0%, 52% 0%, 54% 18%, 62% 8%, 60% 26%, 72% 16%, 66% 36%, 80% 28%, 70% 48%, 86% 42%, 74% 62%, 92% 58%, 78% 78%, 100% 74%, 82% 100%, 18% 100%, 0% 74%, 22% 78%, 8% 58%, 26% 62%, 14% 42%, 30% 48%, 20% 28%, 34% 36%, 28% 16%, 40% 26%, 38% 8%, 46% 18%);
  opacity: 0.85;
}

.tree-left {
  left: -120px;
  transform: scaleX(-1);
}

.tree-right {
  right: -140px;
}

.fireflies {
  position: absolute;
  inset: 0;
}

.firefly {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--eye);
  box-shadow: 0 0 10px 3px var(--glow-soft);
  opacity: 0;
  animation: drift 9s ease-in-out infinite;
}

.f1 { left: 12%; top: 30%; animation-delay: 0s; }
.f2 { left: 26%; top: 62%; animation-delay: 1.4s; }
.f3 { left: 46%; top: 22%; animation-delay: 2.8s; }
.f4 { left: 65%; top: 54%; animation-delay: 0.7s; }
.f5 { left: 82%; top: 34%; animation-delay: 3.6s; }
.f6 { left: 90%; top: 70%; animation-delay: 2.1s; }

@keyframes drift {
  0%, 100% { opacity: 0; transform: translate(0, 0) scale(0.7); }
  25% { opacity: 0.9; }
  50% { opacity: 0.35; transform: translate(14px, -18px) scale(1.1); }
  75% { opacity: 0.75; }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.6rem 1.5rem 0;
}

.site-mark {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--ink-dim);
}

.site-mark-dot {
  color: var(--eye);
  text-shadow: 0 0 8px var(--glow-soft);
}

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.hero {
  min-height: 78vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 0 4rem;
}

.eyes {
  display: flex;
  gap: 44px;
  margin-bottom: 2.2rem;
  animation: breathe 5s ease-in-out infinite;
}

.eye {
  position: relative;
  width: 64px;
  height: 40px;
  border-radius: 50% 50% 46% 46% / 58% 58% 44% 44%;
  background: radial-gradient(circle at 50% 45%, var(--eye-core) 0%, var(--eye) 42%, #6d9a1f 78%, #2b3d12 100%);
  box-shadow:
    0 0 18px 4px var(--glow-soft),
    0 0 46px 12px rgba(157, 255, 106, 0.14),
    inset 0 0 12px rgba(20, 40, 5, 0.7);
}

.pupil {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 26px;
  border-radius: 50%;
  background: #101a06;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.8);
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.hero-title {
  margin: 0;
  font-size: clamp(2.6rem, 11vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.05;
  color: #eaf8e2;
  text-shadow:
    0 0 18px rgba(157, 255, 106, 0.45),
    0 0 54px rgba(157, 255, 106, 0.22);
}

.hero-catch {
  margin: 1.6rem 0 0;
  font-size: clamp(0.95rem, 2.6vw, 1.15rem);
  color: var(--ink);
}

.hero-note {
  margin: 1.1rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}

.section {
  margin-top: 5rem;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}

.section-num {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--eye);
  opacity: 0.85;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.section-lead {
  max-width: 54ch;
  margin: 0 0 1.8rem;
  font-size: 0.92rem;
  color: var(--ink-dim);
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  backdrop-filter: blur(4px);
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}

.profile-card p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.profile-card p:last-of-type {
  margin-bottom: 1.4rem;
}

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

.tag {
  padding: 0.22em 0.85em;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--eye);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(157, 255, 106, 0.06);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.work-card:hover,
.work-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(157, 255, 106, 0.4);
  box-shadow: 0 0 28px -8px rgba(157, 255, 106, 0.35);
}

.work-icon {
  margin: 0 0 0.8rem;
  font-size: 1.1rem;
  color: var(--eye);
  text-shadow: 0 0 12px var(--glow-soft);
}

.work-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.work-desc {
  flex: 1;
  margin: 0 0 1.1rem;
  font-size: 0.87rem;
  color: var(--ink-dim);
}

.work-link {
  margin: 0;
}

.link-placeholder {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  border-bottom: 1px dashed var(--line);
  padding-bottom: 0.1em;
}

.work-link a {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--glow);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.1em;
  text-decoration: none;
}

.work-card-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(130% 120% at 0% 0%, rgba(157, 255, 106, 0.18), transparent 60%),
    var(--bg-panel);
  border-color: var(--glow-soft);
  box-shadow: 0 0 30px -6px rgba(157, 255, 106, 0.22), 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}

.work-card-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 42%, rgba(157, 255, 106, 0.16) 50%, transparent 58%);
  transform: translateX(-110%);
  animation: card-shimmer 4.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes card-shimmer {
  45% { transform: translateX(-110%); }
  75% { transform: translateX(110%); }
  100% { transform: translateX(110%); }
}

.work-card-hero .work-icon {
  font-size: 1.35rem;
  animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
  50% { opacity: 0.6; transform: scale(0.9); }
}

.work-card-hero .work-title {
  font-size: 1.15rem;
  color: var(--eye-core);
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px var(--glow-soft);
}

.work-card-hero .work-desc {
  color: var(--ink);
}

.work-card-hero:hover,
.work-card-hero:focus-within {
  border-color: var(--glow);
  box-shadow: 0 0 42px -6px var(--glow-soft), 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .work-card-hero::after,
  .work-card-hero .work-icon {
    animation: none;
  }
}

.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.6rem 1.5rem 3rem;
  text-align: center;
  border-top: 1px solid var(--line);
}

.footer-eyes {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 1.1rem;
}

.mini-eye {
  width: 20px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--eye-core), var(--eye) 55%, #2b3d12 100%);
  box-shadow: 0 0 10px 2px var(--glow-soft);
  opacity: 0.8;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

.footer-note {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(143, 163, 154, 0.6);
}

@media (max-width: 760px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 68vh;
    padding-top: 2rem;
  }

  .eyes {
    gap: 30px;
    margin-bottom: 1.8rem;
  }

  .eye {
    width: 52px;
    height: 33px;
  }

  .pupil {
    height: 21px;
  }

  .moon {
    width: 78px;
    height: 78px;
    right: 8vw;
    top: 6vh;
  }

  .tree {
    width: 220px;
    opacity: 0.7;
  }

  .card {
    padding: 1.3rem 1.25rem;
  }

  .section {
    margin-top: 3.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .eyes,
  .firefly {
    animation: none;
  }

  .firefly {
    opacity: 0.5;
  }
}
