/* Services Section CSS
 * HPP HP — Figma file hTk2UtIZPusbWScukKNgMV
 * Nodes: 102:236 (service-cover), 102:252–411 (service-01–06) + LOGOS CARE (05)
 * Each slide: 1441×800px
 * Layout: full-bleed bg image + dark overlay, text left / image right
 */

/* =====================
 * Services wrapper
 * Stacks all slides (cover + 7 service cards) vertically
 * ===================== */

.services {
  position: relative;
  background-color: var(--color-navy-primary);
}

/* =====================
 * Shared slide base
 * Applies to both cover and service cards
 * ===================== */

.services__slide {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 800px;
  overflow: hidden;
  background-color: #1a2332;
}

/* =====================
 * Per-slide 背景 (background-image + size:cover を .services__slide に直接)
 * 色付け / multiply は background-blend-mode で表現する。
 * Figma 上で画像 opacity がかかっているスライドは、
 * 同色の半透明レイヤーを重ねた多重背景で再現。
 * ===================== */

/* service-cover: 背景は「our service」動画。
 * 動画レイヤーの上に navy 85% のベールを重ねて可読性を確保する。
 * (動画が再生できない環境向けにポスター画像を background にも指定) */
.services__slide--cover {
  background-image:
    linear-gradient(rgba(26, 35, 50, 0.85), rgba(26, 35, 50, 0.85)),
    url("../images/service-cover-poster.jpg");
  background-size: cover;
  background-position: center;
}

/* 背景動画：スライド全面を覆う。上に navy 85% のベール (::after) を重ねる */
.services__cover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  pointer-events: none;
}

.services__slide--cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 50, 0.85);
  z-index: 2;
  pointer-events: none;
}

/* 動きを減らす設定の環境では動画を隠し、背景のポスター画像に委ねる */
@media (prefers-reduced-motion: reduce) {
  .services__cover-video {
    display: none;
  }
}

/* service-01 (三島式): Figma 136:1541 — #0b2814 × 写真 multiply
 * 明るい写真の白飛びを multiply で抑え、白文字の可読性を確保する */
.services__slide--01 {
  background-color: #0b2814;
  background-image: url("../images/service-01-bg.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

/* service-02 (Mecara): Figma 136:1538 — #0b262f × 写真 multiply */
.services__slide--02 {
  background-color: #0b262f;
  background-image: url("../images/service-02-bg.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

/* service-03 (企業研修): Figma 136:1534 — #0c1945 × 写真 multiply + ベール 40% */
.services__slide--03 {
  background-color: #0c1945;
  background-image:
    linear-gradient(rgba(12, 25, 69, 0.4), rgba(12, 25, 69, 0.4)),
    url("../images/service-03-bg.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, multiply;
}

/* service-04 (MIF): 背景画像 (MIF イラスト、ブレンド/オーバーレイなし)
 * background-position はデフォルト (0% 0%) のまま */
.services__slide--04 {
  background-color: #3d1509;
  background-image: url("../images/service-04-bg.jpg");
  background-size: cover;
}

/* service-05 (LOGOS CARE): 白地のテクスチャ背景。light テーマ */
.services__slide--05 {
  background-color: #ffffff;
  background-image: url("../images/service-05-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* service-06 (ALABi): 元々暗い写真なので薄めのベールのみ */
.services__slide--06 {
  background-color: #0a0a12;
  background-image:
    linear-gradient(rgba(10, 10, 18, 0.55), rgba(10, 10, 18, 0.55)),
    url("../images/service-06-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* service-07 (Hope Alliance): 暖色の暗い写真。薄めのベールのみ */
.services__slide--07 {
  background-color: #120e08;
  background-image:
    linear-gradient(rgba(18, 14, 8, 0.3), rgba(18, 14, 8, 0.3)),
    url("../images/service-07-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* =====================
 * Light テーマのスライド (service-04 MIF / service-05 LOGOS CARE)
 * 明るい背景なので文字をネイビー／ブルーに置き換える
 * ===================== */
.services__slide--light .services__card-text {
  background-color: transparent;
}
.services__slide--light .services__card-number {
  color: #1e4d8b;
}
.services__slide--light .services__card-meta-rule {
  background: #1e4d8b;
}
.services__slide--light .services__card-category-label {
  color: #1e4d8b;
}
.services__slide--light .services__card-title,
.services__slide--light .services__card-subtitle,
.services__slide--light .services__card-subtitle--en,
.services__slide--light .services__card-desc {
  color: #1a2332;
}
.services__slide--light .services__card-link {
  color: #1e4d8b;
}
.services__slide--light .services__card-tag {
  color: #1e4d8b;
}
.services__slide--light .services__card-tag::before {
  background: #1e4d8b;
}
.services__slide--light .services__card-btn {
  color: #1e4d8b;
  border-color: rgba(30, 77, 139, 0.5);
}
.services__slide--light .services__card-btn:hover {
  background: rgba(30, 77, 139, 0.08);
  border-color: #1e4d8b;
}
/* =====================
 * Top gradient divider
 * Fades from --color-navy-primary (#1a2332) to transparent
 * Connects from the section above
 * ===================== */

.services__slide--cover::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    #1a2332 0%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 4;
}

/* =====================
 * Shared scroll indicator
 * One indicator for the whole services section.
 * Fixed to viewport, shown only while inside .services
 * (toggled by JS via .is-active). Active dot is updated
 * on scroll based on the currently visible slide.
 * ===================== */

.services__indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.services__indicator.is-active {
  opacity: 1;
  visibility: visible;
}

/* =====================
 * Left-side dot navigation
 * Vertical column of 7 dots
 * Figma: positioned at x≈40, vertically centered
 * ===================== */

/* Figma: left 64px, vertically centered, 8px wide, 138px total height
 * 7 dots across 138px => each dot ~8px with gaps ~12px */
.services__dot-nav {
  position: absolute;
  left: 64px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.services__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transition: background var(--transition-base), transform var(--transition-base);
  flex-shrink: 0;
}

.services__dot--active {
  background: #ffffff;
  transform: scale(1.25);
}

/* Slide 04 (Meditation is a Friend) / 05 (LOGOS CARE) は明るい背景のため
 * 白いドットが見えなくなる。この 2 枚だけダークネイビーにする。 */
.services__indicator[data-active-slide="4"] .services__dot,
.services__indicator[data-active-slide="5"] .services__dot {
  background: rgba(17, 43, 96, 0.35);
}

.services__indicator[data-active-slide="4"] .services__dot--active,
.services__indicator[data-active-slide="5"] .services__dot--active {
  background: #112b60;
}

/* =====================
 * SCROLL indicator
 * Bottom-left, vertical text + animated line
 * Figma: x≈40-50, bottom≈40-60
 * ===================== */

/* SCROLL indicator — bottom-left, vertical text + animated line */
.services__scroll {
  position: absolute;
  left: 61px;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.services__scroll-label {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: #ffffff;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.5;
}

.services__scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.services__scroll-line::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 40%;
  background: #ffffff;
  animation: svc-scroll-line 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* 明るい背景のスライド (04 / 05) では SCROLL 表記もダークネイビーにする */
.services__indicator[data-active-slide="4"] .services__scroll-label,
.services__indicator[data-active-slide="5"] .services__scroll-label {
  color: #112b60;
}

.services__indicator[data-active-slide="4"] .services__scroll-line,
.services__indicator[data-active-slide="5"] .services__scroll-line {
  background: rgba(17, 43, 96, 0.2);
}

.services__indicator[data-active-slide="4"] .services__scroll-line::after,
.services__indicator[data-active-slide="5"] .services__scroll-line::after {
  background: #112b60;
}

@keyframes svc-scroll-line {
  0% {
    top: -40%;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

/* =====================
 * SERVICE COVER (102:236)
 * Centered content layout
 * ===================== */

/* Figma: centered content block, 620px wide, 56px gap between title and desc */
.services__cover-inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  min-height: 800px;
  text-align: center;
  gap: 56px;
  width: 620px;
  max-width: 100%;
  margin: 0 auto;
}

/* "Our Services" — large serif heading
 * Figma 102:247: Cormorant Garamond Medium, 96px, leading-none, tracking 2.88px, white */
.services__cover-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 96px;
  line-height: 1;
  letter-spacing: 0.03em;
  color: #ffffff;
  font-style: normal;
  margin: 0;
}

/* Horizontal rule beneath title — NOT in Figma, hidden */
.services__cover-rule {
  display: none;
}

/* Description text under title
 * Figma 102:248: Shippori Mincho Medium, 16px, leading 2, white, centered
 * Gap from title: 56px (handled by cover-inner gap) */
.services__cover-subtitle {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0;
  color: #ffffff;
  margin: 0;
}

/* =====================
 * SERVICE CARD layout (01–07)
 * Left text / Right image
 * Figma: 1441×800px full bleed
 * ===================== */

.services__card-inner {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  height: 100vh;
  min-height: 800px;
  width: 100%;
  max-width: var(--layout-content-width); /* 1024px */
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

/* =====================
 * Left text area
 * Figma: x:180, flexible width ~560px
 * ===================== */

/* Figma: left 180px, vertically centered, gap 40px between elements */
.services__card-text {
  flex: 0 0 auto;
  width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 80px 0;
}

/* Number / category line: "01 / 06 — 技術継承スクール / 認定施術" */
/* Figma 102:260: gap 24px between number, line, and category label */
.services__card-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
}

/* Figma 102:261: EB Garamond Medium, 20px, #f4e5b8, line-height 1.5 */
.services__card-number {
  font-family: 'EB Garamond', 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0;
  color: #f4e5b8;
  white-space: nowrap;
}

/* Figma 102:262: 24px wide line, gold color */
.services__card-meta-rule {
  flex: 0 0 24px;
  height: 1px;
  background: #f4e5b8;
}

/* Figma 102:263: Shippori Mincho Medium, 16px, #f4e5b8, line-height 1.5 */
.services__card-category-label {
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  color: #f4e5b8;
  white-space: nowrap;
}

/* Figma 102:264: Shippori Mincho Medium, 72px, line-height 1.5, white */
.services__card-title {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 72px;
  line-height: 1.5;
  letter-spacing: 0;
  color: #ffffff;
  margin: 0;
}

/* Logo image variant (service-04: MIF) */
.services__card-logo {
  display: block;
  width: 390px;
  max-width: 100%;
  height: auto;
  /* actual logo image; fallback placeholder handled via bg */
}

/* Logo placeholder (when image not yet available) */
.services__card-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 390px;
  height: 174px;
  border: 1px solid rgba(244, 229, 184, 0.3);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.services__card-logo-placeholder span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  letter-spacing: 0.15em;
  color: rgba(244, 229, 184, 0.5);
  text-transform: uppercase;
}

/* Figma 102:265: wrapper for subtitle + desc, gap 16px */
.services__card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Figma 102:266: Shippori Mincho Medium, 16px, line-height 2, white */
.services__card-subtitle {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0;
  color: #ffffff;
  margin: 0;
}

/* Subtitle variant: mixed EN/JP — uses English serif for Latin portion */
.services__card-subtitle--en {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 21px;
  letter-spacing: 0.04em;
}

/* Figma 102:267: Shippori Mincho Medium, 16px, line-height 2, white */
.services__card-desc {
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0;
  color: #ffffff;
  margin: 0;
}

/* Figma 102:268: Noto Sans JP Regular, 14px, white, underline, line-height 1.75 */
.services__card-link {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0;
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-base);
}

.services__card-link:hover {
  opacity: 0.7;
}

/* =====================
 * カード内ボタン (三島式の「技術継承」「施術事業」)
 * 「詳しく見る」テキストリンクの代わりに使う枠付きボタン
 * ===================== */

.services__card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.services__card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 12px 28px;
  border: 1px solid rgba(244, 229, 184, 0.6);
  border-radius: var(--radius-pill);
  font-family: 'Shippori Mincho', 'Noto Serif JP', serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #f4e5b8;
  text-decoration: none;
  background: transparent;
  transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.services__card-btn:hover {
  background: rgba(244, 229, 184, 0.12);
  border-color: #f4e5b8;
}

/* =====================
 * Right image area
 * Figma: 440×550px at x:820, rounded corners
 * ===================== */

/* Figma 102:255: 440x550px, overflow clip, no border-radius, vertically centered */
.services__card-image {
  flex: 0 0 auto;
  margin-left: auto;
  width: 440px;
  height: 550px;
  border-radius: 0;
  overflow: hidden;
  position: relative;
}

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

/* Image placeholder (until real images are provided) */
.services__card-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(244, 229, 184, 0.15);
}

.services__card-image-placeholder span {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(244, 229, 184, 0.4);
  text-transform: uppercase;
}

/* =====================
 * Bottom-right category tag
 * e.g., "身体のPIKAPIKA"
 * ===================== */

/* Figma 102:269: left 1235px, top 752px (bottom ~48px), flex gap 16px
 * 24px line + "身体のPIKAPIKA", Shippori Mincho Medium 16px, #f4e5b8 */
.services__card-tag {
  position: absolute;
  bottom: 48px;
  right: 24px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Shippori Mincho', serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  color: #f4e5b8;
}

.services__card-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: #f4e5b8;
}

/* =====================
 * Bottom divider gradient
 * Last service card fades into next section (navy)
 * ===================== */

.services__slide--last::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    #1a2332 100%
  );
  pointer-events: none;
  z-index: 4;
}
