@charset "utf-8";

/* =========================================================
   JUDGE - TOP
   PC / SP 兼用（境界 750px）

   ・751px 以上 … PC レイアウト。1920px で Figma と一致し、
                   それ以下では内容幅が縮んで追従する
   ・750px 以下 … SP レイアウト。750px 設計を rem で等比縮小
                   （html の font-size = 画面幅/75 → 1rem = 10 設計px）
   ========================================================= */

/* ---------- tokens ---------- */
/* Barlow はサイト内に置いて読む（assets/fonts/）。
   Google から取ると、届くまでの数百ミリ秒だけ素のフォントで描かれ、
   届いた瞬間に字幅が変わってヘッダーが横に跳ねる。
   同じ場所から読めば、その一瞬が無くなる。latin だけの軽い版（各22KB） */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 300;
  font-display: swap; src: url("../fonts/barlow-300.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500;
  font-display: swap; src: url("../fonts/barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600;
  font-display: swap; src: url("../fonts/barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700;
  font-display: swap; src: url("../fonts/barlow-700.woff2") format("woff2"); }

:root {
  --navy-deep: #010c21;
  --navy: #0c1b52;
  --navy-mid: #043187;
  --blue: #6b98ed;
  --ink: #0a1430;
  --gold: #9e8149;
  --gold-dark: #745820;
  --gold-light: #e8b85c;
  --gold-deep: #8a6f3c;     /* 下層ページの CSS にも同じ値がある */
  --paper: #f7f9fc;
  --line: #cdd4e1;
  --line-soft: #e3e7ef;
  --muted: #4a5670;
  --gray: #818181;

  --grad-gold: linear-gradient(101.3deg, #9e8149 0.3%, #745820 100%);

  --f-en: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --f-jp: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --canvas-w: 1920px;      /* 装飾レイヤーの基準幅 */
  --container-w: 1400px;   /* 内容幅 */
  /* 内容の左右余白。ノートPC幅でも左右が詰まらないよう画面幅に比例させる。
     ただし内容幅が 1200px を下回らない範囲までに抑えるので、
     1280px 以下の見え方はこれまでと同じ。1920px も内容幅 1400px の上限が効くので不変 */
  --gutter: clamp(40px, min(8.33vw, (100vw - 1200px) / 2), 240px);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* ローディングの幕は loader.css が来るまで出さない。
   これが無いと、loader.css が届くまでの一瞬だけ素の状態で積まれて、
   ヘッダーごと下に押し出されてしまう（display は loader.css 側で戻す） */
.l-loader { display: none; }

html {
  -webkit-text-size-adjust: 100%;
  /* スクロールバーが出たり消えたりすると横幅が 15px ほど変わる。
     ヘッダーは 1240px / 1020px で文字やロゴの大きさを変えているので、
     その境目付近だと「一瞬だけ違う大きさのヘッダー」が見えてしまう。
     そこで、スクロールバーの溝をいつも出しておいて幅を固定する。
     ローディング中も loader.css 側で overflow-y:scroll のままにしてある */
  overflow-y: scroll;
}

body {
  margin: 0;
  background: var(--navy-deep);
  color: #fff;
  font-family: var(--f-jp);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

img,
svg { display: block; border: 0; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul, ol, li { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, p, figure { margin: 0; }

button {
  margin: 0; padding: 0; border: 0;
  background: none; font: inherit; color: inherit;
  cursor: pointer;
}

.sp-only { display: none; }

/* ---------- layout helpers ---------- */
.page { position: relative; overflow: hidden; }

/* 1920px 基準の装飾レイヤー（画面中央に固定幅で置く） */
.canvas {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: calc(var(--canvas-w) / -2);
  width: var(--canvas-w);
  height: 100%;
  pointer-events: none;
}

.container {
  position: relative;
  width: min(var(--container-w), 100% - var(--gutter) * 2);
  margin: 0 auto;
}

/* =========================================================
   section head  (01 | Service ——— / 見出し)
   ========================================================= */
.sec-head { display: flex; flex-direction: column; gap: 16px; }

.sec-en {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 49px;
}

.sec-en__num {
  position: relative;
  flex: none;
  width: 96px;
  height: 49px;
  margin-right: 6px;
  font-family: var(--f-en);
  font-weight: 600;
  font-size: 62px;
  line-height: 49px;
  color: var(--gold);
}

.sec-en__num::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 95px;
  width: 2px;
  height: 38px;
  background: currentColor;
}

.sec-en__txt {
  flex: none;
  font-family: var(--f-en);
  font-weight: 700;
  font-size: 36px;
  line-height: 39.6px;
  color: var(--gold);
}

/* 先細りの装飾ライン */
.sec-en__rule {
  flex: 0 1 760px;
  min-width: 0;
  height: 6.91px;
  background: linear-gradient(90deg, #9e8149 0%, rgba(158, 129, 73, 0) 100%);
  clip-path: polygon(0.921% 0, 100% 0, 99.079% 100%, 0 100%);
}

.sec-en__rule--sm { flex-basis: 216px; }

.sec-head__title {
  font-family: var(--f-jp);
  font-weight: 700;
  font-size: 45px;
  line-height: 71.54px;
  letter-spacing: 1.037px;
  color: #fff;
}

.sec-head--dark .sec-head__title { color: var(--navy-deep); }

.sec-head--light .sec-en__num,
.sec-head--light .sec-en__txt { color: #fff; }

.sec-head--light .sec-en__rule {
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

/* =========================================================
   lead block  (アイコン＋見出し＋罫線＋本文)
   ========================================================= */
.lead { display: flex; flex-direction: column; gap: 20px; }

.lead__head { display: flex; align-items: center; gap: 20px; }

.lead__icon { width: 50px; height: 50px; flex: none; }

.lead__title {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.2;
  color: #fff;
}

.lead__rule {
  width: 700px;
  max-width: 100%;
  height: 1px;
  margin-bottom: -1px;   /* Figma の罫線は高さ 0 のため 1px 分戻す */
  background: linear-gradient(90deg, #ffffff 0%, rgba(191, 209, 244, 0.5) 100%);
}

.lead__text {
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  color: #fff;
}

/* =========================================================
   button  (もっと見る)
   ========================================================= */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 250px;
  height: 54px;
  padding: 15px 30px;
  background: var(--grad-gold);
  color: #fff;
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  transition: opacity .25s ease;
}

.btn:hover { opacity: .82; }

.btn__icon { width: 20px; height: 20px; flex: none; }

.btn--solid { background: var(--gold); }

/* 文字が長いボタン。about の .standard__btn と同じ考えで、中身に合わせて伸ばす */
.btn--wide {
  display: inline-flex;
  width: auto;
  min-width: 250px;
  padding: 15px 36px;
  font-size: 18px;
}

/* =========================================================
   header / global nav
   ========================================================= */
.gnav {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1392px, 100% - var(--gutter) * 2);
  height: 70px;
}

/* TOP だけ、ロゴを h1 で包んでいる（SEO）。
   display:contents にして、包んだぶんの箱を無くしてある。
   こうすると <a class="gnav__logo"> が今までどおり .gnav の
   flex の子のままになるので、見た目は 1px も動かない */
.gnav__h1 { display: contents; font-size: inherit; font-weight: inherit; }

.gnav__logo img { width: 93px; height: 70px; object-fit: cover; }

.gnav__toggle { display: none; }

.gnav__menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 50px;
  flex: 1 1 auto;
}

.gnav__list {
  display: flex;
  align-items: center;
  gap: 50px;
}

.gnav__list a {
  font-family: var(--f-jp);
  font-weight: 700;
  font-size: 16px;
  line-height: 19px;
  color: #fff;
  transition: color .25s ease;
}

.gnav__list a:hover { color: var(--gold-light); }

.gnav__list a span { display: none; }

.gnav__contact {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  background: linear-gradient(106.7deg, #9e8149 0.6%, #745820 100%);
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
  color: #fff;
  transition: opacity .25s ease;
}

.gnav__contact:hover { opacity: .82; }

/* ---------- 751px〜：ナビが入りきらない幅では文字と間隔を詰める ---------- */
.gnav__logo { flex: none; }

/* ---------- 下層ページの共通クロム（ヘッダーの帯・パンくず） ----------
   同じ指定が各ページの CSS にもあるが、そちらは2枚目に読み込まれる。
   1枚目だけが効いた一瞬、下層ページのヘッダーが TOP 用の指定
   （帯なし・position:absolute・top:80px）で描かれてしまうため、
   同じ内容をこちら（1枚目）にも置いて、その一瞬をなくす。
   ページ側の指定は後から同じ値で上書きされるので、見た目は変わらない */
.gnav-bar {
  padding: 20px 0;
  background: var(--navy-deep);
}

.gnav--solid {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  margin: 0 auto;
}

.crumb {
  display: flex;
  align-items: center;
  height: 60px;
  background: var(--paper);
}

.crumb__inner {
  width: min(var(--container-w), 100% - var(--gutter) * 2);
  margin: 0 auto;
  font-size: 16px;
  line-height: 32px;
  color: var(--navy);
}

.crumb__inner span { margin: 0 12px; }

@media (max-width: 1240px) and (min-width: 751px) {
  .gnav__menu { gap: 30px; }
  .gnav__list { gap: 26px; }
  .gnav__list a { font-size: 15px; }
  .gnav__contact { padding: 10px 22px; font-size: 15px; }
}

@media (max-width: 1020px) and (min-width: 751px) {
  .gnav__logo img { width: 76px; height: 57px; }
  .gnav__menu { gap: 20px; }
  .gnav__list { gap: 18px; }
  .gnav__list a { font-size: 13px; }
  .gnav__contact { padding: 9px 16px; font-size: 13px; }
}

/* ノートPCの狭い幅。メニューが日本語になって横幅が要るようになったので、
   スマホ表示に切り替わる 751px の手前まで、文字と間隔を詰めておく */
@media (max-width: 940px) and (min-width: 751px) {
  .gnav__menu { gap: 12px; }
  .gnav__list { gap: 10px; }
  .gnav__list a { font-size: 12px; }
  .gnav__contact { padding: 8px 12px; font-size: 12px; }
}

/* =========================================================
   FV  (hero)
   ========================================================= */
.fv {
  position: relative;
  /* 下にロゴの帯を置くぶん、背景写真（1081px）の範囲で伸ばしている */
  height: 1040px;
  overflow: hidden;
}

.fv__bg {
  position: absolute;
  top: -41px;
  left: 0;
  width: 1920px;
  height: 1081px;
  max-width: none;
  object-fit: cover;
}

/* 軌道（楕円）装飾 */
.fv__orbits {
  position: absolute;
  top: 0;
  left: 0;
  width: 3642px;
  height: 2802.15px;
  transform: matrix(-0.96593, -0.25882, 0.25882, -0.96593, 2477.90186, 1481.29272);
  transform-origin: 0 0;
}

.fv__orbits span {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
}

.fv__orbit1 { top: 218px; left: 227px; width: 3415px; height: 2112px; }

.fv__orbit2 {
  top: 0; left: 0;
  width: 3001px; height: 2112px;
  transform: matrix(0.96593, -0.25882, 0.25882, 0.96593, 0.18442, 762.21692);
  transform-origin: 0 0;
}

.fv__orbit3 {
  top: 0; left: 0;
  width: 3160.86px; height: 2042.64px;
  transform: matrix(0.96593, -0.25882, 0.25882, 0.96593, -99.31792, 935.04083);
  transform-origin: 0 0;
}

/* 球体アイコン */
.fv__sphere { position: absolute; max-width: none; }
.fv__sphere--dots   { top: 547px; left: 127px;  width: 78.7px;  height: 78.74px; }
.fv__sphere--stripe { top: 653px; left: 742px;  width: 78.69px; height: 78.65px; }
.fv__sphere--grid   { top: 514px; left: 1681px; width: 85.87px; height: 84.28px; }

/* ネットワークの点 */
.fv__nodes {
  position: absolute;
  /* ロゴの帯（z-index:3）より上。重なった位置の星も押せるようにする */
  z-index: 4;
  /* 一番上の星（資料室）の右端が、お問い合わせボタンの右端と同じ X に来る位置。
     星どうしの並びは支給のまま、箱ごと動かしているだけ */
  top: 142px;
  left: 995px;
  width: 721px;
  height: 459px;
}

.fv__node {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 1px solid #fff;
  border-radius: 50%;
}

/* 点にカーソルを乗せると、行き先のサムネイルが出る。
   .canvas は pointer-events: none なので、点だけ拾えるように戻す */
.fv__node {
  pointer-events: auto;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), box-shadow .3s ease;
}

.fv__node:hover,
.fv__node:focus-visible {
  transform: scale(1.22);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .12);
}

.fv__tip {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  z-index: 5;
  display: block;
  width: 190px;
  margin-left: -95px;
  padding: 10px 10px 12px;
  background: rgba(1, 12, 33, .92);
  box-shadow: 0 14px 34px rgba(0, 8, 26, .45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .28s ease, transform .28s cubic-bezier(.22, .61, .36, 1), visibility .28s;
}

.fv__node:hover .fv__tip,
.fv__node:focus-visible .fv__tip {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.fv__tip-img {
  display: block;
  width: 170px;
  height: 100px;
  object-fit: cover;
}

.fv__tip-body { display: block; padding: 9px 2px 0; }

.fv__tip-en {
  display: block;
  font-family: var(--f-en);
  font-weight: 700;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 1.5px;
  color: var(--gold-light);
}

.fv__tip-ja {
  display: block;
  margin-top: 3px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
  color: #fff;
}

/* 下のカードと重なる点だけ、サムネイルを上に出す */
.fv__node--up .fv__tip {
  top: auto;
  bottom: calc(100% + 16px);
  transform: translateY(6px);
}

.fv__node--up:hover .fv__tip,
.fv__node--up:focus-visible .fv__tip { transform: none; }

/* 指で操作する端末では出さない（タップでそのまま移動する） */
@media (hover: none) {
  .fv__tip { display: none; }
}

/* 右寄りの3つの星（2 専門家一覧・3 資料室・4 法人自治体）は、
   画面が広くないと吹き出しが右端で切れてしまう。
   いちばん右の星でも 1602px 以上あれば真ん中開きで収まるので、
   それより狭いときだけ、星の中心から左へ開く。
   星そのものの位置は動かしていない。 */
@media (max-width: 1620px) {
  .fv__node:nth-child(2) .fv__tip,
  .fv__node:nth-child(3) .fv__tip,
  .fv__node:nth-child(4) .fv__tip {
    left: auto;
    right: 50%;
    margin-left: 0;
  }
}

/* 5つめ（ご相談と料金）は下寄りだが、990px を切ると同じように右端で切れる */
@media (max-width: 990px) {
  .fv__node:nth-child(5) .fv__tip {
    left: auto;
    right: 50%;
    margin-left: 0;
  }
}


.fv__node::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
}

.fv__node:nth-child(1) { top: 306px; left: 210px; }
.fv__node:nth-child(2) { top: 131px; left: 531px; }
.fv__node:nth-child(3) { top: 35px;  left: 656px; }
.fv__node:nth-child(4) { top: 342px; left: 628px; }
.fv__node:nth-child(5) { top: 431px; left: 341px; }
.fv__node:nth-child(6) { top: 314px; left: 0; }

/* コピー */
/* 文字の無いところは、後ろの点を拾えるように通す */
.fv__body {
  pointer-events: none;
  position: absolute;
  top: 242px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  width: min(1392px, 100% - var(--gutter) * 2);
}

.fv__badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: linear-gradient(97.1deg, #9e8149 0.1%, #745820 100%);
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 34px;
  color: #fff;
}

/* 見出しの箱はクリックを拾わない。拾うと、その下に入った星が押せなくなる */
.fv__badge { pointer-events: auto; }
.fv__title { pointer-events: none; }

.fv__title {
  width: fit-content;   /* 箱を文字の幅ぶんだけにする（後ろの点を隠さないため） */
  margin-top: 40px;
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 64px;
  line-height: 100px;
  color: var(--paper);
}

.fv__line {
  margin-top: 40px;
  margin-left: 6px;
  width: 640px;   /* 見出し「企業価値を最大化する」の幅に合わせる */
  max-width: 100%;
  height: 8px;
  background: linear-gradient(90deg, #ffffff 31.6%, rgba(66, 80, 103, 0.2) 100%);
}

/* =========================================================
   page nav  (このページの内容)
   ========================================================= */
.pn {
  position: absolute;
  top: -371px;
  left: 3px;
  width: 100%;
  z-index: 10;
}

.pn__label {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 32px;
  font-weight: 700;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 2px;
  color: #fff;
}

.pn__label::after {
  content: "";
  flex: none;
  width: 40px;
  height: 1px;
  background: var(--gold-light);
}

.pn__list {
  display: flex;
  margin-top: 16px;
  min-height: 220px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(10, 20, 48, .06), 0 2px 6px rgba(10, 20, 48, .06);
}

.pn__list > li {
  position: relative;
  display: flex;
  flex: 1 1 280px;
  min-width: 0;
}

.pn__list > li + li::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 0;
  z-index: 1;
  width: 1px;
  height: 124px;
  background: var(--line-soft);
}

.pn__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 16px;
  transition: background-color .25s ease;
}

/* 選ばれている項目・マウスを乗せた項目の見え方
   ・背景がほんのり温かい色に変わる
   ・上に金の線が左から伸びる
   ・番号と英字、VIEW が金に寄る
   ・サムネイルが少し寄って、金の輪が出る
   .is-current は main.js が付ける（その見出しまで読み進めた項目） */
.pn__item {
  transition: background-color .4s ease, box-shadow .4s ease;
}

.pn__item:hover,
.pn__item:focus-visible { background: #fdfaf2; }

.pn__item.is-current {
  background: #fdf7ea;
  box-shadow: inset 0 -1px 0 rgba(158, 129, 73, .18);
}

.pn__item::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f3d493 0%, #e8b85c 45%, #9e8149 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s cubic-bezier(.22, .61, .36, 1);
}

.pn__item:hover::after,
.pn__item:focus-visible::after,
.pn__item.is-current::after { transform: none; }

/* 中の文字と絵の変化 */
.pn__no,
.pn__for,
.pn__what,
.pn__go { transition: color .35s ease; }

.pn__thumb {
  transition: box-shadow .4s ease;
}

.pn__thumb img { transition: transform 1s cubic-bezier(.22, .61, .36, 1); }

.pn__item:hover .pn__no,
.pn__item.is-current .pn__no { color: var(--gold-light); }

.pn__item:hover .pn__for,
.pn__item.is-current .pn__for { color: var(--gold-deep); }

.pn__item:hover .pn__go,
.pn__item.is-current .pn__go { color: var(--gold-deep); }

.pn__item:hover .pn__thumb,
.pn__item.is-current .pn__thumb { box-shadow: 0 0 0 2px rgba(232, 184, 92, .85); }

.pn__item:hover .pn__thumb img,
.pn__item.is-current .pn__thumb img { transform: scale(1.12); }
.pn__thumb {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
  overflow: hidden;
}

.pn__thumb img { width: 100%; height: 100%; object-fit: cover; }

.pn__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7.5px;
}

.pn__top { display: flex; flex-direction: column; gap: 7.5px; }

.pn__no {
  font-family: var(--f-en);
  font-weight: 600;
  font-size: 24px;
  line-height: 36px;
  letter-spacing: 3px;
  color: var(--gold);
}

.pn__for {
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: var(--muted);
}

.pn__what {
  font-weight: 700;
  font-size: 20px;
  line-height: 32px;
  color: var(--ink);
}

.pn__go {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-en);
  font-weight: 600;
  font-size: 16px;
  line-height: 28px;
  letter-spacing: 3px;
  color: var(--navy);
}

.pn__go svg { width: 16px; height: 16px; flex: none; }

/* =========================================================
   01 Service
   ========================================================= */
.service {
  position: relative;
  padding: 250px 0 120px;
  background: linear-gradient(180deg, #010c21 0%, #043187 100%);
}

.service__inner { display: flex; flex-direction: column; gap: 40px; }

.service__fields { display: flex; flex-direction: column; gap: 40px; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 441px;
  padding: 40px;
  overflow: hidden;
  background: rgba(255, 255, 255, .002);
  box-shadow: 0 0 0 1px rgba(232, 184, 92, .35);
}

.field__bg { position: absolute; top: 0; left: 0; z-index: 0; max-width: none; object-fit: cover; }

.field--rights   .field__bg { left: -168.33px; top: .04px;   width: 784px;   height: 441px; }
.field--engineer .field__bg { left: -8.67px;   top: -4.96px; width: 792px;   height: 446px; }
.field--manage   .field__bg { left: -165px;    top: .02px;   width: 784px;   height: 441px; }
.field--flow     .field__bg { left: -182.6px;  top: 0;       width: 819.5px; height: 441.02px; object-fit: fill; }
.field--field    .field__bg { left: -20.33px;  top: .02px;   width: 784px;   height: 441px; }
.field--life     .field__bg { left: -81.67px;  top: .02px;   width: 784px;   height: 441px; }

.field::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(1, 12, 33, .25) 45.1%, rgba(1, 12, 33, .78) 69.8%, #010c21 100%);
}

.field__en,
.field__name,
.field__tags { position: relative; z-index: 2; }

.field__en {
  font-family: var(--f-en);
  font-weight: 700;
  font-size: 66px;
  line-height: 59.4px;
  background: linear-gradient(180deg, #f7f9fc 0%, #939496 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.field__name {
  margin-top: 10px;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
}

.field--rights .field__name { font-weight: 700; }

.field__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 24px;
}

.field__tags li {
  padding: 5px 10px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  font-weight: 700;
  font-size: 16px;
  line-height: 28px;
  color: #fff;
}

.service__note {
  font-weight: 400;
  font-size: 16px;
  line-height: 32px;
  text-align: right;
  color: #fff;
}

/* =========================================================
   02 Company
   ========================================================= */
.company {
  position: relative;
  min-height: 728px;
  overflow: hidden;
  background: linear-gradient(0deg, #6b98ed -3.8%, #043187 103%);
}

.company__photo {
  position: absolute;
  top: 0;
  left: 629px;
  width: 1291px;
  height: 728px;
  -webkit-mask-image: linear-gradient(280.9deg, #000 37.8%, rgba(0, 0, 0, 0) 82.8%);
  mask-image: linear-gradient(280.9deg, #000 37.8%, rgba(0, 0, 0, 0) 82.8%);
}

.company__photo img {
  position: absolute;
  top: 0;
  left: -4px;
  width: 1295px;
  height: 731px;
  max-width: none;
  object-fit: cover;
  object-position: 0 0;
}

.company__inner {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 120px 0 103px;
}

/* =========================================================
   03 Voice
   ========================================================= */
.voice {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background: linear-gradient(180deg, #6b98ed 0%, #f7f9fc 100%);
}

.voice__inner { display: flex; flex-direction: column; gap: 80px; }

/* カード列 → もっと見る は 60px */
.voice__body { display: flex; flex-direction: column; gap: 60px; }

/* 画面いっぱいに流す。
   下 20px 逃がして負マージンで戻し、カード背面の金色を切らない */
.voice__viewport {
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-bottom: -20px;
  padding-bottom: 20px;
  overflow: hidden;
}

/* 自動スクロール（カード5枚 × (400 + gap40) = 2200px でひと回り） */
.voice__track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: voiceLoop 46s linear infinite;
}

.voice__viewport:hover .voice__track { animation-play-state: paused; }

@keyframes voiceLoop {
  from { transform: translateX(0); }
  to   { transform: translateX(-2200px); }
}

.voice-card {
  position: relative;
  flex: none;
  width: 400px;
  height: 420px;
}

.voice-card::before {
  content: "";
  position: absolute;
  top: 140px;
  left: -12px;
  width: 295px;
  height: 295px;
  background: linear-gradient(128.7deg, #9e8149 -1.2%, #745820 101.2%);
}

.voice-card__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 21px;
  width: 400px;
  height: 420px;
  padding-bottom: 28px;
  background: #fff;
  box-shadow: 0 8px 19px rgba(0, 0, 0, .1);
}

.voice-card__img { width: 400px; height: 200px; object-fit: cover; }

.voice-card__body { width: 340px; }

.voice-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold);
}

.voice-card__date {
  font-weight: 500;
  font-size: 20px;
  line-height: 24px;
  color: var(--gray);
}

.voice-card__cat {
  flex: none;
  padding: 5px 10px;
  background: var(--gold);
  font-weight: 500;
  font-size: 16px;
  line-height: 17px;
  color: #fff;
}

/* 実際にいただいた言葉。押せるものではないので、
   見出しではなく本文として置く */
.voice-card__quote {
  margin-top: 14px;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: var(--ink);
  word-break: auto-phrase;
}

.voice-card__who {
  margin-top: 12px;
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: .04em;
  color: var(--muted);
}


/* =========================================================
   04 News
   ========================================================= */
.news {
  padding: 120px 0;
  background: var(--paper);
}

.news__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 80px;
  align-items: start;
}

.news__list { border-top: 1px solid var(--line); }

.news__item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color .25s ease;
}

.news__item:hover { background: #eef2f8; }

/* PC は日付・カテゴリ・タイトル・矢印を 1 行に並べる */
.news__meta,
.news__ttlrow { display: contents; }

.news__time {
  flex: none;
  width: 131px;
  font-family: var(--f-en);
  font-weight: 600;
  font-size: 24px;
  line-height: 28px;
  letter-spacing: 3px;
  color: var(--navy);
}

.news__cat {
  flex: none;
  padding: 5px 20px;
  border-radius: 999px;
  background: var(--navy);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: #fff;
}

.news__cat--material { background: var(--gold); }

.news__ttl {
  flex: 1 1 auto;
  font-weight: 700;
  font-size: 20px;
  line-height: 32px;
  color: var(--ink);
}

.news__arrow { flex: none; width: 21px; height: 21px; }

/* =========================================================
   05 FAQ
   ========================================================= */
.faq {
  position: relative;
  padding-top: 120px;
  overflow: hidden;
  background: #fff;
}

.faq__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 80px;
  align-items: start;
}

.faq__head { padding-bottom: 64px; }

.faq__list { display: flex; flex-direction: column; gap: 60px; }

.faq__item {
  padding: 20px 0;
  box-shadow: inset 0 1px 0 var(--line);
}

.faq__q {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  text-align: left;
}

.faq__q-body { display: flex; align-items: flex-end; gap: 20px; }

.faq__mark {
  flex: none;
  font-family: var(--f-en);
  font-weight: 600;
  font-size: 30px;
  line-height: 36px;
  color: var(--gold);
}

.faq__q-text {
  font-weight: 700;
  font-size: 20px;
  line-height: 32px;
  color: var(--ink);
}

.faq__toggle {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
}

.faq__toggle::before,
.faq__toggle::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 10px;
  width: 12px;
  height: 2px;
  background: #fff;
  transition: transform .3s ease;
}

.faq__item[aria-expanded="false"] .faq__toggle::after { transform: rotate(90deg); }

.faq__body {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows .45s cubic-bezier(.4, 0, .2, 1);
}

.faq__item[aria-expanded="false"] .faq__body { grid-template-rows: 0fr; }

.faq__a {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  min-height: 0;
  overflow: hidden;
  padding-right: 52px;
}

/* 閉じたときに高さが 0 になるよう、余白は中の要素に持たせる */
.faq__a > * { margin-top: 30px; }

.faq__mark--a {
  background: linear-gradient(180deg, #1e4580 0%, #032658 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.faq__a-text {
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  color: var(--ink);
}

/* 街並みの画像は上に 250px 重ねる */
.faq__city {
  width: 2062px;
  max-width: none;
  height: 763px;
  margin: -250px 0 0 calc(50% - 1031px);
  object-fit: cover;
}

/* =========================================================
   CTA  (ご相談実績 / お問い合わせ)
   ========================================================= */
.cta { display: flex; }

.cta__half {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 50%;
  min-width: 0;
  height: 680px;
  overflow: hidden;
  background: var(--navy-deep);
}

.cta__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* ご相談実績：原寸 1254x836 を -106 / -25 に配置 */
.cta__half--achievements .cta__bg {
  top: -25px;
  left: -106px;
  width: 1254px;
  height: 836px;
}

/* お問い合わせ：Figma の切り抜き指定をそのまま再現 */
.cta__bg--contact {
  background-image: url("../img/cta-contact.jpg");
  background-size: 219.06% 173.99%;
  background-position: 8.14% 68.98%;
  background-repeat: no-repeat;
}

.cta__half::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.cta__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  /* CTA は半分（960px）の中の余白なので、ページのガターとは切り離す */
  max-width: calc(100% - 80px);
}

.cta__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cta__en {
  font-family: var(--f-en);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.18;
  letter-spacing: .1em;
  color: #fff;
}

.cta__title {
  font-weight: 700;
  font-size: 48px;
  line-height: 55px;
  letter-spacing: .1em;
  text-align: center;
  color: #fff;
}

.cta__text {
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: .1em;
  text-align: center;
  color: #fff;
}

.cta__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 417px;
  max-width: 100%;
  padding: 20px 10px;
  background: var(--navy-deep);
  border: 1px solid var(--gold);
}

.cta__stat-main {
  display: flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: .04em;
  line-height: .788;
  color: #fff;
}

.cta__stat-num {
  font-family: var(--f-en);
  font-weight: 700;
  font-size: 86px;
  line-height: .788;
  color: var(--gold);
}

/* 金額の数字ではなく地名を入れる場合。
   86px のままだと箱（417px）からあふれるので、大きさだけ変える。
   金色・白の組み合わせは元のまま */
.cta__stat--area .cta__stat-main {
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  /* 箱（417px）に1行で収める */
  white-space: nowrap;
  font-size: 20px;
  line-height: 1.4;
}

.cta__stat--area .cta__stat-num { font-size: 30px; line-height: 1.4; letter-spacing: .04em; }

.cta__stat-sub {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: .04em;
  text-align: center;
  color: #fff;
}

/* =========================================================
   footer
   ========================================================= */
.footer { background: var(--navy-deep); }

.footer__main { display: flex; }

.footer__left {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 406px;
  padding: 0 clamp(40px, 13.55vw, 260px);
  background: var(--navy-deep);
}

.footer__brand { flex: none; display: flex; flex-direction: column; gap: 20px; }

.footer__logo { width: 93px; height: 70px; object-fit: cover; }

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  color: #fff;
}

.footer__tel { display: flex; gap: 6px; }

.footer__nav { display: flex; gap: 24px; }

.footer__nav ul { display: flex; flex-direction: column; gap: 10px; }

.footer__nav-col--1 { width: 84px; }
.footer__nav-col--2 { width: 156px; }
.footer__nav-col--3 { width: 168px; }

.footer__nav li {
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
}

.footer__nav a { transition: color .25s ease; }
.footer__nav a:hover { color: var(--gold-light); }

.footer__map {
  flex: none;
  width: 615px;
  height: 406px;
  object-fit: cover;
  object-position: 0 0;
}

.footer__copy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 41px;
  padding: 10px 40px;
  background: var(--gold);
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  text-align: center;
  color: #fff;
}

/* =========================================================
   1919px 以下：写真の置き方だけ調整
   ========================================================= */
@media (max-width: 1919px) and (min-width: 751px) {
  .cta__half--achievements .cta__bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-position: 46.7% 43.7%;
  }
}

/* =========================================================
   1620px 以下：このページの内容（横並び）が詰まるので少し縮める
   ========================================================= */
@media (max-width: 1620px) and (min-width: 1201px) {
  .pn__item { gap: 10px; padding: 0 12px; }
  .pn__thumb { width: 48px; height: 48px; }
  .pn__no { font-size: 22px; line-height: 32px; }
  .pn__for { font-size: 14px; line-height: 24px; }
  .pn__what { font-size: 17px; line-height: 28px; }
  .pn__go { font-size: 15px; letter-spacing: 2px; }
}

/* =========================================================
   1300px 以下：フッターを縦積みに
   ========================================================= */
@media (max-width: 1300px) and (min-width: 751px) {
  .footer__main { flex-direction: column; }

  .footer__left {
    height: auto;
    padding: 70px var(--gutter);
    flex-wrap: wrap;
    gap: 50px;
  }

  .footer__map { width: 100%; height: 300px; }
}

/* =========================================================
   1100px 以下：カードとニュース／FAQ を段組み変更
   ========================================================= */
@media (max-width: 1100px) and (min-width: 751px) {
  .field-grid { grid-template-columns: repeat(2, 1fr); }

  .news__inner,
  .faq__inner {
    grid-template-columns: 1fr;
    row-gap: 48px;
  }

  .faq__head { padding-bottom: 0; }

  .fv__title { font-size: 52px; line-height: 84px; }

  .sec-head__title { font-size: 40px; }
}

/* =========================================================
   750px 以下：SP レイアウト
   1rem = 10 設計px（750px 設計をそのまま等比縮小）
   ========================================================= */
@media (max-width: 750px) {

  html { font-size: calc(100vw / 75); }

  body {
    font-size: 2.8rem;   /* ← 本文 */
    line-height: 1.8;
  }

  .sp-only { display: revert; }
  .pc-only { display: none; }

  :root { --gutter: 4rem; }

  .canvas {
    left: 0;
    margin-left: 0;
    width: 100%;
  }

  .container { width: calc(100% - var(--gutter) * 2); }

  /* ---------- section head ---------- */
  .sec-head { gap: 1.4rem; }

  .sec-en { gap: 1.8rem; height: 5.6rem; }

  .sec-en__num {
    width: 9rem;
    height: 5.6rem;
    margin-right: 0;
    padding-right: 2.2rem;
    font-size: 5.6rem;
    line-height: 5.6rem;
  }

  .sec-en__num::after {
    top: .9rem;
    left: auto;
    right: 0;
    width: .2rem;
    height: 3.8rem;
  }

  .sec-en__txt { font-size: 3.2rem; line-height: 1.1; }

  .sec-en__rule,
  .sec-en__rule--sm {
    flex: 1 1 auto;
    height: .7rem;
    clip-path: polygon(1.2% 0, 100% 0, 98.8% 100%, 0 100%);
  }

  .sec-head__title {
    font-size: 4.8rem;
    line-height: 1.5;
    letter-spacing: .02em;
  }

  /* ---------- lead ---------- */
  .lead { gap: 2.2rem; }
  .lead__head { gap: 2rem; }
  .lead__icon { width: 6rem; height: 6rem; }
  .lead__title { font-size: 3.2rem; line-height: 1.45; }
  .lead__rule { width: 100%; }
  .lead__text { font-size: 2.8rem; line-height: 1.85; }

  /* ---------- button ---------- */
  .btn {
    gap: 2.2rem;
    width: 40rem;
    height: 9.2rem;
    padding: 0 3rem;
    font-size: 2.8rem;
    line-height: 1;
  }

  .btn__icon { width: 3.2rem; height: 3.2rem; }
  .btn--center-sp { margin-left: auto; margin-right: auto; }

  /* ---------- header / drawer ---------- */
  .gnav {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 11rem;
    padding: 0 var(--gutter);
    background: rgba(1, 12, 33, .86);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  /* 下層ページのヘッダーも TOP と同じ固定ヘッダーに揃える
     （各ページ CSS の .gnav--solid{position:relative} を打ち消す） */
  .gnav-bar { padding: 0; background: none; }
  .gnav-bar .gnav--solid {
    position: fixed;
    top: 0;
    left: 0;
    transform: none;
    margin: 0;
  }

  /* パンくず。固定ヘッダーのぶん下げる。
     同じものが各ページの CSS にもあるが、ニュース記事や固定ページでは
     ページ CSS を読み込まないので、こちらにも置いておく */
  .crumb {
    margin-top: 11rem;
    height: 8rem;
  }

  .crumb__inner {
    width: calc(100% - var(--gutter) * 2);
    font-size: 2.4rem;
    line-height: 1.6;
  }

  .crumb__inner span { margin: 0 1rem; }

  .gnav__logo img { width: 9.6rem; height: 7.2rem; }

  .gnav__toggle {
    display: block;
    position: relative;
    flex: none;
    width: 6rem;
    height: 4.8rem;
  }

  .gnav__toggle span {
    position: absolute;
    left: 0;
    width: 6rem;
    height: .3rem;
    background: #fff;
    transition: transform .3s ease, opacity .3s ease;
  }

  .gnav__toggle span:nth-child(1) { top: .6rem; }
  .gnav__toggle span:nth-child(2) { top: 2.3rem; }
  .gnav__toggle span:nth-child(3) { top: 4rem; }

  .gnav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(1.7rem) rotate(45deg); }
  .gnav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .gnav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-1.7rem) rotate(-45deg); }

  .gnav__menu {
    position: fixed;
    top: 11rem;
    left: 0;
    width: 100%;
    height: calc(100vh - 11rem);
    padding: 5rem var(--gutter);
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-1.2rem);
    transition: opacity .3s ease, transform .3s ease, visibility .3s;
  }

  .gnav__menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .gnav__list { flex-direction: column; align-items: stretch; gap: 0; }

  .gnav__list li { border-bottom: 1px solid rgba(255, 255, 255, .18); }

  .gnav__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3rem .6rem;
    font-size: 3rem;
    line-height: 1.4;
  }

  .gnav__list a span {
    display: inline;
    font-family: var(--f-en);
    font-weight: 400;
    font-size: 2.2rem;
    color: var(--gold-light);
  }

  .gnav__contact {
    justify-content: center;
    height: 9.2rem;
    margin-top: 5rem;
    padding: 0;
    background: var(--grad-gold);
    font-size: 2.8rem;
    line-height: 1;
  }

  /* ---------- FV ----------
     スマホでは、文字（上）と 星のアニメ（下の帯）に分ける。
     球体は帯の中だけでなく、FV 全体の上下左右に置く。
     PC は重ねたまま（この指定は 750px 以下だけ）。
     ------------------------------------------- */
  .fv {
    display: block;
    height: auto;
    padding-bottom: 13rem;   /* 下のロゴ1列ぶん */
    background: linear-gradient(180deg, #010718 0%, #010718 40%, #02091c 100%);
  }

  /* 装飾レイヤーは FV 全体に広げる（球体をどこにでも置くため） */
  .fv > .canvas {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    margin-left: 0;
  }

  /* 写真と星空だけ、下の帯に閉じ込める */
  .fv__bg,
  .fv__sky {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20rem;
  }

  .fv__bg {
    object-fit: cover;
    /* 上端をぼかして、文字ブロックとの継ぎ目を消す */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 88%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 26%, #000 88%, transparent 100%);
  }

  /* 下層ページの3本線は、狭い画面では出さない（見出しの上を横切るため） */
  .shero__orbits,
  .bhero__orbits,
  .fhero__orbits,
  .nwhero__orbits,
  .nhero__orbits { display: none; }

  /* 球体は3本線の上に1つずつ乗せ、その線に沿って端から端まで流す。
     ここに書く left / bottom は「通り道の入口」で、画面の外のこともある。
     読み込んだ瞬間（0秒）にどこにいるかは、下の方の animation-delay で決めている。
     0秒の居場所は PC と同じ割合（左から 8.6% / 40.7% / 89.8%）にそろえてある。
       dots   … 線2（まん中の線）を左から右へ進む。0秒では x=32px（8.6%）
       stripe … 線3（いちばん下の線）を右から左へ進む。0秒では x=153px（40.7%）
       grid   … 線1（いちばん上の線）を右から左へ進む。0秒では x=337px（89.8%）
     3本線の帯は画面の下端にあるので、下からの距離（bottom）で置く。 */
  .fv__sphere { top: auto; opacity: .6; }
  .fv__sphere--dots   { left: -6rem;   bottom: 17.48rem; width: 4rem;   height: 4rem; }
  .fv__sphere--stripe { left: 73rem;   bottom: 5.43rem;  width: 4rem;   height: 4rem; }
  .fv__sphere--grid   { left: 76.8rem; bottom: 16.43rem; width: 4.4rem; height: 4.4rem; }

  /* 3本線は、下の帯の中だけに置く */
  .fv__orbits {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20rem;
    overflow: hidden;
    transform: none;
    /* 上下の端で切り落とさず、そっと消す */
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 82%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 20%, #000 82%, transparent 100%);
  }

  .fv__orbits span { border-color: rgba(255, 255, 255, .26); }

  /* PC の3本線を実測して、同じ向き・同じ間隔にした。
     左が高く、画面の6割あたりで底になり、右でまた少し上がる形。
     楕円の「下側の弧」を帯に通すので、top は大きな負の値になる。 */
  .fv__orbit1 { top: -119rem; left: -45rem; width: 180rem; height: 125rem; transform: none; }  /* 底 6rem */
  .fv__orbit2 { top: -119rem; left: -45rem; width: 180rem; height: 130rem; transform: none; }  /* 底 11rem */
  .fv__orbit3 { top: -104rem; left: -45rem; width: 180rem; height: 120rem; transform: none; }  /* 底 16rem */

  /* 点は出さない。スマホではサムネイルが出ないので、
     行き先の分からない丸が6つ並ぶだけになるため */
  .fv__nodes { display: none; }

  /* 文字：上。装飾より前に出す */
  .fv__body {
    position: relative;
    z-index: 2;
    top: auto;
    left: auto;
    transform: none;
    width: calc(100% - var(--gutter) * 2);
    margin: 0 auto;
    padding: 15rem 0 7rem;   /* 上は固定ヘッダー（11rem）のぶん */
  }

  .fv__badge {
    padding: 1.2rem 2.6rem;
    font-size: 3.2rem;
    line-height: 1.5;
  }

  .fv__title { margin-top: 4rem; font-size: 6.4rem; line-height: 1.5; }

  .fv__line { margin: 4rem 0 0; width: 100%; height: .6rem; }

  /* ---------- page nav ---------- */
  /* FV を上下に分けたので、重ねて持ち上げるのをやめる */
  .pn {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 0;
  }

  .pn__label {
    gap: 1.8rem;
    height: auto;
    font-size: 2.8rem;
    line-height: 1.6;
    letter-spacing: .08em;
  }

  .pn__label::after { width: 4.8rem; }

  .pn__list {
    display: block;
    height: auto;
    margin-top: 2rem;
    box-shadow: 0 2.4rem 6rem rgba(10, 20, 48, .1), 0 .2rem .6rem rgba(10, 20, 48, .06);
  }

  .pn__list > li { display: block; }
  .pn__list > li + li { border-top: 1px solid var(--line-soft); }
  .pn__list > li + li::before { display: none; }

  .pn__item {
    position: relative;
    gap: 2.4rem;
    padding: 2.8rem 3rem;
  }

  .pn__thumb { width: 9.2rem; height: 9.2rem; }

  /* VIEW は右端に浮かせてあるので、文字がその下にもぐり込まないよう
     VIEW のぶんの幅をあけておく（VIEW 49px ＋ 間のすきま 11px） */
  .pn__text { gap: 0; padding-right: 12rem; }

  .pn__top { flex-direction: row; align-items: baseline; gap: 1.6rem; }

  .pn__no { font-size: 2.8rem; line-height: 1.4; letter-spacing: .12em; }
  .pn__for { font-size: 2.4rem; line-height: 1.4; }
  /* いちばん長い見出し（13文字）が、VIEW の手前で1行に収まる大きさ */
  .pn__what { margin-top: .2rem; font-size: 2.8rem; line-height: 1.5; }

  .pn__go {
    position: absolute;
    top: 50%;
    right: 3rem;
    transform: translateY(-50%);
    gap: 1rem;
    font-size: 2.4rem;
    line-height: 1.4;
    letter-spacing: .12em;
  }

  .pn__go svg { width: 2rem; height: 2rem; }

  /* ---------- 01 Service ---------- */
  .service { padding: 0 0 10rem; }

  .service__inner { gap: 5rem; padding-top: 10rem; }

  .service__fields { gap: 2.6rem; }

  .field-grid { grid-template-columns: 1fr; gap: 3rem; }

  .field { min-height: 62rem; padding: 4.4rem 4rem; }

  .field__bg,
  .field--rights .field__bg,
  .field--engineer .field__bg,
  .field--manage .field__bg,
  .field--flow .field__bg,
  .field--field .field__bg,
  .field--life .field__bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .field__en { font-size: 7.2rem; line-height: .9; }
  .field__name { margin-top: 1.6rem; font-size: 3.2rem; line-height: 1.4; }

  .field__tags { gap: 1.4rem; padding-top: 3rem; }

  .field__tags li {
    padding: .6rem 1.6rem;
    border-radius: .3rem;
    font-size: 2.4rem;
    line-height: 1.6;
  }

  .service__note { font-size: 2.2rem; line-height: 1.6; }

  /* ---------- 02 Company ---------- */
  .company { min-height: 0; padding-bottom: 10rem; }

  .company .canvas { position: static; height: auto; }

  .company__photo {
    position: relative;
    left: 0;
    width: 100%;
    height: 56rem;
    -webkit-mask-image: linear-gradient(180deg, #000 20%, rgba(0, 0, 0, 0) 70%);
    mask-image: linear-gradient(180deg, #000 20%, rgba(0, 0, 0, 0) 70%);
  }

  .company__photo img {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .company__inner {
    gap: 5rem;
    padding: 0;
    margin-top: -15rem;
  }

  /* ---------- 03 Voice ---------- */
  .voice { padding: 10rem 0; }

  .voice__inner { gap: 5rem; }
  .voice__body { gap: 6rem; }

  .voice__viewport {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 0;
    padding: 0 0 2.4rem;
    overflow: hidden;
  }

  .voice__viewport::-webkit-scrollbar { display: none; }

  /* カード5枚 × (500 + gap40) = 270rem でひと回り */
  .voice__track {
    gap: 4rem;
    animation-name: voiceLoopSp;
    animation-duration: 38s;
  }

  @keyframes voiceLoopSp {
    from { transform: translateX(0); }
    to   { transform: translateX(-270rem); }
  }

  .voice-card { width: 50rem; height: 56rem; }

  .voice-card::before {
    top: 19rem;
    left: -1.6rem;
    width: 38rem;
    height: 39rem;
  }

  .voice-card__inner {
    gap: 2.6rem;
    width: 50rem;
    height: 56rem;
    padding-bottom: 3.4rem;
    box-shadow: 0 .8rem 1.9rem rgba(0, 0, 0, .1);
  }

  .voice-card__img { width: 50rem; height: 25rem; }

  .voice-card__body { width: 42rem; }

  .voice-card__meta { gap: 1.4rem; padding-bottom: .8rem; }
  .voice-card__date { font-size: 2.4rem; line-height: 1.4; }
  .voice-card__cat { padding: .4rem 1.4rem; font-size: 2.2rem; line-height: 1.3; }
  .voice-card__quote { margin-top: 1.6rem; font-size: 2.6rem; line-height: 1.75; }
  .voice-card__who { margin-top: 1.4rem; font-size: 2.2rem; line-height: 1.5; }

  /* ---------- 04 News ---------- */
  .news { padding: 10rem 0; }

  .news__inner {
    display: flex;
    flex-direction: column;
    gap: 5rem;
  }

  .news__item {
    display: block;
    padding: 3rem .4rem;
  }

  .news__meta { display: flex; align-items: center; gap: 2.2rem; }

  /* 矢印は1行目の高さに合わせる。題名が2行になっても離れないように。 */
  .news__ttlrow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1.2rem;
  }

  .news__time { width: auto; font-size: 2.8rem; line-height: 1.3; letter-spacing: .12em; }

  .news__cat {
    padding: .4rem 2.2rem;
    border-radius: 99rem;
    font-size: 2.2rem;
    line-height: 1.4;
  }

  /* 最後の1〜2文字だけが次の行に落ちないよう、
     行の長さをそろえ、日本語の区切りで折る */
  .news__ttl {
    font-size: 2.8rem;
    line-height: 1.6;
    text-wrap: balance;
    word-break: auto-phrase;
  }

  .news__arrow { width: 2.6rem; height: 2.6rem; margin-top: .9rem; }

  /* ---------- 05 FAQ ---------- */
  .faq { padding: 10rem 0 0; }

  .faq__inner {
    display: flex;
    flex-direction: column;
    gap: 5rem;
  }

  .faq__head { padding-bottom: 0; }

  .faq__list { gap: 0; }

  .faq__item { padding: 3rem 0; }
  .faq__item:last-child { box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }

  .faq__q { align-items: flex-start; gap: 2rem; }
  .faq__q-body { align-items: flex-start; gap: 2rem; }

  .faq__mark { font-size: 3.4rem; line-height: 1.35; }
  .faq__q-text { font-size: 2.8rem; line-height: 1.65; }

  .faq__toggle { width: 4rem; height: 4rem; margin-top: .6rem; }

  .faq__toggle::before,
  .faq__toggle::after {
    top: 1.9rem;
    left: 1.2rem;
    width: 1.6rem;
    height: .2rem;
  }

  .faq__a { gap: 2rem; padding-right: 6rem; }
  .faq__a > * { margin-top: 2.4rem; }
  .faq__a-text { font-size: 2.8rem; line-height: 1.85; }

  .faq__city {
    width: 110rem;
    height: 40.7rem;
    margin: 6rem 0 0 -17.5rem;
  }

  /* ---------- CTA ---------- */
  .cta { flex-direction: column; }

  .cta__half {
    flex: none;
    height: auto;
    min-height: 62rem;
    padding: 11rem 0;
  }

  .cta__half--achievements .cta__bg {
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-position: 46.7% 43.7%;
  }

  .cta__body { gap: 4.4rem; width: calc(100% - var(--gutter) * 2); max-width: none; }

  .cta__head { gap: 1rem; }
  .cta__en { font-size: 3rem; line-height: 1.2; }
  .cta__title { font-size: 4.8rem; line-height: 1.3; }
  .cta__text { font-size: 2.8rem; line-height: 1.7; letter-spacing: .06em; }

  .cta__stat {
    gap: 1.2rem;
    width: 56rem;
    padding: 2.6rem 2rem;
  }

  .cta__stat-main { font-size: 3.2rem; line-height: 1; }
  .cta__stat-num { font-size: 8.6rem; line-height: 1; }
  .cta__stat-sub { font-size: 2.2rem; line-height: 1.4; }

  /* 地名を入れる場合。PC は 417px の箱に1行で収めているが、SP の箱は
     28rem（実寸280px）しかなく、20px＋30px のまま1行にすると
     「京都」が画面の外へ出てしまう。SP は縦に積んで箱に収める。 */
  .cta__stat--area .cta__stat-main {
    flex-direction: column;
    align-items: center;
    gap: .8rem;
    white-space: normal;
    font-size: 2.8rem;
    line-height: 1.4;
  }

  .cta__stat--area .cta__stat-num { font-size: 4.8rem; line-height: 1.2; }

  /* ---------- footer ---------- */
  .footer__main { flex-direction: column; }

  .footer__left {
    display: block;
    height: auto;
    padding: 8rem var(--gutter);
  }

  .footer__brand { display: block; }

  .footer__logo { width: 9.6rem; height: 7.2rem; }

  .footer__info {
    gap: 1.4rem;
    margin-top: 2.6rem;
    font-size: 2.4rem;
    line-height: 1.7;
  }

  .footer__tel { gap: 1rem; }

  .footer__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
    margin-top: 5.6rem;
  }

  /* 3 つのリストを 1 つの 2 列グリッドとして流す */
  .footer__nav ul { display: contents; }

  .footer__nav li {
    font-size: 2.4rem;
    line-height: 1.5;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
  }

  .footer__nav a { display: block; padding: 2rem .2rem; }

  .footer__map { width: 100%; height: 36rem; }

  .footer__copy {
    min-height: 7rem;
    padding: 1.4rem var(--gutter);
    font-size: 2.2rem;
    line-height: 1.5;
  }
}

/* =========================================================
   インタラクション / アニメーション
   ========================================================= */

/* ---------- 基本 ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

/* ---------- スクロールで浮かび上がる ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s cubic-bezier(.22, .61, .36, 1),
              transform .85s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- FV の入場 ---------- */
@keyframes fvIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.js .fv__badge,
.js .fv__title,
.js .fv__line { animation: fvIn 1s cubic-bezier(.22, .61, .36, 1) both; }

.js .fv__badge { animation-delay: .15s; }
.js .fv__title { animation-delay: .32s; }
.js .fv__line  { animation-delay: .52s; }

.js .fv__bg    { animation: fadeIn 1.6s ease both; }
.js .fv__orbits,
.js .fv__nodes { animation: fadeIn 2s ease .3s both; }

/* 球体はゆっくり漂わせる */
.js .fv__sphere--dots   { animation: fadeIn 1.4s ease .5s both, fvDrift1 38s ease-in-out infinite; }
.js .fv__sphere--stripe { animation: fadeIn 1.4s ease .7s both, fvDrift2 46s ease-in-out infinite; }
.js .fv__sphere--grid   { animation: fadeIn 1.4s ease .6s both, fvDrift3 52s ease-in-out infinite; }

/* 狭い画面では、ばらばらに漂わせるのをやめて、乗っている線に沿って流す。
   線は楕円の下側の弧なので、弧の上を通る座標を実測して刻んである。
   ずれは rem なので、画面幅が変わっても線から外れない。
   往復はしない。一方向に進み、両端では濃さを 0 にしてあるので、
   見えない所でつながる。見えているあいだの濃さは 60%。
   マイナスの delay は「その秒数ぶん進んだ所から始める」という意味で、
   読み込んだ瞬間に決めた位置にいるよう、秒数を逆算してある。 */

/* dots：線2（まん中の線）の上を左から右へ */
@keyframes fvGlideDots {
    0% { transform: translate(0, 0);                  opacity: 0; }
   10% { transform: translate(7.5rem, 3.16rem);       opacity: .6; }
   20% { transform: translate(15rem, 5.66rem);        opacity: .6; }
   30% { transform: translate(22.5rem, 7.6rem);       opacity: .6; }
   40% { transform: translate(30rem, 9.01rem);        opacity: .6; }
   50% { transform: translate(37.5rem, 9.95rem);      opacity: .6; }
   60% { transform: translate(45rem, 10.41rem);       opacity: .6; }
   70% { transform: translate(52.5rem, 10.43rem);     opacity: .6; }
   80% { transform: translate(60rem, 9.99rem);        opacity: .6; }
   90% { transform: translate(67.5rem, 9.09rem);      opacity: .6; }
  100% { transform: translate(75rem, 7.71rem);        opacity: 0; }
}

/* stripe：線3 の上を右から左へ */
@keyframes fvGlideStripe {
    0% { transform: translate(0, 0);                  opacity: 0; }
   10% { transform: translate(-7.3rem, 1.49rem);      opacity: .6; }
   20% { transform: translate(-14.6rem, 2.55rem);     opacity: .6; }
   30% { transform: translate(-21.9rem, 3.19rem);     opacity: .6; }
   40% { transform: translate(-29.2rem, 3.43rem);     opacity: .6; }
   50% { transform: translate(-36.5rem, 3.27rem);     opacity: .6; }
   60% { transform: translate(-43.8rem, 2.72rem);     opacity: .6; }
   70% { transform: translate(-51.1rem, 1.76rem);     opacity: .6; }
   80% { transform: translate(-58.4rem, 0.37rem);     opacity: .6; }
   90% { transform: translate(-65.7rem, -1.49rem);    opacity: .6; }
  100% { transform: translate(-73rem, -3.86rem);      opacity: 0; }
}

/* grid：線1 の上を右から左へ */
@keyframes fvGlideGrid {
    0% { transform: translate(0, 0);                  opacity: 0; }
   10% { transform: translate(-5.9rem, 1.51rem);      opacity: .6; }
   20% { transform: translate(-11.8rem, 2.7rem);      opacity: .6; }
   30% { transform: translate(-17.7rem, 3.6rem);      opacity: .6; }
   40% { transform: translate(-23.6rem, 4.21rem);     opacity: .6; }
   50% { transform: translate(-29.5rem, 4.55rem);     opacity: .6; }
   60% { transform: translate(-35.4rem, 4.62rem);     opacity: .6; }
   70% { transform: translate(-41.3rem, 4.43rem);     opacity: .6; }
   80% { transform: translate(-47.2rem, 3.96rem);     opacity: .6; }
   90% { transform: translate(-53.1rem, 3.21rem);     opacity: .6; }
  100% { transform: translate(-59rem, 2.17rem);       opacity: 0; }
}

@media (max-width: 750px) {
  .js .fv__sphere--dots   { animation: fvGlideDots   100s linear -13.9s infinite; }
  .js .fv__sphere--stripe { animation: fvGlideStripe 110s linear -66.9s infinite; }
  .js .fv__sphere--grid   { animation: fvGlideGrid   120s linear -23.6s infinite; }
}

/* 夜空のキャンバス（TOP の FV だけ）
   星が奥行きごとの速さで流れ、3本の軌道の上を光の粒が尾を引いて回り、
   ときどき流れ星が横切る。描いているのは assets/js/fv.js。
   「動きを減らす」設定のときは JS が何も描かないので、Figma どおりの静止画になる */
.fv__sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 球体は回さない（細い線のワイヤーフレームは回すとぼやけて眠くなる）。
   その場をゆっくり漂うだけにして、動きは canvas の光にまかせる */
@keyframes fvDrift1 {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(9px, -7px); }
  40%  { transform: translate(5px, -18px); }
  60%  { transform: translate(-7px, -16px); }
  80%  { transform: translate(-10px, -6px); }
  100% { transform: translate(0, 0); }
}

@keyframes fvDrift2 {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-11px, -5px); }
  40%  { transform: translate(-6px, -17px); }
  60%  { transform: translate(8px, -20px); }
  80%  { transform: translate(11px, -8px); }
  100% { transform: translate(0, 0); }
}

@keyframes fvDrift3 {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(6px, -12px); }
  40%  { transform: translate(-4px, -21px); }
  60%  { transform: translate(-12px, -13px); }
  80%  { transform: translate(-6px, -3px); }
  100% { transform: translate(0, 0); }
}

/* ネットワークの点：またたきながら少しだけ漂う */
@keyframes fvTwinkle {
  0%, 100% { opacity: .58; }
  50%      { opacity: 1; }
}

@keyframes fvNodeDrift {
  0%, 100% { transform: translate(0, 0) scale(.9); }
  50%      { transform: translate(7px, -9px) scale(1.08); }
}

.js .fv__node {
  animation: fvTwinkle 7s ease-in-out infinite,
             fvNodeDrift 10s ease-in-out infinite;
}

.js .fv__node:nth-child(1) { animation-duration: 6.5s, 9s;   animation-delay: -2.1s, -3.4s; }
.js .fv__node:nth-child(2) { animation-duration: 7.8s, 11s;  animation-delay: -5.6s, -8.2s; }
.js .fv__node:nth-child(3) { animation-duration: 5.9s, 8s;   animation-delay: -0.7s, -1.1s; }
.js .fv__node:nth-child(4) { animation-duration: 8.4s, 12s;  animation-delay: -3.9s, -6.5s; }
.js .fv__node:nth-child(5) { animation-duration: 6.9s, 10s;  animation-delay: -6.8s, -4.7s; }
.js .fv__node:nth-child(6) { animation-duration: 7.3s, 9.5s; animation-delay: -1.8s, -7.9s; }


/* ---------- ホバー ---------- */
.btn {
  transition: filter .25s ease, transform .25s ease;
}

.btn:hover { opacity: 1; filter: brightness(1.12); }
.btn__icon { transition: transform .25s ease; }
.btn:hover .btn__icon { transform: translateX(5px); }

.gnav__contact { transition: filter .25s ease; }
.gnav__contact:hover { opacity: 1; filter: brightness(1.12); }

/* 下線がスッと伸びるナビ */
.gnav__list a { position: relative; }

.gnav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: var(--gold-light);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s ease;
}

.gnav__list a:hover::after { transform: scaleX(1); transform-origin: left; }

/* スマホのドロワーでは、下地の区切り線の上にぴったり重ねる
   （PC は文字の下 6px に出す指定なので、そのままだと線が二重にずれて見える） */
@media (max-width: 750px) {
  .gnav__list a::after {
    bottom: -1px;
    height: 1px;
  }
}

/* サービスカード */
.field {
  transition: box-shadow .35s ease;
}

.field__bg { transition: transform .7s cubic-bezier(.22, .61, .36, 1); }
.field:hover { box-shadow: 0 0 0 1px rgba(232, 184, 92, .85); }
.field:hover .field__bg { transform: scale(1.05); }

/* このページの内容 */
.pn__go svg { transition: transform .25s ease; }
.pn__item:hover .pn__go svg { transform: translateY(4px); }

/* お客様の声：押して開くものではないので、浮き上がる動きは付けない */

/* ニュース */
.news__arrow { transition: transform .25s ease; }
.news__item:hover .news__arrow { transform: translateX(6px); }

/* FAQ */
.faq__q { cursor: pointer; }
.faq__toggle { transition: background-color .25s ease; }
.faq__q:hover .faq__toggle { background: var(--gold); }
.faq__q-text { transition: color .25s ease; }
.faq__q:hover .faq__q-text { color: var(--navy); }

/* CTA */
.cta__bg { transition: transform .8s cubic-bezier(.22, .61, .36, 1); }
.cta__half:hover .cta__bg { transform: scale(1.04); }

/* ---------- ページトップへ戻る ---------- */
.pagetop {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s, filter .25s ease;
}

.pagetop.is-visible { opacity: 1; visibility: visible; transform: none; }
.pagetop:hover { filter: brightness(1.15); }
.pagetop svg { width: 20px; height: 20px; }

@media (max-width: 750px) {
  html { scroll-padding-top: 13rem; }

  .pagetop {
    right: 3rem;
    bottom: 3rem;
    width: 9rem;
    height: 9rem;
  }

  .pagetop svg { width: 3.2rem; height: 3.2rem; }

  /* 指で触れる端末ではホバー演出を出さない */
  .field:hover .field__bg,
  .cta__half:hover .cta__bg,
}

/* ---------- 動きを減らす設定への配慮 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .js [data-reveal] { opacity: 1 !important; transform: none !important; }

  /* 自動スクロールは止め、指やマウスで送れるようにする */
  .voice__track { animation: none !important; }
  .voice__viewport { overflow-x: auto !important; }
}


/* =========================================================
   ご相談の例カード（.cases / .case / .say）

   もともと fees.css と network.css の中にあった部品。
   トップでも使うことになったが、トップは style.css しか
   読み込まないので、こちらに移してある。
   fees / network のページでは、各ページの CSS が後から
   同じ値で上書きするので、見た目は変わらない。
   ========================================================= */

.say {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 128px;
  padding: 40px;
  background: var(--paper);
  font-family: var(--f-serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 48px;
  text-align: center;
  color: var(--ink);
}

.say--navy {
  min-height: 164px;
  background: linear-gradient(135deg, #0c1b52 0%, #010c21 100%);
  color: #fff;
}

.say--navy small {
  font-family: var(--f-jp);
  font-weight: 500;
  font-size: 16px;
  line-height: 28px;
  color: rgba(255, 255, 255, .8);
}

.cases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-top: 16px;
}

.case {
  min-height: 301px;
  padding: 32px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line-soft), 0 14px 34px rgba(10, 20, 48, .06);
}

.case__no {
  font-family: var(--f-en);
  font-weight: 600;
  font-size: 36px;
  line-height: 36px;
  color: var(--gold);
}

.case h4 {
  margin-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 700;
  font-size: 24px;
  line-height: 36px;
  color: var(--ink);
}

.case > ul { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }

.case > ul > li {
  position: relative;
  padding-left: 16px;
  font-size: 16px;
  line-height: 28px;
  color: var(--muted);
}

.case > ul > li::before {
  content: "›";
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 700;
  color: var(--gold);
}

@media (max-width: 1200px) and (min-width: 751px) {
  .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) and (min-width: 751px) {
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 750px) {
  .say {
      min-height: 0;
      padding: 4rem 3rem;
      font-size: 3rem;
      line-height: 1.6;
    }

  .say--navy { min-height: 0; padding: 4rem 3rem; gap: 1.6rem; }

  .say--navy small { font-size: 2.3rem; line-height: 1.7; }

  .cases {
      grid-template-columns: minmax(0, 1fr);
      gap: 2.4rem;
      padding-top: 0;
    }

  .case { min-height: 0; padding: 3.2rem 3rem 3.6rem; }

  .case__no { font-size: 3.6rem; line-height: 1; }

  .case h4 {
      margin-top: 1.2rem;
      padding-bottom: 1.2rem;
      font-size: 3rem;
      line-height: 1.5;
    }

  .case > ul { margin-top: 1.6rem; gap: 1rem; }

  .case > ul > li { padding-left: 2.2rem; font-size: 2.4rem; line-height: 1.75; }
}

.case,
.level,
.paybox,
.steps7 li,
.notes li { transition: transform .35s ease, box-shadow .35s ease, background-color .25s ease; }

.case:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 0 1px rgba(232, 184, 92, .8), 0 20px 44px rgba(10, 20, 48, .1);
}

.case h4 { transition: color .25s ease; }

.case:hover h4 { color: var(--navy); }

@media (max-width: 750px) {
  .case:hover { transform: none; box-shadow: 0 0 0 1px var(--line-soft), 0 14px 34px rgba(10, 20, 48, .06); }
}


/* =========================================================
   提携法人のロゴスライダー

   FV の中、キャッチの下線より下・「このページの内容」のカードより上。

   帯は上下を透明へ溶かしてある。一様な白い板にすると紺の面から浮くため。
   ロゴは支給色のまま。正方形のものも横長のものもあるので、
   枠の大きさを決めてその中に収めている（object-fit: contain）。

   同じ並びを2本つなげ、左へ半分ぶん動かしたら元に戻す、
   というやり方で切れ目なく回している。速さは 60px/秒。
   ========================================================= */

.partners {
  position: absolute;
  /* キャッチの下線（584px）と、下の浮いた札（919px）のあいだ。少し下寄り */
  top: 653px;
  left: 0;
  z-index: 3;
  width: 100%;
  /* 2段ぶんと注記が、下の浮いた札（919px）より上に収まるよう、上下の余白は取らない */
  padding: 0;
  /* 帯は透明な箱として広がるので、そのままだと下にある星（各ページへの
     リンク）を覆ってクリックできなくなる。帯はクリックを拾わない。 */
  pointer-events: none;
}

.c-marquee {
  position: relative;
  overflow: hidden;
}

.c-marquee_list {
  display: flex;
  width: max-content;
  gap: 48px;
  padding-right: 48px;
  /* --sec は 1本ぶんの長さ ÷ 60px/秒。枚数が変わっても速さは変わらない */
  animation: marquee var(--sec, 287s) linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 下の段は逆向きに流す */
.c-marquee_list--rev { animation-name: marqueeRev; }

@keyframes marqueeRev {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* 2段目。上下が段々に見えるよう、半コマぶん進んだ所から始める */
.c-marquee--2 { margin-top: 8px; }
.c-marquee--2 .c-marquee_list { animation-delay: -2.9s; }

/* 全点を同じ倍率（0.16倍）で縮めて出す。
   高さを一律に揃えてしまうと、支給が 700px のロゴが 500px のロゴと
   同じ高さになり、本来より小さく見えてしまう。
   1点ずつの高さは HTML 側の --h で渡している。 */
/* 1社ぶん。ロゴと、その下の社名。
   ロゴの入る箱の高さをそろえてあるので、社名の行は全社で縦位置が合う。 */
.c-marquee_item {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.c-marquee_logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 112px;
}
/* ロゴがまだ届いていない社。社名だけを同じ大きさの枠に出す。
   ロゴが届いたら、この枠を画像に差し替える。 */
.c-marquee_ph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 88px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 6px;
  font-family: var(--f-jp);
  font-size: 12px;
  line-height: 19px;
  text-align: center;
  color: rgba(255, 255, 255, .88);
  /* 2行に割れるとき、行の長さが同じくらいになるようにする。
     そのままだと「…一級建築士事／務所」のように、
     最後の2文字だけが次の行に落ちてしまう。 */
  text-wrap: balance;
}


/* 社名は枠の幅に影響させない。
   社名のほうが長いと枠がロゴより横に広がり、ロゴ同士の間隔が
   ばらついてしまうため。width:0 で幅に数えさせず、
   min-width:100% で枠いっぱいに広げて、その中で折り返す。 */
.c-marquee_name {
  width: 0;
  min-width: 100%;
  min-height: 18px;
  font-family: var(--f-jp);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: .02em;
  text-align: center;
  text-wrap: balance;
  color: rgba(255, 255, 255, .78);
}

.c-marquee_item img {
  width: auto;
  height: calc(var(--h) * 1px);
  /* ロゴ画像には白い四角が焼き込まれているものが多く、
     紺の背景にそのまま置くと切り貼りしたように見える。
     角を丸め、ふちから光をにじませて背景になじませている。
     光り方は、ヒーローの球体や弧と同じ系統にそろえてある。 */
  border-radius: 6px;
  filter:
    drop-shadow(0 0 10px rgba(255, 255, 255, .45))
    drop-shadow(0 0 30px rgba(130, 180, 255, .28));
}

/* 停止ボタン。帯の右に小さく置く。
   紺の背景に溶けないよう、うっすら明るい丸にしている。 */
/* ロゴの下側。右端に注記とボタンを並べる */
.partners__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 4px;
  padding-right: 24px;
}

.partners__note {
  font-family: var(--f-jp);
  font-size: 11px;
  line-height: 16px;
  color: rgba(255, 255, 255, .5);
}

.c-marquee_btn {
  flex: none;
  /* 帯は pointer-events: none なので、ボタンだけ拾えるように戻す */
  pointer-events: auto;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.c-marquee_btn:hover {
  background: rgba(255, 255, 255, .22);
  border-color: rgba(255, 255, 255, .55);
}

.c-marquee_btn .icon {
  display: block;
  position: relative;
  width: 26px;
  height: 26px;
}

/* 止めるときの印（||） */
.c-marquee_btn .icon::before,
.c-marquee_btn .icon::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 2px;
  height: 10px;
  background: #fff;
}
.c-marquee_btn .icon::before { left: 10px; }
.c-marquee_btn .icon::after  { left: 15px; }

/* 止めているあいだは再生の印（▶）にする */
.partners.is-paused .c-marquee_btn .icon::before {
  top: 7px;
  left: 10px;
  width: 0;
  height: 0;
  background: none;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
}
.partners.is-paused .c-marquee_btn .icon::after { display: none; }

.partners.is-paused .c-marquee_list { animation-play-state: paused; }

/* マウスを乗せているあいだも止める。
   .partners は星（各ページへのリンク）を覆わないようクリックを拾わない設定に
   してあるので、帯の箱だけ拾えるように戻す。星は .fv__nodes（z-index:4）で
   帯（z-index:3）より上にあるため、重なった位置でも星のほうが優先される。
   指で触る画面では乗せたままの状態が残るので、マウスのある環境だけに限る。 */
@media (hover: hover) {
  .c-marquee { pointer-events: auto; }
  /* どちらの段に乗せても、2段とも止める */
  .partners:has(.c-marquee:hover) .c-marquee_list { animation-play-state: paused; }
}

/* 動きを減らす設定のときは、止めて横に送れるようにする */
@media (prefers-reduced-motion: reduce) {
  .c-marquee_list { animation: none; }
  .c-marquee { overflow-x: auto; }
}


/* =========================================================
   TOP「こんなご相談をいただきます」のカードの当たり

   このカードは、もともと明るい背景のページ用の部品。
   そのまま紺色の背景に置くと、当たったときの変化
   （少し浮く・薄い金の縁）がほとんど見えない。
   暗い背景でこそ効く「光のにじみ」を足して、
   どこに当たっているか一目で分かるようにしている。
   ========================================================= */

.service .case {
  position: relative;
  overflow: hidden;
  transition:
    transform .4s cubic-bezier(.22, 1, .36, 1),
    box-shadow .4s ease,
    background-color .4s ease;
}

/* 上辺を金の線が左から走る */
.service .case::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #f3d493 0%, #e8b85c 45%, #9e8149 100%);
  transition: width .5s cubic-bezier(.22, 1, .36, 1);
}

.service .case:hover::after { width: 100%; }

.service .case:hover {
  /* 地の色もほんの少し温かくして、当たっているのが分かるようにする */
  background: #fffaf0;
  transform: translateY(-10px);
  box-shadow:
    0 0 0 1px rgba(232, 184, 92, .85),
    0 26px 52px rgba(1, 12, 33, .55),
    0 0 64px rgba(232, 184, 92, .20);
}

.service .case__no,
.service .case h4 { transition: color .3s ease; }

.service .case:hover .case__no { color: var(--gold-light); }
.service .case:hover h4 { color: var(--gold-deep); }

/* 指で触る画面では、浮かせたままにならないように動かさない */
@media (hover: none) {
  .service .case:hover { transform: none; }
  .service .case:hover::after { width: 0; }
}

@media (max-width: 750px) {

  .partners {
    position: static;
    width: 100%;
    padding: 5rem 0;
  }

  .c-marquee_logo { height: 9.8rem; }

  .c-marquee_item { gap: 1.6rem; }

  /* 1rem は 10設計px ＝ 実寸 5px。社名を 1.1rem にしていたので実寸 5.5px で
     読めなかった。サイトのほかの小さい文字と同じ 2.2rem（実寸 11px）にそろえる。
     正方形のロゴは枠が細く、そのままだと社名が4行に折り返して高さがそろわない。
     社名の箱に下限（24rem）を持たせて、どの社も2行までに収める。 */
  .c-marquee_name {
    min-width: max(100%, 24rem);
    font-size: 2.2rem;
    line-height: 3.2rem;
  }

  /* ロゴが未着の社の枠。社名が 2行で収まる幅にする */
  .c-marquee_ph { width: 32rem; height: 7.8rem; padding: 0 2rem; font-size: 2.2rem; line-height: 3.2rem; }

  .c-marquee_item img { height: calc(var(--h) * 0.0875rem); }

  .partners__foot { gap: 2.4rem; margin-top: 2.4rem; padding-right: 4rem; }

  /* 注記は社名より小さく、1行に収まる大きさにする */
  .partners__note { font-size: 1.8rem; line-height: 2.6rem; }

  .c-marquee_list { gap: 4rem; padding-right: 4rem; }

  /* 停止ボタンは PC と同じ 28px のまま。中の「‖」と「▶」は px で置いているので、
     ボタンだけ小さくすると印が枠からずれる。 */






  .service .case:hover {
    transform: none;
    box-shadow: 0 0 0 1px var(--line-soft), 0 14px 34px rgba(10, 20, 48, .06);
  }
}
