:root {
  --ink: #1a2220;
  --text: #2a3331;
  --muted: #5f6e69;
  --bg: #eef2f0;
  --bg-deep: #e4ebe8;
  --surface: #fbfcfc;
  --accent: #2d6a63;
  --accent-hover: #245651;
  --line: rgba(26, 34, 32, 0.12);

  --font-display: "Syne", "IBM Plex Sans JP", sans-serif;
  --font-sans: "IBM Plex Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;

  --max: 1040px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-hover);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

/* Hero — name + portrait as one composition */
.hero {
  position: relative;
  min-height: min(100vh, 880px);
  display: flex;
  align-items: flex-end;
  padding: 0;
  overflow: hidden;
  background: #121816;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  transform: scale(1.02);
  animation: mediaIn 1.4s var(--ease) both;
}

.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 14, 13, 0.88) 0%, rgba(10, 14, 13, 0.62) 42%, rgba(10, 14, 13, 0.18) 72%, rgba(10, 14, 13, 0.35) 100%),
    linear-gradient(0deg, rgba(10, 14, 13, 0.55) 0%, transparent 42%);
}

@keyframes mediaIn {
  from { opacity: 0; transform: scale(1.06); }
  to { opacity: 1; transform: scale(1.02); }
}

.hero__stage {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 120px 0 72px;
}

.hero__copy {
  max-width: 560px;
  animation: rise 0.95s var(--ease) 0.12s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8fbfb7;
}

.hero__name {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  color: #f4f7f6;
}

.hero__role {
  margin: 0 0 24px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(244, 247, 246, 0.72);
}

.hero__lead {
  margin: 0 0 28px;
  font-size: clamp(15px, 2.1vw, 17px);
  color: rgba(244, 247, 246, 0.86);
  line-height: 1.9;
  max-width: 32em;
}

.hero__strengths {
  margin: 0 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: baseline;
  font-size: 15px;
  font-weight: 600;
  color: #f4f7f6;
}

.hero__strengths span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #8fbfb7;
}

.hero__hint {
  margin: 0;
  font-size: 13px;
  color: rgba(244, 247, 246, 0.55);
}

/* Section */
.section {
  padding: clamp(72px, 12vw, 112px) 0;
}

.section-label {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.section-lead {
  margin: 0 0 48px;
  color: var(--muted);
  font-size: 15px;
}

/* Works */
.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.work-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 106, 99, 0.35);
  box-shadow: 0 16px 40px rgba(26, 34, 32, 0.08);
  color: inherit;
}

.work-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-deep);
}

.work-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s var(--ease);
}

.work-card:hover .work-card__media img {
  transform: scale(1.04);
}

.work-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 22px 22px;
}

.work-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.work-card__index {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}

.work-card__tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.work-card__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.work-card__desc {
  margin: 0 0 18px;
  flex: 1;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
}

.work-card__stack {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.work-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.work-card:hover .work-card__cta {
  color: var(--accent-hover);
}

/* Footer */
.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.footer-name {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.footer-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

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

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .work-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* 横長の登壇写真を縦画面で cover すると構図が潰れるので、
     写真は上段で比率を保ち、コピーは下の帯に置く */
  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 1200 / 593;
    flex-shrink: 0;
  }

  .hero__media img {
    object-fit: cover;
    object-position: center 42%;
    transform: none;
    animation: mediaInSoft 1.1s var(--ease) both;
  }

  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(10, 14, 13, 0.12) 0%, rgba(10, 14, 13, 0.08) 55%, rgba(10, 14, 13, 0.72) 100%);
  }

  .hero__stage {
    padding: 28px 0 48px;
    background: #121816;
  }

  .hero__copy {
    max-width: none;
  }

  .hero__name {
    font-size: clamp(36px, 11vw, 56px);
  }
}

@keyframes mediaInSoft {
  from { opacity: 0; transform: scale(1.03); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .hero__media {
    aspect-ratio: 16 / 10;
  }

  .hero__media img {
    object-position: center 38%;
  }

  .hero__stage {
    padding: 22px 0 40px;
  }

  .hero__lead {
    font-size: 15px;
    line-height: 1.85;
  }

  .hero__strengths {
    flex-direction: column;
    gap: 6px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__copy,
  .hero__media img,
  .work-card,
  .work-card__media img {
    animation: none;
    transition: none;
  }
}
