body{
    background: #EEEEEE;
}

.top{
  background-color: #EEEEEE;
}

/* 写真はボックス内でcover */
.service-bg{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  /* 被写体を右に寄せたい時はここ */
  object-position: 85% 20%
}

.section-bg{
    background: #fff;
}

.service{
  position: relative;
  isolation: isolate;
}

.service > .container{
  z-index: 2;
}

.section-gradation{
  background: linear-gradient(180deg, #EEEEEE 0%, #FFFFFF 100%);
}

.triangle-sub .top-text{
  position: relative; 
  z-index: 3;
}

.triangle-sub .triangle-sub-media{
  z-index: 1;
}

.company-side{
  height: clamp(360px, 45vh, 550px);
}

.company-side__img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}


/* =========================================================
  Service Bottom Character
========================================================= */

.service-bottom{
  position: relative;

  /* 大きいPC用 */
  --chara-h: clamp(280px, 30vw, 620px);
  --text-safe: calc(var(--chara-h) * 1);
}

/* キャラブロック */
.service-bottom__chara{
  position: absolute;
  left: 45%;
  bottom: 0;
  transform: translateX(-50%);

  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 28px);

  z-index: 3;
}

.service-bottom__chara-img{
  height: var(--chara-h);
  width: 150%;
  display: block;
}

/* PC：本文下にキャラ分の安全余白 */
@media (min-width: 1483px){
  .service-bottom .col-12.col-md-6,
  .service-bottom .col-12.col-md-7{
    padding-bottom: var(--text-safe);
  }
}

/* =========================================================
  1482px〜992px
  → 被りやすい幅なのでキャラを小さくして余白を広めに取る
========================================================= */
@media (min-width: 992px) and (max-width: 1482px){
  .service-bottom{
    --chara-h: clamp(180px, 20vw, 320px);
    --text-safe: calc(var(--chara-h) * 1.15);
  }

  .service-bottom__chara{
    left: 50%;
    transform: translateX(-50%);
  }

  .service-bottom__chara-img{
    height: auto;
    width: min(300px, 45vw);
    max-width: 100%;
  }
  
  .service-bottom .col-12.col-md-6,
  .service-bottom .col-12.col-md-7{
    padding-bottom: var(--text-safe);
  }
}

/* =========================================================
  Tablet 768px〜991.98px
  → absolute解除して本文下に通常配置
========================================================= */
@media (min-width: 768px) and (max-width: 991.98px){
  .service-bottom .col-12.col-md-6,
  .service-bottom .col-12.col-md-7{
    padding-bottom: 0;
  }

  .service-bottom__chara{
    position: static;
    left: auto;
    bottom: auto;
    transform: none;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;

    margin-top: 40px;
    text-align: left;
  }

  .service-bottom__chara-img{
    height: auto;
    width: min(300px, 45vw);
    max-width: 100%;
  }
}

/* =========================================================
  Smartphone 〜767.98px
  → 縦並び・中央配置
========================================================= */
@media (max-width: 767.98px){
  .service-bottom .col-12.col-md-6,
  .service-bottom .col-12.col-md-7{
    padding-bottom: 0;
  }

  .service-bottom__chara{
    position: static;
    left: auto;
    bottom: auto;
    transform: none;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;

    margin-top: 32px;
    text-align: center;
  }

  .service-bottom__chara-img{
    height: auto;
    width: min(360px, 70vw);
    max-width: 100%;
  }

  .service-bottom__chara-text{
    white-space: normal;
  }
}


.recruit-job {
  --sec-pad: 88px;

  /* 見出しの位置 */
  --title-top: -30px;

  /* 見出しが重なる分の“確保スペース” */
  --title-space: 180px;

  background: #EEEEEE;
  overflow: visible;
  position: relative;
}

.recruit-job__bg {
  position: relative;
  min-height: clamp(600px, 60vh, 680px);
  background-image: url("../../img/recruit/recruit-bg_5.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 40%;
}

@media (max-width: 922px) {
  .recruit-job {
    --title-top: -65px;
    --title-space: 240px;
  }
  .recruit-job__bg {
    min-height: 550px;
  }
}

@media (max-width: 702px) {
  .recruit-job {
    --title-top: 18px;
    --title-space: 260px;
  }
  .recruit-job__bg {
    min-height: 500px;
  }
}

.recruit-job__panel{
  position: relative;
  z-index: 2;

  /* ここが肝：背景に重ねる量（レスポンシブ） */
  margin-top: clamp(-480px, -48vw, -380px);
}

/* =========================
   本文下：ワンポイント + キャラ
========================= */

.job-bottom{
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 380px);
  gap: clamp(16px, 2.5vw, 32px);
  align-items: start;
}

/* ワンポイント枠 */
.job-point{
  border: 2px solid rgba(0,0,0,0.65);
  border-radius: 16px;
  padding: clamp(14px, 2.2vw, 22px);
  background: #fff;
}

/* タイトル */
.job-point__title{
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

/* 中身 */
.job-point__text{
  margin: 0;
  line-height: 1.9;
}

/* キャラ */
.job-chara{
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

/* キャラ画像：大きめ＆下端に寄せる */
.job-chara img{
  width: 100%;
  height: auto;
  max-width: 360px; 
  transform: translateY(6px);   
  display: block;
}

/* =========================
   SP：縦並び（被り防止）
========================= */
@media (max-width: 768px){
  .job-bottom{
    grid-template-columns: 1fr;
    align-items: start;
  }
  .job-chara{
    justify-content: center;
  }
  .job-chara img{
    max-width: 280px;
    transform: translateY(0);
  }
}

/* =========================
   TOP-INTERVIEW
========================= */
.top-interview{
  width: 100%;
}

/* 上：ヘッダー */
.top-interview{
  position: relative;
  overflow: hidden;

  /* 背景画像はここで差し替え */
  background-image: url("../../img/recruit/interview-hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 背景に暗幕 */
.top-interview::before{
  content:"";
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.35);
  z-index: 0;
  pointer-events: none;
}

/* ヘッダー内コンテンツ */
.top-interview__hero-inner{
  position: relative;
  z-index: 1;
  padding: clamp(15px, 3vh, 70px) 0;
}

.top-interview__title{
  font-weight: 600;
  letter-spacing: 0.14em;
  font-size: clamp(44px, 6vw, 84px);
  margin: 0 0 10px;
}

.top-interview__subtitle{
  margin: 0 0 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.95;
}

.top-interview__desc{
  margin: 0;
  line-height: 2;
  opacity: 0.92;
  font-size: 14px;
}


/* セクション内の各ブロックは暗幕より前へ */
.top-interview__hero,
.top-interview__list{
  position: relative;
  z-index: 1;
}

/* =========================
   一覧部分を「白いパネル」にする
========================= */
.top-interview__list{
  /* 背景は透明にして、パネルで白を作る */
  background: transparent;
  padding: clamp(36px, 6vw, 72px) 0;
}

.top-interview__list .container{
  background: #fff;
  border-radius: 0; 
  padding: clamp(24px, 4vw, 56px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}


/* =========================
   Interview Card（#01〜#04）
========================= */
.interview-card{
  display: flex;
  gap: 18px;
  align-items: stretch;
}

/* 左：テキスト */
.interview-card__text{
  flex: 1;
  padding-top: 8px;
}

.interview-card__no{
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.interview-card__catch{
  font-weight: 700;
  line-height: 1.9;
  margin: 0 0 18px;
}

.interview-card__meta{
  margin-top: 10px;
  line-height: 1.7;
}

.interview-card__name-jp{
  font-weight: 800;
  letter-spacing: 0.08em;
}

.interview-card__name-en{
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.75;
  margin-top: 4px;
}

.interview-card__role{
  font-size: 12px;
  opacity: 0.75;
  margin-top: 6px;
}

/* 右：画像 */
.interview-card__image{
  width: clamp(140px, 22vw, 220px);
  aspect-ratio: 3 / 4;   
  overflow: hidden;
  background: #eee;
}

.interview-card__image img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

/* =========================
   Responsive（SP）
========================= */
@media (max-width: 768px){
  .top-interview__hero{
    min-height: clamp(220px, 24vh, 340px);
  }

  .top-interview__title{
    letter-spacing: 0.12em;
  }

  .top-interview__desc{
    font-size: 13px;
  }

  .interview-card{
    gap: 14px;
  }

  .interview-card__image{
    width: 42%;
    aspect-ratio: 3 / 4;
  }

  .interview-card__no{
    font-size: 24px;
  }

  .interview-card__catch{
    font-size: 14px;
    margin-bottom: 12px;
  }

  .interview-card__name-en,
  .interview-card__role{
    font-size: 11px;
  }
}

/* =========================================================
   INTERVIEW カードリンク
========================================================= */

.interview-card--link,
.interview-card--link:link,
.interview-card--link:visited,
.interview-card--link:hover,
.interview-card--link:active{
  color: inherit;
  text-decoration: none;
}


.interview-card--link{
  cursor: pointer;
  display: flex; 
  background: transparent;
  border: none;
  box-shadow: none;
  transform: none;
}

/* キーボード操作（Tab）でも分かるように */
.interview-card--link:focus-visible{
  outline: 3px solid rgba(0,0,0,0.35);
  outline-offset: 4px;
}

/* 背景グラデ下線（黒）＋ cloneで2行対応 */
.interview-card__catch{
  display: inline;
  padding-bottom: 6px; 
  line-height: 1.9;

  background-image: linear-gradient(#000, #000);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 2px; 

  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;

  transition: background-size .25s ease;
}

/*  ホバー/フォーカスで下線を伸ばす */
.interview-card--link:hover .interview-card__catch,
.interview-card--link:focus-visible .interview-card__catch{
  background-size: 100% 2px;
}

/* motion軽減 */
@media (prefers-reduced-motion: reduce){
  .interview-card__catch{
    transition: none;
  }
}

.recruit-information {
  --sec-pad: 88px;

  /* 見出しの位置 */
  --title-top: -30px;

  /* 見出しが重なる分の“確保スペース” */
  --title-space: 180px;

  background: #000000;
  padding: var(--sec-pad) 0;
  overflow: visible;
}

@media (max-width: 922px) {
  .recruit-information {
    --title-top: -70px;
    --title-space: 100px;
  }
  .recruit-information__head {
    --title-top: -25px;
  }
}

@media (max-height: 702px) {
  .recruit-information {
    --title-top: -70px;
    --title-space: 60px;
  }
  .recruit-information__head {
    --title-top: -40px;
  }
}

/* 背景画像帯 */
.recruit-information__bg {
  position: relative;
  min-height: clamp(420px, 60vh, 680px);
  background-image: url("../../img/recruit/recruit-information.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 40%;

  padding-top: var(--title-space);

  /* カード等の下余白 */
  padding-bottom: 64px;
}

/* タイトルを画像に重ねる */
.recruit-information__head {
  position: absolute;
  top: var(--title-top);
  left: 0;
  right: 0;
  margin: 0 auto;
  text-align: center;
  width: min(100%, 1100px);
}

/* 見出し文字の色 */
.recruit-information__title {
  color: #fff;
}

/* サブタイトル */
.recruit-information__subtitle {
  color: rgba(255, 255, 255, 0.92);
  margin-top: 12px;
}


/* =========================================
   FAQキャラクター配置
========================================= */
.faq-wrap{
  position: relative;
  overflow: visible;
}

/* =========================
   PC（基準）
========================= */
.faq-chara{
  position: absolute;
  right: 0;
  bottom: -60px;       /* 下にはみ出させる量 */
  width: 350px;        /* ← PCサイズ */
  height: auto;
  display: block;
  z-index: 2;
  pointer-events: none;
}

/* =========================
   タブレット
========================= */
@media (max-width: 991.98px){
  .faq-chara{
    width: 240px;
    bottom: -40px;
    right: 0;
  }
}

/* =========================
   スマホ
========================= */
@media (max-width: 767.98px){
  .faq-chara{
    width: 140px;
    bottom: -20px;
    right: 0;
  }
}

/* =========================
   Career ladder table
========================= */
.career-ladder-wrap{
  max-width: 920px;
}

.career-ladder{
  width: auto;
  border-collapse: collapse;
}

/* タイトル */
.career-ladder caption{
  font-size: 1.5rem;
  line-height: 1.2;
}


/* 左の番号 */
.career-no{
  width: 36px;
  font-size: 1.5rem;
  vertical-align: middle;
}


/* 中央の色付きセル */
.career-rank{
  width: 260px;
  height: 64px;
  vertical-align: middle;
  font-size: 1.25rem;
}


/* Bootstrap table の余白を調整 */
.career-ladder td{
  padding: 0;
}

/* 右側の説明 */
.career-note{
  width: 480px;
  font-size: 1.25rem; /* 少し抑える */
  line-height: 1.8;
  vertical-align: middle;
}

/* 色 */
.career-rank-1{
  --bs-table-bg: #ffff00;
  background-color: #ffff00;
}

.career-rank-2{
  --bs-table-bg: #dbeaf7;
  background-color: #dbeaf7;
}

.career-rank-3{
  --bs-table-bg: #9dc3e6;
  background-color: #9dc3e6;
}

.career-rank-4{
  --bs-table-bg: #2f75b5;
  background-color: #2f75b5;
  color: #000;
}

.qualification-list li{
  display: grid;
  grid-template-columns: auto 48px;
  column-gap: 6px;
  align-items: start;
}

.qualification-count{
  text-align: right;
  white-space: nowrap;
}

/* recruitページだけ、下にはみ出しを許可 */
.top.recruit-hero-section{
  overflow: visible;
}

/* top-media内でもはみ出しを許可 */
.top-media.recruit-hero-media{
  overflow: visible;
}


/* 見出し全体：PC/タブレットでは左下にはみ出し配置 */
.recruit-hero-heading{
  position: absolute;
  left: clamp(12px, 3vw, 40px);
  bottom: -82px;
  z-index: 4;
}

/* RECRUIT */
.recruit-hero-title{
  margin: 0;
  color: #000;

  font-weight: 600;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 1;
  letter-spacing: 0.12em;

  transform: translateX(-0.06em);
}

/* 採用について */
.recruit-hero-subtitle{
  margin: 12px 0 0;
  color: #000;

  font-weight: 700;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: 0.12em;
  line-height: 1;
}

/* タブレット調整 */
@media (min-width: 768px) and (max-width: 1199.98px){
  .recruit-hero-heading{
    bottom: -68px;
  }

  .recruit-hero-title{
    font-size: clamp(44px, 9vw, 72px);
  }

  .recruit-hero-subtitle{
    font-size: clamp(18px, 2.6vw, 24px);
  }
}

/* スマホ：absolute解除して通常配置 */
@media (max-width: 767.98px){
  .recruit-hero-heading{
    position: static;
    left: auto;
    bottom: auto;
    z-index: 4;

    margin-top: 12px;
    padding-left: 12px;
  }

  .recruit-hero-title{
    font-size: clamp(40px, 13vw, 64px);
    letter-spacing: 0.08em;

    transform: translateX(-0.04em);
  }


  .recruit-hero-subtitle{
    margin-top: 8px;
    font-size: clamp(14px, 6vw, 20px);
    letter-spacing: 0.08em;
  }
}


/* 右側キャラクター */
.recruit-hero-chara{
  position: absolute;
  right: clamp(8px, 3vw, 48px);
  bottom: clamp(-28px, -2vw, -12px);
  z-index: 5;

  width: clamp(260px, 32vw, 600px);
  height: auto;
  display: block;

  pointer-events: none;
}

@media (max-width: 1200px){
  .recruit-hero-chara{
    width: min(420px, 58vw);
    right: -24px;
    bottom: 0px;
  }

  .recruit-hero-title{
    bottom: -34px;
    font-size: clamp(44px, 9vw, 72px);
  }
}


@media (max-width: 767.98px){
  .recruit-hero-chara{
    width: min(420px, 88vw); /* ← 大きくする */
    right: -4px;
    bottom: 0px;           /* ← 上に上げる */
  }

  .recruit-hero-title{
    left: 12px;
    bottom: -26px;
    font-size: clamp(40px, 13vw, 64px);
    letter-spacing: 0.08em;
  }

  .top.recruit-hero-section{
    margin-bottom: 48px;
  }
}

