/*
 * ======================================================================
 * Senku Style（旧：テンプレート "Company Style" から外部化）
 * 配置場所：{テーマ}/css/senku-style.css
 * 画像パスは ../images/ からの相対指定（css と images が同じテーマ直下にある前提）
 * ======================================================================
 * CSS管理ルール
 * ======================================================================
 * 00. 要確認・保留    ：削除せず、重複・無効値・使用状況を確認する場所
 * 00. 要確認・保留    ：重複・無効値・使用状況確認用
 * 01. Texture         ：ページ共通のテクスチャ
 * 02. Fixed Logo        ：左上固定ロゴ
 * 03. Header            ：右上固定ヘッダー
 * 04. Hamburger         ：ハンバーガーボタン
 * 05. Mobile Navigation ：全画面メニュー
 * 03. Hero / About      ：ヒーロー・Aboutレイアウト
 * 04. Hero Animation    ：ヒーローアニメーション
 * 04. Services          ：Servicesナビゲーション
 * 05. Manifesto         ：Manifesto本文
 * 06. Accordion         ：アコーディオン
 * 07. Forest CTA        ：Contact CTA
 * 08. Road Banner       ：道路バナー
 * 09. About Character   ：Aboutキャラクター
 * 10. Service Back      ：サービスメニューへ戻るボタン
 * 11. Scope Fade        ：右下アクセント画像
 * 12. Pill Link         ：汎用ピル型リンク
 *
 * ※既存クラス名を変えず、整理・コメント追加を中心にしています。
 *   別テンプレートやJSから参照される可能性があるCSSは削除していません。
 * ======================================================================
 */
/* ======================================================================
 * 00. 要確認・保留スタイル
 * ======================================================================
 * このブロックは「不要そう」に見えるものを削除せず、後から確認
 * できるようにまとめたものです。
 *
 * 注意：
 * - 他のテンプレートやJavaScriptから参照されている可能性があるため、
 *   現時点では削除しません。
 * - body側のHTMLが別ファイルにあるため、「未使用」と断定はしていません。
 * ====================================================================== */

/* ----------------------------------------------------------------------
 * 【重複候補】旧Texture設定
 * ----------------------------------------------------------------------
 * 同じ texture.webp の設定が後方にも存在するため、重複していた
 * 旧ブロックをここへ退避しています。
 * 元の記述は削除していません。後方の01.Texture設定を現在の本体とします。
 * ---------------------------------------------------------------------- */
/* ==========================================================
 * 01. テクスチャー（texture.webp）の適用設定
 * ========================================================== */
section,
.card,
.workflow-card {
  position: relative;
}

/* 通常のセクション用（背景の上、コンテンツの下に出したい場合） */
section:not(.texture-layer--disabled):not(.workflow-card)::before,
.card:not(.texture-layer--disabled):not(.workflow-card)::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/texture.webp");
  background-size: 300px auto !important;
  background-repeat: repeat !important;
  background-position: top left !important;
  opacity: 0.7;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

/* 画像や白幕のあるカード（.workflow-card / .texture-layer）用
 * ::after を使うことで、画像や白い幕よりも「手前」にテクスチャを重ねます */
.workflow-card.texture-layer::after,
.texture-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/texture.webp");
  background-size: 300px auto !important;
  background-repeat: repeat !important;
  background-position: top left !important;
  opacity: 0.7;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 20;
  /* 画像(z-0)や白い幕(z-10)より手前に配置するため */
  transition: opacity 0.4s ease;
}

/* ----------------------------------------------------------------------
 * 【無効値候補】header-fixed-container の gap
 * ----------------------------------------------------------------------
 * gap: -2px はCSS仕様上の通常のgap値として無効なため、ブラウザでは
 * 無視されます。元の記述は削除せず、確認用としてここに保管します。
 * ---------------------------------------------------------------------- */
.header-fixed-container {
  display: flex;
  align-items: center;
  gap: -2px;
  pointer-events: auto;
}

section img,
.card img {
  /* 1. 強制的にハードウェアアクセラレーションを有効にし、レンダリングの精度を上げる */
  transform: translateZ(0);

  /* 2. 画像の境界線跡をきれいにする（アンチエイリアス処理の調整） */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;

  /* 3. エッジの描画不良をマスクする（最も効果的） */
  /* 画像のフチの内側1px分を少しぼかし、境界線をきれいに見せる */
  filter: drop-shadow(0 0 0px transparent);

  /* 4. (重要) 画像自体をテクスチャの z-index より手前に配置する */
  /* テクスチャをブレンドさせつつ、フチの計算をバグらせないために必要 */
  position: relative;
  z-index: 2;
}

/* ----------------------------------------------------------------------
 * 【使用状況要確認】以下のセレクタ
 * ----------------------------------------------------------------------
 * .page--loaded / .noise-layer / .hero__viewport / .menu-toggle-original::before
 *
 * このPHPファイル内だけでは使用箇所を完全には判定できません。
 * 他テンプレート・JS・functions.php等から利用される可能性があるため、
 * 削除せず、通常CSS側に残しています。
 * ---------------------------------------------------------------------- */

/* ==========================================================
 * 02. 固定ロゴ
 * ========================================================== */
.site-logo-fixed {
  position: fixed;
  top: 8px;
  left: 20px;
  z-index: 1050;
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 1;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.site-logo-fixed__image {
  display: block;
  width: auto;
  height: 40px;
  object-fit: contain;
}

.site-logo-fixed:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

@media (max-width: 1023px) {
  .site-logo-fixed__image {
    height: 30px;
  }
}

@media (min-width: 1024px) {
  .site-logo-fixed {
    top: 15px;
    left: 30px;
    right: auto;
  }
}

/* ==========================================================
 * 03. ヘッダーおよび右端固定のレイアウト
 * ========================================================== */
.site-header-mobile {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 230;
  pointer-events: none;
}

.header-bag-image {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
  pointer-events: auto;
  /* クリック可能に変更 */
  cursor: pointer;
  /* マウスオーバー時に指マークを追加 */
}

/* ==========================================================
 * 04. ハンバーガーボタン
 * ========================================================== */

.menu-toggle-original {
  position: relative;
  z-index: 240;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;

  transition: transform 0.3s ease;
}

.menu-toggle-original::before {
  display: none;
}

.menu-toggle-original:hover {
  transform: scale(1.08);
}

/* 3本線は常にabsolute。
   開閉時にレイアウト方式を変えない */

.hamburger-line {
  position: absolute;
  left: 50%;
  display: block;

  width: 24px;
  height: 3px;

  background: #7a7a7a;
  border-radius: 999px;
  box-shadow: 2px 2px 0 #f8f2f2;

  transform-origin: center;

  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* 閉じている状態 */

.line-1 {
  transform: translateX(-50%) translateY(-9px);
}

.line-2 {
  transform: translateX(-50%);
}

.line-3 {
  transform: translateX(-50%) translateY(9px);
}

/* hover */

.menu-toggle-original:hover .hamburger-line {
  background: #4a4a4a;
}

/* ==========================================================
 * 開いている状態
 * ========================================================== */

.menu-toggle-original[aria-expanded="true"] .line-1 {
  transform: translateX(-50%) rotate(45deg);
  background: #ffffff !important;
  box-shadow: none !important;
}

.menu-toggle-original[aria-expanded="true"] .line-2 {
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
}

.menu-toggle-original[aria-expanded="true"] .line-3 {
  transform: translateX(-50%) rotate(-45deg);
  background: #ffffff !important;
  box-shadow: none !important;
}

/* ==========================================================
 * ヘッダー内ホバー
 * ========================================================== */

.header-controls-group {
  display: flex;
  align-items: center;
}

.header-bag-image {
  transition: transform 0.3s ease;
}

.header-controls-group:hover .header-bag-image {
  transform: scale(1.05);
}

.header-controls-group:hover .menu-toggle-original {
  transform: scale(1.08);
}

.header-controls-group:hover .hamburger-line {
  background: #4a4a4a;
}

/* ==========================================================
 * 05. モバイルナビゲーション：右上起点の円形展開
 * ==========================================================
 * 現在使用している実装。clip-path + is-open で開閉します。
 * ========================================================== */

#mobile-menu {
  position: fixed;
  inset: 0;

  width: 100vw;
  height: 100dvh;

  z-index: 210;

  display: flex !important;
  align-items: center;
  justify-content: center;

  box-sizing: border-box;
  overflow-y: auto;

  background: #85bafc;
  border-radius: 0;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  /* ここは意図的に35pxのまま */
  clip-path: circle(0px at calc(100% - 35px) 35px);

  opacity: 1;
  visibility: hidden;
  pointer-events: none;

  transition:
    clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1),
    visibility 0s linear 0.6s;
}

#mobile-menu.is-open {
  clip-path: circle(150vmax at calc(100% - 35px) 35px);

  visibility: visible;
  pointer-events: auto;

  transition:
    clip-path 0.6s cubic-bezier(0.77, 0, 0.175, 1),
    visibility 0s linear 0s;
}

.mobile-nav-inner {
  width: 90%;
  max-width: 900px;
  padding: 90px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: auto;
}

/* レスポンシブ切替：スマホは縦1列、PC（1024px以上）で左右2列に分割 */
.mobile-nav-grid-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: 100%;
  max-width: 320px;
  justify-items: start;
}

@media (min-width: 1024px) {
  .mobile-nav-grid-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 70px;
    max-width: 750px;
    justify-items: start;
  }
}

.nav-col {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* ---------------------------------------------
 * ナビゲーションリンクのスタイル
 * --------------------------------------------- */
.nav-link-flat {
  display: block;
  color: #ffffff;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  text-decoration: none;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-link-flat:not(.nav-heading):hover {
  color: #ffee58 !important;
  transform: translateX(6px);
}

/* Services（リンクなし・親見出し） */
.nav-link-flat.nav-heading {
  cursor: default;
  color: #ffffff;
  opacity: 1;
}

.nav-link-flat.nav-heading:hover {
  transform: none;
}

/* Web＆SNS や Welfare などの「中見出し」 */
.nav-link-flat.nav-sub {
  font-size: clamp(18px, 2.6vw, 22px);
  font-weight: 600;
}

/* 「ー」付きの「さらに下の小見出し」 */
.nav-link-flat.nav-sub-child {
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 500;
  opacity: 0.85;
  padding-left: 12px;
}

/* ======================================================================
   01. Texture / shared surface
   ====================================================================== */
body,
body::before,
body::after {
  background-image: none !important;
  content: none !important;
}

section:not(.texture-layer--disabled),
footer:not(.texture-layer--disabled),
.card:not(.texture-layer--disabled),
.texture-layer {
  position: relative;
  overflow: hidden;
}

section:not(.texture-layer--disabled)::before,
footer:not(.texture-layer--disabled)::before,
.card:not(.texture-layer--disabled)::before,
.texture-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../images/texture.webp");
  background-size: 300px auto !important;
  background-repeat: repeat !important;
  background-position: top left !important;
  background-attachment: scroll !important;
  opacity: 0.7;
  mix-blend-mode: overlay;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.4s ease;
}

#workflow-slider-container.texture-layer::before {
  z-index: 20 !important;
  mix-blend-mode: overlay !important;
  opacity: 0.4 !important;
  pointer-events: none;
}

.page--loaded section:not(.texture-layer--disabled)::before,
.page--loaded .card:not(.texture-layer--disabled)::before,
.page--loaded.texture-layer::before,
.page--loaded .texture-layer::before {
  opacity: 0.7;
}

/* スライダー内の画像には絶対にテクスチャを重ねない */
#outcomes-slider-container img::before,
#outcomes-slider-container::before {
  display: none !important;
}

/* スライダーのコンテナおよびその内部では、テクスチャの疑似要素を完全に非表示にする */
#outcomes-slider-container::before,
#outcomes-slider-container .outcomes__slide::before {
  display: none !important;
}

.accordion__content {
  position: relative;
  z-index: 2;
}

.hero__viewport {
  display: block;
  height: auto;
  min-height: 0;
  overflow: visible;
}

/* ======================================================================
   HERO SETTINGS
   基本的な位置・サイズ・速度はここで調整
   ====================================================================== */

:root {
  /* ==================================================
     HERO 全体
     ================================================== */

  --hero-height: 100svh;

  /* ==================================================
     山
     ================================================== */

  --hero-mountain-width: 100%;
  --hero-mountain-bottom: 0px;
  --hero-mountain-duration: 0.7s;

  /* 最終位置を5px行き過ぎて戻る */
  --hero-mountain-overrun: 5px;

  /* ==================================================
     太陽
     ================================================== */

  --hero-sun-width: 150px;

  /* 最終停止位置 */
  --hero-sun-right: 10%;
  --hero-sun-bottom: 80%;

  /* 最終位置より下から登場 */
  --hero-sun-start-y: 650px;

  /* 上昇時間 */
  --hero-sun-duration: 1.7s;

  /* ==================================================
     文字全体
     ================================================== */

  --hero-copy-left: 5%;
  --hero-copy-top: 10%;

  /* 左からスライドインする距離 */
  --hero-text-start-x: -100px;

  /* 1行あたりのアニメーション時間 */
  --hero-text-duration: 0.45s;

  /* ==================================================
     リス
     ================================================== */

  --hero-rider-width: 600px;

  /*
   * スタート位置
   * 以前の left:52% とほぼ同じ位置を
   * right基準へ統一
   */
  --hero-rider-start-right: 48%;
  --hero-rider-start-bottom: -45%;

  /* 停止位置 */
  --hero-rider-end-right: 7%;
  --hero-rider-end-bottom: 10%;

  /* 移動時間 */
  --hero-rider-duration: 1.2s;

  /* 移動中の角度 */
  --hero-rider-start-rotate: -7deg;
  --hero-rider-end-rotate: 0deg;

  /* 停止後のカクカク */
  --hero-rider-rock-angle: 0.5deg;
  --hero-rider-rock-speed: 1.9s;
}

/* ======================================================================
   HERO BASE
   ====================================================================== */

#top.hero {
  position: relative;

  width: 100%;
  height: var(--hero-height);
  min-height: var(--hero-height);

  overflow: hidden;

  background: #87cfdf;
}

/* ======================================================================
   HERO TEXTURE
   HERO全体の最前面にtexture.webpを重ねる
   ====================================================================== */

#top.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background-image: url("../images/texture.webp");
  background-size: 300px auto;
  background-repeat: repeat;
  background-position: top left;

  opacity: 0.4;
  mix-blend-mode: overlay;

  pointer-events: none;

  /* リス20・文字10より上 */
  z-index: 30;

  /* HEROではテクスチャー自体を動かさない */
  transition: none;
}

/* ======================================================================
   01. BACKGROUND
   bs_bg.webp
   最初から表示
   ====================================================================== */

.hero__base {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;

  z-index: 1;

  display: block;
}

/* ======================================================================
   02. SUN
   背景より前・山より後ろ
   ====================================================================== */

.hero__sun {
  position: absolute;

  /*
   * leftは使わない
   * 右からの位置だけで管理する
   */
  left: auto;
  right: var(--hero-sun-right);

  bottom: var(--hero-sun-bottom);

  width: var(--hero-sun-width);
  height: auto;

  /*
   * base     = 1
   * sun      = 2
   * mountain = 3
   */
  z-index: 2;

  display: block;

  /* 登場前は非表示 */
  opacity: 0;

  /* 最終位置より下で待機 */
  transform: translateY(var(--hero-sun-start-y));

  will-change: transform, opacity;
}

/* JSが is-enter を付けた時だけ上昇 */
.hero__sun.is-enter {
  animation: hero-sun-rise var(--hero-sun-duration)
    cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}

/* 山の後ろから上昇 */
@keyframes hero-sun-rise {
  0% {
    opacity: 0;
    transform: translateY(var(--hero-sun-start-y));
  }

  1% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================================
   03. MOUNTAIN
   mt_bg.webp
   下からガッチャンコ
   ====================================================================== */

.hero__mountain {
  position: absolute;

  left: 0;
  bottom: var(--hero-mountain-bottom);

  width: var(--hero-mountain-width);
  height: auto;

  z-index: 3;

  display: block;

  /* 最初は画面下 */
  opacity: 0;

  transform: translateY(105%);

  will-change: transform, opacity;
}

/* JSでheroに is-mountain-enter が付いたら開始 */
#top.hero.is-mountain-enter .hero-scene--day .hero__mountain {
  animation: hero-mountain-enter var(--hero-mountain-duration)
    cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}

/* 下から上昇 → 5px行き過ぎる → 戻る */
@keyframes hero-mountain-enter {
  0% {
    opacity: 1;
    transform: translateY(105%);
  }

  82% {
    opacity: 1;
    transform: translateY(calc(-1 * var(--hero-mountain-overrun)));
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================================
   04. COPY
   ====================================================================== */
.hero__copy {
  position: absolute;

  left: var(--hero-copy-left);
  top: var(--hero-copy-top);

  transform: none;

  z-index: 10;

  width: min(900px, 70vw);
}

/* ======================================================================
   04-A. TEXT SLIDE-IN
   ====================================================================== */

.hero__text {
  opacity: 0;

  transform: translateX(var(--hero-text-start-x));

  will-change: transform, opacity;
}

/* JSで順番に is-visible を付与 */
.hero__text.is-visible {
  animation: hero-text-slide-in var(--hero-text-duration)
    cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}

@keyframes hero-text-slide-in {
  0% {
    opacity: 0;
    transform: translateX(var(--hero-text-start-x));
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ======================================================================
   04-B. 日本語見出し
   ====================================================================== */
.hero__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25em;
  margin: 0 0 2rem;

  color: #222b55;
  font-weight: 700;
  font-size: clamp(24px, 2.7vw, 42px);
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-shadow: none;
}

.hero__heading-line {
  display: block;
  width: fit-content;
  margin-bottom: 0.7rem;
  padding: 0.5rem 0.875rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(4px);
}

/* ======================================================================
   04-C. Beyond.
   ====================================================================== */

.hero__beyond {
  display: block;

  margin: 0 0 0.08em;

  color: #fff;

  font-family: "Anton", sans-serif;

  font-size: clamp(90px, 14vw, 190px);
  line-height: 0.95;

  letter-spacing: 0;

  text-shadow: 4px 4px 0 #0f172a;
}

/* Beyond：高速突入 → 衝突 → 激しい揺り戻し */
.hero__beyond.is-visible.is-braking {
  width: max-content;
  transform-origin: right bottom;
  animation: hero-beyond-brake 900ms linear forwards;
}

@keyframes hero-beyond-brake {
  /* 左から勢いよく突入 */
  0% {
    opacity: 0;
    transform: translateX(-280px) scale(1.15, 0.9);
  }

  3% {
    opacity: 1;
  }

  /* 約0.13秒で壁に到着 */
  14% {
    opacity: 1;
    transform: translateX(0) scale(1, 1);
    animation-timing-function: ease-out;
  }

  /* 右下を支点に、強く潰れて傾く */
  23% {
    opacity: 1;
    transform: translateX(0) rotate(8deg) skewX(-16deg) scale(0.48, 1.24);
    animation-timing-function: ease-in-out;
  }

  /* 大きく跳ね返る */
  38% {
    opacity: 1;
    transform: translateX(0) rotate(-7deg) skewX(12deg) scale(1.2, 0.88);
    animation-timing-function: ease-in-out;
  }

  /* 再び潰れる */
  52% {
    opacity: 1;
    transform: translateX(0) rotate(5deg) skewX(-9deg) scale(0.78, 1.12);
    animation-timing-function: ease-in-out;
  }

  65% {
    opacity: 1;
    transform: translateX(0) rotate(-3deg) skewX(6deg) scale(1.1, 0.95);
    animation-timing-function: ease-in-out;
  }

  77% {
    opacity: 1;
    transform: translateX(0) rotate(2deg) skewX(-3deg) scale(0.94, 1.04);
    animation-timing-function: ease-in-out;
  }

  89% {
    opacity: 1;
    transform: translateX(0) rotate(-0.8deg) skewX(1deg) scale(1.025, 0.99);
    animation-timing-function: ease-out;
  }

  100% {
    opacity: 1;
    transform: translateX(0) rotate(0) skewX(0) scale(1, 1);
  }
}

/* ======================================================================
   04-D. Tech & Welfare
   ====================================================================== */

.hero__tech {
  display: block;

  margin: 0.95em 0 0;

  color: #fff;

  font-family: "Anton", sans-serif;

  font-size: clamp(28px, 3.7vw, 43px);
  line-height: 1;

  letter-spacing: 0;

  text-shadow: 3px 3px 0 #0f172a;
}

/* ======================================================================
   04-E. Senku Ltd.
   ====================================================================== */

.hero__company {
  display: block;

  margin: 0.31em 0 0;

  color: #fff;

  font-family: "Anton", sans-serif;

  font-size: clamp(50px, 5.6vw, 65px);
  line-height: 1;

  letter-spacing: 0;

  text-shadow: 3px 3px 0 #0f172a;
}

/* Tech & Welfare、Senku Ltd.：右からゆっくり登場 */
.hero__tech.hero__text.is-visible,
.hero__company.hero__text.is-visible {
  animation: hero-tech-company-enter 1.4s ease-out forwards;
}

@keyframes hero-tech-company-enter {
  from {
    opacity: 0;
    transform: translateX(36px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ======================================================================
   05. RIDER
   sq_tr_00.webp → sq_tr_04.webp
   ====================================================================== */

.hero__rider {
  position: absolute;

  /*
   * 開始から終了まで right 基準で統一
   * left / right の切り替えによる位置ズレを防ぐ
   */
  left: auto;
  right: var(--hero-rider-start-right);

  bottom: var(--hero-rider-start-bottom);

  width: var(--hero-rider-width);

  z-index: 20;

  /*
   * 登場前は非表示
   */
  opacity: 0;

  transform: translateX(50%) rotate(var(--hero-rider-start-rotate));

  pointer-events: none;

  will-change: right, bottom, transform, opacity;
}

/* ======================================================================
   05-A. リス画像 共通
   ====================================================================== */

/* ======================================================================
   リス画像
   ====================================================================== */

.hero__rider-image {
  display: block;

  width: 100%;
  height: auto;

  transform-origin: center;
  /* フェードなし */
  transition: none !important;
}

/* 走行画像 */
.hero__rider-image--moving {
  position: relative;

  visibility: visible;

  transform: rotate(-5deg);
}

/* 停止画像
   最初から同じ位置に読み込んでおく */
.hero__rider-image--stopped {
  position: absolute;

  inset: 0;

  width: 100%;
  height: auto;

  visibility: hidden;

  transform: rotate(-5deg);
}

/* 瞬時に切り替え */
.hero__rider.is-image-swapped .hero__rider-image--moving {
  visibility: hidden;
}

.hero__rider.is-image-swapped .hero__rider-image--stopped {
  visibility: visible;
}

/* ======================================================================
   05-B. リス移動
   ====================================================================== */

.hero__rider.is-running {
  animation: hero-rider-run var(--hero-rider-duration)
    cubic-bezier(0.22, 0.72, 0.3, 1) forwards;
}

/*
 * 初期状態と 0% を同じ座標にして
 * 動き始めの位置ズレを防ぐ
 */
@keyframes hero-rider-run {
  0% {
    opacity: 1;

    right: var(--hero-rider-start-right);
    bottom: var(--hero-rider-start-bottom);

    transform: translateX(50%) rotate(var(--hero-rider-start-rotate));
  }

  100% {
    opacity: 1;

    right: var(--hero-rider-end-right);
    bottom: var(--hero-rider-end-bottom);

    transform: translateX(0) rotate(var(--hero-rider-end-rotate));
  }
}

/* ======================================================================
   05-C. リス停止
   ====================================================================== */

.hero__rider.is-stopped {
  opacity: 1;

  left: auto;
  right: var(--hero-rider-end-right);
  bottom: var(--hero-rider-end-bottom);

  transform: translateX(0) rotate(var(--hero-rider-end-rotate));
}

/* ======================================================================
   05-E. 停止後のガタゴト
   sq_tr_04 だけを動かす
   ====================================================================== */

.hero__rider.is-rocking .hero__rider-image--stopped {
  animation: hero-rider-rock var(--hero-rider-rock-speed) steps(1, end) infinite;
}

@keyframes hero-rider-rock {
  0%,
  100% {
    transform: rotate(-4.5deg);
  }

  50% {
    transform: rotate(-5.5deg);
  }
}

/* ======================================================================
   06. MOBILE
   PCで決めた「位置の割合」は基本的にそのまま使用。
   主に文字とリスのサイズだけ変更。
   ====================================================================== */

@media (max-width: 767px) {
  :root {
    --hero-copy-left: 7%;
    --hero-copy-top: 20%;

    /* 太陽位置はPCと同じ割合を継承 */
    #top.hero {
      --hero-sun-width: 90px;

      /* 最終停止位置 */
      --hero-sun-right: 7%;
      --hero-sun-bottom: 85%;

      /* 最終位置より下から登場 */
      --hero-sun-start-y: 1000px;

      /* 上昇時間 */
      --hero-sun-duration: 2.1s;
    }

    --hero-rider-width: 220px;

    /* リス位置もPCと同じ割合を基本的に継承*/
    --hero-rider-start-right: 100%;
    --hero-rider-start-bottom: -45%;
    --hero-rider-end-right: 4.8%;
    --hero-rider-end-bottom: 1%;
  }

  .hero__mountain {
    width: 135%;
    max-width: none !important;
    left: -20%;
  }

  .hero__copy {
    width: calc(100% - 8%);
  }

  .hero__heading {
    font-size: clamp(15px, 4vw, 22px);
  }

  .hero__beyond {
    font-size: clamp(62.37px, 17.4405vw, 95.865px);
  }

  .hero__tech {
    font-size: clamp(25.41px, 8.60475vw, 36.96px);
  }

  .hero__company {
    font-size: clamp(38.115px, 13.0515vw, 56.595px);
  }
}

/* ======================================================================
   07. TABLET
   位置割合はPCを基本として継承
   ====================================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  :root {
    --hero-copy-left: 5%;
    --hero-copy-top: 15%;

    /* 太陽位置はPCと同じ割合を継承 */
    #top.hero {
      --hero-sun-width: 135px;

      /* 最終停止位置 */
      --hero-sun-right: 8%;
      --hero-sun-bottom: 80%;

      /* 最終位置より下から登場 */
      --hero-sun-start-y: 1000px;

      /* 上昇時間 */
      --hero-sun-duration: 2.2s;
    }

    --hero-rider-width: 450px;

    /* リス位置もPCと同じ割合を基本的に継承*/
    --hero-rider-start-right: 100%;
    --hero-rider-start-bottom: -45%;
    --hero-rider-end-right: 3.8%;
    --hero-rider-end-bottom: 1.2%;
  }

  .hero__mountain {
    width: 120%;
    max-width: none !important;
    left: -10%;
  }

  .hero__copy {
    width: calc(100% - 8%);
  }

  .hero__heading {
    font-size: clamp(20.1px, 5.38vw, 29.6px);
  }

  .hero__heading-line {
    margin-bottom: 0.4;
  }

  .hero__beyond {
    font-size: clamp(75.6px, 21.14vw, 116.2px);
  }

  .hero__tech {
    font-size: clamp(30.8px, 10.43vw, 44.8px);
  }

  .hero__company {
    font-size: clamp(46.2px, 15.82vw, 68.6px);
  }
}

/* ======================================================================
   08. PC
   現在ここを基準に調整
   ====================================================================== */

@media (min-width: 1024px) {
  :root {
    --hero-copy-left: 8%;
    --hero-copy-top: 10%;

    --hero-rider-width: 550px;

    /*
     * PCの基準位置
     */
    --hero-rider-start-right: 68%;
    --hero-rider-start-bottom: -45%;

    --hero-rider-end-right: 7%;
    --hero-rider-end-bottom: 3%;
  }

  .hero__copy {
    width: calc(100% - 14%);
  }

  .hero__heading {
    font-size: clamp(20.7px, 5.18vw, 28.51px);
  }

  .hero__heading-line {
    margin-bottom: 0.18rem;
  }

  .hero__beyond {
    font-size: clamp(72px, 20.16vw, 110.88px);
  }

  .hero__tech {
    font-size: clamp(28.8px, 9.936vw, 43.2px);
  }

  .hero__company {
    font-size: clamp(45.36px, 15.876vw, 66.528px);
  }
}

/* ======================================================================
   04. Services navigation
   ====================================================================== */
.services-nav__label {
  position: relative;
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

.services-nav__label span {
  display: inline-block;
  opacity: 0;
}

.services-nav__label--inview span {
  animation: senku-slide-in-char 0.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.services-nav__label::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 20px;
  height: 3px;
  background-color: #e2e8f0;
  border-radius: 9999px;
  width: calc(100% - 40px);
}

.services-nav__label--link::after {
  width: 0%;
  background-color: #f97316;
  transition: width 0.3s ease-out;
}

.group:hover .services-nav__label--link::after {
  width: calc(100% - 40px);
}

@keyframes senku-slide-in-char {
  0% {
    opacity: 0;
    transform: translateX(-80px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ======================================================================
   05. Manifesto
   ====================================================================== */

/* スマホ */
.manifesto-copy {
  width: clamp(18rem, 84vw, 24rem);
  font-size: clamp(0.9rem, 3.6vw, 1.05rem);
  margin-top: clamp(1.5rem, 7vw, 2.5rem);
  margin-left: auto;
  margin-right: clamp(0.75rem, 4vw, 1.5rem);
}

/* タブレット */
@media (min-width: 640px) {
  .manifesto-copy {
    width: clamp(26rem, 68vw, 34rem);
    font-size: clamp(1.05rem, 2.2vw, 1.25rem);
    margin-top: clamp(2rem, 5vw, 3.5rem);
    margin-left: auto;
    margin-right: clamp(1rem, 3vw, 2rem);
  }
}

/* PC */
@media (min-width: 1024px) {
  .manifesto-copy {
    position: absolute;
    top: clamp(2rem, 5vw, 6rem);
    right: clamp(-4rem, -2vw, -1rem);
    width: clamp(33rem, 51vw, 49rem);
    font-size: clamp(1.25rem, 1.7vw, 1.8rem);
    margin: 0;
  }
}

/* ======================================================================
   05. Accordion
   ====================================================================== */
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion__panel--open {
  grid-template-rows: 1fr;
}

.accordion__inner {
  overflow: hidden;
}

.accordion__content {
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.accordion__panel--open .accordion__content {
  opacity: 1;
  transform: translateY(0);
}

/* ======================================================================
   06. Forest CTA
   ====================================================================== */

.forest-cta__bird {
  position: absolute;
  width: 28px;
  height: 28px;
  left: -40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-image: url("../images/bb_01.webp");
  transform: rotate(2deg);
  will-change: transform, top;
}

@media (min-width: 768px) {
  .forest-cta__bird {
    width: 40px;
    height: 40px;
    left: -50px;
  }
}

.forest-cta__bird--animating {
  animation: senku-bird-flap 0.35s steps(1) infinite;
}

/* =========================================
   通常時：Contact
========================================= */

.forest-cta__content {
  color: #0b659c;
}

.forest-cta__text {
  color: #0b659c;
  -webkit-text-fill-color: #0b659c;
  transition:
    color 0.3s ease,
    -webkit-text-fill-color 0.3s ease;
}

/* =========================================
   通常時：矢印
========================================= */

.forest-cta__content svg {
  stroke: #0b659c;
  color: #0b659c;
  transition: none;
}

/* =========================================
   ホバー時：Contact
========================================= */

.forest-cta:hover .forest-cta__text {
  color: rgba(230, 140, 168, 0.95) !important;
  -webkit-text-fill-color: rgba(230, 140, 168, 0.95) !important;
}

/* =========================================
   ホバー時：矢印の円
========================================= */

.forest-cta:hover .forest-cta__arrow {
  background: #0b659c !important;
}

/* =========================================
   ホバー時：矢印
========================================= */

.forest-cta:hover .forest-cta__arrow svg {
  stroke: #ffffff !important;
  color: #FFFFFF(230, 140, 168, 0.95) !important;
}

/* =========================================
   ホバー時：矢印が円の中を横方向にループ
========================================= */

.forest-cta:hover .forest-cta__arrow svg {
  animation: forest-arrow-loop 1.2s ease-in-out infinite;
}

/* =========================================
   矢印アニメーション
========================================= */

@keyframes forest-arrow-loop {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  35% {
    transform: translateX(120%);
    opacity: 0;
  }

  36% {
    transform: translateX(-120%);
    opacity: 0;
  }

  70% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* =========================================
   鳥の羽ばたき
========================================= */

@keyframes senku-bird-flap {
  0%,
  49% {
    background-image: url("../images/bb_01.webp");
  }

  50%,
  100% {
    background-image: url("../images/bb_02.webp");
  }
}

/* ======================================================================
   07. Road banner
   - 画面外ではCSSアニメーションも停止
   ====================================================================== */
.road-banner {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 60px;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0;
  display: block;
}

.road-banner__track {
  display: flex;
  height: 100%;
  width: max-content;
  animation: senku-road-scroll 60s linear infinite;
  animation-play-state: paused;
}

.road-banner--active .road-banner__track {
  animation-play-state: running;
}

.road-banner__track img {
  height: 100%;
  width: auto;
  max-width: none !important;
  display: block;
  flex-shrink: 0;
}

.road-banner__track--reverse {
  animation-name: senku-road-scroll-reverse;
}

.road-banner__vehicle {
  position: absolute;
  bottom: 0;
  right: 10%;
  height: 90%;
  width: auto;
  max-width: none !important;
  animation: senku-truck-bumps 1.5s ease-in-out infinite;
  animation-play-state: paused;
  z-index: 10;
  pointer-events: none;
}

.road-banner--active .road-banner__vehicle {
  animation-play-state: running;
}

.road-banner__vehicle--left {
  left: 15%;
  right: auto;
  bottom: 0;
}

@media (max-width: 767px) {
  .road-banner__vehicle,
  .road-banner__vehicle--left {
    height: 75%;
  }
}

@keyframes senku-road-scroll {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes senku-road-scroll-reverse {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes senku-truck-bumps {
  0%,
  70%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  78% {
    transform: translateY(-2px) rotate(-1.5deg);
  }

  85% {
    transform: translateY(1.5px) rotate(1.2deg);
  }

  92% {
    transform: translateY(-1px) rotate(-0.8deg);
  }
}

/* ======================================================================
   08. About character
   ====================================================================== */
@media (max-width: 767px) {
  .about__character {
    margin-top: 16px;
    align-self: flex-end;
    margin-bottom: -10px;
  }

  .about__character-image {
    width: 240px;
    height: auto;
  }
}

@media (min-width: 768px) {
  .about__character {
    align-self: flex-end;
    margin-top: 20px;
  }

  .about__character-image {
    width: clamp(160px, 16vw, 256px);
    height: auto;
  }
}

/* ======================================================================
   09. Back to Service Menu
   - 非表示中は円形文字の回転も停止
   ====================================================================== */
.service-back {
  position: fixed !important;
  right: 30px !important;
  bottom: 30px !important;
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  min-height: 80px !important;
  max-width: 80px !important;
  max-height: 80px !important;
  aspect-ratio: 1 / 1;
  z-index: 99999 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(20px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0.4s ease;
}

.service-back--active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.service-back a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80px !important;
  height: 80px !important;
  flex-shrink: 0;
  background-color: #0f172a;
  border-radius: 50%;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  position: relative;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.service-back a:hover {
  transform: scale(1.08);
  background-color: #ea580c;
}

.service-back__circle {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  animation: senku-rotate-text 12s linear infinite;
  animation-play-state: paused;
}

.service-back--active .service-back__circle {
  animation-play-state: running;
}

.service-back__arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  pointer-events: none;
}

@keyframes senku-rotate-text {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================
   11. 右下隅アクセント画像（scope_03 / scope_04）のクロスフェードアニメーション
   ================================================---------- */
/* 1枚目：前半表示、後半消える */
@keyframes scopeFade1 {
  0%,
  50% {
    opacity: 0.8;
  }

  50.1%,
  100% {
    opacity: 0;
  }
}

/* 2枚目：前半消えて、後半表示 */
@keyframes scopeFade2 {
  0%,
  50% {
    opacity: 0;
  }

  50.1%,
  100% {
    opacity: 0.8;
  }
}

.animate-scope-fade-1 {
  animation: scopeFade1 4s infinite step-end;
}

.animate-scope-fade-2 {
  animation: scopeFade2 4s infinite step-end;
}

/* =========================================
   12. 汎用ピル型リンクボタン (c-pill-link)
========================================= */

.c-pill-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.2vw, 12px);
  padding: clamp(8px, 1vw, 10px) clamp(16px, 2vw, 24px);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #fff;
  font-size: clamp(12px, 1.2vw, 14px);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  transition:
    background 0.45s ease,
    border-color 0.45s ease,
    transform 0.3s ease,
    box-shadow 0.45s ease;
}

/* ホバー時：ボタン本体の色 */
.c-pill-link:hover {
  background: rgba(89, 107, 130, 0.95);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: 0 12px 20px -3px rgba(0, 0, 0, 0.35);
}

/* 左 → 右へ流れる光 */
.c-pill-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 25%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 255, 255, 0.04) 75%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 0.7s ease;
}

.c-pill-link:hover::before {
  transform: translateX(100%);
}

/* 文字 */
.c-pill-link__text {
  position: relative;
  z-index: 2;
}

/* 矢印を囲う円 */
.c-pill-link__arrow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(20px, 2vw, 24px);
  height: clamp(20px, 2vw, 24px);
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition:
    background 0.45s ease,
    transform 0.3s ease;
}

/* ホバー時：円の背景色変更 */
.c-pill-link:hover .c-pill-link__arrow {
  background: #f3b6c8;
}

/* 矢印アイコン */
.c-pill-link__arrow svg {
  width: clamp(12px, 1.2vw, 14px);
  height: clamp(12px, 1.2vw, 14px);
  flex-shrink: 0;
}

.c-pill-link__arrow svg {
  stroke-width: 4.5; /* デフォルトは2.5。太くしたいほど数値を上げる */
}

/* ホバー時：矢印ループアニメーション */
.c-pill-link:hover .c-pill-link__arrow svg {
  animation: c-pill-arrow-loop 1.2s ease-in-out infinite;
}

/* ホバー時：矢印ループアニメーション メールフォーム*/
.c-pill-link.senku-cf7-submit:hover .c-pill-link__arrow svg {
  stroke: rgba(89, 107, 130, 0.95);
}

/* 矢印アニメーション定義 */
@keyframes c-pill-arrow-loop {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  35% {
    transform: translateX(120%);
    opacity: 0;
  }

  36% {
    transform: translateX(-120%);
    opacity: 0;
  }

  70% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

.service-intro__asset {
  transition: none !important;
  inset: 0;
}

/* =========================================
   12-1. 汎用ピル型リンクボタン：反転バリエーション (.c-pill-link--inverse)
========================================= */

/* ホバー時のボタン本体の背景を「淡いピンク・ベージュ系」またはご指定のカラーに */
.c-pill-link.c-pill-link--inverse:hover {
  background: rgba(230, 140, 168, 0.95); /* ややトーンを落とした濃いピンク */
  border-color: rgba(255, 255, 255, 0.6);
}

/* ホバー時：矢印を囲う円の背景を「青系」に変更 */
.c-pill-link.c-pill-link--inverse:hover .c-pill-link__arrow {
  background: rgba(89, 107, 130, 0.95); /* 元のホバー時青系カラー */
}

/* ホバー時：中の矢印アイコンの色をピンク（または白）に調整したい場合 */
.c-pill-link.c-pill-link--inverse:hover .c-pill-link__arrow svg {
  color: #fff; /* 必要に応じてアイコン自体のカラーを指定 */
}

/* =========================================
   12-2. 汎用ピル型リンクボタン：左側角丸バリエーション (.c-pill-link--left-rect)
========================================= */

/* ボタン本体：左側を100pxの角丸、右側を9999px（ピル型）にする */
.c-pill-link.c-pill-link--left-rect {
  border-radius: 25px 100px 100px 25px !important;
}

/* 光が流れるエフェクト（疑似要素）側も、同じ角丸の形にぴったり合わせる */
.c-pill-link.c-pill-link--left-rect::before {
  border-radius: 25px 100px 100px 25px !important;
}
/* =========================================
   13. Workflow
========================================= */

.workflow-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  /* または白い幕なら背景色を調整 */
  transform: translateY(-100%);
  /* 初期状態は上側に隠しておく */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* ======================================================================
   Company / Blog CTA
====================================================================== */

.company-blog-link {
  color: #0b659c;
  transition: background-color 0.3s ease;
}

.company-blog-text {
  color: #0b659c;
  -webkit-text-fill-color: #0b659c;
  transition:
    color 0.3s ease,
    -webkit-text-fill-color 0.3s ease;
}

.company-blog-arrow {
  color: #0b659c;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.company-blog-arrow svg {
  stroke: #0b659c;
}

/* =========================================
   Hover
========================================= */

.company-blog-link:hover .company-blog-text {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.company-blog-link:hover .company-blog-arrow {
  background: #f4a261 !important;
  color: #ffffff !important;
}

.company-blog-link:hover .company-blog-arrow svg {
  stroke: #ffffff !important;
  color: #ffffff !important;
}

/* =========================================
   矢印ループ
========================================= */

.company-blog-link:hover .company-blog-arrow svg {
  animation: company-blog-arrow-loop 1.2s ease-in-out infinite;
}

@keyframes company-blog-arrow-loop {
  0% {
    transform: translateX(0);
    opacity: 1;
  }

  35% {
    transform: translateX(120%);
    opacity: 0;
  }

  36% {
    transform: translateX(-120%);
    opacity: 0;
  }

  70% {
    transform: translateX(0);
    opacity: 1;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* =========================================
   Techサービスカード
========================================= */
.card-screen {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.card-screen__overlay {
  position: absolute;
  z-index: 0;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(200, 200, 200, 0.45);
  pointer-events: none;
  transition: top 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-screen__inner-overlay {
  position: absolute;
  z-index: 0;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(200, 200, 200, 0.45);
  pointer-events: none;
  transition: top 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.card-screen__inner {
  position: relative;
  z-index: 1;
}

.group:hover .card-screen__overlay,
.group:hover .card-screen__inner-overlay {
  top: 0;
}

.card-screen__horizontal-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );

  transform: translateX(100%);
  transition: transform 0.6s ease;
}

/* =========================================
   FBAカード：左から右へ入ってくるスクリーン
   ※基本の見た目（.card-screen__overlay / .card-screen__inner-overlay）は
     既存の「Techサービスカード」ブロックにあるので、動く向きだけ上書きする
========================================= */
.card-screen .card-screen__overlay--horizontal,
.card-screen .card-screen__inner-overlay--horizontal {
  top: 0;
  left: -100%;
  right: auto;
  transition: left 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.group:hover .card-screen .card-screen__overlay--horizontal,
.group:hover .card-screen .card-screen__inner-overlay--horizontal {
  left: 0;
}

@media (hover: none) {
  .card-screen__overlay,
  .card-screen__inner-overlay {
    display: none;
  }
}

#about {
  overflow: visible !important;
}

/* 大見出しの帯の高さを制御するクラス */
.large-heading-belt {
  height: clamp(21px, 4.1vw, 41px);
}

/* 大見出しのフォントサイズを制御するクラス */
.large-heading-font-size {
  font-size: clamp(39px, 6.75vw, 82.5px);
  line-height: 1; /* 高さとフォントサイズを美しく調和させるため */
}

/* 中見出しの帯の高さを制御するクラス */
.medium-heading-belt {
  height: clamp(17.5px, 3.4vw, 34px);
}

/* 中見出しのフォントサイズを制御するクラス */
.medium-heading-font-size {
  font-size: clamp(33px, 5.5vw, 69px);
  line-height: 1; /* 高さとフォントサイズを美しく調和させるため */
}

/* 小見出しの帯の高さを制御するクラス */
.small-heading-belt {
  height: clamp(13.75px, 2.75vw, 27.5px);
}

/* 小見出しのフォントサイズを制御するクラス */
.small-heading-font-size {
  font-size: clamp(26px, 4.5vw, 55px);
  line-height: 1; /* 高さとフォントサイズを美しく調和させるため */
}

.lead-title {
  font-weight: 700;
  /* 最小20px(1.25rem) 〜 最大24px(1.5rem) の間で画面幅に応じて滑らかに変化 */
  font-size: clamp(1.25rem, 0.94rem + 1.33vw, 1.5rem);

  /* 文字間隔もclampでまとめる場合 */
  letter-spacing: clamp(0.08em, 0.05em + 0.4vw, 0.1em);

  line-height: 1.25;
  text-align: left;
  margin-bottom: 0.25rem;
}

.lead-title-right {
  font-weight: 700;
  /* 最小20px(1.25rem) 〜 最大24px(1.5rem) の間で画面幅に応じて滑らかに変化 */
  font-size: clamp(1.25rem, 0.94rem + 1.33vw, 1.5rem);

  /* 文字間隔もclampでまとめる場合 */
  letter-spacing: clamp(0.08em, 0.05em + 0.4vw, 0.1em);

  line-height: 1.25;
  text-align: right;
  margin-bottom: 0.25rem;
}

.lead-paragraph {
  font-weight: 700; /* font-bold相当 */
  /* 最小14px(0.875rem) 〜 最大16px(1rem) の間で滑らかに変化 */
  font-size: clamp(0.875rem, 0.75rem + 0.53vw, 1rem);
  letter-spacing: clamp(0.08em, 0.06em + 0.3vw, 0.1em);
  line-height: 1.8; /* sm:leading-relaxed（約1.625）と tight（1.25）の中間、またはお好みで調整 */
  text-align: left;
}

.lead-paragraph-right {
  font-weight: 700; /* font-bold相当 */
  /* 最小14px(0.875rem) 〜 最大16px(1rem) の間で滑らかに変化 */
  font-size: clamp(0.875rem, 0.75rem + 0.53vw, 1rem);
  letter-spacing: clamp(0.08em, 0.06em + 0.3vw, 0.1em);
  line-height: 1.8; /* sm:leading-relaxed（約1.625）と tight（1.25）の中間、またはお好みで調整 */
  text-align: right;
}

.sample-caption-title-div {
  width: 100%;
  font-weight: 700;

  /* 最小12px(0.75rem) 〜 最大14px(0.875rem) の間で滑らかに変化 */
  font-size: clamp(0.75rem, 0.68rem + 0.33vw, 0.875rem);

  letter-spacing: 0.05em;
  padding-bottom: 0.25rem;

  /* 点線グラデーションの背景設定 */
  background-image: linear-gradient(to right, #b5b5b5 50%, transparent 50%);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  background-position: bottom;
}

.sample-caption-title {
  display: inline-block;
  text-decoration: none;
  color: inherit;
  white-space: nowrap;
  transition-color: color 300ms ease; /* または単に transition: color 300ms ease; */
}

.sample-caption-title:hover {
  color: #dc2626; /* hover:text-[#dc2626] 相当 */
}

.sample-caption-list {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.25rem;
  column-gap: 0.5rem;
  font-weight: 700;

  /* 最小8px 〜 最大11px の間で滑らかに変化 */
  font-size: clamp(8px, 6.75px + 0.52vw, 11px);

  /* 文字間隔もなめらかに変化させる場合 */
  letter-spacing: clamp(0.02em, 0.007em + 0.054vw, 0.05em);
}

.card-div-style {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  flex-direction: column;
  border-radius: 0.75rem; /* rounded-xl相当 (12px) */
  background-color: #f0f7f4;
  overflow: hidden;

  /* ボーダーの太さ：スマホ最小6px 〜 PC最大10px の間で滑らかに可変 */
  border: clamp(6px, 4.35px + 0.43vw, 10px) solid #ffffff;

  /* パディング：スマホ最小12px(0.75rem) 〜 PC最大20px(1.25rem) の間で滑らかに可変 */
  padding: clamp(0.75rem, 0.52rem + 0.59vw, 1.25rem);
}

.card-title {
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem; /* mb-4相当 (16px) */
  padding-bottom: 0.5rem; /* pb-2相当 (8px) */
  text-align: center;
  font-weight: 700; /* font-bold相当 */
  letter-spacing: clamp(0.07em, 0.05em + 0.4vw, 0.12em);

  /* フォントサイズ：スマホ約15px 〜 PC 16px(base) の間で滑らかに可変 */
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.025rem);
}
.card-description {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  row-gap: 0.25rem; /* gap-y-1相当 (4px) */
  column-gap: 0.75rem; /* gap-x-3相当 (12px) */
  border-top: 1px solid rgba(34, 43, 85, 0.15); /* border-t border-[#222B55]/15 相当 */
  padding-top: 0.5rem; /* pt-2相当 (8px) */
  letter-spacing: clamp(0.06em, 0.04em + 0.2vw, 0.08em);
  font-size: clamp(0.875rem, 0.75rem + 0.53vw, 1rem);
  /* 行間：relaxed（約1.625） */
  line-height: 1.65;
  /* 文字間隔：スマホ 0.07em 〜 PC 0.12em の間で滑らかに可変 */
  letter-spacing: clamp(0.06em, 0.05em + 0.5vw, 0.11em);
}

.card-heading {
  font-weight: 700; /* font-bold相当 */
  margin-bottom: 0.5rem; /* mb-2相当 (8px) */

  /* フォントサイズ：スマホ約16px(text-base相当) 〜 PC 18px(text-lg相当) の間で滑らかに可変 */
  font-size: clamp(1rem, 0.89rem + 0.55vw, 1.125rem);
  /* 文字間隔：スマホ 0.08em 〜 PC 0.15em の間で滑らかに可変 */
  letter-spacing: clamp(0.08em, 0.05em + 0.5vw, 0.15em);
}

.attention-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* gap-2相当 (8px) */
  font-weight: 600; /* font-semibold相当 */
  margin-bottom: 1rem; /* mb-4相当 (16px) */

  /* フォントサイズ：スマホ約18px(1.125rem) 〜 PC 20px(text-xl相当) の間で滑らかに可変 */
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.25rem);
}
.attention-paragraph {
  line-height: 2;
}

.attention-circle-heading {
  font-weight: 700; /* font-bold相当 */
  margin-bottom: 1rem; /* mb-4相当 (16px) */
  letter-spacing: 0.025em; /* tracking-wide相当 */

  /* フォントサイズ：スマホ約20px(text-xl) 〜 PC 24px(text-2xl) の間で滑らかに可変 */
  font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);

  /* テキストシャドウ（輪郭とドロップシャドウ） */
  text-shadow:
    2px 0 0 rgb(70, 70, 70),
    -2px 0 0 rgb(70, 70, 70),
    0 2px 0 rgb(70, 70, 70),
    0 -2px 0 rgb(70, 70, 70),
    2px 2px 0 rgb(70, 70, 70),
    -2px -2px 0 rgb(70, 70, 70),
    2px -2px 0 rgb(70, 70, 70),
    -2px 2px 0 rgb(70, 70, 70),
    0 6px 12px rgba(0, 0, 0, 0.7);
}

.attention-circle-paragraph {
  font-weight: 700; /* font-bold相当 */
  line-height: 2; /* leading-loose相当 (約2) */

  /* フォントサイズ：スマホ約14px 〜 PC 16px(text-base) の間で滑らかに可変 */
  font-size: clamp(0.875rem, 0.75rem + 0.53vw, 1rem);

  /* テキストシャドウ（輪郭とドロップシャドウ） */
  text-shadow:
    1.5px 0 0 rgb(70, 70, 70),
    -1.5px 0 0 rgb(70, 70, 70),
    0 1.5px 0 rgb(70, 70, 70),
    0 -1.5px 0 rgb(70, 70, 70),
    1.5px 1.5px 0 rgb(70, 70, 70),
    -1.5px -1.5px 0 rgb(70, 70, 70),
    1.5px -1.5px 0 rgb(70, 70, 70),
    -1.5px 2px 0 rgb(70, 70, 70),
    0 4px 8px rgba(0, 0, 0, 0.7);
}

/* PCサイズを基準としつつ、スマホ（例: 768px以下）で縮小させる例 */
@media screen and (max-width: 768px) {
  /* 左上のロゴ画像サイズを縮小 */
  .site-logo-fixed {
    top: 12px; /* スマホ用に少し余白を詰める場合 */
    left: 12px;
  }
  .site-logo-fixed__image {
    max-width: 75px; /* 例：スマホでの最大幅を指定（元サイズに合わせて調整してください） */
    height: auto;
  }

  /* 右上のヘッダーコントロール群（ハンバーガー ＋ bags画像）全体を縮小 */
  .site-header-mobile {
    top: 12px;
    right: 12px;
  }
  .header-controls-group {
    transform: scale(0.85); /* 全体をまとめて85%などに縮小する場合の例 */
    transform-origin: top right; /* 右上を起点に縮小 */
  }

  /* または個別にバッグ画像やハンバーガーボタンのサイズを指定する場合 */
  .header-bag-image {
    width: 32px; /* スマホでの希望のサイズに調整 */
    height: auto;
  }
}

/* ========================================
   価格表 共通
   ======================================== */

.price-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.price-table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.price-table tbody tr {
  border-bottom: 1px solid #e5e5e5;
}

.price-table tbody tr:last-child {
  border-bottom: none;
}

/* ----------------------------------------
   セル共通
   ---------------------------------------- */

.price-table th,
.price-table td {
  padding: clamp(0.75rem, 1.5vw, 1.5rem) clamp(0.75rem, 2vw, 2rem);

  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
}

/* ----------------------------------------
   ヘッド
   ---------------------------------------- */

.price-table thead {
  border-bottom: 3px solid #d0d0d0;
}

.price-table th {
  text-align: center;
  color: #4a4a4a;
  font-weight: 700;
}

.price-table th:first-child {
  text-align: left;
}

/* ----------------------------------------
   ボディ
   ---------------------------------------- */

.price-table tbody tr {
  border-bottom: 1px solid #e5e5e5;
}

.price-table td:nth-child(1) {
  text-align: left;
}

.price-table td:nth-child(2),
.price-table td:nth-child(4) {
  text-align: center;
}

.price-table td:nth-child(3) {
  text-align: right;
}
.price-example {
  width: 90%;
  margin: clamp(1rem, 3vw, 2rem) auto 0;
  box-sizing: border-box;
}

.price-example__item {
  width: 100%;
  background: #fdfdfc;
  margin-top: clamp(2.5rem, 5vw, 5rem);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
}
/* ----------------------------------------
   文字の階層
   ---------------------------------------- */

.price-table__main {
  color: #4a4a4a;
  font-weight: 600;
}

.price-table__sub {
  color: #666666;
  font-size: clamp(0.875rem, 1.2vw, 1.125rem);
  font-weight: 400;
}

.price-table__price {
  color: #4a4a4a;
  font-weight: 700;
}

.price-table__note {
  color: #666666;
  font-size: 0.875em;
  font-weight: 400;
}

.price-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.price-table-wrap::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* ========================================
   価格表：カテゴリー見出し
   ======================================== */

.price-table__group th {
  padding-top: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: clamp(0.75rem, 1.5vw, 1.5rem);

  text-align: left;
  color: #4a4a4a;
  font-weight: 700;
  font-size: clamp(0.95rem, 1.3vw, 1.125rem);
}

@media (max-width: 640px) {
  .price-table__group th {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    background: #4a4a4a;
    color: #fff;
    border: none;
  }

  /* ← 追加：先頭行も同じ余白にする */
  .price-table__group:first-child th {
    padding: 8px 12px;
  }

  /* 先頭行の上マージンも不要なら */
  .price-table__group:first-child {
    margin-top: 0;
  }
}

/* 最初のカテゴリーだけ上の余白を少なくする */
.price-table__group:first-child th {
  padding-top: clamp(0.75rem, 1.5vw, 1.5rem);
  margin-top: 24px; /* 好みで調整（16〜32px） */
}

/* ========================================
   価格表：備考
   ======================================== */

.price-table__note-row td {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;

  color: #666666;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  text-align: left;
  border-bottom: none !important;
}

/* ========================================
   価格表 カラーバリエーション
   参考用
   ======================================== */

/* ----------------------------------------
   Blue
   ---------------------------------------- */

.price-table--blue thead {
  background: #163858;
}

.price-table--blue th {
  color: #fff;
}

.price-table--blue .price-table__price {
  color: #163858;
}

/* ----------------------------------------
   Green
   ---------------------------------------- */

.price-table--green thead {
  background: #335e6d;
}

.price-table--green th {
  color: #fff;
}

.price-table--green .price-table__price {
  color: #335e6d;
}

/* ----------------------------------------
   Gray
   ---------------------------------------- */

.price-table--gray thead {
  background: #666666;
}

.price-table--gray th {
  color: #fff;
}

.price-table--gray .price-table__price {
  color: #4a4a4a;
}
/* ========================================
   作業例
   ======================================== */

.price-example {
  width: 90%;
  margin: clamp(3rem, 6vw, 6rem) auto 0;
  box-sizing: border-box;
}

.price-example__item {
  margin-top: clamp(2.5rem, 5vw, 5rem);
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

.price-example__item:first-child {
  margin-top: 0;
}

.price-example__table,
.price-example__total {
  margin-left: clamp(1rem, 3vw, 2.5rem);
  margin-right: clamp(1rem, 3vw, 2.5rem);
}

.price-example__unit {
  margin: 0;
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
  padding-right: 2rem; /* ← 右だけここで調整 */
  background: #f4fbfd;
  color: #666666;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  text-align: right;
}

/* ----------------------------------------
   見出し
   ---------------------------------------- */

.price-example__head {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);

  padding: clamp(0.9rem, 1.5vw, 1.25rem) clamp(1rem, 2vw, 1.5rem);

  background: #dff4fa;
  border-left: 5px solid #72c9df;
}

.price-example__number {
  flex-shrink: 0;

  color: #398da5;
  font-size: clamp(0.7rem, 1vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.price-example__title {
  color: #4a4a4a;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  font-weight: 700;
}

/* ----------------------------------------
   説明
   ---------------------------------------- */

.price-example__intro {
  margin: 0 clamp(1rem, 3vw, 2.5rem);
  padding: clamp(1rem, 2vw, 1.5rem) 0;

  color: #666666;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
  line-height: 1.9;
}

/* ----------------------------------------
   明細
   ---------------------------------------- */

.price-example__row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 0.6fr);
  border-bottom: 1px solid #e5e5e5;

  color: #4a4a4a;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
}

.price-example__row:last-child {
  border-bottom: none;
}

.price-example__row > div {
  padding: clamp(0.7rem, 1.3vw, 1rem) clamp(0.5rem, 1.5vw, 1rem);
}

.price-example__row > div:last-child {
  text-align: right;
  font-weight: 700;
}

/* 明細ヘッダー */

.price-example__row--header {
  border-bottom: 2px solid #c8e7ef;

  color: #398da5;
  font-weight: 700;
}

.price-example__row--header > div:last-child {
  font-weight: 700;
}

/* ----------------------------------------
   合計
   ---------------------------------------- */

.price-example__total {
  margin-top: clamp(1rem, 2vw, 1.5rem);
  border-top: none;
}

.price-example__total > div {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 0.65rem clamp(0.5rem, 1.5vw, 1rem);

  color: #666666;
  font-size: clamp(0.8rem, 1.1vw, 0.95rem);
}

.price-example__total strong {
  color: #4a4a4a;
  font-weight: 700;
}

/* 最終合計 */
.price-example__total-main {
  position: relative;

  margin-top: 0.5rem;
  padding-top: 1rem !important;

  border-top: 1px solid #e5e5e5;

  color: #4a4a4a !important;
  font-weight: 700;
}

/* グレー線のすぐ上に青線を追加 */
.price-example__total-main::before {
  content: "";
  position: absolute;

  top: -5px;
  left: 0;
  right: 0;

  height: 2px;
  background: #c8e7ef;
}

.price-example__total-main strong {
  color: #398da5;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}
/* ----------------------------------------
   1点あたり
   ---------------------------------------- */

.price-example__unit {
  margin: 0;
  padding: 0.75rem 1rem;

  background: #f4fbfd;

  color: #666666;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  text-align: right;
}

.price-example__unit strong {
  color: #398da5;
  font-weight: 700;
}

/* ----------------------------------------
   スマホ
   ---------------------------------------- */

@media (max-width: 640px) {
  .price-example__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;

    border-left-width: 4px;
  }

  .price-example__row {
    grid-template-columns: 1.25fr 1fr 0.65fr;
  }

  .price-example__row > div {
    padding: 0.7rem 0.45rem;
  }

  .price-example__intro {
    line-height: 1.8;
  }
}

@media (max-width: 640px) {
  /* 横スクロールを解除 */
  .price-table-wrap {
    overflow-x: visible;
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td {
    display: block;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* 見出し行は視覚的にのみ隠す */
  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  /* グループ見出し */
  .price-table__group {
    margin: 24px 0 8px;
  }
  .price-table__group th {
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    background: #4a4a4a;
    color: #fff;
    border: none;
  }

  /* 1行 = 1カード（2列グリッド：左=単位 / 右=料金） */
  .price-table tbody tr:not(.price-table__group):not(.price-table__note-row) {
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 16px;
    align-items: start;
    margin-bottom: 10px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
  }

  .price-table td {
    padding: 0;
    border: none;
  }

  /* 制作内容（全幅） */
  .price-table .price-table__main {
    grid-column: 1 / -1;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.5;
    text-align: left;
  }
  .price-table__note {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    font-weight: 400;
    color: #777;
    line-height: 1.6;
  }

  /* 単位・料金 共通（line-heightを必ず揃える） */
  .price-table .price-table__sub,
  .price-table .price-table__price {
    width: auto;
    margin-top: 10px;
    padding: 10px 0 0 !important;
    border-top: 1px dashed #e5e7eb !important;
    font-size: 14px;
    line-height: 1.9;
    white-space: nowrap;
  }

  /* 単位・内容（左列） */
  .price-table .price-table__sub {
    grid-column: 1;
    text-align: left !important;
    color: #777;
    font-weight: 400;
  }

  /* 料金（右列） */
  .price-table .price-table__price {
    grid-column: 2;
    text-align: right !important;
    color: #4a4a4a;
    font-weight: 700;
  }

  /* 注意書き行 */
  .price-table__note-row td {
    padding: 8px 4px;
    font-size: 11px;
    color: #777;
    line-height: 1.8;
  }
}

.sq-income-animation {
  position: absolute;
  right: 0;
  top: 0;

  /* 1枚目の画像で親のサイズを確保 */
  display: inline-block;
}

.sq-income-img {
  display: block;
}

/* 1枚目は通常配置して、親の幅を作る */
.sq-income-img-01 {
  position: relative;
  animation: sqIncome01 2.2s steps(1, end) infinite;
}

/* 2枚目だけ1枚目の上に重ねる */
.sq-income-img-02 {
  position: absolute;
  top: 0;
  right: 0;
  animation: sqIncome02 2.2s steps(1, end) infinite;
}

@keyframes sqIncome01 {
  0%,
  49.999% {
    opacity: 0.8;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes sqIncome02 {
  0%,
  49.999% {
    opacity: 0;
  }

  50%,
  100% {
    opacity: 0.8;
  }
}

/* ==== Outcomes：切り替えで高さが変わらないようにする ==== */
/* キャプションを同じマスに重ね、高さを常に「高いほう」に固定する。
   → 右カラムの高さが変わらず、左カラムのリスの位置も動かない。 */
#outcomes-meta-container {
  display: grid;
}

#outcomes-meta-container > .outcomes__meta {
  grid-area: 1 / 1;
  min-width: 0;
}

#outcomes-meta-container > .outcomes__meta.hidden {
  display: flex;
  visibility: hidden;
}

/* 2枚目のスライドがキャプションのリンクを覆わないようにする */
#outcomes-slider-container .outcomes__slide {
  pointer-events: none;
}

/* ======================================================================
   HERO DAY / NIGHT SCENE
   ====================================================================== */

#top.hero {
  position: relative;
  overflow: hidden;
}

/* Both scenes fill the HERO */

.hero-scene {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  display: none;
}

/* Active scene only */

.hero-scene.is-active {
  display: block;
}

/* ======================================================================
   NIGHT HERO SETTINGS
   PC / DEFAULT
   ====================================================================== */

.hero--night {
  /* ==================================================
     DESERT
     ================================================== */

  --night-desert-width: 100%;
  --night-desert-left: 0%;
  --night-desert-bottom: 0px;

  --night-desert-duration: 0.7s;
  --night-desert-overrun: 5px;

  /* ==================================================
     MOON
     ================================================== */

  --night-moon-width: 150px;

  --night-moon-top: 6%;
  --night-moon-right: 7%;

  --night-moon-start-y: -250px;

  --night-moon-duration: 1.2s;

  /* ==================================================
     FIRE
     ================================================== */

  --night-fire-width: 120px;

  --night-fire-right: 15%;
  --night-fire-bottom: 8%;

  --night-fire-fade-duration: 2s;

  --night-fire-frame-speed: 0.4s;

  /* ==================================================
     PLANE
     ================================================== */

  --night-plane-width: 500px;

  --night-plane-top: 16%;
  --night-plane-left: 40%;

  --night-plane-start-x: -360%;
  --night-plane-start-y: -220%;

  --night-plane-enter-duration: 3.4s;

  --night-plane-frame-speed: 0.95s;

  /* ==================================================
     NIGHT COPY
     ================================================== */

  --night-copy-top: 15%;
  --night-copy-left: 6%;
  --night-copy-width: 70%;

  --night-heading-size: 22px;
  --night-heading-line-height: 1.3;
  --night-heading-gap: 10px;

  --night-beyond-size: 92px;
  --night-beyond-margin-top: 18px;

  --night-tech-size: 42px;
  --night-tech-margin-top: 18px;

  --night-company-size: 62px;
  --night-company-margin-top: 12px;

  /* ==================================================
     LAYERS
     ================================================== */

  --night-z-moon: 2;
  --night-z-desert: 3;
  --night-z-fire: 5;
  --night-z-plane: 6;
  --night-z-copy: 7;
}

/* ======================================================================
   MOBILE
   0 - 767px
   ====================================================================== */

@media (max-width: 767px) {
  .hero--night {
    /* Desert */

    --night-desert-width: 135%;
    --night-desert-left: -20%;
    --night-desert-bottom: 0px;

    /* Moon */

    --night-moon-width: 70px;

    --night-moon-top: 8%;
    --night-moon-right: 80%;

    /* Fire */

    --night-fire-width: 80px;

    --night-fire-right: 5%;
    --night-fire-bottom: 5%;

    /* Plane */

    --night-plane-width: 220px;

    --night-plane-top: 43%;
    --night-plane-left: 42%;

    --night-plane-start-x: -170%;
    --night-plane-start-y: -150%;

    /* Copy */

    --night-copy-top: 26%;
    --night-copy-left: 6%;
    --night-copy-width: 88%;

    --night-heading-size: 20px;
    --night-heading-line-height: 1.35;
    --night-heading-gap: 8px;

    --night-beyond-size: 66px;
    --night-beyond-margin-top: 14px;

    --night-tech-size: 30px;
    --night-tech-margin-top: 12px;

    --night-company-size: 45px;
    --night-company-margin-top: 9px;
  }
}

/* ======================================================================
   TABLET
   768 - 1023px
   ====================================================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .hero--night {
    /* Desert */

    --night-desert-width: 120%;
    --night-desert-left: -10%;
    --night-desert-bottom: 0px;

    /* Moon */

    --night-moon-width: 100px;

    --night-moon-top: 7%;
    --night-moon-right: 6%;

    /* Fire */

    --night-fire-width: 130px;

    --night-fire-right: 15%;
    --night-fire-bottom: 6%;

    /* Plane */

    --night-plane-width: 380px;

    --night-plane-top: 27%;
    --night-plane-left: 49%;

    --night-plane-start-x: -265%;
    --night-plane-start-y: -195%;

    /* Copy */

    --night-copy-top: 16%;
    --night-copy-left: 7%;
    --night-copy-width: 80%;

    --night-heading-size: 32px;
    --night-heading-line-height: 1.3;
    --night-heading-gap: 9px;

    --night-beyond-size: 86px;
    --night-beyond-margin-top: 16px;

    --night-tech-size: 40px;
    --night-tech-margin-top: 22px;

    --night-company-size: 60px;
    --night-company-margin-top: 18px;
  }
}

/* ======================================================================
   DESERT
   ====================================================================== */

.hero--night .hero__desert {
  position: absolute;

  left: var(--night-desert-left);
  bottom: var(--night-desert-bottom);

  width: var(--night-desert-width);
  max-width: none;
  height: auto;

  z-index: var(--night-z-desert);

  display: block;

  opacity: 0;

  transform: translateY(105%);

  pointer-events: none;

  will-change: transform, opacity;
}

.hero--night.is-desert-enter .hero__desert {
  animation: hero-night-desert-enter var(--night-desert-duration)
    cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}

@keyframes hero-night-desert-enter {
  0% {
    opacity: 1;
    transform: translateY(105%);
  }

  82% {
    opacity: 1;

    transform: translateY(calc(-1 * var(--night-desert-overrun)));
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================================
   MOON
   ====================================================================== */

.hero--night .hero-night__moon {
  position: absolute;

  top: var(--night-moon-top);
  right: var(--night-moon-right);

  width: var(--night-moon-width);
  max-width: none;
  height: auto;

  z-index: var(--night-z-moon);

  display: block;

  opacity: 0;

  transform: translateY(var(--night-moon-start-y));

  pointer-events: none;

  will-change: transform, opacity;
}

.hero--night.is-night-second-stage .hero-night__moon {
  animation: hero-night-moon-enter var(--night-moon-duration)
    cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}

@keyframes hero-night-moon-enter {
  0% {
    opacity: 0;

    transform: translateY(var(--night-moon-start-y));
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ======================================================================
   FIRE
   ====================================================================== */

.hero--night .hero-night__fire {
  position: absolute;

  right: var(--night-fire-right);
  bottom: var(--night-fire-bottom);

  width: var(--night-fire-width);
  max-width: none;
  height: auto;

  z-index: var(--night-z-fire);

  opacity: 0;

  transform: translateX(-50%);

  pointer-events: none;

  transition: opacity var(--night-fire-fade-duration) ease-out;

  will-change: opacity;

  isolation: isolate;
}

.hero--night.is-night-second-stage .hero-night__fire {
  opacity: 1;
}

/* ======================================================================
   FIRE FRAMES
   ====================================================================== */

.hero--night .hero-night__fire-frame {
  position: absolute;

  left: 0;
  bottom: 0;

  width: 100%;
  max-width: none;
  height: auto;

  display: block;

  pointer-events: none;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero--night .hero-night__fire-frame:nth-child(1) {
  position: relative;

  opacity: 1;

  z-index: 1;
}

.hero--night .hero-night__fire-frame:nth-child(2) {
  opacity: 0;

  z-index: 2;
}

.hero--night.is-fire-burning .hero-night__fire-frame:nth-child(1) {
  animation: hero-night-fire-frame-1 var(--night-fire-frame-speed) steps(1, end)
    infinite;
}

.hero--night.is-fire-burning .hero-night__fire-frame:nth-child(2) {
  animation: hero-night-fire-frame-2 var(--night-fire-frame-speed) steps(1, end)
    infinite;
}

@keyframes hero-night-fire-frame-1 {
  0%,
  49.99% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes hero-night-fire-frame-2 {
  0%,
  49.99% {
    opacity: 0;
  }

  50%,
  100% {
    opacity: 1;
  }
}

/* ======================================================================
   PLANE
   ====================================================================== */

.hero--night .hero-night__plane {
  position: absolute;

  top: var(--night-plane-top);
  left: var(--night-plane-left);

  width: var(--night-plane-width);
  max-width: none;
  height: auto;

  z-index: var(--night-z-plane);

  display: block;

  opacity: 0;

  transform: translate(var(--night-plane-start-x), var(--night-plane-start-y));

  pointer-events: none;

  will-change: transform, opacity;
}

.hero--night.is-plane-enter .hero-night__plane {
  animation: hero-night-plane-enter var(--night-plane-enter-duration)
    cubic-bezier(0.22, 0.8, 0.3, 1) forwards;
}

.hero-night__plane,
.hero-night__plane-frame {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  will-change: transform, opacity; /* ←これを追加 */
}

@keyframes hero-night-plane-enter {
  0% {
    opacity: 1;

    transform: translate(
      var(--night-plane-start-x),
      var(--night-plane-start-y)
    );
  }

  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

/* ======================================================================
   PLANE FRAMES
   ====================================================================== */

.hero--night .hero-night__plane-frame {
  position: absolute;

  left: 0;
  top: 0;

  width: 100%;
  max-width: none;
  height: auto;

  display: block;

  pointer-events: none;

  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero--night .hero-night__plane-frame:nth-child(1) {
  position: relative;

  opacity: 1;

  z-index: 1;
}

.hero--night .hero-night__plane-frame:nth-child(2) {
  opacity: 0;

  z-index: 2;
}

.hero--night.is-plane-animating .hero-night__plane-frame:nth-child(1) {
  animation: hero-night-plane-frame-1 var(--night-plane-frame-speed)
    steps(1, end) infinite;
}

.hero--night.is-plane-animating .hero-night__plane-frame:nth-child(2) {
  animation: hero-night-plane-frame-2 var(--night-plane-frame-speed)
    steps(1, end) infinite;
}

@keyframes hero-night-plane-frame-1 {
  0%,
  49.99% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

@keyframes hero-night-plane-frame-2 {
  0%,
  49.99% {
    opacity: 0;
  }

  50%,
  100% {
    opacity: 1;
  }
}

/* ======================================================================
   NIGHT COPY
   Night has independent styling.
   Animation classes are shared with daytime.
   ====================================================================== */

.hero--night .hero-night__copy {
  position: absolute;

  top: var(--night-copy-top);
  left: var(--night-copy-left);

  width: var(--night-copy-width);

  z-index: var(--night-z-copy);
}

.hero--night .hero-night__copy .hero__heading {
  margin: 0;

  display: flex;
  flex-direction: column;

  gap: var(--night-heading-gap);
}

.hero--night .hero-night__copy .hero__heading-line {
  font-size: var(--night-heading-size);
  line-height: var(--night-heading-line-height);
}

.hero--night .hero-night__copy .hero__beyond {
  margin-top: var(--night-beyond-margin-top);

  font-size: var(--night-beyond-size);
}

.hero--night .hero-night__copy .hero__tech {
  margin-top: var(--night-tech-margin-top);

  font-size: var(--night-tech-size);
}

.hero--night .hero-night__copy .hero__company {
  margin-top: var(--night-company-margin-top);

  font-size: var(--night-company-size);
}

/* ======================================================================
   HERO MODE SWITCH / bottom left, vertical
   ====================================================================== */

#top.hero .hero-mode-switch {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

#top.hero .hero-mode-btn {
  appearance: none;
  -webkit-appearance: none;

  width: 140px;
  box-sizing: border-box;
  text-align: center;

  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;

  padding: 9px 14px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.04em;

  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  transition:
    background 0.2s ease,
    color 0.2s ease;
}

/* 選択中 */
#top.hero .hero-mode-btn.is-active {
  background: #fff;
  color: #222;
  border-color: #fff;
}

/* キーボード操作 */
#top.hero .hero-mode-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ======================================================================
   SMARTPHONE / 767px以下
   ====================================================================== */

@media (max-width: 767px) {
  #top.hero .hero-mode-switch {
    left: 12px;
    bottom: 12px;
  }

  #top.hero .hero-mode-btn {
    width: 115px;
    padding: 8px 11px;
    font-size: 10px;
  }
}
