/* ========================================
  清本鉄工株式会社 採用LP
  style.css
  更新：2026.04.15

  構造：コンポーネントごとにメディアクエリをまとめて記述
  例）
    .component { ... }
    @media (max-width: 768px) { .component { ... } }
======================================== */


/* ========================================
  :root — 変数定義
======================================== */
:root {
  --color-main:         #006428;
  --color-accent:       #009744;
  --color-accent-hover: #00b050;
  --color-bg-white:     #FFFFFF;
  --color-bg-ivory:     #F5F0E8;
  --color-bg-aqua:      #E6F8FA;
  --color-bg-fv:        #c8f9fe;
  --color-text:         #2A2723;
  --color-text-sub:     #6B6660;
  --color-border:       #E8DFD0;
  --font-body:          'Noto Sans JP', sans-serif;
  --font-heading:       'Zen Kaku Gothic New', sans-serif;
  --font-en:            'Outfit', sans-serif;
  --content-width:      1200px;
  --header-height:      70px;
  --section-py:         100px;
  --section-py-sp:      64px;
}

@media (max-width: 768px) {
  :root { --section-py: var(--section-py-sp); }
}


/* ========================================
  リセット・ベース
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-en), var(--font-body);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.8;
  background-color: var(--color-bg-white);
  -webkit-font-smoothing: antialiased;
  padding-top: var(--header-height);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }


/* ========================================
  共通レイアウト：.inner
======================================== */
.about__inner,
.number__inner,
.voice__inner,
.number-voice .number__inner,
.number-voice .voice__inner,
.team-challenge__inner,
.job-map__inner,
.schedule__inner,
.realistic__inner,
.message__inner,
.faq__inner,
.flow__inner {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 24px;
}


/* ========================================
  セクション共通：背景色・上下余白
======================================== */
.about                             { background-color: var(--color-bg-ivory); }
.number-voice                      { background-color: var(--color-bg-white); }
.team-challenge, .job-map,
.schedule, .faq                    { background-color: var(--color-bg-ivory); }
.realistic, .message, .flow        { background-color: var(--color-bg-aqua); }

.about, .number-voice,
.team-challenge, .job-map,
.schedule, .realistic, .message,
.faq, .flow {
  padding-block: var(--section-py);
}


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

.site-header__inner {
  height: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo { display: flex; align-items: center; }

.site-header__nav-list {
  display: flex;
  align-items:center;
  gap: 32px;
  gap: max(24px,2vw);
}

.site-header__nav-list a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(13px, calc(9px + 0.28vw), 14px);
  color: var(--color-text);
  transition: color 0.2s;
}

.site-header__nav-list a:hover { color: var(--color-accent); }

.site-header__nav-cta {
  display: inline-flex;
  align-items: center;
  padding: clamp(8px, 0.6vw, 10px) clamp(16px, 1.4vw, 22px);
  background-color: var(--color-main);
  color: var(--color-bg-white) !important;
  border-radius: 100px;
  font-size: clamp(13px, calc(9px + 0.28vw), 14px) !important;
  font-weight: 700 !important;
  transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s !important;
}

.site-header__nav-cta:hover {
  background-color: var(--color-accent-hover) !important;
  transform: translateX(3px);
  box-shadow: 2px 2px 8px rgba(0, 100, 40, 0.3);
}

/* ハンバーガーボタン */
.site-header__hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
}

.site-header__hamburger-line {
  display: block;
  width: 36px;
  height: 2px;
  background-color: var(--color-main);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}


.site-header__hamburger-label {
  display: block;
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 11px;
  color: var(--color-main);
  letter-spacing: 0.1em;
  margin-top: 4px;
  line-height: 1;
}

.site-header__hamburger[aria-expanded="true"] .site-header__hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.site-header__hamburger[aria-expanded="true"] .site-header__hamburger-line:nth-child(2) { opacity: 0; }
.site-header__hamburger[aria-expanded="true"] .site-header__hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 940px) {
  /* ロゴ・ハンバーガーをオーバーレイ（z-index:99）より前面に */
  .site-header__logo      { position: relative; z-index: 100; }
  .site-header__hamburger { display: flex; position: relative; z-index: 100; }
  .site-header__inner     { padding-inline: 32px; }

  /* フルスクリーンオーバーレイ */
  .site-header__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: var(--header-height);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 99;
  }

  .site-header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-header__nav-list { flex-direction: column; gap: 0; padding: 0; }
  .site-header__nav-list li { width: 100%; }

  .site-header__nav-list a {
    display: block;
    padding: 20px 24px;
    font-size: 18px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
  }

  .site-header__nav-list a:last-child { border-bottom: none; }

  .site-header__nav-cta {
    margin: 16px auto 0;
    display: block;
    text-align: center;
    border-radius: 40px;
    padding: 14px 24px;
    width: max(200px, 60%);
    font-size: 16px !important;
  }
  .site-header__nav-list li:last-child .site-header__nav-cta { margin-top: 16px; }
}


/* ========================================
  共通コンポーネント：.section-header
======================================== */
.section-header {
  margin-bottom: min(56px,2vw);
}

.section-header__label {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 32px);
  color: var(--color-text-sub);
  letter-spacing: 0.08em;
  margin-bottom: min(8px,1.2vw);
  line-height: 1;
}

.section-header__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 52px);
  color: var(--color-main);
  line-height: 1.3;
  line-height: 1;
  padding-left: 20px;
  border-left: 5px solid var(--color-accent);
}

@media (max-width: 768px) {
  .section-header__title { font-size: clamp(26px, 6vw, 36px); }
}


/* ========================================
  共通コンポーネント：.btn
======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 100px;
  font-family: var(--font-en), var(--font-body);
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn--primary { background-color: var(--color-main); color: var(--color-bg-white); border-color: var(--color-main); }

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateX(3px);
  box-shadow: 3px 4px 12px rgba(0, 100, 40, 0.3);
}

.btn--outline { background-color: transparent; color: var(--color-main); border-color: var(--color-accent); }

.btn--outline:hover {
  background-color: var(--color-accent);
  color: var(--color-bg-white);
  transform: translateX(3px);
  box-shadow: 3px 4px 12px rgba(0, 151, 68, 0.25);
}

@media (max-width: 768px) {
  .btn { padding: 14px 28px; font-size: 15px; }
}


/* ========================================
  共通コンポーネント：.wave
======================================== */
.wave {
  position: relative;
  height: 80px;
  overflow: hidden;
  display: block;
  line-height: 0;
}

.wave__layer { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; }
.wave--fv-to-ivory    { background-color: var(--color-bg-fv); }
.wave--ivory-to-white { background-color: var(--color-bg-ivory); }
.wave--white-to-ivory { background-color: var(--color-bg-white); }
.wave--ivory-to-aqua  { background-color: var(--color-bg-ivory); }
.wave--aqua-to-ivory  { background-color: var(--color-bg-aqua); }

/* カンプ専用：S02→S03 グリーン波 */
.wave--to-number {
  position: relative;
  z-index: 1;
  height: clamp(80px, 15.6vw, 225px);
  overflow: hidden;
  background-color: var(--color-bg-ivory);
  line-height: 0;
  margin-top: -2px;
}

.wave--to-number svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

@media (max-width: 768px) {
  .wave--to-number {
    height: clamp(60px, 20vw, 120px);
  }
}

.wave__layer--back { animation: wave-back 8s linear infinite; }
.wave__layer--front { animation: wave-front 6s linear infinite; }

@keyframes wave-back  { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes wave-front { 0% { transform: translateX(0); } 100% { transform: translateX(50%); } }

@media (max-width: 768px) {
  .wave { height: 48px; }
}


/* ========================================
  共通コンポーネント：.illust
======================================== */
.illust { position: relative; display: flex; align-items: center; justify-content: center; }

.illust--float { animation: illust-float 4s ease-in-out infinite; }

@keyframes illust-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes float-idle {
  0%, 82%, 97%, 100% { transform: translateY(0); }
  88%                 { transform: translateY(-8px); }
}

@keyframes float-idle-fv {
  0%, 82%, 97%, 100% { transform: translateY(0) rotate(0deg); }
  88%                 { transform: translateY(-14px) rotate(2.5deg); }
}

@keyframes float-idle-left {
  0%, 82%, 97%, 100% { transform: translateY(0) rotate(0deg); }
  88%                 { transform: translateY(-8px) rotate(-2.5deg); }
}


/* ========================================
  共通コンポーネント：.js-fade-in
======================================== */
.js-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-fade-in.is-visible { opacity: 1; transform: translateY(0); }


/* ========================================
  S01 FV
======================================== */

/* FV本体 */
.fv {
  position: relative;
  overflow: hidden;
  background-color: var(--color-bg-fv);
  /* height: calc(100vw - var(--header-height)); */
  height: min(50vw,780px);
  min-height: 400px;
  max-height: 780px;
}

@media (max-width: 650px) {
  .fv {
    height: auto;
    /* max-height: none; */
    min-height: 500px;
    padding-bottom: 80px;
  }
}

/* ① 背景工場イラスト */
.fv__bg {
  position: absolute;
  bottom: 0;
  right: -8vw;
  width: 100%;
  min-width: 600px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

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

/* ② テキストブロック */
.fv__content {
  position: absolute;
  top: max(6vw,60px);
  left: max(24px, calc(50% - 696px));
  z-index: 3;
}

@media (max-width: 650px) {
  .fv__content {
    position: relative;
    top: auto;
    /* top: 20px; */
    left: auto;
    padding-top: 24px;
    padding-left: 24px;
    width: 100%;
    z-index: 3;
  }
}

/* サイト名 */
.fv__site-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(16px, 1.94vw, 28px);
  color: var(--color-main);
  margin-bottom: clamp(6px, 0.8vw, 12px);
  white-space: nowrap;
}

@media (max-width: 650px) {
  .fv__site-name {
    font-size: 12px;
    margin-bottom: 8px;
    margin-left: 2px;
  }
}

/* メインコピーSVG */
.fv__heading { margin-bottom: clamp(16px, 1.7vw, 24px); line-height: 1; }

.fv__heading-svg { width: clamp(280px, 43.2vw, 622px); height: auto; display: block; }

@media (max-width: 650px) {
  /* .fv__heading { margin-bottom: 8px; } */
  .fv__heading-svg { width: 268px; }
}

/* サブコピーSVG */
.fv__body { margin-bottom: clamp(6px, 0.8vw, 12px); line-height: 1; }

.fv__body-svg { width: clamp(180px, 27vw, 390px); height: auto; display: block; }

@media (max-width: 650px) {
  .fv__body { margin-bottom: 0; }
  .fv__body-svg { width: 251px; }
}

/* 英語キャッチ */
.fv__sub {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(14px, 1.67vw, 24px);
  color: var(--color-text);
  line-height: 1.65;
}

@media (max-width: 650px) {
  .fv__sub { display: none; }
}

/* SP CTAボタン */
.fv__cta-sp { display: none; }

@media (max-width: 650px) {
  .fv__cta-sp {
    display: flex;
    flex-direction: column;
    max-width: 360px;
    gap: 20px;
    padding: max(100px,10vw) 24px 0 0;
    position: relative;
    z-index: 4;
  }
}

.btn--sp-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 28px;
  background-color: var(--color-bg-white);
  border: 3px solid var(--color-main);
  border-radius: 40px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  color: var(--color-main);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.btn--sp-cta:hover { background-color: var(--color-main); color: var(--color-bg-white); }
.btn--sp-cta .btn__num { font-family: var(--font-en); font-weight: 800; }

/* ③ キャラクターイラスト */
.fv__illust {
  position: absolute;
  right: max(8vw,24px);
  bottom: 0%;
  z-index: 2;
  display: flex;
  align-items: flex-end;
}

.fv__illust-img { 
  width: clamp(340px, 48vw, 730px); 
  height: auto; display: block; 
  animation: float-idle-fv 5s ease-in-out 0s infinite;
}

@media (max-width: 650px) {
  .fv__illust { bottom: -7vw; right: -4vw;}
  .fv__illust-img { width: max(50vw,320px); max-width: none; }
}

/* ④ 波 */
.fv__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: clamp(100px, 12.8vw, 185px);
  z-index: 3;
  pointer-events: none;
  line-height: 0;
}

.fv__wave svg { width: 100%; height: 100%; display: block; }

@media (max-width: 650px) {
  .fv__wave { height: 80px; }
}


/* ========================================
  S02 キヨモトとは？
======================================== */

.about {
  padding-top: max(32px,4vw);
  margin-top: -2px;
}

/* section-headerをS02用に上書き
   縦線アクセント不要・マージン調整 */
.about .section-header {
  margin-bottom: 16px;
}

.about .section-header__label {
  font-size: clamp(20px, 2.5vw, 32px);
  letter-spacing: 0.04em;
}

.about .section-header__title {
  border-left: none;
  padding-left: 0;
}

/* 上段：見出し リード文（左） ＋ 事業カード（右）
   Figma: 事業カード top:43px = 見出しと同じ高さから始まる */
.about__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items:end;
  margin-bottom: 48px;
}

.about__head-left {
  display: flex;
  flex-direction: column;
}

.about__lead {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  color: #333;
}

@media (max-width: 768px) {
  .about__head {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
.about__sector-card {
  border: 2px solid var(--color-main);
  border-radius: 10px;
  background: var(--color-bg-white);
  overflow: hidden;
  padding: 16px 0;
  /* gridの子要素でwidth:max-contentが効くよう必須 */
  min-width: 0;
}

.about__sector-marquee {
  overflow: hidden;
  width: 100%;
}

.about__sector-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: sector-scroll 20s linear infinite;
  list-style: none;
  padding: 4px 0;
}

/* ホバーで一時停止 */
.about__sector-marquee:hover .about__sector-track {
  animation-play-state: paused;
}

@keyframes sector-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.about__sector-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
  width: 160px;
}

.about__sector-img-wrap {
  width: 160px;
  aspect-ratio: 4 / 3;
  border-radius: 7px;
  overflow: hidden;
}

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

.about__sector-label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .about__top {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .about__sector-track {
    animation-duration: 16s;
  }
  .about__sector-item {
    width: 120px;
  }
  .about__sector-img-wrap {
    width: 120px;
  }
}

/* 中段：日本社会カード
::beforeで枠を描画・子要素はabsoluteで独立配置 */

/* contentラッパー：PC版では見た目に影響させない */
.about__company-content {
  position: static;
}

.about__company-card {
  position: relative;
  max-width: 1080px;
  /* 枠の高さ: Figma h:196px を比率でスケール */
  min-height: clamp(160px, 13.6vw, 196px);
  margin: min(8vw,80px) auto clamp(60px, 8vw, 100px);
  /* はみ出しを許可 */
  overflow: visible;
}

/* ::beforeで枠を描画 */
.about__company-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-main);
  border-radius: 10px;
  background: var(--color-bg-white);
  pointer-events: none;
  z-index: 0;
}

/* 人物イラスト：左端・上にはみ出す
   Figma: top:-34px left:0 w:178px h:228px */
.about__company-illust {
  position: absolute;
  left: max(-16px,-2vw);
  bottom: 0;
  width: clamp(120px, 12.4vw, 190px);
  z-index: 2;
}

.about__company-illust img {
  width: 100%;
  height: auto;
  display: block;
  animation: float-idle 5s ease-in-out 1.5s infinite;
}

/* テキストブロック
   PC：イラスト右から写真エリア手前まで
   Figma: left:353px（イラスト幅+余白）top:31px */
.about__company-body {
  position: absolute;
  left: clamp(130px, 14vw, 200px);
  top: clamp(16px, 2.2vw, 31px);
  /* 写真エリア幅(22vw+右余白4vw)を除いた残り */
  right: clamp(240px, 28vw, 340px);
  max-width: none;
  z-index: 1;
}

.about__company-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(15px, 1.4vw, 20px);
  color: var(--color-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.about__company-text {
  font-size: clamp(13px, 1.1vw, 16px);
  font-weight: 700;
  line-height: 1.7;
  color: #333;
  max-width: none;
}

/* 右側写真2枚：上下どちらも枠からはみ出す
   Figma: 上写真 top:-26px、下写真 top:+87px */
.about__company-photos {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
  width: clamp(200px, 22vw, 320px);
  height: clamp(160px, 18vw, 260px);
}

.about__company-photo {
  width: clamp(140px, 15.3vw, 220px);
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  position: absolute;
}

/* 上の写真：左上基準、枠上辺からはみ出す */
.about__company-photo--top {
  left: 0;
  top: clamp(-20px, -1.8vw, -26px);
  z-index: 1;
}

/* 下の写真：1枚目に被せて右下にオフセット */
.about__company-photo--bottom {
  left: clamp(40px, 6vw, 80px);
  top: clamp(60px, 7vw, 100px);
  z-index: 2;
}

@media (max-width: 768px) {
  /* SP：縦フロー配置に切り替え */
  .about__company-card {
    height: auto;
    min-height: unset;
    margin-bottom: 40px;
    /* 上部余白：枠はイラスト途中から始まるので小さめ */
    padding: 20px 20px 24px;
    /* イラストはみ出し分の空間を枠の上に確保 */
    margin-top: clamp(54px, 16vw, 70px);
  }

  .about__company-card::before {
    inset: 0;
    height: auto;
  }

  /* 人物イラスト：枠上辺からはみ出す（上半身が枠外）
     枠top基準で上にはみ出す */
  .about__company-illust {
    position: absolute;
    left: 10px;
    /* 枠上辺より上にはみ出す量 */
    top: clamp(-80px, -20vw, -60px);
    bottom: auto;
    width: clamp(100px, 30vw, 130px);
    z-index: 2;
  }

  /* contentラッパー：縦フロー */
  .about__company-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  /* タイトル行：イラストと下揃えにするためflexで配置 */
  .about__company-body {
    position: static;
    right: auto;
    top: auto;
    max-width: 100%;
  }

  .about__company-title {
    font-size: clamp(16px, 4.5vw, 20px);
    line-height: 1.4;
    /* イラスト幅分の左余白で右に寄せてイラストと下揃え */
    padding-left: clamp(100px, 30vw, 130px);
    /* 左余白 */
    margin-top: min(16px,1vw);
    /* margin-bottom: 12px; */
  }

  .about__company-text {
    position: static;
    font-size: 14px;
    max-width: 100%;
    left: auto;
    top: auto;
    /* 本文はイラストが終わった後なので余白なし */
    padding-left: 0;
    margin-top: max(16px,5vw);
  }

  /* 写真2枚：テキスト下・枠下辺からはみ出す */
  .about__company-photos {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: clamp(100px, 20vw, 190px);
    /* 枠下辺からはみ出す */
    margin-bottom: clamp(-40px, -12vw, -20px);
  }

  .about__company-photo {
    /* 2枚の合計見た目幅がテキスト幅と同程度になるサイズ */
    width: clamp(140px, 36vw, 300px);
    position: absolute;
  }

  .about__company-photo--top {
    left: 0;
    top: 0;
    z-index: 1;
    margin-top: 0;
  }

  /* 2枚目：重なりを少なくして右にずらす
     left = 1枚幅 × 0.6 程度 */
  .about__company-photo--bottom {
    left: clamp(140px, 40vw, 320px);
    top: clamp(20px, 5vw, 60px);
    z-index: 2;
  }
}

/* 下段：特徴3カード
   PC：中>左>右の順で高さ位置が異なる
   Figma: 左top:595 中top:562 右top:637（中が最も高い）
   差分：左 33、右 75（中基準） */
.about__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
  align-items: end;
  /* イラストはみ出し分の上部空間 */
  padding-top: clamp(40px, 10vw, 160px);
}

.about__feature-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* 各カードのPC時縦位置 */
.about__feature-card--1 {
  /* margin-top: 33px; */
  z-index: 1;
}
.about__feature-card--2 {
  /* margin-top: 0; */
  z-index: 2;
}
.about__feature-card--3 {
  /* margin-top: 75px; */
  z-index: 3;
}

/* イラスト：絶対配置でカード上部に配置・左右にはみ出す */
.about__feature-img-wrap {
  position: absolute;
  /* カード上辺からイラスト高さ分上に配置 */
  bottom: 80%;
  left: 50%;
  transform: translateX(-50%);
  /* カード幅より広く */
  width: min(30vw,320px);
  max-width: 400px;
  z-index: 1;
  overflow: visible;
}

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

/* 文章カード：イラストより前面 */
.about__feature-body {
  background: var(--color-bg-white);
  border: 2px solid var(--color-main);
  border-radius: 10px;
  padding: 24px 20px 24px;
  position: relative;
  z-index: 2;
  flex: 1;
}

.about__feature-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(18px, 1.4vw, 20px);
  color: var(--color-main);
  margin-bottom: 12px;
  line-height: 1.3;
}

.about__feature-text {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: #333;
}

@media (max-width: 768px) {
  .about__features {
    grid-template-columns: 1fr;
    gap: 32px;
    /* SP：イラストが大きいので上部空間を広めに */
    padding-top: clamp(200px, 60vw, 280px);
  }

  /* SPも縦位置にずれを付けてリズムを出す */
  .about__feature-card--1 { margin-top: 0; }
  .about__feature-card--2,
  .about__feature-card--3 {
    margin-top: min(200px,50vw);
  }

  /* SP：イラストを画面幅いっぱいに */
  .about__feature-img-wrap {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    bottom: 80%;
  }
}


/* ========================================
  フッター
======================================== */
.site-footer {
  background-color: var(--color-main);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding-block: 24px;
  font-size: 13px;
  font-family: var(--font-body);
}


/* ========================================
  S03 数字で見るキヨモト ＆ 若手社員の声
======================================== */

/* セクション全体 */
.number-voice {
  position: relative;
  /* overflowはvisible：イラストが波線エリアにはみ出すため */
  overflow: visible;
  /* padding-top: 0 !important; */
  margin-top: -2px;
  z-index: 2;
  padding: 0;
}

/* 背景写真：セクション内に収める */
.number-voice__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.number-voice__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* opacity: 0.08; */
  /* filter: blur(3.5px); */
  display: block;
}

/* innerを背景より前面に */
.number-voice .number__inner,
.number-voice .voice__inner {
  position: relative;
  z-index: 2;
}

/* --- Number ヘッダー --- */
.number__head {
  /* イラストのabsolute基準にするためrelative */
  position: relative;
  /* イラストが上にはみ出せるようoverflow: visible */
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  /* テキスト側の上余白のみ */
  padding-top: clamp(32px, 2vw, 48px);
  margin-bottom: 40px;
}

/* ラベル「Number」 */
.number__head-label {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 32px);
  color: var(--color-text-sub);
  letter-spacing: 0.08em;
  line-height: 1;
  margin-bottom: 6px;
}

/* 見出し「数字で見るキヨモト」 */
.number__head-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(32px, 3.6vw, 52px);
  color: var(--color-main);
  line-height: 1;
  white-space: nowrap;
}

/* 右側イラスト：absoluteで波線エリアに突き出す */
.number__head-illust {
  position: absolute;
  right: 0;
  bottom: clamp(-40px, -18vw, -240px);
  width: clamp(280px, 46vw, 540px);
  /* 波線のz-index(1)より前面に */
  z-index: 3;
  pointer-events: none;
}

.number__head-illust img {
  width: 100%;
  height: auto;
  display: block;
  
}

@media (max-width: 768px) {
  .number__head {
    flex-direction: column;
    align-items: flex-start;
    /* padding-top: clamp(80px, 20vw, 130px); */
    margin-bottom: 20px;
    gap: 4px;
  }
  .number__head-illust {
    width: clamp(180px, 55vw, 260px);
    bottom: clamp(24px, 18vw, 40px);
    right: clamp(-60px, -12vw, -20px);
  }
  .number__head-title {
    white-space: normal;
    font-size: clamp(28px, 7vw, 36px);
  }
}

/* --- データカード3枚 --- */
.number__cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: clamp(100px,12vw,150px);
  margin-bottom: 56px;
  position: relative;
  overflow: visible;
}

/* 工場イラスト：number__head基準でabsolute配置 */
.number__cards-illust-founding {
  position: absolute;
  left: clamp(16px, 2.4vw, 30px);
  /* bottom: clamp(-220px, -22vw, -120px); */
  top: clamp(100px,12vw,150px);
  /* width: clamp(180px, 24vw, 320px); */
  width: 430px;
  pointer-events: none;
  z-index: 0;
}

.number__cards-illust-founding img {
  width: 100%;
  height: auto;
  display: block;
}

/* 売上アイコン：売上カード内・右上にabsolute */
.number__cards-illust-sales {
  position: absolute;
  top: max(68px, 2vw);
  right: min(24px, 10vw);
  width: max(24px, 3.6vw);
  max-width: 48px;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 900px) {
  .number__cards-illust-sales {
    top: max(60px, 2vw);
    right: min(24px, 10vw);
    width: max(20px, 6vw);
  }
}
@media (max-width: 600px) {
  .number__cards-illust-sales {
    top: 20px;
    right: max(24vw,24px);
    /* transform: translateX(-100%); */
    width: 40px;
  }
}


.number__cards-illust-sales img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 900px) {
  .number__cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .number__cards {
    grid-template-columns: 1fr;
  }
  .number__cards-illust-founding {
    width: clamp(140px, 80vw, 320px);
    left: -2vw;
  }
}

.number__card {
  background: rgba(255,255,255,1);
  border: 2px solid var(--color-main);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.number__card-inner {
  padding: 28px 24px 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.number__card-label {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1;
}

.number__card-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
  margin-bottom: 8px;
}

.number__card-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(56px, 6.4vw, 80px);
  color: var(--color-main);
  line-height: 1;
  letter-spacing: -0.02em;
}

.number__card-unit {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  color: var(--color-main);
  line-height: 1;
}

.number__card-unit--lg {
  font-size: 28px;
}

.number__card-sub {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
  line-height: 1;
}

.number__card-sub-num {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-main);
}

.number__card-note {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-sub);
  margin-top: 4px;
}

/* 拠点カード */
.number__card--base {
  grid-column: span 1;
}

@media (max-width: 900px) {
  .number__card--base {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .number__card--base {
    grid-column: span 1;
  }
}

.number__base-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.number__base-item--wide {
  grid-column: span 1;
}

.number__base-item--group {
  grid-column: span 1;
}

.number__base-label {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 15px;
  text-align: left;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 2px;
}

.number__base-sublabel {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 12px;
  /* color: var(--color-text-sub); */
  line-height: 1.4;
  text-align: left;
  margin-top: 1px;
}

.number__base-value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  line-height: 1;
}

.number__base-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(40px, 4vw, 56px);
  color: var(--color-main);
  line-height: 1;
  letter-spacing: -0.02em;
}

.number__base-num--sm {
  font-size: clamp(32px, 3.2vw, 44px);
}

.number__base-unit {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 14px;
  color: var(--color-text);
}

.number__base-group-row {
  display: flex;
  gap: 16px;
  align-items: flex-end;
}

/* --- 数字で見る働く環境 --- */
.number__env {
  position: relative;
}

@media (max-width: 768px) {
  .number__env {
    /* イラストが上から重なる分の余白（イラスト突き出し量60px - 重なり量20px） */
    margin-top: 40px;
  }
}

.number__env-head {
  margin-bottom: 24px;
}

.number__env-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--color-main);
  line-height: 1;
}

/* イラストをカードグリッド右上に絶対配置 */
.number__env-illust {
  position: absolute;
  width: clamp(160px, 13vw, 180px);
  top: clamp(-80px, -4vw, -200px);
  left: clamp(60px, 23vw, 500px);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 768px) {
  .number__env-illust {
    top: clamp(-70px, 0vw, -100px);
    left: clamp(60px, 40vw, 500px);
    z-index: 0;
    pointer-events: none;
  }
}

.number__env-illust img {
  width: 100%;
  height: auto;
  display: block;
}

.number__env-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  position: relative;
}

@media (max-width: 900px) {
  .number__env-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .number__env-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.number__env-card {
  background: rgba(255,255,255,1);
  border: 2px solid var(--color-main);
  border-radius: 12px;
  padding: 16px 16px 14px;
  text-align: center;
}

.number__env-card-label {
  font-family: var(--font-heading);
  font-weight: 900;
  /* font-size: clamp(15px, 1.1vw, 16px); */
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 8px;
  white-space: nowrap;
}

.number__env-card-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  line-height: 1;
  margin-bottom: 4px;
}

.number__env-card-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(40px, 4.5vw, 60px);
  color: var(--color-main);
  line-height: 1;
  letter-spacing: -0.02em;
}

.number__env-card-unit {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 14px;
  color: var(--color-text);
}

.number__env-card-note {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-text-sub);
}

@media (max-width: 768px) {
  .number__env-card-label { font-size: 16px; }
  .number__env-card-num { font-size: clamp(36px, 10vw, 52px); }
}

/* ========================================
  Voice セクション
======================================== */

.voice__inner {
  padding-top: 80px;
}

/* ヘッダー */
.voice__head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 48px;
}

.voice__head-illust {
  width: clamp(70px, 8vw, 110px);
  flex-shrink: 0;
  margin-bottom: -8px;
  animation: float-idle-fv  5s ease-in-out 2.5s infinite;
}

.voice__head-illust img {
  width: 100%;
  height: auto;
  display: block;
}

.voice__head-text .section-header__label {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: clamp(20px, 2.5vw, 32px);
  color: var(--color-text-sub);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: min(8px,1.2vw);
}

.voice__head-text .section-header__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(28px, 3.6vw, 52px);
  color: var(--color-main);
  line-height: 1.2;
  border-left: none;
  padding-left: 0;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.voice__head-note {
  font-size: clamp(13px, 1.4vw, 20px);
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

@media (max-width: 768px) {
  /* 縦並び・中央揃え・イラスト絶対配置の基準 */
  .voice__head {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 16px;
    gap: 0;
    position: relative;
    /* イラストがはみ出す分の下余白 */
    /* padding-bottom: 60px; */
  }
  /* イラストを絶対配置でnumber__env側に突き出す */
  .voice__head-illust {
    position: absolute;
    bottom: 60px;
    /* left: 50%; */
    /* transform: translateX(-50%); */
    width: 70px;
    margin-bottom: 0;
  }
  .voice__head-text {
    text-align: center;
  }
  .voice__head-text .section-header__title {
    font-size: 25px;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
  }
  .voice__head-text .section-header__label {
    text-align: center;
  }
  .voice__head-note {
    font-size: 12px;
  }
}

/* カードグリッド */
.voice__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .voice__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .voice__grid {
    grid-template-columns: 1fr;
  }
}

/* カード共通 */
.voice__card {
  background: var(--color-bg-white);
  border-radius: 0 0 24px 0;
  border-radius: 24px 0 24px 0;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 100, 40, 0.08);
  display: flex;
  flex-direction: column;
}

.voice__card-header {
  background-color: var(--color-main);
  padding: 12px 20px;
}

.voice__card-question {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(15px, 1.4vw, 18px);
  color: #fff;
  line-height: 1.5;
  text-align: center;
}

.voice__card-body {
  background: var(--color-bg-white);
  padding: 12px 20px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.voice__card-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.voice__card-item--1st .voice__card-text {
  font-size: clamp(16px, 1.5vw, 20px);
}

.voice__card-rank-img {
  width: 34px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.voice__card-rank-img--sm {
  width: 20px;
}

.voice__card-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--color-text);
  line-height: 1.4;
}

.voice__card-text--bold {
  font-weight: 900;
}

/* ドーナツカード */
.voice__card-body--center {
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 16px;
  padding: 20px 16px;
}

.voice__donut-wrap {
  flex-shrink: 0;
  width: clamp(90px, 10vw, 120px);
}

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

.voice__donut-bg {
  /* グレーの背景リング */
}

.voice__donut-fg {
  transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 初期状態：アニメーション前は dashoffset = 全周（289） */
.voice__donut-fg {
  stroke-dashoffset: 289;
}

/* is-animatedクラスが付いたら描画 */
.voice__donut-fg.is-animated {
  /* JSでstroke-dashoffsetをdata-valueから計算して設定 */
}

.voice__donut-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 110px;
}

.voice__donut-desc {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: clamp(12px, 1vw, 16px);
  color: var(--color-text);
  line-height: 1.4;
  text-align: center;
}

.voice__donut-pct {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.voice__donut-num {
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(44px, 4.8vw, 64px);
  color: var(--color-main);
  line-height: 1;
  letter-spacing: -0.02em;
}

.voice__donut-sign {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 18px;
  color: var(--color-text);
}

@media (max-width: 768px) {
  /* .voice__card-question { font-size: 13px; } */
  .voice__card-body--center { flex-direction: row; gap: 12px; }
  .voice__donut-wrap { width: 80px; }
  .voice__donut-num { font-size: 40px; }
}


/* ========================================
  S04 未経験でもチームで成長できる環境
======================================== */

/* セクション全体 */
.team-challenge {
  position: relative;
  padding-top: min(40px,2vw);
  /* padding-bottom: calc(var(--section-py) + 120px); */
}

/* S03末尾波：white → ivory
   静止レイヤー（塗り固定）＋アニメーションレイヤー（上辺のみ動く） */
.wave--white-to-ivory-kiyomoto {
  position: relative;
  height: clamp(48px, 5vw, 72px);
  overflow: hidden;
  line-height: 0;
  display: block;
  z-index: 0;
}

/* アニメーションレイヤー：上辺の波ラインだけ動かす
   2倍幅のSVGをtranslateXで左にスライドさせループ */
.wave-kiyomoto__anim {
  position: absolute;
  bottom: -2px;
  left: 0;
  /* 2倍幅を表示領域いっぱいに（translateXで半分ずれてもループ） */
  width: 200%;
  height: 100%;
  display: block;
  animation: wave-kiyomoto 8s linear infinite;
}

@keyframes wave-kiyomoto {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .wave--white-to-ivory-kiyomoto {
    height: clamp(36px, 8vw, 48px);
  }
}

/* S04の見出し縦線を無効化（共通コンポーネントの上書き） */
.team-challenge .section-header__title {
  line-height: 1.33;
  padding-left: 0;
  border-left: none;
}

/* 上段：見出しエリアのみ（イラストは__inner基準で絶対配置） */
.team-challenge__top {
  /* イラストと重ならないよう右側に余白を確保 */
  padding-right: clamp(300px, 38vw, 460px);
  margin-bottom: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 768px) {
  .team-challenge__top {
    padding-right: 0;
  }
}

.team-challenge__inner {
  position: relative;
  z-index: 2; /* wave-top(z-index:2)と同値だが、DOMの後ろにあるため前面に描画される */
}

.team-challenge__head {
  /* 特に制約なし・topのpadding-rightで制御 */
}

.team-challenge__head .section-header{
  margin-bottom: 0;
}

.team-challenge__lead {
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.8;
  color: var(--color-text);
  margin-top: 20px;
}

/* イラスト01：__inner基準で絶対配置・右上に固定 */
.team-challenge__illust-main {
  position: absolute;
  right: max(0px, calc(50% - 600px)); /* コンテンツ幅右端に合わせる */
  top: clamp(-20px, -2vw, 0px);
  width: 440px;
  z-index: 3;
  pointer-events: none;
}
.team-challenge__illust-main img {
  width: 100%;
  height: auto;
  display: block;
  animation: float-idle-left 5s ease-in-out 0.8s infinite;
}
@media (max-width: 1024px) {
  .team-challenge__illust-main {
    width: clamp(280px, 38vw, 440px);
    right: 0;
  }
}
@media (max-width: 768px) {
  .team-challenge__illust-main {
    position: relative;
    right: auto;
    top: auto;
    width: clamp(200px, 60vw, 300px);
    margin: 0 auto 16px;
    animation: none;
  }
}

/* 3カード横並び */
.team-challenge__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 2vw, 24px);
  margin-bottom: clamp(20px, 3vw, 36px);
  /* イラスト下部との重なりを作る（値で重なり量を調整） */
  position: relative;
  z-index: 3;
}
@media (max-width: 768px) {
  .team-challenge__cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.team-challenge__card {
  background: var(--color-bg-white);
  border: 2px solid var(--color-main);
  border-radius: 10px;
  padding: clamp(16px, 2vw, 28px) clamp(16px, 1.5vw, 20px);
  padding-top: clamp(40px, 4vw, 56px); /* 数字の高さ分だけ上余白を確保 */
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.team-challenge__card:hover {
  box-shadow: 0 8px 24px rgba(0, 100, 40, 0.12);
}

/* 装飾数字：絶対配置でカード左上に大きく配置 */
.team-challenge__card-number {
  position: absolute;
  top: clamp(-8px, -0.5vw, -4px);
  top: clamp(8px, 7vw, 20px);
  left: clamp(10px, 1.2vw, 16px);
  left:clamp(16px, 12.2vw, 28px);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: clamp(64px, 7vw, 88px);
  line-height: 1;
  color: #d3e9e0;
  color: #EBF4F0;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  margin: 0;
}

.team-challenge__card-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--color-main);
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.team-challenge__card-body {
  font-size: clamp(13px, 1vw, 16px);
  line-height: 1.7;
  color: var(--color-text);
  text-align: justify;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* 下段：配属地区＋専門学校エリア */
.team-challenge__bottom {
  display: grid;
  grid-template-columns: minmax(0, 590px) 1fr;
  gap: clamp(16px, 2vw, 32px);
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 60px);
  position: relative;
  z-index: 4; /* js-fade-inのtransformがstacking contextを作るため、cards(z-index:3)より上に設定 */
}
@media (max-width: 768px) {
  .team-challenge__bottom {
    grid-template-columns: 1fr;
  }
}

/* 配属地区ボックス */
.team-challenge__location {
  background: var(--color-bg-white);
  border: 2px solid var(--color-main);
  border-radius: 10px;
  padding: clamp(24px, 2.5vw, 32px) clamp(20px, 2vw, 40px);
}

.team-challenge__location-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--color-main);
  margin: 0 0 4px;
}

.team-challenge__location-body {
  font-size: clamp(13px, 1vw, 14px);
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

/* 専門学校制度エリア（イラスト02＋テキスト） */
.team-challenge__school {
  width: clamp(260px, 34vw, 420px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: -50px;
  position: relative;
  z-index: 4;
}
@media (max-width: 768px) {
  .team-challenge__school {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 0;
  }
}

.team-challenge__illust-sub {
  width: clamp(130px, 14vw, 200px);
  margin-left: 40px;
  animation: float 4s ease-in-out 1s infinite;
}
.team-challenge__illust-sub img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .team-challenge__illust-sub {
    margin-left: 0;
    flex-shrink: 0;
    animation: none;
  }
}

.team-challenge__school-body {
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

.team-challenge__school-title {
  font-family: var(--font-body);
  font-weight: 900;
  color: var(--color-main);
}

.team-challenge__school-note {
  font-size: 0.9em;
  color: var(--color-main);
  margin-left: 4px;
}

/* CTAボタングループ */
.team-challenge__cta {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 4vw, 60px);
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .team-challenge__cta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

/* S04底面装飾波
   bottom の値を変えてボタンとの重なりを調整できます
   ボタンに重ねる場合は負の値を大きくする（例：-160px） */
.team-challenge__wave-bottom {
  position: absolute;
  bottom: 0px; /* ← 調整ポイント */
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
  z-index: 0;
}
.team-challenge__wave-bottom svg {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .team-challenge__wave-bottom {
    bottom: 0px; /* SP時調整ポイント */
  }
}

/* S04 CTAボタン：英数字をOutfitで表示 */
.team-challenge__cta .btn {
  font-family: var(--font-en);
  font-size: clamp(16px, 1.5vw, 20px);
  padding: clamp(18px, 1.8vw, 24px) clamp(28px, 3vw, 40px);
}



/* ========================================
  S05 キヨモトの仕事地図（職種紹介）
  背景色：#F5F0E8
======================================== */

/* セクション */
/* job-map：セクションタイトル装飾なし */
.job-map .section-header__title {
  padding-left: 0;
  border-left: none;
}

.job-map {
  background: var(--color-bg-ivory);
  padding-block: var(--section-py);
  position: relative;
  padding: 0;
  padding-top: min(4vw,40px);
}

/* カードグリッド：6列で上3枚×2列・下2枚を中央4列に配置 */
.job-map__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(16px, 2vw, 28px);
  max-width: var(--content-width);
  margin-inline: auto;
  margin-top: clamp(40px, 5vw, 64px);
}
/* 上段：各カード2列分 */
.job-map__grid .job-map__card:nth-child(1) { grid-column: 1 / 3; }
.job-map__grid .job-map__card:nth-child(2) { grid-column: 3 / 5; }
.job-map__grid .job-map__card:nth-child(3) { grid-column: 5 / 7; }
/* 下段：中央4列に2枚ずつ（完全中央寄せ） */
.job-map__grid .job-map__card:nth-child(4) { grid-column: 2 / 4; }
.job-map__grid .job-map__card:nth-child(5) { grid-column: 4 / 6; }
@media (max-width: 768px) {
  .job-map__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .job-map__grid .job-map__card:nth-child(1),
  .job-map__grid .job-map__card:nth-child(2),
  .job-map__grid .job-map__card:nth-child(3),
  .job-map__grid .job-map__card:nth-child(4) { grid-column: auto; }
  /* SP：5枚目を中央に */
  .job-map__grid .job-map__card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc(50% - 6px);
    margin-inline: auto;
  }
}

/* 職種カード */
.job-map__card {
  position: relative;
  background: var(--color-bg-white);
  border: 2px solid var(--color-main);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.job-map__card:hover {
  border-color: var(--color-accent-hover);
  box-shadow: 0 8px 28px rgba(0, 100, 40, 0.15);
  transform: translateY(-4px);
}
@media (max-width: 768px) {
  .job-map__card {
    border-radius: 10px;
  }
}

/* カード画像ラッパー（overflow:hidden でscaleをクリップ） */
.job-map__card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
/* 下部グラデーションオーバーレイ：バッジの視認性を確保 */
.job-map__card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to bottom, transparent, rgba(0, 100, 40, 0.38));
  pointer-events: none;
}
.job-map__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.job-map__card:hover .job-map__card-img {
  transform: scale(1.07);
}

/* 職種名ラベル（ピル型バッジ・画像に重なる） */
.job-map__card-label {
  position: absolute;
  bottom: clamp(12px, 1.5vw, 20px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-bg-white);
  border: 2px solid var(--color-main);
  border-radius: 100px;
  padding: clamp(12px, 0.7vw, 12px) clamp(20px, 2.2vw, 36px);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--color-main);
  line-height: 1.4;
  white-space: nowrap;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* テキスト部分（2行の場合も中央揃え） */
.job-map__card-label-text {
  text-align: center;
  line-height: 1.2;
}
/* SVGアイコン */
.job-map__card-label-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.job-map__card-label-icon svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 768px) {
  .job-map__card-label-icon svg {
    width: 14px;
    height: 14px;
  }
}
.job-map__card-label small {
  display: inline;
  font-size: 0.8em;
  /* font-weight: 800; */
  white-space: nowrap;
}
@media (max-width: 768px) {
  .job-map__card-label {
    font-size: clamp(14px, 3vw, 16px);
    padding: 8px 214px;
    bottom: 10px;
  }
}

/* ========================================
  職種モーダル
======================================== */

/* モーダル全体ラッパー（非表示状態） */
.job-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  /* clip-path アニメーション用の起点変数 */
  --modal-origin-x: 50%;
  --modal-origin-y: 50%;
}
.job-modal[hidden] {
  display: none;
}

/* オーバーレイ */
.job-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.job-modal.is-open .job-modal__overlay {
  opacity: 1;
}

/* パネル本体：clip-path で円形に広がる演出 */
.job-modal__panel {
  position: relative;
  background: var(--color-bg-white);
  border: 2px solid var(--color-main);
  border-radius: 30px;
  width: min(920px, 100%);
  height: 374px;
  z-index: 1;
  clip-path: circle(0% at var(--modal-origin-x) var(--modal-origin-y));
  transition: clip-path 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.job-modal.is-open .job-modal__panel {
  clip-path: circle(150% at var(--modal-origin-x) var(--modal-origin-y));
}
@media (max-width: 768px) {
  .job-modal__panel {
    height: auto;
    max-height: 85vh;
    overflow-y: auto;
    border-radius: 16px;
  }
}

/* 閉じるボタン */
.job-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-main);
  background: var(--color-bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  z-index: 2;
  transition: background 0.2s ease;
}
.job-modal__close:hover {
  background: var(--color-main);
}
.job-modal__close span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-main);
  border-radius: 2px;
  transition: background 0.2s ease;
  transform-origin: center;
}
.job-modal__close span:first-child {
  transform: rotate(45deg) translate(2px, 3px);
}
.job-modal__close span:last-child {
  transform: rotate(-45deg) translate(2px, -3px);
}
.job-modal__close:hover span {
  background: var(--color-bg-white);
}

/* モーダル本文エリア */
.job-modal__body {
  position: absolute;
  inset: 0;
  z-index: 1;
}
@media (max-width: 768px) {
  .job-modal__body {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 64px 20px 32px;
    gap: 20px;
  }
}

/* 画像エリア（PC: body を基準に絶対配置、SP: 固定高さコンテナ内で絶対配置） */
.job-modal__imgs {
  /* PC: 位置コンテキストを持たせず body 基準で画像を配置 */
}
@media (max-width: 768px) {
  .job-modal__imgs {
    position: relative;
    width: 100%;
    height: min(240px, calc(66.7vw - 48px));
  }
}

/* 画像：PC は body 基準、SP は imgs コンテナ基準で絶対配置 */
.job-modal__img {
  position: absolute;
  border-radius: 4px;
  object-fit: cover;
}

/* ---- PC 各職種 画像サイズ・位置 ---- */
/* 設計職 */
#modal-design .job-modal__img--main { width: 220px; height: 153px; left: 54px;  top: 24px;  }
#modal-design .job-modal__img--sub  { width: 214px; height: 138px; left: 124px; top: 179px; }

/* 営業職 */
#modal-sales .job-modal__img--main { width: 221px; height: 190px; left: 56px;  top: 50px;  }
#modal-sales .job-modal__img--sub  { width: 115px; height: 170px; left: 252px; top: 136px; }

/* 工場管理職 */
#modal-factory .job-modal__img--main { width: 224px; height: 120px; left: 56px;  top: 40px;  }
#modal-factory .job-modal__img--sub  { width: 225px; height: 150px; left: 149px; top: 165px; }

/* 監督職（プラント・インフラ） */
#modal-site-infra .job-modal__img--main { width: 195px; height: 150px; left: 42px;  top: 45px;  }
#modal-site-infra .job-modal__img--sub  { width: 120px; height: 90px;  left: 247px; top: 45px;  }
#modal-site-infra .job-modal__img--sub2 { width: 178px; height: 150px; left: 189px; top: 147px; }

/* 監督職（メンテナンス） */
#modal-site-maint .job-modal__img--main { width: 189px; height: 178px; left: 59px; top: 9px;   }
#modal-site-maint .job-modal__img--sub  { width: 252px; height: 115px; left: 97px; top: 204px; }

/* ---- SP 各職種 画像サイズ・位置（imgs コンテナ基準、height: auto で自然比率） ---- */
@media (max-width: 768px) {
  /* 設計職 */
  #modal-design .job-modal__img--main { width: min(50vw,280px); height: auto; left: 5%;  top: 0;    right: auto; bottom: auto; }
  #modal-design .job-modal__img--sub  { width: min(53vw,280px); height: auto; right: 5%;  bottom: 0; left: auto;  top: auto;   }

  /* 営業職 */
  #modal-sales .job-modal__img--main { width: min(45vw,270px); height: auto; left: 5%;  top: 5%;   right: auto; bottom: auto; }
  #modal-sales .job-modal__img--sub  { width: 30%; height: auto; right: 10%; bottom: 0;  left: auto;  top: auto;   }

  /* 工場管理職 */
  #modal-factory .job-modal__img--main { width: min(45vw,270px); height: auto; left: 5%;  top: -10%;   right: auto; bottom: auto; }
  #modal-factory .job-modal__img--sub  { width: min(50vw,240px); height: auto; right: 3%; bottom: 0; left: auto;  top: auto;   }

  /* 監督職（プラント・インフラ） */
  #modal-site-infra .job-modal__img--main { width: max(44vw,220px); height: auto; left: 3%;  top: 0;    right: auto; bottom: auto; }
  #modal-site-infra .job-modal__img--sub  { width: max(24vw,100px); height: auto; right: 0; top: 0;    left: auto;  bottom: auto; }
  #modal-site-infra .job-modal__img--sub2 { width: max(26vw,120px); height: auto; right: 0; bottom: 0; left: auto;  top: auto;   }

  /* 監督職（メンテナンス） */
  #modal-site-maint .job-modal__img--main { width: max(36vw,140px); height: auto; left: 0;  top: 0;    right: auto; bottom: auto; }
  #modal-site-maint .job-modal__img--sub  { width: max(45vw,200px); height: auto; right: 3%; bottom: 0; left: auto;  top: auto;   }
}

/* テキストエリア */
.job-modal__text {
  position: absolute;
  left: 388px;
  right: 52px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (max-width: 768px) {
  .job-modal__text {
    position: static;
    transform: none;
    width: 100%;
    gap: 16px;
  }
}

.job-modal__title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--color-main);
  line-height: 1.2;
}

.job-modal__catch {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 20px);
  color: var(--color-main);
  line-height: 1.6;
}

.job-modal__desc {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--color-text);
  line-height: 1.6;
}







/* ========================================
  S06 職種別の1日スケジュール
======================================== */

/* セクション：波を内包するためoverflow: visible + 下部に水色エリアを作る */
.schedule {
  position: relative;
  padding-bottom: 4px;
  overflow: visible;
  z-index: 1;
}

/* 波より下の水色背景エリア：波最下部からセクション下端まで */
.schedule::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px; /* 波最下部 = カード下端から210px上 */
  height: 340px;
  background-color: var(--color-bg-aqua);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 768px) {
  .schedule::after { height: 140px; }
}

/* __inner の幅制限を解除：スライダーを1440px幅で使うため */
.schedule .schedule__inner {
  max-width: none;
  padding-inline: 0;
}

/* セクションヘッダー：中央揃え・縦線なし */
.schedule .section-header {
  text-align: center;
  padding-inline: 24px;
}
.schedule .section-header__title {
  border-left: none;
  padding-left: 0;
  display: inline-block;
}

/* 波：セクション内に絶対配置・カードより後ろ(z-index:1) */
.schedule__wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  bottom: 0px; 
  z-index: 1;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}
@media (max-width: 768px) {
  .schedule__wave {
    height: 48px;
    bottom: 92px; /* 140-48=92 */
  }
}

.schedule__wave .wave__layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* スライダーラッパー：波より前面(z-index:2)・イラストはみ出し許可 */
.schedule__slider-wrap {
  position: relative;
  z-index: 2;
  max-width: 1380px; /* 1240px + 矢印ボタン分(左右70px) */
  margin-inline: auto;
  padding-inline: 70px; /* 矢印ボタンの幅+余白 */
  /* padding-top: clamp(40px, 5vw, 60px); */
  padding-bottom: 260px;
  padding-bottom: 0;
  overflow: visible;
}
@media (max-width: 768px) {
  .schedule__slider-wrap {
    padding-top: 0;
    /* padding-bottom: 10vw; */
    padding-inline: 0;
  }
}

/* スクロール専用ラッパー：overflow-xのみ管理 */
/* スクロールコンテナ兼フレックスコンテナ
   overflow-xとoverflow-yを分離することでy方向のはみ出しを許可 */
.schedule__slider {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  overflow-y: visible;
  /* イラストのはみ出し分の上余白 */
  padding-top: min(5vw,60px);
  /* scroll-snap */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.schedule__slider::-webkit-scrollbar { display: none; }
@media (max-width: 768px) {
  .schedule__slider {
    gap: 12px;
    padding-inline: 16px;
    scroll-padding-inline-start: 16px;
  }
}

/* カード1枚 */
.schedule__card {
  flex: 0 0 min(560px, 85vw);
  scroll-snap-align: start;
  position: relative;
  background: var(--color-bg-white);
  border: 2px solid var(--color-main);
  border-radius: 30px;
  padding-top: 210px;
  padding-inline: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(28px, 3vw, 40px);
  overflow: visible;
  transition: box-shadow 0.25s ease;
}
@media (max-width: 768px) {
  .schedule__card {
    flex: 0 0 min(340px, 82vw);
    border-radius: 12px;
    padding-top: 155px;
    padding-inline: 20px;
  }
}

.schedule__card:hover {
  box-shadow: 0 8px 28px rgba(0, 100, 40, 0.14);
}

/* 職種名バッジラッパー */
.schedule__card-label-wrap {
  position: absolute;
  top: 63px;
  left: clamp(41px, 7vw, 61px);
  z-index: 3;
}
@media (max-width: 768px) {
  .schedule__card-label-wrap {
    top: 50px;
    left: 20px;
  }
}

/* 職種名バッジ */
.schedule__card-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 60px;
  background: var(--color-bg-white);
  border: 2px solid var(--color-main);
  border-radius: 100px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(20px, 1.8vw, 25px);
  color: var(--color-main);
  white-space: nowrap;
  line-height: 1;
}
@media (max-width: 768px) {
  .schedule__card-label {
    padding: 14px 32px;
    font-size: 18px;
  }
}

/* イラスト共通：固定高コンテナ＋bottom基準でbottomを揃える */
.schedule__card-illust {
  position: absolute;
  top: 0;
  height: 210px;
  overflow: visible;
  z-index: 2;
  pointer-events: none;
}
@media (max-width: 768px) {
  .schedule__card-illust {
    height: 155px;
  }
}

/* 設計職： 幅300px 右寄り */
.schedule__card-illust--architect {
  right: clamp(20px, 3.5vw, 50px);
  width: clamp(200px, 28vw, 300px);
}
@media (max-width: 768px) {
  .schedule__card-illust--architect {
    width: clamp(140px, 50vw, 200px);
    right: 10px;
  }
}

/* 営業職：幅305px 右寄り */
.schedule__card-illust--sales {
  right: clamp(10px, 2vw, 40px);
  width: clamp(200px, 28vw, 305px);
}
@media (max-width: 768px) {
  .schedule__card-illust--sales {
    width: clamp(140px, 50vw, 200px);
    right: 6px;
  }
}

/* 監督職：幅292px 左寄り（事業写真の左）/ PC gap=6px調整済み */
.schedule__card-illust--construction {
  right: clamp(102px, calc(16.5vw + 6px), 167px);
  width: clamp(180px, 20vw, 292px);
}
@media (max-width: 768px) {
  .schedule__card-illust--construction {
    width: clamp(190px, 60vw, 224px);
    left: max(20px, 7.5vw);
    right: auto;
  }
}

/* 工場管理職：幅300px 右寄り */
.schedule__card-illust--factory {
  right: clamp(10px, 2vw, 20px);
  width: clamp(200px, 28vw, 300px);
}
@media (max-width: 768px) {
  .schedule__card-illust--factory {
    width: clamp(140px, 50vw, 200px);
    right: 6px;
  }
}

.schedule__card-illust img {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

/* 監督職専用：右上の事業写真2枚 */
.schedule__card-photos {
  position: absolute;
  top: 23px;
  right: clamp(16px, 2.5vw, 41px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}
@media (max-width: 768px) {
  .schedule__card-photos {
    /* right: clamp(16px, 12vw, 45px); */
    right: 8px;
    top: 16px;
    z-index: 3;
  }
}

.schedule__card-photo {
  width: clamp(80px, 14vw, 120px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
@media (max-width: 768px) {
  .schedule__card-photo { width: clamp(75px, 24vw, 90px); }
}

/* タイムライン本文 */
.schedule__card-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
  /* 左に緑のタイムラインライン */
  border-left: 2px solid var(--color-accent);
  padding-left: 16px;
}
@media (max-width: 768px) {
  .schedule__card-list {
    padding-left: 12px;
  }
}

/* タイムライン1行 */
.schedule__card-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-block: 5px;
  /* border-bottom: 1px solid var(--color-border); */
}
.schedule__card-item:last-child {
  border-bottom: none;
}
/* 〜行：ボーダーなし・パディング小さめ */
.schedule__card-item--tilde {
  border-bottom: none;
  padding-block: 2px;
}
@media (max-width: 768px) {
  .schedule__card-item { gap: 10px; padding-block: 4px; }
}

/* 時間（Outfit・緑・等幅） */
.schedule__time {
  font-family: var(--font-en);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: clamp(15px, 1.3vw, 19px);
  color: var(--color-main);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 3.2em;
  line-height: 1.8;
}
@media (max-width: 768px) {
  .schedule__time { font-size: 14px; min-width: 3em; line-height: 1.3; }
}

/* 説明文（Noto Sans JP） */
.schedule__desc {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.8;
  color: var(--color-text);
}
@media (max-width: 768px) {
  .schedule__desc {
    font-size: 13px;
    line-height: 1.33;
  }
}

/* 注釈テキスト */
.schedule__card-note {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.6;
  color: var(--color-text);
}
@media (max-width: 768px) {
  .schedule__card-note { font-size: 11px; }
}

/* ページネーションドット */
.schedule__dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.schedule__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.schedule__dot--active {
  background: var(--color-main);
  transform: scale(1.3);
}

.schedule__dot:hover {
  background: var(--color-accent);
}

.schedule__arrow {
  display: none;
  position: absolute;
  top: calc(50% - 130px); /* padding-bottom(260px)の半分を引いてカード中央へ */
  top: 54%;
  transform: translateY(-50%);
  z-index: 3;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 48px;
  height: 48px;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.schedule__arrow svg {
  width: 48px;
  height: 48px;
}

.schedule__arrow--prev { left: 4px; }
.schedule__arrow--next { right: 4px; }

.schedule__arrow svg circle {
  transition: fill 0.25s ease;
}
.schedule__arrow svg path {
  transition: fill 0.25s ease;
}

.schedule__arrow:hover {
  transform: translateY(calc(-50% - 4px));
  filter: drop-shadow(0 4px 8px rgba(0, 100, 40, 0.25));
}
.schedule__arrow:hover svg circle {
  fill: #006428;
}
.schedule__arrow:hover svg path {
  fill: white;
}
/* クリック後のfocus残りを防ぐ：キーボード操作時のみfocusスタイルを出す */
.schedule__arrow:focus { outline: none; }
.schedule__arrow:focus:not(:focus-visible) svg circle { fill: white; }
.schedule__arrow:focus:not(:focus-visible) svg path { fill: #006428; }

@media (min-width: 1201px) {
  .schedule__arrow { display: block; }
  .schedule__dots  { display: none; }
}


/* ========================================
   S07 監督職のリアル
======================================== */

/* セクション本体 */
.realistic {
  position: relative;
  background-color: var(--color-bg-aqua);
  overflow: hidden;
  /* padding-block（共通CSS）をpadding-block-startで上書き */
  padding-block-start: 0;
}

/* 背景：現場写真オーバーレイ */
.realistic__bg {
  position: absolute;
  inset: 0;
  background-image: url('img/realistic/img_realistic_bg_2x.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* 見出し：縦線なし */
.realistic .section-header__title {
  border-left: none;
  padding-left: 0;
}

.realistic__inner {
  max-width: 1200px;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(48px, 5vw, 72px) clamp(16px, 4vw, 40px) 0;
  position: relative;
  z-index: 4; /* bg(0)・オーバーレイ(1)・ベタ塗り(2)・波(3)より前面 */
}

/* 上部：リード文（左）＋メインイラスト（右） */
.realistic__top {
  display: flex;
  align-items: flex-start;
  /* gap: clamp(24px, 2vw, 40px); */
  /* margin-top: clamp(32px, 4vw, 48px); */
  margin-bottom: clamp(48px, 8vw, 100px);
}
@media (max-width: 768px) {
  .realistic__top {
    flex-direction: column;
  }
}

.realistic__lead {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 16px);
  line-height: 1.8;
  color: var(--color-text);
  margin: 0;
  padding-top: clamp(8px, 1vw, 16px);
  max-width: 500px;
}
@media (max-width: 768px) {
  .realistic__lead br { display: none; }
}

/* メインイラスト（右） */
.realistic__main-illust {
  flex: 0 0 clamp(180px, 40vw, 430px);
  margin-top: -80px;
}
.realistic__main-illust img {
  width: 100%;
  height: auto;
  display: block;
  animation: float-idle-fv 5s ease-in-out 2.5s infinite;
}
@media (max-width: 768px) {
  .realistic__main-illust {
    flex: initial;
    width: min(300px, 80vw);
    margin: 0 auto;
  }
}

/* 4業務カード：2×2グリッド */
.realistic__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(56px, 7vw, 88px) clamp(20px, 4vw, 80px);
  margin-bottom: clamp(32px, 3vw, 48px);
}
@media (max-width: 768px) {
  .realistic__cards {
    grid-template-columns: 1fr;
    gap: clamp(56px, 8vw, 72px) 0;
  }
}

/* 業務カード1枚 */
.realistic__card {
  position: relative;
  background: var(--color-bg-white);
  border: 2px solid var(--color-main);
  border-radius: 10px;
  padding: clamp(20px, 2vw, 20px);
  padding-top: clamp(20px, 2vw, 72px);
  transition: box-shadow 0.25s ease;
}
.realistic__card:hover {
  box-shadow: 0 8px 24px rgba(0, 100, 40, 0.12);
}

/* カードイラスト（はみ出し配置） */
.realistic__card-illust {
  position: absolute;
  top: clamp(-72px, -10vw, -52px);
  right: -2.4px;
  /* width: clamp(100px, 13vw, 140px); */
  /* max-width: 200px; */
  max-height: 130px;
  z-index: 2;
}
.realistic__card-illust img {
  width: 100%;
  max-height: min(13vw,130px);
  height: auto;
  display: block;
}
@media (max-width: 768px) {
  .realistic__card-illust {
    right: clamp(4px, 1.4vw, 11px);
  }
}
@media (max-width: 768px) {
  .realistic__card-illust img{
    max-height: 100px;
  }
}


/* カードタイトル */
.realistic__card-title {
  font-family: var(--font-body);
  font-weight: 900;
  font-size: 1.1em;
  color: var(--color-main);
  margin: 0 0 8px;
}

/* カード本文 */
.realistic__card-body {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0;
}

.realistic::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(var(--section-py) + 326px); /* 波の下端＋section-py = 締めコンテンツをカバー */
  background-color: var(--color-bg-aqua);
  z-index: 2;
  pointer-events: none;
}

/* 背景写真の上に重ねる半透明アクアオーバーレイ（Figmaに準拠） */
.realistic::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(230, 248, 250, 0.5);
  pointer-events: none;
  z-index: 1;
}

/* 波：ベタ塗りとbg写真の境界 */
.realistic__wave {
  position: absolute;
  left: 0;
  width: 100%;
  height: 80px;
  bottom: calc(var(--section-py) + 326px); /* ::before top端に一致 / PC:426px SP:390px */
  
  z-index: 3;
  overflow: hidden;
  line-height: 0;
  pointer-events: none;
}
@media (max-width: 768px) {
  .realistic__wave {
    height: 48px;
  }
}
.realistic__wave .wave__layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* .realistic__closing {
  border-top: 1px solid var(--color-border);
  padding-top: clamp(32px, 4vw, 48px);
} */

.realistic__closing-heading {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.6;
  color: var(--color-main);
  margin: 0 0 12px;
}

.realistic__closing-body {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  max-width: 542px;
  margin: 0;
}


/* ========================================
  S08 先輩からのメッセージ
======================================== */

/* セクション */
.message {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: max(-100px,-16vw);
}

/* イラスト絶対配置の基準 */
.message .message__inner {
  position: relative;
}

/* タイトル：左ボーダーなし（S08固有） */
.message .section-header__title {
  padding-left: 0;
  border-left: none;
}

/* 装飾イラスト：作業員2名（右上） */
.message__illust-mens {
  position: absolute;
  right: min(12vw,80px);
  top: max(-169px, -10vw);
  width: max(18.5vw, 336px);
  max-width: 400px;
  pointer-events: none;
  z-index: 2;
}
.message__illust-mens img {
  width: 100%;
  height: auto;
}
@media (max-width: 768px) {
  .message__illust-mens {
    width: min(30vw, 180px);
    top: -9vw;
    right: -3vw;
  }
}

/* カード横並びラッパー */
.message__cards {
  position: relative;
  z-index: 3;
  display: flex;
  gap: clamp(16px, 2.5vw, 36px);
  justify-content: center;
  margin-top: 48px;
}
@media (max-width: 1024px) {
  .message__cards {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
  }
}

/* カード1枚 */
.message__card {
  background: var(--color-bg-white);
  border: 2px solid var(--color-main);
  border-radius: 20px;
  padding: 32px 32px;
  flex: 1 1 0;
  max-width: 360px;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .3s ease;
}
.message__card:hover {
  box-shadow: 0 8px 24px rgba(0, 100, 40, .12);
}
@media (max-width: 1024px) {
  .message__card {
    width: 100%;
    max-width: 560px;
    min-height: auto;
    padding: 28px 28px;
  }
}
@media (max-width: 768px) {
  .message__card {
    max-width: 100%;
    padding: 24px 24px;
  }
}

/* カードヘッダー：写真（絶対配置）＋バッジ・プロフィール（flex column） */
.message__card-header {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 8px;
  min-height: 181px;
  padding-top: 70px;
  padding-left: 110px;
}
@media (max-width: 768px) {
  .message__card-header {
    padding-top: 0px;
    /* padding-left: min(26px, 20%); */
    padding-left: 150px;
    justify-content: center;
    min-height: 150px;
  }
}

/* 丸型顔写真（絶対配置） */
.message__card-photo {
  position: absolute;
  top: 0;
  left: 0;
  width: 141px;
  height: 141px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 0;
}



/* 職種バッジ */
.message__card-job {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  background: var(--color-bg-white);
  border: 1px solid var(--color-main);
  border-radius: 100px;
  padding: 6px 30px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 16px;
  color: var(--color-main);
  white-space: nowrap;
}
@media (max-width:768px) {
  .message__card-job {
    padding: 6px 20px;
  }
}



/* プロフィール：氏名＋所属 */
.message__card-profile {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 30px;
}
@media (max-width:768px) {
  .message__card-profile {
    padding-left: 4px;
  }
}
/* 氏名 */
.message__card-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.33;
  color: var(--color-text);
}
.message__card-name small {
  font-size: 12px;
}

/* 所属部署 */
.message__card-dept {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.4;
}

/* メッセージ本文 */
.message__card-body {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--color-text);
  line-height: 1.6;
  text-align: justify;
}


/* ========================================
  S08→S09 境界波：3層有機波
======================================== */

.faq__wave {
  position: relative;
  background-color: var(--color-bg-aqua);
  line-height: 0;
}
.faq__wave svg {
  width: 100%;
  height: auto;
  display: block;
}


/* ========================================
  S09 よくある質問
======================================== */
.faq {
  padding-top: 0;
}

.faq__inner {
  padding-top: min(60px,10vw);
  max-width: 820px;
}

/* タイトル：左ボーダーなし（S09固有） */
.faq .section-header__title {
  padding-left: 0;
  border-left: none;
}

/* FAQリスト */
.faq__list {
  width: min(760px, 100%);
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 23px;
  list-style: none;
  padding: 0;
}
@media (max-width: 768px) {
  .faq__list {
    margin-top: 32px;
    gap: 16px;
  }
}

/* 1件 */
.faq__item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 質問ボックス（クリックエリア） */
.faq__question {
  width: 100%;
  background: var(--color-bg-white);
  border: 2px solid var(--color-main);
  border-radius: 10px;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 18px;
  color: var(--color-main);
  line-height: 1.6;
  text-align: left;
  transition: background .2s ease;
}
.faq__question:hover {
  background: color-mix(in srgb, var(--color-bg-white) 80%, var(--color-bg-ivory));
}
@media (max-width: 768px) {
  .faq__question {
    padding: 14px 20px;
    font-size: 15px;
  }
}

/* 質問テキスト */
.faq__question-text {
  flex: 1;
}
/* Q1〜Q6 ラベル：Outfit で英数字らしさを出す */
.faq__q-label {
  font-family: var(--font-en);
  font-weight: 700;
  color: var(--color-text-sub);
}

/* トグルアイコン（矢印） */
.faq__toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  transition: transform .3s ease;
}
.faq__item--open .faq__toggle {
  transform: rotate(90deg);
}

/* 回答エリア（初期：折り畳み） */
.faq__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}

/* 回答テキスト */
.faq__answer-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
  padding: 0 4px;
}
@media (max-width: 768px) {
  .faq__answer-text {
    font-size: 14px;
  }
}


/* ========================================
  S10 選考フロー・エントリー
======================================== */

/* S09：z-index設定 */
.faq {
  position: relative;
  z-index: 1;
  padding-bottom: min(250px,30vw);
}

/* セクション：前セクション（ベージュ）に280px重ねる・建物背景 */
/* margin-top = 透明ゾーン幅 / padding-top = カード位置（透明ゾーン内に収める） */
.flow {
  margin-top: -280px;
  padding-top: 150px;
  position: relative;
  z-index: 2;
  background: linear-gradient(to bottom, transparent 280px, var(--color-bg-aqua) 280px);
}
/* 建物背景画像：透明部分（280px）より下に40%で敷く */
.flow::before {
  content: '';
  position: absolute;
  top: 280px;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('img/img_bg_footer_2x.webp') center bottom / cover no-repeat;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 768px) {
  .flow {
    margin-top: -130px;
    padding-top: 80px;
    background: linear-gradient(to bottom, transparent 130px, var(--color-bg-aqua) 130px);
  }
  .flow::before {
    top: 130px;
  }
}

/* インナー：背景疑似要素より前面へ */
.flow__inner {
  position: relative;
  z-index: 1;
}

/* タイトル：左ボーダーなし（S10固有） */
.flow .section-header__title {
  padding-left: 0;
  border-left: none;
}

/* 選考フローカード */
.flow__card {
  position: relative;
  background: var(--color-bg-white);
  border: 2px solid var(--color-main);
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 100px 56px;
}
@media (max-width: 768px) {
  .flow__card {
    padding: 32px 24px 40px;
    border-radius: 16px;
  }
}

/* 作業員イラスト：カード右上からはみ出す */
.flow__illust {
  position: absolute;
  right: max(60px, 2vw);
  top: -70px;
  width: max(240px, 17vw);
  max-width: 300px;
  pointer-events: none;
  z-index: 2;
}
.flow__illust img {
  width: 100%;
  height: auto;
  display: block;
  animation: float-idle 5s ease-in-out 3.5s infinite;
}
@media (max-width: 768px) {
  .flow__illust {
    width: min(240px, 40vw);
    /* min-width: 240px; */
    top: -60px;
    right: -24px;
  }
}

/* ステップ横並びリスト */
.flow__steps {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 3.3vw, 48px);
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}
@media (max-width: 768px) {
  .flow__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 8px;
    margin-top: 28px;
  }
}

/* ステップ1件 */
.flow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100px;
  flex-shrink: 0;
}
@media (max-width: 768px) {
  .flow__step { width: auto; }
}

/* ステップ番号 */
.flow__step-num {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 16px;
  color: var(--color-text-sub);
  line-height: 1;
}

/* ステップアイコン枠 */
.flow__step-illust {
  width: 100px;
  height: 100px;
  background: #d3e9e0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.flow__step-illust img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media (max-width: 768px) {
  .flow__step-illust {
    width: 72px;
    height: 72px;
  }
}

/* ステップラベル */
.flow__step-label {
  font-family: var(--font-heading);
  font-weight: 900;
  color: #333;
  line-height: 1.3;
  text-align: center;
}
@media (max-width: 768px) {
  .flow__step-label { font-size: 12px; }
}

/* 面接について */
.flow__interview {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 768px) {
  .flow__interview { margin-top: 32px; }
}

/* 面接見出し */
.flow__interview-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  color: #105929;
  line-height: 1.3;
}

/* 面接本文 */
.flow__interview-body p {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  color: #333;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .flow__interview-body p { font-size: 14px; }
}

/* CTAボタングループ */
.flow__cta {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .flow__cta {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
  }
}


/* ========================================
  改行制御ユーティリティ
  .br-pc：PCのみ改行、768px以下で解除
  .br-sp：SPのみ改行、769px以上で解除
======================================== */
.br-pc { display: inline; }
.br-sp { display: none; }
@media (max-width: 768px) {
  .br-pc { display: none; }
  .br-sp { display: inline; }
}


/* ========================================
  開発用：PHテキスト（本番削除）
======================================== */
.ph-text {
  color: var(--color-text-sub);
  font-size: 14px;
  border: 1px dashed var(--color-border);
  padding: 32px;
  text-align: center;
  border-radius: 8px;
}

/* アニメーション軽減設定（アクセシビリティ） */
@media (prefers-reduced-motion: reduce) {
  .fv__illust-img,
  .about__company-illust img,
  .team-challenge__illust-main img,
  .realistic__main-illust img,
  .flow__illust img {
    animation: none;
  }
}



