/* ===================================================
   style.css  —  採用LP 雛形スタイル
   ---------------------------------------------------
   1. デザイントークン (:root)
   2. ベース要素
   3. レイアウト共通 (.container / .section)
   4. コンポーネント (.btn / .card / .stat など)
   5. 各セクション個別
   6. ヘッダー / フッター
   7. レスポンシブ
   =================================================== */

/* 1. デザイントークン ------------------------------- */
:root {
  /* カラー（本番でブランドカラーに差し替え） */
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-primary: #0b5cab;
  --color-primary-dark: #08417a;
  --color-border: #e0e4e8;

  /* タイポグラフィ */
  --font-base: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN",
    "Hiragino Sans", Meiryo, sans-serif;
  --fs-h1: clamp(32px, 5vw, 3.5rem);
  --fs-h2: clamp(24px, 3.5vw, 2.25rem);
  --fs-h3: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* レイアウト */
  --container-max: 70rem;
  --container-pad: 1.5rem;
  --section-py: clamp(4rem, 10vw, 7.5rem);
  --header-h: 4.5rem;

  --radius: 0.5rem;
  --transition: 0.25s ease;

  /* 設計基準幅（この幅で 1rem = 16px。以降は画面幅に完全比例で拡大縮小） */
  --design-w: 1280;
}

/* ルート文字サイズを画面幅に比例させる → rem 基準のサイズ・余白・画像が
   すべて同じ比率で伸び縮みする（＝サイト全体が画面幅に合わせてズーム）。
   900px 以下はスマホ／タブレット用のブレークポイント設計に任せて 16px 固定。 */
html {
  font-size: calc(100vw / var(--design-w) * 16);
}
@media (max-width: 900px) {
  html { font-size: 16px; }
}

/* 2. ベース要素 ------------------------------------- */
body {
  font-family: var(--font-base);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-bg);
}

/* モーダル（<dialog>）表示中は背面ページのスクロールを止める。
   .modal--story 側に overflow:auto の専用スクロール領域があるため、
   背面は html/body 側を固定するだけでよい。 */
html.modal-open,
html.modal-open body {
  overflow: hidden;
  height: 100%;
}

/* 3. レイアウト共通 --------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.section {
  padding-block: var(--section-py);
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__head {
  text-align: center;
  margin-bottom: 3rem;
}

.section__label {
  font-size: var(--fs-small);
  letter-spacing: 0.2em;
  color: var(--color-primary);
  font-weight: 700;
}

.section__title {
  font-size: var(--fs-h2);
  margin-top: 0.5rem;
}

/* 4. コンポーネント -------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  transition: background var(--transition), color var(--transition),
    transform var(--transition);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--ghost {
  border: 2px solid currentColor;
  color: var(--color-primary);
}

.btn--ghost:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--lg {
  padding: 1.125rem 3rem;
  font-size: 1.125rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.25rem, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.75rem;
}

.card--interview img {
  border-radius: var(--radius);
  margin-bottom: 1rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.stat__num {
  font-size: clamp(40px, 6vw, 4rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat__unit {
  font-size: 1rem;
  margin-left: 0.25rem;
  color: var(--color-primary);
}

.stat__label {
  margin-top: 0.5rem;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* 5. 各セクション個別 ------------------------------ */

/* ===== ファーストビュー（スクラップブック） ===== */
/* 集英社の採用サイトのように、写真が時間差で現れる。         */
/* 出現は純粋な CSS アニメーション（読み込み時に自動再生）。   */

.fv {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  /* .fv__catch を次セクションへはみ出させるため clip しない。
     タイルのはみ出しは .fv__stage 側の overflow:hidden で処理。 */
  overflow: visible;
}

/* 写真を重ねて貼ったコラージュ（新聞の写真面付け／Photoshop のグリッドコラージュ風）。
   ・各タイルは position:absolute で配置。CSS Grid は使わない。
   ・位置とサイズは 1920×1080 の方眼上でピクセル設計し、赤枠の参考画像どおりに
     % 換算して指定（% = 設計px ÷ 実寸）。写真同士は端を少し重ねる。
   ・white のフチ / padding / box-shadow / 回転 / 拡大は一切付けない（写真は水平垂直）。
   ・前後関係は --z（z-index）で決める。
   ・参考画像どおり、ところどころ写真の間に白地（.fv の #fff）が見える。 */
.fv__stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: transparent; /* すき間は .fv の #fff がそのまま見える */
}

/* --- 写真タイル（絶対配置。top/left/width/height を個別指定） --- */
.fv__tile {
  position: absolute;
  left: var(--l, 0);
  top: var(--t, 0);
  width: var(--w, 25%);
  height: var(--h, 25%);
  margin: 0;
  padding: 0;
  border: 0;
  object-fit: cover;
  background: #eef1f4;
  z-index: var(--z, 1);
  /* 出現は不透明度のみ（位置・向き・大きさは動かさない） */
  animation: fvPop 0.7s ease both;
  animation-delay: var(--d, 0s);
  will-change: opacity;
}

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

/* --- コピー（行ごとに白背景。左端は画面端から、右端は文字数ででこぼこ） --- */
.fv__copy {
  position: absolute;
  left: 0;
  top: 24%;
  z-index: 30;
  margin: 0;
  padding: 0;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* 各行の白背景を文字幅ぴったりに（右端でこぼこ） */
  font-size: clamp(17px, 1.8vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  animation: fvRight 0.9s ease both;
  animation-delay: var(--d, 0s);
}

.fv__copy-line {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(0.1875rem);
  /* 左は画面端から少しゆとり、右は文字のすぐ後ろまで */
  padding: 0.4em clamp(1rem, 2.5vw, 2rem) 0.4em clamp(1.25rem, 4vw, 4.375rem);
  color: var(--color-text);
}
.fv__copy-line--accent {
  color: var(--color-primary);
}
.fv__copy-line--box {
  padding: 0.1em 0.4em;
}

@keyframes fvRight {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* --- 大キャッチコピー（右端・一回り小さく・次セクションへ約1/5はみ出す） --- */
.fv__catch {
  position: absolute;
  right: 0;
  /* マイナス bottom で FV の下端より下へ。ロゴ高さ ≒ 幅/3.7、その約1/5ぶん下げる */
  bottom: clamp(-3.8rem, -3.4vw, -1.8rem);
  width: clamp(17rem, 58vw, 70rem);
  height: auto;
  z-index: 31;
  animation: fvCatchIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--d, 0s);
}

@keyframes fvCatchIn {
  from { opacity: 0; transform: translateY(1.5rem) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* --- スマホ：面付けを 2 列 × 6 段のベタ組みに組み替える（4 枚は非表示） ---
   ※ デスクトップの座標はインライン style で入れているため、
     ここで上書きするには custom property にも !important が要る。 */
@media (max-width: 640px) {
  .fv {
    min-height: 84vh;
  }

  .fv__tile {
    width: calc(var(--w, 50%) + 1px);
    height: calc(var(--h, 16.667%) + 1px);
  }

  .fv__tile:nth-child(3),    /* env-attach    */
  .fv__tile:nth-child(8),    /* mv_sitemap_sp */
  .fv__tile:nth-child(11),   /* recycle       */
  .fv__tile:nth-child(15) {  /* top_mv_sp3    */
    display: none;
  }

  /* PC 版と同じく、大きさと形の違う写真を重ねて貼ったような非対称の面付けに組み替える */
  /* PC 版と同じく、タイル同士が実際に重なり合う（境界がぴったり接するだけでなく
     互いの領域に食い込む）ように配置し、写真を重ねて貼ったコラージュ感を出す */
  .fv__tile:nth-child(1)  { --l: 0    !important; --t: 0    !important; --w: 60%  !important; --h: 20%  !important; } /* const-cranes   */
  .fv__tile:nth-child(2)  { --l: 56%  !important; --t: 0    !important; --w: 44%  !important; --h: 18%  !important; } /* hq（cranesと4%重なる）*/
  .fv__tile:nth-child(4)  { --l: 0    !important; --t: 18%  !important; --w: 38%  !important; --h: 18%  !important; } /* const-steel    */
  .fv__tile:nth-child(5)  { --l: 32%  !important; --t: 16%  !important; --w: 36%  !important; --h: 36%  !important; } /* crowd（周囲と重なる縦長タイル）*/
  .fv__tile:nth-child(6)  { --l: 64%  !important; --t: 18%  !important; --w: 36%  !important; --h: 18%  !important; } /* const-training（crowdと重なる）*/
  .fv__tile:nth-child(7)  { --l: 64%  !important; --t: 34%  !important; --w: 36%  !important; --h: 18%  !important; } /* family（crowdと重なる）*/
  .fv__tile:nth-child(9)  { --l: 0    !important; --t: 34%  !important; --w: 34%  !important; --h: 18%  !important; } /* people-inspect */
  .fv__tile:nth-child(10) { --l: 0    !important; --t: 50%  !important; --w: 36%  !important; --h: 20%  !important; } /* people-talk    */
  .fv__tile:nth-child(12) { --l: 34%  !important; --t: 52%  !important; --w: 66%  !important; --h: 20%  !important; } /* people-team    */
  .fv__tile:nth-child(13) { --l: 0    !important; --t: 68%  !important; --w: 30%  !important; --h: 32%  !important; } /* env-shredder   */
  .fv__tile:nth-child(14) { --l: 27%  !important; --t: 70%  !important; --w: 45%  !important; --h: 30%  !important; } /* const-truck（shredderと重なる）*/
  .fv__tile:nth-child(16) { --l: 66%  !important; --t: 72%  !important; --w: 34%  !important; --h: 28%  !important; } /* people-office（truckと重なる）*/

  .fv__copy {
    left: 0;
    right: auto;
    top: calc(var(--header-h) + 1.5rem);
    bottom: auto;
    font-size: 1.15rem;
  }
  .fv__copy-line {
    padding: 0.4em 0.9rem 0.4em 0.9rem;
  }

  .fv__catch {
    left: auto;
    right: 0;
    bottom: -1.5rem;
    top: auto;
    width: 98%;
    max-width: 98%;
  }
}

/* --- モーション低減 / 静止表示 --- */
@media (prefers-reduced-motion: reduce) {
  .fv__tile {
    animation: none !important;
    opacity: 1 !important;
  }
  .fv__copy,
  .fv__catch {
    animation: none !important;
    opacity: 1 !important;
  }
}

.fv-static .fv__tile {
  animation: none !important;
  opacity: 1 !important;
}
.fv-static .fv__copy,
.fv-static .fv__catch {
  animation: none !important;
  opacity: 1 !important;
}

/* ===== コンセプト（FV からそのまま続くコラージュ＋中央の白いコピー） ===== */
/* FV と同じ“重ねて貼った”コラージュを下へ continue させ、境目の線をなくす。
   ・.concept は FV とわずかに重ねて配置（margin-top マイナス）。
   ・写真は FV 同様 position:absolute・水平垂直・フチ/影/回転なし。
   ・上端は写真で埋めて FV と地続きに、中央は余白をあけてコピーを載せる。 */
.concept {
  position: relative;
  margin-top: -2vh;      /* FV の最下段とわずかに重ね、区切り線を消す */
  background: #fff;
  overflow: hidden;
  z-index: 1;            /* FV の上に載せて継ぎ目を隠す */
}

.concept__grid {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 1250;   /* 短め＝カード下は写真を短い帯にとどめ、すぐ次セクションへ */
}

.concept__grid img {
  position: absolute;
  left: var(--l, 0);
  top: var(--t, 0);
  width: var(--w, 16%);
  height: var(--h, auto);    /* PC は auto で元写真の比率を維持。SP は --h を指定してタイル化 */
  margin: 0;
  border: 0;
  background: #eef1f4;
  z-index: var(--z, 1);
  /* 次セクションの写真は最初から表示（スクロールでのフェードインはしない） */
}

/* 中央より上の白いコピー（写真の集まる前面に載せる） */
.concept__card {
  position: absolute;
  top: 45%;
  left: 50%;
  width: min(36.25rem, 88vw);
  background: #fff;
  padding: clamp(1.625rem, 4vw, 3rem) clamp(1.375rem, 4.5vw, 3.25rem);
  box-shadow:
    0 0.25rem 0.875rem -6px rgba(20, 30, 45, 0.22),
    0 2.125rem 4.375rem -24px rgba(20, 30, 45, 0.5);
  text-align: center;
  z-index: 20;                 /* すべての写真タイルより前面 */
  opacity: 0;
  transform: translate(-50%, calc(-50% + 1rem));
  transition: opacity 0.9s ease 0.2s, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.concept.is-visible .concept__card {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.concept__lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1.75rem;
  font-weight: 700;
  font-size: clamp(16px, 1.9vw, 1.2rem);
  line-height: 1.48;
}

.concept__lead span {
  width: fit-content;
  border: 1.5px solid var(--color-text);
  padding: 0.5rem 0.75rem;
}

.concept__body {
  margin: 0;
  font-size: clamp(16px, 1.8vw, 1.1rem);
  line-height: 1.96;
  color: var(--color-text);
}

.concept__body + .concept__body {
  margin-top: 1.25rem;
}

.concept__body b {
  font-size: clamp(16px, 1.9vw, 1.2rem);
  font-weight: 700;
  border: 1px solid var(--color-text);
  padding: 1px 0.5rem;
  margin: 0 2px;
}

.concept__question {
  font-size: clamp(16px, 1.9vw, 1.2rem);
  font-weight: 700;
}

.concept__answer {
  color: var(--color-text);
}

/* --- タブレット：方眼を少し詰める --- */
@media (max-width: 900px) {
  .concept__grid { aspect-ratio: 1920 / 2200; }

  /* 文字サイズの下限を16pxに（本文とリード文で少しジャンプ率をつける） */
  .concept__body { font-size: 1rem; }
  .concept__lead,
  .concept__body b,
  .concept__question { font-size: 1.0625rem; }
}

/* --- スマホ：PC と同じく写真はトリミングせず height:auto で元の比率のまま、
   左右 2 本の縦積みコラム（大きさ・形の異なる写真）＋上下の帯で面付けし、
   中央のカードを写真の上に重ねて載せる（PC のレイアウト思想をそのまま踏襲）。
   各写真の実ピクセル比率から --t を逆算し、縦方向の隙間・重なりが出ないように配置。 --- */
@media (max-width: 640px) {
  .concept { margin-top: -1vh; }

  .concept__grid {
    /* カード（高さ約 31rem）の下 3/4 あたりまで写真が続くよう、あえて縦に伸ばしている。
       写真同士の隙間が空くのは意図どおり。 */
    aspect-ratio: 100 / 163.35;
  }

  .concept__grid img:nth-child(2),   /* people-phone       */
  .concept__grid img:nth-child(3),   /* welfare-warehouse  */
  .concept__grid img:nth-child(6),   /* const-excavator    */
  .concept__grid img:nth-child(8),   /* env-attach-2       */
  .concept__grid img:nth-child(11),  /* const-cranes-2     */
  .concept__grid img:nth-child(12) { /* const-steel-2      */
    display: none;
  }

  /* 左コラム：env-crusher → welfare-maint を縦積み */
  .concept__grid img:nth-child(1) { --l: 0%  !important; --t: 0%     !important; --w: 56% !important; } /* env-crusher */
  .concept__grid img:nth-child(5) { --l: 0%  !important; --t: 26.34% !important; --w: 56% !important; } /* welfare-maint */

  /* 右コラム：site → people-test を縦積み */
  .concept__grid img:nth-child(4) { --l: 60% !important; --t: 0%     !important; --w: 40% !important; } /* site */
  .concept__grid img:nth-child(7) { --l: 60% !important; --t: 44.06% !important; --w: 40% !important; } /* people-test */

  /* 最下段：const-training-2 / people-team-2 を横並びで一番下に */
  .concept__grid img:nth-child(9)  { --l: 0%  !important; --t: 72.46% !important; --w: 48% !important; } /* const-training-2 */
  .concept__grid img:nth-child(10) { --l: 52% !important; --t: 72.46% !important; --w: 48% !important; } /* people-team-2 */

  /* スマホは絶対配置をやめ通常フローに戻す。カードの高さが折り返しで変わっても
     （文字数や端末フォントの違いで行数が変わっても）次セクションに食い込んだり
     はみ出しをクリップされたりしないようにするため。写真への重なりはマイナス
     margin-top で見た目だけ演出し、カード下の余白は margin-bottom で確保する。 */
  .concept__card,
  .fv-static .concept__card,
  .concept.is-visible .concept__card {
    position: relative;   /* static だと z-index が効かず写真の下に隠れるため relative を維持 */
    left: auto;
    top: auto;
    transform: none;
    margin: -26.45rem auto 5rem;
    width: min(84vw, 24rem);
    padding: 3rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .concept__grid img {
    opacity: 1 !important;
    transition: none !important;
    transform: none !important;
  }
  .concept__card {
    opacity: 1 !important;
    transition: none !important;
  }
}

.fv-static .concept__grid img {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.fv-static .concept__card {
  opacity: 1 !important;
  transition: none !important;
}

/* デスクトップだけ中央寄せの translate を効かせる（スマホは static 配置なので不要） */
@media (min-width: 641px) {
  .fv-static .concept__card,
  .concept.is-visible .concept__card {
    transform: translate(-50%, -50%) !important;
  }
}
@media (min-width: 641px) and (prefers-reduced-motion: reduce) {
  .concept__card { transform: translate(-50%, -50%) !important; }
}

/* 募集要項テーブル */
.req-table th,
.req-table td {
  border: 1px solid var(--color-border);
  padding: 1rem;
  text-align: left;
  vertical-align: top;
}

.req-table th {
  width: 12.5rem;
  background: var(--color-bg-alt);
  font-weight: 700;
}

/* FAQ */
.faq-list {
  max-width: 50rem;
  margin-inline: auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
}

.faq-item dt {
  font-weight: 700;
  position: relative;
  padding-left: 1.75rem;
}

.faq-item dt::before {
  content: "Q";
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.faq-item dd {
  margin-top: 0.5rem;
  padding-left: 1.75rem;
  color: var(--color-text-muted);
}

/* エントリー */
.entry {
  padding-block: var(--section-py);
  background: var(--color-primary);
  color: #fff;
  text-align: center;
}

.entry__title {
  font-size: var(--fs-h2);
  letter-spacing: 0.2em;
}

.entry__text {
  margin: 1rem 0 2rem;
}

.entry .btn--primary {
  background: #fff;
  color: var(--color-primary);
}

.entry .btn--primary:hover {
  background: var(--color-bg-alt);
}

/* 6. ヘッダー / フッター --------------------------- */
/* ヘッダーバー自体は背景なし。ロゴと箱ボタンだけが FV の上に載る。 */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: transparent;
}

.site-header__inner {
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 0 clamp(1rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header__logo {
  display: inline-flex;
  flex: 0 0 auto;
}
.site-header__logo img {
  width: auto;
  height: 1.75rem;   /* ルート文字サイズ＝画面幅に比例 */
}

/* 右側：外部サイトへのリンク。2つとも独立した白い箱ボタン（罫線でつながない） */
.site-header__links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.4vw, 1.25rem);
  padding-right: clamp(1rem, 3vw, 2.5rem);
  height: 100%;
}
.site-header__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  background: #fff;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text);
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.site-header__link:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary);
}
.site-header__link-icon {
  width: 0.8rem;
  height: 0.8rem;
  flex-shrink: 0;
}

/* --- リョーキで働く、とは（外部リンクCTA） --- */
.work-cta-wrap {
  display: flex;
  justify-content: center;
  padding: clamp(2rem, 6vw, 3.5rem) 1.5rem;
  background: #000;
}
@media (min-width: 901px) {
  .work-cta-wrap {
    padding-top: 0;
  }
}
.work-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: min(100%, 18.75rem);
  padding: 1.125rem 2.25rem;
  background: #173089;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.125rem);
  text-align: center;
  letter-spacing: 0.02em;
}
.more__inner .work-cta {
  margin-top: clamp(0.5rem, 2vw, 1rem);
}
.work-cta:hover {
  background: #0f2160;
}
.work-cta__icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

.site-footer {
  background: #000;
  color: #fff;
  padding-block: 3rem;
  text-align: center;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  margin: 0 0 1.25rem;
  font-size: var(--fs-small);
}

.site-footer__links a {
  color: #fff;
  padding: 0 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  line-height: 1;
}

.site-footer__links a:last-child {
  border-right: none;
}

.site-footer__links a:hover {
  text-decoration: underline;
}

.site-footer__copy {
  font-size: var(--fs-small);
  color: #999;
}

/* 7. レスポンシブ --------------------------------- */
@media (max-width: 640px) {
  /* ヘッダーのリンクをコンパクトに */
  .site-header__links {
    gap: 0.9rem;
    padding-right: 0.9rem;
  }
  .site-header__link {
    padding: 0.5rem 0.9rem;
    font-size: 0.72rem;
    letter-spacing: 0;
  }
}

/* ===================================================
   8. コンセプトサイト後半（そこにいるリョーキ〜フッター）
   =================================================== */

.section-pad { padding-block: clamp(3rem, 10vh, 7rem); }

/* スクロールで出現 */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
.fv-static [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ===== セクション区間 =====
   #soko / #liken は通常フローで上から下へ流れる。#liken は次のセクションに
   覆いかぶさらず、スクロールで画面に入ったタイミングでふわっとフェードインする。 */

.stack {
  position: relative;
}

.soko {
  position: relative;
  background: #fff;
  z-index: 2;
}

.liken {
  background: #fff;
}

/* #liken はスライドさせず、フェードのみでふわっと現れる */
.liken[data-reveal] {
  transform: none;
  transition: opacity 1.2s ease;
}

/* 見出し（「そこ」を枠囲み） */
.lead-head {
  margin: 0 0 2.125rem;
  font-size: clamp(22.4px, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.lead-head__box {
  display: inline-block;
  border: 1.5px solid var(--color-text);
  padding: 0.1875rem 0.75rem;
  margin-right: 0.375rem;
}

/* スマホ版のみ：吹き出しセクションの先頭に出す見出し（PC では非表示） */
.soko__bubbles-head { display: none; }

/* --- そこ にいるリョーキ --- */
.soko { padding-top: clamp(6rem, 20vh, 14rem); padding-bottom: clamp(6rem, 20vh, 14rem); }
.soko__inner {
  position: relative;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: start;
}
.soko__text { max-width: 32.5rem; order: 2; justify-self: center; }
.soko__body {
  margin: 0 0 1.375rem;
  line-height: 1.88;
  font-size: clamp(13.6px, 1.5vw, 0.92rem);
}
.soko__body--em {
  margin-bottom: 0;
  font-weight: 700;
  font-size: clamp(16px, 1.9vw, 1.2rem);
}

.soko__set {
  margin: 0 0 1.375rem;
}
.soko__set--build .soko__set-label { background-color: #f5a637; }
.soko__set--env .soko__set-label { background-color: #69be8d; }
.soko__set--welfare .soko__set-label { background-color: #7fcef4; }
.soko__set--build .soko__set-line { border-color: #f5a637; }
.soko__set--env .soko__set-line { border-color: #69be8d; }
.soko__set--welfare .soko__set-line { border-color: #7fcef4; }
.soko__set-line {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.4em 0.9em;
  border: 1px solid;
  line-height: 1.7;
  font-size: clamp(13.6px, 1.5vw, 0.92rem);
  color: var(--color-text);
}
.soko__set-label {
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 0.5em 0.9em;
  font-size: clamp(16.8px, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}
/* ラベルの右横に品物の写真（背景透過）を浮かせて添える仕組みだったが、
   PC・スマホともこの写真は吹き出し側（.soko__bubble-photo）に統一したため、
   ここでは常に非表示にする（.soko__set-row 自体はレイアウト上そのまま残す）。 */
.soko__set-row {
  position: relative;
  width: fit-content;
}
.soko__set-photo {
  display: none;
}
.soko__set--env .soko__set-photo {
  left: auto;
  right: 100%;
  margin-left: 0;
  margin-right: clamp(0.75rem, 2.5vw, 1.5rem);
  transform: rotate(-10deg);
}
.soko__set--welfare .soko__set-photo { transform: rotate(10deg); }

/* 吹き出し3つ：右カラムに sticky で留め、左の文章だけがスクロールする */
.soko__bubbles-wrap {
  position: sticky;
  top: clamp(3rem, 8vh, 5.5rem);
  order: 1;
  justify-self: center;
  width: min(100%, 31.25rem);
  aspect-ratio: 5 / 4;
}
.soko__bubbles {
  position: absolute;
  inset: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 各吹き出し（ボタン）自身の子要素として、その「吹き出し口」の先端に
   品物の写真を添える。ボタンの子にすることで、ホバー拡大（scale）や
   ウィグルアニメーションに写真も一緒に追従する。位置は各吹き出しSVGの
   しっぽの座標を、そのボタン自身の幅・高さに対する割合に換算したもの
   （比率なので、PC・スマホどちらのサイズでも同じ見え方になる）。 */
.soko__bubble-photo {
  position: absolute;
  width: auto;
  height: clamp(4rem, 8vw, 5.75rem);
  pointer-events: none;
  transform: translate(-50%, -20%);
}
.soko__bubble-photo--build {
  left: 15%;
  top: 88%;
  transform: translate(-70%, -14%) rotate(-20deg);
}
.soko__bubble-photo--env {
  left: 98%;
  top: 86%;
  transform: translate(-16%, -14%) rotate(22deg);
}
.soko__bubble-photo--welfare {
  left: 62%;
  top: 96%;
  transform: translate(-30%, -14%) rotate(-8deg);
}
/* .bubble は <button>：ボタンの見た目をリセットし、位置指定だけ残す */
.soko__bubbles .bubble {
  position: absolute;
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: bubbleWiggle 2.4s steps(1, end) infinite;
  transition: scale 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.soko__bubbles .bubble--env { animation-delay: 0.8s; }
.soko__bubbles .bubble--welfare { animation-delay: 1.6s; }
.soko__bubbles .bubble:hover { animation-play-state: paused; scale: 1.12; z-index: 10; }

@keyframes bubbleWiggle {
  0%, 100% { rotate: 0deg; }
  33% { rotate: 3deg; }
  66% { rotate: -3deg; }
}

@media (prefers-reduced-motion: reduce) {
  .soko__bubbles .bubble { animation: none; }
}
.soko__bubbles .bubble:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 0.375rem;
}
.bubble__shape {
  display: block;
  width: 100%;
  height: auto;
  color: var(--color-text);
  transition: color var(--transition);
}
.bubble__label {
  position: absolute;
  left: 50%;
  width: 84%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-size: clamp(12.48px, 1.35vw, 0.94rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  white-space: nowrap;
  transition: color var(--transition);
}
.bubble__click {
  position: absolute;
  width: clamp(2.625rem, 5vw, 3.875rem);
  height: auto;
}

/* 建設：角丸の吹き出し（359×217）。頭部の中央にラベル、左上に click */
.bubble--build { left: 2.5%; top: 2%; width: 57%; }
.bubble--build .bubble__label { top: 41%; }
.bubble--build .bubble__click { top: -12%; left: 8%; transform: rotate(-8deg); }
.bubble--build:hover .bubble__shape { color: #f5a637; }
.bubble--build:hover .bubble__label { color: #f5a637; }

/* 環境：ほぼ円形（287×287）。中央にラベル、左上に click */
.bubble--env { left: 56.5%; top: 27%; width: 41%; }
.bubble--env .bubble__label { top: 47%; }
.bubble--env .bubble__click { top: -9%; left: 22%; transform: rotate(-6deg); }
.bubble--env:hover .bubble__shape { color: #69be8d; }
.bubble--env:hover .bubble__label { color: #69be8d; }

/* 福祉：不定形ポリゴン（313×239）。やや上にラベル、右上に click */
.bubble--welfare { left: 2.5%; top: 59%; width: 54%; }
.bubble--welfare .bubble__label { top: 44%; }
.bubble--welfare .bubble__click { top: -2%; right: 12%; transform: rotate(18deg); }
.bubble--welfare:hover .bubble__shape { color: #7fcef4; }
.bubble--welfare:hover .bubble__label { color: #7fcef4; }

/* --- 吹き出しモーダル（<dialog>）：フルスクリーン・白地＋ガイド線 --- */
.modal {
  padding: 0;
  border: 0;
  background: transparent;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.55); }

.modal--story {
  --guide: #141414;                 /* ガイド線（黒） */
  --gx1: 3vw;                       /* 写真の左端＝左ガイド線 */
  --gx2: 44vw;                      /* 写真の右端＝ガイド線 */
  --gx3: 49vw;                      /* 本文カラムの左（ガター）＝ガイド線 */
  --gx4: calc(100vw - var(--gx1));  /* 本文カラムの右＝ガイド線 */
  --gy1: 5vh;                       /* 上ガイド線（上端からの距離） */
  --gy2: 5vh;                       /* 下ガイド線（下端からの距離） */
  --nudge: 2px;                     /* 写真をほんのわずかにずらし、際の線を隠さないようにする */
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  margin: 0;
  overflow: auto;
  background-color: #fff;
  color: var(--color-text);
  /* 写真・本文カラムの端に沿う黒い罫線
     縦4本＝写真の左右／本文カラムの左右、横2本＝上下ガイド線を画面の端から端まで横断 */
  background-image:
    linear-gradient(var(--guide) 0 0),
    linear-gradient(var(--guide) 0 0),
    linear-gradient(var(--guide) 0 0),
    linear-gradient(var(--guide) 0 0),
    linear-gradient(var(--guide) 0 0),
    linear-gradient(var(--guide) 0 0);
  background-repeat: no-repeat;
  background-size:
    1px 100%, 1px 100%, 1px 100%, 1px 100%,
    100% 1px, 100% 1px;
  background-position:
    left var(--gx1) top 0,
    left var(--gx2) top 0,
    left var(--gx3) top 0,
    left var(--gx4) top 0,
    left 0 top var(--gy1),
    left 0 bottom var(--gy2);
  /* 縦4本（写真・本文カラムの縁）は画面に固定。横2本（原稿用紙の上下の罫線）だけは
     中身と一緒にスクロールさせ、上の線はスクロールすると隠れ、下の線はスクロール
     しないと見えないようにする。 */
  background-attachment: scroll, scroll, scroll, scroll, local, local;
}
.modal--story[open] { animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes modalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.modal--story .modal__inner {
  position: relative;
  width: 100%;
  min-height: 100%;
  padding: 0;
}

/* 閉じる（右上・黒ボックス。右端ガイド線・上ガイド線にそろえる） */
.modal--story .modal__close {
  position: absolute;
  top: var(--gy1);
  right: var(--gx1);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.625rem;
  border: 0;
  background: #111;
  color: #fff;
  font-weight: 700;
  font-size: clamp(14.4px, 1.4vw, 1.05rem);
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: opacity var(--transition);
}
.modal--story .modal__close span { font-size: 1.25em; line-height: 1; }
.modal--story .modal__close:hover { opacity: 0.78; }
.modal--story .modal__close:focus { outline: none; }
.modal--story .modal__close:focus-visible { outline: 2px solid #111; outline-offset: 0.25rem; }

/* 左の大きな写真（749×959）。写真列のガイド線のすぐ内側に --nudge（2px）だけずらして置き、
   際にできるごく細いすき間で下の罫線をそのまま見せる（隙間があるようには見えない程度） */
.modal--story .modal__photo {
  position: absolute;
  left: calc(var(--gx1) + var(--nudge));
  top: calc(var(--gy1) + var(--nudge));
  width: calc(var(--gx2) - var(--gx1) - var(--nudge) * 2);
  height: calc(100dvh - var(--gy1) - var(--gy2) - var(--nudge) * 2);
  object-fit: cover;
}

/* 本文ブロック（本文カラム左ガイド線の少し内側・上ガイド線から下げて） */
.modal--story .modal__body-wrap {
  position: absolute;
  z-index: 2;   /* 下部の sub写真・筆文字コピーより前面に出し、文章が隠れないようにする */
  left: calc(var(--gx3) + 2.5vw);
  top: calc(var(--gy1) + 12vh);
  width: 30vw;
}
#modal-welfare .modal__body-wrap {
  top: calc(var(--gy1) + 8vh);
}
.modal--story .modal__heading {
  margin: 0 0 2rem;
  font-size: clamp(24px, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.32;
}
.modal--story .modal__lead {
  margin: 0 0 1em;
  font-weight: 700;
  line-height: 1.6;
  /* min/max は px 固定（rem だと 900〜1280px の間で html 側のフルイド縮小の
     影響を受け、900px 直前だけ最小値を下回って見える段差が出るため） */
  font-size: clamp(16px, 1.2vw, 18px);
  color: var(--color-text);
}
.modal--story .modal__text {
  margin: 0 0 0.9em;
  line-height: 1.6;
  font-size: clamp(14px, 1.05vw, 16px);
  color: var(--color-text-muted);
}
.modal--story .modal__text--em {
  margin-bottom: 0;
  color: var(--color-text);
  font-weight: 700;
}

/* 右下の切り抜き写真（機械のクラスターなど）。本文カラム右ガイド線にそろえる。
   縦長の合成画像（modal_3_sub）でも崩れないよう幅・高さの両方をキャップ */
.modal--story .modal__sub {
  position: absolute;
  right: calc(var(--gx1) - 1vw);
  bottom: 22vh;
  width: auto;
  max-width: 24vw;
  height: auto;
  max-height: 40vh;
}

/* 右下の筆文字コピー（685×184）。本文カラム右ガイド線にそろえ、下ガイド線の少し上 */
.modal--story .modal__copy {
  position: absolute;
  right: calc(var(--gx1) - 1rem);
  bottom: 2.5vh;
  width: 34vw;
  height: auto;
}

@media (prefers-reduced-motion: reduce) {
  .modal--story[open] { animation: none; }
}

/* スマホ：縦積みにしつつ、PC 版と同じ「黒い罫線で囲む」デザイン言語を踏襲する。
   左右2本・上下2本の罫線でスクロール全体を額縁のように囲み、閉じるボタンは
   PC 同様その罫線の交点（右上）に重ねる。sub写真／筆文字コピーは PC と同じく
   本文カラムの右端（＝右の罫線）にそろえる（中央寄せにしない）。 */
@media (max-width: 820px) {
  .modal--story {
    --gx1: 5.5vw;   /* 左右の罫線位置（画面端からの距離） */
    --gy1: 1.5rem;  /* 上の罫線位置 */
    --gy2: 1.75rem; /* 下の罫線位置（スクロール末尾からの距離） */
    overflow-y: auto;
    overflow-x: hidden; /* sub写真を右のガイド線からはみ出させても横スクロールさせない */
    background-image:
      linear-gradient(var(--guide) 0 0),
      linear-gradient(var(--guide) 0 0),
      linear-gradient(var(--guide) 0 0),
      linear-gradient(var(--guide) 0 0);
    background-repeat: no-repeat;
    background-size: 1px 100%, 1px 100%, 100% 1px, 100% 1px;
    background-position:
      left var(--gx1) top 0,
      right var(--gx1) top 0,
      left 0 top var(--gy1),
      left 0 bottom var(--gy2);
    /* 左右2本（額縁の縦罫線）は固定。上下2本（原稿用紙の罫線）は中身と一緒にスクロール。 */
    background-attachment: scroll, scroll, local, local;
  }
  .modal--story .modal__inner {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: var(--gy1) var(--gx1) calc(var(--gy2) + 0.75rem);
  }
  .modal--story .modal__photo,
  .modal--story .modal__body-wrap,
  .modal--story .modal__sub,
  .modal--story .modal__copy {
    position: static;
    transform: none;
  }
  .modal--story .modal__photo {
    width: 100%;
    max-width: 26.25rem;
    height: auto;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
  }
  /* 本文は写真と違い、左右のガイド線から少し離す（ガイド線ぴったりにはしない） */
  .modal--story .modal__body-wrap {
    width: 100%;
    max-width: 28.75rem;
    margin-inline: auto;
    padding-inline: 1rem;
  }
  /* 本文の直後に「そこに、リョーキ」→ 写真の順で並べる（order で並び替え。
     DOM順は body-wrap → sub → copy のまま）。写真は枠内に収まるよう
     左右にパディング分の余白を持たせて中央寄せ。
     環境・福祉はスマホ用に用意した横長の合成画像に <picture> で差し替わる。 */
  .modal--story .modal__copy {
    order: 1;
    width: clamp(13rem, 68vw, 24rem);
    /* 本文と同じく左のガイド線から少し離す */
    margin: -0.875rem auto 0 1rem;
  }
  /* 環境・福祉は <picture> で包んでいるため、flex の直接の子は picture 側になる。
     order・上余白は picture に持たせ、img（.modal__sub）は img が直接の子の
     場合（建設）と picture の中の場合（環境・福祉）の両方をカバーする。 */
  .modal--story .modal__sub,
  .modal--story .modal__inner > picture {
    order: 2;
  }
  .modal--story .modal__sub {
    display: block;
    width: 82%;
    max-width: none;
    max-height: none;
    margin: 1rem auto 0;
  }
  .modal--story .modal__inner > picture {
    margin: 1rem 0 0;
  }
  .modal--story .modal__inner > picture .modal__sub {
    margin: 0 auto;
  }

  /* スマホでは PC 用の小さいクランプ値ではなく、最小サイズを底上げして読みやすくする */
  .modal--story .modal__lead { font-size: clamp(1rem, 1.2vw, 1.1rem); }
  .modal--story .modal__text { font-size: clamp(1rem, 1.05vw, 1.075rem); }
  .modal--story .modal__close { font-size: clamp(1rem, 1.4vw, 1.15rem); }
}

/* --- リョーキという会社を、人にたとえると --- */
.liken {
  padding-top: clamp(6rem, 20vh, 14rem);
  padding-bottom: clamp(6rem, 20vh, 14rem);
  border-top: 1.5px solid var(--color-text);
}
.liken__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 5.625rem);
  align-items: start;
}
/* 写真は左カラムに sticky で留め、右の文章だけがスクロールする */
.liken__photo {
  position: sticky;
  top: clamp(3rem, 8vh, 5.5rem);
}
.liken__photo img {
  width: 100%;
  height: auto;
  display: block;
}
.liken__head {
  margin: 0 0 1.75rem;
  font-size: clamp(24px, 3.6vw, 2.3rem);
  font-weight: 700;
  line-height: 1.48;
}
.liken__head-box {
  display: inline-block;
  border: 1.5px solid var(--color-text);
  padding: 0.1em 0.4em;
}
.liken__body {
  margin: 0 0 1.125rem;
  line-height: 1.84;
  font-size: clamp(13.6px, 1.5vw, 0.92rem);
}
.liken__body:last-child {
  margin-bottom: 0;
}

/* --- More Information（ダーク） --- */
.more {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: clamp(3rem, 10vh, 7rem);
  background: #10151b;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
/* 背景動画（フルブリード。読み込み前・非対応時は crowd.jpg を敷く） */
.more__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  background: #10151b url("../images/fv/crowd.jpg") center / cover no-repeat;
  pointer-events: none;
}
/* 動画の上に暗いスクリム（白文字の可読性を確保） */
.more::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(rgba(16, 21, 27, 0.7), rgba(16, 21, 27, 0.82));
}
.more__inner {
  position: relative;
  z-index: 2;
  max-width: 47.5rem;
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.more__copy {
  margin: 0 0 1.5rem;
  line-height: 1.96;
  font-size: clamp(13.76px, 1.6vw, 0.98rem);
}

/* --- 必要なところに、いる。 --- */
.need {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding-block: clamp(3rem, 10vh, 7rem);
  text-align: center;
  overflow: hidden;
}
.need__collage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.need__collage img {
  position: absolute;
  width: clamp(6rem, 13vw, 11.5rem);
  height: auto;
}
.need__collage img:nth-child(1) { left: 2%;  top: 6%; }
.need__collage img:nth-child(2) { left: 7%;  bottom: 4%; }
.need__collage img:nth-child(3) { right: 3%; top: 10%; }
.need__collage img:nth-child(4) { right: 8%; bottom: 6%; }
.need__collage img:nth-child(5) { left: 45%; bottom: -3%; }
.need__text { position: relative; z-index: 1; }
.need__lead {
  margin: 0 0 1.75rem;
  font-size: clamp(19.2px, 2.9vw, 1.85rem);
  font-weight: 700;
  line-height: 1.64;
}
.need__list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin: 0;
  font-weight: 700;
  font-size: clamp(16px, 2vw, 1.3rem);
}

/* --- クロージング（1枚の写真＋筆文字） --- */
.closing {
  position: relative;
  background: #fff;
  overflow: hidden;
}
.closing__strip {
  display: flex;
  gap: 0;
}
.closing__strip img {
  width: 100%;
  height: auto;   /* 上下をクロップせず、写真本来の縦横比のまま表示 */
  display: block;
}
.closing__catch {
  position: absolute;
  left: 50%;
  top: 78%;
  width: clamp(20rem, 56vw, 56rem);
  height: auto;
  transform: translate(-50%, 0%);
  /* 白抜き文字なので、明るい写真の上でも読めるよう暗いシャドウで浮かせる */
  filter:
    drop-shadow(0 0.25rem 0.875rem rgba(15, 20, 26, 0.55))
    drop-shadow(0 0 2.5rem rgba(15, 20, 26, 0.45));
}

/* --- 後半セクションのレスポンシブ --- */
@media (max-width: 900px) {
  .liken__inner { grid-template-columns: 1fr; }
  .liken__photo { position: static; max-width: 28.75rem; }
  /* スマホはモーダルボタン（吹き出し）を本文より先に表示する（order:1/2 は base 側で指定済み） */
  .soko__inner { display: flex; flex-direction: column; align-items: center; }
  .soko__bubbles-head { display: block; width: 100%; text-align: center; }

  /* 「何の会社？」ブロックと「必要なところに、リョーキがいる。」ブロックの間を、他セクション間の余白と揃える */
  .soko__text {
    margin-top: clamp(3rem, 10vh, 7rem);
    padding-top: clamp(2rem, 6vh, 4rem);
    border-top: 1.5px solid var(--color-text);
  }

  /* 画面が狭いと左にはみ出すため、ペットボトルは右横に戻す */
  .soko__set--env .soko__set-photo {
    left: 100%;
    right: auto;
    margin-left: clamp(0.75rem, 2.5vw, 1.5rem);
    margin-right: 0;
  }

  /* スマホでは全画面高さをやめて内容なりに */
  .more,
  .need { min-height: 0; }
  .need { padding-top: clamp(6rem, 20vh, 14rem); }

  /* 見出しをもう少し大きく */
  .lead-head { font-size: clamp(26px, 4vw, 2.1rem); }
  .liken__head { font-size: clamp(27px, 4.2vw, 2.3rem); }

  /* #soko / #liken の上下余白を #more と同じ量に縮める */
  .soko,
  .liken {
    padding-top: clamp(3rem, 10vh, 7rem);
    padding-bottom: clamp(3rem, 10vh, 7rem);
  }

  /* #liken 上の区切り線を、#soko の区切り線と同じ見た目に（全幅ではなくコンテンツ幅に揃える） */
  .liken {
    padding-top: 0;
    border-top: none;
  }
  .liken__inner {
    padding-inline: 0;
    padding-top: clamp(2rem, 6vh, 4rem);
    width: calc(100% - 2 * var(--container-pad));
    margin-inline: auto;
    border-top: 1.5px solid var(--color-text);
  }

  /* 吹き出しラップは PC 専用の sticky/aspect-ratio を解除し、中の ul にレイアウトを任せる */
  .soko__bubbles-wrap {
    position: static;
    width: 100%;
    aspect-ratio: auto;
  }

  /* 吹き出しは本文の上に回し、絶対配置をやめて縦積みにする。
     3つを少し大きくし、上から左・右・左と互い違いにずらして配置する。 */
  .soko__bubbles {
    position: static;
    inset: auto;
    width: 100%;
    max-width: 28.75rem;
    aspect-ratio: auto;
    margin: 0 auto 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 0;
  }
  .soko__bubbles > li:nth-child(1) { transform: translateX(-15%); }
  .soko__bubbles > li:nth-child(2) { transform: translateX(15%); }
  .soko__bubbles > li:nth-child(3) { transform: translateX(-15%); }
  .soko__bubbles .bubble {
    /* position:relative にして、中の .bubble__label / .bubble__click の
       絶対配置の基準がこのボタン自身になるようにする（static だと基準が
       .soko__inner まで遡ってしまい、ラベルが吹き出しの外に集まって見えていた） */
    position: relative;
    width: clamp(11rem, 50vw, 14.75rem) !important;
    left: auto !important;
    top: auto !important;
  }
  .bubble__click {
    width: clamp(4rem, 8vw, 5.75rem) !important;
  }
  .bubble--build .bubble__click {
    top: -14px !important;
    left: 0 !important;
    right: auto !important;
    transform: rotate(-20deg) !important;
  }
  .bubble--env .bubble__click {
    top: -14px !important;
    left: auto !important;
    right: 0 !important;
    transform: rotate(25deg) !important;
  }
  .bubble--welfare .bubble__click {
    top: -4% !important;
    left: -4% !important;
    right: auto !important;
    transform: rotate(-18deg) !important;
  }
  /* 吹き出しの拡大に合わせ、ラベル文字と品物写真も同じ比率で少し大きく */
  .bubble__label { font-size: 1.125rem !important; }
  .soko__bubble-photo { height: clamp(4.5rem, 9vw, 6.5rem) !important; }

  /* 文字サイズの下限を16pxに（サブ/メインなどのジャンプ率は保つ） */
  .soko__body,
  .soko__set-line,
  .liken__body,
  .more__copy,
  .site-footer__copy { font-size: 1rem; }
  .soko__body--em { font-size: 1.0625rem; }
}

/* 建設の一文が長く、16px化した .soko__set-line がテキスト列いっぱいに広がるため、
   横に添えている品物写真を置く余白がなくなる幅では、その写真だけ非表示にする */
@media (max-width: 410px) {
  .soko__set--build .soko__set-photo { display: none; }
}

@media (max-width: 640px) {
  .need__collage img:nth-child(5) { display: none; }
  /* 左下は「循環にも。」、右上は「街にも。」の高さに合わせて移動。左下は少し縮小 */
  .need__collage img:nth-child(2) {
    top: 65%;
    bottom: auto;
    width: clamp(4.5rem, 10vw, 8.5rem);
  }
  .need__collage img:nth-child(3) {
    top: 23%;
  }
  .site-footer__links a { font-size: 12px; }
  .site-footer__copy { font-size: 10px; }
}
