@font-face {
  font-family: "Grantha Sangam MN";
  src: url("fonts/grantha-sangam-mn-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* フォント */
  --font-nav: "Avenir Next", "Avenir", system-ui, sans-serif;
  /* ロゴ・メニュー */
  --font-name: "Source Sans 3", "Source Sans Variable", sans-serif;

  --color-bg: #0b1b22;
  --color-surface: #0f2029;
  --color-white: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.55);
  --color-accent: rgba(255, 255, 255, 0.12);

  --hero-image: url("images/daniel-leone-v7daTKlZzaw-unsplash.jpg");

  --transition: 0.3s ease;
  --header-h: 90px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  cursor: crosshair;
}

*,
a,
button {
  cursor: crosshair;
}

a {
  text-decoration: none;
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.site-header.scrolled {
  background: rgba(11, 27, 34, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header.menu-open {
  z-index: 200;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  padding: 0 40px;
}

.logo {
  grid-column: 2;
  font-family: "Grantha Sangam MN", serif;
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1;
  padding-top: 6px;
  letter-spacing: 0.05em;
  color: var(--color-white);
  transition: opacity var(--transition);
}

.logo:hover {
  opacity: 0.7;
}

.nav-links {
  position: fixed;
  top: 0;
  right: 40px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 36px;
  z-index: 105;
}

.nav-link {
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  line-height: 1;
  color: var(--color-white);
  position: relative;
  transition: opacity var(--transition);
}

.nav-link.active::after,
.nav-link:hover::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -4px;
  left: 0;
  width: calc(100% - 0.18em);
  height: 1px;
  background: var(--color-white);
}

.nav-link:hover {
  opacity: 0.8;
}

/* インスタアイコン */
.nav-icon {
  display: flex;
  align-items: center;
  color: var(--color-white);
  transition: opacity var(--transition);
}

.nav-icon:hover {
  opacity: 0.7;
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 500px;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-color: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: calc(var(--header-h) + 60px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(8, 20, 28, 0.25) 0%,
      rgba(8, 20, 28, 0.08) 40%,
      rgba(8, 20, 28, 0.55) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-name {
  font-family: var(--font-name);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.4);
  margin: 0 auto;
  animation: scrollFade 1.8s ease-in-out infinite;
}

@keyframes scrollFade {
  0% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }

  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }

  100% {
    opacity: 0;
    transform: scaleY(1);
    transform-origin: bottom;
  }
}


.section {
  padding: 100px 40px;
  background: var(--color-bg);
}

.section--dark {
  background: var(--color-surface);
}

.section-inner {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 48px;
}

.section-text {
  font-family: var(--font-name);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.75);
}


.about-block {
  margin-top: 56px;
}

.about-heading {
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.about-heading-jp {
  font-weight: 300;
  color: var(--color-muted);
  letter-spacing: 0.08em;
}

.about-list {
  list-style: none;
  display: grid;
  grid-template-columns: 80px 1fr;
  row-gap: 12px;
  column-gap: 24px;
}

.about-list li {
  grid-column: 2;
  font-family: var(--font-name);
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  padding-left: 14px;
  position: relative;
}

.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  width: 1px;
  height: 1em;
  background: rgba(255, 255, 255, 0.3);
}

.about-skill {
  display: grid;
  grid-template-columns: 80px 1fr;
  row-gap: 14px;
  column-gap: 24px;
}

.about-skill dt {
  font-family: var(--font-nav);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  color: var(--color-muted);
  padding-top: 2px;
}

.about-skill dd {
  font-family: var(--font-name);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}

.about-bio {
  display: grid;
  grid-template-columns: 80px 1fr;
  row-gap: 14px;
  column-gap: 24px;
}

.about-bio dt {
  font-family: var(--font-nav);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  padding-top: 2px;
}

.about-bio dd {
  font-family: var(--font-name);
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}


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

.work-item {
  cursor: pointer;
}

.work-item:hover .work-thumb {
  opacity: 0.75;
}

.work-thumb {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: var(--color-accent);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: opacity var(--transition);
}

.work-item:hover .work-thumb {
  opacity: 0.75;
}

.work-info {
  margin-top: 12px;
}

.work-label {
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
}

.work-genre {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--color-muted);
  margin-top: 4px;
}


.contact-btn {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--color-white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 3px;
  transition: opacity var(--transition);
}

.contact-btn:hover {
  opacity: 0.6;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px;
  z-index: 110;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-white);
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}


.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.hamburger.open .hamburger-line:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}


@media (max-width: 768px) {

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
  }

  .logo {
    grid-column: unset;
  }

  .nav-links {
    inset: 0;
    right: 0;
    height: auto;
    width: 100%;
    text-align: center;
    background: rgba(11, 27, 34, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 105;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }

  .nav-link {
    font-size: 1rem;
    letter-spacing: 0.22em;
  }

  .nav-icon svg {
    width: 24px;
    height: 24px;
  }

  .hamburger {
    display: flex;
    position: relative;
    z-index: 110;
  }

  .nav-close {
    display: block !important;
  }

  .hero {
    padding-top: calc(var(--header-h) + 32px);
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 36px;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  display: flex;
  flex-direction: row;
  background: #0a1520;
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 900px;
  width: 100%;
  max-height: 88vh;
  overflow: hidden;
  transform: translateY(24px);
  transition: transform 0.35s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-image-panel {
  position: relative;
  flex: 0 0 60%;
  background: #060d12;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 400px;
}

.modal-image-panel.hidden {
  display: none;
}

.modal-image-panel.hidden ~ .modal-body {
  flex: 1;
}

.modal-image-inner {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.modal-body {
  position: relative;
  flex: 0 0 40%;
  padding: 48px 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--color-white);
}

.modal-title-row {
  display: block;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.nav-close {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px;
  line-height: 1;
  transition: color 0.2s ease;
  z-index: 1;
}

.nav-close:hover {
  color: var(--color-white);
}

.modal-title {
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  color: var(--color-white);
}

.modal-desc {
  font-family: var(--font-name);
  font-weight: 300;
  font-size: 0.92rem;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.65);
}


.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

.modal-image-panel.has-gallery .gallery-btn {
  opacity: 1;
  pointer-events: auto;
}

.gallery-btn:hover {
  background: rgba(0, 0, 0, 0.75);
  color: var(--color-white);
}

.gallery-btn--prev {
  left: 12px;
}

.gallery-btn--next {
  right: 12px;
}

.gallery-counter {
  flex-shrink: 0;
  text-align: center;
  padding: 8px 0;
  font-family: var(--font-nav);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
  display: none;
}

.modal-image-panel.has-gallery .gallery-counter {
  display: block;
}


.site-footer {
  background: var(--color-surface);
  padding: 28px 40px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copy {
  font-family: var(--font-nav);
  font-weight: 400;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--color-muted);
}

body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

@media (max-width: 768px) {

  .modal-overlay {
    padding: 16;
    align-items: center;
  }

  .modal {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
  }

  .modal-image-panel {
    flex: none;
    width: 100%;
    min-height: unset;
    aspect-ratio: 3 / 2;
  }

    .modal-image-inner {
    flex: 1;
    overflow: hidden;
  }

  .modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .modal-body {
    position: static;
    flex: none;
    padding: 24px 20px 40px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    justify-content: flex-start;
    overflow-y: visible;
  }

    .modal-close {
    position: static;
    flex-shrink: 0;
    top: unset;
    right: unset;
  }

  .modal-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
    .modal-image-panel {
    flex: none;
    width: 100%;
    min-height: unset;
    aspect-ratio: 3 / 2;
    overflow: hidden;
  }

  .modal-image-inner {
    flex: 1;
    overflow: hidden;
  }

  .modal-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #060d12;
  }
}