.main-content {
    padding-bottom: 120px;
}

.work-style__header {
    width: 100%;
}

.work-style__header-inner {
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.work-style__page-title-spacer {
    display: inline-block;
    width: clamp(10px, 2.448vw, 47px);
    vertical-align: middle;
}


@media screen and (max-width: 768px) {
    .work-style__nav-list {
        width: 80%;
        flex-wrap: nowrap;
    }

    .work-style__nav-item:first-child {
        margin-right: clamp(3px, 1.04vw, 8px);
    }

}

@media screen and (max-width: 500px) {
    .work-style__nav-list {
        flex-wrap: wrap;
        width: 280px;
        width: clamp(280px, 60vw, 300px);
    }
}

.training {
    overflow: hidden;
    padding: 120px 20px;
}

.training__inner {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: auto;
}

.training__heading {
    text-align: center;
}

.training__title {
    font-size: clamp(2rem, 1.58rem + 0.61vw, 2.5rem);
    font-weight: 500;
    font-family: "Noto Serif JP", serif;
    color: #352209;
}

.training__en {
    font-family: "Noto Serif JP", serif;
    font-size: 1.25rem;
    font-weight: 400;
}

/* 変更: font-size, line-height, font-weight */
.training__lead {
    margin-top: 58px;
    font-size: clamp(15px, 0.885vw, 17px);
    line-height: 2.235;
    /* 38 / 17 */
    font-weight: 500;
    color: #352209;
}


.training__cards {
    margin-top: 110px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 60px;
}

.training-card {
    background: #fff;
    min-height: 270px;
    padding: 46px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto 1fr;
    column-gap: 30px;
    row-gap: 28px;
}

.training-card__icon {
    width: 90px;
    grid-row: 1/3;
}

/* 変更: font-family, font-size, line-height, font-weight */
.training-card__title {
    align-self: center;
    font-family: "Noto Serif JP", serif;
    font-size: clamp(24px, 1.56vw, 30px);
    font-weight: 500;
    color: #352209;
    line-height: 1.6;
    /* 48 / 30 */
}

/* 変更: font-size, line-height, font-weight */
.training-card__text {
    grid-column: 2;
    font-size: clamp(15px, 0.885vw, 17px);
    line-height: 2.235;
    /* 38 / 17 */
    font-weight: 500;
    color: #352209;
}

@media (max-width:767px) {
    .training {
        padding: 70px 20px;
    }

    .training::before {
        width: 100%;
        height: 250px;
    }

    .training__title {
        font-size: 34px;
    }

    .training__en {
        font-size: 20px;
    }

    .training__lead {
        margin-top: 40px;
        font-size: 16px;
        line-height: 2.375;
    }

    .training__cards {
        margin-top: 50px;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .training-card {
        grid-template-columns: 70px 1fr;
        padding: 24px;
        min-height: auto;
        column-gap: 18px;
    }

    .training-card__icon {
        width: 60px;
    }

    .training-card__title {
        font-size: 24px;
    }

    .training-card__text {
        grid-column: 1/-1;
        margin-top: 10px;
        font-size: 15px;
        line-height: 1.9;
    }
}

/* =========================================================================
   1. 全体基本スタイル
   ========================================================================= */
.career {
    position: relative;
    overflow: hidden;
    padding: 80px 0 60px;
    box-sizing: border-box;
}

.career__inner {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ヘッダー・見出し領域 */
.career__heading {
    text-align: center;
    margin-bottom: 70px;
}

.section-title-ja {
    font-family: 'Shippori Mincho', "Noto Serif JP", serif;
    font-size: 38px;
    font-weight: 500;
    color: #3b2314;
    letter-spacing: 0.1em;
    margin: 0;
}

.career__lead {
    margin-top: 140px;
}
@media screen and (max-width: 768px) {
.career__lead {
	margin-top: 70px;
}
}
.career__heading .page-title-en {
    font-size: 22px;
}

.career__lead-title {
    font-size: 26px;
    font-weight: 500;
    color: #3b2314;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
    font-family: 'Shippori Mincho', "Noto Serif JP", serif;
}

.career__lead-text {
    font-size: 15px;
    line-height: 1.9;
    color: #3b2314;
    margin: 0;
}


/* =========================================================================
   2. PC表示用スタイル
   ========================================================================= */
.career-flow {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    position: relative;
    margin-top: 80px;
}

/* 吹出（チューター制度導入） */
.career-flow__balloon {
    position: absolute;
    left: 10px;
    top: 45px;
    padding: 15px 20px;
    border: 3px solid #52c2c0;
    border-radius: 12px;
    background: #ffffff;
    color: #3faba9;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* 変更: font-size, line-height, font-weight */
.career-flow__balloon .small {
    font-size: clamp(14px, 0.885vw, 17px);
    display: block;
    margin-top: 2px;
    line-height: 2.058;
    /* 35 / 17 */
    font-weight: 700;
}

.career-flow__balloon::after {
    content: "";
    position: absolute;
    left: 50px;
    bottom: -13px;
    border-top: 13px solid #52c2c0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
}

.career-flow__balloon::before {
    content: "";
    position: absolute;
    left: 52px;
    bottom: -9px;
    border-top: 10px solid #ffffff;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    z-index: 1;
}

.career-step {
    flex: 1;
    position: relative;
}

/* 変更: font-family, font-size, line-height, font-weight */
.career-step__no {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(24px, 1.66vw, 32px);
    font-weight: 600;
    font-family: "Hiragino UD Sans Rd StdN", "Hiragino Maru Gothic ProN", "Yu Gothic UI", sans-serif;
    line-height: 1.1875;
    white-space: nowrap;
}

.career-step--1 .career-step__no {
    color: #50b6bc;
}

.career-step--2 .career-step__no {
    color: #a4ce4e;
}

.career-step--3 .career-step__no {
    color: #f2ad33;
}

.career-step--4 .career-step__no {
    color: #f48b61;
}

.career-step--5 .career-step__no {
    color: #ea5b66;
}

.career-step--6 .career-step__no {
    color: #3b6e99;
}

.career-step__box {
    display: flex;
    flex-direction: column;
    padding: 20px 16px;
    box-sizing: border-box;
    border: 3px solid #fff;
}

.career-step--1 .career-step__box {
    background: #5ec8ce;
    height: 330px;
}

.career-step--2 .career-step__box {
    background: #abdb4b;
    height: 370px;
}

.career-step--3 .career-step__box {
    background: #ffbe2e;
    height: 410px;
}

.career-step--4 .career-step__box {
    background: #ff9d73;
    height: 450px;
}

.career-step--5 .career-step__box {
    background: #f86770;
    height: 490px;
}

.career-step--6 .career-step__box {
    background: #376e98;
    height: 530px;
}

.career-step__box-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 変更: font-size, line-height, font-weight */
.career-step__title {
    font-size: clamp(18px, 1.3vw, 25px);
    font-weight: 700;
    text-align: center;
    color: #fff;
    line-height: 1.52;
    /* 38 / 25 */
    margin: 0;
}

/* 変更: font-size, line-height, font-weight */
.career-step__year {
    margin-top: 8px;
    font-size: clamp(15px, 1.04vw, 20px);
    line-height: 1.9;
    /* 38 / 20 */
    font-weight: 500;
    text-align: center;
    color: #fff;
}

.career-step__list {
    height: 190px;
    box-sizing: border-box;
    margin-top: 0;
    padding: 16px 0 0px;
    list-style: none;
    border-top: 1.5px dashed rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    gap: 0px;
}

/* 変更: font-size, line-height, font-weight */
.career-step__list li {
    font-size: clamp(14px, 0.93vw, 18px);
    line-height: 1.944;
    /* 35 / 18 */
    color: #fff;
    font-weight: 700;
    padding-left: 0.8em;
    text-indent: -0.8em;
}

.career-step__list li::before {
    content: "・";
}


/* =========================================================================
   3. スマホ表示用スタイル (密着ブロック ＋ ブロック色矢印 ＋ 白フチ線)
   ========================================================================= */
.sp {
    display: none;
}

@media (max-width: 950px) {
    .pc {
        display: none;
    }

    .sp {
        display: block;
    }

    .career {
        padding: 50px 0;
        background: #fff;
    }

    .career__inner {
        max-width: 600px;
        padding: 0 15px;
    }

    .career__heading {
        margin-bottom: 40px;
    }

    .section-title-ja {
        font-size: 32px;
    }

    .career__lead-title {
        font-size: 22px;
    }

    .career__lead-text {
        font-size: 14px;
    }

    .career-sp {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* 階層制御：上のカードほど手前に配置 */
    .career-card {
        position: relative;
    }

    .career-card--1 {
        z-index: 6;
    }

    .career-card--2 {
        z-index: 5;
    }

    .career-card--3 {
        z-index: 4;
    }

    .career-card--4 {
        z-index: 3;
    }

    .career-card--5 {
        z-index: 2;
    }

    .career-card--6 {
        z-index: 1;
    }

    /* ブロック本体（境界に4pxの白ライン） */
    .career-card__box {
        position: relative;
        padding: 30px 20px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
        border-bottom: 4px solid #ffffff;
    }

    .career-card--6 .career-card__box {
        border-bottom: none;
    }

    /* タイトルエリア */
    .career-card__box-inner {
        margin-bottom: 20px;
        text-align: center;
    }

    .career-card h3 {
        font-size: 26px;
        font-weight: 700;
        color: #fff;
        margin: 0;
        line-height: 1.3;
    }

    .career-card__year {
        font-size: 18px;
        color: #fff;
        margin: 6px 0 0;
    }

    /* 研修リスト */
    .career-card__list {
        width: 100%;
        margin: 0;
        padding: 18px 0 0;
        list-style: none;
        border-top: 2px dashed rgba(255, 255, 255, 0.85);
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 10px;
    }

    .career-card__list li {
        font-size: 15px;
        line-height: 1.4;
        color: #fff;
        font-weight: 500;
        padding-left: 0.8em;
        text-indent: -0.8em;
    }

    .career-card__list li::before {
        content: "・";
    }

    /* STEP 1 吹き出し */
    .career-card__balloon {
        background: #fff;
        border: 3px solid #5ec8ce;
        border-radius: 8px;
        padding: 14px 10px;
        text-align: center;
        margin-top: 25px;
        width: 90%;
        box-sizing: border-box;
    }

    .career-card__balloon .balloon-title {
        display: block;
        font-weight: 700;
        color: #3baba9;
        font-size: 16px;
    }

    .career-card__balloon .balloon-text {
        display: block;
        color: #3baba9;
        font-size: 14px;
        margin-top: 3px;
    }

    /* 
   * 下向き矢印（土台：白ラインを作るための大きな白色三角形）
   */
    .career-card__arrow {
        position: absolute;
        bottom: -24px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 24px solid transparent;
        border-right: 24px solid transparent;
        border-top: 24px solid #ffffff;
        z-index: 10;
    }

    /* 
   * 矢印本体（前面：一回り小さくブロックと同色の三角形）
   */
    .career-card__arrow::after {
        content: "";
        position: absolute;
        top: -24px;
        /* 土台の上端に合わせる */
        left: -20px;
        width: 0;
        height: 0;
        border-left: 20px solid transparent;
        border-right: 20px solid transparent;
    }

    /* 各ステップの背景色および前面矢印(::after)の色設定 */
    .career-card--1 .career-card__box {
        background: #5ec8ce;
    }

    .career-card--1 .career-card__arrow::after {
        border-top: 20px solid #5ec8ce;
    }

    .career-card--2 .career-card__box {
        background: #abdb4b;
    }

    .career-card--2 .career-card__arrow::after {
        border-top: 20px solid #abdb4b;
    }

    .career-card--3 .career-card__box {
        background: #ffbe2e;
    }

    .career-card--3 .career-card__arrow::after {
        border-top: 20px solid #ffbe2e;
    }

    .career-card--4 .career-card__box {
        background: #ff9d73;
    }

    .career-card--4 .career-card__arrow::after {
        border-top: 20px solid #ff9d73;
    }

    .career-card--5 .career-card__box {
        background: #f86770;
    }

    .career-card--5 .career-card__arrow::after {
        border-top: 20px solid #f86770;
    }

    .career-card--6 .career-card__box {
        background: #376e98;
    }
}


/* セクション全体のラッパー */
.benefits-section {
    max-width: 1600px;
    margin: 0 auto;
    padding: 60px 20px;
}

.benefits-section-header.header {
    position: relative;
    text-align: center;
}

/* ヘッダー */

.header h2 {
    font-size: 2rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    color: #4a3e3d;
    font-family: "Noto Serif JP", serif;
}

.header .subtitle {
    font-family: "Georgia", serif;
    font-size: 1.1rem;
    color: #8c7b70;
    margin-top: 8px;
    letter-spacing: 0.05em;
}

/* タブボタン部分 */
/* 変更: font-size, line-height, font-weight */
.tab-menu {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    margin-top: 110px;
}

.tab-btn {
    background-color: #ffc2c2;
    color: #ffffff;
    border: none;
    border-radius: 70px;
    padding: 14px 28px;
    font-size: clamp(16px, 1.04vw, 20px);
    line-height: 2.25;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 230px;
    text-align: center;
}

.tab-btn.active {
    background-color: #ff6b6b;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3);
}

.tab-btn:hover {
    opacity: 0.9;
}

/* 白いカード枠 */
.card-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 50px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* タブ切り替え制御 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* グリッドレイアウト（PC 2列） */
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 50px;
}

/* 各要素のスタイル */
.item h3 {
    font-size: 1.25rem;
    font-weight: normal;
    color: #222222;
    margin-bottom: 12px;
}

.dashed-line {
    border: none;
    border-top: 1px dashed #aaaaaa;
    margin-bottom: 16px;
}

.item p {
    font-size: 0.9rem;
    color: #444444;
    line-height: 1.8;
}

/* --- レスポンシブ対応 (スマホ・タブレット向け) --- */
@media (max-width: 768px) {

    .work-style__header-inner {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 20px;
        padding: 0 20px;
    }

    .benefits-section {
        padding: 30px 15px;
    }

    .header h2 {
        font-size: 1.6rem;
    }

    .tab-menu {
        gap: 10px;
        margin-top: 60px;
    }

    .tab-btn {
        min-width: calc(50% - 10px);
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .card-container {
        padding: 25px 20px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* --- グリッドレイアウト（PC 2列） --- */
.tab-content .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 50px;
}

.tab-content .grid>div {
    width: 100%;
}

/* 変更: font-family, font-size, line-height, font-weight */
.tab-content .grid>div p {
    font-family: "Noto Serif JP", serif;
    font-size: clamp(20px, 1.4vw, 27px);
    font-weight: 500;
    color: #222222;
    margin-bottom: 12px;
    border-bottom: 1px dashed #aaaaaa;
    padding-bottom: 8px;
    line-height: 1.407;
    /* 38 / 27 */
}

/* 変更: font-family, font-size, line-height, font-weight */
.tab-content .grid>div span {
    display: block;
    font-size: clamp(15px, 0.885vw, 17px);
    font-weight: 500;
    color: #444444;
    line-height: 2.235;
    /* 38 / 17 */
}

/* --- レスポンシブ対応 (スマホ・タブレット向け) --- */
@media (max-width: 768px) {
    .tab-content .grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}