@charset "UTF-8";

/* ===== 基本設定 ===== */
html, body {
  height: 100%;
  margin: 0;
  background: #000;
  font-family: "Helvetica Neue", sans-serif;
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
}

/* モーダル表示中はスクロールを無効化 */
body.modal-open {
  overflow: hidden !important;
  scroll-snap-type: none !important;
}

/* ===== セクション共通 ===== */
section {
  scroll-snap-align: start;
  width: 100vw;
  height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* ===== 左右構成 ===== */
.left { flex: 1; background: #1e1e2f; }
.right { flex: 3; position: relative; }
.right img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 写真の視認性向上 ===== */
.right::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.15) 20%,
    rgba(0, 0, 0, 0.15) 80%,
    rgba(0, 0, 0, 0.35) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 2;
}

/* ---- コピー ---- */
.copy {
  position: absolute;
  bottom: 24px;
  right: 24px;
  color: #fff;
  font-size: 24px;
  line-height: 1.3;
  max-width: 60%;
  z-index: 3;
  opacity: 1;
}

/* 各文字（スパン） */
.copy span {
  display: inline-block;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* 表示時 */
.copy span.show {
  opacity: 1;
  transform: translateX(0);
}

/* ---- ロゴ ---- */
.logo {
  position: absolute;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%) scale(2);
  width: 120px;
  opacity: 0;
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: 0.1s; /* コピー後に出るよう遅延 */
  z-index: 10;
}

/* 表示時 */
.logo.logo-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(2);
}

/* =========================================================
   First View
   ========================================================= */

.first-view {
  width: 100vw;
  height: 100vh;
  background-color: #9dc4d7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(circle at top left, rgba(255,255,255,0.2), rgba(0,0,0,0.3));
  background-size: cover;
  background-position: center;
  animation: bgFloat 15s ease-in-out infinite alternate;
}
@keyframes bgFloat {
  0% { background-position: center top; }
  100% { background-position: center bottom; }
}

/* ノイズ効果の削除 */
.first-view::before {
    content: none;
}


/* ===== 下矢印 ===== */
.scroll-arrow, .scroll-top-arrow {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  opacity: 0.6;
}

/* ロゴアニメーション */
.first-view .fv-logo {
  width: 280px;
  max-width: 80vw;
  height: auto;
  opacity: 0;
  transform: scale(0.9);
  animation: fvLogoFadeIn 1.5s ease forwards;
}

@keyframes fvLogoFadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}


/* ===== PCメニュー（デフォルトは表示する） ===== */
.pc-menu {
  position: fixed;
  top: 30px;
  right: 40px;
  z-index: 9999;
  width: 245px;
}
.pc-menu > ul {
  display: flex;
  list-style: none;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.pc-menu li a {
  color: white;
  font-size: 14px;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}
.pc-menu li a:hover { opacity: 0.6; }

/* --- Worksサブメニュー（PCは hover で開く） --- */
.works-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(36, 36, 36, 0.95);
  padding: 8px 12px;
  border-radius: 4px;
  flex-direction: column;
  gap: 6px;

  opacity: 0;
  transform: translateY(0);
  transition: opacity 0.18s ease;

  pointer-events: none;
  white-space: nowrap;
  min-width: 220px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

/* hover 開閉（PC側で使用） */
.works-menu:hover .works-submenu {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* JS の .open も残す */
.works-menu.open .works-submenu {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* サブメニューの黒丸を完全に消す */
.works-submenu,
.works-submenu li {
  list-style: none;
}


/* ===== 各スライド左カラムの背景色・グラデーション ===== */
#slide1 .left { background: radial-gradient(circle at top left, rgba(255,255,255,0.15), rgba(0,0,0,0.3)), #0D1B2A; }
#slide2 .left { background: radial-gradient(circle at top left, rgba(255,255,255,0.15), rgba(0,0,0,0.3)), #5C1A1B; }
#slide3 .left { background: radial-gradient(circle at top left, rgba(255,255,255,0.15), rgba(0,0,0,0.3)), #7A918D; }
#slide4 .left { background: radial-gradient(circle at top left, rgba(255,255,255,0.15), rgba(0,0,0,0.3)), #A7C7E7; }
#slide5 .left { background: radial-gradient(circle at top left, rgba(255,255,255,0.15), rgba(0,0,0,0.3)), #70543E; }
#slide6 .left { background: radial-gradient(circle at top left, rgba(255,255,255,0.15), rgba(0,0,0,0.3)), #708238; }
#slide7 .left { background: radial-gradient(circle at top left, rgba(255,255,255,0.15), rgba(0,0,0,0.3)), #536878; }
#slide8 .left { background: radial-gradient(circle at top left, rgba(255,255,255,0.15), rgba(0,0,0,0.3)), #B82010; }
#slide9 .left { background: radial-gradient(circle at top left, rgba(255,255,255,0.15), rgba(0,0,0,0.3)), #DCCCA3; }


/* =========================================================
   スマホ・タブレット設定（1024px以下）
   ========================================================= */
@media (max-width:1024px) {
  html, body {
    scroll-padding-top: 80px; /* SPヘッダーの80pxさげる */
    scroll-snap-type: none;
    overflow-y: auto;
  }
  
  /* モバイル時は first-view を非表示に */
  .first-view {
    display: none !important;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
  }
  .first-view::before {
      content: none;
  }

  /* ★修正：スマホではトップへ戻る矢印（不要なアイコン）を非表示 */
  .scroll-top-arrow {
    display: none;
  }

  /* SPコンテンツ開始位置調整 */
  #slide1 {
    margin-top: 80px;
  }

  section {
    /* 画面の高さからヘッダー分を引く */
    height: calc(100vh - 120px);
  }
  
  header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 80px;
    background: #9dc4d7;
    display: flex;
    align-items: center;
    z-index: 20000;
  }

  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 24px;
    box-sizing: border-box;
  }

  .header-logo {
    height: 40px;
    display: block;
  }

  /* SPメニューのリンクの共通スタイル */
  .sp-menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
  }

  .menu-btn {
    width: 32px;
    height: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    border: none;
    background: none;
    cursor: pointer;
    position: relative;
    top: 0;
    transform: none;
  }

  .menu-btn span {
    width: 100%;
    height: 3px;
    background: #111;
    border-radius: 2px;
    transition: 0.3s;
  }

  .menu-btn.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-btn.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  /* メニューパネル（モバイル） */
  .menu-panel {
    position: fixed;
    top: 0; right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: #9dc4d7;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
    padding: 100px 20px 20px;
    z-index: 2000;
    pointer-events: none;
  }

  .menu-panel.active {
    transform: translateX(0);
    pointer-events: auto;
  }

  .menu-panel > ul {
    display: flex;
    padding-inline-start: 16px;
    flex-direction: column;
    gap: 24px;
    list-style: none !important;
  }
  .menu-panel li {
    list-style: none !important;
  }

  .menu-panel li a {
    font-size: 20px;
    color: #fff;
    text-decoration: none;
  }

  /* ===== SP Works（サブメニュー） ===== */
  .sp-submenu {
    display: flex;
    flex-direction: column;
    margin-top: 12px;
    padding-left: 12px;
    gap: 10px;
    list-style: none;
  }
  .sp-submenu li {
    list-style: none;
  }

  .sp-works-btn {
    font-size: 20px;
    padding-right: 0;
    position: relative;
    border: none;
  }
  .sp-works-btn::after {
    content: "";
  }

  .sp-submenu li a {
    font-size: 17px;
    opacity: 0.85;
    padding: 4px 0;
    border: none;
  }

  /* モバイルでは PC メニュー/パーツ非表示 */
  .pc-menu { display: none !important; }
  .left { display: none !important; visibility: hidden; opacity: 0; pointer-events: none; }
  .right { width: 100%; }
  section .logo { display: none !important; visibility: hidden; opacity: 0; }

  .copy {
    position: absolute;
    bottom: 32px;
    left: 24px;
    right: auto;
    text-align: left;
    max-width: 90%;
    font-size: 20px;
    line-height: 1.6;
  }
}


/* ===== Desktop補助: モバイルヘッダーを隠す ===== */
@media (min-width:1025px) {
  header { display: none !important; pointer-events: none; }
  .menu-panel { display: none !important; pointer-events: none; }
  .pc-menu { display: block; }
}

/* ===== Footer ===== */
.footer-view {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  color: #fff;
  background: radial-gradient(circle at top left, #555 0%, #2a2a2a 70%, #111 100%);
}
.footer-inner { text-align: center; opacity: 0; transition: opacity 1s ease; }
.footer-view.visible .footer-inner { opacity: 1; }
.footer-copy { font-size: 16px; color: #f0f0f0; }

/* ===== 下層ページ共通フッター ===== */
.footer-simple {
  margin-top: 0px;
  text-align: center;
  padding: 60px 0;
  background: transparent;
}
.footer-simple .footer-logo {
  width: 160px;
  opacity: 0.2;
  display: block;
  margin: 0 auto 12px;
  filter: grayscale(100%);
}
.footer-simple p {
  font-size: 12px;
  color: #aaa;
  letter-spacing: 0.05em;
}

/* =========================================================
   Modal (作品詳細)
   ========================================================= */

/* モーダル背景 */
#detail-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(100, 100, 100, 0.6);
  z-index: 30000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
#detail-modal.active {
  visibility: visible;
  opacity: 1;
}

/* モーダルコンテンツエリア */
.modal-content-wrapper {
  background: #9e9e99;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  width: 90%;
  margin: 40px 0;
  padding: 30px;
  box-sizing: border-box;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
#detail-modal.active .modal-content-wrapper {
  transform: scale(1);
}

/* 閉じるボタン */
.modal-close-btn {
  position: sticky;
  top: 0; right: 0;
  margin-bottom: -30px;
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close-btn:hover { opacity: 1; }

/* 詳細コンテンツ */
.modal-title {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 300;
  font-size: 28px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  line-height: 1.3;
  letter-spacing: 0.05em;
}

/* 写真スライダーエリア */
.modal-image-slider {
  margin-bottom: 25px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.modal-images {
  display: flex;
  transition: transform 0.4s ease;
  aspect-ratio: 16 / 9;
}
.modal-image-item {
  min-width: 100%;
  box-sizing: border-box;
}
.modal-image-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* スライダー操作ボタン */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 5;
  font-size: 16px;
  opacity: 0.8;
  transition: opacity 0.2s;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  backdrop-filter: blur(2px);
}
.slider-nav-btn:hover { opacity: 1; background: rgba(0, 0, 0, 0.7); }
.slider-nav-btn.prev { left: 10px; }
.slider-nav-btn.next { right: 10px; }
.slider-nav-btn:disabled { opacity: 0.3; cursor: default; }

/* 詳細テキスト */
.modal-detail-text {
  font-size: 15px;
  line-height: 1.8;
  color: #ffffff;
  white-space: pre-wrap;
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-weight: 300;
}

/* モバイル調整 */
@media (max-width: 768px) {
  .modal-content-wrapper {
    width: 95%;
    max-width: 100%;
    margin: 20px 0;
    padding: 20px;
    max-height: 95vh;
  }
  .modal-title {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .modal-detail-text {
    font-size: 14px;
  }
}

/* =========================================================
   末尾のカーソル・操作設定（修正・統合済み）
   ========================================================= */

/* ボタン・リンク類は確実に指マークにする */
.menu-btn,
.pc-menu a,
.modal-close-btn,
#slider-prev,
#slider-next {
    cursor: pointer;
}

/* PC: デザイン重視で矢印カーソル（クリックは有効） */
@media (min-width: 1025px) {
  section {
    cursor: default;
  }
}

/* ★修正：スマホ（iOS）対策：指マークにしないとタップが反応しない問題を解消 */
@media (max-width: 1024px) {
  section {
    cursor: pointer;
  }
  /* テキスト選択などはしやすいよう、コピー部分は矢印に戻す */
  .copy {
    cursor: default;
  }
}