/* ============================================================
   top.css  — TOPページ専用スタイル (Monotone)
   Innovation Partners Corporate Site
   ============================================================ */

/* ─── HERO ────────────────────────────────────────────────── */
.top-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.top-hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?w=1920&q=85') center/cover no-repeat;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
  filter: grayscale(60%) brightness(0.7);
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.00); }
}
.top-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    rgba(10,10,10,0.90) 0%,
    rgba(10,10,10,0.60) 55%,
    rgba(10,10,10,0.25) 100%);
}
.top-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x);
  max-width: 860px;
}

.top-hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeInUp 0.9s 0.3s ease forwards;
}
.top-hero-eyebrow::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: rgba(255,255,255,0.35);
}

.top-hero-catch {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.12em;
  line-height: 1.6;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeInUp 0.9s 0.5s ease forwards;
}
/* 装飾テキスト「INNOVATION」— 非表示 */
.top-hero-catch-en { display: none !important; }
.top-hero-desc {
  font-size: 13px;
  line-height: 2.2;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
  max-width: 480px;
  margin-bottom: 48px;
  opacity: 0;
  animation: fadeInUp 0.9s 0.8s ease forwards;
}
.top-hero-btns {
  display: flex;
  gap: 16px;
  opacity: 0;
  animation: fadeInUp 0.9s 1.0s ease forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  text-decoration: none;
  padding: 18px 40px;
  border: 1px solid var(--white);
  transition: all 0.3s;
}
.btn-primary:hover { background: transparent; color: var(--white); gap: 20px; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.3);
  text-decoration: none;
  padding: 18px 40px;
  transition: all 0.3s;
}
.btn-outline:hover { border-color: var(--white); gap: 20px; }

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2;
  opacity: 0;
  animation: fadeInUp 1s 1.4s ease forwards;
}
.scroll-indicator span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2s 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:0.4; transform:scaleY(1); }
  50%      { opacity:1;   transform:scaleY(1.15); }
}

/* 右下統計 */
.hero-stats {
  position: absolute;
  bottom: 48px; right: var(--pad-x);
  z-index: 2;
  display: flex;
  gap: 1px;
  opacity: 0;
  animation: fadeInUp 0.9s 1.1s ease forwards;
}
.hero-stat-item {
  background: rgba(10,10,10,0.7);
  backdrop-filter: blur(6px);
  padding: 20px 28px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 300;
  color: var(--white);
  letter-spacing: 0.04em; line-height: 1; margin-bottom: 6px;
}
.hero-stat-label { font-size: 9px; color: rgba(255,255,255,0.65); letter-spacing: 0.18em; }

@keyframes fadeInUp {
  from { opacity:0; transform:translateY(20px); }
  to   { opacity:1; transform:translateY(0); }
}


/* ─── PHILOSOPHY BAND ─────────────────────────────────────── */
.philosophy-band {
  background: var(--black);
  padding: 52px var(--pad-x);
  border-top: 1px solid rgba(255,255,255,0.07);
}
.philosophy-band .inner {
  display: flex;
  align-items: center;
  gap: 64px;
}
.phi-band-mission {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em; line-height: 1.9;
  flex-shrink: 0;
}
.phi-band-mission strong { color: var(--white); font-weight: 400; }
.phi-band-divider { width: 1px; height: 48px; background: rgba(255,255,255,0.12); flex-shrink: 0; }
.phi-band-values  { display: flex; gap: 48px; margin-left: auto; }
.phi-band-value   { text-align: center; }
.phi-band-value-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 6px;
}
.phi-band-value-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px; font-weight: 400;
  color: var(--white); letter-spacing: 0.1em;
}


/* ─── TOP SECTION HEADER ──────────────────────────────────── */
.top-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 150px;
  margin: 0 auto 56px;
  max-width: var(--max-w);
}
.top-sec-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--charcoal);
  font-weight: 400;
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.top-sec-label::before { content:''; display:block; width:24px; height:1px; background:var(--charcoal); }
.top-sec-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 28px; font-weight: 400; color: var(--black); letter-spacing: 0.12em;
  line-height: 1.35; min-height: 38px;
}
.top-section-header-left { display:flex; flex-direction:column; align-items:flex-start; }
.top-sec-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px; font-weight: 300;
  color: rgba(10,10,10,0.05);
  letter-spacing: 0.08em; line-height: 1;
  pointer-events: none; user-select: none;
  line-height: 1; min-height: 56px;
}
.top-section-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
}
.view-all-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--black); text-decoration: none;
  display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px;
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  min-height: 0;
  height: auto;
  line-height: 1;
  transition: gap 0.3s, color 0.3s;
  margin-top: 8px;
  padding: 0 0 5px;
  border-bottom: 1px solid var(--black);
  white-space: nowrap;
  box-sizing: border-box;
}
.view-all-link:hover { color: var(--gray-mid); border-color: var(--gray-mid); gap: 16px; }


/* ─── SERVICE SECTION ─────────────────────────────────────── */
.top-service { padding: var(--section-y) var(--pad-x); background: var(--white); }

.top-service-grid {
  display: grid;
  gap: 2px; background: var(--gray-pale);
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: stretch;   /* カード高さを統一 */
}
.top-svc-card {
  background: var(--white); text-decoration: none;
  display: flex; flex-direction: column;
  overflow: hidden; position: relative; transition: background 0.4s;
}
.top-svc-card:hover { background: var(--black); }

.top-svc-img { height: 240px; overflow: hidden; position: relative; flex-shrink: 0; }
.top-svc-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s ease, filter 0.4s;
  filter: brightness(0.82) grayscale(20%);
}
.top-svc-card:hover .top-svc-img img { transform: scale(1.06); filter: brightness(0.45) grayscale(40%); }

.top-svc-num {
  position: absolute; top: 20px; left: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--white); background: rgba(10,10,10,0.6); padding: 4px 10px; z-index: 2;
}
.top-svc-body {
  padding: 28px 32px 32px;
  display: flex; flex-direction: column;
  flex: 1;
}
.top-svc-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--charcoal); font-weight: 400; margin-bottom: 10px; transition: color 0.4s;
}
.top-svc-card:hover .top-svc-en { color: var(--silver-light); }
.top-svc-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px; font-weight: 400; color: var(--black);
  letter-spacing: 0.1em; margin-bottom: 14px; transition: color 0.4s;
}
.top-svc-card:hover .top-svc-title { color: var(--white); }
.top-svc-desc {
  font-size: 12px; line-height: 2; color: var(--gray-mid);
  letter-spacing: 0.05em; transition: color 0.4s;
}
.top-svc-card:hover .top-svc-desc { color: rgba(255,255,255,0.55); }
.top-svc-arrow {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--black); transition: color 0.4s, gap 0.3s;
}
.top-svc-card:hover .top-svc-arrow { color: rgba(255,255,255,0.6); gap: 14px; }
.top-svc-arrow::after { content:'→'; font-size:13px; }


/* ─── NUMBERS ─────────────────────────────────────────────── */
.top-numbers {
  background: var(--black-soft);
  padding: var(--section-y) var(--pad-x);
  position: relative; overflow: hidden;
}
.top-numbers::before { content: ''; display: none; }
.numbers-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; background: rgba(255,255,255,0.06); position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
}
.number-item {
  background: rgba(255,255,255,0.02); padding: 48px 32px; text-align: center;
  transition: background 0.3s; border-top: 1px solid rgba(255,255,255,0.08);
}
.number-item:hover { background: rgba(255,255,255,0.06); }
.number-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px; font-weight: 300; color: var(--white);
  letter-spacing: 0.02em; line-height: 1; margin-bottom: 12px;
}
.number-val sup { font-size: 28px; vertical-align: super; letter-spacing: 0.1em; color: var(--silver); }
.number-label-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.7); letter-spacing: 0.12em; margin-bottom: 6px;
}
.number-label-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(255,255,255,0.25);
}


/* ─── WORKS ───────────────────────────────────────────────── */
.top-works { padding: var(--section-y) var(--pad-x); }

.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--gray-pale); max-width: var(--max-w); margin: 0 auto; }
.work-card {
  background: var(--white); overflow: hidden; display: block;
  text-decoration: none; position: relative; transition: background 0.3s;
}
.work-card:hover { background: var(--black); }
.work-card.featured { grid-row: span 2; display: flex; flex-direction: column; }
.work-card.featured .work-img { flex:1; height:auto; min-height:300px; }

.work-img { height: 220px; overflow: hidden; }
.work-img img {
  width:100%; height:100%; object-fit:cover;
  transition: transform 0.6s, filter 0.4s;
  filter: brightness(0.9) grayscale(15%);
}
.work-card:hover .work-img img { transform:scale(1.05); filter:brightness(0.45) grayscale(40%); }

.work-body { padding: 28px 32px 32px; }
.work-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.work-tag {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--charcoal); border: 1px solid var(--gray-dark); padding: 3px 10px;
  transition: color 0.4s, border-color 0.4s;
}
.work-card:hover .work-tag { color: rgba(255,255,255,0.5); border-color: rgba(255,255,255,0.2); }
.work-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px; font-weight: 400; color: var(--black);
  letter-spacing: 0.08em; line-height: 1.6; margin-bottom: 12px; transition: color 0.4s;
}
.work-card:hover .work-title { color: var(--white); }
.work-card.featured .work-title { font-size: 20px; }
.work-location {
  font-size: 11px; color: var(--gray-mid); letter-spacing: 0.1em; transition: color 0.4s;
}
.work-card:hover .work-location { color: rgba(255,255,255,0.4); }


/* ─── NEWS ────────────────────────────────────────────────── */
.top-news { padding: var(--section-y) var(--pad-x); background: var(--white); }

.news-list { border-top: 1px solid var(--gray-pale); max-width: var(--max-w); margin: 0 auto; }
.news-item {
  display: grid; grid-template-columns: 120px 1fr auto;
  gap: 0 32px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--gray-pale);
  text-decoration: none; transition: background 0.2s, padding 0.2s;
}
.news-item:hover { margin: 0 -24px; }
.news-date { font-family: 'Cormorant Garamond', serif; font-size: 12px; letter-spacing: 0.12em; color: var(--charcoal); font-weight: 400; }
.news-title { font-size: 13px; color: var(--black); letter-spacing: 0.06em; line-height: 1.7; transition: color 0.3s; }
.news-item:hover .news-title { color: var(--charcoal); }
.news-arrow { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: var(--gray-pale); transition: color 0.3s, transform 0.3s; }
.news-item:hover .news-arrow { color: var(--black); transform: translateX(4px); }


/* ─── GROUP COMPANY ───────────────────────────────────────── */
.top-group {
  background: var(--black-mid);
  padding: var(--section-y) var(--pad-x);
  position: relative; overflow: hidden;
}
.top-group::before {
  content: 'Lila';
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 240px; font-weight: 300;
  color: rgba(255,255,255,0.025); letter-spacing: 0.05em; line-height: 1;
}
.group-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; max-width: var(--max-w); margin: 0 auto; }
.group-badge {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px; letter-spacing: 0.35em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.15);
  padding: 5px 14px; display: inline-block; margin-bottom: 24px;
}
.group-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px; font-weight: 300; letter-spacing: 0.12em;
  color: var(--white); line-height: 1; margin-bottom: 6px;
}
.group-name-ja {
  font-family: 'Noto Serif JP', serif;
  font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.35);
  letter-spacing: 0.15em; margin-bottom: 28px;
}
.group-desc { font-size: 13px; line-height: 2.2; color: rgba(255,255,255,0.55); letter-spacing: 0.06em; margin-bottom: 36px; }
.group-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 4px;
  transition: gap 0.3s, color 0.3s;
}
.group-link:hover { gap: 20px; color: var(--white); }

.group-right { display: grid; grid-template-columns: 1fr; gap: 1px; background: rgba(255,255,255,0.06); }
.group-feature {
  background: rgba(255,255,255,0.02); padding: 28px 32px;
  border-left: 2px solid transparent; transition: border-color 0.3s, background 0.3s;
}
.group-feature:hover { border-left-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); }
.group-feature-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); margin-bottom: 8px;
}
.group-feature-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 14px; font-weight: 400; color: var(--white); letter-spacing: 0.1em; margin-bottom: 8px;
}
.group-feature-desc { font-size: 11px; line-height: 1.9; color: rgba(255,255,255,0.4); letter-spacing: 0.05em; }


/* ─── RECRUIT BAND ────────────────────────────────────────── */
.recruit-band {
  background: var(--off-white);
  padding: 72px var(--pad-x);
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: center;
  border-top: 1px solid var(--gray-pale);
  max-width: 100%;
}
.recruit-band-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 48px; align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.recruit-copy {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px; font-weight: 400; color: var(--black); letter-spacing: 0.12em; margin-bottom: 12px;
}
.recruit-sub { font-size: 13px; color: var(--gray-mid); letter-spacing: 0.06em; line-height: 1.9; }
.recruit-btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--white); background: var(--black);
  text-decoration: none; padding: 20px 40px; flex-shrink: 0;
  border: 1px solid var(--black); transition: all 0.3s;
}
.recruit-btn:hover { background: transparent; color: var(--black); gap: 20px; }


/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .top-hero-content { padding: 0 var(--pad-x); }
  .hero-stats       { display: none; }
  .philosophy-band  { flex-direction: column; gap: 32px; padding: 48px var(--pad-x); }
  .phi-band-divider { width: 64px; height: 1px; }
  .phi-band-values  { gap: 24px; }
  .top-service-grid { grid-template-columns: 1fr; }
  .numbers-grid     { grid-template-columns: repeat(2,1fr); }
  .works-grid       { grid-template-columns: 1fr; }
  .work-card.featured { grid-row: span 1; }
  .group-inner      { grid-template-columns: 1fr; gap: 48px; }
  .recruit-band     { grid-template-columns: 1fr; gap: 32px; }
}


/* ─── GLOBAL WIDTH CONTROL (top) ───────────────────────── */
.philosophy-band,
.top-service,
.top-numbers,
.top-works,
.top-news,
.top-group,
.recruit-band {
  /* padding はそのまま、中身を max-w で制御 */
}

/* 各セクション直下のコンテンツ */
.top-service    > .top-section-header,
.top-service    > .top-service-grid,
.top-numbers    > .top-section-header,
.top-numbers    > .numbers-grid,
.top-works      > .top-section-header,
.top-works      > .works-grid,
.top-news       > .top-section-header,
.top-news       > .news-list,
.top-group      > .group-inner,
.recruit-band   > .recruit-band-inner {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}


/* ═══════════════════════════════════════════════════════
   CAROUSEL HERO
═══════════════════════════════════════════════════════ */

/* ─── ベース構造 ────────────────────────────────────────── */
.carousel-hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

/* スライドコンテナ */
.ch-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* 各スライド */
.ch-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0s;
  pointer-events: none;
}
.ch-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.ch-slide.fade-in  { animation: chFadeIn  1.4s ease forwards; }
.ch-slide.fade-out { animation: chFadeOut 1.4s ease forwards; }

@keyframes chFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes chFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

/* 背景画像 */
.ch-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 6s ease-out;
  will-change: transform;
}
.ch-slide.active .ch-bg {
  transform: scale(1.00);
}

/* オーバーレイ */
.ch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(10,10,10,0.82) 0%,
    rgba(10,10,10,0.45) 50%,
    rgba(10,10,10,0.25) 100%
  );
}

/* ─── スライドテキスト（右側に配置）────────────────────── */
.ch-text {
  display: none;           /* 非表示がデフォルト */
  text-align: right;
  transform: translateY(16px);
  transition: opacity 0.8s 0.4s ease, transform 0.8s 0.4s ease;
}
.ch-text.active {
  display: block;
}

.ch-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-bottom: 14px;
}
.ch-eyebrow::after {
  content: '';
  display: block;
  width: 28px; height: 1px;
  background: rgba(255,255,255,0.3);
}
/* ::before は削除（右寄せなので after を使用） */
.ch-eyebrow::before { display: none; }

.ch-catch {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.12em;
  line-height: 1.8;
  margin-bottom: 14px;
}
.ch-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  line-height: 2;
}

/* 左右を区切る縦線 */
.ch-text::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
}

/* ─── 右カラム（テキスト＋統計を縦積み）─────────────────── */
.ch-right-col {
  position: absolute;
  right: var(--pad-x);
  bottom: 56px;           /* ドットナビと同じ高さを基準 */
  max-width: 420px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}


/* ─── UI レイヤー（固定）───────────────────────────────────── */
.ch-ui {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.ch-ui > * { pointer-events: auto; }

/* メインコピーは左下に固定、右半分には侵入しない */
.carousel-hero .top-hero-content {
  position: absolute;
  bottom: 100px;
  left: var(--pad-x);
  padding: 0;
  max-width: 520px;
  z-index: 2;
}
.carousel-hero .top-hero-catch {
  font-size: clamp(36px, 5vw, 68px);
  margin-bottom: 32px;
}
.carousel-hero .top-hero-eyebrow {
  margin-bottom: 20px;
  opacity: 1;
  animation: none;
}

/* ─── ドットナビ ────────────────────────────────────────── */
.ch-nav {
  position: absolute;
  left: var(--pad-x);
  bottom: 56px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 20;
}
.ch-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.4s;
  position: relative;
}
.ch-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid transparent;
  transition: border-color 0.4s;
}
.ch-dot.active {
  background: var(--white);
  transform: scale(1.4);
}
.ch-dot.active::after {
  border-color: rgba(255,255,255,0.4);
}
.ch-dot:hover { background: rgba(255,255,255,0.7); }

/* ─── キャプション ──────────────────────────────────────── */
.ch-caption-wrap {
  position: absolute;
  left: calc(var(--pad-x) + 80px);
  bottom: 60px;
  z-index: 20;
  height: 20px;
  overflow: hidden;
}
.ch-caption {
  position: absolute;
  top: 0; left: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}
.ch-caption.active {
  opacity: 1;
  transform: translateY(0);
}
.ch-cap-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.4);
}
.ch-cap-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.ch-caption::before {
  content: '';
  display: block;
  width: 20px; height: 1px;
  background: rgba(255,255,255,0.3);
}

/* ─── プログレスバー ─────────────────────────────────────── */
.ch-progress-wrap {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.08);
  z-index: 20;
}
.ch-progress-bar {
  height: 100%;
  background: rgba(255,255,255,0.55);
  width: 0%;
  transition: width linear;
}

/* ─── 右下統計・スクロール（位置調整）─────────────────────── */
.carousel-hero .hero-stats {
  /* ch-right-col 内のフロー要素として配置 */
  position: static;
  animation: none;
  opacity: 1;
  margin-top: 24px;
}
.carousel-hero .scroll-indicator {
  animation: none;
  opacity: 1;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .ch-right-col { max-width: 280px; bottom: 48px; }
  .ch-text::before { display: none; }
  .carousel-hero .top-hero-content { left: var(--pad-x); bottom: 80px; max-width: 400px; }
  .ch-caption-wrap { left: calc(var(--pad-x) + 72px); }
}
@media (max-width: 768px) {
  /* モバイルでは右カラム全体を非表示 */
  .ch-right-col { display: none; }
  .carousel-hero .top-hero-content { max-width: 90vw; }
}

/* ============================================================
   TOP refinement overrides
   ============================================================ */
.ch-text {
  display: block;
  position: absolute;
  right: 0;
  bottom: 88px;
  width: 420px;
  transform: translateY(18px);
  transition: opacity 1.4s ease, transform 1.4s ease, visibility 0s 1.4s;
}
.ch-text.active {
  transition: opacity 1.4s ease, transform 1.4s ease, visibility 0s;
}
.ch-right-col { min-height: 320px; }
.carousel-hero .hero-stats { position:absolute; right:0; bottom:0; margin-top:0; }
.top-news, .top-service { background: rgba(255,255,255,0.72); }
.top-works { background: var(--off-white); }
.top-numbers { background: #0d0d0d; }
.top-news, .top-works, .top-numbers, .top-service { padding-top: 128px; padding-bottom: 128px; }
.news-item { grid-template-columns: 132px 1fr auto; padding: 28px 0; }
.news-title { font-size: 15px; line-height: 1.85; }
.news-date { font-size: 13px; }
.top-service-grid { grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--gray-light); }
.top-svc-body { min-height: 290px; }
.top-svc-desc { font-size: 13px; line-height: 1.9; }
.top-svc-arrow { margin-top: auto; padding-top: 24px; }
.works-grid { gap: 1px; background: var(--gray-light); }
.work-location { font-size: 12px; line-height: 1.8; }
.recruit-band { background: linear-gradient(180deg, #efeee9 0%, #deddd8 100%); }
@media (max-width: 1024px) {
  .top-service-grid { grid-template-columns: repeat(2,1fr); }
  .news-item { grid-template-columns: 1fr auto; gap: 8px 24px; }
  .news-date { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .top-news, .top-works, .top-numbers, .top-service { padding-top: 88px; padding-bottom: 88px; }
  .top-service-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Revision 02 — hero overlap / top layout / readability
   ============================================================ */
/* 右下テキストと数値ブロックを重ねず、同じカラム内で縦積み */
.ch-right-col{
  bottom:56px !important;
  min-height:0 !important;
  gap:24px !important;
}
.ch-text{
  position:relative !important;
  right:auto !important;
  width:min(420px, 36vw) !important;
  min-height:190px;
  pointer-events:none;
}
.carousel-hero .hero-stats{
  position:relative !important;
  right:auto !important;
  bottom:auto !important;
  margin-top:0 !important;
  pointer-events:auto;
}
.hero-stat-item{ background:rgba(10,10,10,.78); }
.ch-sub{ color:rgba(255,255,255,.72); }
.ch-eyebrow{ color:rgba(255,255,255,.66); }
.top-news .news-item:nth-of-type(n+4){ display:none; }
.top-news{ background:rgba(255,255,255,.86); }
.top-service{ background:#fff; }
.top-works{ background:#f3f2ee; }
.news-list{ border-color:var(--line-soft); }
.news-item{ border-color:var(--line-soft); }
.news-title{ color:#111; }
.news-date{ color:#333; }
.top-svc-desc,.work-location{ color:#333; }
.top-svc-card:hover .top-svc-desc,.work-card:hover .work-location{ color:rgba(255,255,255,.72); }
.work-tag{ border-color:#555; }
@media (max-width:1024px){
  .ch-text{ width:min(320px, 36vw) !important; }
}
@media (max-width:768px){

}

/* ============================================================
   Revision 03 — hero fixed text carousel / section order polish
   ============================================================ */
.ch-right-col{
  width:min(430px, 38vw) !important;
  height:326px !important;
  right:var(--pad-x) !important;
  bottom:52px !important;
  display:block !important;
  pointer-events:none;
}
.ch-text{
  position:absolute !important;
  top:0 !important;
  right:0 !important;
  bottom:auto !important;
  width:100% !important;
  min-height:178px !important;
  display:block !important;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:opacity 1.25s ease, transform 1.25s ease, visibility 0s 1.25s;
}
.ch-text.active{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
  transition:opacity 1.25s ease, transform 1.25s ease, visibility 0s;
}
.carousel-hero .hero-stats{
  position:absolute !important;
  right:0 !important;
  bottom:0 !important;
  margin:0 !important;
}
.ch-catch{ margin-bottom:12px; }
.ch-sub{ color:rgba(255,255,255,.76); }
@media (max-width:1024px){
  .ch-right-col{ width:min(330px, 38vw) !important; height:300px !important; }
  .hero-stat-item{ padding:18px 20px; }
}
@media (max-width:768px){
  .ch-right-col{ display:none !important; }
}


/* TOP NEWS update: stable hover width */
.news-item {
  padding: 28px 24px;
  margin: 0;
  transition: background 0.2s;
}
.news-item:hover {
  background: var(--off-white);
  margin: 0;
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 768px) {
  .news-item { padding-left: 18px; padding-right: 18px; }
  .news-item:hover { padding-left: 18px; padding-right: 18px; }
}


/* Revision 15 — top service vertical alignment */
.top-svc-body{
  display:grid !important;
  grid-template-rows:56px 66px 1fr auto !important;
  min-height:310px !important;
  align-content:start !important;
}
.top-svc-en,.top-svc-title,.top-svc-desc,.top-svc-arrow{ margin-top:0 !important; }
.top-svc-en{ align-self:start !important; }
.top-svc-title{ align-self:start !important; margin-bottom:0 !important; }
.top-svc-desc{ align-self:start !important; }
.top-svc-arrow{ align-self:end !important; padding-top:24px !important; margin-top:0 !important; }
@media (max-width:1024px){
  .top-svc-body{ grid-template-rows:auto auto 1fr auto !important; min-height:0 !important; }
}


/* Revision 21 — Top Works logo card treatment */
.work-img img[src$=".svg"]{
  object-fit:contain!important;
  box-sizing:border-box!important;
  padding:42px 52px!important;
  background:#fff!important;
  filter:none!important;
}
.work-card:hover .work-img img[src$=".svg"]{
  transform:none!important;
  filter:none!important;
}
.work-card:hover .work-img{
  background:#fff!important;
}


/* ============================================================
   Revision 25 — top service cards text alignment
   ============================================================ */
.top-svc-card .top-svc-title{ line-height:1.55 !important; }

/* Revision 26 — top service card title center / body left */
.top-svc-card .top-svc-body{ text-align:left !important; }
.top-svc-card .top-svc-en,
.top-svc-card .top-svc-title{
  text-align:center !important;
  justify-content:center !important;
  align-self:stretch !important;
  width:100% !important;
}
.top-svc-card .top-svc-desc{
  text-align:left !important;
  align-self:stretch !important;
}
@media(max-width:700px){
  .top-svc-card .top-svc-en,
  .top-svc-card .top-svc-title{ text-align:left !important; justify-content:flex-start !important; }
}


/* 2026-07-17 definitive top WORKS logo weight */
.work-img:has(img[src$=".svg"]),
.work-img:has(img[src*="ureshino-living-lab-01"]){background:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;}
.work-img img[src$=".svg"],
.work-img img[src*="ureshino-living-lab-01"]{
  width:40%!important;height:40%!important;max-width:180px!important;max-height:115px!important;object-fit:contain!important;padding:0!important;transform:none!important;filter:none!important;
}
.work-card:hover .work-img img[src$=".svg"],
.work-card:hover .work-img img[src*="ureshino-living-lab-01"]{transform:none!important;filter:none!important;}

/* 2026-09-01 — match TOP WORKS logo weight to WORKS listing */
.top-works .work-img.media-kind-logo {
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
}
.top-works .work-img.media-kind-logo img {
  width:auto!important;
  height:auto!important;
  max-width:180px!important;
  max-height:115px!important;
  object-fit:contain!important;
  padding:0!important;
  background:transparent!important;
  filter:none!important;
  transform:none!important;
}
.top-works .work-img.media-kind-logo.media-shape-compact img {
  max-width:270px!important;
  max-height:190px!important;
}
.top-works .work-img.media-kind-logo.media-shape-wide img {
  max-width:250px!important;
  max-height:78px!important;
}
.top-works .work-card:hover .work-img.media-kind-logo {
  background:var(--white)!important;
}
.top-works .work-card:hover .work-img.media-kind-logo img {
  background:transparent!important;
  filter:none!important;
  transform:none!important;
}
@media (max-width:640px) {
  .top-works .work-img.media-kind-logo img {
    max-width:150px!important;
    max-height:96px!important;
  }
  .top-works .work-img.media-kind-logo.media-shape-compact img {
    max-width:220px!important;
    max-height:155px!important;
  }
  .top-works .work-img.media-kind-logo.media-shape-wide img {
    max-width:205px!important;
    max-height:64px!important;
  }
}

/* Regional workshop photo: keep the faces above the table visible. */
.top-svc-img img[src="images/user/regional-workshop.jpg"] { object-position: 50% 35%; }

/* Photo attribution stays inside the image area at every viewport size. */
.carousel-hero .hero-photo-credit {
  position: absolute;
  right: 16px;
  bottom: 12px;
  z-index: 4;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85);
  pointer-events: none;
}
