main.post .e-content {
    font-family:
        "Helvetica Neue",
        Arial,
        "Hiragino Kaku Gothic ProN",
        "Hiragino Sans",
        "BIZ UDPGothic",
        /*"Noto Sans JP",*/ sans-serif;
    /*https://ics.media/entry/200317/*/

    line-height: 1.7;
}

#TableOfContents {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Open Sans",
        "Helvetica Neue",
        sans-serif;
}

#topHero {
    background-size: cover;
    background-repeat: no-repeat;
}

aside nav.related ul {
    display: flex;
    flex-flow: column;
}

footer nav li {
    margin-left: .5rem;
}

/* ========================================
   著者ウィジェット — 完全CSS
   ======================================== */

/* --- ウィジェット外枠 --- */
.author-widget {
    margin-top: 5em;
    /*position: sticky;
  top: 1.5rem;*/
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
}

/* --- アバター画像 --- */
.author-widget .author-avatar {
    width: auto;
    height: 96px;
    /*border-radius: 50%;*/
    object-fit: cover;
    margin: 0 auto 0.75rem;
    display: block;
    /*border: 2px solid #e5e7eb;*/
}

.author-avatar img {
    max-height: 100%;
    width: auto;
}

/* --- バッジ（ブログ主催者） --- */
.author-widget .badge {
    display: inline-block;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 99px;
    margin-bottom: 0.5rem;
}

/* --- 著者名 --- */
.author-widget .author-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px;
}

/* --- 肩書き --- */
.author-widget .author-title {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 0.75rem;
}

/* --- 区切り線 --- */
.author-widget hr {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 0.75rem 0;
}

/* --- 略歴 --- */
.author-widget .bio {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
    text-align: left;
    margin: 0 0 0.75rem;
}

/* --- 統計エリア --- */
.author-widget .stats {
    display: flex;
    justify-content: space-around;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.6rem 0;
    margin-bottom: 0.75rem;
}

.author-widget .stat {
    text-align: center;
}

.author-widget .stat + .stat {
    border-left: 1px solid #e5e7eb;
    padding-left: 0.5rem;
}

.author-widget .stat-num {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

.author-widget .stat-label {
    font-size: 11px;
    color: #9ca3af;
}

/* --- リンクボタン --- */
.author-widget .author-link {
    display: block;
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    color: #374151;
    text-decoration: none;
    transition:
        background 0.15s,
        color 0.15s;
}

.author-widget .author-link:hover {
    background: #f3f4f6;
    color: #111827;
}

/* ========================================
   ダークモード対応
   ======================================== */
@media (prefers-color-scheme: dark) {
    .author-widget {
        background: #1f2937;
        border-color: #374151;
    }

    .author-widget .author-avatar {
        border-color: #374151;
    }

    .author-widget .badge {
        background: #374151;
        color: #9ca3af;
    }

    .author-widget .author-name {
        color: #f9fafb;
    }

    .author-widget .author-title {
        color: #9ca3af;
    }

    .author-widget hr {
        border-color: #374151;
    }

    .author-widget .bio {
        color: #d1d5db;
    }

    .author-widget .stats {
        background: #111827;
        border-color: #374151;
    }

    .author-widget .stat + .stat {
        border-color: #374151;
    }

    .author-widget .stat-num {
        color: #f9fafb;
    }

    .author-widget .stat-label {
        color: #6b7280;
    }

    .author-widget .author-link {
        border-color: #374151;
        color: #d1d5db;
    }

    .author-widget .author-link:hover {
        background: #374151;
        color: #f9fafb;
    }
}

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 768px) {
    .author-widget {
        position: static; /* モバイルでstickyを解除 */
    }

    .hero h1 {
        line-height: 1.3;
    }

    .post {
        padding: 0 .5rem;
    }
}
