.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;
    /* 上下の余白（スマホ基準） */
    width: 100%;
}

/* コンテナ（中央寄せ・幅制限） */
.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: 2.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: #034D3F;
    letter-spacing: 0.2em;
    margin-bottom: 30px;
}

/* 説明文 */
.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;
}

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

/* 追従を解除した設定 */
.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 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

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

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

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

/* -----------------------------------------------------------
 * サイドバー全体設定
 * ----------------------------------------------------------- */
.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;
}

/* 記事本文内の目次を非表示にする（サイドバーは消さない） */
.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;
}