@font-face {
  font-family: "MOBO";
  src: url("fonts/mobo-semibold.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "MOBO";
  src: url("fonts/mobo-regular.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  color-scheme: light;
  background: #f6f6f4;
}
body {
  background: #f6f6f4;
  color: #000;
  min-height: 100vh;
  font-family: "MOBO", "Hiragino Sans", sans-serif;
}

.hero { padding: 40px 24px 24px; }

.hero-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 48px;
}

.hero .logo { display: block; line-height: 0; }
.hero .logo img { height: 18px; width: auto; display: block; }

.hero-nav { display: flex; gap: 20px; }
.hero-nav a { font-weight: 400; font-size: 14px; color: #000; text-decoration: none; }
.hero-nav a:hover { opacity: 0.6; }

/* WORKS GRID */
.works {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 16px;
}

.work { cursor: pointer; }

.frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ccc;
}

/* 元画像の端に焼き込まれた黒い縁をトリミングして隠す */
img[src*="LZPLulcR88E"] {
  transform: scale(1.02);
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

.work-caption {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 300;
  color: #333;
}

@media (max-width: 900px) {
  .works { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .works { grid-template-columns: 1fr; gap: 32px; }
}

/* ABOUT */
.about {
  position: relative;
  padding: 24px;
  padding-top: 48px;
  padding-bottom: 64px;
}
.about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: #000;
}

.about p {
  font-size: 13px;
  line-height: 2.4;
  color: #333;
  max-width: 420px;
}

.about-email {
  display: inline-block;
  margin-top: 32px;
  font-size: 13px;
  color: #333;
  text-decoration: underline;
}

/* CONTACT */
.contact {
  position: relative;
  padding: 24px;
  padding-top: 40px;
  padding-bottom: 96px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-links { display: flex; flex-direction: column; gap: 12px; }
.contact-links a { font-size: 14px; color: #000; text-decoration: none; }
.contact-links a:hover { opacity: 0.6; }
.contact-links a .underline { text-decoration: underline; }

.contact .copyright {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-size: 11px;
  color: #000;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,20,18,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: #f6f6f4;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 32px;
  position: relative;
}

.modal-back {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.modal-title {
  max-width: 800px;
  margin: 16px auto;
  font-size: 15px;
  font-weight: 300;
}

.modal-player {
  width: 100%;
  max-width: 800px;
  margin: 64px auto 20px;
  aspect-ratio: 16 / 9;
  background: #000;
}
.modal-player iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
}

.modal-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}
.modal-images img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.modal-desc {
  max-width: 800px;
  margin: 0 auto 20px;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.8;
  color: #000;
}
