:root {
  --bg-white: #ffffff;
  --accent-red: #ff0000;
  --wire-gray: #b2b2b2;
  --slider-green: #00ff21;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 先方のcss解除 */
#wrapper {
  overflow: visible;
}

* {
  box-sizing: border-box;
}

.collaboration {
  margin: 0;
  padding: 0;
  /* ヘッダー固定分の余白 (SP/PC共通の基本値) */
  /* padding-top: 70px; */
  background-color: var(--bg-white);
  font-family: "Helvetica Neue", Arial, sans-serif;
  /* overflow-x: hidden; */
}

/* ==========================================
   ヘッダー基本設定
========================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background-color: #000;
  color: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.header-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-logo {
  width: 90px;
}

.header-logo a {
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  color: #fff;
  text-decoration: none;
}

.header-right {
  display: flex;
  justify-content: flex-end;
}

.insta-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  transition: opacity 0.3s;
}

.insta-link:hover {
  opacity: 0.7;
}

.collaboration .insta-link svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 750px) {
  .header-inner {
    grid-template-columns: 0fr auto 1fr;
  }
  .main-header {
    height: 60px;
  }
  .header-logo {
    width: 160px;
}
}

/* ==========================================
   オープニング演出 & 共通パーツ
========================================== */
.opening-section {
  margin-top: 0;
  height: 400vh;
  position: relative;
}

.opening-section-mt {
  margin-top: 225px;
}

.opening-section-mt2 {
  margin-top: 80px;
}

.sticky-wrapper {
  position: sticky;
  top: 70px; /* ヘッダー高さ */
  width: 100%;
  height: calc(100vh - 116px);
  overflow: hidden;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fv-text {
  position: relative;
  z-index: 20;
  text-align: center;
  color: #000;
  top: -20vh;
}

@media (max-width: 750px) {
  .fv-text {
    width: 70%;
  }
}

.fv-text h1 {
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  font-weight: 300;
  letter-spacing: 0.5em;
}

.zoom-img-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(50% 50% 50% 50%);
  z-index: 10;
}

.zoom-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collaboration img {
  width: 100%;
  height: auto;
  display: block;
}

.collaboration .is-sp {
  display: none;
}
@media (max-width: 750px) {
  .collaboration .is-sp {
    display: block;
  }
  .collaboration .is-pc {
    display: none;
  }
  }

/* ==========================================
   アニメーション (Fade / Reveal)
========================================== */
.reveal {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(60px); /* デフォルト: fade-up */
  transition:
    opacity 1.2s var(--ease-expo),
    transform 1.2s var(--ease-expo),
    filter 1.2s var(--ease-expo);
  will-change: opacity, transform;
  position: relative; /* オーバーレイの基準 */
  cursor: pointer;
  overflow: hidden;
}

/* 方向バリエーション */
.reveal.fade-up {
  transform: translateY(60px);
}

.reveal.fade-left {
  transform: translateX(60px);
}

.reveal.fade-right {
  transform: translateX(-60px);
}

/* 表示状態 */
.reveal.js-visible {
  opacity: 1;
  transform: translate(0, 0);
  filter: blur(0);
}

/* ==========================================
   オーバーレイ & インタラクション
========================================== */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 10;
  display: inherit;
}

.overlay-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  color: #fff;
  text-align: left;
  transform: translateY(20px);
  transition: transform 0.5s var(--ease-expo);
}

/* オーバーレイ ホバー時の挙動 */
.reveal:hover .overlay {
  opacity: 1;
}

.reveal:hover .overlay-content {
  transform: translateY(0);
}

/* スマホ対応: タップ(active)時 */
@media (hover: none) {
  .reveal:active .overlay {
    opacity: 1;
  }
  .reveal:active .overlay-content {
    transform: translateY(0);
  }
}

/* オーバーレイ内のリンク・アイコン */
.overlay-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  height: 20px;
}

.overlay-link {
  position: relative;
  color: #fff;
  text-decoration: none;
  margin-bottom: 5px;
  transition: color 0.3s ease;
  display: inline-flex;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  margin-left: 0;
  margin-right: auto;
}

.overlay-link svg {
  width: 30px;
  height: 30px;
}

.overlay-link:hover {
  color: #ff0;
}

.overlay-link::after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #ff0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
@media (max-width: 750px) {
  .overlay-link::after {
    bottom: -8px;
  }
}

.overlay-link:hover::after {
  transform: scaleX(1);
}

/* ==========================================
   グリッドレイアウト (PC)
========================================== */
@media (min-width: 751px) {
  .sp-only {
    display: none !important;
  }
  .container-pc {
    margin: 0 auto;
    width: 100%;
    max-width: 1000px;
  }
  .container-pc-mt {
    margin-top: 225px;
  }
  .grid-15 {
    display: grid;
    grid-template-columns: repeat(1500, 1fr);
    gap: 0;
    align-items: end;
    max-width: 1500px;
    margin: 0 auto;
    overflow: hidden;
  }
  .grid-17 {
    display: grid;
    grid-template-columns: repeat(1700, 1fr);
    gap: 0;
    align-items: end;
    max-width: 1700px;
    margin: 0 auto;
    overflow: hidden;

  }
  /* Grid 15 - Sections */
  .grid-15-p2 {
    margin-top: 225px;
    margin-left: auto;
    margin-right: 0;

  }
  .grid-15-p3 {
    margin-left: auto;
    margin-right: 0;
  }
  .grid-15-p4,
  .grid-15-p5,
  .grid-15-p7,
  .grid-15-p8 {
    margin-top: 225px;
  }
  .grid-17-p6 {
    margin-top: 225px;
    margin-right: auto;
    margin-left: 0;
  }

  /* Grid Items */
  .p1-1 {
    grid-column: 1 / 509;
    aspect-ratio: 254/351;
    max-width: 508px;
  }
  .p1-2 {
    grid-column: 390 / 796;
    aspect-ratio: 203/281;
    z-index: 5;
    max-width: 406px;
  }
  .p1-3 {
    grid-column: 830 / 1500;
    aspect-ratio: 1352/1872;
    max-width: 676px;
  }
  .p2-1 {
    grid-column: 1 / 678;
    aspect-ratio: 676/936;
    max-width: 676px;
    margin-right: min(210px, 10%);
  }
  .p2-2 {
    grid-column: 698 / 1206;
    aspect-ratio: 508/702;
    max-width: 508px;
  }
  .p3-1 {
    grid-column: 166 / 674;
    aspect-ratio: 508/702;
    max-width: 508px;
    align-self: end;
    grid-row: 1 / 3;
  }
  .p3-2 {
    grid-column: 698 / 1206;
    aspect-ratio: 508/702;
    max-width: 508px;
    grid-row: 1;
    margin-bottom: 16px;
  }
  .p3-3 {
    grid-column: 698 / 1500;
    aspect-ratio: 802/321;
    max-width: 802px;
    grid-row: 2;
    align-self: end;
    z-index: 2;
  }
  .p4-1 {
    grid-column: 1 / 678;
    aspect-ratio: 676/936;
    max-width: 676px;
  }
  .p4-2 {
    grid-column: 824 / 1500;
    aspect-ratio: 676/936;
    max-width: 676px;
  }
  .p5-1 {
    grid-column: 1 / 678;
    aspect-ratio: 676/936;
    max-width: 676px;
  }
  .p6-1 {
    grid-column: 1/ 448;
    aspect-ratio: 448/300;
    max-width: 448px;
    align-self: start;
    grid-row: 2 / 3;
  }
  .p6-2 {
    grid-column: 210/718;
    aspect-ratio: 508/702;
    max-width: 508px;
    align-self: start;
    grid-row: 1;
    margin-bottom: 30px;
  }
  .p6-3 {
    grid-column: 480/ 886;
    aspect-ratio: 406/562;
    max-width: 406px;
    grid-row: 2 / 3;
    align-self: end;
    z-index: 2;
  }
  .p6-4 {
    grid-column: 1024/ 1700;
    aspect-ratio: 676/936;
    max-width: 676px;
    align-self: start;
    grid-row: 1 / 3;
  }
  .p7-1 {
    grid-column: 183/ 691;
    aspect-ratio: 508/702;
    max-width: 508px;
  }
  .p7-2 {
    grid-column: 810/ 1317;
    aspect-ratio: 508/702;
    max-width: 508px;
  }
  .p8-1 {
    grid-column: 412/ 1088;
    aspect-ratio: 676/ 936;
    max-width: 676px;
  }
  .wide-img {
    width: 100%;
    aspect-ratio: 1920/967;
    margin-top: 60px;
  }
}

/* ==========================================
   スマホ版レイアウト (SP)
========================================== */
@media (max-width: 750px) {
  .pc-only {
    display: none !important;
  }
  .opening-section-pc {
    display: none;
  }
  .main-header {
    height: 60px;
  }
  body {
    padding-top: 60px;
  }
  .header-inner {
    padding: 0 20px;
  }
  .sticky-wrapper {
    top: 60px;
    height: calc(100vh - 60px);
  }

  .container-sp {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .container-sp-mt {
    margin-top: 80px;
  }
  .s-full {
    width: 100%;
  }
  .s-center {
    margin: 0 auto;
  }
  .s-right {
    margin-left: auto;
    margin-right: 0;
  }
  .s-left {
    margin-left: 0;
    margin-right: auto;
  }
  .s-flex {
    display: flex;
  }

  /* SP Grid Items */
  .sp-01 {
    aspect-ratio: 226/312;
    width: 60%;
  }
  .sp-02 {
    aspect-ratio: 300/415;
    width: 80%;
    margin-top: 80px;
  }
  .sp-03 {
    aspect-ratio: 180/250;
    width: 48%;
    margin-top: 20px;
    margin-right: 15px;
  }
  .sp-04 {
    aspect-ratio: 300/415;
    width: 80%;
    margin-top: 80px;
  }
  .sp-05 {
    aspect-ratio: 180/250;
    width: 48%;
    margin-top: 20px;
  }
  .sp-06 {
    aspect-ratio: 300/415;
    width: 80%;
    margin-top: 80px;
  }
  .sp-07 {
    aspect-ratio: 300/415;
    width: 80%;
    margin-top: 20px;
  }
  .sp-08 {
    aspect-ratio: 132/181;
    width: 35%;
    margin-top: 20px;
    margin-right: 15px;
  }
  .sp-09 {
    aspect-ratio: 300/415;
    width: 80%;
    margin-top: 80px;
  }
  .sp-10 {
    aspect-ratio: 375/519;
    width: 100%;
    margin-top: 20px;
  }
  .sp-11 {
    aspect-ratio: 226/312;
    width: 60%;
    margin-top: 80px;
  }
  .sp-12 {
    aspect-ratio: 132/181;
    width: 35%;
    margin-top: 20px;
  }
  .sp-13 {
    aspect-ratio: 226/312;
    width: 60%;
    margin-top: 20px;
  }
  .sp-14 {
    aspect-ratio: 300/415;
    width: 80%;
    margin-top: 80px;
  }
  .sp-15 {
    aspect-ratio: 226/312;
    width: 60%;
    margin-top: 80px;
  }
  .sp-16 {
    aspect-ratio: 226/312;
    width: 60%;
    margin-top: 20px;
  }
  .sp-17 {
    aspect-ratio: 300/415;
    width: 80%;
    margin-top: 80px;
  }
}

@media (min-width: 751px) {
  .opening-section-sp {
    display: none;
  }
}

/* ==========================================
   カスタムスライダー (Custom Slider)
========================================== */
.custom-slider {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.custom-slider img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease-in-out;
  z-index: 1;
}

.custom-slider img:first-child {
  opacity: 1;
  z-index: 2;
  visibility: visible;
}

.custom-slider img.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 3;
}

/* ==========================================
   2x2 グリッドレイアウト
========================================== */
.grid-2x2-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 30px;
  max-width: 1046px;
  margin: 225px auto 0;
}

.grid-item {
  aspect-ratio: 508/702;
  background: #ccc;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: opacity, transform;
}

/* 表示時 */
.grid-2x2-container.js-visible .grid-item {
  opacity: 1;
  transform: translateY(0);
}

/* 時計回り遅延 */
.grid-2x2-container.js-visible .item-tl {
  transition-delay: 0s;
}
.grid-2x2-container.js-visible .item-tr {
  transition-delay: 0.3s;
}
.grid-2x2-container.js-visible .item-br {
  transition-delay: 0.6s;
}
.grid-2x2-container.js-visible .item-bl {
  transition-delay: 0.9s;
}

/* ==========================================
   Swiper (プロジェクト一覧)
========================================== */
.my-project-slider {
  width: 100%;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

.slide-inner {
  position: relative;
  width: 100%;
  height: 60vh;
  height: auto; /* 固定値を解除 */
  overflow: hidden;
}

.slide-inner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain; /* 画像全体が見えるように */
}

.swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

.swiper-button-prev,
.swiper-button-next {
  color: #fff;
  width: 50px;
  height: 50px;
  z-index: 100;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease !important;
  opacity: 1;
  visibility: visible;
}

.swiper-button-disabled {
  opacity: 0 !important;
  visibility: hidden; /* クリックできないようにする */
  pointer-events: none;
}

.swiper-button-prev {
  left: 6% !important;
}
.swiper-button-next {
  right: 6% !important;
}

/* ==========================================
   ラストセクション (Opening Section 02)
========================================== */
.opening-section02 {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 211px;
}

.zoom-img-container02 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.zoom-img-container02 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
}

/* ラストセクションのアニメーション */
.js-reveal-target {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
  z-index: 20;
}

.js-reveal-target.js-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fv-content {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1.5s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.fv-content.js-visible {
  opacity: 1;
  transform: translateY(0);
}

.fv-logo img {
  width: 100%;
  max-width: 330px;
  height: auto;
  margin: 0 auto;
}

.fv-subtext {
  color: #fff;
  font-size: 20px;
  letter-spacing: 0.3em;
  margin-top: 20px;
  text-align: center;
}

@media (max-width: 750px) {
  .fv-logo img {
    max-width: 55vw;
  }
  .fv-subtext {
    font-size: 0.9rem;
  }
}

/* ==========================================
   モーダル (Modal)
========================================== */
.modal-wrap {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.modal-wrap.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-swiper {
  width: 100%;
  height: 100%;
}

.modal-swiper .swiper-slide {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* モーダルコンテンツ */
.modal-content-inner {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide-img-area {
  position: relative;
  width: fit-content;
  height: fit-content;
  max-width: 90%;
  max-height: 90vh;
}

.slide-img-area img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
}

.slide-img-area .overlay {
  bottom: 10%;
  top: auto;
  background-color: transparent;
  opacity: 1; /* 常時表示 */
}

/* 閉じるボタン */
.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 十字アイコン (Cross Icon) */
.cross-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 11;
}

.cross-icon::before,
.cross-icon::after {
  content: "";
  position: absolute;
  background-color: #fff;
}

.cross-icon::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.cross-icon::after {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.reveal:hover .cross-icon {
  transform: rotate(180deg);
}

@media (max-width: 750px) {
  .slide-img-area {
    /* width: 100%; */
    display: inline-block;
    line-height: 0;
  }
  .modal-swiper .swiper-button-next,
  .modal-swiper .swiper-button-prev {
    top: auto;
    bottom: 50%;
  }
  .swiper-button-prev {
    left: 20%;
  }
  .swiper-button-next {
    right: 20%;
  }
}

.swiper-button-prev,
.swiper-container-rtl .swiper-button-next {
  background-image: url(../img/btn_arrow_left.svg);
}
.swiper-button-next,
.swiper-container-rtl .swiper-button-prev {
  background-image: url(../img/btn_arrow_right.svg);
}
