.wrapper {
    padding: 80px 20px 0;
    position: relative;
    overflow: hidden;
}

.wrapper__inner {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

/* -----------------------------------------------------------
 * 共通ページヘッダーパーツ
 * ----------------------------------------------------------- */
.c-page-header {
    background-color: #8FBD67;
    /* 背景色 */
    padding: 30px 20px;
    /* 上下の余白（スマホ基準） */
}

/* コンテナ（中央寄せ・幅制限） */
.c-page-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* タイトルの白い箱 */
.c-page-header__title-wrapper {
    display: inline-block;
    background-color: #ffffff;
    padding: 10px 30px;
    margin-bottom: 10px;
}

/* タイトルテキスト */
.c-page-header__title {
    display: flex;
    align-items: center;
    color: #034D3F;
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
}

.c-page-header__title--span {
    color: #FF8C42;
    padding: 10px 10px 10px 0;
    font-size: 16px;
}

/* 説明テキスト */
.c-page-header__description {
    color: #ffffff;
    font-size: 14px;
    margin: 0;
    line-height: 1.6;
}

/* -----------------------------------------------------------
 * 共通セクション見出しパーツ（修正版）
 * ----------------------------------------------------------- */

/* セクション全体の装飾（必要に応じて） */
.c-section-header {
    padding: 80px 20px 0;
}

/* 英語サブタイトル */
.c-section-header__subtitle {
    position: relative;
    /* 線を配置する基準 */
    display: inline-flex;
    align-items: center;
    color: #034D3F;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 左側に画面端まで伸びるライン */
.c-section-header__subtitle::before {
    content: "";
    position: absolute;
    right: calc(100% + 15px);
    top: 50%;
    transform: translateY(-50%);
    width: 100vw;
    height: 1px;
    background-color: #034D3F;
    opacity: 0.6;
}

/* メインタイトル */
.c-section-header__title {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: #034D3F;
    margin-bottom: 10px;
}

/* 説明文 */
.c-section-header__text {
    color: #333;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* PCサイズ調整 */
@media screen and (min-width: 769px) {
    .c-section-header__title {
        font-size: 30px;
        margin-left: 0;
    }

    .c-section-header__text {
        font-size: 16px;
    }

    .u-hidden-sp {
        display: inline;
    }

    .c-page-header__title--span {
        font-size: 18px;
    }
}


/*ここまでtoptest.cssの共通パーツ*/

.single_listlinkwrapper {
    margin: 20px auto;
}

.single_listlink {
    color: #034D3F;
}

a:hover {
    text-decoration: none;
}

/* -----------------------------------------------------------
 * 記事詳細レイアウト設定
 * ----------------------------------------------------------- */

.p-article {
    padding: 0 0 60px;
    background-color: #fff;
    font-family: "Noto Sans JP", sans-serif;
}

.p-article__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 強制的に横並びにする設定 */
.p-article__container {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
}

/* メインコンテンツ（左） */
.p-article__main {
    flex: 1;
    min-width: 0;
}

/* サイドバー（右） */
.p-article__sidebar {
    width: 300px;
    flex-shrink: 0;
    position: relative;
    margin-top: 30px;
}

/* 追従を解除した設定 */
.p-article__sidebar-sticky {
    position: static;
    /* 追従を無効化 */
}

/* 装飾：タイトルとタグ */
.p-article__title {
    font-size: 28px;
    color: #034D3F;
    line-height: 1.4;
    margin-bottom: 20px;
}

.p-article__date {
    text-align: right;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 10px;
}

.p-article__meta {
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.p-article__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.p-article__tag-item a {
    border: 1px solid #034D3F;
    padding: 2px 10px;
    border-radius: 5px;
    font-size: 12px;
    color: #034D3F;
    text-decoration: none;
}

.p-article__thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 5px;
}

.p-article__body {
    font-size: 16px;
    line-height: 1.8;
    word-break: break-all;
}

.p-article__body p {
    margin-bottom: 20px;
}

.p-article__body h2 {
    font-size: 22px;
    color: #034D3F;
    margin-bottom: 15px;
    font-weight: bold;
}

.p-article__body h3 {
    font-size: 18px;
    color: #034D3F;
    margin-bottom: 15px;
    font-weight: bold;
}

.p-article__body ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.p-article__body li {
    position: relative;
    margin-bottom: 10px;
}

/* .p-article__body li::before {
    content: "";
    position: absolute;
    left: -16px;
    top: 36%;
    width: 0.5em;
    height: 0.5em;
    background: #ff7f50;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #ff7f50;
} */

/* レスポンシブ：SPでは1カラム */
@media screen and (max-width: 850px) {
    .p-article__container {
        flex-direction: column !important;
    }

    .p-article__sidebar {
        width: 100%;
        margin-top: 0;
    }
}

/* -----------------------------------------------------------
 * サイドバー全体設定
 * ----------------------------------------------------------- */
.l-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Yagish カード */
.l-sidebar__yagish-card {
    background-color: #EFF8F8;
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
}

.l-sidebar__yagish-logo {
    width: 160px;
    height: auto;
    margin-bottom: 20px;
}

/* ボタン共通 */
.c-sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    border-radius: 10px;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.3s;
    font-size: 15px;
}

.c-sidebar-btn--orange {
    background-color: #FF7A38;
    color: #fff;
}

/* バナーボタン（緑・黄） */
.c-sidebar-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: bold;
    color: #034D3F;
    margin-bottom: 15px;
    font-size: 14px;
}

.c-sidebar-banner--green {
    background-color: #F0F8E6;
}

.c-sidebar-banner--yellow {
    background-color: #FFFFE8;
}

/* セクション見出し */
.l-sidebar__heading {
    font-size: 24px;
    color: #034D3F;
    font-weight: bold;
    margin-bottom: 15px;
}

/* 人気記事カード */
.c-sidebar-post-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

div#ez-toc-container,
div#ez-toc-container.ez-toc-v2_0_69 {
    border: none !important;
    border-width: 0 !important;
    padding: 20px !important;
    margin-bottom: 0 !important;
}

.c-sidebar-post-card nav {
    padding-right: 40px;
}

/* 記事本文内の目次を非表示にする（サイドバーは消さない） */
.p-article__main #ez-toc-container {
    display: none !important;
}

div#ez-toc-container ul.ez-toc-list li a {
    font-size: 14px !important;
}

.c-sidebar-post-card__link {
    text-decoration: none;
    color: inherit;
}

.c-sidebar-post-card__img img {
    width: 100%;
    height: auto;
    vertical-align: bottom;
}

.c-sidebar-post-card__content {
    padding: 15px;
}

.c-sidebar-post-card__title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    color: #034D3F;
}

/* YouTube */
.l-sidebar__youtube img {
    width: 100%;
    height: auto;
    border-radius: 15px;
}

/* -----------------------------------------------------------
 * 記事内ボタン（ライター下部）
 * ----------------------------------------------------------- */
.btn_wrap {
    margin-top: 20px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 50px;
    background-color: #FF7A38;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.btn:hover {
    opacity: 0.85;
    color: #fff;
}

/* 履歴書をつくるボタン */
.resume_btn_wrap {
    margin-top: 20px;
}

.resume_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    background-color: #FF7A38;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    transition: opacity 0.3s ease;
}

.resume_btn:hover {
    opacity: 0.85;
    color: #fff;
}

@media screen and (min-width: 769px) {
    .resume_btn_wrap {
        display: none;
    }
}

/* スマートフォン時：ボタンを下部固定 */
@media screen and (max-width: 768px) {
    .btn_wrap {
        display: none;
    }

    .resume_btn_wrap {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 15px 20px;
        background-color: #fff;
        border-top: 1px solid #e0e0e0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        margin-top: 0;
        z-index: 100;
        box-sizing: border-box;
    }

    .resume_btn {
        height: 45px;
        border-radius: 8px;
        font-size: 15px;
    }
}
/* -----------------------------------------------------------
 * 求人カード（記事内・サイドバー共通）
 * ----------------------------------------------------------- */

/* 記事内：セクション */
.p-article__jobs {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 2px solid #e8f5f0;
}

.p-article__jobs-title {
    font-size: 20px;
    font-weight: 700;
    color: #034D3F;
    margin-bottom: 24px;
}

/* 記事内：3カラムグリッド */
.p-article__jobs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media screen and (max-width: 850px) {
    .p-article__jobs-grid {
        grid-template-columns: 1fr;
    }

    /* SP：下の求人を非表示、サイドの求人を表示 */
    .p-article__jobs {
        display: none;
    }

    .l-sidebar__block--jobs-pc-only {
        display: block;
    }
}

/* 求人カード本体 */
.c-job-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
}

.c-job-card__img img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.c-job-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* バッジ */
.c-job-card__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.c-job-card__badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 6px;
    line-height: 1;
}

.c-job-card__badge--green {
    background: #2c9f6b;
    color: #fff;
}

.c-job-card__badge--gray {
    background: #8FBD67;
    color: #fff;
    font-weight: 400;
}

/* タイトルラッパー（flexの直接の子にしない） */
.c-job-card__title-wrap {
    margin-bottom: 12px;
}

/* タイトル：最大3行で省略 */
.c-job-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #2c9f6b !important;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 情報リスト */
.c-job-card__info {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.c-job-card__info-item {
    font-size: 12px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}

.c-job-card__info-item img {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* 詳細リンク：右寄せ・横並び */
.c-job-card__link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #e86d1f;
    text-decoration: none;
    margin-top: auto;
    padding-top: 12px;
}

.c-job-card__link-arrow {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #e86d1f;
    font-size: 13px;
    line-height: 1;
}

.c-job-card__link:hover {
    opacity: 0.75;
}

/* -----------------------------------------------------------
 * サイドバー内 求人カード
 * ----------------------------------------------------------- */
.c-sidebar-jobs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.c-sidebar-job-card {
    padding: 14px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
}

.c-sidebar-job-card__badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.c-sidebar-job-card__title {
    font-size: 13px;
    font-weight: 700;
    color: #2c9f6b !important;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
