/* =============================
   Recruit Page – Final CSS
   ============================= */

/* Global base */
body {
  background-color: #fff;
  color: #333;
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.8;
}
body {
  max-width: 1920px;
  margin: 0 auto;
  overflow-x: hidden;
}

/* =============================
   HERO AREA（最終安定・沼回避版）
   ============================= */

/* 背景レイヤー */
.recruit-hero {
  padding-top: 90;
  position: relative;
  width: 100%;
  min-height: 900px;

  background-image:
    linear-gradient(rgba(255,255,255,0.25), rgba(255,255,255,0.25)),
    url('/assets/images/recruit/recruittop.jpg');

  background-repeat: no-repeat;
  background-size: cover;

  /* ★ 上を必ず表示、下だけ切る */
  background-position: top center;

  overflow: hidden;
}
.recruit-hero {
  background-position: center 80px; /* ← ここが本命 */
}


/* 1920pxで止める中身 */
.recruit-hero-inner {
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  position: relative;
}

/* 上部グレー帯（RECRUIT） */
.recruit-hero h1 {
  position: absolute;   /* ← これが全て */
  top: 0;
  left: 0;

  width: 100%;
  height: 80px;
  line-height: 80px;

  background: #595757;
  color: #fff;

  margin: 0;
  text-align: center;
  font-size: 32px;
  letter-spacing: 2px;
  z-index: 10;
}

/* 中央レイヤー */
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;

  /* 中央揃えをやめる */
  align-items: flex-start;
  justify-content: center;

  /* RECRUIT帯の直下に自然に来る位置 */
  padding-top: clamp(120px, 12vw, 180px);
  padding-left: clamp(20px, 6vw, 180px);
  padding-right: clamp(20px, 6vw, 180px);
}

/* 白カード */
.hero-copy-card {
  width: 100%;
  max-width: 960px;
  background: rgba(255, 255, 255, 0.75);
  padding: clamp(20px, 3.5vw, 44px) clamp(20px, 5vw, 64px);
  margin: 0 auto;
  margin-top: clamp(32px, 4vw, 64px); /* ← 通常位置 */
  color: #333;
}

@media screen and (max-width: 1450px) {
  .hero-copy-card {
    margin-top: clamp(72px, 8vw, 140px);
  }
}

/* 通常テキスト */
.hero-copy-card p {
  font-size: clamp(16px, 1.6vw, 22px);
  line-height: 1.4;
  font-weight: 500;
  margin: 8px 0;
}

/* 強調語 */
.hero-em {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 600;
  color: #000;
  letter-spacing: 1px;
}

/* =============================
   WORK SECTION（伊藤商事の仕事とは？）
   ============================= */

.work-section {
  background: #fff;
  /* padding: 144px 0 0px; */
  text-align: center;
}

.work-section h2 {
  font-size: 60px;
  font-weight: 500;
  margin-bottom: 5px;
  margin-top: 100px;
  color: #555;
  letter-spacing: 1px;
}

.work-list {
  color: #555;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto 50px;
  padding: 0 40px;
  list-style-position: outside;
  text-align: left;
}

.work-list li {
  white-space: normal; /* ← まず折り返す */
  font-size: clamp(18px, 1.6vw, 25px);
  line-height: 1.9;
}

.work-photo-button {
  margin-top: 110px;
  text-align: center;
  margin-bottom: 25px;
}

.work-btn {
  background: #68a0b4;
  color: #fff;
  border: none;
  padding: 10px 60px;
  font-size: 16px;
  border-radius: 6px;
  cursor: default;
}

/* 横長 1 枚帯画像 */
.work-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.work-image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* =============================
   WELFARE SECTION（福利厚生 / 協賛）
   ============================= */

.welfare-section {
  text-align: center;
  background: #fff;
  text-align: center;
  padding: 20px 10% 0px;
}

.welfare-section h2 {
  font-size: clamp(28px, 3vw, 50px);
  font-weight: 400;
  color: #555;
  margin-top:120px;
  margin-bottom: 25px;
  line-height: 1.4;

  /* これ重要 */
  white-space: normal;
  word-break: keep-all;
  text-align: center;
}

.welfare-photo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.welfare-image {
  width: 100%;
  max-width: 1420px;
  height: 280px;
  object-fit: cover;
  display: block;
}

.welfare-section p {
  white-space: normal; /* ← 必須 */
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.6;
  max-width: 1200px;
  margin: 34px auto 0;
  /* white-space: nowrap; */
  margin-bottom: 30px;
}

/* =============================
   INTERVIEW SECTION（原本デザイン完全再現）
   ============================= */

.interview {
  background: #fff;
  padding: 100px 0 120px;
  text-align: center;
  max-width: 1420px;
  margin: 0 auto;
}

.interview-title {
  background-color: #ea8d9b;
  color: #fff;
  text-align: center;
  padding: 0;
  font-size: 60px;
  font-weight: 300;
  letter-spacing: 2px;
  max-width: 1420px;   /* ← これがズレの原因 */
  margin: 0 auto 63.54px;
  /* border-radius: 4px; */
  font-weight: 600;
}

.interview-container {
  max-width: 1200px;                           /* 重要：広めの幅が美しい */
  padding: 40px 50px;
  border-radius: 14px;
  box-shadow:none;
      /* 0 8px 18px rgba(0,0,0,0.08), */
      /* 0 2px 4px rgba(0,0,0,0.04);               */
}

details {
  border-bottom: 2.5px solid #ddd;
}
details:last-child {
  border-bottom: none;
}

summary {
  cursor: pointer;
  padding: 10px 32px 10px 40px;
  font-size: 35px;
  font-weight: 500;
  color: #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  text-align: left;       /* ← 左寄せ */
}

.answer {
  margin-top: 0px;       /* ← 見出しとの距離 */
  padding: 0 40px 36px;   /* ← 左右を広くして上品 & 下も余白 */
  font-size: 20px;        /* ← バランスの良い文字サイズ */
  line-height: 1.9;
  color: #333;
  text-align: left;       /* ← 回答も左寄せ */
}

summary::after {
  content: '+';
  font-size: 52px;
  color: #999;
  font-weight: 400;
}

details[open] summary::after {
  content: '−';
}





/* =============================
   RECRUIT AREA（募集要項カード）
   ============================= */

.recruit-area {
  padding: 0;   /* ← これだけで外の変な余白が消える */
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
}

.recruit-area-inner {
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
  padding: 60px 0px 80px;
  border-radius: 14px;
}


/* 黒帯（募集要項タイトル） */
.recruit-title-band {
  max-width: 1420px;
  margin: 0 auto;
  background: #595757;
  padding: 10px 0;
  /* border-radius: 4px; */
  text-align: center;
}

.recruit-title-band h2 {
  color: #fff;
  font-size: 50px;
  letter-spacing: 2px;
  margin: 0;
  font-weight: 500;
}

Tabs styling placed above .recruit-info content
/* .tabs {
  justify-content: flex-start;
  display: flex;
  gap: 6px;
  margin-left: 0px;
  background: transparent;
} */


/* タブ */
/*
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 0;   /* ← タブと白枠がくっつく */


.tab.active {
  top: 0;                        /* ← これで下に隙間が出ない */
  border-bottom: 1px solid #fff;
}

/* .tab {
  background-color: #f4f4f4;
  border: 1px solid #ccc;
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  padding: 12px 50px;
  cursor: pointer;
  font-size: 15.5px;
  transition: all .3s ease;
  font-weight: 500;
  color: #333;
} */

/* .tab:hover {
  background-color: #444;
  color: #fff;
}

.tab.active {
  background: #fff;
  color: #222;
  border: 1px solid #ccc;
  border-bottom: 1px solid #fff;
  position: relative;
  top: px;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
} */

/* タブ中身 */
.tab-content {
  background: #fff;
  border-radius: 0 0 10px 10px;
  padding: 40px 50px;
}

.tab-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tab-content li {
  border-bottom: 1px solid #ddd;
  padding: 18px 0;
  font-size: 15.5px;
  color: #333;
}



.interview-box {
  max-width: 1200px;
  margin: 40px auto;
  background: #ffffff;
  padding: 20px 30px;
  border-radius: 26px;
  border: 1px solid #eee;
   /* 太めの線 */
  border: 2.5px solid #ddd;
  /* box-shadow: 0 8px 24px rgba(0,0,0,0.16); */
}


.recruit-bg {
  background: #a8dce3;
  padding: 60px 20px 80px;
  max-width: 1420px;
  margin: 0 auto 80px;
  /* border-radius: 12px; */
}



/* recruit-bg が持つ余計なタブを無効化 */
/* .recruit-bg > .tabs {
  display: none;
} */


.tabs {
  width: 100%;
  max-width: 1200px;       /* ← 少し細いタブ幅（完成図準拠） */
  margin: 0 auto;     /* ← 中央寄せ（白カードと同じ挙動） */
  display: flex;
  justify-content: flex-start;
  gap: 8px;
}

.answer {
  padding: 10px 60px 40px;
  font-size: 20px;
  line-height: 1.9;
  color: #333;
}

/* ボタン */
.tabs .tab {
  /* flex: 1; */
  /* padding: 18px 85px; */
  flex: 1 1 0;
  max-width: 260px;
  padding: 18px 0;

  background: #ffffff;
  color: #333;
  border-radius: 15px 15px 0 0;
  font-size: 20px;
  border: none;
}

/* 選択中のタブ */
.tabs .tab.active {
  color: #000;
  font-weight: 600;
  border-bottom: none;
  margin-bottom: -1px;   /* ← これで線が完全に消える */
  position: relative;
  z-index: 10;
}

/* 白カードの影と丸みを完成図に寄せる */
.recruit-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 50px;
  background: #FFFFFF;
  position: relative;
  border-radius: 0 15px 15px 15px;
  top: -6px;
  z-index: 1;
  box-shadow:     6px 6px 0 rgba(0,0,0,0.12),   /* ← 右下だけに影が出る */
    0 12px 24px rgba(0,0,0,0.20); /* ← 下影のみ */;
}

.tab.active {
  box-shadow: none !important;
}

.tabs {
  box-shadow: none !important;
}
.tab {
  box-shadow: none !important;
}

@media screen and (min-width: 431px) {
  .hero-overlay h1 {
    display: block !important;
  }
}



.job-sales li {
  background: #fff;
}

.job-warehouse li {
  background: #ffe3ea;
}

.job-delivery li {
  background: #e6f4f8;
}

.job-office li {
  background: #f3f3e6
}


/* 中の色 */
/* デフォルト（営業職） */
.recruit-info.job-sales {
  background: #ffffff;
}

/* 倉庫スタッフ */
.recruit-info.job-warehouse {
  background: #ffe4ec;
}

/* 配送・施工 */
.recruit-info.job-delivery {
  background: #e6f3ff;
}

/* 事務オペレーター */
.recruit-info.job-office {
  background: #f3f3e6;
}

.tab-content {
  background: transparent;
}


/* 営業職（白） */
.tabs .tab.sales.active {
  background: #fff;
}

/* 倉庫スタッフ（ピンク） */
.tabs .tab.warehouse.active {
  background: #ffe4ec;
}

/* 配送・施工（青） */
.tabs .tab.delivery.active {
  background: #e6f3ff;
}

/* 事務オペレーター（薄黄） */
.tabs .tab.office.active {
  background: #f3f3e6;
}

.instagram-link {
  display: inline-block;
  margin-left: 8px;
}

/* 倉庫スタッフ：濃いピンク */
.tabs .tab.warehouse:not(.active) {
  background: #f6c6d2;
}

/* 配送・施工：濃い水色 */
.tabs .tab.delivery:not(.active) {
  background: #cfe7f2;
}

/* 事務オペレーター：濃い薄黄 */
.tabs .tab.office:not(.active) {
  background: #e6e6c8;
}

/* 倉庫スタッフ：濃いピンク */
.tabs .tab.warehouse:not(.active) {
  background: #f6c6d2;
}

/* 配送・施工：濃い水色 */
.tabs .tab.delivery:not(.active) {
  background: #cfe7f2;
}

/* 事務オペレーター：濃い薄黄 */
.tabs .tab.office:not(.active) {
  background: #e6e6c8;
}

@media screen and (max-width: 768px) {

  /* ヒーロー構造は完全に消す */
  .recruit-hero {
    display: none;
  }

}