* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-style: normal;
  color: #111;
}
a { color: inherit; }
.nowrap { white-space: nowrap; }

.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  padding: 32px 20px;
}
.site-footer a { color: #111; display: flex; }
.site-footer svg { width: 22px; height: 22px; fill: currentColor; }

.page-heading {
  font-size: 13px;
  font-weight: 400;
  color: #999;
  text-align: center;
  margin: 16px 0 0;
  padding: 0 20px;
}

.cta-hero {
  text-align: center;
  padding: 16px 20px 20px;
  border-top: 1px solid #eee;
  max-width: 900px;
  margin: 0 auto;
}
.cta-hero-text {
  font-size: 14px;
  margin: 0 0 12px;
}
.cta-button {
  display: inline-block;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 9px 24px;
  border-radius: 999px;
  transition: opacity 0.2s ease;
}
.cta-button:hover { opacity: 0.8; }
.cta-button-secondary {
  display: block;
  width: fit-content;
  margin: 12px auto 0;
  background: transparent;
  color: #ea265c;
  border: 1px solid #ea265c;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 40px;
  border-bottom: 1px solid #eee;
}
.nav-container { text-align: left; }
.nav-container a {
  margin-right: 24px;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  font-style: normal;
}
.logo {
  font-weight: 700;
  font-style: normal;
  text-align: right;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 900px;
  margin: 32px auto 16px;
  padding: 0 20px;
}
.profile-photo {
  flex: 0 0 130px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  overflow: hidden;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-text { flex: 1; min-width: 0; }
.profile-name {
  font-size: 32px;
  font-weight: 300;
  margin: 0 0 8px;
  line-height: 1.2;
}
.profile-name-sub {
  font-size: 15px;
  font-weight: 300;
  color: #666;
}
.profile-text p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 8px;
}
.profile-text p:last-child { margin-bottom: 0; }
.profile-text .profile-tagline {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}
.profile-text .profile-en {
  font-size: 11px;
  line-height: 1.6;
  color: #888;
}
.profile-clients {
  max-width: 900px;
  margin: 0 auto 20px;
  padding: 0 20px;
  font-size: 12px;
  color: #666;
  line-height: 1.7;
}

.contact {
  max-width: 700px;
  margin: 0 auto;
  padding: 60px 20px;
  font-size: 14px;
  line-height: 1.9;
  text-align: left;
}
.contact h1 {
  font-size: 36px;
  font-weight: 300;
  margin: 0 0 32px;
}
.contact p { margin: 0 0 20px; }
.contact a { text-decoration: underline; }
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-mail svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.contact-mail.contact-note {
  font-size: 18px;
  font-weight: 700;
  color: #ea265c;
}
.contact-subheading {
  font-size: 15px;
  font-weight: 700;
  margin: 40px 0 12px;
}
.service-list {
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 16px;
  padding-left: 20px;
}
.contact-note { font-size: 13px; color: #666; }
.client-list {
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.card:hover img { transform: scale(1.05); }
.card-credit {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.card:hover .card-credit,
.card:focus-visible .card-credit { opacity: 1; transform: translateY(0); }

.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}
.modal-content {
  position: relative;
  width: min(90vw, 960px);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}
.modal-content-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-content-image img {
  max-width: 100%;
  max-height: 90vh;
  display: block;
}
.video-wrap {
  position: relative;
  padding-top: 56.25%;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 1;
}
.modal-description {
  max-height: 30vh;
  overflow-y: auto;
  margin-top: 12px;
  padding: 16px;
  background: #1a1a1a;
  color: #eee;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 4px;
}
.modal-description:empty { display: none; }

.game-section {
  max-width: 1000px;
  margin: 20px auto 60px;
  padding: 0 20px;
  text-align: center;
}
.game-thanks {
  font-size: 13px;
  color: #666;
  margin: 0 0 16px;
}
.game-wrap {
  display: inline-block;
  max-width: 100%;
}
.game-stage {
  position: relative;
}
#game-canvas {
  display: block;
  width: 100%;
  max-width: 960px;
  height: auto;
  position: relative;
  z-index: 1;
  border-radius: 8px;
  touch-action: none;
}
.game-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  background: #111;
  pointer-events: none;
}
.game-hud {
  display: flex;
  justify-content: center;
  font-size: 12px;
  color: #666;
  margin-top: 8px;
  padding: 0 4px;
}
.game-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  cursor: pointer;
}
.game-overlay.hidden { display: none; }
.game-overlay p { margin: 0; font-size: 14px; color: #333; }
.game-button {
  padding: 8px 22px;
  font-size: 13px;
}

@media (max-width: 700px) {
  .site-header {
    padding: 14px 16px;
    gap: 8px;
  }
  .nav-container a {
    font-size: 13px;
    margin-right: 10px;
  }
  .nav-container a[href="gallery.html"] { display: none; }
  .logo { font-size: 13px; }
  .profile-hero { flex-direction: column; text-align: center; gap: 16px; margin-top: 24px; }
  .profile-name { font-size: 26px; }
  .profile-text .profile-en { display: none; }
  .contact { padding: 40px 16px; }
  .contact h1 { font-size: 26px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
