@charset "UTF-8";
/*
  株式会社クロガネ工業 採用デモサイト
  設計: BEM / モバイルファースト(min-width: 768px / 1024px)
  装飾言語: 斜めの造形(clip-path)+黄色下線マーカー+角丸なし の3つに限定
*/

/* ========== リセット(簡易) ========== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

/* ========== トークン(design-standards 準拠) ========== */
:root {
  --color-base: #fff;
  --color-base-gray: #f4f4f2;
  --color-black: #141414;      /* 背景用の黒 */
  --color-black-sub: #1e1e1e;  /* 黒背景上のカード用 */
  --color-text: #1a1a1a;       /* 真っ黒を避けたテキスト色 */
  --color-text-weak: #555;
  --color-yellow: #ffc400;     /* メイン: ビビッドイエロー */
  --color-line: #d8d8d4;
  --color-error: #b42318;
  --font-en: "Oswald", sans-serif;
  --space-xs: 0.5rem;   /*   8px */
  --space-s: 1rem;      /*  16px */
  --space-m: 2rem;      /*  32px */
  --space-l: 4rem;      /*  64px */
  /* セクション間余白: スマホで縮む可変値(design-standards: モバイル60〜80px) */
  --space-xl: clamp(64px, 10vw, 120px);
  --header-h: 72px;
  --content-max: 1120px;
  --visual-frame-max: 1440px;
  --brand-band-width: min(27%, 389px);
  --brand-slant-angle: -13deg;
  --brand-slant-angle-reverse: 13deg;
  --motion-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --motion-ease-sharp: cubic-bezier(0.76, 0, 0.24, 1);
  --motion-duration-fast: 0.32s;
  --motion-duration-base: 0.68s;
  --motion-duration-slow: 0.9s;
}

@media (min-width: 1024px) {
  :root {
    --header-h: 76px;
  }
}

/* ========== ベース ========== */
html {
  /* 固定ヘッダーの高さぶんアンカー位置をずらす */
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-base);
  /* 写真の左右裁ち落とし(50vw技法)で横スクロールが出ないようにする */
  overflow-x: clip;
  /* 固定ヘッダーぶんの逃げ */
  padding-top: var(--header-h);
}

body.is-menu-open,
body.is-dialog-open {
  overflow: hidden;
}

/* 見出し・引用の「た。」だけ次行に落ちる泣き別れを、文節単位の改行で防ぐ(対応ブラウザのみ有効・非対応でも従来どおり) */
h1,
h2,
h3,
.people__card-quote,
.work__card-text,
.env__item-text,
.flow__step-text {
  word-break: auto-phrase;
}

/* 表示切替ヘルパー */
.u-sp-only {
  display: inline;
}

.u-pc-only {
  display: none;
}

@media (min-width: 768px) {
  .u-sp-only {
    display: none;
  }

  .u-pc-only {
    display: inline;
  }
}

/* ========== 共通: スクロールモーション ========== */
/* Observerの準備成功後だけ初期状態を作り、JS失敗時も内容を隠さない */
.is-motion-ready [data-motion="heading"] > .section-label,
.is-motion-ready [data-motion="heading"] > h2,
.is-motion-ready [data-motion="heading"] > p:not(.section-label) {
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity var(--motion-duration-base) var(--motion-ease-out),
    transform var(--motion-duration-base) var(--motion-ease-out);
}

.is-motion-ready [data-motion="heading"] > h2 {
  transition-delay: 0.06s;
}

.is-motion-ready [data-motion="heading"] > p:not(.section-label) {
  transform: translateX(-10px);
  transition-delay: 0.14s;
}

.is-motion-ready [data-motion="heading"].is-inview > .section-label,
.is-motion-ready [data-motion="heading"].is-inview > h2,
.is-motion-ready [data-motion="heading"].is-inview > p:not(.section-label) {
  opacity: 1;
  transform: none;
}

.is-motion-ready [data-motion="heading"] .marker {
  background-size: 0 28%;
  transition: background-size 0.72s var(--motion-ease-out) 0.2s;
}

.is-motion-ready [data-motion="heading"].is-inview .marker {
  background-size: 100% 28%;
}

/* 写真は「面が開く→画像がゆっくり収まる」を共通言語にし、構成ごとに方向を変える */
.intro__photo,
.people__card-photo,
.env__photo,
.ideal__photo {
  position: relative;
  overflow: hidden;
}

/* メッセージ: 3枚を一括表示せず、黄色いシャッターを短く連鎖させる */
[data-motion="photo-mosaic"] > :nth-child(1) { --photo-order: 0; }
[data-motion="photo-mosaic"] > :nth-child(2) { --photo-order: 1; }
[data-motion="photo-mosaic"] > :nth-child(3) { --photo-order: 2; }

.is-motion-ready [data-motion="photo-mosaic"] .intro__photo {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.88s var(--motion-ease-sharp);
  transition-delay: calc(var(--photo-order, 0) * 0.09s);
}

.is-motion-ready [data-motion="photo-mosaic"] .intro__photo::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: var(--color-yellow);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 0.72s var(--motion-ease-sharp);
}

.is-motion-ready [data-motion="photo-mosaic"] .intro__photo::after {
  transition-delay: calc(0.08s + var(--photo-order, 0) * 0.09s);
}

.is-motion-ready [data-motion="photo-mosaic"] .intro__photo img {
  transform: translateX(6px) scale(1.035);
  transition: transform 1.15s var(--motion-ease-out);
  transition-delay: calc(0.06s + var(--photo-order, 0) * 0.09s);
}

.is-motion-ready [data-motion="photo-mosaic"].is-inview .intro__photo {
  clip-path: inset(0);
}

.is-motion-ready [data-motion="photo-mosaic"].is-inview .intro__photo::after {
  transform: scaleX(0);
}

.is-motion-ready [data-motion="photo-mosaic"].is-inview .intro__photo img {
  transform: none;
}

/* 働く人: 人物写真だけを短い斜めstaggerで見せ、文章は待たせない */
[data-motion="people-portraits"] > :nth-child(1) { --photo-order: 0; }
[data-motion="people-portraits"] > :nth-child(2) { --photo-order: 1; }
[data-motion="people-portraits"] > :nth-child(3) { --photo-order: 2; }

.is-motion-ready [data-motion="people-portraits"] .people__card-photo {
  clip-path: polygon(0 0, 0 0, 18% 100%, 18% 100%);
  transition: clip-path 0.82s var(--motion-ease-sharp);
  transition-delay: calc(var(--photo-order, 0) * 0.08s);
}

.is-motion-ready [data-motion="people-portraits"] .people__card-photo img {
  transform: scale(1.035);
  transition: transform 1.05s var(--motion-ease-out);
  transition-delay: calc(0.06s + var(--photo-order, 0) * 0.08s);
}

.is-motion-ready [data-motion="people-portraits"].is-inview .people__card-photo {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.is-motion-ready [data-motion="people-portraits"].is-inview .people__card-photo img {
  transform: scale(1);
}

/* 働く環境: 2枚を左右から噛み合わせるように表示する */
.is-motion-ready [data-motion="photo-stack"] .env__photo {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.86s var(--motion-ease-sharp);
}

.is-motion-ready [data-motion="photo-stack"] .env__photo:nth-child(2) {
  clip-path: inset(0 0 0 100%);
  transition-delay: 0.12s;
}

.is-motion-ready [data-motion="photo-stack"] .env__photo img {
  transform: translateX(6px) scale(1.03);
  transition: transform 1.1s var(--motion-ease-out) 0.06s;
}

.is-motion-ready [data-motion="photo-stack"] .env__photo:nth-child(2) img {
  transform: translateX(-6px) scale(1.03);
  transition-delay: 0.18s;
}

.is-motion-ready [data-motion="photo-stack"].is-inview .env__photo {
  clip-path: inset(0);
}

.is-motion-ready [data-motion="photo-stack"].is-inview .env__photo img {
  transform: none;
}

/* 求める人物像: 単写真は斜めの面を開き、細い黄色面を先導させる */
.is-motion-ready [data-motion="photo-focus"] img {
  clip-path: polygon(0 0, 0 0, 18% 100%, 18% 100%);
  transform: scale(1.035);
  transition:
    clip-path 0.92s var(--motion-ease-sharp),
    transform 1.18s var(--motion-ease-out) 0.06s;
}

.is-motion-ready [data-motion="photo-focus"]::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: 30%;
  background: var(--color-yellow);
  opacity: 0;
  transform: translateX(-110%);
  pointer-events: none;
}

.is-motion-ready [data-motion="photo-focus"].is-inview::after {
  animation: photo-focus-sweep 0.88s var(--motion-ease-sharp) 0.04s both;
}

.is-motion-ready [data-motion="photo-focus"].is-inview img {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  transform: scale(1);
}

@keyframes photo-focus-sweep {
  0% {
    opacity: 0;
    transform: translateX(-110%);
  }

  12%,
  66% {
    opacity: 1;
  }

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

/* カードは短いstaggerだけを共有し、内部の見せ方は用途別に変える */
[data-motion="work-cards"] > :nth-child(1),
[data-motion="job-cards"] > :nth-child(1),
[data-motion="numbers"] > :nth-child(1),
[data-motion="flow"] > :nth-child(1) { --motion-order: 0; }
[data-motion="work-cards"] > :nth-child(2),
[data-motion="job-cards"] > :nth-child(2),
[data-motion="numbers"] > :nth-child(2),
[data-motion="flow"] > :nth-child(2) { --motion-order: 1; }
[data-motion="work-cards"] > :nth-child(3),
[data-motion="job-cards"] > :nth-child(3),
[data-motion="numbers"] > :nth-child(3),
[data-motion="flow"] > :nth-child(3) { --motion-order: 2; }
[data-motion="work-cards"] > :nth-child(4),
[data-motion="numbers"] > :nth-child(4),
[data-motion="flow"] > :nth-child(4) { --motion-order: 3; }
[data-motion="numbers"] > :nth-child(5),
[data-motion="flow"] > :nth-child(5) { --motion-order: 4; }
[data-motion="numbers"] > :nth-child(6),
[data-motion="flow"] > :nth-child(6) { --motion-order: 5; }

.is-motion-ready [data-motion="work-cards"] .work__card,
.is-motion-ready [data-motion="job-cards"] .jobs__card,
.is-motion-ready [data-motion="numbers"] .numbers__item,
.is-motion-ready [data-motion="flow"] .flow__step {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.58s var(--motion-ease-out),
    transform 0.58s var(--motion-ease-out);
  transition-delay: calc(var(--motion-order, 0) * 0.06s);
}

.is-motion-ready [data-motion="work-cards"].is-inview .work__card,
.is-motion-ready [data-motion="job-cards"].is-inview .jobs__card,
.is-motion-ready [data-motion="numbers"].is-inview .numbers__item,
.is-motion-ready [data-motion="flow"].is-inview .flow__step {
  opacity: 1;
  transform: none;
}

.is-motion-ready [data-motion="work-cards"] .work__card-photo,
.is-motion-ready [data-motion="job-cards"] .jobs__card-photo {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.62s var(--motion-ease-sharp);
  transition-delay: calc(var(--motion-order, 0) * 0.06s);
}

.is-motion-ready [data-motion="work-cards"].is-inview .work__card-photo,
.is-motion-ready [data-motion="job-cards"].is-inview .jobs__card-photo {
  clip-path: inset(0);
}

.is-motion-ready [data-motion="work-cards"] .work__card-step,
.is-motion-ready [data-motion="job-cards"] .jobs__card-tag {
  opacity: 0;
  transform: scale(0.86);
  transition:
    opacity 0.42s var(--motion-ease-out),
    transform 0.42s var(--motion-ease-out);
  transition-delay: calc(0.14s + var(--motion-order, 0) * 0.06s);
}

.is-motion-ready [data-motion="work-cards"].is-inview .work__card-step,
.is-motion-ready [data-motion="job-cards"].is-inview .jobs__card-tag {
  opacity: 1;
  transform: scale(1);
}

.numbers__item {
  position: relative;
  border-top: 0;
}

.numbers__item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--color-yellow);
  transform: scaleX(1);
  transform-origin: left;
}

.is-motion-ready [data-motion="numbers"] .numbers__item::before {
  transform: scaleX(0);
  transition: transform 0.58s var(--motion-ease-out);
  transition-delay: calc(0.1s + var(--motion-order, 0) * 0.06s);
}

.is-motion-ready [data-motion="numbers"].is-inview .numbers__item::before {
  transform: scaleX(1);
}

/* 採用フロー: 工程を1つずつ進むように、線と文字を同じ間隔で順番に出す */
.is-motion-ready [data-motion="flow"] .flow__step {
  transition-delay: calc(0.1s + var(--motion-order, 0) * 0.14s);
}

.is-motion-ready [data-motion="flow"] .flow__step::before {
  transform: scaleY(0);
  transition: transform 0.42s var(--motion-ease-sharp);
  transition-delay: calc(var(--motion-order, 0) * 0.14s);
}

.is-motion-ready [data-motion="flow"].is-inview .flow__step::before {
  transform: none;
}

@media (min-width: 768px) {
  .is-motion-ready [data-motion="heading"] > .section-label,
  .is-motion-ready [data-motion="heading"] > h2 {
    transform: translateX(-18px);
  }

  .is-motion-ready [data-motion="photo-mosaic"] .intro__photo img {
    transform: translateX(10px) scale(1.05);
  }

  .is-motion-ready [data-motion="people-portraits"] .people__card-photo img,
  .is-motion-ready [data-motion="photo-focus"] img {
    transform: scale(1.045);
  }

  .is-motion-ready [data-motion="photo-stack"] .env__photo img {
    transform: translateX(8px) scale(1.04);
  }

  .is-motion-ready [data-motion="photo-stack"] .env__photo:nth-child(2) img {
    transform: translateX(-8px) scale(1.04);
  }

  .is-motion-ready [data-motion="photo-mosaic"].is-inview .intro__photo img,
  .is-motion-ready [data-motion="people-portraits"].is-inview .people__card-photo img,
  .is-motion-ready [data-motion="photo-stack"].is-inview .env__photo img,
  .is-motion-ready [data-motion="photo-focus"].is-inview img {
    transform: none;
  }
}

/* ========== 共通: ボタン ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  min-width: 220px;
  padding: 1em 2em;
  font-weight: 700;
  color: var(--color-text);
  background-color: var(--color-yellow);
  background-image: linear-gradient(to right, #fff 0 50%, var(--color-yellow) 50% 100%);
  background-position: right;
  background-size: 205% 100%;
  border: 1px solid var(--color-yellow);
  transition:
    color var(--motion-duration-fast),
    background-position 0.42s var(--motion-ease-out),
    border-color var(--motion-duration-fast);
}

.btn::after {
  content: "→";
  font-family: var(--font-en);
  transition: transform 0.3s;
}

.btn:hover {
  background-position: left;
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 3px;
}

.header__logo:focus-visible,
.header__nav-link:focus-visible,
.header__entry-btn:focus-visible,
.header__menu-btn:focus-visible,
.jobs__card-link:focus-visible,
.footer__nav-link:focus-visible,
.dialog__close:focus-visible,
.entry-form__privacy summary:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 4px;
}

/* 黒背景セクション用の枠線ボタン */
.btn--ghost {
  color: #fff;
  background-color: transparent;
  background-image: linear-gradient(to right, var(--color-yellow) 0 50%, transparent 50% 100%);
  border-color: #fff;
}

.btn--ghost:hover {
  color: var(--color-text);
  border-color: var(--color-yellow);
}

/* ========== 共通: セクションラベル ========== */
.section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-bottom: var(--space-s);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--color-black);
  clip-path: polygon(
    0 0,
    calc(100% - 0.5rem) 0,
    100% 50%,
    calc(100% - 0.5rem) 100%,
    0 100%
  );
}

.section-label__mark {
  flex: 0 0 auto;
  align-self: stretch;
  width: 0.375rem;
  background: var(--color-yellow);
}

.section-label__text {
  display: flex;
  align-items: center;
  padding: 0.5em 1.2em 0.5em 0.8em;
}

.section-label--dark {
  color: var(--color-text);
  background: var(--color-base);
}

.section-label--center {
  margin-inline: auto;
}

/* ========== 共通: 黄色下線マーカー ========== */
.marker {
  /* 文字の下1/3に黄色を敷く(蛍光ペン風の下線) */
  background: linear-gradient(transparent 72%, var(--color-yellow) 72%) no-repeat left bottom / 100% 28%;
}

/* ========== ヘッダー ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background: var(--color-base);
  border-bottom: 1px solid #e5e5e5;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: 24px;
}

.header__logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.header__logo-image {
  display: block;
  width: clamp(190px, 54vw, 220px);
  height: auto;
}

/* --- ナビ(スマホ: 全面オーバーレイ) --- */
.header__nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  visibility: hidden;
  opacity: 0;
  background: var(--color-black);
  transition: opacity 0.3s, visibility 0.3s;
}

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

.header__nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  padding: var(--space-l) 32px;
}

.header__nav-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
}

.header__nav-link:hover {
  color: var(--color-yellow);
}

/* ENTRYボタン: 斜めの造形でCTAを目立たせる */
.header__entry-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.7em 1.8em;
  font-family: var(--font-en);
  font-size: 1.125rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--color-text);
  background: var(--color-yellow);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: opacity 0.3s;
}

.header__entry-btn:hover {
  opacity: 0.8;
}

.header__entry-arrow {
  transition: transform var(--motion-duration-fast) var(--motion-ease-out);
}

.header__entry-btn:hover .header__entry-arrow {
  transform: translateX(4px);
}

/* --- ハンバーガーボタン --- */
.header__menu-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 100%;
}

.header__menu-line {
  position: relative;
  display: block;
  width: 36px;
  height: 3px;
  background: var(--color-text);
  transition: background-color 0.3s;
}

.header__menu-line::before,
.header__menu-line::after {
  content: "";
  position: absolute; /* 3本線を1要素で描くための装飾用配置 */
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--color-text);
  transition: transform 0.3s;
}

.header__menu-line::before {
  top: -11px;
}

.header__menu-line::after {
  top: 11px;
}

/* 開いたら×印に変形 */
.header__menu-btn[aria-expanded="true"] .header__menu-line {
  background: transparent;
}

.header__menu-btn[aria-expanded="true"] .header__menu-line::before {
  transform: translateY(11px) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] .header__menu-line::after {
  transform: translateY(-11px) rotate(-45deg);
}

.header__menu-label {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .header__inner {
    padding-inline: 32px 0; /* 右端はENTRYボタンを画面端まで届かせるため0 */
  }

  .header__logo-image {
    width: 190px;
  }

  /* PC: ナビをインライン表示に戻す */
  .header__nav {
    position: static;
    visibility: visible;
    opacity: 1;
    background: transparent;
  }

  .header__nav-list {
    flex-direction: row;
    align-items: center;
    /* ナビ6項目でも1024px幅でロゴと詰まらないよう、狭い幅では間隔を縮める */
    gap: clamp(20px, 2.2vw, 32px);
    padding: 0;
  }

  .header__nav-link {
    font-size: 0.875rem;
    color: var(--color-text);
    font-weight: 700;
    background: linear-gradient(transparent 72%, var(--color-yellow) 72%) no-repeat left bottom / 0 28%;
    transition: background-size 0.36s var(--motion-ease-out);
  }

  .header__nav-link:hover {
    color: inherit;
    background-size: 100% 28%;
  }

  .header__nav-entry {
    margin-left: var(--space-s);
  }

  .header__entry-btn {
    padding: 0.9em 2.4em;
    clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
  }

  .header__menu-btn {
    display: none;
  }
}

/* ========== 01 ファーストビュー ========== */
.fv {
  color: #fff;
  background: var(--color-black);
}

/* --- 主役: 社員写真を背景に敷き、コピーを重ねる --- */
.fv__main {
  position: relative;
  display: flex;
  overflow: hidden; /* 黄色帯・写真のはみ出しを切る */
}

/* z順(下→上): 写真(0) → 暗がりグラデ(1) → テキスト(3) */
.fv__bg {
  position: absolute; /* 背景として全面に敷くための配置 */
  z-index: 0;
  inset: 0;
}

.fv__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: -24% 0; /* スマホ時は人物をさらに右へ逃がし、顔とコピーの重なりを抑える */
}

/* テキスト可読性の暗がり: 左を保護しつつ、顔まわりは薄くして社員を見せる */
.fv__main::before {
  content: "";
  position: absolute; /* オーバーレイのための配置 */
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(20, 20, 20, 0.82) 0%,
      rgba(20, 20, 20, 0.56) 44%,
      rgba(20, 20, 20, 0.12) 72%,
      rgba(20, 20, 20, 0) 100%
    ),
    linear-gradient(
      to bottom,
      rgba(20, 20, 20, 0.02) 0%,
      rgba(20, 20, 20, 0.04) 42%,
      rgba(20, 20, 20, 0.44) 100%
    );
}

.fv__body {
  position: relative;
  z-index: 3; /* 写真・帯より前面 */
  align-self: flex-start;
  width: 100%;
  max-width: 640px;
  padding: clamp(32px, 9vw, 48px) 26px 34px;
}

.fv__title {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.fv__title-line {
  display: block;
  /* HTMLで意図した2行構成を保ち、広幅時の文字拡大で行内を再分割させない */
  white-space: nowrap;
  /* マスク演出の枠。行間が詰まっているため上下に逃げを作り、極太字の端を切らない */
  overflow: hidden;
  padding-block: 0.08em;
  margin-block: -0.08em;
}

.fv__title-text {
  display: block;
}

.fv__title-line--yellow {
  color: var(--color-yellow);
}

.fv__lead {
  margin-top: var(--space-m);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.9;
}

.fv__sub {
  margin-top: var(--space-s);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.9;
  color: #e5e5e5;
}

.fv__btns {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-s);
  margin-top: var(--space-m);
  margin-inline: auto;
  max-width: 460px;
}

.fv__btns .btn {
  position: relative;
  width: min(100%, 30rem);
  min-height: 64px;
  padding-inline: 2rem 4rem;
  font-size: 1.0625rem;
}

.fv__btns .btn::after {
  position: absolute;
  right: 2rem;
}

/* --- ラベル付き3枚 --- */
.fv__gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px; /* 写真同士の間に細い白線を出す */
  background: #fff;
}

.fv__gallery-item {
  position: relative; /* ラベルを写真上に重ねる起点 */
  overflow: hidden;
  background: var(--color-black);
}

.fv__gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.fv__gallery-item::after {
  content: "";
  position: absolute; /* 写真内ラベルの可読性を保つための下部グラデ */
  z-index: 1;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(
    to bottom,
    rgba(20, 20, 20, 0),
    rgba(20, 20, 20, 0.85)
  );
}

.fv__gallery-label {
  position: absolute; /* 写真の左下に重ねる */
  z-index: 2;
  bottom: clamp(10px, 3vw, 16px);
  left: clamp(8px, 2.4vw, 16px);
  padding-left: 8px;
  font-size: clamp(0.72rem, 3.2vw, 1.0625rem);
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
  white-space: nowrap;
  border-left: 3px solid var(--color-yellow);
}

/* 初回表示は1.2秒前後で完結し、FVの情報順に視線を運ぶ */
.js .fv__bg {
  animation: fv-photo-in 0.82s var(--motion-ease-out) 0.04s both;
}

/* キャッチコピーは他の要素と同じ横スライドにせず、行の枠の中から文字がせり上がる形で主役にする */
.js .fv__title-text {
  animation: fv-line-up 0.86s var(--motion-ease-out) 0.12s both;
}

.js .fv__title-line--yellow .fv__title-text {
  animation-delay: 0.24s;
}

.js .fv__lead {
  animation: fv-copy-in 0.58s var(--motion-ease-out) 0.3s both;
}

.js .fv__sub {
  animation: fv-copy-in 0.58s var(--motion-ease-out) 0.4s both;
}

.js .fv__gallery-item {
  animation: fv-gallery-in 0.56s var(--motion-ease-out) both;
}

.js .fv__gallery-item:nth-child(1) { animation-delay: 0.28s; }
.js .fv__gallery-item:nth-child(2) { animation-delay: 0.36s; }
.js .fv__gallery-item:nth-child(3) { animation-delay: 0.44s; }

.js .fv__btns {
  animation: fv-copy-in 0.58s var(--motion-ease-out) 0.58s both;
}

@keyframes fv-photo-in {
  from {
    opacity: 0;
    transform: scale(1.025);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fv-copy-in {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fv-line-up {
  from { transform: translateY(110%); }
  to { transform: none; }
}

@keyframes fv-gallery-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fv-band-in {
  from { transform: skewX(var(--brand-slant-angle)) scaleX(0); }
  to { transform: skewX(var(--brand-slant-angle)) scaleX(1); }
}

@media (min-width: 360px) {
  .fv__title {
    font-size: clamp(3.1rem, 13.2vw, 3.5rem);
  }
}

@media (min-width: 768px) {
  .fv__bg {
    left: 30%;
  }

  .fv__bg img {
    object-position: 28% 0;
  }

  .fv__title {
    font-size: clamp(4rem, 9vw, 4.25rem);
  }

  .fv__btns {
    flex-direction: row;
    max-width: none; /* 横並び時はボタン文言が折り返さないよう幅制限を外す */
  }

  .fv__btns .btn {
    width: auto;
    min-height: auto;
    padding-inline: 2em;
    font-size: 1rem;
  }

  .fv__btns .btn::after {
    position: static;
    right: auto;
  }

  .fv__gallery-item img {
    aspect-ratio: 16 / 10;
  }
}

@media (min-width: 1024px) {
  /* PC: 社員写真を全面背景に、右に黄色い斜め帯＋白枠付き斜め3枚を重ねる(カンプ準拠) */
  .fv {
    position: relative; /* 黄色帯・3枚を重ねる基準 */
    overflow: hidden; /* 斜め帯・写真のはみ出しを切る */
    /* 広幅画面で構図が横に間延びしないよう、FV内の配置だけ上限を持たせる */
    --fv-inner-max: var(--visual-frame-max);
    --fv-gallery-right: 144px;
    --fv-gallery-width: 266px;
  }

  .fv__main {
    width: min(100%, var(--fv-inner-max));
    min-height: calc(90svh - var(--header-h));
    margin-inline: auto;
  }

  /* 写真: 左端は黒へマスクで溶かす。全面に敷き、右は黄色帯の背面に回る */
  /* 写真ブロックを中央右に配置(顔が画面の55%前後に来る位置)。左右とも黒へフェード */
  .fv__bg {
    z-index: 1;
    left: 26%;
    right: 16%;
    -webkit-mask-image: linear-gradient(
      100deg,
      transparent 4%,
      #000 26%,
      #000 84%,
      transparent 98%
    );
    mask-image: linear-gradient(
      100deg,
      transparent 4%,
      #000 26%,
      #000 84%,
      transparent 98%
    );
  }

  .fv__bg img {
    object-position: 50% 24%; /* 引きで胸から上が入るように */
  }

  /* テキストと写真の重なり部分の可読性を保護する弱いグラデ */
  .fv__main::before {
    z-index: 2;
    background: linear-gradient(
      100deg,
      rgba(20, 20, 20, 0.9) 24%,
      rgba(20, 20, 20, 0) 50%
    );
  }

  /* 黄色帯: FV内の最大幅に合わせ、広幅でも右へ流れすぎないようにする */
  .fv::after {
    content: "";
    position: absolute; /* 装飾のための配置 */
    z-index: 3; /* 写真の上・3枚(z4)の下 */
    top: 0;
    bottom: 0;
    right: max(0px, calc((100vw - var(--fv-inner-max)) / 2));
    width: var(--brand-band-width);
    background: var(--color-yellow);
    transform: skewX(var(--brand-slant-angle));
    transform-origin: bottom right;
  }

  .js .fv::after {
    animation: fv-band-in 0.72s var(--motion-ease-sharp) 0.1s both;
  }

  /* テキストは左寄せ(カンプ準拠) */
  .fv__body {
    z-index: 5; /* 写真・帯より前面 */
    align-self: center;
    width: 100%;
    /* 最大96pxのキャッチコピー2行を収めるため、広幅時だけ必要な横幅を確保 */
    max-width: 680px;
    margin: 0;
    padding: 0 24px 0 clamp(40px, 6vw, 96px);
  }

  .fv__title {
    font-size: clamp(3.75rem, 5.5vw, 6rem);
  }

  .fv__lead {
    font-size: 1.0625rem;
  }

  .fv__sub {
    font-size: 0.9375rem;
  }

  /* 3枚は黄色帯の左に縦積み。写真が顔アップになりすぎないよう少し細長い枠にする */
  .fv__gallery {
    position: absolute;
    z-index: 4;
    top: 0;
    bottom: 0;
    right: max(
      10%,
      calc((100vw - var(--fv-inner-max)) / 2 + var(--fv-gallery-right))
    ); /* 右端の黄色帯に少しだけ重なる位置 */
    width: min(18.5%, var(--fv-gallery-width));
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 1fr); /* 3枚を均等に */
    gap: 8px;
    padding: 28px 0; /* 上下に少し余白を残しつつ写真を大きめに */
    background: transparent;
    /* 3枚を黄色帯と同じ角度に傾ける */
    transform: skewX(var(--brand-slant-angle));
    transform-origin: center;
  }

  /* 各写真は白枠付き・枠内はダーク(黄色を入れない)。
     切り抜きは親のskewXによる「左右のみ斜め・上下は水平」の平行四辺形(カンプ準拠) */
  .fv__gallery-item {
    border: 4px solid #fff; /* 画像の境界の白い枠線 */
  }

  .fv__gallery-item::after {
    display: none;
  }

  /* 画像は逆スキューで正立させる。拡大率を抑え、手元や作業背景も見せる */
  .fv__gallery-item img {
    position: absolute;
    inset: 0;
    transform: skewX(var(--brand-slant-angle-reverse)) scale(1.1);
    object-position: 50% 38%;
    aspect-ratio: auto;
  }

  /* 被写体の位置が写真ごとに違うため、人物が枠の中心に来るよう個別に調整 */
  .fv__gallery-item:nth-child(1) img {
    object-position: 58% 38%; /* 機械を操る: 人物が右寄りのため */
  }

  .fv__gallery-item:nth-child(2) img {
    object-position: 50% 42%; /* チームで支える: 手元と上半身を残すため */
  }

  .fv__gallery-item:nth-child(3) img {
    object-position: 47% 46%; /* 品質をつくる: 手元を残しつつ顔を中央寄せ */
  }

  /* PCの右3枚はカンプに合わせて写真の見え方を優先する */
  .fv__gallery-label {
    display: none;
  }
}

/* ========== 02 導入メッセージ ========== */
.intro {
  padding-block: clamp(64px, 7.5vw, 96px);
  background: var(--color-base);
}

.intro__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.intro__title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.4;
}

.intro__title-line {
  display: block;
  width: fit-content;
  overflow: hidden; /* マスク演出の枠 */
}

.intro__title-text {
  display: block;
}

/* サイトの主張を担う見出しなので、共通の横スライドではなく行ごとのせり上がりにする */
.is-motion-ready .intro__body[data-motion="heading"] > .intro__title {
  opacity: 1;
  transform: none;
  transition: none;
}

.is-motion-ready .intro__body[data-motion="heading"] .intro__title-text {
  transform: translateY(105%);
  transition: transform 0.9s var(--motion-ease-out) 0.08s;
}

.is-motion-ready .intro__body[data-motion="heading"] .intro__title-line + .intro__title-line .intro__title-text {
  transition-delay: 0.2s;
}

.is-motion-ready .intro__body[data-motion="heading"].is-inview .intro__title-text {
  transform: none;
}

/* 文字が上がりきってから下線を引き、読む順番どおりに強調する */
.is-motion-ready .intro__body[data-motion="heading"] .marker {
  transition-delay: 0.62s;
}

.intro__text {
  max-width: 36em; /* 1行が長くなりすぎないよう文字数で制御 */
  margin-top: var(--space-m);
  font-size: 1rem;
}

.intro__text--strong {
  font-size: 1.0625rem;
  font-weight: 700;
}

.intro__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
  margin-top: var(--space-l);
  /* 以前は画面右端まで裁ち落としていたが、実機で「右が見切れて余白がない」と見えたため、
     他のセクションと同じ左右20pxの余白の中に収める */
}

.intro__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.intro__photo--main {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .intro__inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-l);
    align-items: center;
  }

  .intro__photos {
    margin-top: 0;
    gap: var(--space-s);
  }
}

@media (min-width: 1200px) {
  .intro__inner {
    grid-template-columns: 440px minmax(0, 1fr);
    gap: 3rem;
  }

  .intro__title {
    font-size: 2.75rem;
  }

  .intro__photos {
    grid-template-columns: minmax(0, 1.65fr) minmax(180px, 0.85fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    aspect-ratio: 1.55 / 1;
  }

  .intro__text {
    margin-top: 1.25rem;
  }

  .intro__text--strong {
    margin-top: 1.5rem;
  }

  .intro__photo {
    min-height: 0;
  }

  .intro__photo--main {
    grid-column: 1;
    grid-row: 1 / -1;
  }

  .intro__photo img {
    height: 100%;
  }
}

/* ========== 03 仕事紹介 ========== */
.work {
  padding-block: clamp(64px, 7vw, 88px);
  background: var(--color-base-gray);
}

.work__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.work__title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.5;
}

.work__text {
  margin-top: var(--space-s);
  font-size: 1rem;
}

.work__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

.work__card {
  background: var(--color-base);
}

.work__card-photo img {
  display: block;
  width: 100%;
}

/* 丸アイコン(汎用素材)の代わりに、加工→出荷の順番そのものを見せる */
.work__card-body {
  padding: var(--space-s) var(--space-s) 20px;
}

.work__card-step {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  padding-left: 8px;
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--color-text-weak);
  border-left: 3px solid var(--color-yellow); /* FV写真ラベル・フッターと同じ黄色の縦線 */
}

.work__card-step span {
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

.work__card-title {
  margin-top: 0.75rem;
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1.5;
}

.work__card-text {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-weak);
}

/* 狭いカラムで「いく。」だけ落ちないよう、PC幅だけ改行位置を固定する */
.work__title-br {
  display: none;
}

@media (min-width: 1024px) {
  .work__title-br {
    display: inline;
  }

  .work__inner {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: var(--space-l);
    align-items: start;
  }

  .work__list {
    gap: var(--space-m);
    margin-top: 0;
  }
}

@media (min-width: 1200px) {
  .work__inner {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 3rem;
  }

  .work__title {
    font-size: 2.25rem;
  }

  .work__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-s);
  }

  .work__card-photo img {
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

/* ========== 04 働く人 ========== */
.people {
  padding-block: clamp(72px, 8vw, 104px);
  background: var(--color-base);
}

.people__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.people__title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.5;
}

.people__text {
  margin-top: var(--space-s);
  font-size: 1rem;
}

.people__list {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-l);
}

.people__card-photo img {
  width: 100%;
  /* スマホは正方形3枚だと縦に長すぎるため、顔と上半身を残す横長に切る */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 28%;
}

.people__card-body {
  padding: var(--space-s) var(--space-s) 0;
}

.people__card-role {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-weak);
}

.people__card-quote {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-weight: 900;
  line-height: 1.6;
}

.people__card-message {
  margin-top: var(--space-s);
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text-weak);
}

@media (min-width: 768px) {
  .people__list {
    grid-template-columns: repeat(3, 1fr);
  }

  .people__card-photo img {
    aspect-ratio: 1 / 1;
  }
}

@media (min-width: 1024px) {
  /* PCでは見出し左・本文右の2カラムにして、他セクションの見出し構成と変化をつける */
  .people__head {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--space-l);
    align-items: start;
  }

  .people__title {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .people__text {
    grid-column: 2;
    max-width: 34em;
    margin-top: 0;
  }

  .people__text + .people__text {
    margin-top: var(--space-s);
  }
}

/* ========== 05 数字で見る(黒・見せ場1) ========== */
.numbers {
  padding-block: clamp(64px, 7vw, 88px);
  color: #fff;
  background: var(--color-black);
}

.numbers__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.numbers__title {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 900;
  line-height: 1.4;
}

.numbers__text {
  max-width: 36em;
  margin-top: var(--space-s);
  font-size: 1rem;
  color: #ccc;
}

.numbers__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xs);
  margin-top: var(--space-m);
}

.numbers__item {
  padding: var(--space-s);
  background: var(--color-black-sub);
}

.numbers__label {
  font-size: 0.8125rem;
  font-weight: 700;
}

.numbers__value {
  margin-top: var(--space-xs);
  line-height: 1;
}

.numbers__num {
  font-family: var(--font-en);
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  font-weight: 600;
  color: var(--color-yellow);
  /* カウントアップで数字の幅が動いてもガタつかないように等幅にする */
  font-variant-numeric: tabular-nums;
}

.numbers__unit {
  margin-left: 0.2em;
  font-size: 1.125rem;
  font-weight: 700;
}

.numbers__unit--head {
  margin-right: 0.2em;
  margin-left: 0;
}

/* 主役の数字: 同じ大きさのタイルが並ぶ単調さを崩し、黄色の面で「未経験歓迎」を裏付ける */
.numbers__item--hero {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--color-text);
  background: var(--color-yellow);
}

.numbers__item--hero::before {
  background: var(--color-text);
}

.numbers__item--hero .numbers__label {
  font-size: 0.9375rem;
}

.numbers__item--hero .numbers__num {
  font-size: clamp(5rem, 24vw, 9.5rem);
  color: var(--color-text);
}

.numbers__item--hero .numbers__unit {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
}

.numbers__note {
  margin-top: var(--space-s);
  font-size: 0.75rem;
  color: #888;
  text-align: right;
}

@media (min-width: 1024px) {
  .numbers__head {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: var(--space-l);
    align-items: end;
  }

  .numbers__head .section-label {
    grid-column: 1 / -1;
  }

  .numbers__list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-s);
    margin-top: var(--space-l);
  }

  .numbers__item {
    padding: var(--space-m);
  }

  /* 主役は左列を縦2段ぶん使い、残り4つを右に2×2で並べる */
  .numbers__item--hero {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
}

/* ========== 06 働く環境・制度 ========== */
.env {
  padding-block: clamp(72px, 7.5vw, 96px);
  background: var(--color-base);
}

.env__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.env__title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.5;
}

.env__text {
  max-width: 36em;
  margin-top: var(--space-s);
  font-size: 1rem;
}

.env__list {
  display: grid;
  gap: 24px var(--space-s);
  margin-top: var(--space-m);
}

.env__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: var(--space-s);
  align-items: start;
}

.env__item-icon {
  display: flex;
  grid-row: span 2;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
  background: var(--color-yellow);
}

.env__item-icon svg {
  width: 24px;
  height: 24px;
}

.env__item-title {
  font-size: 1rem;
  font-weight: 900;
}

.env__item-text {
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: var(--color-text-weak);
}

.env__photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-s);
  align-items: start;
  margin-top: var(--space-l);
}

.env__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.env__photo:first-child img {
  object-position: center 45%;
}

@media (min-width: 768px) {
  .env__list {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-m) var(--space-s);
  }

  .env__item {
    display: block;
  }

  .env__item-icon {
    width: 48px;
    height: 48px;
  }

  .env__item-title {
    margin-top: var(--space-xs);
  }

  .env__photos {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .env__inner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: var(--space-l);
    align-items: start;
  }

  .env__photos {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: var(--space-s);
    align-self: stretch;
    margin-top: 0;
  }

  .env__photo,
  .env__photo img {
    height: 100%;
    min-height: 0;
  }
}

/* ========== 07 募集職種 ========== */
.jobs {
  padding-block: clamp(64px, 7vw, 88px);
  background: var(--color-base-gray);
}

.jobs__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.jobs__title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.5;
}

.jobs__lead {
  max-width: 36em;
  margin-top: var(--space-s);
  font-size: 1rem;
}

.jobs__list {
  display: grid;
  gap: var(--space-m);
  margin-top: var(--space-m);
}

.jobs__card {
  display: flex;
  flex-direction: column;
  background: var(--color-base);
}

.jobs__card-photo {
  position: relative; /* 「未経験歓迎」タグを写真に重ねる起点 */
}

.jobs__card-photo img {
  width: 100%;
}

.jobs__card-tag {
  position: absolute; /* 写真上のバッジ配置のため */
  top: 0;
  left: 0;
  padding: 0.3em 1em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-yellow);
}

.jobs__card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--space-s) var(--space-s) var(--space-m);
}

.jobs__card-title {
  font-size: 1.25rem;
  font-weight: 900;
}

.jobs__card-alpha {
  margin-right: 0.4em;
  font-family: var(--font-en);
  color: var(--color-text-weak);
}

.jobs__card-text {
  margin-top: var(--space-xs);
  font-size: 0.9375rem;
  color: var(--color-text-weak);
}

/* 求職者が最初に確かめる給与・時間・休日を、ダイアログを開かなくても比べられるようにする */
.jobs__card-spec {
  margin-top: var(--space-s);
  border-top: 1px solid var(--color-line);
}

.jobs__card-spec div {
  display: grid;
  grid-template-columns: 3em minmax(0, 1fr);
  gap: var(--space-xs);
  padding-block: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-bottom: 1px solid var(--color-line);
}

.jobs__card-spec dt {
  color: var(--color-text-weak);
}

.jobs__card-spec dd {
  font-weight: 700;
}

.jobs__card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  align-self: flex-end;
  margin-top: auto; /* カードの高さが揃うようリンクを下端に寄せる */
  min-height: 44px;
  padding-top: var(--space-s);
  font-size: 0.875rem;
  font-weight: 700;
}

.jobs__card-link span {
  color: var(--color-text);
  transition: transform 0.3s;
}

.jobs__card-link:hover span {
  transform: translateX(4px);
}

@media (min-width: 768px) {
  .jobs__list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-s);
  }
}

@media (min-width: 1024px) {
  .jobs__list {
    gap: var(--space-m);
    margin-top: var(--space-l);
  }
}


/* ========== 08 求める人物像 ========== */
.ideal {
  padding-block: clamp(72px, 8vw, 104px);
  background: var(--color-base);
}

.ideal__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.ideal__title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.5;
}

.ideal__text {
  max-width: 36em;
  margin-top: var(--space-s);
  font-size: 1rem;
}

.ideal__list {
  margin-top: var(--space-m);
}

.ideal__item {
  display: flex;
  gap: var(--space-s);
  align-items: center;
  padding: 0.875rem 0.5rem;
  font-weight: 700;
  border-bottom: 1px solid #ddd;
}

.ideal__item:first-child {
  border-top: 1px solid #ddd;
}

.ideal__item-no {
  flex-shrink: 0;
  min-width: 1.6em;
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  /* 見出しと同じ黄色下線マーカーで番号を示す(角丸を使わない装飾ルールに合わせる) */
  background: linear-gradient(transparent 62%, var(--color-yellow) 62%);
}

.ideal__photo {
  margin-top: var(--space-l);
}

.ideal__photo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (min-width: 768px) {
  /* タブレットでは顔を残しながら横長に整え、写真だけが縦に間延びするのを防ぐ */
  .ideal__photo img {
    aspect-ratio: 16 / 9;
    object-position: center 42%;
  }
}

@media (min-width: 1024px) {
  .ideal__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-l);
    align-items: stretch;
  }

  /* 2カラム時に「〜見ていま/す。」のような半端な改行にならないようサイズを抑える */
  .ideal__title {
    font-size: 2.125rem;
  }

  .ideal__photo {
    margin-top: 0;
    margin-right: 0;
    height: 100%;
    align-self: stretch;
  }

  /* 本文量に合わせて写真枠を伸ばし、2カラムの上下をそろえる */
  .ideal__photo img {
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }
}

/* ========== 09 採用フロー ========== */
.flow {
  padding-block: clamp(64px, 7vw, 88px);
  /* 直前(白)・直後(黒)と切り替えるため薄グレー */
  background: var(--color-base-gray);
}

.flow__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.flow__head {
  text-align: left;
}

.flow__head .section-label {
  margin-inline: 0;
}

.flow__title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 900;
}

.flow__text {
  margin-top: var(--space-s);
  font-size: 1rem;
}

/* スマホ・タブレット: 左の縦線が工程を上から下へつなぐ */
.flow__list {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: var(--space-m);
}

.flow__step {
  position: relative; /* 進行ラインの起点 */
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  grid-template-areas:
    "number title"
    "number text";
  column-gap: var(--space-xs);
  align-items: start;
  padding: 0 0 var(--space-m) 20px;
  border-left: 2px solid var(--color-line);
}

.flow__step:last-child {
  padding-bottom: 0;
}

/* 灰色の線の上を黄色が進む(表示後は全工程が黄色でつながる) */
.flow__step::before {
  content: "";
  position: absolute; /* 枠線の上に重ねる装飾のため */
  top: 0;
  bottom: 0;
  left: -2px;
  width: 2px;
  background: var(--color-yellow);
  transform-origin: top;
}

.flow__step-no {
  grid-area: number;
  font-family: var(--font-en);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

.flow__step-title {
  grid-area: title;
  font-size: 1.0625rem;
  font-weight: 900;
  line-height: 1.5;
}

.flow__step-text {
  grid-area: text;
  margin-top: 0.125rem;
  font-size: 0.875rem;
  color: var(--color-text-weak);
}

/* PC: 6工程を横1列に並べ、上端の線を左から右へ進める */
@media (min-width: 1024px) {
  .flow__list {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-top: var(--space-l);
  }

  .flow__step {
    display: block;
    padding: 20px var(--space-s) 0 0;
    border-top: 2px solid var(--color-line);
    border-left: 0;
  }

  .flow__step::before {
    top: -2px;
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: 2px;
    transform-origin: left;
  }

  .is-motion-ready [data-motion="flow"] .flow__step {
    transform: translateX(-14px);
  }

  .is-motion-ready [data-motion="flow"] .flow__step::before {
    transform: scaleX(0);
  }

  .flow__step-no {
    display: block;
    font-size: 2.5rem;
  }

  .flow__step-title {
    margin-top: var(--space-xs);
  }
}

/* 選考期間の目安: 工程の直後に置き、FVやフッターと同じ黄色の縦線で補足情報だと示す */
.flow__note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem var(--space-s);
  align-items: baseline;
  margin-top: var(--space-m);
  padding: 20px 24px;
  background: var(--color-base);
  border-left: 4px solid var(--color-yellow);
}

.flow__note-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-text-weak);
}

.flow__note-value {
  font-weight: 700;
}

.flow__note-value strong {
  margin-left: 0.25em;
  font-size: 1.375rem;
  font-weight: 900;
}

.flow__note-sub {
  flex-basis: 100%;
  font-size: 0.8125rem;
  color: var(--color-text-weak);
}

@media (min-width: 1024px) {
  .flow__note {
    margin-top: var(--space-l);
  }
}

/* ========== 10 よくある質問 ========== */
/* 情報を読ませる場所なので、カードや動きは足さず罫線と余白だけで静かに組む */
.faq {
  padding-block: clamp(64px, 7vw, 88px);
  background: var(--color-base);
}

.faq__inner {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.faq__title {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  font-weight: 900;
  line-height: 1.5;
}

.faq__list {
  margin-top: var(--space-m);
  border-top: 1px solid var(--color-line);
}

.faq__item {
  border-bottom: 1px solid var(--color-line);
}

.faq__question {
  position: relative; /* 開閉記号の起点 */
  display: flex;
  gap: var(--space-s);
  align-items: center;
  min-height: 64px;
  padding: var(--space-s) 44px var(--space-s) 0;
  font-weight: 700;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
}

.faq__question::-webkit-details-marker {
  display: none;
}

/* 開閉状態を「＋」の回転で示す */
.faq__question::after {
  content: "+";
  position: absolute; /* 行の右端に固定する記号のため */
  top: 50%;
  right: 8px;
  font-family: var(--font-en);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-50%);
  transition: transform var(--motion-duration-fast) var(--motion-ease-out);
}

.faq__item[open] .faq__question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq__q {
  flex-shrink: 0;
  min-width: 1.4em;
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  /* 求める人物像の番号と同じ下線マーカー */
  background: linear-gradient(transparent 62%, var(--color-yellow) 62%);
}

.faq__answer {
  padding: 0 0 20px calc(1.4em * 1.25 + var(--space-s));
  font-size: 0.9375rem;
  color: var(--color-text-weak);
}

.faq__link {
  display: inline-flex;
  gap: 0.5em;
  align-items: center;
  min-height: 44px;
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text);
  background: linear-gradient(currentColor, currentColor) no-repeat left calc(100% - 10px) / 100% 1px;
}

.faq__question:focus-visible,
.faq__link:focus-visible,
.cta__visit-link:focus-visible {
  outline: 2px solid var(--color-yellow);
  outline-offset: 4px;
}

@media (hover: hover) and (pointer: fine) {
  .faq__question:hover {
    color: var(--color-text-weak);
  }
}

@media (min-width: 1024px) {
  .faq__inner {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }

  .faq__list {
    margin-top: 0;
  }
}

/* ========== 11 最終CTA(黒・見せ場2) ========== */
.cta {
  position: relative;
  overflow: hidden; /* 斜めの黄色帯のはみ出しを切るため */
  padding-block: clamp(72px, 8vw, 104px);
  color: #fff;
  background: var(--color-black);
}

.cta__inner {
  position: relative; /* 装飾帯より手前に載せる */
  z-index: 1;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: 20px;
}

.cta__photo {
  display: none; /* スマホではタイポを主役にするため写真は出さない */
}

.cta__title {
  margin-top: var(--space-s);
  font-size: clamp(2.25rem, 9vw, 4.5rem);
  font-weight: 900;
  line-height: 1.25;
}

.cta__title-line {
  display: block;
  overflow: hidden; /* マスク演出の枠 */
}

.cta__title-text {
  display: block;
}

.cta__title-line--yellow {
  color: var(--color-yellow);
}

.cta__text {
  margin-top: var(--space-m);
  font-size: 1rem;
  color: #ddd;
}

.cta__text--strong {
  margin-top: var(--space-s);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
}

.cta__btns {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

/* 応募より一段低いハードルの入口。ボタンと競わないよう文字リンクにとどめる */
.cta__visit {
  margin-top: var(--space-s);
}

.cta__visit-link {
  display: inline-flex;
  gap: 0.5em;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(currentColor, currentColor) no-repeat left calc(100% - 10px) / 100% 1px;
  transition: color var(--motion-duration-fast);
}

.cta__visit-link:hover {
  color: var(--color-yellow);
}

/* FVと同じ「面・コピー・CTA」の順で締めくくる */
.is-motion-ready .cta[data-motion="cta"] .cta__body > .section-label,
.is-motion-ready .cta[data-motion="cta"] .cta__text,
.is-motion-ready .cta[data-motion="cta"] .cta__btns,
.is-motion-ready .cta[data-motion="cta"] .cta__visit {
  opacity: 0;
  transform: translateX(-12px);
  transition:
    opacity 0.64s var(--motion-ease-out),
    transform 0.64s var(--motion-ease-out);
}

/* 締めのコピーはFVと同じ「行の中からせり上がる」動きで呼応させる */
.is-motion-ready .cta[data-motion="cta"] .cta__title-text {
  transform: translateY(105%);
  transition: transform 0.86s var(--motion-ease-out) 0.08s;
}

.is-motion-ready .cta[data-motion="cta"] .cta__title-line--yellow .cta__title-text { transition-delay: 0.2s; }
.is-motion-ready .cta[data-motion="cta"] .cta__text { transition-delay: 0.36s; }
.is-motion-ready .cta[data-motion="cta"] .cta__text--strong { transition-delay: 0.42s; }
.is-motion-ready .cta[data-motion="cta"] .cta__btns { transition-delay: 0.5s; }
.is-motion-ready .cta[data-motion="cta"] .cta__visit { transition-delay: 0.58s; }

.is-motion-ready .cta[data-motion="cta"].is-inview .cta__body > .section-label,
.is-motion-ready .cta[data-motion="cta"].is-inview .cta__title-text,
.is-motion-ready .cta[data-motion="cta"].is-inview .cta__text,
.is-motion-ready .cta[data-motion="cta"].is-inview .cta__btns,
.is-motion-ready .cta[data-motion="cta"].is-inview .cta__visit {
  opacity: 1;
  transform: none;
}

@media (min-width: 768px) {
  .cta__btns {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  /* FVの黄色帯・写真群と同じ傾斜を、CTAの黄色面と写真にも共通で使う */
  .cta {
    /* 写真比率640:760で-13degになる横方向のずれ */
    --cta-photo-slant: 27.4%;
  }

  .cta::before {
    content: "";
    position: absolute; /* 背景装飾のためレイアウトに影響させない */
    z-index: 0;
    inset: 0 auto 0 max(0px, calc((100% - var(--visual-frame-max)) / 2));
    width: var(--brand-band-width);
    background: var(--color-yellow);
    transform: skewX(var(--brand-slant-angle));
    transform-origin: top left;
  }

  .is-motion-ready .cta[data-motion="cta"]::before {
    transform: skewX(var(--brand-slant-angle)) scaleX(0);
    transition: transform 0.82s var(--motion-ease-sharp);
  }

  .is-motion-ready .cta[data-motion="cta"].is-inview::before {
    transform: skewX(var(--brand-slant-angle)) scaleX(1);
  }

  .cta__inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-l);
    align-items: center;
  }

  .cta__photo {
    display: block;
    /* 上下辺の横ずれを揃え、黄色面と同じ角度の平行四辺形にする */
    clip-path: polygon(
      35% 0,
      100% 0,
      calc(100% - var(--cta-photo-slant)) 100%,
      calc(35% - var(--cta-photo-slant)) 100%
    );
  }

  .cta__photo img {
    display: block;
    width: 100%;
    height: auto;
  }

  .is-motion-ready .cta[data-motion="cta"] .cta__photo {
    clip-path: polygon(
      35% 0,
      35% 0,
      calc(35% - var(--cta-photo-slant)) 100%,
      calc(35% - var(--cta-photo-slant)) 100%
    );
    transition: clip-path 0.86s var(--motion-ease-sharp) 0.08s;
  }

  .is-motion-ready .cta[data-motion="cta"] .cta__photo img {
    transform: scale(1.035);
    transition: transform 1s var(--motion-ease-out) 0.1s;
  }

  .is-motion-ready .cta[data-motion="cta"].is-inview .cta__photo {
    clip-path: polygon(
      35% 0,
      100% 0,
      calc(100% - var(--cta-photo-slant)) 100%,
      calc(35% - var(--cta-photo-slant)) 100%
    );
  }

  .is-motion-ready .cta[data-motion="cta"].is-inview .cta__photo img {
    transform: scale(1);
  }
}

/* ========== Hover / Micro interaction ========== */
@media (hover: hover) and (pointer: fine) {
  .work__card-photo,
  .people__card-photo,
  .jobs__card-photo {
    overflow: hidden;
  }

  .work__card-photo img,
  .people__card-photo img,
  .jobs__card-photo img {
    transition: transform 0.7s var(--motion-ease-out);
  }

  .work__card:hover .work__card-photo img,
  .people__card:hover .people__card-photo img,
  .jobs__card:hover .jobs__card-photo img {
    transform: scale(1.035);
  }

  .env__item-icon {
    transition: transform var(--motion-duration-fast) var(--motion-ease-out);
  }

  .env__item:hover .env__item-icon {
    transform: translateX(3px);
  }

  .jobs__card-link {
    background: linear-gradient(currentColor, currentColor) no-repeat left bottom / 0 1px;
    transition: background-size 0.36s var(--motion-ease-out);
  }

  .jobs__card-link:hover {
    background-size: 100% 1px;
  }
}

/* ユーザーの「視差効果を減らす」設定を最優先するための例外 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* ========== フッター ========== */
.footer {
  color: #fff;
  background: var(--color-black);
  border-top: 1px solid #2a2a2a;
}

.footer__inner {
  display: grid;
  gap: 24px;
  max-width: var(--content-max);
  margin-inline: auto;
  padding: 48px 20px 40px;
}

.footer__logo {
  width: min(100%, 240px);
}

.footer__logo-image {
  display: block;
  width: 100%;
  height: auto;
}

.footer__message {
  margin-top: 16px;
  padding-left: 12px;
  color: #d8d8d8;
  font-size: 0.875rem;
  line-height: 1.7;
  border-left: 3px solid var(--color-yellow);
}

.footer__address {
  margin: 0;
  padding-top: 16px;
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.8;
  color: #bcbcbc;
  border-top: 1px solid #303030;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  width: 100%;
  max-width: 520px;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer__nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  border-bottom: 1px solid #303030;
}

/* エントリーだけ<button>のため、リンクと同じく行幅いっぱいに下線を引く */
button.footer__nav-link {
  width: 100%;
  text-align: left;
}

.footer__nav-link:hover {
  color: var(--color-yellow);
}

@media (min-width: 768px) {
  .footer__inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-areas:
      "company nav"
      "address nav";
    gap: 24px 48px;
    padding: 56px 32px 48px;
  }

  .footer__company {
    grid-area: company;
  }

  .footer__address {
    grid-area: address;
  }

  .footer__nav {
    grid-area: nav;
    max-width: none;
  }
}

/* ========== ダイアログ共通 ========== */
.dialog {
  width: min(calc(100% - 32px), 780px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  color: var(--color-text);
  background: transparent;
  border: 0;
}

.dialog::backdrop {
  background: rgb(0 0 0 / 72%);
  backdrop-filter: blur(3px);
}

.dialog__panel {
  position: relative;
  overflow-y: auto;
  max-height: calc(100dvh - 32px);
  padding: 24px 20px 32px;
  background: var(--color-base);
  border-top: 6px solid var(--color-yellow);
}

.dialog__head {
  position: relative;
  padding-right: 48px;
  padding-bottom: var(--space-s);
  border-bottom: 1px solid var(--color-line);
}

.dialog__eyebrow {
  font-family: var(--font-en);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--color-text-weak);
}

.dialog__title {
  margin-top: 0.25rem;
  font-size: clamp(1.625rem, 5vw, 2.25rem);
  font-weight: 900;
  line-height: 1.35;
}

.dialog__close {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  line-height: 1;
  background: var(--color-base-gray);
}

.dialog__note {
  margin-top: var(--space-s);
  font-size: 0.8125rem;
  color: var(--color-text-weak);
}

/* ========== 募集要項ダイアログ ========== */
.job-detail {
  margin-top: var(--space-m);
}

.job-detail__title {
  font-size: 1.5rem;
  font-weight: 900;
}

.job-detail__list {
  margin-top: var(--space-s);
  border-top: 1px solid var(--color-line);
}

.job-detail__row {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: var(--space-s);
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--color-line);
}

.job-detail__row dt {
  font-size: 0.875rem;
  font-weight: 700;
}

.job-detail__row dd {
  font-size: 0.9375rem;
  color: var(--color-text-weak);
}

.job-detail__entry {
  width: 100%;
  margin-top: var(--space-m);
}

/* ========== エントリーフォーム ========== */
.entry-dialog {
  max-width: 680px;
}

.entry-form__body {
  display: grid;
  gap: 1.25rem;
  margin-top: var(--space-m);
}

.entry-form__lead {
  font-size: 0.9375rem;
  color: var(--color-text-weak);
}

.entry-form__field {
  display: grid;
  gap: var(--space-xs);
}

.entry-form__label {
  font-size: 0.9375rem;
  font-weight: 700;
}

.entry-form__required,
.entry-form__optional {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.2em 0.55em;
  font-size: 0.6875rem;
  line-height: 1.2;
  vertical-align: 0.1em;
}

.entry-form__required {
  color: var(--color-text);
  background: var(--color-yellow);
}

.entry-form__optional {
  color: var(--color-text-weak);
  background: var(--color-base-gray);
}

/* 応募か見学かの選択: 小さなラジオではなく、行全体を押せる大きさにする */
.entry-form__type {
  min-width: 0;
  border: 0;
}

.entry-form__type legend {
  margin-bottom: var(--space-xs);
  padding: 0;
}

.entry-form__choices {
  display: grid;
  gap: var(--space-xs);
}

.entry-form__choice {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  min-height: 52px;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  border: 1px solid #aaa;
  cursor: pointer;
}

.entry-form__choice input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  accent-color: var(--color-text);
}

.entry-form__choice input:focus-visible {
  outline: 3px solid rgb(255 196 0 / 60%);
  outline-offset: 2px;
}

/* 選んだ側をひと目で分かるようにする(:has非対応でもラジオの状態で判別できる) */
.entry-form__choice:has(input:checked) {
  background: rgb(255 196 0 / 22%);
  border-color: var(--color-text);
}

@media (min-width: 768px) {
  .entry-form__choices {
    grid-template-columns: 1fr 1fr;
  }
}

.entry-form__control {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem;
  font: inherit;
  color: var(--color-text);
  background: var(--color-base);
  border: 1px solid #aaa;
  border-radius: 0;
}

.entry-form__control--textarea {
  min-height: 120px;
  resize: vertical;
}

.entry-form__control:focus-visible {
  outline: 3px solid rgb(255 196 0 / 45%);
  outline-offset: 1px;
  border-color: var(--color-text);
}

.entry-form__control:user-invalid {
  border-color: var(--color-error);
}

.entry-form__hint {
  font-size: 0.8125rem;
  color: var(--color-text-weak);
}

.entry-form__privacy {
  padding: var(--space-s);
  font-size: 0.875rem;
  background: var(--color-base-gray);
}

.entry-form__privacy summary {
  width: fit-content;
  font-weight: 700;
  cursor: pointer;
}

.entry-form__privacy p {
  margin-top: var(--space-xs);
  color: var(--color-text-weak);
}

.entry-form__consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  min-height: 44px;
  font-size: 0.9375rem;
  cursor: pointer;
}

.entry-form__consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  accent-color: var(--color-yellow);
}

.entry-form__submit {
  width: 100%;
}

.entry-form__complete {
  padding-block: var(--space-l) var(--space-m);
  text-align: center;
}

.entry-form__complete-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-inline: auto;
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 600;
  background: var(--color-yellow);
  border-radius: 50%;
}

.entry-form__complete h3 {
  margin-top: var(--space-s);
  font-size: 1.5rem;
  font-weight: 900;
}

.entry-form__complete p {
  margin-top: var(--space-xs);
}

.entry-form__demo-note {
  padding: var(--space-s);
  font-size: 0.875rem;
  color: var(--color-text-weak);
  background: var(--color-base-gray);
}

.entry-form__complete-close {
  margin-top: var(--space-m);
}

@media (min-width: 768px) {
  .dialog__panel {
    padding: var(--space-m) 40px 40px;
  }

  .job-detail__row {
    grid-template-columns: 8em minmax(0, 1fr);
  }
}

.footer__demo {
  padding: var(--space-s) 20px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #bcbcbc;
  text-align: center;
  border-top: 1px solid #2a2a2a;
}

.footer__copy {
  padding: var(--space-s) 20px;
  font-size: 0.75rem;
  color: #888;
  text-align: center;
  border-top: 1px solid #2a2a2a;
}

@media (min-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "company nav"
      "address nav";
    gap: 16px var(--space-l);
    align-items: start;
    padding: var(--space-l) 20px;
  }

  .footer__message {
    max-width: 30em;
    font-size: 0.8125rem;
  }

  .footer__address {
    padding-top: 0;
    font-size: 0.8125rem;
    border-top: 0;
  }

  .footer__nav {
    display: flex;
    gap: var(--space-l);
    width: auto;
  }

  .footer__nav-list {
    gap: var(--space-xs);
  }

  .footer__nav-link {
    min-height: 0;
    padding: 0;
    font-size: 0.875rem;
    border-bottom: 0;
  }

}
