@charset "utf-8";
body {
  margin: 0;
}

.portfolio-page {
  background: #000;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  overflow-x: hidden;
  position: relative;
}

.portfolio-page img {
  max-width: 100%;
  display: block;
}

/* HERO */
.portfolio-hero {
  color: #050505;
  padding: 140px 6% 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.6) 1px, transparent 1px),
    linear-gradient(45deg, rgba(0, 0, 0, 0.6) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.6) 1px, transparent 1px),
    linear-gradient(
      135deg,
      #f7f7f7 0%,
      #f7f7f7 42%,
      #bfbfbf 49%,
      #222 56%,
      #050505 100%
    );
  background-size:
    42px 42px,
    80px 80px,
    56px 56px,
    cover;
}

.portfolio-kicker {
  color: #4fa3a5;
  letter-spacing: 0.24em;
  font-size: 12px;
  font-weight: bold;
  margin: 0 0 22px;
}

.portfolio-hero h1 {
  font-size: clamp(34px, 7vw, 86px);
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 0 0 28px;
  line-height: 1.2;
}

.portfolio-lead {
  max-width: 760px;
  font-size: clamp(14px, 2vw, 18px);
  line-height: 2.2;
  margin: 0;
}

/* CATEGORY NAV */
.portfolio-category {
  display: grid;
  grid-template-columns: 1fr;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.portfolio-category a {
  color: #fff;
  text-decoration: none;
  padding: 22px 6%;
  font-size: 14px;
  letter-spacing: 0.12em;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.portfolio-category a:hover {
  color: #4fa3a5;
  background: rgba(255, 255, 255, 0.04);
}

/* COMMON SECTION */
.portfolio-section {
  padding: 100px 6%;
}

.section-title {
  margin-bottom: 42px;
}

.section-title span {
  display: block;
  color: #4fa3a5;
  font-size: 12px;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: clamp(26px, 5vw, 56px);
  font-weight: normal;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin: 0;
}

.section-text {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 2.1;
  font-size: 15px;
  margin: -16px 0 42px;
}

.section-text.narrow {
  max-width: 720px;
}

/* MINI LABEL */
.mini-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 42px;
}

.mini-labels span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 4px;
}

/* WORK GRID */
.works-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px 26px;
}

.work-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.work-item p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  letter-spacing: 0.04em;
}

.work-item img:hover,
.banner-item img:hover {
  filter: brightness(1.12);
}

/* PICKUP */
.portfolio-pickup {
  padding-top: 110px;
}

/* REAL SECTION */
.split-text {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  max-width: 960px;
  margin: -16px 0 46px;
}

.split-text p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 2.1;
  font-size: 15px;
  margin: 0;
}

/* DARK FEATURE */
.dark-feature {
  background:
    linear-gradient(90deg, rgba(90, 0, 0, 0.28), rgba(0, 0, 0, 0) 48%), #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.dark-copy {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 2.2;
  font-size: 15px;
  margin: -16px 0 46px;
}

/* BANNER */
.banner-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.banner-item img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.banner-item p {
  margin: 12px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

/* SIZE */
.portfolio-size {
  padding: 90px 6%;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.portfolio-size h2 {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: normal;
  letter-spacing: 0.12em;
  margin: 0 0 34px;
}

.size-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}

.size-row span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(79, 163, 165, 0.65);
  padding-bottom: 6px;
}

/* CONTACT */
.portfolio-contact {
  padding: 120px 6% 140px;
  text-align: center;
}

.portfolio-contact p {
  color: #4fa3a5;
  letter-spacing: 0.18em;
  font-size: 13px;
  margin: 0 0 18px;
}

.portfolio-contact h2 {
  font-size: clamp(24px, 5vw, 54px);
  font-weight: normal;
  line-height: 1.5;
  margin: 0 0 36px;
}

.portfolio-contact a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.16em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  padding-bottom: 8px;
  transition:
    color 0.3s ease,
    border-color 0.3s ease;
}

.portfolio-contact a:hover {
  color: #4fa3a5;
  border-color: #4fa3a5;
}

/* PC */
@media (min-width: 762px) {
  .portfolio-category {
    grid-template-columns: repeat(4, 1fr);
  }

  .portfolio-category a {
    padding: 24px 24px;
    border-top: none;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .works-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .works-grid-large {
    grid-template-columns: repeat(2, 1fr);
  }

  .works-grid-dark {
    grid-template-columns: repeat(4, 1fr);
  }

  .split-text {
    grid-template-columns: 1fr 1fr;
  }

  .banner-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* WIDE */
@media (min-width: 1100px) {
  .portfolio-hero,
  .portfolio-section,
  .portfolio-size,
  .portfolio-contact {
    padding-left: 8%;
    padding-right: 8%;
  }
}

/* ==============================
   Price Table
============================== */

.portfolio-price {
  padding: 100px 6%;
  background: #000;
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.price-lead {
  max-width: 820px;
  margin: -16px 0 46px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 2.1;
}

.price-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.price-table,
.option-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}

.price-table th,
.price-table td,
.option-table th,
.option-table td {
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 18px 16px;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.8;
}

.price-table th {
  color: #4fa3a5;
  font-weight: normal;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.price-table td:nth-child(1) {
  width: 18%;
  font-size: 15px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.price-table td:nth-child(2) {
  width: 14%;
  color: #4fa3a5;
  font-size: 20px;
  white-space: nowrap;
}

.price-table td:nth-child(3) {
  width: 34%;
  color: rgba(255, 255, 255, 0.82);
}

.price-table td:nth-child(4) {
  width: 34%;
  color: rgba(255, 255, 255, 0.68);
}

.price-option {
  margin-top: 70px;
}

.price-option h3 {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: normal;
  letter-spacing: 0.1em;
  margin: 0 0 24px;
}

.option-table th {
  width: 70%;
  text-align: left;
  font-weight: normal;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.03);
}

.option-table td {
  width: 30%;
  color: #4fa3a5;
  font-size: 18px;
  white-space: nowrap;
}

.price-notes {
  margin-top: 34px;
}

.price-notes p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.9;
}

/* SP */
@media (max-width: 761px) {
  .portfolio-price {
    padding: 80px 5%;
  }

  .price-table {
    min-width: 860px;
  }

  .price-table th,
  .price-table td,
  .option-table th,
  .option-table td {
    padding: 14px 12px;
    font-size: 13px;
  }

  .price-table td:nth-child(2) {
    font-size: 18px;
  }

  .option-table th,
  .option-table td {
    display: block;
    width: 100%;
  }

  .option-table tr {
    display: block;
    margin-bottom: 0;
  }

  .option-table td {
    border-top: none;
  }
}

footer {
  text-align: center;
  margin-bottom: 30px;
  opacity: 0.6;
}
.work-item img,
.banner-item img {
  cursor: zoom-in;
}

/* 背景 */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;

  padding: 70px 90px 40px;

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

  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(5px);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

/* 表示時 */
.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* 画像と説明 */
.lightbox-content {
  width: min(100%, 1500px);
  max-height: calc(100svh - 110px);

  margin: 0;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  position: relative;
}

/* 拡大画像 */
.lightbox-content img {
  width: auto;
  max-width: 100%;
  max-height: calc(100svh - 165px);

  display: block;
  object-fit: contain;

  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.65);

  opacity: 0;
  transform: scale(0.96);

  transition:
    opacity 0.3s ease,
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.image-lightbox.is-open .lightbox-content img {
  opacity: 1;
  transform: scale(1);
}

/* 画像下の説明 */
.lightbox-content figcaption {
  min-height: 24px;
  margin-top: 18px;

  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.06em;
  text-align: center;
}

/* 閉じるボタン */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  z-index: 2;

  width: 48px;
  height: 48px;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;

  color: #fff;
  background: rgba(0, 0, 0, 0.45);

  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.lightbox-close:hover {
  color: #4fa3a5;
  border-color: #4fa3a5;
  transform: rotate(90deg);
}

/* 前後ボタン */
.lightbox-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;

  width: 52px;
  height: 80px;

  padding: 0;

  border: 0;

  color: rgba(255, 255, 255, 0.75);
  background: transparent;

  font-family: Arial, sans-serif;
  font-size: 58px;
  font-weight: 200;
  line-height: 1;

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-prev:hover {
  color: #4fa3a5;
  transform: translate(-4px, -50%);
}

.lightbox-next:hover {
  color: #4fa3a5;
  transform: translate(4px, -50%);
}

/* 拡大中は背景をスクロールさせない */
body.is-lightbox-open {
  overflow: hidden;
}

/* スマートフォン */
@media (max-width: 760px) {
  .image-lightbox {
    padding: 65px 14px 30px;
  }

  .lightbox-content {
    max-height: calc(100svh - 90px);
  }

  .lightbox-content img {
    max-height: calc(100svh - 145px);
  }

  .lightbox-close {
    top: 12px;
    right: 14px;

    width: 42px;
    height: 42px;

    font-size: 26px;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 10px;

    width: 50px;
    height: 50px;

    font-size: 45px;

    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;

    transform: none;
  }

  .lightbox-prev {
    left: 14px;
  }

  .lightbox-next {
    right: 14px;
  }

  .lightbox-prev:hover,
  .lightbox-next:hover {
    transform: none;
  }

  .lightbox-content figcaption {
    margin-top: 12px;
    padding: 0 55px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .image-lightbox,
  .lightbox-content img,
  .lightbox-close,
  .lightbox-arrow {
    transition: none;
  }
}
