/* ── INDEX-SPECIFIC ── */

/* ══════════════════════════════
   HERO SLIDESHOW
══════════════════════════════ */
#hero {
  height: 100vh;
  min-height: 680px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── スライド背景画像 ── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1.4s cubic-bezier(0.4, 0, 0.2, 1),
    transform 6s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
/* picture / img を背景として全面表示 */
.hero-slide picture,
.hero-slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── グラデーションオーバーレイ ── */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      105deg,
      rgba(13,22,41,0.82) 0%,
      rgba(13,22,41,0.55) 50%,
      rgba(13,22,41,0.25) 100%
    ),
    linear-gradient(
      to top,
      rgba(13,22,41,0.6) 0%,
      transparent 40%
    );
}

/* ── グリッド装飾 ── */
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image:
    linear-gradient(rgba(184,148,63,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,148,63,0.04) 1px, transparent 1px);
  background-size: 72px 72px;
}

/* ── デコリング ── */
.hero-deco-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(184,148,63,0.1);
  z-index: 2;
  pointer-events: none;
}
.ring-1 { width: 700px; height: 700px; right: -140px; top: 50%; transform: translateY(-50%); }
.ring-2 { width: 480px; height: 480px; right: 30px;  top: 50%; transform: translateY(-50%); border-color: rgba(184,148,63,0.14); }
.ring-3 { width: 260px; height: 260px; right: 150px; top: 50%; transform: translateY(-50%); border-color: rgba(184,148,63,0.2); }

/* ── テキストコンテンツ ── */
.hero-content {
  position: relative;
  z-index: 4;
  padding: 0 8rem;
  max-width: 960px;
}
.hero-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  letter-spacing: 0.38em;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards 0.3s;
}
.hero-eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--gold-light); }
.hero-title {
  font-family: 'Shippori Mincho', serif;
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 700;
  color: white;
  line-height: 1.18;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.5s;
}
.hero-title em { color: var(--gold-light); font-style: normal; }
.hero-sub-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.7s;
}
.hero-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  line-height: 2.1;
  max-width: 480px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 0.9s;
}
.hero-cta {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.9s ease forwards 1.1s;
}

/* ── スライドコントロール ── */
.hero-controls {
  position: absolute;
  bottom: 6rem;
  right: 4rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

/* ドット */
.hero-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s;
}
.hero-dot.active {
  width: 22px;
  border-radius: 3px;
  background: var(--gold-light);
  border-color: var(--gold-light);
}
.hero-dot:hover { border-color: var(--gold-light); }

/* プログレスバー */
.hero-progress {
  width: 120px;
  height: 1px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
}
.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gold-light);
  transition: width 0.1s linear;
}

/* カウンター */
.hero-counter {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.15em;
}
.hero-counter #hero-current {
  color: var(--gold-light);
  font-size: 0.85rem;
}

/* ── 矢印ボタン ── */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(13,22,41,0.35);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.hero-arrow:hover {
  background: rgba(184,148,63,0.35);
  border-color: var(--gold-light);
  color: var(--gold-light);
}
.hero-arrow-prev { left: 2rem; }
.hero-arrow-next { right: 2rem; }

/* ── ウェーブ ── */
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 160px;
  overflow: hidden;
  z-index: 3;
  pointer-events: none;
}
.hero-wave svg { position: absolute; bottom: 0; width: 100%; }

/* ── スクロール誘導 ── */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem; left: 8rem;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.6s;
}
.hero-scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  color: rgba(255,255,255,0.35);
  writing-mode: vertical-rl;
}
.scroll-bar {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%      { opacity: 0.4; transform: scaleY(0.5); transform-origin: top; }
}

/* ── SP 対応 ── */
@media (max-width: 860px) {
  .hero-content { padding: 0 1.5rem; }
  .hero-controls { bottom: 5rem; right: 1.5rem; }
  .hero-arrow { display: none; }
  .hero-scroll { left: 1.5rem; bottom: 2rem; }
  .ring-1, .ring-2, .ring-3 { display: none; }
}

/* INDEX SECTIONS */
/* ── OVERVIEW NUMBERS ── */
#numbers {
  background: var(--cream);
  padding: 5rem 0;
}
.numbers-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-light);
}
.num-cell {
  padding: 2.5rem 2rem;
  border-right: 1px solid var(--border-light);
  text-align: center;
  transition: background 0.3s;
}
.num-cell:last-child { border-right: none; }
.num-cell:hover { background: white; }
.num-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--indigo);
  line-height: 1;
  display: block;
}
.num-unit {
  font-size: 1rem;
  color: var(--gold);
  font-weight: 400;
}
.num-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-top: 0.6rem;
  display: block;
}

/* ── ABOUT TEASER ── */
#about-teaser {
  padding: 8rem 0;
  background: var(--warm-white);
}
.about-teaser-inner {
  max-width: 780px;   /* 読みやすい幅に制限 */
}
.about-teaser-body p {
  font-size: 0.95rem;
  line-height: 2.2;
  color: var(--text-mid);
  margin-bottom: 1.6rem;
}
.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 0.2rem;
  transition: all 0.3s;
  margin-top: 0.5rem;
}
.read-more:hover { color: var(--indigo); border-color: var(--indigo); gap: 1rem; }
.read-more-arrow { transition: transform 0.3s; }
.read-more:hover .read-more-arrow { transform: translateX(4px); }

/* ── SERVICE TEASER ── */
#service-teaser {
  padding: 8rem 0;
  background: var(--indigo-deep);
  position: relative;
  overflow: hidden;
}
#service-teaser::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(44,74,124,0.35) 0%, transparent 65%);
}
.service-teaser-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}
.service-teaser-header p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 2;
  align-self: flex-end;
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  position: relative;
  z-index: 1;
}
.svc-card {
  background: rgba(13,22,41,0.8);
  padding: 2.4rem 1.8rem 2rem;
  transition: background 0.35s;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.svc-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s;
}
.svc-card:hover { background: rgba(26,39,68,0.9); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 300;
  color: rgba(255,255,255,0.1);
  line-height: 1;
  margin-bottom: 1.2rem;
  display: block;
  transition: color 0.35s;
}
.svc-card:hover .svc-n { color: rgba(184,148,63,0.3); }
/* 画像エリア（index の service teaser カード） */
.svc-img-wrap {
  width: 100%;
  height: 120px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.05);
}
.svc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
  /* 画像未設定時は非表示（領域は確保） */
}
.svc-card:hover .svc-img { transform: scale(1.05); }
.svc-title {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}
.svc-short {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
}
.service-teaser-cta {
  margin-top: 3rem;
  display: flex;
  justify-content: flex-end;
  position: relative;
  z-index: 1;
}

/* ── STORIES TEASER ── */
#stories-teaser {
  padding: 8rem 0;
  background: var(--cream);
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
.story-card {
  text-decoration: none;
  display: block;
  background: var(--warm-white);
  transition: transform 0.3s, box-shadow 0.3s;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26,39,68,0.1);
}
.story-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.story-thumb-label {
  font-family: 'Shippori Mincho', serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.07);
  user-select: none;
}
.story-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.7rem;
  background: var(--gold);
  color: var(--indigo-deep);
  font-weight: 700;
}
.story-body {
  padding: 1.6rem 1.5rem;
}
.story-date {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  display: block;
}
.story-ttl {
  font-family: 'Shippori Mincho', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--indigo);
  line-height: 1.6;
  margin-bottom: 0.8rem;
}
.story-excerpt {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.85;
}

/* ── PARTNER BELT ── */
#partner-belt {
  padding: 5rem 0;
  background: var(--indigo-deep);
  border-top: 1px solid rgba(184,148,63,0.1);
}
.partner-belt-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}
.partner-belt-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}
.partner-belt-line { width: 1px; height: 40px; background: rgba(184,148,63,0.25); flex-shrink: 0; }
.partner-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.p-badge {
  padding: 0.4rem 1rem;
  border: 1px solid rgba(184,148,63,0.2);
  color: rgba(255,255,255,0.5);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  transition: all 0.3s;
  cursor: default;
}
.p-badge:hover { border-color: var(--gold-light); color: var(--gold-light); }

@media (max-width: 860px) {
  .hero-content { padding: 0 1.5rem; }
  .numbers-inner { grid-template-columns: repeat(2,1fr); }
  .about-teaser-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual-block { height: 300px; }
  .service-teaser-header { grid-template-columns: 1fr; }
  .service-cards { grid-template-columns: repeat(2,1fr); }
  .stories-grid { grid-template-columns: 1fr; }
  .partner-belt-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .hero-scroll { display: none; }
}
