body{
    margin: 0 !important;
    max-width: 1920px !important;
    width: 100%;
}

html{
    margin-top: 0px !important;
}

/* ヘッダー */
.header_section{
    margin: 0 auto;
}

.header_pc{
    display: block;
}

.header_sp{
    display: none;
}

.header_content{
    display: flex;
    justify-content: space-between;
    padding: 0 8%;
    align-items: center;
    margin: 16px 0;

}

.header_title a{
    font-size: 30px;
    font-weight: 700;
    color: #43AFF8;
}

.header_flex{
    display: flex;
    align-items: center;
    gap: 32px;
}

.header_search{
    display: flex;
    align-items: center;
}

.search_form{
    background-color: #E2F5FF;
    color: #004A7B;
    padding: 6px;
    border-radius: 4px 0 0 4px;
    border: none;
    width: 250px;
}

input[type="search"]:focus{
    outline: none;
    border: none;
    box-shadow: none;
}

.search_bt{
    background-color: #43AFF8;
    padding: 2.5%;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.header_menu{
    background-color: #43AFF8;
}

.renewal-menu{
    display: flex;
    justify-content: center;
    gap: 15%;
    padding: 8px;
}

.renewal-menu a{
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
}

.header_contact{
    background-color: #FF9E44;
    padding: 8px 24px;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
}


/* 全体コンテンツ */
.contents{
    max-width: 1920px;
    margin: 0 auto;
}

.column_contents{
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px;
}

.container{
    display: flex;
    padding: 24px;
    width: 100%;
    margin-top: 110px;
}

/* 投稿ページ */
.single{
    margin: 0 auto;
    padding: 4%;
}

/* mv */
.container{
    padding: 0px;
    width: 100%;
}

.mv-pc{
    width: 100%;
}

.mv-sp{
    display: none;
}

/* アンカーリンク */
.ankerlink_block{
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    margin: 0 auto;
    width: 100%;
    gap: 16px;
    margin-top: 60px;
}

.ankerlink{
    background-color: #43AFF8;
    display: flex;
    justify-content: space-between;
    padding: 8px;
    width: 30%;
    border-radius: 8px;
    color: #ffffff;
    align-items: center;
}

.ankerlink_number{
    font-weight: 500;
    font-size: 45px;
}

.ankerlink_text{
    font-weight: 700;
    font-size: 24px;
}

/* タイトル */
.title{
    background-color: #43AFF8;
    color: #ffffff;
    width: 100%;
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 4px;
}

.title_number{
    font-weight: 500;
    font-size: 45px;
}

.title_text{
    font-weight: 700;
    font-size: 24px;
}

/* サブタイトル */
.sub_title{
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 32px;
    margin-bottom: 16px;
}

.sub_title_mark{
    background-color: #FF9E44;
    width : 15px;
    height : 15px;
}

.sub_title_text{
    color: #004A7B;
    font-weight: 700;
    font-size: 20px;
}

/* 番号リスト */
.number_list{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.number_list_mark{
    color: #ffffff;
    background-color: #43AFF8;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;                /* 追加 */
    align-items: center;          /* 縦中央 */
    justify-content: center;      /* 横中央 */
    flex-shrink: 0;               /* 円が縮まないようにする */
    font-size: 24px;
}

.number_list_text{
    color: #004A7B;
    font-size: 20px;
}

/* サイドバー */
.sidebar{
    width: 40%;
    padding: 0 4%;
    position: relative;
}

.move_top {
    position: fixed;
    bottom: 20px;  /* 画面下からの距離 */
    right: 20px;    /* 画面右からの距離 */
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
    width: 98px;
    height: 98px;
}
.move_top.show {
    opacity: 1;
}

.sidebar_section{
    position: sticky;
    top: 0;
}

.sidebar_header{
    display: flex;
    gap: 16px;
    align-items: center;
}

.sidebar-title-mark{
    width: 15px;
    height: 40px;
    background-color: #FF9E44;
}

.sidebar-title{
    font-size: 24px;
    color: #43AFF8;
    font-weight: 700;
}

.sidebar-list{
    margin-top: 16px;
}

.sidebar-post-item{
    margin-top: 24px;
}

.sidebar-post-link{
    display: flex;
    gap: 16px;
    align-items: center;
}

.sidebar-post-img{
    width: 80px;
    height: 80px;
}

.sidebar-post-img img{
    width: 80px;
    height: 80px;
    max-width: none
}

.sidebar-post-title{
    font-size: 14px;
    color: #004A7B;
}

.sidebar-post-date{
    color: #A9A9A9;
}

.sidebar-bt{
    background-color: #43AFF8;
    color: #ffffff;
    border-radius: 32px;
    padding: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
}

.sidebar-bt-text{
    margin: 0 auto;
}

.popular-section{
    margin-top: 32px;
}

/* フッター */
.footer{
    text-align: center;
    margin: 32px 0;
}

.footer_border{
    border-bottom: 1px solid #000000;
}


/* 画像 */
.thumb img{
    object-fit: contain;
}

/* sp */
@media (max-width: 769px) {

    /* 全体 */
    html{
        margin-top: 0px !important;
    }
    .container{
        margin-top: 20px;
    }
    .column_contents{
        margin: 10% auto;
    }

    /* mv */
    .mv-pc{
        display: none;
    }
    .mv-sp{
        display: block;
        width: 100%;
        margin-top: 13%;
    }

    /* アンカーリンク */
    .ankerlink_block{
        gap: 8px;
        margin-top: 30px;
    }
    .ankerlink{
        width: 100%;
        scroll-behavior: smooth;
        height: 46px;
        padding: 4px;
    }
    .ankerlink_number{
        font-size: 35px;
    }
    .ankerlink_text{
        font-size: 18px;
    }

    /* タイトル */
    .title_number{
        font-size: 35px;
    }
    .title_text{
        font-size: 18px;
    }
    .sub_title_text{
        font-size: 18px;
    }

    /* 番号リスト */
    .number_list {
        align-items: start;
    }
    .number_list_mark{
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
    .number_list_text{
        font-size: 16px;
    }

    /* サイドバー */
    .sidebar{
        display: none;
    }

    .move_top{
        display: none;
    }

    /* ヘッダー */
    .header-pc{
        display: none;
    }
    .header_sp{
        display: block;
    }
    .header_sp_flex{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .header_title a{
        font-size: 20px;
    }
    .header_search{
        margin-top: 12px;
    }
    .search_form {
        width: 100%;
        padding: 10px;
    }
    .header_contact {
        padding: 3%;
        margin-top: 16px;
        text-align: center;
        font-size: 18px;
    }
    .header_menu{
        margin-top: 16px;
        background-color: #ffffff;
    }
    .menu_li{
        padding: 6% 0;
        font-weight: 700;
        font-size: 16px;
        color: #004A7B;
        border-bottom: 1px solid #43AFF8;
    }
    .menu_li a{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .menu_li_flex{
        display: flex;
        align-items: center;
        gap: 16px;
    }

    /* ハンバーガーアイコン */
    .hamburger {
        width: 30px;
        height: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
        z-index: 1000;
    }
    .hamburger span {
        display: block;
        height: 3px;
        background-color: #43AFF8;
        border-radius: 2px;
        transition: all 0.3s ease;
        transform-origin: center;
    }

    /* × に変形 */
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 5px);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -5px);
    }

    /* メニュー本体：初期非表示 */
    .sp_menu_wrapper {
        position: fixed;
        top: 56px; /* タイトルエリアの高さに合わせて調整 */
        left: 0;
        width: 100vw;
        height: calc(100vh - 50px); /* 残りの高さ */
        overflow-y: auto;
        background-color: #fff;
        display: none;
        flex-direction: column;
        padding: 16px;
        z-index: 10000;
        transition: opacity 0.3s ease;
        margin-top: -1%;
    }

    .header_content_sp_fixed {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: #fff;
        z-index: 10001;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        margin-top: -1%;
    }

    /* 表示状態 */
    .sp_menu_wrapper.active {
        display: flex;
    }

    .footer{
        font-size: 10px;
        margin: 16px 0;
    }
}