/*
Theme Name: うぇぶのやまもと
Theme URI: https://yamamotoweb.jp
Author: webyamamoto
Description: うぇぶのやまもと ポートフォリオテーマ
Version: 1.0
*/

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

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
}

/* ========== Header ========== */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 44px 40px 24px;
  background-color: transparent;
  z-index: 100;
}

.logo {
  display: block;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.nav-link .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: transparent;
}

.nav-link.active .dot {
  background-color: #e8703a;
}

/* ========== Works Grid ========== */

main {
  margin-top: 108px;
  padding: 100px 40px 80px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 24px;
}

.work-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.work-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.work-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: #e8e8e8;
  border: 1px solid #d0d0d0;
  overflow: hidden;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-label {
  font-size: 11px;
  color: #888888;
  letter-spacing: 0.02em;
}
