/* =========================================================
   CIELO DESIGN トップページ 動的エフェクト用 CSS
   file: cielo-dynamic.css
   ※「水玉（浮遊する円）」は不採用のため含みません
   ---------------------------------------------------------
   色を変えたい場合は下の --cielo-accent（ブランドのティール）だけ調整
   ========================================================= */

:root {
  --cielo-accent: #3ad0c4;
  /* ブランドのティール。正式なブランドカラーに合わせて調整可 */
  --cielo-glow: rgba(58, 208, 196, .27);
  /* マウス追従グローの色（accentの半透明版） */
}

/* ページ内リンクを滑らかにスクロール */
html {
  scroll-behavior: smooth;
}

/* --- ① スクロール出現（フェードイン＋少し下から） --- */
.cielo-reveal {
  opacity: 0;
  transform: translateY(46px);
  transition: opacity .9s cubic-bezier(.2, .7, .2, 1),
    transform .9s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}

.cielo-reveal.cielo-in {
  opacity: 1;
  transform: none;
}

/* --- ② 画面上部のスクロール進捗バー --- */
.cielo-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--cielo-accent);
  box-shadow: 0 0 8px var(--cielo-accent);
  z-index: 99999;
  pointer-events: none;
}

/* --- ③ マウス追従グロー --- */
.cielo-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at 30% 30%, var(--cielo-glow), transparent 70%);
  filter: blur(34px);
  transform: translate(-50%, -50%);
}

/* --- ④ ヘッダー：スクロールで縮小＆すりガラス --- */
header.header {
  transition: padding .35s ease, background .35s ease, box-shadow .35s ease;
}

header.header.cielo-shrunk {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  background: rgba(22, 22, 22, .82) !important;
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
}

/* --- ⑤ グローバルナビ：ホバーでアンダーラインが伸びる --- */
.cielo-underline {
  position: relative;
}

.cielo-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 2px;
  background: var(--cielo-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

.cielo-underline:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- ⑥ カード（SERVICE / WORKS / STAFF）：ホバーで浮き上がり --- */
.cielo-hoverable {
  transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease;
}

.cielo-hoverable:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 22px 44px rgba(0, 0, 0, .16);
}

/* WORKS / STAFF のサムネイル：ホバーでズーム（親側で overflow:hidden を付与） */
.cielo-zoom {
  overflow: hidden;
}

.cielo-zoom img {
  transition: transform .55s ease;
}

.cielo-zoom:hover img {
  transform: scale(1.09);
}

/* --- アクセシビリティ：動きを減らす設定の端末では大きな動きを止める --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .cielo-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .cielo-blob {
    display: none !important;
  }
}