:root {
  --navy: #1e2430;
  --navy-2: #262d3b;
  --beige: #f2efe6;
  --beige-2: #e7e2d6;
  --paper: #faf8f3;
  --ink: #1e2430;
  --muted: #5d6270;
  --accent: #b8452a;
  --light: #f2efe6;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--beige);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .25em;
}
h1, h2, h3 { margin: 0; line-height: 1.4; letter-spacing: .04em; }
h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 900; }

/* nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 24px;
  background: rgba(30, 36, 48, .92);
  backdrop-filter: blur(6px);
  color: var(--light);
}
.nav-brand { font-weight: 900; letter-spacing: .2em; text-decoration: none; font-size: 15px; }
.nav nav { display: flex; gap: 24px; }
.nav nav a { text-decoration: none; font-size: 14px; opacity: .85; }
.nav nav a:hover { opacity: 1; color: #e88a6f; }

/* hero */
.hero {
  display: grid; grid-template-columns: minmax(560px, 1.1fr) 1fr;
  min-height: 100vh; min-height: 100svh;
  background: var(--navy); color: var(--light);
}
.hero-text { align-self: center; padding: 120px 48px 80px max(24px, calc((100vw - 1120px) / 2 + 24px)); }
.hero h1 { font-size: clamp(30px, 4.2vw, 56px); white-space: nowrap; font-weight: 900; margin-bottom: 32px; }
.hero .lead { color: #c9c6be; font-size: 15px; margin: 0 0 28px; }
.hero .name { margin: 0; padding-top: 20px; border-top: 2px solid var(--accent); display: inline-block; font-weight: 500; }
.hero-img {
  background: url("hero.jpg") left center / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 25%);
          mask-image: linear-gradient(to right, transparent, #000 25%);
}

/* about */
.about { padding: 110px 0; }
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.about h2 { margin-bottom: 24px; }
.about-body { color: var(--muted); margin: 0; }
.skills { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.skills caption { text-align: left; font-weight: 700; padding-bottom: 10px; }
.skills th, .skills td { padding: 12px 16px; border-bottom: 1px solid var(--beige-2); text-align: left; vertical-align: top; }
.skills tr:last-child th, .skills tr:last-child td { border-bottom: 0; }
.skills th { width: 8.5em; white-space: nowrap; font-weight: 700; }

/* works */
.works { padding: 110px 0; background: var(--beige-2); }
.works h2 { margin-bottom: 40px; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(30, 36, 48, .06), 0 8px 24px rgba(30, 36, 48, .06);
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(30, 36, 48, .08), 0 16px 36px rgba(30, 36, 48, .12); }
.thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #ddd; }
.thumb img { width: 100%; height: 100%; object-fit: cover; object-position: left top; transition: transform .5s; }
.card:hover .thumb img { transform: scale(1.03); }
.card-body { padding: 24px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.num { margin: 0; color: var(--accent); font-weight: 900; font-size: 18px; }
.card h3 { font-size: 21px; margin: 2px 0 10px; }
.card-body > p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.tags { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 12px; padding: 2px 10px; border: 1px solid #cfc9bb; border-radius: 999px; color: var(--ink); }
.btn {
  margin-top: auto; align-self: flex-start;
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  background: var(--navy); color: var(--light); text-decoration: none; font-size: 14px; font-weight: 700;
  transition: background .2s;
}
.btn:hover { background: var(--accent); }
.card-body > .note { margin: 10px 0 0; font-size: 12px; color: #8a8d96; }

/* contact */
.contact { padding: 110px 0 48px; background: var(--navy); color: var(--light); }
.contact h2 { margin-bottom: 36px; }
.links { margin: 0 0 80px; }
.links a { color: var(--light); text-decoration: underline; text-underline-offset: 4px; }
.links a:hover { color: #e88a6f; }
.copy { margin: 0; font-size: 12px; color: #8f94a0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(28px, 8.4vw, 44px); }
  .hero-text { padding: 110px 24px 40px; }
  .hero-img { min-height: 260px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%); mask-image: linear-gradient(to bottom, transparent, #000 30%); }
  .about, .works { padding: 80px 0; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; gap: 24px; }
  .nav nav { gap: 16px; }
}
@media (max-width: 480px) {
  .skills th { width: auto; white-space: normal; }
  .skills th, .skills td { display: block; padding: 6px 14px; }
  .skills th { padding-top: 12px; border-bottom: 0; }
  .card-body { padding: 20px; }
  .contact h2 { font-size: 21px; }
  .contact h2 br { display: none; }
}
