@charset "UTF-8";

/* ==========================================================================
   シガコアレス 採用サイト
   --------------------------------------------------------------------------
   1. Tokens
   2. Base
   3. Background (bg-blue1 / bg-yellow / bg-blue2)
   4. Layout (container / section / card / cloud / dot / flank / arrow-button / accordion)
   5. Header / Footer
   6. Hero (下層ページ共通。イラストの配置は各ページ側)
   7. Page: TOP
   8. Page: 会社情報
   9. Page: フロン点検
   10. Page: お問い合わせ
   11. Page: 採用情報
   12. Page: 個人情報保護方針
   --------------------------------------------------------------------------
   ブレークポイント（PCファースト）
   〜1279px  イラスト付きヒーローのタイトル縮小
   〜1023px  タブレット
   〜767px   SP
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --c-blue: #003ea1;
  --c-lightblue: #e6f7ff;
  --c-yellow: #ffeb84;
  --c-white: #fff;
  --c-text: #333;
  --c-red-pale: rgba(255, 146, 100, 0.2);
  --c-green-pale: rgba(100, 203, 126, 0.2);
  --c-blue-pale: rgba(82, 109, 227, 0.2);

  /* TOP 仕事紹介のカード（上の薄い3色の元の色） */
  --c-work-orange: #ff9264;
  --c-work-green: #64cb7e;
  --c-work-blue: #526de3;

  --c-cta: #ff8758; /* ヘッダーの採用情報ボタン */
  --c-thumb-tint: rgba(0, 62, 161, 0.35); /* 動画サムネイルにかける青み */

  /* 装飾のドット */
  --c-dot-red: #e65257;
  --c-dot-red-pale: rgba(230, 82, 87, 0.5);
  --c-dot-orange: #ee9f7d;
  --c-dot-orange-pale: rgba(238, 159, 125, 0.5);
  --c-dot-blue: #496bff;
  --c-dot-blue-pale: rgba(73, 107, 255, 0.5);
  --c-dot-green-pale: rgba(125, 238, 131, 0.5);

  --font-base: "M PLUS Rounded 1c", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-inter: "Inter", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif; /* 和文はInterに無いのでゴシックで代替 */

  --frame: 10px; /* 画面の四辺の白枠（body::before / ::after で常に表示）。SPは6px */
  --header-h: 90px; /* ヘッダーのタブの高さ（上の白枠10pxを含む） */
  --tab-r: 30px; /* ヘッダーのタブ（ロゴ・メニュー・ハンバーガー）の角丸 */
  --toggle-r: 8px; /* ハンバーガーボタンの角丸（左下だけはタブの角丸に揃える） */
  --container: 1200px;
  --gutter: 20px;
  --radius: 12px;
  --cloud-h: max(17.5vw, 100px); /* cloud.svg = 1440 x 252 */
  /* バウンス演出の行き過ぎ具合（拡大 → 縮み → 揺り戻し）。SPは控えめ */
  --bounce-over: 1.22;
  --bounce-under: 0.93;
  --bounce-back: 1.04;

  --pattern-size: 500px; /* パターン画像は1000pxタイル。Figma上の見た目に合わせて調整 */
}

@media (max-width: 767px) {
  :root {
    --frame: 6px;
    --header-h: 56px; /* 白枠を細くした分（10 → 6px）だけタブも低くして、ロゴとボタンの大きさは変えない */
    --toggle-w: 66px; /* ハンバーガーの白タブの幅（中のボタンが 55 × 45 になる幅） */
    --tab-r: 15px;
    --toggle-r: 4px;
    --gutter: 16px;
    --bounce-over: 1.1;
    --bounce-under: 0.97;
    --bounce-back: 1.02;
  }
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* ページ内リンクで飛んだ先が、追従ヘッダーの下に隠れないようにする */
[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  color: var(--c-text);
  font-family: var(--font-base);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  background: var(--c-white);
}

/* 画面の四辺の白枠：スクロールしても常に表示。ヘッダー（全画面メニューを含む）よりも手前に置く
   （ヘッダーのタブと重なる所はどちらも白なので見た目は変わらない。メニューの開閉中も枠が途切れない）。TOPはFVの演出の後に出す（7. TOP）
   ::before＝上と左右。下端は画面よりずっと下に置き、外側は影の広がりで塗る
   ::after＝下の帯と、内側の下の角の丸み。画面の下端に付けて高さは固定
   上下を1つの要素にすると、Androidの Chrome でアドレスバーが隠れる途中に高さの更新が遅れ、
   下の枠がアドレスバー分だけ浮いて見えるため、下の帯は下端基準の別の要素にしている */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 101;
  pointer-events: none;
}

body::before {
  top: var(--frame);
  right: var(--frame);
  left: var(--frame);
  height: 200lvh;
  border-radius: var(--frame) var(--frame) 0 0;
  box-shadow: 0 0 0 calc(var(--frame) * 2) var(--c-white);
}

body::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(var(--frame) * 2);
  background:
    linear-gradient(var(--c-white), var(--c-white)) bottom / 100% var(--frame) no-repeat,
    radial-gradient(circle at 100% 0, transparent calc(var(--frame) - 0.5px), var(--c-white) var(--frame)) var(--frame) 0 / var(--frame) var(--frame) no-repeat,
    radial-gradient(circle at 0 0, transparent calc(var(--frame) - 0.5px), var(--c-white) var(--frame)) calc(100% - var(--frame)) 0 / var(--frame) var(--frame) no-repeat;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* 画像をドラッグで持ち出せないようにする（他のブラウザは main.js の dragstart で止めている）
   iPhone / iPad の長押しメニュー（「写真に追加」など）も出さない（右クリックメニューは main.js） */
img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

/* リンクの中の画像は、長押しメニュー（「新しいタブで開く」など）を残す */
a img {
  -webkit-touch-callout: default;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

/* 3. Background
   背景色 + パターン画像（透明度は画像側に焼き込み済み）
   ========================================================================== */
.bg-blue1,
.bg-yellow,
.bg-blue2 {
  background-size: var(--pattern-size);
}

.bg-blue1 {
  background-color: var(--c-lightblue);
  background-image: url(../img/pattern-navy10.webp);
}

.bg-yellow {
  background-color: var(--c-yellow);
  background-image: url(../img/pattern-white.webp);
}

.bg-blue2 {
  background-color: var(--c-blue);
  background-image: url(../img/pattern-navy30.webp);
}

/* 4. Layout
   ========================================================================== */
.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: 100px;
}

.card {
  padding: 60px;
  border-radius: var(--radius);
  background: var(--c-white);
}

/* 上下の余白が少し狭いカード（お問い合わせ、個人情報保護方針） */
.card--low {
  padding-block: 48px;
}

@media (max-width: 767px) {
  .section {
    padding-block: 56px;
  }

  .card {
    padding: 32px 20px;
  }

  /* カード内の見出しSVG（フロン点検・会社情報・採用情報）：見出しは書き出しの80%、小見出しは84%で全ページそろえる
     画面が狭くて一番長い見出し（見出し：フロン排出抑制法とは？ 347px、小見出し：定期点検の2行目 302px）が
     カードに収まらないときは、ほかの見出しも同じ倍率で一緒に縮める（カード内の幅 = 画面幅 - 72px）
     --n：その画像の書き出し時の幅（HTMLの style で指定） */
  .freon__heading img,
  .corp-message__heading img,
  .corp-outline__heading img,
  .recruit__trigger img {
    width: min(calc(var(--n) * 0.8px), calc((100vw - 72px) * var(--n) / 347));
  }

  .freon__subheading img {
    width: min(calc(var(--n) * 0.84px), calc((100vw - 72px) * var(--n) / 302));
  }
}

/* 雲：直前の要素の下端に重ねて、次のセクションの背景で切り抜く
   <div class="cloud bg-yellow"></div> のように次セクションと同じ bg-* を付ける */
.cloud {
  position: relative;
  height: var(--cloud-h);
  margin-top: calc(var(--cloud-h) * -1);
  margin-bottom: -1px;
  pointer-events: none;
  /* 雲の形で切り抜く。画面幅によっては拡大縮小の端数で雲の下端が半透明になり、前の要素の色が線状に透けるので、
     下端2pxは必ず塗られる帯を重ねておく（雲の下端はもともと全幅で塗りなので、見た目は変わらない） */
  -webkit-mask: linear-gradient(#000, #000) bottom / 100% 2px no-repeat, url(../img/deco-cloud.svg) center / cover no-repeat;
  mask: linear-gradient(#000, #000) bottom / 100% 2px no-repeat, url(../img/deco-cloud.svg) center / cover no-repeat;
}

/* 装飾のドット：親（position: relative など）に対する位置と直径を style の --x / --y / --d で渡す */
.dot {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--d);
  aspect-ratio: 1;
  border-radius: 50%;
}

.dot--red {
  background: var(--c-dot-red);
}

.dot--red-pale {
  background: var(--c-dot-red-pale);
}

.dot--orange {
  background: var(--c-dot-orange);
}

.dot--orange-pale {
  background: var(--c-dot-orange-pale);
}

.dot--blue {
  background: var(--c-dot-blue);
}

.dot--blue-pale {
  background: var(--c-dot-blue-pale);
}

.dot--green-pale {
  background: var(--c-dot-green-pale);
}

/* 本文の左右に工具とドットの装飾を置くレイアウト（会社情報「私たちの思い」、TOP「ABOUT」）
   [左の装飾][見出し+本文][右の装飾] の3列
   1024px〜     本文の幅を先に確保し、残った幅を装飾が使う（最大236px）
   768〜1023px  装飾はコンテナの19.67%、本文は列幅で折り返す
   〜767px      本文は全幅。装飾は見出しの両脇と本文の下 */
.flank {
  display: grid;
  grid-template-columns: minmax(84px, 236px) max-content minmax(84px, 236px);
  justify-content: space-between;
  column-gap: 12px;
  align-items: center;
}

.flank__body {
  grid-row: 1;
  grid-column: 2;
  text-align: center;
}

/* 装飾（工具6点 + ドット）：位置と幅はグループ（236 x 495）に対する% */
.flank__tools {
  display: contents;
}

.flank__group {
  position: relative;
  grid-row: 1;
  align-self: stretch;
}

/* 高さの下限を 236:495 の比率で確保（本文の方が長ければそれに合わせて伸びる） */
.flank__group::before {
  content: "";
  display: block;
  padding-top: calc(495 / 236 * 100%);
}

.flank__group--left {
  grid-column: 1;
}

.flank__group--right {
  grid-column: 3;
}

/* 工具は原画（傾きなし）。--x / --y：中心位置、--w：幅（グループに対する%）、--r：傾き */
.flank__tool {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--w);
  max-width: none;
  translate: -50% -50%;
  rotate: var(--r, 0deg);
}

.flank__tool--wrench {
  --x: 78.8%;
  --y: 11.7%;
  --w: 42.4%;
}

.flank__tool--pliers {
  --x: 23.3%;
  --y: 49.9%;
  --w: 46.6%;
}

.flank__tool--ladder {
  --x: 80.9%;
  --y: 84.4%;
  --w: 50.7%;
  --r: 20deg;
}

.flank__tool--drill {
  --x: 25.8%;
  --y: 11.5%;
  --w: 50.6%;
  scale: -1 1; /* 左右反転 */
}

.flank__tool--tank {
  --x: 70.5%;
  --y: 50%;
  --w: 46.7%;
  --r: -25deg;
}

.flank__tool--torch {
  --x: 36.4%;
  --y: 91.9%;
  --w: 62.6%;
  --r: 13deg;
}

@media (max-width: 1023px) {
  .flank {
    --gw: max(84px, 19.67%);
    grid-template-columns: var(--gw) minmax(0, 1fr) var(--gw);
    column-gap: clamp(12px, 1.6vw, 20px);
  }
}

@media (max-width: 767px) {
  /* 本文は全幅にして、レンチとドリルを見出しの両脇、残り4点を本文の下に並べる
     装飾の大きさは固定で、画面幅によって間隔だけ変わる */
  .flank {
    position: relative;
    display: block;
    padding-top: 44px;
    padding-bottom: 104px;
    background:
      radial-gradient(circle closest-side, var(--c-dot-red) 96%, transparent) 20% 14px / 14px 14px no-repeat,
      radial-gradient(circle closest-side, var(--c-dot-blue-pale) 96%, transparent) 78% 20px / 8px 8px no-repeat,
      radial-gradient(circle closest-side, var(--c-dot-orange) 96%, transparent) 46% calc(100% - 70px) / 14px 14px no-repeat,
      radial-gradient(circle closest-side, var(--c-dot-green-pale) 96%, transparent) 44% calc(100% - 8px) / 10px 10px no-repeat,
      radial-gradient(circle closest-side, var(--c-dot-blue) 96%, transparent) 96% calc(100% - 96px) / 12px 12px no-repeat;
  }

  .flank__group {
    display: contents;
  }

  .flank__group::before {
    content: none;
  }

  .flank__tools .dot {
    display: none;
  }

  /* 中心基準をやめて、端からの距離と固定幅で置く（傾きは維持） */
  .flank__tool {
    top: auto;
    right: auto;
    bottom: 0;
    left: auto;
    translate: none;
  }

  .flank__tool--wrench {
    top: 28px;
    bottom: auto;
    left: 3%;
    width: 45px;
  }

  .flank__tool--drill {
    top: 28px;
    right: 3%;
    bottom: auto;
    width: 54px;
  }

  .flank__tool--pliers {
    left: 2%;
    width: 50px;
  }

  .flank__tool--ladder {
    bottom: 8px;
    left: 25%;
    width: 54px;
  }

  .flank__tool--torch {
    right: 25%;
    bottom: 16px;
    width: 67px;
  }

  .flank__tool--tank {
    right: 5%;
    bottom: 8px;
    width: 49px;
  }
}

/* 矢印つきのボタン（白地に青文字、右端に青い四角と矢印）
   ホバーで色が反転し、矢印が右へ抜けて左から戻ってくる（ホバーを外したときも同じ動き）
   矢印は icon-arrow.svg をマスクにして色を付けている */
.arrow-button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-width: 216px;
  min-height: 48px;
  padding: 8px 8px 8px 16px;
  border-radius: 8px;
  background: var(--c-white);
  color: var(--c-blue);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s;
}

.arrow-button__icon {
  --arrow: var(--c-white);
  position: relative;
  flex: none;
  overflow: hidden;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--c-blue);
  transition: background-color 0.25s;
}

.arrow-button__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--arrow);
  -webkit-mask: url(../img/icon-arrow.svg) center / 19px 14px no-repeat;
  mask: url(../img/icon-arrow.svg) center / 19px 14px no-repeat;
  transition: background-color 0.25s;
}

@media (hover: hover) {
  /* ホバーを外したとき用（main.js が一度ホバーされたボタンに .is-left を付ける）。
     ホバー時と名前の違う同じ動きにして、出入りのたびに最初から再生させる */
  .arrow-button.is-left .arrow-button__icon::before {
    animation: arrow-loop-out 0.45s ease-in-out;
  }

  .arrow-button:hover {
    background: var(--c-blue);
    color: var(--c-white);
  }

  .arrow-button:hover .arrow-button__icon {
    --arrow: var(--c-blue);
    background: var(--c-white);
  }

  .arrow-button:hover .arrow-button__icon::before {
    animation: arrow-loop 0.45s ease-in-out;
  }
}

@keyframes arrow-loop {
  45% {
    translate: 100% 0;
  }

  45.01% {
    translate: -100% 0;
  }
}

@keyframes arrow-loop-out {
  45% {
    translate: 100% 0;
  }

  45.01% {
    translate: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arrow-button .arrow-button__icon::before {
    animation: none !important;
  }
}

/* 開閉する部品（TOPのよくある質問、採用情報）
   .accordion__trigger（button）の aria-expanded を main.js が切り替え、
   その見出しの次にある .accordion__panel の行の高さを 0fr ⇔ 1fr にして開閉する。JSが無効なときは開いたまま */
.accordion__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.3s, visibility 0.3s;
}

.js :has(> .accordion__trigger[aria-expanded="false"]) + .accordion__panel {
  grid-template-rows: 0fr;
  visibility: hidden;
}

.accordion__panel-inner {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .accordion__panel {
    transition: none;
  }
}

/* 5. Header / Footer
   ========================================================================== */

/* ヘッダー：画面上部に追従する
   [ロゴの白タブ] ……画面の白枠の上辺（2. Base の body::before）…… [メニューの白タブ]
   1099px以下はメニューをしまって、右のタブをハンバーガーボタンにする */
.header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  pointer-events: none; /* タブ以外の部分は下の要素を押せるように */
}

.header__logo,
.header__nav,
.header__toggle {
  position: relative;
  height: var(--header-h);
  padding-top: var(--frame);
  background: var(--c-white);
  pointer-events: auto;
}

/* 1440px時：ロゴ151x32、左右の余白56px（左は白枠分を加算）→ タブの幅283px */
.header__logo {
  display: flex;
  align-items: center;
  padding-right: clamp(20px, 3.89vw, 56px);
  padding-left: calc(var(--frame) + clamp(20px, 3.89vw, 56px));
  border-bottom-right-radius: var(--tab-r);
}

.header__logo img {
  display: block;
  width: clamp(110px, 10.49vw, 151px);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: calc(var(--frame) + 20px);
  padding-left: 40px;
  border-bottom-left-radius: var(--tab-r);
  color: var(--c-blue);
  font-size: 14px;
  font-weight: 800;
}

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

.header__nav a {
  text-decoration: none;
  transition: opacity 0.2s;
}

.header__nav a:hover {
  opacity: 0.6;
}

.header__button {
  display: grid;
  place-items: center;
  min-width: 104px;
  height: 32px;
  padding-inline: 16px;
  border-radius: 4px;
  background: var(--c-cta);
  color: var(--c-white);
}

/* タブと白枠のつなぎ目の逆角丸
   ::before＝上端の白帯との角、::after＝左右の白枠との角 */
.header__logo::before,
.header__logo::after,
.header__nav::before,
.header__nav::after,
.header__toggle::before,
.header__toggle::after {
  content: "";
  position: absolute;
  width: var(--frame);
  height: var(--frame);
  background: radial-gradient(circle at var(--corner), transparent calc(var(--frame) - 0.5px), var(--c-white) var(--frame));
}

.header__logo::before {
  --corner: 100% 100%;
  top: var(--frame);
  left: 100%;
}

.header__logo::after {
  --corner: 100% 100%;
  top: 100%;
  left: var(--frame);
}

.header__nav::before,
.header__toggle::before {
  --corner: 0 100%;
  top: var(--frame);
  right: 100%;
}

.header__nav::after,
.header__toggle::after {
  --corner: 0 100%;
  top: 100%;
  right: var(--frame);
}

/* ハンバーガーボタン：白いタブの中に、オレンジの角丸ボタン（白の3本線）。開くと青地に白の×になる */
.header__toggle {
  display: none;
  width: var(--toggle-w, calc(var(--header-h) + var(--frame)));
  padding-right: var(--frame);
  border: 0;
  border-bottom-left-radius: var(--tab-r);
  cursor: pointer;
}

.header__toggle-icon {
  position: absolute;
  inset: var(--frame) var(--frame) 5px 5px;
  /* 左下だけ、白タブの角丸から余白5pxを引いた丸みにして角を揃える（SPデザイン 742px幅：角丸8、左下20 → 半分に換算） */
  border-radius: var(--toggle-r) var(--toggle-r) var(--toggle-r) calc(var(--tab-r) - 5px);
  background: var(--c-cta);
  transition: background-color 0.3s;
}

/* ::before＝3本線（上下は影で描く）→ 開くと斜めの1本、::after＝開いたときだけ出るもう1本 */
.header__toggle-icon::before,
.header__toggle-icon::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: calc(50% - 16px);
  width: 32px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-white);
  transition: rotate 0.3s, box-shadow 0.3s, opacity 0.3s;
}

.header__toggle-icon::before {
  box-shadow: 0 -7px var(--c-white), 0 7px var(--c-white); /* 線と線の間は5px */
}

.header__toggle-icon::after {
  opacity: 0;
}

.header__toggle[aria-expanded="true"] .header__toggle-icon {
  background: var(--c-blue);
}

.header__toggle[aria-expanded="true"] .header__toggle-icon::before {
  box-shadow: 0 0 transparent, 0 0 transparent;
  rotate: 25deg;
}

.header__toggle[aria-expanded="true"] .header__toggle-icon::after {
  opacity: 1;
  rotate: -25deg;
}

/* メニューを開いたときだけ出るイラスト */
.header__charas {
  display: none;
}

@media (max-width: 1099px) {
  /* ロゴとボタンは、全画面メニューより手前に置く（白枠はさらに手前：2. Base） */
  .header__toggle {
    display: block;
    z-index: 1;
  }

  .header__logo {
    z-index: 1;
  }

  /* 全画面のメニュー。開いている間は main.js が html に .is-locked を付けて後ろを止める */
  .header__nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: flex-start;
    gap: 40px;
    overflow: hidden;
    height: auto;
    padding: clamp(86px, 17.8vh, 150px) var(--gutter) 0;
    border-radius: 0;
    background: var(--c-blue);
    color: var(--c-white);
    font-size: 16px;
    opacity: 0;
    visibility: hidden;
  }

  /* フェードは開閉の操作中だけ（main.js が .is-animating を付ける）。画面幅が変わったときに一瞬見えるのを防ぐ */
  .header.is-animating .header__nav {
    transition: opacity 0.3s, visibility 0.3s;
  }

  .header__nav::before,
  .header__nav::after {
    content: none;
  }

  .header.is-open .header__nav {
    opacity: 1;
    visibility: visible;
  }

  .header__list {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    line-height: 24px;
  }

  .header__button {
    width: min(100%, 256px);
    height: 48px;
    border-radius: 999px;
  }

  /* イラスト：採用情報ボタンの下（間隔は上の gap の40px）に、左右の端で切れる形で置く
     画面の下端ではなくメニューに付いているので、画面が低いと下が切れる */
  .header__charas {
    position: relative;
    display: block;
    align-self: stretch;
    margin-inline: calc(var(--gutter) * -1);
  }

  /* TOPのMOVIEのイラストと同じ、ふわふわ浮く動き（@keyframes float は 7. TOP） */
  .header__chara {
    position: absolute;
    max-width: none;
    pointer-events: none;
    animation: float 4s ease-in-out infinite alternate;
  }

  /* 位置と幅は、デザイン（375px幅）に原画を重ねて合わせた値 */
  .header__chara--left {
    top: -1px;
    left: -7.7vw;
    width: min(47.1vw, 330px);
  }

  .header__chara--right {
    top: 13px;
    right: -8vw;
    width: min(51.9vw, 364px);
    animation-duration: 5s;
    animation-delay: -2s;
  }
}

/* フッター上のお問い合わせバナー（文字も含めて1枚の画像） */
.cta {
  padding: 100px var(--gutter);
}

.cta__banner {
  display: block;
  width: min(100%, 800px);
  margin-inline: auto;
  transition: scale 0.2s;
}

.cta__banner:hover {
  scale: 1.02;
}

.cta__banner img {
  display: block;
  width: 100%;
}

@media (max-width: 767px) {
  .cta {
    padding-block: 48px;
  }
}

/* 追従するお問い合わせボタン */
/* 外側の「CONTACT」の輪（SVG、150 x 149）がゆっくり回り、中央の丸と紙飛行機（PNGを2倍で書き出したもの）は止まったまま
   中央の画像は丸（輪に対して 上24・左24 の位置の100 x 100）の左に紙飛行機の先が3.75pxはみ出すので、その分左へずらしている */
.floating-cta {
  position: fixed;
  right: clamp(20px, 2.36vw, 34px); /* 1440pxで34px。下も同じ距離 */
  bottom: clamp(20px, 2.36vw, 34px);
  z-index: 90;
  width: clamp(96px, 10.4vw, 150px);
  aspect-ratio: 150 / 149;
  transition: scale 0.2s, opacity 0.3s, visibility 0.3s;
}

/* フッター上のバナーが見えている間は消す（main.js） */
.floating-cta.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.floating-cta:hover {
  scale: 1.06;
}

.floating-cta img {
  position: absolute;
  display: block;
  max-width: none;
}

.floating-cta__ring {
  inset: 0;
  width: 100%;
  transform-origin: 49.67% 50%; /* 輪の中心（74.5, 74.5） */
  animation: cta-spin 15s linear infinite;
}

.floating-cta__center {
  top: 16.11%; /* 24 / 149 */
  left: 13.5%; /* (24 - 3.75) / 150 */
  width: 72.33%; /* 108.5 / 150 */
}

@keyframes cta-spin {
  to {
    rotate: 360deg;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-cta__ring {
    animation: none;
  }
}

@media (max-width: 767px) {
  .floating-cta {
    right: 12px;
    bottom: 12px;
  }
}

.footer {
  padding: 14px var(--gutter) calc(14px + var(--frame)); /* 下は画面の白枠の分を足して、文字が枠に隠れないようにする */
  background: var(--c-blue);
  color: var(--c-white);
  font-family: var(--font-inter);
  font-size: 12px;
  line-height: 15px; /* 上下の余白14pxと合わせて、白枠より上の部分が高さ43px */
  text-align: center;
}

.footer small {
  font-size: inherit; /* small の既定（一回り小さく）を打ち消す */
}

/* 6. Hero（下層ページ共通）
   上下の余白は --hero-pt / --hero-pb で持ち、ページごとの調整はこの変数を上書きする
   1024px以上は全ページ同じ高さ（1440pxで527px）。Figmaのヒーロー（517px）はヘッダーの白タブが無い前提なので、
   タイトルが白タブに近づきすぎないよう、中身を一律10px下げている（ドットの上端は全ページ共通で上から177.5px）
   ========================================================================== */
.hero {
  --hero-pt: 147.5px;
  --hero-pb: calc(var(--cloud-h) - 48px + var(--hero-fix, 0px)); /* --hero-fix：1024px以上でヒーローの高さを全ページ527pxに揃える調整（ページ側で指定） */
  position: relative;
  padding: var(--frame) var(--frame) 0;
  background: var(--c-white);
}

.hero__inner {
  position: relative;
  padding: var(--hero-pt) var(--gutter) var(--hero-pb);
}

.page-title {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  min-height: 146px;
}

.page-title__text {
  min-width: 0;
}

.page-title__text img {
  display: block;
}

/* 見出しの登場（TOPの各セクション。.js-inview：画面に入ったら .is-inview が付く）
   見出しと下の文章が下からフェードイン → 左右のドットが中心からバウンス */
.js .page-title.js-inview:not(.is-inview) > *,
.js .top-work__lead.js-inview:not(.is-inview) {
  opacity: 0;
}

.page-title.is-inview .page-title__text {
  animation: fade-up 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.top-work__lead.is-inview {
  animation: fade-up 0.6s 0.15s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.page-title.is-inview .page-title__dot {
  animation: bounce-in 0.55s 0.3s both;
}

@keyframes fade-up {
  from {
    opacity: 0;
    translate: 0 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-title.is-inview > *,
  .top-work__lead.is-inview {
    animation: none;
  }
}

/* 幅が足りないときは、見出しよりドットを先に縮める（SPはドットを固定の大きさにして見出しを縮める：6. Hero の 767px以下）
   --dot-shift：ドットを見出しの中央揃えから下へずらす量。デザインは「ドットの上端 = タイトル画像の上端 + 27px」なので、
   タイトル画像の高さごとに 27px - (高さ - 146px) / 2 を指定する（168px → 16px、170px → 15px、173px → 13.5px） */
.page-title__dot {
  flex: 0 1 auto;
  flex-shrink: 100; /* 幅が足りないときは、見出しよりドットを先に縮める */
  min-width: 0;
  translate: 0 var(--dot-shift, 0px);
}

/* イラスト：位置と大きさは各ページ側。後ろに来る .cloud より奥に描かれる */
.hero__deco {
  position: absolute;
  pointer-events: none;
}

/* 登場の演出（ページを開いたとき）：TOPの見出しと同じく、タイトルが下からフェードイン → 左右のドットがバウンス。
   その後にイラストがバウンスで出る（タイトルより先に見えないようにする） */
.js .hero .page-title__text {
  animation: fade-up 0.6s 0.1s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.js .hero .page-title__dot {
  animation: bounce-in 0.55s 0.4s both;
}

.js .hero__deco {
  animation: bounce-in 0.7s 0.7s both;
}

@media (prefers-reduced-motion: reduce) {
  .js .hero :is(.page-title__text, .page-title__dot, .hero__deco) {
    animation: none;
  }
}

/* タイトルの右横にイラストを置くヒーロー：幅が狭まると当たるのでタイトル一式を段階的に縮める
   1024〜1279px  80%
   768〜1023px   65%。タイトルを36px上げ、その分を下に足してヒーローの高さは維持 */
@media (max-width: 1279px) {
  .hero--illust .page-title {
    zoom: 0.8;
  }
}

@media (max-width: 1023px) {
  .hero--illust {
    --hero-pt: 111.5px;
    --hero-pb: calc(var(--cloud-h) - 12px);
  }

  .hero--illust .page-title {
    zoom: 0.65;
  }
}

@media (max-width: 767px) {
  .hero {
    --hero-pt: 84px;
    --hero-pb: calc(var(--cloud-h) - 24px);
  }

  /* SPの吹き出し付き見出しは、TOP・下層とも同じ倍率（書き出しの55%）にそろえる
     左右のドットは全ページ同じ大きさ（書き出しの45%）で縮めない。幅が足りないときは見出しの方が縮む */
  .page-title,
  .hero--illust .page-title {
    gap: 20px;
    zoom: 0.55;
  }

  .page-title__dot {
    flex-shrink: 0;
    zoom: 0.818; /* 0.55 × 0.818 ≒ 書き出しの45% */
  }

  /* イラスト付きヒーロー：イラストはタイトルの右下で、雲に少し埋める
     --illust-w：イラストの幅、--illust-ratio：イラストの縦横比（高さ ÷ 幅。ページ側で指定）
     --illust-b：雲への埋まり具合。雲が高くなる幅でも同じだけ見えるように雲の高さに連動
     下の余白はイラストの高さぶん広げる */
  .hero--illust {
    --illust-w: clamp(105px, 28vw, 130px);
    --illust-b: calc(var(--cloud-h) - 82px);
    --hero-pb: calc(var(--illust-w) * var(--illust-ratio, 1) + var(--illust-b) + 4px);
  }

  .hero--illust .hero__deco {
    top: auto;
    right: 8px;
    bottom: var(--illust-b);
    width: var(--illust-w);
  }
}

/* 7. Page: TOP
   ========================================================================== */

/* MV
   重なり順：背景 < 道具 < コピー < 人 < 下の雲 < 白枠
   .mv__stage は構図の座標系（PC 1440x900 / SP 375x550）。中の要素は中心位置と幅を%で持つので、
   画面幅が変わっても一枚絵を拡大縮小したのと同じ見え方になる
   600px〜   PC構図。高さは「幅に比例（1440:900）」「画面の高さ（下限600px）」「1200px」のうち一番小さい値。
             画面が横長だと構図を画面の高さに収め、余った左右は背景と雲だけが広がる
   〜599px   SP構図（白枠の内側に収める） */
.mv {
  position: relative;
  width: 100%;
  /* 画面の高さに合わせるのは600pxまで（それより低い画面では構図が小さくなりすぎるので、下が少し切れる） */
  height: max(min(62.5vw, 100vh, 1200px), min(62.5vw, 600px));
  height: max(min(62.5vw, 100svh, 1200px), min(62.5vw, 600px)); /* svh：スマホのアドレスバーが出ている状態の高さ（対応ブラウザのみ） */
  overflow: hidden;
}

.mv__bg img,
.mv__cloud img {
  position: absolute;
  left: 0;
  width: 100%;
  max-width: none;
}

.mv__bg img {
  top: 0;
  height: 100%;
  object-fit: cover;
}

.mv__cloud img {
  bottom: 0;
  z-index: 2;
  height: 26.78%; /* 482 / 2880 を MV の高さ基準に換算 */
  object-fit: cover; /* 構図より横長のときは引き伸ばさず、上下を少し切って合わせる */
  object-position: center bottom;
}

.mv__stage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 1;
  aspect-ratio: 1440 / 900;
  translate: -50% 0;
}

/* --x / --y：中心位置、--w：幅（いずれも構図に対する%）、--r：傾き */
.mv__item {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--w);
  max-width: none;
  margin: 0;
  translate: -50% -50%;
  rotate: var(--r);
}

.mv__item--copy img {
  display: block;
  width: 100%;
}

.mv__item--aircon {
  --x: 60.25%;
  --y: 12.8%;
  --w: 24.07%;
  --r: 20deg;
}

.mv__item--detector {
  --x: 39.25%;
  --y: 22.48%;
  --w: 7.28%;
  --r: 0deg;
}

.mv__item--drill {
  --x: 6.4%;
  --y: 46.24%;
  --w: 9.6%;
  --r: 0deg;
}

.mv__item--tank {
  --x: 95.85%;
  --y: 41.44%;
  --w: 9.5%;
  --r: 22deg;
}

.mv__item--fan {
  --x: 42.1%;
  --y: 83.68%;
  --w: 14.07%;
  --r: 0deg;
}

.mv__item--wrench {
  --x: 54.45%;
  --y: 68.72%;
  --w: 2.55%;
  --r: -3deg;
}

.mv__item--driver {
  --x: 66.25%;
  --y: 79.2%;
  --w: 3.55%;
  --r: -24deg;
}

.mv__item--copy {
  --x: 50%;
  --y: 50.96%;
  --w: 58.4%;
  --r: 0deg;
}

.mv__item--chara5 {
  --x: 19.35%;
  --y: 28.4%;
  --w: 14%;
  --r: 0deg;
}

.mv__item--chara6 {
  --x: 83.65%;
  --y: 29.04%;
  --w: 13.5%;
  --r: 10deg;
}

.mv__item--chara4 {
  --x: 15.95%;
  --y: 77.28%;
  --w: 25.85%;
  --r: 0deg;
}

.mv__item--chara1 {
  --x: 87.3%;
  --y: 83.6%;
  --w: 31.68%;
  --r: 0deg;
}

@media (max-width: 599px) {
  /* SP構図は画面の白枠の内側に収める（枠の分だけ全体を縮める）
     背景と雲は画面の端まで敷き、白枠は画面の白枠（body::before / ::after）だけにする */
  .mv {
    height: auto;
    padding: var(--frame) var(--frame) 0;
  }

  .mv__stage {
    position: relative;
    left: auto;
    aspect-ratio: 375 / 550;
    translate: none;
  }

  .mv__cloud img {
    height: calc((100% - var(--frame)) * 0.2633); /* 580 / 1502 を構図の高さ基準に換算 */
    object-fit: cover;
    object-position: center bottom;
  }

  .mv__item--aircon {
    --x: 66.08%;
    --y: 10.18%;
    --w: 37.54%;
    --r: 19deg;
  }

  .mv__item--detector {
    --x: 58.39%;
    --y: 26.75%;
    --w: 13.95%;
    --r: 0deg;
  }

  .mv__item--drill {
    --x: 5.49%;
    --y: 38.75%;
    --w: 15.53%;
    --r: 0deg;
  }

  .mv__item--tank {
    --x: 96.04%;
    --y: 60%;
    --w: 13.04%;
    --r: 16deg;
  }

  .mv__item--fan {
    --x: 45.57%;
    --y: 69.1%;
    --w: 21.67%;
    --r: 0deg;
  }

  .mv__item--wrench {
    --x: 7.47%;
    --y: 68.3%;
    --w: 8.17%;
    --r: -3deg;
  }

  .mv__item--driver {
    --x: 62.12%;
    --y: 84.1%;
    --w: 7.23%;
    --r: -24deg;
  }

  .mv__item--copy {
    --x: 49.96%;
    --y: 50%;
    --w: 94.14%;
    --r: 0deg;
  }

  .mv__item--chara5 {
    --x: 27.99%;
    --y: 24.32%;
    --w: 27.08%;
    --r: 0deg;
  }

  .mv__item--chara6 {
    --x: 84.18%;
    --y: 32.6%;
    --w: 22.27%;
    --r: 10deg;
  }

  .mv__item--chara4 {
    --x: 21.5%;
    --y: 84.12%;
    --w: 34.15%;
    --r: 0deg;
  }

  .mv__item--chara1 {
    --x: 83.59%;
    --y: 88.17%;
    --w: 42.2%;
    --r: 0deg;
  }
}

/* MV の登場演出：コピーがバウンス → 道具がまとめて拡大しながら出る → 人がまとめて拡大しながら出る
   JSが有効なときだけ最初に隠し、main.js が .is-ready を付けたら再生する */
.js .mv:not(.is-ready) .mv__item {
  opacity: 0;
}

.mv.is-ready .mv__item--copy {
  animation: bounce-in 0.75s 0.1s both;
}

.mv.is-ready .mv__item--tool {
  animation: pop-in 0.45s 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.mv.is-ready .mv__item--chara {
  animation: pop-in 0.45s 1s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

/* 登場後は上下にゆらゆら。3つのグループ（道具 / 左上と右下の人 / 右上と左下の人）で
   揺れの周期を1/3ずつずらす（周期3.2秒。開始時刻を約1.07秒ずつずらしている） */
.mv {
  --sway: clamp(4px, 0.6vw, 12px); /* 揺れ幅（1440pxで約9px） */
}

.mv.is-ready .mv__item--tool {
  animation:
    pop-in 0.45s 0.6s cubic-bezier(0.2, 0.9, 0.3, 1) both,
    mv-sway 1.6s 1.1s ease-in-out infinite alternate;
}

.mv.is-ready :is(.mv__item--chara5, .mv__item--chara1) {
  animation:
    pop-in 0.45s 1s cubic-bezier(0.2, 0.9, 0.3, 1) both,
    mv-sway 1.6s 2.17s ease-in-out infinite alternate;
}

.mv.is-ready :is(.mv__item--chara6, .mv__item--chara4) {
  animation:
    pop-in 0.45s 1s cubic-bezier(0.2, 0.9, 0.3, 1) both,
    mv-sway 1.6s 3.23s ease-in-out infinite alternate;
}

/* 定位置（中心合わせの -50% -50%）から上へ持ち上げる */
@keyframes mv-sway {
  to {
    translate: -50% calc(-50% - var(--sway));
  }
}

/* FVの演出が終わってから、白枠とヘッダー → 追従のお問い合わせボタンの順に出す（TOPのみ）
   人物の登場（1.45秒で完了）の後に白枠とヘッダー、その0.5秒後にボタン
   フェードの後は通常の指定に戻す（backwards）ので、ボタンの .is-hidden などはそのまま効く */
.js body:has(.mv:not(.is-ready)) :is(.header, .floating-cta),
.js body:has(.mv:not(.is-ready))::before,
.js body:has(.mv:not(.is-ready))::after {
  opacity: 0;
}

body:has(.mv.is-ready)::before,
body:has(.mv.is-ready)::after,
body:has(.mv.is-ready) .header {
  animation: fade-in 0.5s 1.45s backwards;
}

body:has(.mv.is-ready) .floating-cta {
  animation: fade-in 0.5s 1.95s backwards;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

/* 小さい状態から一気に行き過ぎるまで拡大 → 縮みすぎ → 少し戻りすぎ → 定位置 */
@keyframes bounce-in {
  0% {
    opacity: 0;
    scale: 0.1;
    animation-timing-function: cubic-bezier(0.2, 0.6, 0.35, 1);
  }

  15% {
    opacity: 1;
  }

  40% {
    scale: var(--bounce-over);
    animation-timing-function: ease-in-out;
  }

  62% {
    scale: var(--bounce-under);
    animation-timing-function: ease-in-out;
  }

  82% {
    scale: var(--bounce-back);
    animation-timing-function: ease-in-out;
  }

  100% {
    opacity: 1;
    scale: 1;
  }
}

@keyframes pop-in {
  0% {
    opacity: 0;
    scale: 0.6;
  }

  100% {
    opacity: 1;
    scale: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mv.is-ready .mv__item,
  body:has(.mv.is-ready)::before,
  body:has(.mv.is-ready)::after,
  body:has(.mv.is-ready) :is(.header, .floating-cta) {
    animation: none;
  }
}

/* MESSAGE：空気を操る、未来を創る
   PC：左に見出しと本文、右にイラスト。SP：見出し → 本文 → イラスト */
.top-message {
  --pt: 150px;
  --heading-w: min(37.5vw, 540px); /* 見出しはイラストと同じ比率で縮む（1440pxで540px） */
  position: relative;
  padding-block: var(--pt) 140px; /* 1440pxでセクションの高さ737px */
  overflow: hidden;
}

/* 後ろを流れる文字：1語分のSVGを横に並べ、1語の幅だけ左へ動かして繰り返す */
.top-message__marquee {
  --h: 107px;
  --tile: calc(var(--h) * 735.938 / 107); /* SVGの縦横比 */
  position: absolute;
  top: calc(var(--pt) + var(--heading-w) * 0.3); /* 見出しの2行目あたり */
  left: 0;
  width: calc(100% + var(--tile));
  height: var(--h);
  background: url(../img/txt-top-message-marquee.svg) repeat-x 0 0 / var(--tile) 100%;
  opacity: 0.06;
  animation: marquee 18s linear infinite;
}

@keyframes marquee {
  to {
    translate: calc(var(--tile) * -1) 0;
  }
}

/* コンテナが画面幅いっぱいになる幅では、左右の余白を画面幅の5%（最小20px）に広げる */
.top-message__inner {
  --visual-w: min(36.1vw, 520px);
  position: relative;
  width: min(100% - max(var(--gutter) * 2, 10vw), var(--container));
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--visual-w);
  column-gap: 24px;
  align-items: start;
  padding-right: 31px;
}

.top-message__heading {
  grid-column: 1;
  line-height: 1;
}

.top-message__heading img {
  width: var(--heading-w);
}

.top-message__text {
  grid-column: 1;
  margin-top: 40px;
  font-size: 18px;
  font-weight: 700;
  line-height: 2;
}

/* イラスト：中の要素は .top-message__visual（520 x 452）に対する%で配置 */
.top-message__visual {
  position: relative;
  grid-row: 1 / span 2;
  grid-column: 2;
  aspect-ratio: 520 / 452;
  margin-top: -17px;
}

.top-message__chara {
  position: absolute;
  top: 1.8%;
  left: 13.75%;
  width: 85.9%;
  max-width: none;
}

.top-message__airplane {
  position: absolute;
  top: 4.7%;
  left: 0;
  width: 35.6%;
  max-width: none;
}

/* 演出：画面に入ったら、人とドットがバウンス → 紙飛行機が少し右からスッと入る */
.js .top-message__visual:not(.is-inview) > * {
  opacity: 0;
}

.top-message__visual.is-inview .top-message__chara,
.top-message__visual.is-inview .dot {
  animation: bounce-in 0.75s both;
}

/* 紙飛行機：入ってきた後は、MOVIEのイラストと同じようにふわふわ浮く（@keyframes float は MOVIE の項）
   ふわふわは周期の半ば（定位置に近い所）から始まるよう、開始を周期の半分だけ早めてある。
   入ってくる動きが終わるまではそちらが優先され、終わると（backwards なので）ふわふわに切り替わる */
.top-message__visual.is-inview .top-message__airplane {
  animation:
    float 4s -0.8s ease-in-out infinite alternate,
    slide-in-right 0.5s 0.7s cubic-bezier(0.2, 0.9, 0.3, 1) backwards;
}

@keyframes slide-in-right {
  0% {
    opacity: 0;
    translate: 60% 0;
  }

  100% {
    opacity: 1;
    translate: 0 0;
  }
}

@media (max-width: 1279px) {
  /* 本文の列が狭くなるので、改行位置を固定せず折り返す */
  .top-message__text br {
    display: none;
  }
}

@media (max-width: 1023px) {
  .top-message {
    --pt: 110px;
    padding-bottom: 130px;
  }

  .top-message__marquee {
    --h: 80px;
  }

  .top-message__inner {
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .top-message {
    padding-block: 56px 80px;
  }

  .top-message__marquee {
    --h: 56px;
    top: 118px;
  }

  .top-message__inner {
    display: flex;
    flex-direction: column;
    width: min(100% - var(--gutter) * 2, var(--container));
  }

  .top-message__heading img {
    width: min(100%, 300px);
  }

  .top-message__visual {
    order: 1; /* 本文の後ろへ */
    width: min(86%, 340px);
    margin: 32px auto 0;
  }

  .top-message__text {
    margin-top: 28px;
    font-size: 15px;
    line-height: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-message__marquee,
  .top-message__visual.is-inview > * {
    animation: none;
  }
}

/* ABOUT
   下地は水色（bg-blue1）。その上の黄色い面（.top-about__bg）を楕円で切り抜き、
   スクロールに合わせて main.js が楕円を広げる：小さな丸 → 画面下まで届く丸 → 上辺だけ弧の全面
   広がりきると .is-open が付いて中身が現れる。JSなしのときは最初から全面 */
.top-about {
  --arc: 10.9vw; /* 上辺の弧の深さ（1440pxで157px。形は main.js が作る） */
  position: relative;
  padding-block: calc(var(--arc) + 48px) calc(var(--cloud-h) + 30px);
}

.top-about__bg {
  position: absolute;
  inset: 0;
  clip-path: ellipse(107% 100% at 50% 100%); /* JSが無効なときの近い形 */
}

.top-about__content {
  --gw: clamp(84px, 16.4vw, 236px);
  position: relative;
  width: min(100% - var(--gutter) * 2, 1260px); /* 装飾を左右30pxずつ外へ */
  grid-template-columns: var(--gw) minmax(0, 1fr) var(--gw);
  align-items: start; /* タイトルと装飾の上端を揃える */
  transition: opacity 0.5s, translate 0.5s;
}

/* 工具の横位置：会社情報の「私たちの思い」（4. Layout の .flank）より外側。デザイン（1440px幅）に原画を重ねて合わせた値
   767px以下は .flank 側の固定配置が効くので、この指定は使われない */
.top-about .flank__tool--wrench {
  --x: 56.4%;
}

.top-about .flank__tool--pliers {
  --x: 19.1%;
}

.top-about .flank__tool--ladder {
  --x: 59.5%;
}

.top-about .flank__tool--drill {
  --x: 47.7%;
}

.top-about .flank__tool--tank {
  --x: 74.6%;
}

.top-about .flank__tool--torch {
  --x: 56.8%;
}

.js .top-about:not(.is-open) :is(.top-about__content, .top-about__more) {
  opacity: 0;
  translate: 0 24px;
}

/* タイトルは本文の列より広いので、列の中央からはみ出して置く */
.top-about__title img {
  position: relative;
  left: 50%;
  display: block;
  width: min(58vw, 834px);
  max-width: none;
  translate: -50% 0;
}

.top-about__text {
  margin-top: 59px; /* Figma上はタイトルの文字枠から48px。タイトル画像は文字枠より下が11px短いので、その分を足す */
  font-size: clamp(16px, 1.39vw, 20px); /* 1440pxで20px。狭い幅でも1行が列に収まるように縮める */
  font-weight: 700;
  line-height: 1.7;
}

.top-about__text p + p {
  margin-top: 0.85em;
}

/* 「詳しくみる」：装飾の下、中央から444px右の位置で右寄せ（1440pxで右端が1164px） */
.top-about__more {
  position: relative;
  width: min(62vw, 888px);
  margin: 48px auto 0;
  text-align: right;
  transition: opacity 0.5s, translate 0.5s;
}

@media (max-width: 1023px) {
  .top-about__text {
    font-size: 16px;
    line-height: 2;
  }

  .top-about__text br {
    display: none;
  }
}

@media (max-width: 767px) {
  .top-about {
    padding-block: 90px calc(var(--cloud-h) + 16px);
  }

  .top-about__content {
    align-items: center;
  }

  .top-about__content {
    width: min(100% - var(--gutter) * 2, var(--container));
  }

  /* 600〜767pxはPCと同じ2行の画像を、600px時の大きさ（568px）で固定 */
  .top-about__title img {
    left: auto;
    width: min(100%, 568px);
    margin-inline: auto;
    translate: none;
  }

  .top-about__text {
    margin-top: 28px;
    font-size: 15px;
    text-align: left;
  }

  .top-about__more {
    width: auto;
    margin-top: 28px;
    text-align: center;
  }
}

@media (max-width: 599px) {
  /* 3行のSP用画像に切り替え（HTML側の <source> と同じ幅） */
  .top-about__title img {
    width: min(82%, 300px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-about__content,
  .top-about__more {
    transition: none;
  }
}

/* シガコアレスの仕事紹介 */
.top-work {
  padding-block: 80px calc(var(--cloud-h) + 100px);
}

.top-work__inner {
  --dot-shift: 15px;
  width: min(100% - var(--gutter) * 2, 1280px);
  margin-inline: auto;
}

.top-work__lead {
  margin-top: 32px;
  font-weight: 700;
  line-height: 2;
  text-align: center;
}

.top-work__cards {
  display: grid;
  gap: 28px;
  margin-top: 60px;
}

.work-card {
  --color: var(--c-work-orange);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) min(644px, 54%);
  align-items: center;
  padding: 78px 71px 70px 0;
  border-radius: var(--radius);
  background: var(--color);
  color: var(--c-white);
}

.work-card--green {
  --color: var(--c-work-green);
  --illust-w: 391px;
}

.work-card--blue {
  --color: var(--c-work-blue);
  --illust-w: 362px;
}

/* 10px内側の白線 */
.work-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 3px solid var(--c-white);
  border-radius: 6px;
  pointer-events: none;
}

/* イラストは左の列の中央より少し右（1280px幅のカードで、中心が左端から309px）。大きさはカードごとに違う */
.work-card__illust {
  padding-left: 53px;
  text-align: center;
}

.work-card__illust img {
  width: min(100%, var(--illust-w, 350px));
}

.work-card__title {
  line-height: 1;
}

.work-card__text {
  margin-top: 20px;
  font-weight: 700;
  line-height: 1.5;
}

.work-card__boxes {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.work-card__boxes--2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.work-card__box {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--c-white);
  color: var(--c-text);
  font-weight: 700;
}

.work-card__label {
  display: inline-block;
  padding: 7px 20px;
  border-radius: 999px;
  background: var(--color);
  color: var(--c-white);
  line-height: 1.5;
}

.work-card__list {
  margin-top: 16px;
  line-height: 1.5;
}

.work-card__list li {
  padding-left: 1em;
  text-indent: -1em;
}

.work-card__list li::before {
  content: "・";
}

.work-card__more {
  margin-top: 24px;
  text-align: right;
}

@media (max-width: 1023px) {
  .top-work__head {
    zoom: 0.8;
  }

  .top-work__lead br,
  .work-card__text br {
    display: none;
  }

  .work-card {
    grid-template-columns: minmax(0, 1fr) 60%;
    padding: 56px 40px 52px 0;
  }

  .work-card__illust {
    padding-inline: 24px;
  }

  .work-card__boxes--2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .top-work {
    padding-block: 40px calc(var(--cloud-h) + 24px);
  }

  .top-work__head {
    zoom: 0.55; /* 他の見出しと同じ（1023px以下の 0.8 を上書き） */
  }

  .top-work__lead {
    margin-top: 16px;
    font-size: 15px;
    text-align: left;
  }

  .top-work__cards {
    gap: 20px;
    margin-top: 40px;
  }

  /* イラスト → 見出し → 本文の縦積み */
  .work-card {
    display: block;
    padding: 40px 28px;
  }

  .work-card__illust {
    padding-inline: 0;
  }

  .work-card__illust img {
    width: min(56%, 220px);
  }

  .work-card__title {
    margin-top: 24px;
  }

  /* 見出し3つの文字の大きさを揃える：いちばん幅の広い画像（478px）を列幅いっぱいにしたときの縮尺に合わせる */
  .work-card__title img {
    width: 100%;
  }

  .work-card--blue .work-card__title img {
    width: 82.8%; /* 396 / 478 */
  }

  .work-card__box {
    padding: 18px;
  }

  .work-card__more {
    margin-top: 24px;
    text-align: center;
  }

  .work-card__more .arrow-button {
    gap: 10px;
    padding-left: 14px;
    font-size: 12px;
    white-space: nowrap;
  }
}

/* 360px未満：フロン点検へのボタン（折り返さない）がカードに収まるよう、カードの余白とボタンを詰める */
@media (max-width: 359px) {
  .work-card {
    padding-inline: 20px;
  }

  .work-card__more .arrow-button {
    min-width: 0;
    gap: 6px;
    padding-left: 10px;
    font-size: 11px;
  }
}

/* スクロールで大きくなる要素（仕事紹介のカード、企業紹介動画）
   main.js が画面内の位置に応じて --scale を 0.7 → 1 に変える（画面下端で0.7、上から25%で1） */
.js-grow {
  scale: var(--scale, 1);
  transform-origin: center top;
}

/* 再生ボタン（白丸に青の三角）。親の中央に置く */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--play-size, 16%); /* 親の幅に対する比率（1000pxの動画で160px） */
  translate: -50% -50%;
  transition: scale 0.2s;
}

.play-icon img {
  display: block;
  width: 100%;
}

button:hover > .play-icon {
  scale: 1.08;
}

/* MOVIE：企業紹介動画
   下地は水色。その上の濃い青の面（.top-movie__inner）を、下辺が弧になるよう中身ごと切り抜く
   弧はABOUTの上辺と同じ楕円（1440px幅のとき 横半径758px・縦半径228px → 両端が中央より157px上）で、幅に比例する
   切り抜きは「楕円の中心より上の四角」＋「楕円」の2枚のマスクを重ねて作る */
.top-movie__inner {
  --dot-shift: 15px;
  --arc-rx: 52.64vw;
  --arc-ry: 15.86vw;
  padding-block: 100px 205px;
  -webkit-mask:
    linear-gradient(#000, #000) top / 100% calc(100% - var(--arc-ry) + 1px) no-repeat,
    radial-gradient(ellipse var(--arc-rx) var(--arc-ry) at 50% calc(100% - var(--arc-ry)), #000 calc(100% - 1px), transparent 100%);
  mask:
    linear-gradient(#000, #000) top / 100% calc(100% - var(--arc-ry) + 1px) no-repeat,
    radial-gradient(ellipse var(--arc-rx) var(--arc-ry) at 50% calc(100% - var(--arc-ry)), #000 calc(100% - 1px), transparent 100%);
}

/* 濃い青の面はコンテナに入っていないので、タイトルのドットが画面の端（白枠）に寄らないよう左右に余白を取る */
.top-movie__inner > .page-title {
  padding-inline: var(--gutter);
}

.top-movie__stage {
  position: relative;
  width: min(69.4vw, 1000px);
  margin: 48px auto 0;
}

/* 動画プレーヤー：再生前はサムネイルに青みをかけて再生ボタンを重ねる。押すとその場で再生 */
.player {
  position: relative;
  z-index: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #000;
}

.player__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player__button {
  position: absolute;
  inset: 0;
  display: none;
  padding: 0;
  border: 0;
  background: var(--c-thumb-tint);
  cursor: pointer;
}

.js .player:not(.is-playing) .player__button {
  display: block;
}

/* イラスト：位置と幅は動画（1000 x 562.5）に対する%。紙飛行機に乗ってフヨフヨ浮く
   再生中は外側へ少しずれて、動画の下の操作バー（再生・音量・全画面）を隠さないようにする */
.top-movie__chara {
  position: absolute;
  z-index: 1;
  max-width: none;
  pointer-events: none;
  animation: float 4s ease-in-out infinite alternate;
  transition: margin 0.5s cubic-bezier(0.3, 0, 0.2, 1);
}

.top-movie__chara--left {
  top: 72.4%;
  left: -17.95%;
  width: 35.6%;
}

.top-movie__chara--right {
  top: 77.7%;
  left: 79.1%;
  width: 38.9%;
  animation-duration: 5s;
  animation-delay: -2s;
}

.top-movie__stage:has(.player.is-playing) .top-movie__chara--left {
  margin: 4% 0 0 -7%;
}

.top-movie__stage:has(.player.is-playing) .top-movie__chara--right {
  margin: 4% 0 0 7%;
}

@keyframes float {
  from {
    translate: -4px -14px;
    rotate: -3deg;
  }

  to {
    translate: 4px 14px;
    rotate: 3deg;
  }
}

@media (max-width: 767px) {
  .top-movie__inner {
    padding-block: 40px 150px;
  }

  /* タイトルは zoom: 0.65 で縮むので、余白は縮む前の値で指定して他のセクションと同じ16pxにする */
  .top-movie__inner > .page-title {
    padding-inline: calc(var(--gutter) / 0.65);
  }

  .top-movie__stage {
    width: calc(100% - var(--gutter) * 2);
    margin-top: 24px;
  }

  /* 動画に被せず、下の弧のあたりに置く */
  .top-movie__chara--left {
    top: 96%;
    left: -4%;
    width: 36%;
  }

  .top-movie__chara--right {
    top: 100%;
    left: 58%;
    width: 42%;
  }

  /* 動画と重ならないので、再生中もずらさない */
  .top-movie__stage:has(.player.is-playing) .top-movie__chara {
    margin: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-movie__chara,
  .header__chara {
    animation: none;
  }
}

/* インタビュー */
.top-interview {
  padding-block: 100px;
}

.top-interview__inner {
  --dot-shift: 16px;
  width: min(100% - var(--gutter) * 2, 1280px);
  margin-inline: auto;
}

.top-interview__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.interview-card__thumb {
  --play-size: 19.35%; /* 413pxのサムネイルで80px */
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 413.33 / 270;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #333;
  cursor: pointer;
}

.interview-card__thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.interview-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--c-thumb-tint);
}

.interview-card__thumb .play-icon {
  z-index: 1;
}

/* 青いラベルに「職種・役職｜名前」。名前は社員は「名・姓」のイニシャル＋さん（例：R.Nさん）、代表はフルネーム
   ラベルは1行に保つ：カードの幅（100cqi）が足りないときは文字を小さくする
   一番長い「施工スタッフ（2024年入社）｜R.Nさん」が約18.5文字分なので、少し余裕を見て (カード幅 - 左右の余白) ÷ 18.8 を上限にする */
.interview-card {
  container-type: inline-size;
}

.interview-card__label {
  display: inline-block;
  margin-top: 28px;
  padding: 4px 20px;
  white-space: nowrap;
  border-radius: 999px;
  background: var(--c-blue);
  color: var(--c-white);
  font-family: var(--font-inter);
  font-size: min(18px, (100cqi - 40px) / 18.8);
  font-weight: 700;
  line-height: 1.4;
}

.interview-card__text {
  margin-top: 12px;
  font-family: var(--font-inter);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}

/* 登場：画面に入ったら下からフェードイン。横並び（768px以上）では左から順に0.15秒ずつ遅らせる */
.js .interview-card.js-inview:not(.is-inview) {
  opacity: 0;
}

.interview-card.is-inview {
  animation: fade-up 0.6s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

@media (min-width: 768px) {
  .interview-card.is-inview:nth-child(2) {
    animation-delay: 0.15s;
  }

  .interview-card.is-inview:nth-child(3) {
    animation-delay: 0.3s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .interview-card.is-inview {
    animation: none;
  }
}

/* モーダル：動画の外側（青い幕）を押すと閉じる。開いている間は main.js が html に .is-locked を付けて後ろを止める */
.video-modal {
  width: min(92vw, 1100px, (100vh - 80px) * 16 / 9);
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  background: none;
}

.video-modal::backdrop {
  background: rgba(0, 62, 161, 0.85);
}

.video-modal__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #000;
}

.is-locked {
  overflow: hidden;
}

@media (max-width: 1023px) {
  .top-interview__list {
    gap: 16px;
  }

  .interview-card__label {
    padding-inline: 12px;
    font-size: min(14px, (100cqi - 24px) / 18.8);
  }

  .interview-card__text {
    font-size: 15px;
  }
}

@media (max-width: 767px) {
  .top-interview {
    padding-block: 64px 72px;
  }

  .top-interview__list {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-top: 32px;
  }

  .interview-card__label {
    margin-top: 16px;
    padding-inline: 14px;
    font-size: min(14px, (100cqi - 28px) / 18.8);
  }

  .interview-card__text {
    margin-top: 8px;
    font-size: 15px;
  }
}

/* よくある質問 */
.top-faq {
  padding-block: 100px;
  background: var(--c-white);
}

.top-faq__inner {
  --dot-shift: 16px;
  width: min(100% - var(--gutter) * 2, 1200px);
  margin-inline: auto;
}

.top-faq__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 10px;
  align-items: start;
  margin-top: 48px;
}

.top-faq__column {
  display: grid;
  gap: 16px;
}

.faq-item {
  border-radius: 6px;
  background: var(--c-yellow);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

/* h3 の既定（文字が1.17倍になる）を打ち消して、.faq-item の文字サイズをそのまま使う */
.faq-item__heading {
  font-size: inherit;
}

.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 80px;
  padding: 16px 29px 16px 24px;
  border: 0;
  background: none;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

/* ＋／−：長さ14px・太さ2pxの線2本。開くと縦線が寝て「−」になる */
.faq-item__icon {
  position: relative;
  flex: none;
  width: 14px;
  height: 14px;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  background: currentColor;
  transition: rotate 0.3s;
}

.faq-item__icon::after {
  rotate: 90deg;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon::after {
  rotate: 0deg;
}

/* 回答（開閉の仕組みは 4. Layout の .accordion） */
.faq-item__answer-inner p {
  margin: 0 24px;
  padding: 16px 0 22px;
  border-top: 2px solid var(--c-white);
  font-size: 15px;
  line-height: 1.8;
}

.faq-item__answer-inner a {
  color: var(--c-blue);
  text-underline-offset: 3px;
}

@media (max-width: 767px) {
  .top-faq {
    padding-block: 64px 72px;
  }

  .top-faq__list {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .top-faq__column {
    gap: 12px;
  }

  .faq-item {
    font-size: 14px;
    line-height: 1.5;
  }

  .faq-item__question {
    min-height: 64px;
    padding: 14px 20px 14px 16px;
  }

  .faq-item__answer-inner p {
    margin-inline: 16px;
    padding: 14px 0 18px;
    font-size: inherit;
    line-height: 1.8;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item__icon::after {
    transition: none;
  }
}

/* 8. Page: 会社情報（about/）
   ========================================================================== */

/* Hero
   タイトル画像（吹き出し込み 168px）がドット（146px）より高いので、
   上の余白を詰めてヒーローの高さを他ページと揃える */
.hero--corporate {
  --hero-pt: 139.5px;
  --hero-fix: 6.2px;
  --dot-shift: 7px;
}

.hero--corporate .page-title__dot {
  margin-top: 20px; /* ドットは吹き出しではなく「会社情報」寄りの高さに */
}

/* イラスト：768px以上はタイトルの右横、767px以下はタイトルの右下で雲に少し埋める（6. Hero の .hero--illust） */
.hero__deco--corporate {
  top: 140.5px;
  right: 1.39vw;
  width: min(22.2vw, 320px);
}

@media (max-width: 1023px) {
  .hero--corporate {
    --hero-pt: 89.5px;
  }

  .hero__deco--corporate {
    width: 18vw;
  }
}

@media (max-width: 767px) {
  .hero--corporate {
    --hero-pt: 84px;
    --illust-w: clamp(120px, 34vw, 160px);
    --illust-ratio: 0.91;
  }
}

/* 私たちの思い（レイアウトと装飾は 4. Layout の .flank） */
.corp-message__heading {
  line-height: 1;
}

.corp-message__text {
  margin-top: 32px;
  font-size: 20px;
  font-weight: 700;
  line-height: 2;
}

@media (max-width: 1023px) {
  /* 改行位置を固定せず、本文の列幅で折り返す */
  .corp-message__text {
    font-size: 16px;
    line-height: 2;
    text-wrap: balance;
  }

  .corp-message__text br {
    display: none;
  }
}

@media (max-width: 767px) {
  .corp-message__text {
    margin-top: 24px;
    font-size: 15px;
    text-align: left;
    text-wrap: wrap;
  }
}

/* 会社概要 */
.corp-outline {
  padding-top: 120px;
}

.corp-outline__heading {
  margin-bottom: 32px;
  line-height: 1;
  text-align: center;
}

.info-table {
  margin: 0;
  font-size: 15px;
  line-height: 24px; /* 項目名・内容とも1行24px */
}

.info-table__row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  padding-block: 16px 8px;
  border-bottom: 1px solid rgba(0, 49, 128, 0.3);
}

.info-table__row--map {
  padding-block: 36px 20px;
}

.info-table dt {
  font-size: 16px;
  font-weight: 700;
}

.info-table dd {
  font-family: var(--font-inter);
}

.info-table__map {
  display: block;
  width: 100%;
  height: 162px;
  margin-top: 20px;
  border: 0;
}

@media (max-width: 1023px) {
  .corp-outline {
    padding-top: 64px;
  }
}

@media (max-width: 767px) {
  .corp-outline {
    padding-top: 48px;
  }

  .corp-outline__heading {
    margin-bottom: 16px;
  }

  .info-table {
    line-height: 1.5;
  }

  .info-table__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-block: 14px;
  }

  .info-table__row--map {
    padding-block: 14px 16px;
  }

  .info-table__map {
    height: 200px;
    margin-top: 12px;
  }
}

/* 9. Page: フロン点検
   ========================================================================== */

/* Hero
   タイトル画像（吹き出し＋2行で235px）が背が高いので、上の余白を詰める
   タイトルの上端は白タブ（高さ90px）の27px下。ヒーローの高さは他ページと同じ */
.hero--freon {
  --hero-pt: 107px;
  --hero-fix: -28.3px;
  --dot-shift: -9px;
}

.hero--freon .page-title__dot {
  margin-top: 50px; /* ドットは吹き出しではなく日本語の2行寄りの高さに */
}

/* イラスト：768px以上はタイトルの右横、767px以下はタイトルの右下で雲に少し埋める（6. Hero の .hero--illust） */
.hero__deco--freon {
  top: 140.5px;
  right: 1.39vw;
  width: min(20.8vw, 300px);
}

@media (max-width: 1023px) {
  .hero--freon {
    --hero-pt: 80px;
  }

  .hero__deco--freon {
    width: 18vw;
  }
}

@media (max-width: 767px) {
  .hero--freon {
    --hero-pt: 84px;
    --illust-ratio: 1.08;
  }
}

/* 本文 */
.freon {
  padding-top: 0;
  font-size: 15px;
  font-weight: 700;
}

.freon__lead {
  text-align: center;
}

.freon__block {
  position: relative;
  margin-top: 32px;
}

.freon__lead + .freon__block {
  margin-top: 60px;
}

.freon__heading {
  margin-bottom: 48px;
  line-height: 1;
}

.freon__subheading {
  margin-bottom: 12px;
  line-height: 1;
}

.freon__heading img,
.freon__subheading img {
  display: block;
}

.freon__item + .freon__item {
  margin-top: 40px;
}

/* 対象となる施設 */
.freon__facilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 6px; /* 箱の幅は356px */
  margin-top: 16px;
}

.freon__facilities li {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 8px;
  border-radius: var(--radius);
  background: var(--c-red-pale);
  text-align: center;
  font-size: 16px;
}

.freon__facilities li:nth-child(3n + 2) {
  background: var(--c-green-pale);
}

.freon__facilities li:nth-child(3n) {
  background: var(--c-blue-pale);
}

/* 管理者がやるべき3つのこと */
.freon__duty-illust {
  position: absolute;
  top: 50px;
  right: 50px;
  width: clamp(160px, 20vw, 286px);
  aspect-ratio: 573 / 404;
}

.freon__duty-illust img {
  position: absolute;
  top: 51.1%;
  left: 52.9%;
  width: 52.7%;
  max-width: none;
  translate: -50% -50%;
}

.freon__table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 16px;
  text-align: center;
}

.freon__table th,
.freon__table td {
  height: 40px;
  padding: 8px;
  border: 1px solid rgba(0, 49, 128, 0.3);
}

.freon__table th {
  color: var(--c-blue);
  font-weight: 800;
}

.freon__table .is-red {
  background: var(--c-red-pale);
}

.freon__table .is-green {
  background: var(--c-green-pale);
}

.freon__table .is-blue {
  background: var(--c-blue-pale);
}

/* リスト */
.freon__list li {
  padding-left: 1em;
  text-indent: -1em;
}

.freon__list li::before {
  content: "・";
}

.freon__list strong {
  color: var(--c-blue);
  font-weight: 700;
}

.freon__steps {
  padding-left: 1.5em;
  list-style: decimal;
}

/* よくあるご質問：TOPの .faq-item を1列に並べる */
.freon__faq {
  display: grid;
  gap: 16px;
}

@media (max-width: 1023px) {
  .freon__lead {
    text-align: left;
  }

  .freon__lead br,
  .freon__block > p br {
    display: none;
  }
}

@media (max-width: 767px) {
  .freon {
    font-size: 14px;
  }

  .freon__lead {
    padding-top: 8px;
  }

  .freon__lead + .freon__block {
    margin-top: 32px;
  }

  .freon__block {
    margin-top: 20px;
  }

  .freon__heading {
    margin-bottom: 24px;
  }

  .freon__item + .freon__item {
    margin-top: 32px;
  }

  .freon__faq {
    gap: 12px;
  }

  /* 2列・縦方向に流して、どちらの列も上から赤→緑→青 */
  .freon__facilities {
    grid-template-rows: repeat(3, auto);
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: column;
  }

  .freon__facilities li {
    min-height: 52px;
  }

  .freon__duty-illust {
    position: relative;
    top: auto;
    right: auto;
    width: 180px;
    margin: -8px auto 20px;
  }

  .freon__table {
    font-size: 13px;
  }

  .freon__table th,
  .freon__table td {
    padding: 6px 4px;
  }
}

/* 10. Page: お問い合わせ
   ========================================================================== */

/* Hero：タイトル画像（吹き出し込み 168px）がドットより高いので、会社情報と同じく上の余白を詰める */
.hero--contact {
  --hero-pt: 139.5px;
  --hero-fix: 6.2px;
  --dot-shift: 7px;
}

.hero--contact .page-title__dot {
  margin-top: 20px;
}

/* 紙飛行機：768px以上はタイトルの右横、767px以下はタイトルの右下で雲に少し埋める（6. Hero の .hero--illust） */
.hero__deco--contact {
  top: 174.5px;
  right: 3.5vw;
  width: min(16.5vw, 238px);
}

@media (max-width: 1023px) {
  .hero--contact {
    --hero-pt: 89.5px;
  }

  .hero__deco--contact {
    top: 120px;
    right: 2vw;
  }
}

@media (max-width: 767px) {
  .hero--contact {
    --hero-pt: 84px;
    --illust-w: clamp(120px, 36vw, 160px);
    --illust-ratio: 0.42;
  }
}

/* フォーム */
.contact {
  padding-top: 0;
}

.form {
  color: var(--c-blue);
  font-size: 18px;
  font-weight: 700;
}

.form__group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form__group + .form__group {
  margin-top: 51px;
}

/* 項目名（文字のSVG） */
.form__label {
  display: block;
  margin-bottom: 19px;
  padding: 0;
  line-height: 1;
}

.form__label img {
  display: block;
}

.form__input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 13px 15px; /* フォーカス用の枠線1pxと合わせて、内側の余白は上下14px・左右16px */
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(0, 62, 161, 0.1);
  color: var(--c-text);
  font-family: var(--font-inter);
  font-weight: 400;
  line-height: 22px; /* 余白と合わせて高さ50px */
}

.form__input::placeholder {
  color: #73767b;
}

.form__input:focus-visible {
  border-color: var(--c-blue);
  outline: none;
}

textarea.form__input {
  min-height: 160px;
  line-height: 1.5; /* 複数行になるので行間を広めに */
  resize: vertical;
}

/* チェックボックス：標準の見た目を消して描き直す
   通常は薄い青地に青のチェック、--fill（同意）は青地に白のチェック */
.form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.form__check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  cursor: pointer;
}

.form__check input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 4px;
  background: rgba(0, 62, 161, 0.1) center / 16px 12px no-repeat;
  cursor: pointer;
  appearance: none;
}

.form__check input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12' fill='none'%3E%3Cpath d='M1.5 6l4.5 4.5 8.5-9' stroke='%23003ea1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form__check--fill input:checked {
  background-color: var(--c-blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12' fill='none'%3E%3Cpath d='M1.5 6l4.5 4.5 8.5-9' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form__check input:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

.form__consent {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.form__consent a {
  color: var(--c-cta);
  text-underline-offset: 4px; /* 下線を文字から少し離す */
}

.form__submit {
  margin-top: 32px;
  text-align: center;
}

/* 送信ボタン：右端の白い四角に青の矢印（TOPの矢印ボタンの色違い。矢印は icon-arrow.svg をマスクにして色を付ける）
   ホバーの演出も矢印ボタン（4. Layout の .arrow-button）と同じ：色が反転し、矢印が右へ抜けて左から戻ってくる
   白いカードの上で反転しても形が消えないよう、反転時は内側に青の線を引く。送信完了の「TOPへ戻る」（a）でも使う */
.form__button {
  --arrow: var(--c-blue);
  position: relative;
  width: min(100%, 336px);
  min-height: 64px;
  padding: 8px 56px;
  border: 0;
  border-radius: 8px;
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s;
}

.form__button-icon {
  position: absolute;
  top: 50%;
  right: 8px;
  overflow: hidden;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--c-white);
  translate: 0 -50%;
  transition: background-color 0.25s;
}

.form__button-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--arrow);
  -webkit-mask: url(../img/icon-arrow.svg) center / 19px 14px no-repeat;
  mask: url(../img/icon-arrow.svg) center / 19px 14px no-repeat;
  transition: background-color 0.25s;
}

@media (hover: hover) {
  .form__button.is-left .form__button-icon::before {
    animation: arrow-loop-out 0.45s ease-in-out;
  }

  .form__button:hover {
    --arrow: var(--c-white);
    background: var(--c-white);
    color: var(--c-blue);
    box-shadow: inset 0 0 0 2px var(--c-blue);
  }

  .form__button:hover .form__button-icon {
    background: var(--c-blue);
  }

  .form__button:hover .form__button-icon::before {
    animation: arrow-loop 0.45s ease-in-out;
  }
}

@media (prefers-reduced-motion: reduce) {
  .form__button .form__button-icon::before {
    animation: none !important;
  }
}

@media (max-width: 767px) {
  .form {
    font-size: 16px;
  }

  .form__group + .form__group {
    margin-top: 32px;
  }

  .form__label {
    margin-bottom: 12px;
  }

  .form__label img {
    width: auto;
    height: 17px;
  }

  .form__input {
    font-size: 16px; /* iOSのズーム防止で16px未満にしない */
  }

  .form__consent {
    margin-top: 32px;
  }

  .form__submit {
    margin-top: 28px;
  }
}

/* 送信完了（contact/thanks/）：ヒーローを使わず、黄色の背景の真ん中にカードを置いて1画面に収める
   高さは画面からフッター（白枠より上が43px＋白枠）を引いた分。TOPへ戻るボタンは送信ボタンと同じ見た目を a で使う */
.thanks {
  display: grid;
  align-items: center;
  min-height: calc(100svh - 43px - var(--frame));
  padding: calc(var(--header-h) + 24px) 0 48px;
}

.thanks__card {
  width: min(100%, 800px);
  margin-inline: auto;
  padding-block: 48px;
  color: var(--c-blue);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.thanks__illust {
  display: block;
  width: 160px;
  height: auto;
  margin: 0 auto 16px;
}

.thanks__title {
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.4;
}

.thanks__card p + p {
  margin-top: 1em;
}

.thanks__tel {
  color: inherit;
  text-decoration: none;
}

/* 「10:00〜17:00」の途中で折り返さないよう、受付時間はまとめて次の行へ送る */
.thanks__hours {
  display: inline-block;
}

.thanks__back {
  margin-top: 32px;
}

.thanks__back .form__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

@media (max-width: 767px) {
  .thanks {
    padding: calc(var(--header-h) + 16px) 0 32px;
  }

  .thanks__card {
    padding-block: 32px;
    font-size: 14px;
    text-align: left;
  }

  .thanks__illust {
    width: 120px;
  }

  .thanks__title {
    margin-bottom: 20px;
    font-size: 22px;
    text-align: center;
  }

  /* 改行位置は PC 用なので、SP では成り行きで折り返す */
  .thanks__card br {
    display: none;
  }

  .thanks__back {
    margin-top: 28px;
    text-align: center;
  }
}

/* 11. Page: 採用情報（recruit/）
   ========================================================================== */

/* Hero：タイトル画像（吹き出し込み 165px）がドットより高いので、会社情報と同じく上の余白を詰める */
.hero--recruit {
  --hero-pt: 141.5px;
  --hero-fix: 6.2px;
  --dot-shift: 6px;
}

.hero--recruit .page-title__dot {
  margin-top: 20px;
}

/* イラスト3点をまとめた枠（420 x 230）。中の位置と幅は枠に対する%
   768px以上はタイトルの右横、767px以下はタイトルの右下で雲に少し埋める（6. Hero の .hero--illust） */
.hero__deco--recruit {
  top: 156px;
  right: 2vw;
  width: min(29.2vw, 420px);
  aspect-ratio: 420 / 230;
}

.hero__deco--recruit img,
.hero__deco--privacy img {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--w);
  max-width: none;
  translate: -50% -50%;
  rotate: var(--r, 0deg);
}

@media (max-width: 1023px) {
  .hero--recruit {
    --hero-pt: 89.5px;
  }

  .hero__deco--recruit {
    top: 110px;
    right: 1vw;
    width: 25vw;
  }
}

@media (max-width: 767px) {
  .hero--recruit {
    --hero-pt: 84px;
    --illust-w: clamp(150px, 44vw, 200px);
    --illust-ratio: 0.55;
  }
}

/* 募集要項：区分ごとのカード。見出しを押すと開閉する */
.recruit {
  padding-top: 0;
}

.recruit__item + .recruit__item {
  margin-top: 24px;
}

.recruit__item {
  padding: 0;
}

.recruit__trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 60px;
  border: 0;
  background: none;
  cursor: pointer;
}

.recruit__trigger img {
  display: block;
}

/* ＋／−：青い四角に白の線。開くと縦線が寝て「−」になる */
.recruit__icon {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--c-blue);
}

.recruit__icon::before,
.recruit__icon::after {
  content: "";
  position: absolute;
  top: calc(50% - 1.335px);
  left: calc(50% - 9.335px);
  width: 18.67px;
  height: 2.67px;
  border-radius: 999px;
  background: var(--c-white);
  transition: rotate 0.3s;
}

.recruit__icon::after {
  rotate: 90deg;
}

.recruit__trigger[aria-expanded="true"] .recruit__icon::after {
  rotate: 0deg;
}

/* 表は会社概要と同じ .info-table（行間も同じ1行24px）。項目名を青にして、行の余白を広め・文字を上揃えにする
   項目名と内容は1行目のベースラインで揃える（内容が複数行でも上側で揃い、中央揃えにはならない） */
.recruit__body {
  padding: 0 60px 60px;
}

.recruit__body dt {
  color: var(--c-blue);
}

.recruit__body .info-table__row {
  column-gap: 16px; /* 一番長い項目名「応募・お問い合わせ」が内容とくっつかないように */
  align-items: baseline;
  padding-block: 24px 12px;
}

/* 見出しの帯の下の余白（60px）があるので、1行めの上の余白は付けない */
.recruit__body .info-table__row:first-child {
  padding-top: 0;
}

@media (max-width: 767px) {
  .recruit__item + .recruit__item {
    margin-top: 16px;
  }

  .recruit__trigger {
    padding: 28px 20px;
  }

  .recruit__body {
    padding: 0 20px 28px;
    font-size: 14px;
    line-height: 1.5; /* 会社概要の表と同じ */
  }

  .recruit__body dt {
    font-size: 15px; /* 内容（14px）より少し大きく */
    line-height: inherit;
  }

  .recruit__body .info-table__row,
  .recruit__body .info-table__row:first-child {
    padding-block: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recruit__icon::after {
    transition: none;
  }
}

/* 12. Page: 個人情報保護方針（privacy/）
   ========================================================================== */

/* Hero：タイトル画像（吹き出し込み 165px）がドットより高いので、会社情報と同じく上の余白を詰める */
.hero--privacy {
  --hero-pt: 141.5px;
  --hero-fix: 6.2px;
  --dot-shift: 6px;
}

.hero--privacy .page-title__dot {
  margin-top: 20px;
}

/* イラスト2点をまとめた枠（145 x 146）。中の位置と幅は枠に対する%（指定は採用情報の .hero__deco--recruit img と共通）
   768px以上はタイトルの右横、767px以下はタイトルの右下で雲に少し埋める（6. Hero の .hero--illust） */
.hero__deco--privacy {
  top: 158px;
  right: 6.5vw;
  width: min(10vw, 145px);
  aspect-ratio: 1;
}

@media (max-width: 1023px) {
  .hero--privacy {
    --hero-pt: 89.5px;
  }

  .hero__deco--privacy {
    top: 110px;
    right: 2vw;
  }
}

@media (max-width: 767px) {
  .hero--privacy {
    --hero-pt: 84px;
    --illust-w: clamp(84px, 24vw, 110px);
    --illust-ratio: 1;
  }
}

/* 本文 */
.policy {
  padding-top: 0;
}

.policy__body {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.policy__body h2 {
  margin-top: 32px;
  margin-bottom: 8px;
  color: var(--c-blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.8;
}

.policy__body li {
  padding-left: 1em;
  text-indent: -1em;
}

.policy__body li::before {
  content: "・";
}

.policy__contact {
  margin-top: 1.6em;
}

@media (max-width: 767px) {
  .policy__body {
    font-size: 14px;
    line-height: 1.7;
  }

  .policy__body h2 {
    margin-top: 30px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.55;
    font-size: 15px;
  }
}
