@charset "utf-8";

/* ========================================
   Project AI to Real
======================================== */

/* ========================================
   01. Project Main
======================================== */

.project-main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 170px 8.4% 100px;
  box-sizing: border-box;
}

/* ========================================
   02. Project Intro
======================================== */

.project-intro {
  max-width: 1024px;
  margin: 0 auto 80px;
  text-align: center;
}

.project-title {
  font-family: var(--font-mincho);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 12px;
}

.project-subtitle {
  font-family: var(--font-mincho);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 80px;
}

/* ========================================
   03. Project Content
======================================== */

.project-content {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
}

/* Image + Text Layout */

.project-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: stretch;

  width: 100%;
  max-width: 1024px;
  margin: 0 auto 180px;
}

/* ========================================
   04. Visual Column
======================================== */

.project-visual-column {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;

  width: 100%;
  height: 100%;
  min-height: 0;
}

/* Common Image */

.project-visual {
  width: 100%;
}

.project-image {
  width: 100%;
}

.project-image img {
  display: block;
  width: 100%;
  height: auto;
}

.project-image-full {
  width: 100%;
  margin: 0 auto;
}

/* Main Visual */

.project-main-visual {
  width: 100%;
  max-width: 400px;
  margin: 0 0 0 auto;
}

.project-main-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* Caption */

.project-caption {
  margin-top: 12px;
  font-family: var(--font-mincho);
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}
/* ========================================
   Main Visual + Arrow
======================================== */

.project-visual-group {
  width: 100%;
  max-width: 400px;
  margin-left: auto;
  margin-right: 0;
}

/* Main Visual */

.project-visual-group .project-main-visual {
  width: 100%;
  max-width: none;
  margin: 0;
}

/* Arrow */

.project-visual-group .project-arrow {
  width: 0;
  height: 0;
  margin: 40px auto 35px;

  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 15px solid #deded2;
}

/* ========================================
   05. Work Visual
======================================== */

.project-work-visual {
  width: 100%;
  max-width: 400px;
  margin: 0 0 0 auto;
}

/* Main + Sub Images */

.project-work-collage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 4px;
  align-items: start;
}

.project-work-main {
  width: 100%;
}

.project-work-main img {
  display: block;
  width: 100%;
  height: auto;
}

.project-work-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.project-work-sub .project-image {
  width: 70px;
  aspect-ratio: 1400 / 1980;
  overflow: hidden;
}

.project-work-sub .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-work-visual .project-caption {
  margin-top: 12px;
}

/* ========================================
   06. Project Text
======================================== */

.project-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  width: 100%;
  height: 100%;

  font-family: var(--font-mincho);
  font-size: 16px;
  line-height: 2.8;
  text-align: left;

   letter-spacing: 0.015em;
}

.project-text-block {
  display: flex;
  align-items: center;
}

.project-text-block p {
  margin: 0;
  line-height: 2.4;
}

/* ========================================
   07. Down Arrow
======================================== */

.project-arrow {
  width: 0;
  height: 0;
  margin: 40px auto 35px;

  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 15px solid #deded2;
}

/* ========================================
   08. Project Gallery
======================================== */

.project-gallery {
  width: 100%;
  max-width: 1020px;
  margin: 0 auto 60px;
}

/* 3 Columns */

.project-gallery-collage {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 8.5%;
  row-gap: 36px;

  width: 100%;
}

.project-gallery-collage .project-image {
  width: 100%;
  margin: 0;
}

.project-gallery-collage img {
  display: block;
  width: 100%;
  height: auto;
}

/* Gallery Caption */

.project-gallery-caption {
  margin-top: 12px;
  font-family: var(--font-mincho);
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

/* ========================================
   09. Image Fade-in
======================================== */

.project-page .project-image {
  opacity: 0;
  transform: translateY(20px);

  transition:
    opacity 1s ease,
    transform 1s ease;
}

.project-page .project-image.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   10. Lightbox
======================================== */

/* Clickable Images */

.project-work-collage .project-image img {
  cursor: pointer;
}

/* Lightbox Background */

.ai-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;

  justify-content: center;
  align-items: center;

  padding: 40px;
  background: rgba(30, 30, 30, 0.9);
}

.ai-lightbox.is-open {
  display: flex;
}

/* Lightbox Image */

.ai-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Close Button */

.ai-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;

  color: #fff;
  font-size: 36px;

  background: none;
  border: none;
  cursor: pointer;
}
/* Project image hover */
.project-caption a:hover {
  color: var(--color-line-dark);
}

/* ========================================
   11. SP Design
======================================== */

@media screen and (max-width: 768px) {

  /* Project Main */

  .project-main {
    padding: 100px 6% 60px;
  }

  /* Intro */

  .project-intro {
    margin-bottom: 35px;
    padding: 0;
  }

  .project-title {
    font-size: 24px;
    margin-bottom: 10px;
  }

  .project-subtitle {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 35px;
  }

  /* Content */

  .project-content {
    width: 100%;
    max-width: 100%;
  }

  /* Image + Text */

  .project-section {
    display: flex;
    flex-direction: column;
    gap: 35px;

    margin-bottom: 55px;
  }

  /* Visual Column */

  .project-visual-column {
    width: 100%;
    height: auto;
    min-height: 0;

    align-items: center;
    justify-content: flex-start;
  }

  .project-visual {
    width: 100%;
  }

  /* Main Visual */

  .project-main-visual {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .project-main-visual img {
    width: 100%;
    height: auto;
  }

  /* Caption */

  .project-caption {
    font-size: 12px;
    line-height: 1.8;
    margin-top: 7px;
  }

  /* Work Visual */

  .project-work-visual {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .project-work-collage {
    display: block;
    width: 100%;
  }

  .project-work-main {
    width: 100%;
  }

  .project-work-main img {
    display: block;
    width: 100%;
    height: auto;
  }

  /* Hide Thumbnails */

  .project-work-sub {
    display: none;
  }

  /* Project Text */

  .project-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;

    width: 100%;
    height: auto;

    font-size: 16px;
    line-height: 2.3;
    letter-spacing: 0.02em;

    /* margin-left: 20px; */
  }

  .project-text-block {
    display: block;
    margin-bottom: 22px;
  }

  .project-text-block:last-child {
    margin-bottom: 0;
  }

  .project-text-block p {
    margin: 0;
    line-height: 2.3;
  }

  /* Down Arrow */

  .project-arrow {
    margin: 22px auto;
    border-left-width: 14px;
    border-right-width: 14px;
    border-top-width: 10px;
  }
/* Main Visual + Arrow */

.project-visual-group {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.project-visual-group .project-main-visual {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.project-visual-group .project-arrow {
  margin: 22px auto;
  border-left-width: 14px;
  border-right-width: 14px;
  border-top-width: 10px;
}
  /* Gallery */

  .project-gallery {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 45px;
  }

  .project-gallery-collage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 5px;
    row-gap: 8px;
  }

  .project-gallery-caption {
    font-size: 12px;
    margin-top: 8px;
  }

  /* Lightbox */

  .ai-lightbox {
    padding: 16px;
  }

  .ai-lightbox img {
    max-width: 94vw;
    max-height: 80vh;
  }

  .ai-lightbox-close {
    top: 12px;
    right: 16px;
    font-size: 30px;
  }

}

/* ========================================
   12. Small SP
======================================== */

@media screen and (max-width: 480px) {

  .project-main-visual {
    max-width: 100%;
  }

  .project-text {
    font-size: 16px;
  }

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

}
