:root {
  --bg: #050505;
  --text: #ffffff;
  --sub: #9ea2a6;
  --line: #222;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans JP", "Yu Gothic", "YuGothic", sans-serif;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: 0.04em;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; border-bottom: 1px solid #555; }
a:hover { border-color: var(--text); }
ul { list-style: none; margin: 0; padding: 0; }

/* ---- トップ ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 30%;
  filter: brightness(0.85) saturate(1.05);
}
.hero::after {   /* 写真から黒へのグラデーション */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5,5,5,0) 35%, rgba(5,5,5,0.75) 70%, var(--bg) 100%),
    linear-gradient(to right, rgba(5,5,5,0.5), rgba(5,5,5,0) 45%);
}
.hero-text {
  position: relative;
  z-index: 1;
  padding: 0 var(--gutter) clamp(40px, 8vh, 88px);
}
h1 {
  margin: 0 0 20px;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
}
h1 span {
  display: block;
  margin-top: 6px;
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 500;
  color: var(--sub);
  letter-spacing: 0.18em;
}
.roles li { font-size: clamp(14px, 1.8vw, 17px); }

/* ---- 共通セクション ---- */
section {
  padding: clamp(56px, 10vw, 112px) var(--gutter) 0;
  max-width: 1200px;
  margin: 0 auto;
}
h2 {
  margin: 0 0 28px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sub);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---- Works ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.5vw, 16px);
}
.grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  filter: brightness(0.9);
  transition: filter .3s;
}
.grid li:hover img { filter: brightness(1.05); }
.grid p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--sub);
}
.note { margin: 20px 0 0; font-size: 12px; color: #666; }

/* ---- できること ---- */
.skills li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
.skills li:last-child { border-bottom: 1px solid var(--line); }

/* ---- Contact ---- */
.lead { margin: 0 0 24px; }
.contact dl {
  display: grid;
  grid-template-columns: 7em 1fr;
  row-gap: 10px;
  margin: 0;
}
.contact dt { color: var(--sub); font-size: 13px; padding-top: 3px; }
.contact dd { margin: 0; overflow-wrap: anywhere; }

footer {
  padding: clamp(64px, 10vw, 120px) var(--gutter) 40px;
  font-size: 12px;
  color: #555;
  text-align: center;
}

/* ---- スマホ ---- */
@media (max-width: 640px) {
  .hero { min-height: 88vh; }
  .hero-img { object-position: 40% 25%; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid p { font-size: 12px; }
  .contact dl { grid-template-columns: 6.5em 1fr; }
}
