/* ===== アンカーリンクのスクロール位置補正（固定ヘッダー分） ===== */
h2[id^="heading-"] {
    scroll-margin-top: 120px;
}

/* ===== 目次 (TOC) ===== */
.toc {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px 20px;
    margin: 24px 0;
}
.toc_title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.toc-toggle {
    font-size: 11px;
    padding: 2px 10px;
    cursor: pointer;
    background: #fff;
    border: 1px solid #999;
    border-radius: 3px;
    font-family: inherit;
}
.toc #toc-list {
    margin: 0 !important;
    padding-left: 18px !important;
}
.toc #toc-list li {
    margin: 0 !important;
    padding: 4px 0 !important;
    line-height: 1.5 !important;
}
.toc #toc-list li a {
    font-size: 13px !important;
    color: #333;
    text-decoration: none;
}
.toc #toc-list li a:hover {
    text-decoration: underline;
    color: #000;
}

/* ===== SWELLの固定ヘッダーを非表示（カスタムヘッダーと重複するため） ===== */
.l-fixHeader {
    display: none !important;
}

/* ===== ヘッダーロゴ位置（トップページのh1と合わせる） ===== */
header #logo {
    padding: 5px 0 0 40px;
}

/* ===== 2カラムレイアウト ===== */
.l-content-wrap {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: flex-start;
    box-sizing: border-box;
}
.l-main {
    flex: 1;
    min-width: 0;
}
.l-side {
    width: 280px;
    flex-shrink: 0;
}
.l-main .box_h3 .inner {
    max-width: 100%;
}
.l-main .box_h3 {
    padding-top: 0 !important;
}

/* ===== サムネイル ===== */
.blog_thumbnail {
    margin: 0 auto 30px;
}
.blog_thumbnail .blog_thumb_img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== 監修者ブロック ===== */
.represent_content {
    max-width: 100%;
    margin: 30px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.represent_content .represent_ct p.txt {
    font-size: 18px !important;
    font-weight: bold;
}
.represent_content .represent_ct div,
.represent_content .represent_ct p:not(.txt) {
    font-size: 13px !important;
    line-height: 1.8;
}

/* ===== 問合せブロック ===== */
.contact-block {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 24px;
    margin: 40px 0;
}
.contact-block__title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 3px solid #000;
}
.contact-block__btns {
    display: flex;
    flex-direction: row;
    gap: 12px;
}
.contact-block__btns p {
    flex: 1;
    margin: 0;
}
.contact-block .line-item a {
    background-color: #06c755;
    padding: 14px 8px;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: rgba(0,0,0,.15) 1.95px 1.95px 2.6px;
}
.contact-block .contact-item a {
    background-color: #c2b79a;
    padding: 14px 8px;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: rgba(0,0,0,.15) 1.95px 1.95px 2.6px;
}
.contact-block .contact-item a img {
    width: 20px;
    margin-right: 6px;
}
.contact-block .company-item a {
    background-color: #222;
    padding: 14px 8px;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: rgba(0,0,0,.15) 1.95px 1.95px 2.6px;
}
.contact-block .line-item a:hover,
.contact-block .contact-item a:hover,
.contact-block .company-item a:hover {
    opacity: 0.8;
}

/* ===== まとめ ===== */
.blog_matome {
    border-top: 3px solid #000;
    padding-top: 30px;
    margin-top: 10px;
}

/* ===== カスタムサイドバー ===== */
.nero-side-widget {
    margin-bottom: 36px;
}
.nero-side-title {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #111;
}
.nero-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.nero-side-list li {
    border-bottom: 1px solid #eee;
    margin: 0;
    padding: 0;
}
.nero-side-list li a {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    display: block;
    padding: 8px 0;
    line-height: 1.5;
    transition: color 0.2s, padding-left 0.2s;
}
.nero-side-list li a:hover {
    color: #000;
    padding-left: 4px;
}
.nero-side-count {
    color: #999;
    font-size: 11px;
    margin-left: 4px;
}

/* ===== サイドバー ===== */
.l-side {
    position: sticky;
    top: 110px;
}
.l-side .c-widget {
    margin-bottom: 32px;
}
.l-side .widget_search {
    display: none;
}

/* ウィジェットタイトル */
.l-side .c-widget__title.-side {
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0 0 10px 0;
    margin-bottom: 12px;
    position: relative;
}
.l-side .c-widget__title.-side::before {
    width: 100%;
    height: 1px;
    background: #111;
    z-index: 1;
}
.l-side .c-widget__title.-side::after {
    display: none;
}

/* リスト項目 */
.l-side .c-listMenu a {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    padding: 7px 0;
    border-bottom: 1px solid #eee;
    display: block;
    transition: color 0.2s;
}
.l-side .c-listMenu a:hover {
    color: #000;
    padding-left: 6px;
}
.l-side .c-listMenu a::before {
    content: none;
}
.l-side .c-listMenu li {
    margin: 0;
    padding: 0;
}

/* 最近の投稿 */
.l-side .widget_recent_entries ul li {
    border-bottom: 1px solid #eee;
    padding: 7px 0;
}
.l-side .widget_recent_entries ul li a {
    font-size: 13px;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    display: block;
}
.l-side .widget_recent_entries ul li a:hover {
    color: #000;
}

/* ===== H系見出しデザイン ▼ 元に戻す場合はこのブロック全体をコメントアウト ===== */
.blog_title {
    font-size: 24px !important;
    font-weight: bold;
    line-height: 1.6;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
    color: #111 !important;
    padding: 0 !important;
}
.blog_content h2 {
    background: #111;
    color: #fff;
    padding: 12px 18px;
    margin: 40px 0 16px;
    font-size: 18px !important;
    font-weight: bold;
    letter-spacing: 0.05em;
}
.blog_content h3 {
    border-left: 4px solid #111;
    background: #f5f5f5;
    padding: 8px 14px;
    margin: 30px 0 12px;
    font-size: 16px !important;
    font-weight: bold;
}
.blog_content h4 {
    border-bottom: 2px solid #ddd;
    padding-bottom: 6px;
    margin: 20px 0 10px;
    font-size: 15px !important;
    font-weight: bold;
}
/* ===== H系見出しデザイン ▲ ここまで ===== */

/* ===== レスポンシブ（960px以下で1カラム） ===== */
@media screen and (max-width: 960px) {
    .l-content-wrap {
        flex-direction: column;
        padding: 20px 15px;
        gap: 30px;
    }
    .l-side {
        width: 100%;
    }
}
@media screen and (max-width: 640px) {
    .under .represent_content {
        width: 100%;
        box-sizing: border-box;
        margin-left: 0;
        margin-right: 0;
    }
    .represent_content .represent_ct_wrap {
        flex-direction: column;
    }
    .represent_content .represent_ct_wrap p.img {
        min-width: auto;
        text-align: center;
        margin-bottom: 16px;
    }
    .contact-block__btns {
        flex-direction: column;
    }
}
