
.single-page {
    max-width: 1440px;
    min-width: 392px;
    margin: 0 auto;
    padding: 98px 0 96px;
    position: relative;
}

.single-header {
    font-size: 32px;
    font-weight: 700;
    padding-bottom: 58px;
    color: #262B38;
}

.single-articles {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 47px;
    width: 100%;
}

.single-title {
    width: 100%;
    padding-bottom: 30px;
}

.single-title-small {
    margin-bottom: 16px;
}

.single-title-small span {
    font-size: 14px;
}

.title-small-column {
    padding: 8px 12px;
    color: #FFFFFF;
    background-color: #262B38;
}

.title-small-text {
    color: #b1b1b1;
}

.single-title-big {
    font-size: 28px;
    padding-inline: 18px;
    color: #1F1F1F;
    border-left: 4px solid #1F1F1F;
}

.single-image {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 812px;
}

.work-single-img {
    width: 100%;
    order: 1;
}

.work-single-btn {
    width: 100%;
    order: 2;
    padding: 0;
}

.single-image img {
    width: 100%;
    max-width: 100%;
    height: auto;
    padding-bottom: 38px;
    object-fit: contain;
}

.single-summary {
    padding-bottom: 50px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

.single-summary p {
    font-size: 16px;
    font-weight: 500;
}

.work-single-btn .pagination{
    display: none;
}

.work-single-content {
    width: 100%;
    max-width: 812px;
    margin: 0 auto;
    padding: 0;
}

/* home-style.cssの全称セレクタ（* { ... }）を上書き */
/* ブロックエディタのインラインスタイルを正しく反映させるため */
.work-single-content * {
    font-weight: inherit; /* home-style.cssの font-weight: 500 を上書き */
    transition: none; /* home-style.cssの transition: all .3s を無効化 */
    line-height: 2; /* 全体的にline-height: 2を適用 */
}

/* ブロックエディタのmarginを確実に適用 */
/* インラインスタイル（style="margin-top: ..."など）は自動的に優先される */
/* 全称セレクタの margin: 0 の影響を受けないようにする */

/* ボールドテキスト（太字）を正しく表示 */
/* home-style.cssの b { font-size: 0 !important; } を上書き */
.work-single-content b,
.work-single-content strong {
    font-size: inherit !important; /* 親要素のフォントサイズを継承 */
    font-weight: bold !important; /* 太字を確実に適用 */
}

.work-single-content p {
    width: 100%;
    display: block;
    margin-bottom: 1em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 2; /* line-height: 2を明示的に設定 */
}

.work-single-content h2,
.work-single-content h3,
.work-single-content h4 {
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 1em;
}

.work-single-content ul,
.work-single-content ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
    list-style-position: outside;
    overflow: visible;
}

.work-single-content li {
    margin-bottom: 0.5em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.work-single-content P:last-child{
    display: none;
}

.mathematics-column{
    flex: 1;
    min-width: 0;
}

.mathematics-column .single-header {
    max-width: 812px;
}

.popular-articles {
    width: 230px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    justify-content: flex-start;
}

/* アーカイブスタイル（アシリサイトと同じ） */
.view-extra details {
    width: 100%;
    background-color: transparent !important;
    margin-bottom: 0 !important;
}

.view-extra .archive-list {
    padding-left: 15px;
    position: relative;
    list-style: none;
    font-size: 14px;
    cursor: pointer;
    background-color: transparent !important;
    color: inherit !important;
    font-weight: inherit !important;
    padding-top: 5px;
    padding-bottom: 5px;
}

.view-extra .archive-list::-webkit-details-marker {
    display: none;
}

.view-extra .archive-list::marker {
    display: none;
}

.view-extra .archive-list::before {
    position: absolute;
    content: "";
    top: 50%;
    left: 0px;
    width: 12px;
    height: 24px;
    margin-top: -5px;
    background: url(../images/arrow_right.svg) top left no-repeat;
    background-size: 8px 13px;
}

.view-extra .archive-list::after {
    display: none !important;
}

.view-extra details[open] .archive-list::after {
    display: none !important;
}

.view-extra details ul {
    padding-left: 15px;
    margin-top: 0;
    list-style: none;
    background-color: transparent !important;
}

.view-extra details[open] ul {
    background-color: transparent !important;
    padding-left: 15px;
}

.view-extra details ul li {
    margin-bottom: 10px;
}

.view-extra details ul li a {
    font-size: 13px;
    color: #1F1F1F;
    text-decoration: none;
}

.table-content {
    width: 100%;
    max-width: 812px;
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin-bottom: 77px;
    background-color: rgba(217,217,217,0.25);
    border: rgba(217,217,217,1) 1px solid;
}

.table-content h3 {
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #1F1F1F;
}

.table-content h3 span {
    color: #999;
}

.table-content p {
    font-size: 13px;
    font-weight: 700;
    color: rgba(83,98,120,1);
}

.single-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 24px;
    margin-bottom: 75px;
}

.single-content h3 {
    font-size: 22px;
    font-weight: 700;
}

.single-content ul {
    padding-left: 16px;
}

.single-content p,
.single-content li {
    font-size: 15px;
    font-weight: 500;
}


.single-header-extra{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding-bottom: 12px;
}
.header-left{
    /* width: 320px;
    height: 151px; */
    padding: 0 .3rem;
    background-color: #262B38;
    color: #FFFFFF;
    font-size: 13px;
}

.header-right{
    font-size: 14px;
    color: #B1B1B1;
}

.single-header-content{
    font-size: 28px;
    color: #1F1F1F;
    padding-left: 18px;
    font-weight: bold;
    border-left:4px solid #1F1F1F;
    /* padding-bottom: 31px; */
}


.mvoice-btn {
    width: 100% ;
}
.fvoice-btn {
    width: 100% ;
}

.mvoice-content p{
    display: flex !important;
}

.fvoice-content p{
    display: flex !important;
}

/* Table of Contents Plus プラグインのスタイル */
.work-single-content #toc_container {
    width: 100%;
    max-width: 100%;
    padding: 22px 26px;
    margin: 40px 0;
    border-radius: 0;
    font-size: 95%;
    display: block;
    box-sizing: border-box;
}

#toc_container p.toc_title {
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #1F1F1F;
    margin: 0 0 24px 0;
    padding: 0;
}

#toc_container p.toc_title span.toc_toggle {
    color: #606060 !important;
    font-weight: 400;
    font-size: 90%;
}

.work-single-content #toc_container p.toc_title span.toc_toggle {
    color: #606060 !important;
}

/* 非表示リンクの色をグレーに */
#toc_container p.toc_title span.toc_toggle a,
.work-single-content #toc_container p.toc_title span.toc_toggle a {
    color: #606060 !important;
    text-decoration: none !important;
}

#toc_container p.toc_title span.toc_toggle a:hover,
.work-single-content #toc_container p.toc_title span.toc_toggle a:hover {
    color: #606060 !important;
    text-decoration: underline !important;
}

#toc_container ul.toc_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#toc_container ul.toc_list li {
    margin-bottom: 12px;
    padding-left: 0;
    font-size: 13px;
    font-weight: 700;
    color: rgba(83, 98, 120, 1);
    line-height: 1.6;
}

#toc_container ul.toc_list li a {
    color: rgba(83, 98, 120, 1);
    text-decoration: none;
    transition: color 0.2s ease;
}

#toc_container ul.toc_list li a:hover {
    color: #262B38;
    text-decoration: underline;
}

#toc_container ul.toc_list ul {
    margin-top: 8px;
    margin-left: 20px;
    padding-left: 0;
}

#toc_container ul.toc_list ul li {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
}

#toc_container.no_bullets ul,
#toc_container.no_bullets li {
    list-style: none;
    background: none;
}

#toc_container.have_bullets li {
    padding-left: 12px;
}