/* ===========================================
   page-shinsotsu-entry-detail.css
   新卒-エントリー詳細ページ
   （single-keiken-recruit.css の構成・クラス名に準拠。
   　色のみ common-shinsotsu.css の --shinsotsu-color-* に置き換え）
   =========================================== */

/* ==============================
   ページ背景装飾
   （page-entry-top_bg.webp：1920×4973pxの縦長画像。
   　FVの枠(750px)に収まらないため main 側で上部から流し込む）
============================== */

/* wp打ち消し */
p, h3, h4, li, ol { 
  margin: 0;
}

.entry_page_main {
    background-color: var(--shinsotsu-color-bg-base);
    background-image: url('../../images/shinsotsu/page-entry-top_bg.webp');
    background-position: top center;
    background-size: 100% auto;
}

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

.fv_wrap {
    max-height: none;
    /* overflow: hidden; */
    margin-bottom: 80px;
    display: flex;
    align-items: flex-start;
}

.fv_inner {
    width: calc(100% - 60px);
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 200px;
    display: flex;
    flex-direction: column;
    gap: 0;

    box-sizing: border-box;
}

/* Eyebrow ("Entry") */
.fv_eyebrow {
    margin: 0;

    font-size: 24px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;

    color: var(--shinsotsu-color-primary);
}

/* Title */
.fv_title {
    margin: 16px 0 0;

    font-size: 45px;
    font-weight: bold;
    line-height: 1.3;
    letter-spacing: 0.1em;
}

/* Anchor nav */
.fv_nav {
    margin: 32px 0;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 32px;
    row-gap: 12px;
}

.fv_nav_item {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0.1em;

    color: inherit;
    text-decoration: none;
    white-space: nowrap;
}

/* Underline text only, not arrow */
.fv_nav_item_text {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.fv_nav_item_arrow {
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
}

.fv_nav_item:hover .fv_nav_item_text {
    color: var(--shinsotsu-color-primary);
}

.fv_entry_btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 360px;
    height: 72px;
    padding: 0 40px;
    background-color: var(--shinsotsu-color-primary);
    border-radius: 8px;
    text-decoration: none;
    box-sizing: border-box;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.fv_entry_btn:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* 2行テキスト（メイン + LINE遷移の注記） */
.fv_entry_btn_label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fv_entry_btn_text {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 18px;
  letter-spacing: 0.08em;
  font-weight: bold;
  color: #ffffff;
}

.fv_entry_btn_ext_icon {
  color: #ffffff;
  flex-shrink: 0;
}

.fv_entry_btn_sub {
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: normal;
  color: #ffffff;
  opacity: 0.85;
}

.fv_entry_btn_icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  flex-shrink: 0;
}


/* ==============================
   FV - responsive
============================== */

@media (max-width: 900px) {
    .fv_wrap {
        max-height: none;
        margin-bottom: 20px;
    }

    .fv_inner {
        width: calc(100% - 60px);
        max-width: 1000px;
        padding-top: 80px;
        margin-left: clamp(30px, 8vw, 100px);
    }

    /* パンくずはPCのみ表示。SPでは非表示 */
    .fv_inner .shinsotsu_breadcrumb {
        display: none;
    }

    .fv_eyebrow {
        font-size: 25px;
    }

    .fv_title {
        margin-top: 12px;

        font-size: 32px;
        line-height: 1.3;
        letter-spacing: 0.09em;
    }

    .fv_nav {
        margin-top: 28px;

        flex-direction: column;
        align-items: flex-start;
        row-gap: 20px;
    }

    .fv_nav_item {
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.1em;
    }

    .fv_entry_btn {
        width: 340px;
        height: 66px;
        padding-right: 56px;
        justify-content: center;
    }

    .fv_entry_btn_text {
        font-size: 18px;
    }

    .fv_entry_btn_icon {
        width: 28px;
        height: 28px;
    }
}



/* ==============================
   Content (work)
============================== */

.content_wrap {
    padding-bottom: clamp(50px, 8vw, 100px);
}

.content_inner {
    width: min(1000px, calc(100% - clamp(48px, 9vw, 80px)));
    margin: 0 auto;

    font-size: 16px;
    line-height: 1.8;
    letter-spacing: 0.08em;

    box-sizing: border-box;
}

/* Section title */
.content_inner h2 {
    margin: clamp(50px, 8vw, 100px) 0 24px;
    padding-left: 16px;
    border-left: 4px solid var(--shinsotsu-color-primary);

    font-size: clamp(20px, 3vw, 28px);
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.08em;

    color: inherit;
}

/* First section */
.content_inner h2:first-of-type {
    margin-top: 0;
}

/* Body text */
.content_inner p {
    margin: 0 0 16px;

    font-size: 16px;
    font-weight: normal;
    line-height: 1.8;
    letter-spacing: 0.08em;

    overflow-wrap: break-word;
}

/* Last paragraph */
.content_inner p:last-child {
    margin-bottom: 0;
}

/* Link */
.content_inner a {
    color: #0099ff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;

    overflow-wrap: break-word;
}

.content_inner a:hover {
    opacity: 0.75;
}

/* ==============================
   Content - responsive
============================== */

@media (max-width: 900px) {
    .content_wrap {
        padding: 50px 0;
    }

    .content_inner {
        font-size: 16px;
        line-height: 1.8;
        letter-spacing: 0.03em;
    }

    .content_inner h2 {
        margin: 50px 0 20px;
        padding-left: 16px;
        border-left-width: 4px;

        font-size: 20px;
        line-height: 1.5;
        letter-spacing: 0.08em;
    }

    .content_inner h2:first-of-type {
        margin-top: 0;
    }

    .content_inner p {
        margin: 0 0 16px;

        font-size: 16px;
        line-height: 1.8;
        letter-spacing: 0.03em;
    }
}

/* ==============================
   Requirements table
============================== */

.requirements_wrap {
    padding: clamp(15px, 3vw, 30px) 0 clamp(50px, 8vw, 100px);
}

.requirements_inner {
    width: min(1000px, calc(100% - clamp(48px, 9vw, 80px)));
    margin: 0 auto;
    box-sizing: border-box;
}

/* Title */
.requirements_title {
    margin: 0 0 34px;
    padding-left: 16px;
    border-left: 4px solid var(--shinsotsu-color-primary);

    font-size: clamp(20px, 3vw, 28px);
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.08em;

    color: inherit;
}

/* Table */
.requirements_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;

    background: #fff;
    border-radius: 16px;
    overflow: hidden;
}

.requirements_row {
    border: none;
}

.requirements_head,
.requirements_data {
    border-bottom: 1px solid #bfbfbf;
    vertical-align: top;
    box-sizing: border-box;
}

.requirements_row:last-child .requirements_head,
.requirements_row:last-child .requirements_data {
    border-bottom: none;
}

/* Left column */
.requirements_head {
    width: 250px;
    padding: clamp(20px, 4vw, 40px) clamp(20px, 3vw, 30px);

    background: #e0e0e0;

    font-size: 14px;
    font-weight: bold;
    line-height: 2;
    letter-spacing: 0.08em;
    text-align: center;

    color: inherit;
}

/* Right column */
.requirements_data {
    padding: clamp(28px, 4vw, 40px) clamp(28px, 6vw, 70px);

    background: #fff;

    font-size: 14px;
    font-weight: normal;
    line-height: 2;
    letter-spacing: 0.08em;

    color: inherit;
    overflow-wrap: break-word;
}

/* If ACF outputs p tags */
.requirements_data p {
    margin: 0;
}

.requirements_data p + p {
    margin-top: 1em;
}

.requirements_data a {
    color: #0099ff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.requirements_data a:hover {
    opacity: 0.75;
}

/* Radius adjustment */
.requirements_row:first-child .requirements_head {
    border-top-left-radius: 16px;
}

.requirements_row:first-child .requirements_data {
    border-top-right-radius: 16px;
}

.requirements_row:last-child .requirements_head {
    border-bottom-left-radius: 16px;
}

.requirements_row:last-child .requirements_data {
    border-bottom-right-radius: 16px;
}

/* ==============================
   Requirements table - responsive
============================== */

@media (max-width: 900px) {
    .requirements_wrap {
        padding: 15px 0 50px;
    }

    .requirements_title {
        margin: 0 0 25px;
        padding-left: 16px;
        border-left-width: 4px;

        font-size: 20px;
        line-height: 1.2;
        letter-spacing: 0.08em;
    }

    .requirements_table,
    .requirements_table tbody,
    .requirements_row,
    .requirements_head,
    .requirements_data {
        display: block;
        width: 100%;
    }

    .requirements_table {
        table-layout: auto;
        border-radius: 12px;
        overflow: hidden;
    }

    .requirements_head,
    .requirements_data {
        border-bottom: none;
    }

    .requirements_head {
        padding: 15px 24px;

        font-size: 14px;
        line-height: 2;
        letter-spacing: 0.08em;
        text-align: left;
    }

    .requirements_data {
        padding: 24px 24px 28px;

        font-size: 14px;
        line-height: 2;
        letter-spacing: 0.08em;
    }

    .requirements_row:first-child .requirements_head {
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
    }

    .requirements_row:first-child .requirements_data {
        border-top-right-radius: 0;
    }

    .requirements_row:last-child .requirements_head {
        border-bottom-left-radius: 0;
    }

    .requirements_row:last-child .requirements_data {
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
    }
}


/* ==============================
   Hiring flow
============================== */

.flow_wrap {
    padding: clamp(25px, 5vw, 50px) 0 clamp(80px, 10vw, 100px);
}

.flow_inner {
    width: min(1000px, calc(100% - clamp(48px, 9vw, 80px)));
    margin: 0 auto;
    box-sizing: border-box;
}

.flow_title {
    margin: 0 0 clamp(40px, 7vw, 70px);
    padding-left: 16px;
    border-left: 4px solid var(--shinsotsu-color-primary);

    font-size: clamp(20px, 3vw, 28px);
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.08em;

    color: inherit;
}

/* Step overview */
.flow_steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    position: relative;
    margin: 0 0 clamp(50px, 8vw, 80px);
}

.flow_steps::before {
    content: "";
    position: absolute;
    top: clamp(25px, 3.5vw, 40px);
    left: calc(clamp(50px, 7vw, 80px) / 2);
    right: calc(clamp(50px, 7vw, 80px) / 2);

    height: 1px;
    background: #d9d9d9;
    z-index: 0;
}

.flow_step {
    width: clamp(50px, 7vw, 80px);
    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;
    z-index: 1;
}

.flow_step_num {
    display: flex;
    align-items: center;
    justify-content: center;

    width: clamp(50px, 7vw, 80px);
    height: clamp(50px, 7vw, 80px);
    border-radius: 50%;

    background: #e3e3e3;
    color: inherit;

    font-size: clamp(20px, 2.6vw, 30px);
    font-weight: bold;
    line-height: 1;
}

.flow_step_label {
    margin-top: clamp(12px, 2vw, 18px);

    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;

    color: inherit;
    text-align: center;
    /* 7ステップ分の長いラベル（例：一次面接・適性検査）にも対応できるよう折り返しを許可 */
    white-space: normal;
    overflow-wrap: break-word;
}

/* Step detail */
.flow_details {
    display: flex;
    flex-direction: column;
}

.flow_detail {
    display: grid;
    grid-template-columns: 80px clamp(80px, 10vw, 120px) 1fr;
    column-gap: 30px;
    align-items: start;

    position: relative;
    padding: 0 0 80px;
    box-sizing: border-box;
}

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

.flow_detail:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 80px;
    bottom: 0;
    left: 39px;

    width: 1px;
    background: var(--shinsotsu-color-primary);
}

.flow_detail_num {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 80px;
    height: 80px;
    border: 1px solid var(--shinsotsu-color-primary);
    border-radius: 50%;

    background: #fff;
    color: var(--shinsotsu-color-primary);

    font-size: 25px;
    font-weight: bold;
    line-height: 1;

    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

.flow_detail_label {
    padding-top: 28px;

    font-size: 16px;
    font-weight: bold;
    line-height: 1.5;

    color: var(--shinsotsu-color-primary);
}

.flow_detail_text {
    margin: 0;
    padding-top: 28px;

    font-size: 16px;
    line-height: 2;
    letter-spacing: 0;

    color: inherit;
}

.flow_detail_text a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.flow_detail_text a:hover {
    opacity: 0.75;
}

/* ==============================
   Hiring flow - responsive
============================== */

@media (max-width: 900px) {
    .flow_wrap {
        padding: 25px 0 80px;
    }

    .flow_title {
        margin: 0 0 30px;
        padding-left: 16px;
        border-left-width: 4px;

        font-size: 20px;
        line-height: 1.4;
        letter-spacing: 0.08em;
    }

    /* Step overview（表示はPCのみ。SPでは非表示） */
    .flow_steps {
        display: none;
    }

    /* Step detail */
    .flow_detail {
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-template-rows: auto auto;
        column-gap: 20px;

        padding: 0 0 80px;
    }

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

    .flow_detail:not(:last-child)::before {
        top: 80px;
        bottom: 0;
        left: 39px;

        width: 1px;
    }

    .flow_detail_num {
        grid-column: 1;
        grid-row: 1 / 3;

        width: 80px;
        height: 80px;

        font-size: 25px;
    }

    .flow_detail_label {
        grid-column: 2;
        grid-row: 1;

        padding-top: 8px;

        font-size: 16px;
        line-height: 1.5;
    }

    .flow_detail_text {
        grid-column: 2;
        grid-row: 2;

        margin: 28px 0 0;
        padding-top: 0;

        font-size: 14px;
        line-height: 2;
    }
}

/* ==============================
   Breadcrumb
   （ベーススタイルは common-shinsotsu.css の .shinsotsu_breadcrumb 側で定義。
   　ここではFV内での配置のみ上書き）
============================== */
.fv_inner .shinsotsu_breadcrumb {
    width: 100%;
    margin: 0 0 72px 0;
}


/* アンカー遷移時のオフセット（ヘッダー高さ分。ヘッダーなし構成のため現状0でも可） */
#work,
#onboarding,
#requirements,
#flow {
    scroll-margin-top: 20px;
}




/* ===========================================
   entry
   =========================================== */

.entry_section {
  position: relative;
  padding: clamp(60px, calc(6.47px + 13.73vw), 130px) 0
           clamp(70px, calc(16.47px + 13.73vw), 140px);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

/* 背景写真の上でテキストを読ませるためのオーバーレイ */
.entry_section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, .35);
}

.entry_container {
  position: relative;
  z-index: 1;
}

/* --- 見出し --- */

.entry_heading {
  align-items: center;
  text-align: center;
}

.entry_heading .shinsotsu_heading_en,
.entry_heading .shinsotsu_heading_ja {
  color: #FFFFFF;
}

/* --- リード --- */

.entry_lead {
  margin-top: clamp(24px, calc(11.76px + 3.14vw), 40px);
  text-align: center;
}

.entry_lead_text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 2;
  color: #FFFFFF;
}

.entry_lead_text + .entry_lead_text {
  margin-top: clamp(24px, calc(17.88px + 1.57vw), 32px);
}

/* --- CTA --- */

/* .entry_action {
  margin-top: clamp(30px, calc(16.24px + 3.53vw), 48px);
  text-align: center;
} */

/* .entry_action {
  margin-top: clamp(30px, calc(16.24px + 3.53vw), 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
} */

.entry_action {
  margin-top: clamp(30px, calc(16.24px + 3.53vw), 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- 説明会 / インターンシップ カード --- */

.entry_card_list {
  display: flex;
  justify-content: center;
  gap: clamp(20px, calc(16.18px + 0.98vw), 25px);
  margin-top: clamp(40px, calc(9.41px + 7.84vw), 80px);
  list-style: none;
}

.entry_card_item {
  flex: 1 1 0;
  min-width: 0;
  max-width: 600px;
}

.entry_card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  padding: clamp(20px, calc(4.71px + 3.92vw), 40px);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, .3);
  text-align: center;
  padding-inline: 20px;
}

.entry_card_badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.entry_card_badge_icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.entry_card_badge_text {
  font-size: clamp(16px, calc(12.18px + 0.98vw), 20px);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.8;
}

.entry_card_badge--line .entry_card_badge_text {
  color: #04C755;
}

.entry_card_badge--text .entry_card_badge_text {
  color: #F49001;
}

.entry_card_title {
  margin-top: 12px;
  /* font-size: clamp(25px, calc(9.71px + 3.92vw), 45px); */
  font-size: clamp(30px, 2.5vw, 45px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: #FFFFFF;
  text-indent: 0.08em;
}

.entry_card_text {
  margin-top: 24px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.9;
  color: #FFFFFF;
}

.entry_card_cta {
  margin-top: clamp(24px, calc(17.88px + 1.57vw), 32px);
}

.deadline_text {
  margin-top : 25px;
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.06em;
}


.intern_circle_right {
  right: 20px;
}

.shinsotsu_culture_cta_btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  height: 72px;
  padding: 0 40px;
  background-color: var(--shinsotsu-color-primary);
  border-radius: 8px;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.shinsotsu_culture_cta_btn:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-3px);
}

.shinsotsu_culture_cta_btn_label {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shinsotsu_culture_cta_btn_text {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-size: 18px;
  letter-spacing: 0.08em;
  font-weight: bold;
  color: #ffffff;
}

.shinsotsu_culture_cta_btn_ext_icon {
  color: #ffffff;
  flex-shrink: 0;
  /* vertical-align: -20px; */
  position: relative;
  top: 10px;
}

.shinsotsu_culture_cta_btn_sub {
  font-size: 12px;
  letter-spacing: 0.04em;
  font-weight: normal;
  color: #ffffff;
  opacity: 0.85;
}

.shinsotsu_culture_cta_btn_icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  color: #ffffff;
  flex-shrink: 0;
}

/* ▼ entry - responsive（BP:900px / SP期待値 390px 基準） --------- */

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

  .entry_section {
    background-position: right center;
  }

  .entry_heading .shinsotsu_heading_ja {
    font-size: clamp(25px, calc(21.18px + 0.98vw), 45px);
  }
  .entry_card_list {
    flex-direction: column;
  }

  .entry_card_item {
    flex: 0 0 auto;
    max-width: none;
  }

  .entry_card_badge_text {
    letter-spacing: 0;
    line-height: 2;
  }

  .entry_card_title {

    line-height: 1.8;
  }

  .entry_card_text {
    line-height: 2.2;
  }

  .entry_pc_only {
    display: none;
  }

  .entry_card_list {
    flex-direction: column;
    margin-inline: calc(var(--shinsotsu-gutter) * -1);
    gap: 0;
  }

  .entry_card_item {
    flex: 0 0 auto;
    max-width: none;
    width: 100%;
  }

  .entry_card {
    height: auto;
    border-radius: 0;
    padding-block: 55px;
    margin-top: 20px;
  }

  .shinsotsu_culture_cta_btn {
    width: min(340px, 100%);
    height: 66px;
  }
}


/* アンカー遷移時のオフセット*/
#work,
#onboarding,
#requirements,
#flow {
 scroll-margin-top: 100px; 
}

/* acfハイライト赤文字 */

.acf_text_highlight {
    color: red;
}