@charset "UTF-8";
/*
 * LAB（働く楽しさ発見ラボ）
 *   - 一覧 lab.php・詳細 lab_detail.php（.lab_wrap の中）
 *   - トップの入口バナー（index.php の .lab_banner_wrap）
 * 色は会社HPの緑（#4cbc66）と Worldwide Design System のトークン値。
 * pickup.css と同じく、変数はこの枠の中だけで定義し、サイト全体の :root には触らない。
 * 英字の見出しは既存の .bsb（Blogger Sans Bold）を使う。
 * PC は body の min-width 1280px が前提。スマホは既存どおり 500px 以下で1列にする。
 * common.css が * { line-height: 1em } と a { display: block } を当てているので、行間は個別に指定する。
 */
.lab_wrap,
.lab_banner_wrap {
  --lab-green: #4cbc66;           /* 会社HPの緑（装飾・大きな英字だけ。白文字の地には使わない） */
  --lab-green-pale: #ecf3da;      /* ヘッダーと同じ淡い緑 */
  --lab-brand-dark: #057138;      /* brand-dark（白文字 6.1:1） */
  --lab-brand-darker: #045c2d;    /* brand-darker（ホバー） */
  --lab-brand-light: #B8CA52;     /* brand-light */
  --lab-ink-primary: #1f2937;     /* ink-primary */
  --lab-ink-secondary: #475569;   /* ink-secondary */
  --lab-surface: #ffffff;         /* surface */
  --lab-surface-2: #f5f7f1;       /* surface-2 */
  --lab-border: #e3e8dc;
}

/* =========================================================
 * 一覧・詳細の共通
 * ========================================================= */
.lab_wrap {
  padding-top: 55px;
  color: var(--lab-ink-primary);
}

/* 見出し: ほかのページ（staff.css）と同じ h2_wrap の作り。手書き英字 Lab! ＋日本語 h1 ＋下線
 * 値は staff.css と同じ。英字画像の幅だけ、Staff! と字の高さが揃うよう 62px（画像は 159×77 の2倍解像度。字の高さが Staff! の 31px 前後になる幅） */
.lab_wrap .h2_en {
  margin-left: auto;
  margin-right: auto;
  width: 62px;
}
.lab_wrap .h2_wrap h1 {
  position: relative;
  margin-top: 10px;
  font-size: 1.8rem;
  color: rgb(34, 24, 21);
  font-weight: 600;
  line-height: 1em;
  text-align: center;
  letter-spacing: 0.2em;
  z-index: 1;
}
.lab_wrap .h2_back {
  position: relative;
  top: -7px;
  margin-left: auto;
  margin-right: auto;
  width: 242px;
  z-index: 0;
}
/* キャッチコピー: 実績紹介の導入文（result.css の .p_1）と同じ控えめな体裁 */
.lab_wrap .lab_catch {
  margin-top: 40px;
  font-size: 1.5rem;
  color: #595959;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.1em;
  line-height: 20px;
}

/* 小見出し（ABOUT / INITIATIVES） */
.lab_wrap .lab_label {
  position: relative;
  display: inline-block;
  padding-left: 22px;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--lab-brand-dark);
}
.lab_wrap .lab_label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background-color: var(--lab-green);
}

/* ABOUT */
.lab_wrap .lab_about {
  margin: 60px auto 0;
  padding: 36px 50px 40px;
  width: 900px;
  background-color: var(--lab-surface-2);
  border-radius: 8px;
}
.lab_wrap .lab_about_lead {
  margin-top: 20px;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--lab-ink-primary);
}
.lab_wrap .lab_about_text {
  margin-top: 14px;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.05em;
  color: var(--lab-ink-secondary); /* surface-2 の上なので tertiary ではなく secondary */
}

/* =========================================================
 * 一覧のカード（3列）
 * ========================================================= */
.lab_wrap .lab_list_wrap {
  margin: 60px auto 0;
  width: 1000px;
}
.lab_wrap .lab_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  margin-top: 28px;
}
.lab_wrap .lab_list > li {
  display: block;
}
.lab_wrap .lab_card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--lab-border);
  border-radius: 8px;
  background-color: var(--lab-surface);
  color: var(--lab-ink-primary);
  transition: transform 0.2s, box-shadow 0.2s;
}
.lab_wrap .lab_card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.12);
}
.lab_wrap .lab_card:focus-visible {
  outline: 3px solid var(--lab-brand-dark);
  outline-offset: 2px;
}
.lab_wrap .lab_card_img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--lab-green-pale); /* 画像の読み込み前・画像なし */
}
.lab_wrap .lab_card_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.lab_wrap .lab_card:hover .lab_card_img img {
  transform: scale(1.04);
}
/* 通し番号（遊び心。読み上げはしない） */
.lab_wrap .lab_card_no {
  position: absolute;
  left: 12px;
  bottom: 8px;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.05em;
  color: var(--lab-surface);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.lab_wrap .lab_card.no_image .lab_card_no {
  color: var(--lab-green);
  text-shadow: none;
}
.lab_wrap .lab_card_body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 22px 22px;
}
.lab_wrap .lab_card_category {
  align-self: flex-start;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--lab-brand-dark);
  background-color: var(--lab-green-pale);
  border-radius: 999px;
}
.lab_wrap .lab_card_title {
  margin-top: 10px;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.05em;
  color: var(--lab-ink-primary);
}
.lab_wrap .lab_card_text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--lab-ink-secondary);
}
/* 「詳しく見る」: PICK UP 枠と同じ、下線＋矢印。ホバーで線が伸びる */
.lab_wrap .lab_card_more {
  position: relative;
  align-self: flex-end;
  margin-top: auto;
  padding-top: 18px;
  padding-right: 4px;
  padding-bottom: 5px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
  letter-spacing: 0.1em;
  color: var(--lab-brand-dark);
}
.lab_wrap .lab_card_more::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: var(--lab-brand-dark);
  transition: width 0.2s;
}
.lab_wrap .lab_card_more::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: 4px;
  width: 12px;
  height: 1px;
  background-color: var(--lab-brand-dark);
  transform: rotate(45deg);
}
.lab_wrap .lab_card:hover .lab_card_more {
  color: var(--lab-brand-darker);
}
.lab_wrap .lab_card:hover .lab_card_more::before {
  width: calc(100% + 16px);
}

/* 0件・取得失敗 */
.lab_wrap .lab_empty {
  margin-top: 28px;
  padding: 50px 20px;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  color: var(--lab-ink-secondary);
  background-color: var(--lab-surface-2);
  border-radius: 8px;
}

/* 下部の CTA（result.css の .link_list と同じ並べ方） */
.lab_wrap .link_list {
  margin-top: 120px;
}
.lab_wrap .link_list .cta_wrap.cta_contact {
  margin-top: 40px;
}
.lab_wrap .link_list .cta_wrap.cta_contact .cta {
  background-color: #4cbc66;
}
.lab_wrap .link_list .cta_wrap.cta_contact .cta .calc {
  width: 70px;
}
.lab_wrap .link_list .cta_wrap.cta_contact .cta .text_box .title img {
  width: 218px;
}

/* =========================================================
 * 詳細
 * ========================================================= */
.lab_wrap .lab_breadcrumb {
  margin: 0 auto;
  width: 1000px;
}
.lab_wrap .lab_breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.6;
  color: var(--lab-ink-secondary);
}
.lab_wrap .lab_breadcrumb li {
  display: flex;
  align-items: center;
}
.lab_wrap .lab_breadcrumb li + li::before {
  content: "›";
  margin: 0 10px;
  color: var(--lab-ink-secondary);
}
.lab_wrap .lab_breadcrumb a {
  display: inline;
  color: var(--lab-brand-dark);
  text-decoration: underline;
}

.lab_wrap .lab_detail_head {
  position: relative;
  margin: 40px auto 0;
  width: 1000px;
}
.lab_wrap .lab_detail_category {
  position: relative;
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--lab-brand-dark);
  background-color: var(--lab-green-pale);
  border-radius: 999px;
  z-index: 1;
}
.lab_wrap .lab_detail_title {
  position: relative;
  margin-top: 14px;
  font-size: 32px;
  font-weight: bold;
  line-height: 1.5;
  letter-spacing: 0.06em;
  color: var(--lab-ink-primary);
  z-index: 1;
}
.lab_wrap .lab_detail_summary {
  position: relative;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--lab-ink-secondary);
  z-index: 1;
}

/* Canva の埋め込み（16:9） */
.lab_wrap .lab_embed {
  margin: 40px auto 0;
  width: 1000px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--lab-border);
  border-radius: 8px;
  background-color: var(--lab-surface-2);
}
.lab_wrap .lab_embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}
.lab_wrap .lab_notice {
  margin: 40px auto 0;
  padding: 50px 20px;
  width: 1000px;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  color: var(--lab-ink-secondary);
  background-color: var(--lab-surface-2);
  border-radius: 8px;
}

/* 興味を持った方へ（お問い合わせ・採用情報） */
.lab_wrap .lab_next {
  margin: 60px auto 0;
  padding: 36px 40px 40px;
  width: 1000px;
  text-align: center;
  background-color: var(--lab-surface-2);
  border-radius: 8px;
}
.lab_wrap .lab_next_lead {
  font-size: 18px;
  font-weight: bold;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--lab-ink-primary);
}
.lab_wrap .lab_next_buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 22px;
}
.lab_wrap .lab_button {
  display: inline-block;
  min-width: 240px;
  padding: 18px 30px;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-align: center;
  color: var(--lab-surface);
  background-color: var(--lab-brand-dark);
  border: 2px solid var(--lab-brand-dark);
  border-radius: 999px;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.lab_wrap .lab_button:hover {
  background-color: var(--lab-brand-darker);
  border-color: var(--lab-brand-darker);
  transform: translateY(-2px);
}
.lab_wrap .lab_button_outline {
  color: var(--lab-brand-dark);
  background-color: var(--lab-surface);
}
.lab_wrap .lab_button_outline:hover {
  color: var(--lab-surface);
}
.lab_wrap .lab_button:focus-visible,
.lab_wrap .lab_back:focus-visible,
.lab_wrap .lab_breadcrumb a:focus-visible {
  outline: 3px solid var(--lab-brand-dark);
  outline-offset: 2px;
}
.lab_wrap .lab_visually_hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* 一覧へ戻る */
.lab_wrap .lab_back {
  position: relative;
  margin: 40px auto 0;
  padding: 8px 0 8px 26px;
  width: -moz-fit-content;
  width: fit-content;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--lab-brand-dark);
}
.lab_wrap .lab_back::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-left: 2px solid var(--lab-brand-dark);
  border-bottom: 2px solid var(--lab-brand-dark);
  transform: rotate(45deg);
  transition: left 0.2s;
}
.lab_wrap .lab_back:hover::before {
  left: 0;
}

/* =========================================================
 * トップの入口バナー（index.php。PICK UP 枠の直後）
 * 幅は News 欄・PICK UP 枠と同じ 900px（box-sizing: border-box なので余白込み）
 * ========================================================= */
.lab_banner_wrap {
  margin-top: 60px;
  width: 100%;
}
.lab_banner_wrap .lab_banner {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
  padding: 30px 50px;
  width: 900px;
  overflow: hidden;
  color: var(--lab-ink-primary);
  background-color: var(--lab-green-pale);
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
/* 右上に淡い円を敷く（遊び心） */
.lab_banner_wrap .lab_banner::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background-color: var(--lab-brand-light);
  opacity: 0.35;
}
.lab_banner_wrap .lab_banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.12);
}
.lab_banner_wrap .lab_banner:focus-visible {
  outline: 3px solid var(--lab-brand-dark);
  outline-offset: 2px;
}
/* 英字は見出しと同じ手書きの Lab! 画像。枠は以前の文字「LAB」（84px）と同じ 169×84 にしてバナーの大きさを保つ */
.lab_banner_wrap .lab_banner_en {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 169px;
  height: 84px;
}
.lab_banner_wrap .lab_banner_en img {
  display: block;
  width: 169px;
  height: auto;
}
.lab_banner_wrap .lab_banner_body {
  position: relative;
  display: block;
  flex: 1;
  margin-left: 36px;
  padding-left: 36px;
  border-left: 2px solid var(--lab-green);
}
.lab_banner_wrap .lab_banner_title {
  display: block;
  font-size: 24px;
  font-weight: bold;
  line-height: 1.4;
  letter-spacing: 0.12em;
  color: var(--lab-brand-dark);
}
.lab_banner_wrap .lab_banner_text {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.6;
  letter-spacing: 0.05em;
  color: var(--lab-ink-primary);
}
/* 矢印（丸の中に →） */
.lab_banner_wrap .lab_banner_arrow {
  position: relative;
  display: block;
  flex-shrink: 0;
  margin-left: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--lab-brand-dark);
  transition: transform 0.2s, background-color 0.2s;
}
.lab_banner_wrap .lab_banner_arrow::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 27px;
  width: 20px;
  height: 2px;
  background-color: var(--lab-surface);
}
.lab_banner_wrap .lab_banner_arrow::after {
  content: "";
  position: absolute;
  left: 28px;
  top: 22px;
  width: 10px;
  height: 10px;
  border-top: 2px solid var(--lab-surface);
  border-right: 2px solid var(--lab-surface);
  transform: rotate(45deg);
}
.lab_banner_wrap .lab_banner:hover .lab_banner_arrow {
  transform: translateX(6px);
  background-color: var(--lab-brand-darker);
}

/* =========================================================
 * スマホ（500px以下）: 1列
 * ========================================================= */
@media (max-width: 500px) {
  .lab_wrap {
    padding-top: 60px;
  }
  /* 見出しのスマホ指定も staff.css と同じ。英字画像は Staff! と同じ縮尺で 40px */
  .lab_wrap .h2_en {
    margin-left: auto;
    margin-right: auto;
    width: 40px;
  }
  .lab_wrap .h2_wrap h1 {
    position: relative;
    margin-top: 10px;
    font-size: 1.8rem;
    color: rgb(34, 24, 21);
    font-weight: 600;
    line-height: 1em;
    text-align: center;
    letter-spacing: 0.2em;
    z-index: 1;
  }
  .lab_wrap .h2_back {
    position: relative;
    top: -7px;
    margin-left: auto;
    margin-right: auto;
    z-index: 0;
  }
  .lab_wrap .lab_catch {
    margin-top: 30px;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
  }
  .lab_wrap .lab_label {
    font-size: 22px;
  }
  .lab_wrap .lab_about {
    margin-top: 40px;
    padding: 24px 18px 28px;
    width: 90%;
  }
  .lab_wrap .lab_about_lead {
    font-size: 17px;
  }
  .lab_wrap .lab_about_text {
    font-size: 14px;
    line-height: 1.9;
  }
  .lab_wrap .lab_list_wrap {
    margin-top: 40px;
    width: 90%;
  }
  .lab_wrap .lab_list {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 20px;
  }
  .lab_wrap .lab_card_body {
    padding: 16px 16px 20px;
  }
  .lab_wrap .lab_card_title {
    font-size: 17px;
  }
  .lab_wrap .link_list {
    margin-top: 60px;
  }
  .lab_wrap .link_list .cta_wrap.cta_contact {
    margin-top: 20px;
  }
  .lab_wrap .link_list .cta_wrap.cta_contact .cta .calc {
    width: 48px;
  }
  .lab_wrap .link_list .cta_wrap.cta_contact .cta .text_box .title img {
    width: 140px;
  }

  .lab_wrap .lab_breadcrumb,
  .lab_wrap .lab_detail_head,
  .lab_wrap .lab_embed,
  .lab_wrap .lab_notice,
  .lab_wrap .lab_next {
    width: 90%;
  }
  .lab_wrap .lab_breadcrumb ol {
    font-size: 12px;
  }
  .lab_wrap .lab_detail_head {
    margin-top: 28px;
  }
  .lab_wrap .lab_detail_title {
    font-size: 22px;
  }
  .lab_wrap .lab_detail_summary {
    font-size: 15px;
  }
  .lab_wrap .lab_embed,
  .lab_wrap .lab_notice {
    margin-top: 28px;
  }
  .lab_wrap .lab_next {
    margin-top: 40px;
    padding: 24px 16px 28px;
  }
  .lab_wrap .lab_next_lead {
    font-size: 16px;
  }
  .lab_wrap .lab_next_buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .lab_wrap .lab_button {
    width: 100%;
    min-width: 0;
    padding: 16px 20px;
  }

  .lab_banner_wrap {
    margin-top: 30px;
  }
  .lab_banner_wrap .lab_banner {
    padding: 20px 16px;
    width: 90%;
  }
  .lab_banner_wrap .lab_banner::before {
    right: -80px;
    width: 180px;
    height: 180px;
  }
  .lab_banner_wrap .lab_banner_en {
    width: 88px;
    height: 44px;
  }
  .lab_banner_wrap .lab_banner_en img {
    width: 88px;
  }
  .lab_banner_wrap .lab_banner_body {
    margin-left: 14px;
    padding-left: 14px;
  }
  .lab_banner_wrap .lab_banner_title {
    font-size: 16px;
    letter-spacing: 0.05em;
  }
  .lab_banner_wrap .lab_banner_text {
    margin-top: 6px;
    font-size: 12px;
  }
  .lab_banner_wrap .lab_banner_arrow {
    margin-left: 10px;
    width: 36px;
    height: 36px;
  }
  .lab_banner_wrap .lab_banner_arrow::before {
    left: 10px;
    top: 17px;
    width: 14px;
  }
  .lab_banner_wrap .lab_banner_arrow::after {
    left: 17px;
    top: 13px;
    width: 8px;
    height: 8px;
  }
}

/* 動きを減らす設定の利用者には浮き上がり・拡大を出さない */
@media (prefers-reduced-motion: reduce) {
  .lab_wrap .lab_card,
  .lab_wrap .lab_card_img img,
  .lab_wrap .lab_card_more::before,
  .lab_wrap .lab_button,
  .lab_wrap .lab_back::before,
  .lab_banner_wrap .lab_banner,
  .lab_banner_wrap .lab_banner_arrow {
    transition: none;
  }
  .lab_wrap .lab_card:hover,
  .lab_wrap .lab_card:hover .lab_card_img img,
  .lab_wrap .lab_button:hover,
  .lab_banner_wrap .lab_banner:hover,
  .lab_banner_wrap .lab_banner:hover .lab_banner_arrow {
    transform: none;
  }
}
