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

/*
 * bg image: 1920 × 750px
 * PC: background-size cover
 * SP: background-size auto 100% + position left
 */

.fv_wrap {
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-color: #faf6f3;

    height: 750px;
    min-height: 750px;
    max-height: none;
    overflow: hidden;

    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;
}

/* Category badge */
.fv_category {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;

    background: #333;
    color: #fff;

    font-size: 16px;
    font-weight: bold;
    line-height: 1.25;
    letter-spacing: 0.09em;

    padding: 6px 20px;
    border-radius: 20px;
}

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

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

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

    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(--keiken-color-primary);
}

.fv_entry_btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 56px;
  width: 360px;
  height: 65px;
  padding-right: 30px;
  background-color: var(--keiken-color-primary);
  border-radius: 8px;
  text-decoration: none;
  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);
}

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

.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 {
        background-size: auto 100%;
        background-position: left top;

        height: clamp(600px, 150.3077vw, 650px);
        min-height: clamp(520px, 142.3077vw, 555px);
        max-height: none;
    }

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

    .fv_category {
        font-size: 16px;
        line-height: 1.25;
        letter-spacing: 0.08em;
    }

    .fv_title {
        margin-top: 28px;

        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: 60px;
    }

    .fv_entry_btn_text {
        font-size: 18px;
    }

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



/* ==============================
   Content (work / related / onboarding)
============================== */

.content_wrap {
    padding: clamp(50px, 8vw, 100px) 0;
    background: #f7f7f7;
}

.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(--keiken-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);
    background: #f7f7f7;
}

.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(--keiken-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;
    }
}


/* ==============================
   Entry CTA
============================== */

.entry_wrap {
    padding: 50px 0;
    background: #f7f7f7;
}

.entry_inner {
    width: min(1000px, calc(100% - clamp(48px, 9vw, 80px)));
    margin: 0 auto;
    padding: clamp(40px, 5vw, 60px) 25px;

    background: #fff;
    text-align: center;
    border: none;
    border-radius: 8px;

    box-sizing: border-box;
}

.entry_text {
    margin: 0 0 24px;

    font-size: clamp(25px, 3.2vw, 30px);
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.08em;

    color: inherit;
}

.entry_btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 360px;
  height: 65px;
  padding-right: 30px;
  background-color: var(--keiken-color-primary);
  border-radius: 8px;
  text-decoration: none;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

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

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

.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;
}


/* ==============================
   Entry CTA - responsive
============================== */

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

    .entry_inner {
        width: calc(100% - 50px);
        max-width: 1000px;
        padding: 0;

        background: transparent;
        border-radius: 0;
    }

    .entry_text {
        margin: 0 auto 24px;

        font-size: clamp(25px, 3.2vw, 30px);
        line-height: 1.55;
        letter-spacing: 0.08em;
    }
    .entry_btn {
        width: 340px;
        height: 60px;
    }

    .entry_btn_text {
        font-size: 18px;
    }

    .entry_btn_icon {
        right: 22px;
        width: 28px;
        height: 28px;
    }
}


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

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

.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(--keiken-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: 16px;
    font-weight: bold;
    line-height: 1.4;

    color: inherit;
    text-align: center;
    white-space: nowrap;
}

/* 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(--keiken-color-primary);
}

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

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

    background: #fff;
    color: var(--keiken-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(--keiken-color-primary);
}

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

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

    color: inherit;
}

/* ==============================
   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 */
    .flow_steps {
        margin: 0 0 40px;
    }

    .flow_step {
        width: 50px;
    }

    .flow_step_num {
        width: 50px;
        height: 50px;

        font-size: 20px;
    }

    .flow_step_label {
        margin-top: 12px;

        font-size: clamp(13px, 2vw, 16px);
        line-height: 1.4;
        white-space: nowrap;
    }

    /* 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
============================== */
.fv_inner .common_breadcrumb {
    width: 100%;
    margin: 0 0 72px 0;
    padding-top: 0;
    font-size: 14px;
    color: #333;
}
.fv_inner .common_breadcrumb a {
    color: inherit;
    text-decoration: none;
}
.fv_inner .common_breadcrumb a:hover {
    opacity: 0.7;
}


/* アンカー遷移時のオフセット（ヘッダー高さ分） */
#work,
#related,
#onboarding,
#requirements,
#flow {
    scroll-margin-top: 100px; /* ヘッダー高さに合わせて調整 */
}

/* スムーズスクロール */
html.smooth-scroll {
    scroll-behavior: smooth;
}
