/* 見た目の調整（2026-11-08 ボス「01が読みにくい」「アニメーションを高級感あるように」）
   style.css は触らず、ここで上書きする。fonts.css の後に読む。

   考え方：
   - 動きは「ゆっくり・小さく・跳ねない」。高級な店の扉のように、速さより落ち着きを見せる
   - 浮き上がり（translateY）・光る影・字間が伸びる・横にずれる動きはやめ、色だけを静かに変える
   - 番号（01・02…）は飾りの薄い大文字をやめ、金の細い数字で読めるようにする
   - 動きを減らす設定の端末では、動きを止める */

:root{
  --ease-soft: cubic-bezier(.22,.61,.36,1);
  --transition: color .5s var(--ease-soft), background-color .5s var(--ease-soft), border-color .5s var(--ease-soft), opacity .5s var(--ease-soft);
}

/* ---- 番号（01・02…） ---- */
.service-detail-num{
  position:relative;
  font-size:1.6rem; font-weight:400; line-height:1;
  color:var(--gold); letter-spacing:.12em;
  margin-bottom:22px; padding-top:18px;
}
.service-detail-num::before{content:'';position:absolute;top:0;left:0;width:32px;height:1px;background:var(--gold)}
.service-card-num{
  font-size:1.5rem; font-weight:400; color:var(--gold); letter-spacing:.12em; margin-bottom:28px;
}
.service-card:hover .service-card-num{color:var(--gold-light)}
.commitment-card-num{font-size:1.6rem; font-weight:400; color:var(--gold); letter-spacing:.12em}

/* ---- スクロールで現れる動き ---- */
.reveal{
  opacity:0; transform:translateY(12px);
  transition:opacity 1.2s var(--ease-soft), transform 1.2s var(--ease-soft);
}
.reveal.visible{opacity:1; transform:none}

/* ---- ボタン：浮かせず・光らせず、色だけを変える ---- */
.btn-primary,.form-submit,.header-cta{transition:background-color .5s var(--ease-soft), color .5s var(--ease-soft)}
.btn-primary:hover,.form-submit:hover,.header-cta:hover{transform:none; box-shadow:none; background:var(--gold-light)}
.btn-outline{transition:border-color .5s var(--ease-soft), color .5s var(--ease-soft)}
.btn-text:hover{letter-spacing:.14em; color:var(--gold-light)}

/* ---- メニュー：下線をゆっくり伸ばす ---- */
.header-nav a::after{transition:width .6s var(--ease-soft)}

/* ---- カード ---- */
.service-card{transition:background-color .7s var(--ease-soft)}
.service-card::before{transition:width .9s var(--ease-soft)}
.service-card-title,.service-card-desc{transition:color .7s var(--ease-soft)}
.case-card{transition:border-color .6s var(--ease-soft), box-shadow .6s var(--ease-soft)}
.case-card:hover{transform:none; box-shadow:var(--shadow-sm); border-color:var(--gold)}

/* トップのサービス一覧：5枚目のあとに灰色の空きマスが出ていたので、最後のカードで行を埋める */
@media (min-width:769px){.services-grid .service-card:last-child:nth-child(3n+2){grid-column:span 2}}
@media (min-width:769px) and (max-width:1024px){.services-grid .service-card:last-child:nth-child(3n+2){grid-column:span 2}}

/* ---- フッターのリンク：横にずらさない ---- */
.footer-nav-list a:hover{padding-left:0}


/* ---- 動きの追加（2026-11-24 ボス「HPのモーション追加しておこう」）----
   「プロっぽい動き」12 種のうち、高級寄りの HP に合う 3 つだけを採った。
   採らなかったもの：文字が化けて戻る（テキストスクランブル）・ボタンが吸い寄る（マグネット）・
   カーソルに光（スポットライト）・3D で傾く・オーロラ背景 → 遊び・技術の見せびらかしに見え、金融の信頼感と逆に働くため */

/* 1. 見出しが下からすっと現れる（テキストリビール）。文字を動かさず、隠していた幕を上げるだけ */
.section-heading,.page-banner-title,.story-title,.about-teaser-title,.cta-banner-title{
  clip-path:inset(0 0 0 0);
}
.js-motion .section-heading:not(.is-shown),.js-motion .page-banner-title:not(.is-shown),
.js-motion .story-title:not(.is-shown),.js-motion .about-teaser-title:not(.is-shown){
  clip-path:inset(0 0 100% 0); transform:translateY(.25em);
}
.js-motion .section-heading,.js-motion .page-banner-title,.js-motion .story-title,.js-motion .about-teaser-title{
  transition:clip-path 1.4s var(--ease-soft), transform 1.4s var(--ease-soft);
}

/* 2. ページを移るとき、静かに溶けて切り替わる（ページトランジション）。対応しないブラウザでは今までどおり */
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.5s; animation-timing-function:cubic-bezier(.22,.61,.36,1)}

/* 3. 幾何模様だけが、スクロールより少し遅れて動く（パララックス）。動く量は JS で 12% に抑える */
.geo-hero,.geo-banner{will-change:translate}

/* ---- 動きを減らす設定の端末 ---- */
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{transition:none!important; animation:none!important}
  .reveal{opacity:1; transform:none}
  /* トップの見出しの塊は、透明から現れる動き（heroFadeIn）で表示している。動きを止めると透明のまま残るので、最初から見せる */
  .hero-content{opacity:1!important; transform:none!important}
  .js-motion .section-heading,.js-motion .page-banner-title,.js-motion .story-title,.js-motion .about-teaser-title{clip-path:none!important; transform:none!important}
  .geo-hero,.geo-banner{translate:none!important}
  html{scroll-behavior:auto}
}

/* ヘッダーの Contact ボタン：文字を上下中央に（2026-11-24）
   .header-nav a の padding-bottom:4px が勝ち、上 10px・下 4px になって文字が下がっていた */
.header-nav .header-cta{display:inline-flex;align-items:center;line-height:1;padding:12px 24px}
