@charset "UTF-8";

/* ============================================
   キャリアモデル (Career Model)
   ============================================ */

/* レイアウト・導入テキスト */
.career-model section {
    padding-bottom: 30px;
}

.career-model #section6 {
    margin-bottom: 100px;
}

.career-model .txt-introduction {
    text-align: center;
    font-size: min(2vw, 1.3rem);
    padding-bottom: 30px;
}

.career-model .txt-introduction~p {
    padding-bottom: 50px;
}

/* 見出しスタイル */
.box-line {
    position: relative;
    margin-bottom: 40px;
}

.box-line::after {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #0062B1;
    z-index: -1;
}

.box-line span {
    display: inline-block;
    padding: 5px 30px;
    border-radius: 8px;
    background: linear-gradient(90deg, #3eae75 0%, #0062b1 100%);
    z-index: 2;
    color: #FFF;
    font-weight: 500;
    font-size: 22px;
}

/* モデルプロフィール（アイコン＆吹き出し） */
.model-profile {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 40px;
}

.model-profile .model-icon {
    width: 200px;
}

.model-profile .model-text {
    width: calc(100% - 250px);
    background: #F4F3E8;
    position: relative;
    border-radius: 24px;
    padding: 0 10px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 吹き出しのしっぽ */
.model-profile .model-text::after {
    content: "";
    display: block;
    position: absolute;
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 15px 45px 15px 0;
    border-color: transparent #F4F3E8 transparent transparent;
    top: 50%;
    left: -30px;
    transform: translateY(-50%);
    z-index: -1;
}

.model-profile .model-text p {
    font-size: min(1.7vw, 1.3rem);
    text-align: center;
    color: var(--main-color);
}

/* タイムライン・ステップ表示 */
.timeline-container {
    margin: 0 auto 30px;
}

.interview .timeline-container {
    margin: 0 auto 0;
}

.step-row {
    display: flex;
    align-items: stretch;
    position: relative;
    margin-bottom: 35px;
}

.timeline-container .step-row:last-of-type {
    margin-bottom: 0;
}

.timeline-container .step-row:last-of-type::after {
    content: none;
}

/* 下向き矢印 */
.step-row::after {
    content: "";
    position: absolute;
    bottom: -25px;
    left: 80px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 15px 12px 0 12px;
    border-color: #2C9682 transparent transparent transparent;
    transform: translateX(-50%);
}

.step-period {
    background-color: #005DAA;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 160px;
    flex-shrink: 0;
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
    padding: 10px 10px;
    box-sizing: border-box;
    font-size: 16px;
}

.step-branch {
    background-color: #DDEBF7;
    color: #005DAA;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    flex-shrink: 0;
    font-size: 16px;
    padding: 10px 10px;
    box-sizing: border-box;
}

.step-content {
    background-color: #F4F4EE;
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    box-sizing: border-box;
}

.tag {
    background: var(--main-gradient);
    color: #fff;
    padding: 4px 15px;
    border-radius: 4px;
    font-size: 14px;
    margin-right: 15px;
    white-space: nowrap;
    line-height: 1.4em;
}

.description {
    font-size: 15px;
    line-height: 1.4;
}

/* 休職・産休用スタイル */
.step-row.leave .step-period {
    background-color: #E69351;
}

.step-row.leave .step-content {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-left: 20px;
}


/* ============================================
   研修・教育 (Training)
   ============================================ */

/* レイアウト・導入テキスト */
.training section {
    padding-bottom: 30px;
}

.training #section3 {
    margin-bottom: 100px;
}

.training .txt-introduction {
    text-align: center;
    font-size: min(2vw, 1.3rem);
    padding-bottom: 30px;
}

.training .txt-introduction~p {
    padding-bottom: 50px;
}

/* サブブロック（画像とテキスト） */
.training .sub-block .flexbox {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 50px;
}

.training .sub-block .flexbox .text {
    width: 48%;
}

.training .sub-block-full .ttl,
.training .sub-block .ttl {
    color: var(--main-color);
    font-size: 24px;
    padding-bottom: 10px;
}

.training .sub-block .flexbox .image {
    width: 48%;
}

.training .sub-block .flexbox .image img {
    border-radius: 20px;
}

/* 研修テーブルコンテナ */
.training-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
}

.training-box {
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 80px;
}

/* 左側：研修テーブル */
.left-side {
    background-color: #E7F4F3;
    flex: 0 0 65%;
    width: 65%;
    max-width: 65%;
}

.training-table {
    width: 100%;
    border-collapse: collapse;
    height: 100%;
}

.training-table thead th {
    background-color: #4AB4AB;
    color: #fff;
    padding: 15px;
    font-size: 1.125rem;
    font-weight: normal;
    letter-spacing: 0.05em;
    border: none;
    text-align: center;
}

.training-table tbody th,
.training-table tbody td {
    vertical-align: middle;
    background-image: linear-gradient(to right, #4AB4AB 3px, transparent 3px);
    background-size: 8px 2px;
    background-repeat: repeat-x;
    background-position: left bottom;
    text-align: left;
    box-sizing: border-box;
}

.training-table tbody th {
    color: #4AB4AB;
    font-size: 1rem;
    width: 30%;
    white-space: nowrap;
    padding: 20px 15px 20px 30px;
}

.training-table tbody td {
    font-size: 0.9rem;
    line-height: 1.6em;
    padding: 20px 15px 20px 5px;
}

.training-table tbody tr:last-child th,
.training-table tbody tr:last-child td {
    border-bottom: none;
    background: none;
}

/* 右側：通信教育エリア */
.right-side {
    background-color: #E1F7E7;
    flex: 0 0 33%;
    width: 33%;
    max-width: 33%;
}

.box-header {
    background-color: #56B473;
    color: #fff;
    padding: 15px;
    font-size: 1.125rem;
    text-align: center;
    letter-spacing: 0.05em;
    margin: 0;
    font-weight: normal;
}

.box-body {
    padding: 25px;
    font-size: 0.9rem;
    line-height: 1.8;
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.box-body p {
    margin: 0;
}

/* ポイントボックス（下部の矢印付きエリア） */
.point-box {
    background: #F4F3E8;
    margin-top: 140px;
    padding: 60px;
    border-radius: 20px;
    position: relative;
}

.point-box::before {
    content: "";
    display: block;
    position: absolute;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-image: url('../img/research_img/dot-arrow.svg');
    width: 70px;
    height: 80px;
    top: -110px;
    left: 50%;
    transform: translateX(-50%);
}

.point-box p.ttl {
    text-align: center;
    color: var(--main-color);
    font-size: 24px;
    padding-bottom: 20px;
}

.point-box p.ttl~p {
    max-width: 740px;
    margin: 0 auto;
}

.detail-box {
    margin: 50px auto 0;
}

.detail-box .side-lines {
    margin-bottom: 30px;
}

.note-txt {
    font-size: 0.8rem;
    line-height: 1.6em;
    padding: 10px 0 0;
}

/* ============================================
   レスポンシブ対応 (SP: max-width 834px)
   ============================================ */
@media screen and (max-width: 834px) {

    /* --- キャリアモデル用 --- */
    .career-model .txt-introduction {
        font-size: min(4vw, 1.3rem);
        padding-bottom: 20px;
    }

    .career-model section {
        padding-bottom: 20px;
    }

    .career-model #section6 {
        margin-bottom: 60px;
    }

    .box-line {
        margin-bottom: 20px;
    }

    .box-line span {
        padding: 2px 10px;
        font-size: min(3.4vw, 1.2rem);
    }

    .model-profile {
        margin-bottom: 20px;
    }

    .model-profile .model-icon {
        width: 140px;
        margin: 0 auto;
    }

    .model-profile .model-text {
        width: 100%;
        margin: 30px auto 0;
    }

    .model-profile .model-text::after {
        border-width: 15px 25px 15px 0;
        top: -20px;
        left: 50%;
        transform: translateX(-50%) translateY(0) rotate(90deg);
    }

    .model-profile .model-text p {
        font-size: min(3.5vw, 1.1rem);
        line-height: 1.6em;
        padding: 20px 0;
    }

    .step-row {
        flex-wrap: wrap;
        margin-bottom: 30px;
    }

    .step-row::after {
        left: 50%;
        transform: translateX(-50%);
        bottom: -22px;
    }

    .step-period {
        width: 30%;
        border-radius: 10px 0 0 0;
        border-bottom-left-radius: 0;
        border-top-left-radius: 10px;
        border-top-right-radius: 0;
        font-size: min(3.8vw, 1rem);
        padding: 3px 5px;
    }

    .step-branch {
        width: 70%;
        border-top-right-radius: 10px;
        justify-content: flex-start;
        font-size: min(3.8vw, 1rem);
        padding: 3px 15px;
    }

    .step-content {
        width: 100%;
        border-radius: 0 0 10px 10px;
        border-top-right-radius: 0;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        padding: 8px 12px;
    }

    .tag {
        font-size: min(3.2vw, 0.8rem);
        padding: 3px 10px;
    }

    .description {
        font-size: min(3.5vw, 0.9rem);
    }

    .step-row.leave {
        flex-wrap: nowrap;
    }

    .step-row.leave .step-period {
        border-radius: 50px 0 0 50px;
    }

    .step-row.leave .step-content {
        border-radius: 0 50px 50px 0;
    }

    /* --- 研修・教育用 --- */
    .training section {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .training #section3 {
        margin-bottom: 50px;
    }

    .training .txt-introduction {
        font-size: min(4vw, 1.3rem);
        padding-bottom: 20px;
    }

    .training .sub-block .flexbox {
        margin-bottom: 30px;
    }

    .training .sub-block .flexbox .text {
        width: 100%;
        padding-bottom: 10px;
    }

    .training .sub-block-full .ttl,
    .training .sub-block .ttl {
        font-size: 18px;
        padding-bottom: 5px;
    }

    .training .sub-block .flexbox .image {
        width: 100%;
        max-width: 400px;
        margin: 10px auto 0;
    }

    .training .sub-block .flexbox .image img {
        border-radius: 10px;
    }

    .training-container {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .training-box {
        margin-bottom: 20px;
    }

    .left-side,
    .right-side {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
    }

    /* テーブルのSPレイアウト */
    .training-table,
    .training-table tbody,
    .training-table tr {
        display: block;
        width: 100%;
    }

    .training-table thead {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .training-table thead th {
        display: block;
        width: 100%;
    }

    .training-table tbody th {
        display: block;
        width: 100%;
        padding: 10px 20px 5px 20px;
        border-bottom: none;
        white-space: normal;
        background: none;
    }

    .training-table tbody td {
        display: block;
        width: 100%;
        padding: 2px 20px 10px 20px;
    }

    .training-table tbody tr:last-child {
        border-bottom: none;
    }

    .point-box {
        margin-top: 100px;
        padding: 30px;
    }

    .point-box::before {
        width: 50px;
        height: 60px;
        top: -80px;
    }

    .point-box p.ttl {
        font-size: 16px;
        padding-bottom: 10px;
    }

    .detail-box {
        margin: 30px auto 0;
    }

    .detail-box .side-lines {
        margin-bottom: 20px;
    }
}