/* ===========================================
   RESET & BASE
   =========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 62.5%; scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-size: 1.5rem;
  color: #1a1a1a;
  background: #fff;
  line-height: 2;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ===========================================
   HEADER
   =========================================== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.2rem 4rem;
  background: #fff;
  transition: box-shadow 0.5s ease;
}

header.scrolled {
  box-shadow: 0 1px 0 #e0dbd5;
}

body.admin-bar header { top: 32px; }

/* ロゴ */
.logo img {
  height: 3rem;
  width: auto;
  display: block;
}

/* ナビゲーション全体 */
#mainNav {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 3.2rem;
}

/* nav-item */
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-item > a,
.nav-lang-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: #1a1a1a;
  text-transform: uppercase;
  transition: opacity 0.3s;
  cursor: pointer;
  user-select: none;
}

.nav-item > a:hover,
.nav-lang-label:hover { opacity: 0.5; }

/* サブメニュートリガー（▾ボタン） */
.sub-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1rem;
  color: #1a1a1a;
  line-height: 1;
  transition: opacity 0.3s, transform 0.3s;
}

.sub-toggle:hover { opacity: 0.5; }

/* サブメニュー：ドロップダウン（デスクトップ） */
.sub-menu {
  position: absolute;
  top: calc(100% + 1.4rem);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 14rem;
  background: rgba(255,255,255,0.97);
  border: 1px solid #e0dbd5;
  list-style: none;
  padding: 0.6rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}

@media (min-width: 961px) {
  .has-sub:hover .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }
}

.sub-menu li a {
  display: block;
  padding: 0.9rem 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: #1a1a1a;
  transition: opacity 0.2s;
}

.sub-menu li a:hover { opacity: 0.5; }

/* 言語ラベル */
.nav-lang-label {
  font-size: 1.2rem;
  letter-spacing: 0.12em;
}

/* ハンバーガーボタン（PC非表示） */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 2.4rem;
  height: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #1a1a1a;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
}

header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================================
   SECTION OVERLAP EFFECT
   =========================================== */
.section-card {
  position: relative;
  z-index: 1;
}

/* ヒーロー以降のセクションは上に被さる */
.section-card + .section-card {
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -16px 60px rgba(0,0,0,0.10);
  z-index: 2;
}

/* 各セクションの z-index を明示 */
#mission  { z-index: 2; }
#service  { z-index: 3; }
#theory   { z-index: 4; }
#works    { z-index: 5; }
#news     { z-index: 6; }
footer    { z-index: 7; }

/* ===========================================
   INTRO OVERLAY — 大きなキャッチコピーが中央に出て縮む
   =========================================== */
#heroIntro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: #f4f4f4;
  overflow: hidden;
  pointer-events: none;
}

#introText {
  position: fixed;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
  font-size: 8rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: #1a1a1a;
  opacity: 0;
  transform-origin: left top;
  will-change: transform, opacity;
}

#introText.text-in {
  opacity: 1;
  transition: opacity 0.7s ease;
}

#introText.moving {
  transition: transform 0.9s cubic-bezier(0.215, 0.61, 0.355, 1);
}

#heroIntro.fade-out {
  opacity: 0;
  transition: opacity 0.55s ease;
}

/* ===========================================
   HERO — #top-image
   =========================================== */
#hero {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 1;
  background: #f4f4f4;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 14rem 5% 8rem;
  gap: 4rem;
  overflow: hidden;
}

.hero-left {
  padding-left: 2%;
}

/* ---- Hero animation triggers ---- */
.hero-catchcopy {
  margin-bottom: 3.5rem;
}

.hero-catchcopy h1 {
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  line-height: 1.4;
  color: #1a1a1a;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-catchcopy h1.anim-in {
  opacity: 1;
}

.hero-subtitle {
  overflow: hidden;
  margin-bottom: 5rem;
}

.hero-subtitle p {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.9s 0.25s cubic-bezier(0.215,0.61,0.355,1),
              opacity 0.8s 0.25s ease;
}

.hero-subtitle p.anim-in {
  transform: translateY(0);
  opacity: 1;
}

.hero-body {
  font-size: 1.4rem;
  line-height: 2.4;
  letter-spacing: 0.04em;
  color: #444;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s 0.6s ease,
              transform 0.9s 0.6s ease;
}

.hero-body.anim-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 1s 0.4s ease,
              transform 1s 0.4s cubic-bezier(0.215,0.61,0.355,1);
}

.hero-right.anim-in {
  opacity: 1;
  transform: translateX(0);
}

.hero-right img {
  max-width: 100%;
  width: 560px;
}

/* ===========================================
   COMMON SECTION STYLES
   =========================================== */
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
  display: block;
}

.section-title {
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.6;
  color: #1a1a1a;
  margin-bottom: 4rem;
}

.section-body {
  font-size: 1.45rem;
  line-height: 2.4;
  letter-spacing: 0.04em;
  color: #555;
}

/* Reveal animation (scroll-triggered) */
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.85s ease,
              transform 0.85s cubic-bezier(0.215,0.61,0.355,1);
}

.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }
.reveal-d6 { transition-delay: 0.6s; }

/* ===========================================
   MISSION — section_2
   =========================================== */
#mission {
  background: #fff;
  padding: 10rem 5% 10rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  height: 640px;
  border-radius: 50%;
  border: 1px solid #e5e2dc;
  pointer-events: none;
}

.mission-circle::before {
  content: '';
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 1px solid #eee;
}

.mission-inner {
  position: relative;
  z-index: 1;
  max-width: 80rem;
  margin: 0 auto;
}

.mission-title {
  font-size: clamp(2.4rem, 3.5vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.7;
  color: #1a1a1a;
  margin-bottom: 5rem;
  font-style: italic;
}

#mission .section-body {
  text-align: left;
  max-width: 72rem;
  margin: 0 auto;
}

/* ===========================================
   SERVICE — section_3
   =========================================== */
#service {
  background: #f4f4f4;
  padding: 10rem 0 0; /* 左右 padding はそれぞれの子で設定 */
}

.service-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 0 5% 8rem;
}

.service-left .section-label {
  font-size: 1.05rem;
}

.service-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.service-right img {
  max-width: 480px;
  width: 100%;
}

/* ===========================================
   SERVICE HORIZONTAL SCROLL
   縦スクロールに連動して3パネルが横にスライド
   =========================================== */

/* 縦方向のスクロール高さを確保するラッパー */
#svcScrollWrap {
  height: 280vh;
  position: relative;
}

/* sticky コンテナ：スクロール中は画面に固定 */
#svcScrollSticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #f4f4f4;
  border-top: 1px solid #c8c2b8;
}

/* 3パネルを横並びにするトラック */
#svcScrollTrack {
  display: flex;
  width: 300%;
  height: 100%;
  will-change: transform;
}

/* 各パネル（全幅の 1/3 = 100vw） */
.svc-panel {
  width: 33.333%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 8% 0 10%;
  border-right: 1px solid #c8c2b8;
  overflow: hidden;
}
.svc-panel:last-child { border-right: none; }

/* 背景に大きな番号 */
.svc-panel-bg-num {
  position: absolute;
  right: -1%;
  top: 50%;
  transform: translateY(-52%);
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18rem, 22vw, 30rem);
  font-weight: 300;
  color: rgba(0,0,0,0.045);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* コンテンツエリア */
.svc-panel-content {
  position: relative;
  z-index: 1;
  max-width: 54rem;
}

.svc-panel-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  color: #777;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}
.svc-panel-num::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: #c8c2b8;
}

.svc-panel-title {
  font-size: clamp(1.8rem, 1.9vw, 2.6rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  line-height: 1.45;
  white-space: nowrap;
}

.svc-panel-sub {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #777;
  margin-bottom: 3.5rem;
  padding-bottom: 0;
  border-bottom: none;
}

.svc-panel-body {
  font-size: 1.38rem;
  line-height: 2.4;
  letter-spacing: 0.04em;
  color: #555;
}

/* 下部プログレスライン */
#svcProgress {
  position: absolute;
  bottom: 4.5rem;
  left: 10%;
  right: 10%;
  height: 1px;
  background: #d0cbc4;
}
#svcProgressFill {
  height: 100%;
  background: #1a1a1a;
  width: 0%;
  transition: width 0.08s linear;
}

/* スクロールヒント（最初だけ表示） */
#svcScrollHint {
  position: absolute;
  bottom: 5.4rem;
  right: 10%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  color: #aaa;
  text-transform: uppercase;
  transition: opacity 0.4s;
}
#svcScrollHint.hidden { opacity: 0; pointer-events: none; }

/* パネルカウンター */
#svcCounter {
  position: absolute;
  top: 4.5rem;
  right: 10%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 0.25em;
  color: #999;
}

/* ===========================================
   BRANDING THEORY — 左固定 / 右スクロール
   =========================================== */
#theory {
  background: #fff;
  padding: 0;
}

/* 2カラム グリッド（align-items:start が sticky に必須） */
.theory-sticky-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

/* 左：固定パネル */
.theory-left {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 7% 6rem 10%;
  border-right: 1px solid #e8e4de;
}

.theory-left .section-label { margin-bottom: 3rem; }

.theory-left-title {
  font-size: clamp(2.4rem, 2.8vw, 3.4rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: #1a1a1a;
  margin-bottom: 4rem;
}

.theory-left-body {
  font-size: 1.38rem;
  line-height: 2.4;
  letter-spacing: 0.04em;
  color: #666;
}

/* 左パネル内 縦プログレスライン */
.theory-left-progress {
  position: absolute;
  right: -1px;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: transparent;
}
.theory-left-progress-fill {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: #1a1a1a;
  transition: height 0.12s linear;
}

/* 右：スクロールするアイテムリスト */
.theory-right {
  padding: 10rem 10% 10rem 8%;
}

.theory-right-item {
  padding-bottom: 9rem;
  margin-bottom: 9rem;
  border-bottom: 1px solid #e8e4de;
}
.theory-right-item:last-child { border-bottom: none; margin-bottom: 0; }

.theory-item-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  color: #666;
  display: block;
  margin-bottom: 0.5rem;
}

.theory-item-line {
  display: block;
  width: 2.5rem;
  height: 1px;
  background: #ccc;
  margin-bottom: 3rem;
}

.theory-item-title {
  font-size: clamp(3rem, 3.2vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.theory-item-subtitle {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: #1a1a1a;
  display: inline-block;
  padding-bottom: 8px;
  margin-bottom: 4rem;
  line-height: 1.9;
  position: relative;
}

.theory-item-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #1a1a1a;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.theory-right-item.line-in .theory-item-subtitle::after {
  animation: theoryLineIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s forwards;
}

@keyframes theoryLineIn {
  0%   { transform: scaleX(0);    opacity: 0.15; }
  65%  { transform: scaleX(1.06); opacity: 1;    }
  100% { transform: scaleX(1);    opacity: 1;    }
}

.theory-right-item img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
}

/* VIEW MORE — MISSION */
.mission-view-more {
  text-align: center;
  margin-top: 6rem;
}

/* VIEW MORE — THEORY LEFT */
.theory-left-more {
  margin-top: 4rem;
}

/* VIEW MORE */
.theory-view-more {
  text-align: center;
  padding: 6rem 0 8rem;
}

.view-more {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  letter-spacing: 0.3em;
  color: #1a1a1a;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  transition: opacity 0.3s;
}

.view-more::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: #1a1a1a;
}

.view-more:hover { opacity: 0.5; }

/* ===========================================
   WORKS — section_5
   =========================================== */
#works {
  background: #f4f4f4;
  padding: 10rem 0 10rem;
}

.works-inner {
  max-width: 130rem;
  margin: 0 auto;
  padding: 0 5%;
}

/* ---- BRAND IDENTITY スタックカード ---- */
#biStackWrap {
  position: relative;
  height: 400vh;  /* 4トランジション（5枚目は最後に留まる） */
}

#biStackSticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

/* z-indexはJSで設定するのでCSS nth-childは背景色のみ */
.bi-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 55% 45%;
  will-change: transform;
  overflow: hidden;
}

/* 背景色（nth-childはbiProgressBar/biScrollHintを含む → JSでz-index設定） */
.bi-card-bg-1 { background: #f4f4f4; }
.bi-card-bg-2 { background: #eeece8; }
.bi-card-bg-3 { background: #e9e6e1; }
.bi-card-bg-4 { background: #e3dfda; }
.bi-card-bg-5 { background: #dedad4; }

.bi-card-img {
  display: block;  /* a タグでも正しく表示 */
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bi-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.bi-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 8% 6rem 7%;
  overflow: hidden;
}

.bi-card-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 0.32em;
  color: #777;
  display: block;
  margin-bottom: 2.8rem;
}

.bi-card-num em {
  opacity: 0.45;
  font-style: normal;
}

.bi-card-title {
  font-size: clamp(1.7rem, 1.9vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: 2.8rem;
}

.bi-card-body {
  font-size: 1.3rem;
  line-height: 2.4;
  color: #555;
  letter-spacing: 0.04em;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#biProgressBar { display: none; }

/* スクロールヒント */
#biScrollHint {
  position: absolute;
  bottom: 3.5rem;
  right: 5%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.25em;
  color: #666;
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 20;
  transition: opacity 0.4s;
}

#biScrollHint.hidden { opacity: 0; pointer-events: none; }

#biScrollHint::after {
  content: '';
  display: block;
  width: 3rem;
  height: 1px;
  background: #bbb;
}

.works-header {
  margin-bottom: 7rem;
}

.works-bi-label-row {
  margin-bottom: 0;
  padding-top: 2rem;
  padding-bottom: 0;
}

.works-header .section-title {
  font-style: italic;
  margin-bottom: 2.5rem;
}

.works-header .section-body {
  max-width: 64rem;
}

/* Subsection label */
.works-sub-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 0.35em;
  color: #666;
  text-transform: uppercase;
  display: block;
  padding-bottom: 1.5rem;
  border-bottom: none;
  margin-bottom: 5rem;
}

/* Brand Identity items */
.works-bi-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 6rem;
  padding-bottom: 6rem;
  border-bottom: 1px solid #c0bbb4;
}

.works-bi-item:last-child {
  border-bottom: none;
}

/* --- clip-path reveal --- */
.works-bi-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.9s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.works-bi-item.bi-in .works-bi-img {
  clip-path: inset(0 0% 0 0);
}

.works-bi-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 0.9s cubic-bezier(0.215, 0.61, 0.355, 1),
              transform 0.8s cubic-bezier(0.215,0.61,0.355,1);
}

.works-bi-item.bi-in .works-bi-img img {
  transform: scale(1);
}

.works-bi-item:hover .works-bi-img img {
  transform: scale(1.04);
}

/* テキスト：右からスライドイン */
.works-bi-text {
  padding-top: 1rem;
  opacity: 0;
  transform: translateX(3rem);
  transition: opacity 0.8s ease 0.35s, transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) 0.35s;
}

.works-bi-item.bi-in .works-bi-text {
  opacity: 1;
  transform: translateX(0);
}

.works-bi-title {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: #1a1a1a;
  margin-bottom: 2.5rem;
}

.works-bi-body {
  font-size: 1.35rem;
  line-height: 2.4;
  color: #555;
  letter-spacing: 0.04em;
}

/* Philosophy grid */
.works-subsection {
  margin-bottom: 8rem;
}

.works-subsection--first {
  margin-top: 10rem;
}

.works-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 15px;
  row-gap: 30px;
}

.works-grid-2 .works-img-wrap {
  display: block;  /* a タグでも正しく表示 */
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  opacity: 0;
  transform: translateY(2.4rem);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.215,0.61,0.355,1);
}

.works-grid-2 .works-img-wrap.grid-in {
  opacity: 1;
  transform: translateY(0);
}

.works-grid-2 .works-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.215,0.61,0.355,1);
}

.works-grid-2 .works-img-wrap:hover img {
  transform: scale(1.05);
}

/* Philosophy hover overlay */
.phi-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.4rem 3rem;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.works-grid-2 .works-img-wrap:hover .phi-overlay {
  opacity: 1;
}

.phi-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 1rem;
}

.phi-line {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0.4rem;
  display: flex;
  gap: 0.8em;
}

.phi-line:last-child { margin-bottom: 0; }

.phi-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-style: italic;
  letter-spacing: 0.18em;
  color: #fff;
  flex-shrink: 0;
}

/* ---- WEBSITE: 無限マーキー ---- */
.works-marquee-outer {
  overflow: hidden;
  cursor: default;
}

.works-marquee-track {
  display: flex;
  gap: 1.6rem;
  width: max-content;
  animation: wsvMarquee 28s linear infinite;
}

.works-marquee-outer:hover .works-marquee-track {
  animation-play-state: paused;
}

@keyframes wsvMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.works-marquee-item {
  flex-shrink: 0;
  width: 32rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid #d8d3cc;
  background: #fff;
  transition: box-shadow 0.35s ease;
}

.works-marquee-item:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.12);
}

.works-marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s cubic-bezier(0.215,0.61,0.355,1);
}

.works-marquee-item:hover img {
  transform: scale(1.04);
}

/* ---- MOVIE: 非対称グリッド ---- */
.works-movie-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.movie-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.85s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.movie-item.movie-in {
  clip-path: inset(0 0 0 0);
}

/* 1行目: 大(3) + 小(2) */
.movie-item:nth-child(1) { grid-column: 1 / 4; }
.movie-item:nth-child(2) { grid-column: 4 / 6; }
/* 2行目: 小(2) + 大(3) */
.movie-item:nth-child(3) { grid-column: 1 / 3; }
.movie-item:nth-child(4) { grid-column: 3 / 6; }
/* 3行目: 大(3) + 小(2) */
.movie-item:nth-child(5) { grid-column: 1 / 4; }
.movie-item:nth-child(6) { grid-column: 4 / 6; }

.movie-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.215,0.61,0.355,1);
}

.movie-item:hover img {
  transform: scale(1.04);
}

/* ▶ ホバー時のプレイアイコン */
.movie-item::after {
  content: '';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.35s ease;
}

.movie-item:hover::after {
  background: rgba(0,0,0,0.28);
}

.movie-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 5.6rem;
  height: 5.6rem;
  border: 1.5px solid rgba(255,255,255,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 2;
  pointer-events: none;
}

.movie-play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.9rem 0 0.9rem 1.6rem;
  border-color: transparent transparent transparent rgba(255,255,255,0.9);
  margin-left: 0.3rem;
}

.movie-item:hover .movie-play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.works-view-more {
  text-align: center;
  margin-top: 5rem;
}

/* ===========================================
   NEWS — section_6
   =========================================== */
#news {
  background: #fff;
  padding: 10rem 5%;
}

.news-inner {
  max-width: 110rem;
  margin: 0 auto;
}

#news .section-label {
  text-align: center;
  display: block;
}

#news .section-title {
  text-align: center;
}

.news-list {
  list-style: none;
  margin-top: 6rem;
  margin-bottom: 5rem;
}

.news-item {
  padding: 2.8rem 0;
  border-bottom: 1px solid #e5e2dc;
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 3rem;
  align-items: baseline;
  transition: opacity 0.3s;
}

.news-item:first-child {
  border-top: 1px solid #e5e2dc;
}

.news-item:hover { opacity: 0.6; }

.news-date {
  font-family: 'Noto Serif JP', '游明朝', 'Yu Mincho', serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: #999;
}

.news-title {
  font-size: 1.6rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
  color: #1a1a1a;
}

.news-view-more {
  text-align: center;
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
  background: #f4f4f4;
  padding: 0;
  position: relative;
}

.footer-inner {
  max-width: 130rem;
  margin: 0 auto;
}

/* ロゴ（左）+ ナビ2列（右）の3カラムグリッド */
.footer-top {
  display: grid;
  grid-template-columns: 28rem 1fr 1fr;
  gap: 0 4rem;
  align-items: start;
  padding: 7rem 5% 7rem;
}

.footer-logo {
  display: block;
}

.footer-logo img {
  width: 16rem;
  height: auto;
  display: block;
}

/* ナビ列：それぞれ独立した縦リスト */
.footer-nav-col {
  display: flex;
  flex-direction: column;
}

.footer-nav-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 0.22em;
  color: #333;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.8rem;
  font-weight: 400;
}

.footer-nav-item {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  letter-spacing: 0.22em;
  color: #333;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1.2rem;
  transition: color 0.3s;
}

.footer-nav-item:hover { color: #999; }

/* CONTACT ボタン */
.footer-contact {
  padding: 4rem 5%;
}

.footer-contact-btn {
  display: block;
  width: 100%;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  letter-spacing: 0.4em;
  color: #1a1a1a;
  text-transform: uppercase;
  background: none;
  border: 1px solid #999;
  padding: 2.8rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: color 0.45s ease, border-color 0.45s ease;
}

/* 背景が下から上に塗り上がる */
.footer-contact-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #1a1a1a;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.215, 0.61, 0.355, 1);
  z-index: 0;
}

.footer-contact-btn span {
  position: relative;
  z-index: 1;
}

.footer-contact-btn:hover::before {
  transform: translateY(0);
}

.footer-contact-btn:hover {
  color: #fff;
  border-color: #1a1a1a;
}

.footer-bottom {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  color: #999;
  padding: 2.6rem 5%;
}

/* ===========================================
   SCROLL-DRIVEN SECTION ENTER
   =========================================== */
.section-card {
  /* Each section (except hero) slides up slightly as it enters */
}

.section-enter {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.215,0.61,0.355,1);
}

.section-enter.in {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================================
   MEDIA QUERIES
   =========================================== */
@media (max-width: 960px) {
  #hero {
    position: relative;
    height: auto;
    min-height: 100svh;
    grid-template-columns: 1fr;
    padding: 12rem 5% 6rem;
  }

  /* モバイルではアニメーション後の状態を即時表示 */
  #heroCatch,
  #heroSub,
  .hero-body,
  #heroIllust {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-right {
    transform: translateX(0);
    order: -1;
    margin-bottom: 3rem;
  }

  .service-top,
  .works-bi-item {
    grid-template-columns: 1fr;
  }

  .service-columns,
  .theory-boxes {
    grid-template-columns: 1fr;
  }

  .theory-sticky-wrap {
    grid-template-columns: 1fr;
  }
  .theory-left {
    position: relative;
    height: auto;
    padding: 6rem 5% 4rem;
  }
  .theory-left-progress { display: none; }
  .theory-right { padding: 4rem 5% 6rem; }

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

  .works-grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 2rem;
  }

  .footer-logo {
    grid-column: 1 / -1;
  }

  .footer-logo img {
    width: 13rem;
  }

  /* ハンバーガーボタン表示（高詳細度で確実に表示）*/
  #mainHeader #navToggle,
  .nav-toggle { display: flex !important; }

  #mainHeader {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  /* ナビゲーション：スライドインオーバーレイ */
  #mainNav {
    position: fixed !important;
    top: 0; left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 10rem 8% 6rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    z-index: 999;
  }

  header.nav-open #mainNav { transform: translateX(0); }

  /* nav-item：横並び → 縦並びリスト */
  .nav-item {
    flex-wrap: wrap;
    width: 100%;
    border-bottom: 1px solid #e0dbd5;
    padding: 1.8rem 0;
    gap: 0;
  }

  .nav-item > a,
  .nav-lang-label {
    font-size: 2rem;
    flex: 1;
  }

  .sub-toggle {
    font-size: 1.6rem;
    padding: 0.4rem;
  }

  /* サブメニュー：アコーディオン式（max-height で開閉） */
  .sub-menu {
    position: static;
    width: 100%;
    transform: none;
    border: none;
    background: #f9f8f6;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    white-space: normal;
  }

  .has-sub.sub-open .sub-menu { max-height: 40rem; }
  .has-sub.sub-open .sub-toggle { transform: rotate(180deg); }

  .sub-menu li a {
    font-size: 1.5rem;
    padding: 1.2rem 2rem;
  }

  /* BRAND IDENTITY スタックカード → モバイルは縦並びリスト */
  #biStackWrap {
    height: auto;
  }

  #biStackSticky {
    position: relative;
    height: auto;
    overflow: visible;
  }

  .bi-card {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    transform: none !important;
    height: auto;
    margin-bottom: 3rem;
  }

  .bi-card:last-child {
    margin-bottom: 0;
  }

  .bi-card-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }

  .bi-card-text {
    padding: 3.5rem 5%;
    justify-content: flex-start;
  }

  .bi-card-title {
    font-size: clamp(1.6rem, 4vw, 2rem);
  }

  .bi-card-body {
    -webkit-line-clamp: unset;
  }

  #biProgressBar,
  #biScrollHint {
    display: none;
  }
}

/* スマホ専用：既存テーマの上書きに対抗する高詳細度ルール */
@media (max-width: 768px) {
  #mainHeader {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  #mainHeader #navToggle,
  #navToggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1002 !important;
  }
  #mainNav {
    position: fixed !important;
    transform: translateX(100%) !important;
  }
  #mainHeader.nav-open #mainNav {
    transform: translateX(0) !important;
  }
}
