/* ===== BASE STYLES ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: sans-serif;
    line-height: 1.6;
    font-size: 16px;
    color: #333;
    background: #f8f9fa;
    padding-top: 90px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== COMMON COMPONENTS ===== */
.wj-placeholder-img {
    background-color: #e9ecef;
    border: 1px dashed #ced4da;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 14px;
    font-weight: bold;
    width: 100%;
    height: 100%;
}

.l-single-conten__gray-wrap {
    margin: 0 15px 3.2rem;
    padding: 20px;
    border: 3px solid #9296ab;
    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.16);
    box-sizing: border-box;
    background: #e0e3f5;
    line-height: 20px;
}

.wj-placeholder-img::after {
    content: "img";
}

.wj-tag {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.wj-tag-primary {
    background: #2b3969;
    color: #ffffff;
}

.wj-tag-secondary {
    background: #dfd6d1;
    color: #333;
    border: 1px solid #e0e0e0;
}

/* ===== HEADER SECTION ===== */
.wj-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #2c3677;
    min-height: 90px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* デスクトップヘッダーをデフォルトで表示 */
.wj-header {
    display: block;
}

/* スマホヘッダーをデフォルトで非表示 */
.wj-header-sp {
    display: none;
}

.wj-header .wj-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.wj-header .wj-header-left {
    flex-shrink: 0;
    margin-right: 20px;
    line-height: 1;
    text-align: center;
}

.wj-header .wj-header-desc {
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    margin-bottom: 5px;
    font-weight: 400;
    line-height: 1.3;
}

.wj-header .wj-header-logo {
    display: block;
    width: fit-content;
    text-decoration: none;
    margin: 0 auto 2px auto;
}

.wj-header .wj-header-logo img {
    height: 34px;
    width: auto;
}

.wj-header .wj-header-powered {
    color: rgba(255,255,255,0.8);
    font-size: 12px;
    font-weight: 400;
    text-align: center;
}

.wj-header .wj-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-grow: 1;
    justify-content: flex-end;
}

.wj-header .wj-header-btn {
    background: white;
    color: #2c3677;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    cursor: pointer;
    box-shadow: none;
}

.wj-header .wj-header-btn:hover {
    background: #f5f5f5;
    transform: none;
}

.wj-header .wj-header-btn::after {
    content: '▷';
    font-size: 9px;
    margin-left: 5px;
    color: #2c3677;
}

.wj-header .wj-search-box {
    position: relative;
    width: 180px;
}

.wj-header .wj-search-input {
    width: 100%;
    padding: 8px 40px 8px 5px;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    border-radius: 0;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: white;
    transition: all 0.2s;
}

.wj-header .wj-search-input::placeholder {
    color: rgba(255,255,255,0.6);
}

.wj-header .wj-search-input:focus {
    border-bottom-color: rgba(255,255,255,0.8);
    background: transparent;
}

.wj-header .wj-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== BANNER SECTION ===== */
.wj-banner-section {
    width: 90%;
    margin: 40px auto;
    padding: 0;
}

.wj-banner-link {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.wj-banner-link:hover {
    opacity: 0.9;
}

.wj-banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== PAGE LAYOUT ===== */
.wj-page-wrapper {
    background-color: #fff;
    padding: 40px 0;
}

.wj-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

.wj-detail-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 5px;
}

.wj-2column-layout {
    display: flex;
    gap: 40px;
}

.wj-main-content-column {
    /* メインコンテンツカラム */
}

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

.wj-category-2column-layout {
    display: flex;
    gap: 40px;
}

.wj-category-2column-layout .wj-main-content-column {
    flex: 2.2;
    min-width: 0;
}

.wj-category-2column-layout .wj-category-sidebar-column {
    flex: 1;
    min-width: 0;
}

/* ===== TOP HERO SECTION ===== */
.wj-top-hero-section {
    flex: 1.3;
    min-width: 0;
    margin-bottom: 80px;
    padding-bottom: 15px;
}


.wj-top-hero-section .wj-hero-featured-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

.wj-top-hero-section .wj-hero-featured-card:hover {
    opacity: 0.8;
}

.wj-top-hero-section .wj-hero-featured-img-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
    border: 8px solid #2c3677;
}

.wj-top-hero-section .wj-hero-featured-img-wrapper .wj-placeholder-img {
    aspect-ratio: 16 / 9;
}

.wj-top-hero-section .wj-hero-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

.wj-top-hero-section .wj-hero-featured-title {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 10px;
}

.wj-top-hero-section .wj-post-meta {
    font-size: 12px;
    color: #555;
}

.wj-top-hero-section .wj-meta-left {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
}

.wj-top-hero-section .wj-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wj-top-hero-section .wj-author-avatar-wrapper .wj-placeholder-img,
.wj-top-hero-section .wj-author-avatar {
    width: 50px;
    height: 50px;
    min-height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.wj-top-hero-section .wj-author-avatar-wrapper .wj-placeholder-img::after {
    content: "●";
    font-size: 20px;
}

.wj-top-hero-section .wj-author-name {
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

.wj-top-hero-section .wj-tags-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wj-top-hero-section .wj-tags-block .wj-tags {
/*    display: flex;
    gap: 3px; */
    line-height: 30px;
}

.wj-top-hero-section .wj-post-data {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    font-size: 12px;
    color: #555;
    margin-left: 0;
    white-space: nowrap;
}

.wj-hero-left .wj-meta-right {
    border-top: 1px solid #eee;
}

.wj-top-hero-section .wj-post-data .wj-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wj-top-hero-section .wj-video-tag {
    font-size: 12px;
}

.wj-top-hero-section .wj-post-date {
    color: #000000;
    font-size: 12px;
}

.wj-top-hero-section .wj-reading-time {
    color: #888888;
    font-size: 12px;
    font-weight: normal;
}

/* ===== HERO SIDEBAR ===== */
.wj-sidebar-column .wj-sidebar-widget {
    margin-bottom: 30px;
}

.wj-sidebar-column .wj-sidebar-card {
    margin-bottom: 15px;
}

.wj-sidebar-column .wj-sidebar-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.wj-sidebar-column .wj-sidebar-card-link {
    display: flex;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.wj-sidebar-column .wj-sidebar-card-link:hover {
    opacity: 0.8;
}

.wj-sidebar-column .wj-sidebar-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wj-sidebar-column .wj-sidebar-card-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 5px;
}

.wj-sidebar-column .wj-sidebar-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wj-sidebar-column .wj-sidebar-card-meta .wj-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wj-sidebar-column .wj-sidebar-card-meta .wj-author-info .wj-placeholder-img {
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 50%;
}

.wj-sidebar-column .wj-sidebar-card-meta .wj-author-info img {
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.wj-sidebar-column .wj-sidebar-card-meta .wj-author-name {
    font-size: 12px;
    white-space: nowrap;
}

.wj-sidebar-column .wj-sidebar-card-meta .wj-tags-block {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.wj-sidebar-column .wj-sidebar-card-meta .wj-tags-block .wj-tags {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
}

.wj-sidebar-column .wj-sidebar-card-meta .wj-tag {
    font-size: 10px;
    padding: 2px 6px;
    line-height: 1.2;
}

.wj-sidebar-column .wj-sidebar-card-separator {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 5px 0 0 0;
}

.wj-sidebar-column .wj-sidebar-card-bottom-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wj-sidebar-column .wj-sidebar-card-bottom-meta .wj-meta-info {
    display: flex;
    align-items: center;
    gap: 0;
}

.wj-sidebar-column .wj-sidebar-card-bottom-meta .wj-post-date {
    font-size: 12px;
    color: #333;
}

.wj-sidebar-column .wj-sidebar-card-bottom-meta .wj-reading-time {
    font-size: 12px;
}

.wj-sidebar-column .wj-sidebar-card-thumbnail {
    flex-shrink: 0;
    width: 185px;
}

.wj-sidebar-column .wj-sidebar-card-thumbnail .wj-placeholder-img {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.wj-sidebar-column .wj-sidebar-card-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* YouTube thumbnails in sidebar need aspect-ratio */
.wj-sidebar-column .wj-sidebar-card-thumbnail .wj-youtube-thumbnail {
    aspect-ratio: 16 / 9;
}

/* ===== VIDEO TAG ===== */
.wj-video-tag {
    color: inherit;
    font-weight: normal;
    display: flex;
    align-items: center;
    font-size: 12px;
    margin-right: 8px;
}

.wj-main-content-column .wj-video-tag {
    color: inherit;
    font-weight: normal;
    display: flex;
    align-items: center;
    font-size: 10px;
    margin-right: 0px;
}

.wj-video-tag-small {
    font-size: 8px;
    margin-right: 5px;
}

.wj-youtube-icon {
    margin-right: 4px;
    fill: #c00;
}

/* ===== TOP MAIN CONTENT SECTION ===== */
.wj-main-content-column .wj-top-section-title {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    color: #2b3969;
    border-bottom: 2px dotted #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

/* カテゴリの「もっと見る」ボタン - PC版では非表示 */
.wj-category-more-button {
    display: none;
}

.wj-main-content-column .wj-top-category-article-block {
    margin-bottom: 50px;
}

.wj-main-content-column .wj-top-category-block-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    border-left: 8px solid #2b3969;
    line-height: 1;
    padding-left: 10px;
}

.wj-main-content-column .wj-top-category-block-content {
    display: flex;
    gap: 15px;
}

.wj-main-content-column .wj-top-category-featured-article {
    flex: 0.7;
    min-width: 0;
}

.wj-main-content-column .wj-top-category-featured-link {
    display: block;
    color: inherit;
}

.wj-main-content-column .wj-top-category-featured-link:hover {
    opacity: 0.8;
}

.wj-main-content-column .wj-top-category-featured-thumb .wj-placeholder-img {
    aspect-ratio: 16 / 9;
    margin-bottom: 10px;
}

.wj-main-content-column .wj-top-category-featured-title {
    font-size: 15px;
    line-height: 1.3;
    font-weight: bold;
    margin-bottom: 5px;
}

.wj-main-content-column .wj-top-category-featured-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 7px;
}

.wj-main-content-column .wj-top-category-featured-meta .wj-author-info,
.wj-main-content-column .wj-top-category-featured-meta .wj-author-info-pc {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wj-main-content-column .wj-top-category-featured-meta .wj-author-info .wj-placeholder-img,
.wj-main-content-column .wj-top-category-featured-meta .wj-author-info-pc .wj-placeholder-img {
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 50%;
}

.wj-main-content-column .wj-top-category-featured-meta .wj-author-name {
    font-size: 12px;
    white-space: nowrap;
}

.wj-main-content-column .wj-top-category-featured-meta .wj-tags {
    line-height: 1.8;
}

/* PC版：スマホ用の要素を非表示、PC用の要素を表示 */
.wj-main-content-column .wj-top-category-featured-bottom-meta .wj-author-info-sp,
.wj-main-content-column .wj-top-category-featured-bottom-meta .wj-meta-right-sp {
    display: none;
}

.wj-main-content-column .wj-top-category-featured-bottom-meta .wj-meta-pc {
    display: inline;
}

/* PC版：動画タグも縦中央揃え */
.wj-main-content-column .wj-top-category-featured-bottom-meta .wj-video-tag.wj-meta-pc {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
}

.wj-main-content-column .wj-top-category-article-block .wj-tag {
    padding: 2px 5px;
    font-size: 10px;
}

.wj-main-content-column .wj-top-category-featured-bottom-meta {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    margin-top: 5px;
    padding-top: 3px;
    border-top: 1px solid #e9ecef;
}

.wj-main-content-column .wj-top-category-sub-list-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wj-main-content-column .wj-top-category-sub-article-list {
    list-style: none;
    flex-grow: 1;
}

.wj-main-content-column .wj-top-sub-article-item {
    border-bottom: 1px solid #e9ecef;
}

.wj-main-content-column .wj-top-sub-article-link {
    display: flex;
    gap: 10px;
    padding: 5px 0;
}

.wj-main-content-column .wj-top-sub-article-link:hover {
    background-color: #f8f9fa;
}

.wj-main-content-column .wj-top-sub-article-thumb .wj-placeholder-img {
    width: 85px;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;
}

.wj-main-content-column .wj-top-sub-article-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
}

.wj-main-content-column .wj-top-sub-article-title {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    max-width: 100%;
}

.wj-main-content-column .wj-top-sub-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #555;
}

.wj-main-content-column .wj-top-sub-article-meta .wj-author-info {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 0;
}

.wj-main-content-column .wj-top-sub-article-meta .wj-author-info .wj-placeholder-img {
    width: 24px;
    height: 24px;
    min-height: 24px;
    border-radius: 50%;
}

.wj-main-content-column .wj-top-sub-article-meta-tags {
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 2px;
}

.wj-main-content-column .wj-top-video-tag {
    color: inherit;
    font-weight: normal;
    display: flex;
    align-items: center;
    font-size: 10px;
    margin-right: 0px;
}

.wj-main-content-column .wj-top-youtube-icon {
    margin-right: 4px;
    fill: #c00;
}

.wj-main-content-column .wj-top-sub-article-meta-tags .wj-meta-date {
    color: #333;
}

.wj-main-content-column .wj-top-category-more-link {
    display: block;
    text-align: right;
    margin-top: 10px;
    color: #555;
    font-size: 12px;
}

.wj-main-content-column .wj-top-category-more-link:hover {
    color: #000;
}

.wj-main-content-column .wj-top-category-more-link::after {
    content: '▷';
    margin-left: 5px;
    font-size: 10px;
}

/* ===== SIDEBAR SECTION ===== */
.wj-category-sidebar-column .wj-sidebar-section-title {
    font-size: 22px;
    font-weight: bold;
    text-align: left;
    color: #2b3969;
    border-bottom: 2px dotted #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.wj-category-sidebar-column .wj-sidebar-category-grid {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.wj-category-sidebar-column .wj-sidebar-category-grid-item {
    border-bottom: 1px dotted #d0d0d0;
}

.wj-category-sidebar-column .wj-sidebar-category-grid-item a {
    display: flex;
    align-items: center;
    padding: 12px 0px 12px 10px;
    transition: background-color 0.2s;
}

.wj-category-sidebar-column .wj-sidebar-category-grid-item a:hover {
    background-color: #f8f9fa;
}

.wj-category-sidebar-column .wj-sidebar-category-icon-placeholder {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1.5px dashed #b0c4de;
    border-radius: 50%;
    margin-right: 12px;
}

.wj-category-sidebar-column .wj-sidebar-category-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px #bbb dashed;
}

.wj-category-sidebar-column .wj-sidebar-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.wj-category-sidebar-column .wj-sidebar-category-grid-item a:hover .wj-sidebar-category-icon img {
    transform: scale(1.05);
}

.wj-category-sidebar-column .wj-sidebar-category-name {
    font-size: 15px;
    font-weight: bold;
    color: #707bc2;
}

.wj-category-sidebar-column .wj-sidebar-authors-section {
    margin-top: 40px;
}

.wj-category-sidebar-column .wj-sidebar-authors-header {
    position: relative;
    margin-bottom: 30px;
}

.wj-category-sidebar-column .wj-sidebar-authors-title {
    font-size: 22px;
    font-weight: bold;
    text-align: left;
    color: #2b3969;
    border-bottom: 2px dotted #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 0;
}

.wj-category-sidebar-column .wj-sidebar-authors-all-link {
    position: absolute;
    top: 35%;
    right: 0;
    transform: translateY(-50%);
    font-size: 14px;
    color: #6b73c7;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.wj-category-sidebar-column .wj-sidebar-authors-all-link:after {
    content: "▷";
    margin-left: 5px;
    font-size: 12px;
}

.wj-category-sidebar-column .wj-sidebar-author-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wj-category-sidebar-column .wj-sidebar-author-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wj-category-sidebar-column .wj-sidebar-author-item:last-child {
    border-bottom: none;
}

.wj-category-sidebar-column .wj-sidebar-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.wj-category-sidebar-column .wj-sidebar-author-details {
    flex: 1;
}

.wj-category-sidebar-column .wj-sidebar-author-name-link {
    font-size: 15px;
    font-weight: bold;
    color: #2b3969;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.wj-category-sidebar-column .wj-sidebar-author-actions {
    display: flex;
    gap: 15px;
}

.wj-category-sidebar-column .wj-sidebar-author-profile-link,
.wj-category-sidebar-column .wj-sidebar-author-articles-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    position: relative;
}

.wj-category-sidebar-column .wj-sidebar-author-profile-link:before {
    content: "▷";
    margin-right: 4px;
    font-size: 10px;
}

.wj-category-sidebar-column .wj-sidebar-author-articles-link:before {
    content: "▷";
    margin-right: 4px;
    font-size: 10px;
}

/* PC版サイドバーのボタンスタイル - トップページと統一 */
.wj-sidebar-author-profile-btn {
    background: none;
    border: none;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
    display: inline;
    text-align: left;
}

.wj-sidebar-author-profile-btn:hover {
    text-decoration: underline;
}

.wj-sidebar-author-profile-btn:focus {
    outline: none;
}

.wj-category-sidebar-column .wj-sidebar-keywords-section {
    margin-top: 40px;
}

.wj-category-sidebar-column .wj-sidebar-keywords-title {
    font-size: 22px;
    font-weight: bold;
    text-align: left;
    color: #2b3969;
    border-bottom: 2px dotted #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.wj-category-sidebar-column .wj-sidebar-keywords-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wj-category-sidebar-column .wj-sidebar-keyword-tag {
    background: #dfd6d1;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.3s ease;
}

.wj-category-sidebar-column .wj-sidebar-keyword-tag:hover {
    background: #c9bfb9;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ===== SIDEBAR POPULAR ARTICLES SECTION ===== */
.wj-category-sidebar-column .wj-sidebar-popular-section {
    margin-top: 40px;
}

.wj-category-sidebar-column .wj-sidebar-popular-title {
    font-size: 22px;
    font-weight: bold;
    text-align: left;
    color: #2b3969;
    border-bottom: 2px dotted #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.wj-category-sidebar-column .wj-sidebar-popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wj-category-sidebar-column .wj-sidebar-popular-item {
    margin-bottom: 20px;
}

.wj-category-sidebar-column .wj-sidebar-popular-item:last-child {
    margin-bottom: 0;
}

.wj-category-sidebar-column .wj-sidebar-popular-content {
    width: 100%;
}

.wj-category-sidebar-column .wj-sidebar-popular-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.wj-category-sidebar-column .wj-sidebar-popular-link:hover {
    opacity: 0.8;
}

.wj-category-sidebar-column .wj-sidebar-popular-link:hover .wj-sidebar-popular-title {
    color: #b58745;
    text-decoration: underline;
}

.wj-category-sidebar-column .wj-sidebar-popular-article-wrapper {
    display: flex;
    gap: 12px;
}

.wj-category-sidebar-column .wj-sidebar-popular-thumbnail {
    flex-shrink: 0;
    width: 110px;
    height: 60px;
    position: relative;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wj-category-sidebar-column .wj-sidebar-popular-thumbnail .wj-placeholder-img {
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wj-sidebar-popular-number {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: #545454;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

.wj-category-sidebar-column .wj-sidebar-popular-number {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    background: #545454;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    z-index: 2;
}

/* 人気記事ランキングの番号の色分け - HTMLのカウンターに合わせて修正 */
.wj-sidebar-popular-list > .wj-sidebar-popular-item:nth-child(4) .wj-sidebar-popular-number {
    background: #bba770 !important;
}

.wj-sidebar-popular-list > .wj-sidebar-popular-item:nth-child(5) .wj-sidebar-popular-number {
    background: #b2a49d !important;
}

.wj-sidebar-popular-list > .wj-sidebar-popular-item:nth-child(6) .wj-sidebar-popular-number {
    background: #2c3677 !important;
}

.wj-sidebar-popular-list > .wj-sidebar-popular-item:nth-child(7) .wj-sidebar-popular-number,
.wj-sidebar-popular-list > .wj-sidebar-popular-item:nth-child(8) .wj-sidebar-popular-number {
    background: #545454 !important;
}

/* サイドバー内でも同様の色分け（互換性のため） */
.wj-category-sidebar-column .wj-sidebar-popular-item:nth-child(1) .wj-sidebar-popular-number {
    background: #bba770;
}

.wj-category-sidebar-column .wj-sidebar-popular-item:nth-child(2) .wj-sidebar-popular-number {
    background: #b2a49d;
}

.wj-category-sidebar-column .wj-sidebar-popular-item:nth-child(3) .wj-sidebar-popular-number {
    background: #2c3677;
}

.wj-category-sidebar-column .wj-sidebar-popular-item:nth-child(4) .wj-sidebar-popular-number,
.wj-category-sidebar-column .wj-sidebar-popular-item:nth-child(5) .wj-sidebar-popular-number {
    background: #545454;
}

.wj-category-sidebar-column .wj-sidebar-popular-article-content {
    flex: 1;
    min-width: 0;
}

.wj-category-sidebar-column .wj-sidebar-popular-article-title {
    font-size: 12px;
    font-weight: normal;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
}

.wj-category-sidebar-column .wj-sidebar-popular-article-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.wj-category-sidebar-column .wj-sidebar-popular-article-meta .wj-author-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.wj-category-sidebar-column .wj-sidebar-popular-article-meta .wj-author-info .wj-placeholder-img {
    width: 20px;
    height: 20px;
    min-height: 20px;
    border-radius: 50%;
}

.wj-category-sidebar-column .wj-sidebar-popular-article-meta .wj-author-name {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.wj-category-sidebar-column .wj-sidebar-popular-article-date {
    font-size: 12px;
    color: #999;
}

/* ===== SIDEBAR SEMINAR SECTION ===== */
.wj-category-sidebar-column .wj-sidebar-seminar-section {
    margin-top: 40px;
}

.wj-category-sidebar-column .wj-sidebar-seminar-title {
    font-size: 22px;
    font-weight: bold;
    text-align: left;
    color: #2b3969;
    border-bottom: 2px dotted #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.wj-category-sidebar-column .wj-sidebar-seminar-banner {
    display: block;
    text-decoration: none;
    text-align: center;
}

.wj-category-sidebar-column .wj-sidebar-seminar-banner img {
    width: 90%;
    height: auto;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.wj-category-sidebar-column .wj-sidebar-seminar-banner:hover img {
    opacity: 0.8;
}

/* ===== SIDEBAR SEMINAR ARCHIVE SUBSECTION ===== */
.wj-category-sidebar-column .wj-sidebar-seminar-archive {
    margin-top: 30px;
}

.wj-category-sidebar-column .wj-sidebar-seminar-archive-title {
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    color: #2b3969;
    margin-bottom: 20px;
}

.wj-category-sidebar-column .wj-sidebar-seminar-archive-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wj-category-sidebar-column .wj-sidebar-seminar-archive-item {
    margin-bottom: 20px;
    background: white;
}

.wj-category-sidebar-column .wj-sidebar-seminar-archive-item:last-child {
    margin-bottom: 0;
}

.wj-category-sidebar-column .wj-sidebar-seminar-archive-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.wj-category-sidebar-column .wj-sidebar-seminar-archive-link:hover {
    background-color: #f8f9fa;
}

.wj-category-sidebar-column .wj-sidebar-seminar-archive-thumbnail {
    width: 100px;
    height: 60px;
    flex-shrink: 0;
}

.wj-category-sidebar-column .wj-sidebar-seminar-archive-thumbnail .wj-placeholder-img {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    border: none;
}

.wj-category-sidebar-column .wj-sidebar-seminar-archive-content {
    flex: 1;
    padding: 0px 8px 8px 8px;
    min-width: 0;
}

.wj-category-sidebar-column .wj-sidebar-seminar-archive-badge {
    font-size: 10px;
    background: #bba770;
    color: white;
    padding: 2px 6px;
    border-radius: 2px;
    display: block;
    width: fit-content;
    margin-bottom: 4px;
}

.wj-category-sidebar-column .wj-sidebar-seminar-archive-text {
    font-size: 12px;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 6px;
    color: #333;
}

.wj-category-sidebar-column .wj-sidebar-seminar-archive-cta {
    font-size: 11px;
    color: #2b3969;
    font-weight: bold;
}


/* ===== SIDEBAR MAILMAGAZINE SECTION ===== */
.wj-category-sidebar-column .wj-sidebar-mailmagazine-section {
    margin-top: 40px;
}

.wj-category-sidebar-column .wj-sidebar-mailmagazine-title {
    font-size: 22px;
    font-weight: bold;
    text-align: left;
    color: #2b3969;
    border-bottom: 2px dotted #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.wj-category-sidebar-column .wj-sidebar-mailmagazine-banner {
    display: block;
    text-decoration: none;
    text-align: center;
}

.wj-category-sidebar-column .wj-sidebar-mailmagazine-banner img {
    width: 90%;
    height: auto;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.wj-category-sidebar-column .wj-sidebar-mailmagazine-banner:hover img {
    opacity: 0.8;
}

/* ===== SIDEBAR BOOK SECTION ===== */
.wj-category-sidebar-column .wj-sidebar-book-section {
    margin-top: 40px;
}

.wj-category-sidebar-column .wj-sidebar-book-title {
    font-size: 22px;
    font-weight: bold;
    text-align: left;
    color: #2b3969;
    border-bottom: 2px dotted #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.wj-category-sidebar-column .wj-sidebar-book-banner {
    display: block;
    text-decoration: none;
    text-align: center;
}

.wj-category-sidebar-column .wj-sidebar-book-banner img {
    width: 90%;
    height: auto;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.wj-category-sidebar-column .wj-sidebar-book-banner:hover img {
    opacity: 0.8;
}

/* ===== QA SECTION (Future) ===== */
.wj-qa-section {
    padding: 40px 0;
    border-top: 1px solid #e9ecef;
}

.wj-qa-section .wj-qa-content {
    max-width: 1200px;
    margin: 0 auto;
}

.wj-qa-section .wj-qa-title {
    font-size: 24px;
    font-weight: bold;
    color: #2b3969;
    text-align: center;
    margin-bottom: 30px;
}

/* ===== FOOTER SECTION (Future) ===== */
.wj-footer {
    background: #2c3677;
    color: white;
    padding: 40px 0;
    margin-top: 40px;
}

.wj-footer .wj-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* ===== ARTICLE DETAIL PAGE (Future) ===== */
.wj-article-detail .wj-article-header {
    margin-bottom: 40px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 30px;
}

.wj-article-detail .wj-article-title {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 20px;
}

.wj-article-detail .wj-article-content {
    flex: 2;
    min-width: 0;
}

.wj-article-detail .wj-article-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.wj-article-detail .wj-article-sidebar {
    flex: 1;
    min-width: 0;
}

/* ===== TOP YOUTUBE SECTION ===== */
.wj-top-youtube-section {
    width: 90%;
    margin: 40px auto;
}

.wj-top-youtube-content {
    display: flex;
    align-items: center;
    background-color: #f7f5f0;
    border-radius: 16px;
    padding: 10px;
    padding-left: 0;
    width: 100%;
    font-family: sans-serif;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: visible;
    gap: 10px;
}

.wj-top-youtube-content .wj-youtube-portrait {
    flex-shrink: 0;
    align-self: stretch; /* flex-endからstretchに変更 */
    position: relative;
    margin-top: -60px; /* 上部からはみ出すように負のマージンを増やす */
    margin-bottom: -10px;
    margin-left: -1px; /* 左端の微調整 */
}

.wj-top-youtube-content .wj-youtube-portrait img {
    display: block;
    height: 280px; /* 高さを増やして上部のはみ出しを確保 */
    margin-bottom: 0;
    border-radius: 16px 0 0 32px; /* 左下の角丸を大きくする */
    position: relative;
}

.wj-top-youtube-content .wj-youtube-info {
    flex-grow: 1;
    padding: 0 8px;
}

.wj-top-youtube-content .wj-youtube-logo {
    height: 35px;
    display: block;
}

.wj-top-youtube-content .wj-youtube-academy-logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.wj-top-youtube-content .wj-youtube-academy-logo-link:hover {
    opacity: 0.8;
}

.wj-top-youtube-content .wj-youtube-academy-logo {
    height: 100px;
    margin-bottom: 0px;
    display: block;
    position: relative;
    left: -10px;
}

.wj-top-youtube-content .wj-youtube-academy-title {
    font-size: 18px;
    font-weight: bold;
    color: #0d3257;
    margin: 0 auto 0 0;
    margin-bottom: 8px;
}

.wj-top-youtube-content .wj-youtube-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 16px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #0d3257;
    width: 100%;
}

.wj-top-youtube-content .wj-youtube-latest-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.wj-top-youtube-content .wj-youtube-view-all-text-link {
    font-size: 13px;
    color: #0d3257;
    text-decoration: none;
    transition: color 0.3s ease;
}

.wj-top-youtube-content .wj-youtube-view-all-text-link:hover {
    color: #1a4a7a;
    text-decoration: underline;
}

.wj-top-youtube-content .wj-youtube-channel-handle {
    font-size: 12px;
    color: #684c39;
    margin-bottom: 2px;
}

.wj-top-youtube-content .wj-youtube-channel-stats {
    display: flex;
    gap: 13px;
    font-size: 15px;
    color: #684c39;
    white-space: nowrap;
}

.wj-top-youtube-content .wj-youtube-channel-link {
    font-size: 13px;
    color: #684c39;
    text-decoration: underline;
    word-break: break-all;
}

.wj-top-youtube-content .wj-youtube-channel-link:hover {
    text-decoration: underline;
}

.wj-top-youtube-content .wj-youtube-videos {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 10px;
}

/* ボタンスタイルは削除（上部のテキストリンクを使用） */

.wj-top-youtube-content .wj-youtube-video-list {
    display: flex;
    gap: 16px;
}

.wj-top-youtube-content .wj-youtube-video-item {
    display: flex;
    flex-direction: column;
}

.wj-top-youtube-content .wj-youtube-video-placeholder {
    width: 140px;
    aspect-ratio: 16 / 9;
    background-color: #e9ecef;
    border: 1px dashed #ced4da;
    border-radius: 8px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wj-top-youtube-content .wj-youtube-video-placeholder:hover {
    background-color: #dee2e6;
    border-color: #adb5bd;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wj-top-youtube-content .wj-youtube-video-placeholder::after {
    content: "動画";
}

.wj-top-youtube-content .wj-youtube-video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #666;
    width: 140px;
    flex-wrap: wrap;
    gap: 4px;
}

.wj-top-youtube-content .wj-youtube-view-count {
    color: #888;
    font-weight: 500;
}

/* YouTube動画の新しい要素スタイル */
.wj-top-youtube-content .wj-youtube-video-link {
    position: relative;
    display: block;
    text-decoration: none;
    margin-bottom: 8px;
}

.wj-top-youtube-content .wj-youtube-video-thumbnail {
    width: 140px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wj-top-youtube-content .wj-youtube-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.wj-top-youtube-content .wj-youtube-video-link:hover .wj-youtube-video-overlay {
    opacity: 1;
}

.wj-top-youtube-content .wj-youtube-video-link:hover .wj-youtube-video-thumbnail {
    transform: scale(1.05);
}

.wj-top-youtube-content .wj-youtube-play-button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
}

.wj-top-youtube-content .wj-youtube-play-button:hover {
    background: white;
    transform: scale(1.1);
}

.wj-top-youtube-content .wj-youtube-video-info {
    width: 140px;
}

.wj-top-youtube-content .wj-youtube-video-title {
    font-size: 11px;
    color: #333;
    line-height: 1.4;
    margin: 0 0 4px 0;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 30px;  /* 2行分の最小高さ */
}

/* ===== TOP BANNER SECTION (Legacy - use .wj-banner-section instead) ===== */

.wj-top-banner-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== TOP YOUTUBE SECTION RESPONSIVE ===== */
@media (max-width: 1024px) {
    .wj-top-youtube-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .wj-top-youtube-content .wj-youtube-portrait {
        align-self: center;
        margin-top: 0; /* モバイル時は上部のはみ出しをリセット */
        margin-bottom: 16px;
        margin-left: 0; /* 左端の調整もリセット */
    }

    .wj-top-youtube-content .wj-youtube-portrait img {
        height: 150px;
        border-radius: 8px;
        margin-bottom: 0;
    }

    .wj-top-youtube-content .wj-youtube-info {
        padding: 0 16px 16px;
    }

    .wj-top-youtube-content .wj-youtube-videos {
        align-items: center;
    }

    .wj-top-youtube-content .wj-youtube-video-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .wj-top-youtube-section {
        margin: 0 auto;
        width: 95%;
    }

    .wj-top-youtube-content {
        padding: 16px;
    }

    .wj-top-youtube-content .wj-youtube-video-list {
        flex-direction: column;
        align-items: center;
    }

    .wj-top-youtube-content .wj-youtube-video-placeholder {
        width: 200px;
    }
}

/* ===== TOP QA SECTION ===== */
.wj-top-qa-section {
    padding: 60px 0;
    width: 100%;
}

.wj-top-qa-section .wj-qa-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.wj-top-qa-section .wj-qa-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #2b3969;
    margin: 0 0 50px 0;
    position: relative;
}

.wj-top-qa-section .wj-qa-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #2b3969;
}

.wj-top-qa-section .wj-qa-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
}

.wj-top-qa-section .wj-qa-item {
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.wj-top-qa-section .wj-qa-question-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.wj-top-qa-section .wj-qa-answer {
    gap: 15px;
    align-items: center;
    border-left: 10px solid #c3bab5;
    padding-left: 10px;
}

.wj-top-qa-section .wj-qa-answerer-info {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

.wj-top-qa-section .wj-qa-answerer-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
}

.wj-top-qa-section .wj-qa-author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

.wj-top-qa-section .wj-qa-answer-content {
    flex: 1;
    min-width: 0;
}

.wj-top-qa-section .wj-qa-answerer-name {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    line-height: 1.2;
}

.wj-top-qa-section .wj-qa-answer-date {
    font-size: 11px;
    color: #999;
    line-height: 1.2;
}

.wj-top-qa-section .wj-qa-answer-text {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.wj-top-qa-section .wj-qa-all-link-wrapper {
    text-align: right;
}

.wj-top-qa-section .wj-qa-all-link {
    font-size: 14px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
}

.wj-top-qa-section .wj-qa-all-link:hover {
    color: #333;
    text-decoration: underline;
}

/* ===== TOP QA SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
    .wj-top-qa-section {
        padding: 40px 0;
    }

    .wj-top-qa-section .wj-qa-content {
        padding: 0 15px;
    }

    .wj-top-qa-section .wj-qa-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .wj-top-qa-section .wj-qa-answer {
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }

    .wj-top-qa-section .wj-qa-author-img {
        width: 35px;
        height: 35px;
    }

    .wj-sidebar-qa-author-img {
        width: 35px;
        height: 35px;
    }

    .wj-sidebar-qa-section {
        padding: 20px 0;
    }

    .wj-sidebar-qa-title {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .wj-sidebar-qa-item {
        padding: 12px;
    }

    .wj-sidebar-qa-question-text,
    .wj-sidebar-qa-answer-text {
        font-size: 12px;
    }

    .wj-sidebar-qa-answer {
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }

    .wj-top-qa-section .wj-qa-question-text,
    .wj-top-qa-section .wj-qa-answer-text {
        font-size: 13px;
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    body {
        padding-top: 20px;
    }
    
    .wj-header {
        min-height: auto;
    }
    
    .wj-header .wj-header-inner {
        flex-direction: column;
        align-items: center;
        padding: 15px;
        gap: 12px;
    }
    
    .wj-header .wj-header-left {
        margin-right: 0;
        text-align: center;
    }
    
    .wj-header .wj-header-desc {
        font-size: 10px;
        margin-bottom: 3px;
    }
    
    .wj-header .wj-header-logo img {
        height: 28px;
    }
    
    .wj-header .wj-header-powered {
        font-size: 11px;
    }
    
    .wj-header .wj-header-right {
        flex-direction: column;
        gap: 8px;
        justify-content: center;
        width: 100%;
    }
    
    .wj-header .wj-header-btn {
        padding: 8px 16px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
    
    .wj-header .wj-search-box {
        width: 100%;
        display: none;
    }
    
    .wj-2column-layout,
    .wj-category-2column-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .wj-main-content-column .wj-category-block-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 960px) {
    .wj-hero-section-in-main .wj-hero-featured-title {
        font-size: 18px;
    }
    
    .wj-hero-section-in-main .wj-post-meta {
        font-size: 11px;
    }
}

/* Author image styles - Hero section */
.wj-hero-section-in-main .wj-author-img,
.wj-sidebar-widget .wj-author-img {
    width: 50px;
    height: 50px;
    min-height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Author image styles - Content section (sub-articles) */
.wj-main-content-column .wj-top-sub-article-meta .wj-author-img {
    width: 30px;
    height: 30px;
    min-height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* Author image styles - Content section (featured) */
.wj-top-category-featured-meta .wj-author-img,
.wj-top-category-featured-meta .wj-author-info-pc .wj-author-img {
    width: 30px;
    height: 30px;
    min-height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

/* Thumbnail image styles - Sub articles - PC版 */
.wj-top-sub-article-thumb-img {
    width: 130px;
    height: auto;
    object-fit: cover;
}

/* YouTube thumbnails need aspect-ratio */
.wj-top-sub-article-thumb-img.wj-youtube-thumbnail {
    aspect-ratio: 16 / 9;
}

/* Thumbnail image styles - Featured articles */
.wj-hero-thumbnail-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 6px solid #c3c3c3;
}

/* YouTube thumbnails need aspect-ratio */
.wj-hero-thumbnail-img.wj-youtube-thumbnail {
    aspect-ratio: 16 / 9;
}

/* Popular articles thumbnail styles */
.wj-sidebar-popular-thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Popular articles author image styles */
.wj-sidebar-popular-author-img {
    width: 20px;
    height: 20px;
    min-height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

/* Author section avatar image styles */
.wj-sidebar-author-avatar-img {
    width: 50px;
    height: 50px;
    min-height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* QA section author image styles for sidebar */
.wj-sidebar-qa-author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
}

/* Detail Navigation Section */
.wj-detail-nav-section {
    padding: 5px 0;
    margin-bottom: 40px;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.wj-detail-nav {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    min-height: 50px;
}

/* 記事一覧ボタンを絶対左端に配置 */
.wj-detail-nav > .wj-detail-nav-item:first-child {
    position: absolute;
    left: 0;
    border-radius: 6px;
}

/* 残りの3つのボタンをまとめるコンテナ - 1000px幅の中央に配置 */
.wj-detail-nav-group {
    display: flex;
    gap: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* グループ内のボタンのボーダー調整 */
.wj-detail-nav-group .wj-detail-nav-item {
    border-right: none;
}

.wj-detail-nav-group .wj-detail-nav-item:first-child {
    border-radius: 6px 0 0 6px;
}

.wj-detail-nav-group .wj-detail-nav-item:last-child {
    border-radius: 0 6px 6px 0;
}

.wj-detail-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 140px;
    text-align: center;
    position: relative;
}

.wj-detail-nav-item:first-child {
    border-radius: 6px 0 0 6px;
}

.wj-detail-nav-item:last-child {
    border-radius: 0 6px 6px 0;
}

.wj-detail-nav-item:hover {
    background: #f0f0f0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wj-detail-nav-icon {
    font-size: 12px;
    color: #666;
}

/* 記事一覧の◀アイコン（nav直下の最初の子要素） */
.wj-detail-nav > .wj-detail-nav-item:first-child .wj-detail-nav-icon {
    color: #f56956;
}

/* 解説動画・目次・お問い合わせの▼アイコン（nav-group内の要素） */
.wj-detail-nav-group .wj-detail-nav-item .wj-detail-nav-icon {
    color: #707bc2;
}


.wj-detail-nav-text {
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .wj-detail-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 5px;
        padding: 0 10px;
        position: relative;
        min-height: auto;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .wj-detail-nav > .wj-detail-nav-item:first-child {
        position: static;
        left: auto;
        flex-shrink: 0;
        margin-bottom: 0;
        margin-right: 5px;
    }

    .wj-detail-nav-group {
        flex-wrap: nowrap;
        gap: 0;
        position: static;
        left: auto;
        transform: none;
        display: flex;
        flex-shrink: 0;
    }

    .wj-detail-nav-item {
        flex: 0 0 auto;
        min-width: auto;
        padding: 10px 15px;
        font-size: 13px;
        border-radius: 6px !important;
    }

    .wj-detail-nav-group .wj-detail-nav-item {
        border-right: none;
        border-radius: 0 !important;
    }

    .wj-detail-nav-group .wj-detail-nav-item:first-child {
        border-radius: 6px 0 0 6px !important;
    }

    .wj-detail-nav-group .wj-detail-nav-item:last-child {
        border-radius: 0 6px 6px 0 !important;
    }

    .wj-detail-nav-section {
        padding: 10px 0;
        margin-bottom: 0px;
    }

    .wj-detail-nav-text {
        font-size: 13px;
    }
}

/* Detail Article Content */
.wj-detail-article-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    overflow-x: hidden;
    word-wrap: break-word;
}

.wj-detail-article-content h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 40px 0 20px 0;
    padding: 10px 20px 10px 10px;
    background: #f7f5f0;
    border-left: none;
    border-bottom: none;
    position: relative;
    margin-left: 30px
}

.wj-detail-article-content h2::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    width: 20px;
    background: #2b3969;
}

.wj-detail-article-content h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 40px 0 16px 0;
    border-bottom: 1px solid #dbdbdb;
}

.wj-detail-article-content p {
    margin-bottom: 16px;
}

/* 記事内の通常のリスト */
.wj-detail-article-content ol,
.wj-detail-article-content ul {
    padding-left: 20px;
}

.wj-detail-article-content li {
    margin-bottom: 8px;
    line-height: 1.6;
    padding-top: 10px;
}

/* 記事内のテーブル */
.wj-detail-article-content table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 16px;
}

.wj-detail-article-content table tr th,
.wj-detail-article-content table tr td {
    border: 1px solid #cfcfcf;
    padding: 5px;
    line-height: 1.6;
    vertical-align: middle;
}

.wj-detail-article-content table tr td {
    background: #fff;
}

.wj-detail-article-content table tr th {
    background: #f5f5f5;
    font-weight: bold;
}

/* 目次内のリストスタイルを上書き */
.wj-detail-article-content #toc_container ol,
.wj-detail-article-content #toc_container ul {

}

.wj-detail-article-content #toc_container li {
    margin-bottom: 0;
    line-height: 1.4;
}

#toc_container.no_bullets li, #toc_container.no_bullets ul, #toc_container.no_bullets ul li, .toc_widget_list.no_bullets, .toc_widget_list.no_bullets li {
    list-style-type: none;
    list-style: unset;
}

/* 記事内の画像を制約 */
.wj-detail-article-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

/* WordPress画像の配置クラスに対する制約 */
.wj-detail-article-content .aligncenter,
.wj-detail-article-content .alignleft,
.wj-detail-article-content .alignright,
.wj-detail-article-content .alignnone {
    max-width: 100% !important;
    height: auto !important;
}

.wj-detail-article-content .aligncenter img,
.wj-detail-article-content .alignleft img,
.wj-detail-article-content .alignright img,
.wj-detail-article-content .alignnone img {
    max-width: 100% !important;
    height: auto !important;
}

/* WordPress画像のサイズクラスに対する制約 */
.wj-detail-article-content .size-large,
.wj-detail-article-content .size-medium,
.wj-detail-article-content .size-full,
.wj-detail-article-content .size-thumbnail {
    max-width: 100% !important;
    height: auto !important;
}

/* 記事冒頭のアイキャッチ画像（attachment）を非表示 */
.wj-detail-article-content > p:first-child > a[rel*="attachment"] {
    display: none;
}

.wj-detail-article-content > p:first-child:has(a[rel*="attachment"]) {
    display: none;
}

/* 記事最初のpタグ内の画像がヒーロー画像と重複する場合を非表示 */
.wj-detail-article-content > p:first-child > img.wp-image-18756,
.wj-detail-article-content > p:first-child:has(img.wp-image-18756) {
    display: none !important;
}

/* 記事冒頭の重複アイキャッチ画像を一般的に非表示 */
.wj-detail-article-content > p:first-child > img.aligncenter.size-large {
    display: none !important;
}

.wj-detail-article-content > p:first-child:has(img.aligncenter.size-large) {
    display: none !important;
}

.wj-detail-article-content iframe {
    max-width: 100%;
    display: block;
    margin: 20px auto 0 auto;
}

/* Table of Contents Plugin Styles */
.wj-detail-article-content #toc_container {
    background: #f7f5f0;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0;
    width: 100%;
    box-sizing: border-box;
}

/* TOC（目次）スタイル - 詳細度を上げて確実に適用 */
.wj-detail-article-content #toc_container .toc_title,
#toc_container .toc_title {
    font-size: 22px;
    color: #2e2e2e;
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #d9d9d9;
    width: 25%;
    margin: 0 auto;
}

.wj-detail-article-content #toc_container .toc_list,
#toc_container .toc_list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wj-detail-article-content #toc_container .toc_list li,
#toc_container .toc_list li {
    padding: 0px 0 10px 0;
}

.wj-detail-article-content #toc_container .toc_list a,
#toc_container .toc_list a {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: baseline;
}

.wj-detail-article-content #toc_container .toc_list a:hover,
#toc_container .toc_list a:hover {
    color: #2b3969;
}

.wj-detail-article-content #toc_container .toc_number,
#toc_container .toc_number {
    font-weight: bold;
    color: #2b3969;
    margin-right: 10px;
    min-width: 25px;
}

.wj-detail-article-content #toc_container .toc_list ul,
#toc_container .toc_list ul {
    list-style: "-  ";
    padding-left: 35px;
    margin-top: 8px;
}

.wj-detail-article-content #toc_container .toc_list ul li,
#toc_container .toc_list ul li {
    padding: 6px 0;
    font-size: 14px;
}

/* ===== SNS SHARE BUTTONS ===== */
.wj-detail-article-content .social-btn {
    margin: 0 0 30px 0;
    padding: 10px 0 30px 0;
    border-bottom: 1px solid #ddd;
}

.wj-detail-article-content .social-btn ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.wj-detail-article-content .social-btn li {
    margin: 0;
    padding: 0;
}

.wj-detail-article-content .social-btn a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 40px;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wj-detail-article-content .social-btn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 各SNSの色設定 */
.wj-detail-article-content .social-btn .twitter a {
    background: #1DA1F2;
}

.wj-detail-article-content .social-btn .twitter a:hover {
    background: #1a91da;
}

.wj-detail-article-content .social-btn .facebook a {
    background: #1877F2;
}

.wj-detail-article-content .social-btn .facebook a:hover {
    background: #166fe5;
}

.wj-detail-article-content .social-btn .line a {
    background: #00C300;
}

.wj-detail-article-content .social-btn .line a:hover {
    background: #00b300;
}

.wj-detail-article-content .social-btn .hatena a {
    background: #00A4DE;
}

.wj-detail-article-content .social-btn .hatena a:hover {
    background: #0094c8;
}

.wj-detail-article-content .social-btn .pocket a {
    background: #EF3F56;
}

.wj-detail-article-content .social-btn .pocket a:hover {
    background: #e63946;
}

/* スマートフォン対応 */
@media (max-width: 767px) {
    .wj-detail-article-content .social-btn {
        margin: 10px 0 20px;
        padding: 15px 0 15px 0;
        border-bottom: 1px solid #ddd;
    }

    .wj-detail-article-content .social-btn ul {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 4px;
        width: 100%;
    }

    .wj-detail-article-content .social-btn li {
        flex: 1;
        min-width: 0;
    }

    .wj-detail-article-content .social-btn a {
        width: 100%;
        height: 36px;
        font-size: 11px;
        padding: 0 4px;
    }
}

/* ===== DETAIL YOUTUBE SECTION ===== */
.wj-detail-youtube-section {
    width: 100%;
    margin: 40px 0;
}

.wj-detail-youtube-content {
    display: flex;
    align-items: center;
    background-color: #f7f5f0;
    border-radius: 16px;
    padding: 10px;
    padding-left: 0;
    width: 100%;
    font-family: sans-serif;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: visible;
    gap: 5px;
}

.wj-detail-youtube-content .wj-youtube-portrait {
    flex-shrink: 0;
    align-self: stretch;
    position: relative;
    margin-top: -28px;
    margin-bottom: -10px;
    margin-left: -1px;
}

.wj-detail-youtube-content .wj-youtube-portrait img {
    display: block;
    height: 240px;
    width: auto;
    margin-bottom: 0;
    border-radius: 16px 0 0 32px;
    position: relative;
    object-fit: cover;
    object-position: 100% center;
    max-width: 104px;
}

.wj-detail-youtube-content .wj-youtube-info {
    flex-grow: 1;
    padding: 0px;
    line-height: 14px;
}

.wj-detail-youtube-content .wj-youtube-logo {
    height: 20px;
    display: block;
}

.wj-detail-youtube-content .wj-youtube-academy-logo-link {
    display: inline-block;
    transition: opacity 0.3s ease;
}

.wj-detail-youtube-content .wj-youtube-academy-logo-link:hover {
    opacity: 0.8;
}

.wj-detail-youtube-content .wj-youtube-academy-logo {
    height: 100px;
    margin-bottom: 0px;
    display: block;
    position: relative;
    left: -10px;
}

.wj-detail-youtube-content .wj-youtube-academy-title {
    font-size: 18px;
    font-weight: bold;
    color: #0d3257;
    margin: 0 auto 0 0;
    margin-bottom: 8px;
}

.wj-detail-youtube-content .wj-youtube-channel-handle {
    font-size: 10px;
    color: #684c39;
    margin-bottom: 2px;
}

.wj-detail-youtube-content .wj-youtube-channel-stats {
    display: flex;
    gap: 13px;
    font-size: 10px;
    color: #684c39;
    white-space: nowrap;
}

.wj-detail-youtube-content .wj-youtube-channel-link {
    font-size: 10px;
    color: #684c39;
    text-decoration: underline;
    word-break: break-all;
}

.wj-detail-youtube-content .wj-youtube-channel-link:hover {
    text-decoration: underline;
}

/* モバイル専用の要素（PC版では非表示） */
.wj-detail-youtube-content .wj-youtube-channel-info-mobile {
    display: none;
}

.wj-youtube-top-row {
    display: none; /* PC版では使用しない、元の要素を直接使用 */
}

/* PC版では元の構造を維持 */

.wj-detail-youtube-content .wj-youtube-videos {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 300px;
}

.wj-detail-youtube-content .wj-youtube-view-all-link {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
    text-decoration: none;
}

.wj-detail-youtube-content .wj-youtube-view-all-link:hover {
    color: #000;
}

.wj-detail-youtube-content .wj-youtube-video-list {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 8px;
}

.wj-detail-youtube-content .wj-youtube-video-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 140px;
}

.wj-detail-youtube-content .wj-youtube-video-link {
    display: block;
    position: relative;
    width: 140px;
    height: auto;
    border-radius: 4px;
    overflow: hidden;
    transition: opacity 0.3s;
}

.wj-detail-youtube-content .wj-youtube-video-link:hover {
    opacity: 0.8;
}

.wj-detail-youtube-content .wj-youtube-video-thumbnail {
    width: 140px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wj-detail-youtube-content .wj-youtube-video-placeholder {
    width: 140px;
    aspect-ratio: 16 / 9;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.wj-detail-youtube-content .wj-youtube-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s;
}

.wj-detail-youtube-content .wj-youtube-video-link:hover .wj-youtube-video-overlay {
    opacity: 1;
}

.wj-detail-youtube-content .wj-youtube-play-button {
    width: 30px;
    height: 30px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.wj-detail-youtube-content .wj-youtube-video-info {
    width: 140px;
}

.wj-detail-youtube-content .wj-youtube-video-title {
    font-size: 10px;
    color: #333;
    line-height: 1.3;
    margin: 0 0 4px 0;
    font-weight: 500;
}

.wj-detail-youtube-content .wj-youtube-video-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #666;
    width: 140px;
}

.wj-detail-youtube-content .wj-youtube-view-count {
    font-weight: 500;
}

/* DETAIL YOUTUBE SECTION RESPONSIVE */
@media (max-width: 1024px) {
    .wj-detail-youtube-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .wj-detail-youtube-content .wj-youtube-portrait {
        align-self: center;
        margin-top: 0;
        margin-bottom: 16px;
        margin-left: 0;
    }

    .wj-detail-youtube-content .wj-youtube-portrait img {
        height: 150px;
        border-radius: 8px;
        margin-bottom: 0;
    }

    .wj-detail-youtube-content .wj-youtube-info {
        padding: 0 16px 16px;
    }

    .wj-detail-youtube-content .wj-youtube-videos {
        align-items: center;
    }

    .wj-detail-youtube-content .wj-youtube-video-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .wj-detail-youtube-section {
        margin: 30px 0;
    }

    .wj-detail-youtube-content {
        display: flex;
        flex-direction: column;
        padding: 15px;
        gap: 5px;
    }

    /* PC版要素をモバイルで非表示 */
    .wj-detail-youtube-content > .wj-youtube-portrait,
    .wj-detail-youtube-content > .wj-youtube-info,
    .wj-detail-youtube-content > .wj-youtube-channel-info-mobile {
        display: none;
    }

    /* 上段：3カラム横並びのコンテナ（モバイル版で表示） */
    .wj-youtube-top-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 0px;
        align-items: flex-start;
    }

    /* 上段1列目：世古口さんの画像 */
    .wj-youtube-top-row .wj-youtube-portrait {
        flex: 0 0 13%;
        width: 13%;
        display: flex;
        justify-content: right;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .wj-youtube-top-row .wj-youtube-portrait img {
        height: 110px;
        width: auto;
        max-width: 110px;
        border-radius: 8px;
        object-fit: cover;
        object-position: center;
        margin-top: -32px;
    }

    /* 上段2列目：YouTubeロゴ + 資産運用アカデミーロゴ */
    .wj-youtube-top-row .wj-youtube-info {
        flex: 0 0 24%;
        width: 24%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: baseline;
        padding: 0;
        margin: 0;
    }

    /* PC版のチャンネル情報をモバイルで非表示 */
    .wj-youtube-top-row .wj-youtube-info .wj-youtube-channel-handle,
    .wj-youtube-top-row .wj-youtube-info .wj-youtube-channel-stats,
    .wj-youtube-top-row .wj-youtube-info .wj-youtube-channel-link {
        display: none;
    }

    .wj-youtube-top-row .wj-youtube-logo {
        height: 14px;
        margin-bottom: 3px;
    }

    .wj-youtube-top-row .wj-youtube-academy-logo {
        height: 45px;
        left: 0;
        margin: 0;
    }

    /* 上段3列目：モバイル用チャンネル情報 */
    .wj-youtube-top-row .wj-youtube-channel-info-mobile {
        flex: 0 0 67%;
        width: 67%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin: 0;
        padding: 0;
    }

    .wj-youtube-top-row .wj-youtube-channel-info-mobile .wj-youtube-academy-title {
        font-size: 12px;
        font-weight: bold;
        color: #0d3257;
        margin: 0 0 5px 0;
        display: block;
    }

    .wj-youtube-top-row .wj-youtube-channel-info-mobile .wj-youtube-channel-handle {
        font-size: 10px;
        margin-bottom: 3px;
        color: #684c39;
    }

    .wj-youtube-top-row .wj-youtube-channel-info-mobile .wj-youtube-channel-stats {
        font-size: 9px;
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
        display: flex;
        color: #684c39;
    }

    .wj-youtube-top-row .wj-youtube-channel-info-mobile .wj-youtube-channel-link {
        font-size: 9px;
        word-break: break-all;
        line-height: 1.3;
        color: #684c39;
        text-decoration: underline;
    }

    /* 下段：動画リスト */
    .wj-detail-youtube-content .wj-youtube-videos {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .wj-detail-youtube-content .wj-youtube-videos .wj-youtube-academy-title {
        display: none; /* スマホでは非表示（チャンネル情報エリアで表示済み） */
    }

    .wj-detail-youtube-content .wj-youtube-videos .wj-youtube-view-all-link {
        margin: 0 0 0 auto;
        padding-bottom: 10px;
    }

    /* 下段：動画サムネイル */
    .wj-detail-youtube-content .wj-youtube-video-list {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        margin: 0;
    }

    .wj-detail-youtube-content .wj-youtube-video-item {
        width: 140px;
        max-width: 45%;
    }

    .wj-detail-youtube-content .wj-youtube-video-link {
        width: 140px;
        max-width: 100%;
    }

    .wj-detail-youtube-content .wj-youtube-video-thumbnail {
        width: 140px;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ===== DETAIL AUTHOR SECTION ===== */
.wj-detail-author-section {
    background-color: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 6px;
    padding: 25px 30px;
    margin: 40px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.wj-detail-author-title {
    text-align: center;
    font-size: 20px;
    font-weight: normal;
    color: #333;
    margin: 0 auto 25px auto;
    width: 60%;
    border-bottom: 1px solid #aaa;
    padding-bottom: 10px;
}

.wj-detail-author-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.wj-detail-author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.wj-detail-author-info {
    display: flex;
    flex-direction: column;
}

.wj-detail-author-name {
    font-size: 22px;
    font-weight: bold;
    line-height: 1.3;
}

.wj-detail-author-position {
    font-size: 14px;
    color: #555;
    margin: 4px 0 8px;
}

.wj-detail-author-links {
    display: flex;
    gap: 24px;
    white-space: nowrap;
}

.wj-detail-author-links a {
    font-size: 14px;
    font-weight: bold;
    color: #005bab;
    text-decoration: none;
}

.wj-detail-author-links a:hover {
    text-decoration: underline;
}

.wj-detail-author-bio {
    font-size: 14px;
    line-height: 1.8;
    color: #444;
}

.wj-detail-author-bio p {
    margin: 0 0 16px;
}

.wj-detail-author-bio p:last-child {
    margin-bottom: 0;
}

.wj-detail-author-media {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 12px 15px;
    font-size: 13px;
    color: #555;
    margin: 20px 0;
}

.wj-detail-author-consult-button {
    background-color: #2c3677;
    color: #fff !important;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    padding: 14px 40px;
    border-radius: 5px;
    text-decoration: none;
    transition: opacity 0.2s ease-in-out;
    margin: 20px auto 0;
    display: block;
    width: fit-content;
    max-width: 300px;
}

.wj-detail-author-consult-button:hover {
    opacity: 0.85;
}

/* ===== DETAIL DISCLAIMER SECTION ===== */
.wj-detail-disclaimer-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px 25px;
    margin: 40px 0;
    font-size: 12px;
    color: #495057;
    line-height: 1.7;
}

.wj-detail-disclaimer-title {
    font-size: 14px;
    font-weight: bold;
    color: #343a40;
    margin: 0 0 15px 0;
}

.wj-detail-disclaimer-list {
    padding-left: 20px;
    margin: 0 0 20px 0;
    list-style-type: disc;
}

.wj-detail-disclaimer-list li {
    margin-bottom: 8px;
    font-size: 11px;
}

.wj-detail-disclaimer-company-info {
    border-top: 1px solid #dee2e6;
    padding-top: 20px;
}

.wj-detail-disclaimer-company-block {
    margin-bottom: 20px;
}

.wj-detail-disclaimer-company-block:last-child {
    margin-bottom: 0;
}

.wj-detail-disclaimer-subtitle {
    font-weight: bold;
    color: #212529;
    margin: 0 0 8px 0;
    font-size: 12px;
}

.wj-detail-disclaimer-sub-block {
    margin-bottom: 15px;
    padding-left: 10px;
}

.wj-detail-disclaimer-sub-block:last-child {
    margin-bottom: 0;
}

.wj-detail-disclaimer-section p {
    margin: 0 0 3px 0;
    padding: 0;
    font-size: 11px;
}

.wj-detail-disclaimer-section strong {
    font-weight: 600;
}

/* Sidebar QA section styles */
.wj-sidebar-qa-section {
    padding: 30px 0;
    border-top: 1px solid #e9ecef;
}

.wj-sidebar-qa-content {
    width: 100%;
}

.wj-sidebar-qa-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: rgb(43, 57, 105);
    position: relative;
    margin: 0px 0px 50px;
}

.wj-sidebar-qa-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background-color: #2b3969;
}

.wj-sidebar-qa-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wj-sidebar-qa-item {
    box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 8px;
    border-radius: 8px;
    padding: 20px;
}

.wj-sidebar-qa-question-text {
    font-size: 14px;
    color: rgb(51, 51, 51);
    line-height: 1.6;
    font-weight: 500;
    margin: 0px 0px 15px;
}

.wj-sidebar-qa-answer {
    align-items: center;
    padding-left: 10px;
    border-left: 10px solid rgb(195, 186, 181);
}

.wj-sidebar-qa-answerer-info {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
}

.wj-sidebar-qa-answerer-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
}

.wj-sidebar-qa-answer-content {
    flex: 1;
    min-width: 0;
}

.wj-sidebar-qa-answerer-name {
    font-size: 12px;
    color: rgb(102, 102, 102);
    font-weight: 500;
    line-height: 1.2;
}

.wj-sidebar-qa-answer-date {
    font-size: 11px;
    color: rgb(153, 153, 153);
    line-height: 1.2;
}

.wj-sidebar-qa-answer-text {
    font-size: 14px;
    color: rgb(51, 51, 51);
    line-height: 1.6;
    min-width: 0px;
    display: flex;
    align-items: center;
    margin: 0px;
    flex: 1 1 0%;
}

.wj-sidebar-qa-all-link-wrapper {
    text-align: right;
    margin-top: 15px;
}

.wj-sidebar-qa-all-link {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.wj-sidebar-qa-all-link:hover {
    color: #333;
    border-bottom: 1px solid #333;
}

/* ===== FOOTER STYLES ===== */
/* Override all link underlines with higher specificity */
body a,
body a:link,
body a:visited,
body a:hover,
body a:active {
    text-decoration: none !important;
}

.common-navigation {
    display: flex;
}

.footer-sns {
    display: flex;
}

.footer-sns img {
    padding-right: 15px;
    width: 35px;
    height: auto;
}

/* Footer Navigation */
#footer-navigation ul {
    list-style-type: none;
}

#footer-sub-navigation ul {
    list-style-type: none;
}

/* ===== DETAIL PAGE STYLES ===== */

/* Detail Hero Section - 基本は wj-hero-section-in-main と同じスタイルを継承 */
.wj-detail-hero-section {
    margin-bottom: 50px;
    padding-bottom: 15px;
}

.wj-detail-hero-section .wj-detail-hero-left {
    flex: 2;
}

.wj-detail-hero-section .wj-detail-hero-featured-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}


.wj-detail-hero-section .wj-detail-hero-featured-img-wrapper {
    position: relative;
    overflow: hidden;
    margin-bottom: 5px;
    border: 8px solid #2c3677;
}

.wj-detail-hero-section .wj-detail-hero-featured-img-wrapper .wj-placeholder-img {
    aspect-ratio: 16 / 9;
}

.wj-detail-hero-section .wj-detail-hero-featured-img {
    width: 100%;
    height: auto;
    display: block;
}

.wj-detail-hero-section .wj-detail-hero-bottom {
    padding: 0px;
}

.wj-detail-hero-section .wj-detail-hero-featured-content {
    padding: 15px 0;
}

.wj-detail-hero-section .wj-detail-hero-featured-title {
    font-size: 25px;
    font-weight: bold;
    line-height: 1.2;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Detail専用 - 日付とタイトルの行 */
.wj-detail-hero-date-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.wj-detail-hero-date-column {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.wj-detail-date-year {
    font-size: 18px;
    color: #666;
    line-height: 1.2;
}

.wj-detail-date-md {
    font-size: 28px;
    color: #727272;
    line-height: 0.8;
    margin-top: 2px;
}

.wj-detail-hero-title-column {
    flex: 1;
    display: flex;
    align-items: center;
    border-left: 1px solid #aaa;
    padding-left: 8px;
}

.wj-detail-hero-featured-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Detail専用 - タグの行 */
.wj-detail-hero-tags-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-bottom: 15px;
}

.wj-detail-hero-modified-date {
    font-size: 12px;
    color: #666;
    font-weight: 400;
}

.wj-detail-hero-modified-date-spacer {
    /* 最終更新日がない場合のスペーサー */
    width: 1px;
}

.wj-detail-hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Detail専用 - ヒーローセクション下部（著者情報部分） */
.wj-detail-hero-section .wj-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 15px;
    font-size: 14px;
    color: #555;
}

.wj-detail-hero-section .wj-meta-left {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 15px;
}

.wj-detail-hero-section .wj-author-avatar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.wj-detail-hero-section .wj-author-avatar-wrapper .wj-placeholder-img,
.wj-detail-hero-section .wj-author-avatar {
    width: 70px;
    height: 70px;
    min-height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.wj-detail-hero-section .wj-author-avatar-wrapper .wj-placeholder-img::after {
    content: "●";
    font-size: 20px;
}

.wj-detail-hero-section .wj-author-name {
    font-size: 25px;
    white-space: nowrap;
}

.wj-detail-hero-section .wj-post-data {
    font-size: 14px;
    white-space: nowrap;
}

.wj-detail-hero-section .wj-post-data .wj-meta-row {
    text-align: right;
}

.wj-detail-hero-section .wj-video-tag {
    font-size: 16px;
}

.wj-detail-hero-section .wj-reading-time {
    font-size: 16px;
    font-weight: normal;
}

/* Detail専用 - 日付は上部に移動したので非表示 */
.wj-detail-hero-section .wj-post-date {
    display: none;
}

/* Detail専用 - 著者アクションのスタイル */
.wj-detail-author-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.wj-detail-author-profile-link,
.wj-detail-author-articles-link {
    font-size: 14px;
}

.wj-detail-author-profile-link:hover,
.wj-detail-author-articles-link:hover {
    opacity: 0.7;
}

/* Detail Layout */
.wj-detail-layout {
    display: flex;
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0px;
}

.wj-detail-main {
    flex: 1;
    max-width: 670px;
}

/* コンポーネント化したサイドバー用のセレクター */
.wj-detail-layout .wj-category-sidebar-column {
    width: 300px;
    flex-shrink: 0;
}

/* Article Header - 詳細ページでは重複するため非表示 */
.wj-detail-layout .wj-article-header {
    display: none; /* 詳細ページのヒーローセクションで既に表示済み */
}

/* wj-detail-article-headerは削除されました（不要なスペーサーのため） */

.wj-detail-article-title {
    font-size: 28px;
    font-weight: bold;
    line-height: 1.4;
    color: #333;
    margin-bottom: 24px;
}

.wj-detail-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wj-detail-article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.wj-detail-article-author .wj-author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Article Header専用のスタイル（削除済み） */

.wj-detail-article-author .wj-author-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

/* wj-detail-article-headerのスタイルは削除されました */

/* Social Share */
.wj-social-share {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wj-like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wj-like-btn:hover {
    background: #e9ecef;
}

.wj-like-count {
    background: #dc3545;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 18px;
    text-align: center;
}

.wj-share-buttons {
    display: flex;
    gap: 8px;
}

.wj-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.wj-share-btn:hover {
    opacity: 0.8;
}

.wj-share-x {
    background: #000;
}

.wj-share-facebook {
    background: #1877f2;
}

.wj-share-line {
    background: #00b900;
}

.wj-share-hatena {
    background: #008fde;
}

/* Table of Contents */
.wj-toc {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 40px;
}

.wj-toc-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 16px;
}

.wj-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wj-toc-list li {
    margin-bottom: 8px;
    padding-left: 0;
}

.wj-toc-list a {
    color: #2b3969;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.wj-toc-list a:hover {
    color: #1a2647;
    text-decoration: underline;
}

/* Article Content */
.wj-article-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.wj-article-content h2 {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2b3969;
}

.wj-article-content h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin: 30px 0 16px 0;
}

.wj-article-content p {
    margin-bottom: 16px;
}

.wj-article-content ol,
.wj-article-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.wj-article-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Performance Table */
.wj-performance-table {
    margin: 30px 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
}

.wj-performance-table h3 {
    font-size: 18px;
    margin-bottom: 16px !important;
    border: none !important;
    padding: 0 !important;
}

.wj-performance-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.wj-performance-table th,
.wj-performance-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.wj-performance-table th {
    background: #2b3969;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.wj-performance-table td {
    font-size: 14px;
}

.wj-table-note {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Highlight Box */
.wj-highlight-box {
    background: linear-gradient(135deg, #2b3969 0%, #3d4a7a 100%);
    color: white;
    border-radius: 8px;
    padding: 24px;
    margin: 30px 0;
}

.wj-highlight-box h3 {
    color: white !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    border: none !important;
    padding: 0 !important;
}

.wj-highlight-box ol {
    margin-bottom: 0;
}

.wj-highlight-box li {
    margin-bottom: 12px;
}

.wj-highlight-box strong {
    color: #ffd700;
}

/* CTA Box */
.wj-cta-box {
    background: #f8f9fa;
    border: 2px solid #2b3969;
    border-radius: 8px;
    padding: 24px;
    margin: 40px 0;
    text-align: center;
}

.wj-cta-box h3 {
    color: #2b3969 !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    border: none !important;
    padding: 0 !important;
}

.wj-cta-btn {
    display: inline-block;
    background: #2b3969;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 16px;
    transition: background 0.2s ease;
}

.wj-cta-btn:hover {
    background: #1a2647;
}

/* Detail Related Articles */
.wj-detail-related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e9ecef;
}

.wj-detail-related-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 24px;
    text-align: center;
}

.wj-detail-related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.wj-detail-related-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.wj-detail-related-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.wj-detail-related-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wj-detail-related-thumbnail img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.wj-detail-related-content {
    padding: 16px;
}

.wj-detail-related-item-title {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #333;
}

.wj-detail-related-date {
    font-size: 12px;
    color: #666;
}

/* Detail Sidebar - 詳細ページ専用（既存の.wj-sidebar-column .wj-sidebar-widgetと競合しないよう特定化） */
.wj-detail-layout .wj-sidebar-widget {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.wj-detail-layout .wj-sidebar-title {
    font-size: 16px;
    font-weight: bold;
    color: #2b3969;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2b3969;
}

/* Detail Sidebar - Seminar Card（詳細ページ専用） */
.wj-detail-layout .wj-seminar-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 12px;
}

.wj-detail-layout .wj-seminar-info h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.wj-detail-layout .wj-seminar-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.wj-detail-layout .wj-seminar-btn {
    display: inline-block;
    background: #2b3969;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s ease;
}

.wj-detail-layout .wj-seminar-btn:hover {
    background: #1a2647;
}

/* Detail Sidebar - Recommend List（詳細ページ専用） */
.wj-detail-layout .wj-recommend-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.wj-detail-layout .wj-recommend-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.wj-recommend-thumb {
    width: 60px;
    flex-shrink: 0;
}

.wj-recommend-thumb img {
    width: 100%;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
}

.wj-recommend-content {
    flex: 1;
    min-width: 0;
}

.wj-recommend-title {
    font-size: 13px;
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wj-recommend-date {
    font-size: 12px;
    color: #666;
}

.wj-recommend-link {
    text-decoration: none;
    color: inherit;
}

.wj-recommend-link:hover .wj-recommend-title {
    color: #2b3969;
}

/* Sidebar Banner */
.wj-sidebar-banner {
    display: block;
}

.wj-sidebar-banner img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wj-detail-layout {
        flex-direction: column;
        gap: 30px;
        padding: 0 16px;
    }

    .wj-detail-layout .wj-category-sidebar-column {
        width: 100%;
    }

    .wj-article-title {
        font-size: 22px;
    }

    .wj-article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .wj-social-share {
        flex-wrap: wrap;
    }

    .wj-related-grid {
        grid-template-columns: 1fr;
    }

    .wj-performance-table {
        overflow-x: auto;
    }

    .wj-performance-table table {
        min-width: 500px;
    }
}

/* ===== 記事詳細ページ 債券に関するご注意事項セクション ===== */

/* セクション全体のスタイル */
.wj-detail-bond-notes-section {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 20px 25px;
    margin: 40px 0;
    font-size: 11px;
    color: #495057;
    line-height: 1.7;
}

/* 「債券に関するご注意事項」タイトル */
.wj-detail-bond-notes-title {
    font-size: 14px;
    font-weight: bold;
    color: #343a40;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

/* 各項目 (1), (2), (3) のブロック */
.wj-detail-bond-notes-item {
    margin-bottom: 1.5em; /* 各項目の下のマージン */
}

/* 各項目のタイトル (h5) */
.wj-detail-bond-notes-item h5 {
    font-size: 12px;
    font-weight: bold;
    color: #212529;
    margin: 0 0 0.5em 0;
}

/* 各項目の説明文 (p) */
.wj-detail-bond-notes-item p {
    margin: 0 0 0.5em 0;
    padding-left: 1.5em; /* タイトルとの階層を分かりやすくするためインデント */
    text-indent: -1.5em; /* ぶら下げインデント */
}
.wj-detail-bond-notes-item p:last-child {
    margin-bottom: 0;
}

/* 最後の注意書き */
.wj-detail-bond-notes-final-note {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-size: 11px;
}

/* ===== 記事詳細ページ 関連記事セクション ===== */

.wj-detail-related-section {
    margin: 60px 0;
    padding: 40px 0;
}

/* コンテナ（幅制限） */
.wj-detail-related-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 関連記事タイトル（トップページのblock-titleスタイル） */
.wj-detail-related-title {
    font-size: 24px;
    font-weight: normal;
    color: #fff;
    margin-bottom: 20px;
    background-color: #707bc2;
    padding: 10px;
}

/* 関連記事のグリッドレイアウト */
.wj-detail-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3列表示 */
    gap: 25px;
}

/* 各記事のスタイル（トップページのfeatured-articleベース） */
.wj-detail-related-article {
    flex: 0.7;
    min-width: 0;
}

.wj-detail-related-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.wj-detail-related-link:hover {
    opacity: 0.8;
}

/* サムネイル画像 */
.wj-detail-related-thumb .wj-detail-related-placeholder {
    aspect-ratio: 16 / 9;
    margin-bottom: 10px;
    background-color: #f0f0f0;
}

.wj-detail-related-thumb .wj-detail-related-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 10px;
}

/* 記事タイトル */
.wj-detail-related-article-title {
    font-size: 15px;
    line-height: 1.3;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

/* メタ情報 */
.wj-detail-related-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 7px;
}

.wj-detail-related-author-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wj-detail-related-author-info .wj-detail-related-author-placeholder {
    width: 32px;
    height: 32px;
    min-height: 32px;
    border-radius: 50%;
    background-color: #f0f0f0;
}

.wj-detail-related-author-img {
    width: 30px;
    height: 30px;
    min-height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.wj-detail-related-author-name {
    font-size: 12px;
    white-space: nowrap;
}

.wj-detail-related-tags {
    line-height: 1.8;
}

.wj-detail-related-tags .wj-tag {
    padding: 2px 5px;
    font-size: 10px;
}

/* 最下部のメタ情報 */
.wj-detail-related-bottom-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #555;
    padding-top: 3px;
    border-top: 1px solid #ddd;
}

.wj-detail-related-video-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #e60012;
}

.wj-detail-related-youtube-icon {
    width: 16px;
    height: 16px;
}

/* レスポンシブ対応 */
@media (max-width: 960px) {
    .wj-detail-related-grid {
        grid-template-columns: repeat(2, 1fr); /* 2列表示 */
    }

    .wj-detail-related-container {
        padding: 0 16px;
    }
}

@media (max-width: 600px) {
    .wj-detail-related-grid {
        grid-template-columns: 1fr; /* 1列表示 */
    }
}

/* ===== スマートフォン用ヘッダー ===== */
/* ヘッダー全体 */
.wj-header-sp {
    background-color: #2c3677;
    color: #fff;
    font-family: sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 4px 10px;
    height: 70px;
}

/* ===== MOBILE HAMBURGER MENU OVERLAY STYLES ===== */
.wj-sp-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: block;
}

/* 3カラムレイアウトのコンテナ */
.wj-header-sp-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 100%;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden; /* 横スクロールを防ぐ */
}

/* 左カラム：ロゴ */
.wj-header-sp-left {
    display: flex;
    align-items: center;
    flex: 1 1 0; /* より柔軟に */
    min-width: 90px; /* 最小幅を削減 */
    margin-right: 4px;
}

.wj-header-sp-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #fff;
    min-width: 0; /* コンテンツが縮小可能に */
}

/* 説明文 */
.wj-header-sp-desc {
    font-size: 6px;
    line-height: 1.2;
    opacity: 0.9;
    display: block;
    margin-bottom: 2px;
    white-space: normal; /* 折り返しを許可 */
    color: #fff;
    max-width: 100%;
    word-break: keep-all;
    text-align: center;
}

.wj-header-sp-logo img {
    height: 25px;
    width: auto;
    max-width: 100%;
    display: block;
    margin: 2px 0;
}

/* Powered by */
.wj-header-sp-powered {
    font-size: 8px;
    opacity: 0.8;
    display: block;
    margin-top: 2px;
    color: #fff;

}

/* 中央カラム：ボタンエリア */
.wj-header-sp-center {
    display: flex;
    gap: 4px; /* gap を減らす */
    flex: 0 1 auto; /* より柔軟に縮小可能 */
    justify-content: center;
    margin: 0 2px;
}

/* 各ボタンの共通スタイル */
.wj-header-sp-btn {
    min-width: 55px;
    max-width: 65px;
    padding: 3px 2px 3px 7px;
    text-decoration: none;
    font-size: 8px;
    line-height: 1.2;
    border-radius: 3px;
    border: 1px solid #fff;
    color: #fff;
    background-color: #2c3677;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 38px;
    position: relative;
    font-weight: 500;
    white-space: normal;
    word-break: keep-all;
    flex: 1 1 auto;
}

/* ボタンのリンク状態を統一 */
.wj-header-sp-btn:link,
.wj-header-sp-btn:visited {
    color: #eee;
}

.wj-header-sp-btn:hover,
.wj-header-sp-btn:active {
    color: #fff;
    opacity: 0.9;
}

/* ボタン内の矢印 */
.wj-header-sp-btn::after {
    content: '▷';
    font-size: 7px;
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
}

/* 「無料個別相談」ボタン - 通常ボタンと同じスタイル */
.wj-header-sp-btn-primary {
    /* 基本スタイルは .wj-header-sp-btn から継承 */
    font-weight: bold; /* 太字のみ維持 */
}

/* 右カラム：ハンバーガーメニュー */
.wj-header-sp-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 40px; /* 幅を少し減らす */
    justify-content: center;
}

/* ハンバーガーメニューボタン */
.wj-header-sp-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 40px; /* 幅を減らす */
    height: 40px; /* 高さを減らす */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10000;
    flex-shrink: 0;
}

/* ハンバーガーメニューの三本線 */
.wj-header-sp-menu-icon {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
    position: relative;
    transition: all 0.3s ease;
}

.wj-header-sp-menu-icon::before,
.wj-header-sp-menu-icon::after {
    content: '';
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
}

.wj-header-sp-menu-icon::before {
    top: -7px;
}

.wj-header-sp-menu-icon::after {
    top: 7px;
}

/* レスポンシブ対応 - 768px以下でヘッダー切り替え */
@media (max-width: 768px) {
    /* デスクトップヘッダーを非表示 */
    .wj-header {
        display: none;
    }

    /* スマホヘッダーを表示 */
    .wj-header-sp {
        display: block;
    }

    /* コンテンツ位置調整（スマホヘッダーの高さ分） */
    .wj-page-wrapper {
        padding-top: 55px; /* スマホヘッダーの高さ(55px)に合わせて調整 */
    }

    /* 著者リンクのgap調整 */
    .wj-detail-author-links {
        gap: 10px;
    }

    /* サイドバー全体は表示するが、不要な要素のみ非表示 */
    .wj-category-sidebar-column {
        display: block;
        width: 100%;
    }

    /* サイドバー内の不要な要素をスマホで非表示 */
    .wj-category-sidebar-column .wj-sidebar-section-title,
    .wj-category-sidebar-column .wj-sidebar-authors-section,
    .wj-category-sidebar-column .wj-sidebar-seminar-section,
    .wj-category-sidebar-column .wj-sidebar-mailmagazine-section,
    .wj-category-sidebar-column .wj-sidebar-book-section,
    .wj-category-sidebar-column .wj-sidebar-qa-section {
        display: none;
    }

    /* トップページのスマホレイアウト調整 */
    .wj-sidebar-column {
        display: none;
    }

    /* トップページのスマホレイアウト：2カラムレイアウトをシングルカラムに変更 */
    .wj-2column-layout,
    .wj-category-2column-layout {
        display: flex;
        flex-direction: column;
    }

    /* サイドバーもflexboxに設定して要素を並び替え可能にする */
    .wj-category-sidebar-column {
        display: flex;
        flex-direction: column;
    }

    /* スマホでの表示順序設定：1.人気記事→2.カテゴリ→3.キーワード→4.記事一覧 */

    /* 1. 人気記事を最初に表示 */
    .wj-sidebar-popular-section {
        order: 1;
        margin-bottom: 30px;
        margin-top: 0px !important;
    }

    /* 2. カテゴリを2番目に表示 */
    .wj-category-widget {
        order: 2;
        margin-bottom: 30px;
    }

    /* 3. キーワードを3番目に表示 */
    .wj-sidebar-keywords-section {
        order: 3;
        margin-bottom: 30px;
    }

    /* 4. メインコンテンツ（記事一覧）を最後に表示 */
    .wj-main-content-column {
        order: 4;
    }

    /* ヒーローセクションのスマホ用マージン */
    .wj-top-hero-section {
        margin-bottom: 30px;
    }

    /* 人気記事のサムネイル画像サイズ調整 */
    .wj-category-sidebar-column .wj-sidebar-popular-thumbnail {
        width: 150px;
        height: 80px;
    }

    /* 人気記事のタイトルフォントサイズ調整 */
    .wj-category-sidebar-column .wj-sidebar-popular-article-title {
        font-size: 14px;
    }

    /* 記事一覧タイトルを左寄せ（優先順位を高める） */
    .wj-main-content-column .wj-top-section-title {
        text-align: left !important;
    }

    /* カテゴリ一覧のタイトル表示設定（order: 2でカテゴリの前に表示） */
    .wj-category-sidebar-column .wj-sidebar-section-title {
        order: 2;
        background-color: #f7f5f0;
        display: block !important;
    }

    /* カテゴリセクションの背景色とマージン調整 */
    .wj-category-sidebar-column .wj-category-widget {
        background-color: #f7f5f0;
        padding: 15px 15px 20px 15px;
        margin-top: 0;
        margin-bottom: 0 !important;
    }

    /* キーワードセクションの背景色とマージン調整 */
    .wj-category-sidebar-column .wj-sidebar-keywords-section {
        background-color: #f7f5f0;
        padding: 0 15px 20px 15px;
        margin-top: 0 !important;
        margin-bottom: 30px;
    }

    /* カテゴリブロックコンテンツを縦表示に変更 */
    .wj-main-content-column .wj-top-category-block-content {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    /* 注目記事をサブ記事と同じ横並び構造に変更 */
    .wj-main-content-column .wj-top-category-featured-link {
        display: flex;
        gap: 12px;
        align-items: flex-start;
    }

    .wj-main-content-column .wj-top-category-featured-thumb {
        flex-shrink: 0;
        width: 200px; /* サブ記事の2倍サイズ */
        height: auto;
    }

    .wj-main-content-column .wj-top-category-featured-thumb img,
    .wj-main-content-column .wj-top-category-featured-thumb .wj-hero-thumbnail-img {
        width: 200px;
        height: auto;
        border: 2px solid #bfbfbf;
        box-sizing: border-box;
    }

    .wj-main-content-column .wj-top-category-featured-body {
        flex: 1;
        min-width: 0;
    }

    .wj-main-content-column .wj-top-category-featured-title {
        font-size: 15px;
        margin-bottom: 8px;
    }


    /* サブ記事リンクのパディング調整 */
    .wj-main-content-column .wj-top-sub-article-link {
        padding: 5px 0;
    }

    /* サブ記事コンテンツの配置調整 */
    .wj-main-content-column .wj-top-sub-article-content {
        justify-content: flex-start;
    }

    /* カテゴリの「もっと見る」ボタン - スマホのみ表示 */
    .wj-category-more-button {
        display: block;
        width: 100%;
        padding: 15px 20px;
        margin-top: 15px;
        background-color: #2c3677;
        color: #ffffff !important;
        text-align: center;
        text-decoration: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: bold;
        transition: background-color 0.3s ease;
    }

    .wj-category-more-button:hover {
        background-color: #1e2556;
        color: #ffffff !important;
    }
}


.wj-sp-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.wj-sp-menu-content {
    position: absolute;
    top: 70px; /* スマホヘッダーの高さ分 */
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #dadfef;
    padding: 24px;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.wj-sp-menu-overlay.active .wj-sp-menu-content {
    transform: translateY(0);
}

/* 検索セクション */
.wj-sp-search-section {
    margin-bottom: 24px;
}

.wj-sp-search-form {
    width: 100%;
}

.wj-sp-search-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #2c3677;
    border-radius: 8px;
    padding: 4px;
    background: #ffffff;
}

.wj-sp-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 16px;
    font-size: 16px;
    background: transparent;
}

.wj-sp-search-input::placeholder {
    color: #6c757d;
}

.wj-sp-search-submit {
    background: #2c3677;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.wj-sp-search-submit:hover {
    background: #1e2556;
}

/* セクションタイトル */
.wj-sp-section-title {
    font-size: 18px;
    font-weight: bold;
    color: #2c3677;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #2c3677;
}

/* キーワードセクション */
.wj-sp-keywords-section {
    margin-bottom: 32px;
}

.wj-sp-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.wj-sp-keyword-tag {
    padding: 4px 10px;
    background: #dfd6d1;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #333;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
    transition: all 0.2s ease;
}

.wj-sp-keyword-tag:hover {
    background: #2c3677;
    color: #ffffff;
    border-color: #2c3677;
}

/* カテゴリセクション */
.wj-sp-categories-section {
    margin-bottom: 32px;
}

.wj-sp-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.wj-sp-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 7px 0px;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    color: #495057;
    transition: all 0.2s ease;
}

.wj-sp-category-item:hover {
    background: #f8f9ff;
}

.wj-sp-category-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px dashed #bbb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    transition: all 0.3s ease;
}

.wj-sp-category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.wj-sp-category-name {
    font-size: 13px;
    font-weight: bold;
    color: #707bc2;
    line-height: 1.3;
}

/* CTAセクション */
.wj-sp-cta-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e9ecef;
}

.wj-sp-cta-btn {
    display: block;
    text-align: center;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.2s ease;
    background: #2c3677;
    color: #ffffff !important;
}

.wj-sp-cta-btn:link,
.wj-sp-cta-btn:visited {
    color: #ffffff !important;
}

.wj-sp-cta-btn-primary {
    background: #2c3677;
    color: #ffffff !important;
}

.wj-sp-cta-btn-primary:hover {
    background: #1e2556;
    color: #ffffff !important;
}

.wj-sp-cta-btn-secondary {
    background: #2c3677;
    color: #ffffff !important;
}

.wj-sp-cta-btn-secondary:hover {
    background: #1e2556;
    color: #ffffff !important;
}

/* ハンバーガーメニューアクティブ時のアイコン変化 */
.wj-header-sp-menu-button.active .wj-header-sp-menu-icon {
    background-color: transparent;
}

.wj-header-sp-menu-button.active .wj-header-sp-menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.wj-header-sp-menu-button.active .wj-header-sp-menu-icon::after {
    transform: rotate(-45deg);
    top: 0;
}

/* ハンバーガーメニューアクティブ時もボタンサイズを維持 */
.wj-header-sp-menu-button.active {
    width: 40px;
    height: 40px;
}

/* 超小型画面対応 (iPhone SE, 古いスマートフォンなど) */
@media (max-width: 360px) {
    .wj-header-sp-inner {
        padding: 4px;
    }

    .wj-header-sp-left {
        min-width: 70px;
        margin-right: 2px;
    }

    /* ロゴエリアをさらにコンパクトに */
    .wj-header-sp-logo img {
        height: 20px;
    }

    .wj-header-sp-desc {
        font-size: 4px;
        line-height: 1;
        margin-bottom: 1px;
    }

    .wj-header-sp-powered {
        font-size: 6px;
    }

    /* ボタンをさらに小さく */
    .wj-header-sp-btn {
        min-width: 48px;
        max-width: 55px;
        font-size: 7px;
        min-height: 32px;
        padding: 2px 1px;
    }

    .wj-header-sp-btn::after {
        font-size: 5px;
        right: 2px;
    }

    /* 中央カラムの間隔を調整 */
    .wj-header-sp-center {
        gap: 2px;
        margin: 0 1px;
    }

    /* ハンバーガーメニューボタンを小さく */
    .wj-header-sp-menu-button {
        width: 36px;
        height: 36px;
        padding: 5px;
    }

    .wj-header-sp-menu-button.active {
        width: 36px;
        height: 36px;
    }

    .wj-header-sp-right {
        width: 36px;
    }

    .wj-header-sp-menu-icon,
    .wj-header-sp-menu-icon::before,
    .wj-header-sp-menu-icon::after {
        width: 16px;
    }

    .wj-header-sp-menu-icon::before {
        top: -5px;
    }

    .wj-header-sp-menu-icon::after {
        top: 5px;
    }
}

/* さらに小さい画面（320px以下）の対応 */
@media (max-width: 320px) {
    .wj-header-sp-inner {
        padding: 3px;
    }

    .wj-header-sp-left {
        min-width: 60px;
        margin-right: 1px;
    }

    /* ロゴの説明文をさらに小さく */
    .wj-header-sp-desc {
        font-size: 3px;
        line-height: 0.9;
    }

    /* ボタンを最小サイズに */
    .wj-header-sp-btn {
        min-width: 42px;
        max-width: 50px;
        font-size: 6px;
        padding: 2px 1px;
        min-height: 30px;
    }

    .wj-header-sp-btn::after {
        font-size: 4px;
        right: 1px;
    }

    /* 中央カラムの間隔を最小に */
    .wj-header-sp-center {
        gap: 1px;
        margin: 0;
    }

    /* Powered byもさらに小さく */
    .wj-header-sp-powered {
        font-size: 5px;
    }

    .wj-header-sp-logo img {
        height: 18px;
    }

    /* ハンバーガーメニューボタン */
    .wj-header-sp-menu-button {
        width: 32px;
        height: 32px;
        padding: 4px;
    }

    .wj-header-sp-menu-button.active {
        width: 32px;
        height: 32px;
    }

    .wj-header-sp-right {
        width: 32px;
    }

    .wj-header-sp-menu-icon,
    .wj-header-sp-menu-icon::before,
    .wj-header-sp-menu-icon::after {
        width: 14px;
    }

    .wj-header-sp-menu-icon::before {
        top: -4px;
    }

    .wj-header-sp-menu-icon::after {
        top: 4px;
    }
}

/* モバイル専用の要素（PC版では非表示） */
.wj-top-youtube-content .wj-youtube-channel-info-mobile {
    display: none;
}

/* TOP YOUTUBE SECTION RESPONSIVE */
@media (max-width: 1024px) {
    .wj-top-youtube-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .wj-top-youtube-content .wj-youtube-portrait {
        align-self: center;
        margin-top: 0;
        margin-bottom: 16px;
        margin-left: 0;
    }
    .wj-top-youtube-content .wj-youtube-portrait img {
        height: 150px;
        border-radius: 8px;
        margin-bottom: 0;
    }
    .wj-top-youtube-content .wj-youtube-info {
        padding: 0 16px 16px;
    }
    .wj-top-youtube-content .wj-youtube-videos {
        align-items: center;
    }
    .wj-top-youtube-content .wj-youtube-video-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
}
@media (max-width: 768px) {
    .wj-top-youtube-content {
        display: flex;
        flex-direction: column;
        padding: 15px;
        gap: 5px;
    }
    /* PC版要素をモバイルで非表示 */
    .wj-top-youtube-content > .wj-youtube-portrait,
    .wj-top-youtube-content > .wj-youtube-info,
    .wj-top-youtube-content > .wj-youtube-channel-info-mobile {
        display: none;
    }
    /* 上段1列目：世古口さんの画像 */
    .wj-youtube-top-row .wj-youtube-portrait {
        flex: 0 0 10%;
        width: 10%;
        display: flex;
        justify-content: right;
        align-items: center;
        margin: 0;
        padding: 0;
    }
    .wj-youtube-top-row .wj-youtube-portrait img {
        height: 100px;
        width: auto;
        max-width: 100px;
        border-radius: 8px;
        object-fit: cover;
        object-position: center;
        margin-top: -39px;
    }
    /* 上段2列目：YouTubeロゴとアカデミーロゴ */
    .wj-youtube-top-row .wj-youtube-info {
        flex: 0 0 25%;
        width: 25%;
        display: flex;
        flex-direction: column;
        margin: 0;
        padding: 0;
    }
    .wj-youtube-top-row .wj-youtube-info .wj-youtube-logo {
        height: 20px;
        display: block;
        margin-bottom: 0px;
        padding-left: 6px;
    }
    .wj-youtube-top-row .wj-youtube-info .wj-youtube-academy-logo-link {
        display: inline-block;
    }
    .wj-youtube-top-row .wj-youtube-info .wj-youtube-academy-logo {
        height: 50px;
        margin: 0;
        position: static;
        left: auto;
    }
    /* 上段3列目：チャンネル詳細情報 */
    .wj-youtube-top-row .wj-youtube-channel-info-mobile {
        flex: 1;
        display: flex;
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: flex-start;
        margin: 0;
        padding: 0;
    }
    .wj-youtube-top-row .wj-youtube-channel-info-mobile .wj-youtube-academy-title {
        font-size: 14px;
        font-weight: bold;
        color: #0d3257;
        margin: 0 0 6px 0;
    }
    .wj-youtube-top-row .wj-youtube-channel-info-mobile .wj-youtube-channel-handle {
        font-size: 9px;
        color: #684c39;
        margin-bottom: 0px;
    }
    .wj-youtube-top-row .wj-youtube-channel-info-mobile .wj-youtube-channel-stats {
        font-size: 9px;
        color: #684c39;
        margin-bottom: 6px;
        display: block;
        line-height: 1.5;
        text-align: left;
    }
    .wj-youtube-top-row .wj-youtube-channel-info-mobile .wj-youtube-channel-link {
        font-size: 8px;
        color: #684c39;
        text-decoration: underline;
    }
    /* 下段：動画リスト */
    .wj-top-youtube-content .wj-youtube-videos {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .wj-top-youtube-content .wj-youtube-videos .wj-youtube-academy-title {
        display: none; /* スマホでは非表示（チャンネル情報エリアで表示済み） */
    }
    .wj-top-youtube-content .wj-youtube-videos .wj-youtube-view-all-link {
        margin: 0 0 0 auto;
        padding-bottom: 10px;
    }
    /* 下段：動画サムネイル */
    .wj-top-youtube-content .wj-youtube-video-list {
        width: 100%;
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
        margin: 0;
    }
    .wj-top-youtube-content .wj-youtube-video-item {
        width: 140px;
        max-width: 45%;
    }
    .wj-top-youtube-content .wj-youtube-video-item:nth-child(n+4) {
        display: none; /* スマホでは3番目以降を非表示（2つまで表示） */
    }
    .wj-top-youtube-content .wj-youtube-video-link {
        width: 140px;
        max-width: 100%;
    }
    .wj-top-youtube-content .wj-youtube-video-thumbnail {
        width: 140px;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}


.wj-sp-authors-page {
    display: none; /* PC時は非表示 */
}

/* スマホ時のみ表示 */
@media (max-width: 768px) {
    /* Detail Hero セクションのスマホ版スタイル */
    .wj-detail-hero-section {
        margin-bottom: 10px;
    }

    .wj-detail-hero-date-title-row {
        gap: 0px;
    }

    /* 著者セクションのパディング調整 */
    .wj-detail-author-section {
        padding: 25px 15px;
    }

    /* 著者アクションを2行表示に */
    .wj-detail-author-actions {
        flex-direction: column;
        gap: 0px;
        white-space: normal;
    }

    .wj-detail-author-profile-link,
    .wj-detail-author-articles-link {
        display: block;
        width: 100%;
        text-align: left;
    }

    .wj-detail-hero-date-column {
        min-width: 55px;
        padding-right: 5px;
    }

    .wj-detail-date-year {
        font-size: 14px;
    }

    .wj-detail-date-md {
        font-size: 18px;
    }

    .wj-detail-hero-featured-title {
        font-size: 18px !important;
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }

    .wj-sp-authors-page {
        display: block;
        padding: 0px 15px 50px 15px;
        background-color: #fff;
    }


    /* 「著者」タイトル */
    .wj-sp-authors-title {
        font-size: 20px;
        font-weight: bold;
        color: #2c3677; /* サイトのテーマカラー */
        padding-bottom: 10px;
        margin-bottom: 20px;
        border-bottom: 1px solid #e0e0e0;
    }

    /* 著者リストのコンテナ */
    .wj-sp-authors-list {
        display: flex;
        flex-direction: column;
        gap: 15px; /* 各カード間の隙間 */
        margin-bottom: 25px;
    }

    /* 著者リストのラッパー（トグル用） */
    .wj-sp-authors-wrapper {
        max-height: 360px; /* 4人分の高さ */
        overflow: hidden;
        transition: max-height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .wj-sp-authors-page.expanded .wj-sp-authors-wrapper {
        max-height: 800px; /* 7人分の高さ（余裕を持たせる） */
    }

    /* 非表示著者 */
    .wj-sp-author-hidden {
        display: none;
    }

    /* トグルボタン */
    .wj-sp-authors-toggle-btn {
        display: block;
        width: 100%;
        background-color: #fff;
        color: #2c3677;
        border: 2px solid #2c3677;
        padding: 10px 20px;
        border-radius: 4px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        margin-bottom: 15px;
        text-align: center;
        transition: background-color 0.3s ease, color 0.3s ease;
    }

    .wj-sp-authors-toggle-btn:hover {
        background-color: #f0f0f0;
        color: #2c3677;
    }

    /* 各著者のカード */
    .wj-sp-author-card {
        display: flex;
        align-items: center;
        padding-bottom: 15px;
        gap: 15px;
        border-bottom: 1px solid #e0e0e0;
    }

    /* 著者情報 (画像 + 名前) */
    .wj-sp-author-info {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .wj-sp-author-img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
    }

    .wj-sp-author-name {
        font-size: 16px;
        font-weight: bold;
        color: #333;
    }

    /* リンクボタンのコンテナ */
    .wj-sp-author-links {
        display: flex;
        gap: 8px; /* ボタン間の隙間 */
    }

    /* 「プロフィール」「執筆記事を見る」ボタン */
    .wj-sp-author-btn {
        background-color: #2c3677;
        color: #fff;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: bold;
        text-align: center;
        white-space: nowrap;
        text-decoration: none;
    }

    .wj-sp-author-btn:hover {
        background-color: #1a2055;
    }

    .wj-sp-author-btn:visited {
        color: #fff;
    }

}

/* ===== SP版 QAセクション ===== */

.wj-sp-qa-wrapper {
    display: none; /* PC時は非表示 */
}

/* スマホ時のみ表示 */
@media (max-width: 768px) {
    .wj-sp-qa-wrapper {
        display: block;
    }
}

/* ===== SP版 サイドバーセクション（セミナー・メルマガ・書籍） ===== */

.wj-sp-sidebar-sections {
    display: none; /* PC時は非表示 */
}

/* スマホ時のみ表示 */
@media (max-width: 768px) {
    /* スマホ版：PC用要素を非表示、スマホ用要素を表示 */
    .wj-main-content-column .wj-top-category-featured-meta .wj-author-info-pc,
    .wj-main-content-column .wj-top-category-featured-bottom-meta .wj-meta-pc,
    .wj-main-content-column .wj-top-category-featured-bottom-meta .wj-video-tag.wj-meta-pc {
        display: none;
    }

    .wj-main-content-column .wj-top-category-featured-bottom-meta .wj-author-info-sp {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }

    .wj-main-content-column .wj-top-category-featured-bottom-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 10px;
        gap: 8px;
        border-top: none;
        border-bottom: 1px solid #e9ecef;
        margin: 0;
        padding: 0 0 5px 0;
    }

    /* 右側のメタ情報グループ */
    .wj-main-content-column .wj-top-category-featured-bottom-meta .wj-meta-right-sp {
        display: flex;
        gap: 8px;
        align-items: center;
        font-size: 10px;
    }

    .wj-main-content-column .wj-top-category-featured-bottom-meta .wj-author-img {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        object-fit: cover;
    }

    .wj-main-content-column .wj-top-category-featured-bottom-meta .wj-author-name {
        font-size: 10px;
        color: #666;
    }

    /* スマホ版：サブ記事サムネイルサイズを90pxに変更 */
    .wj-top-sub-article-thumb-img {
        width: 90px;
    }

    .wj-sp-sidebar-sections {
        display: block;
        text-align: center; /* 中央揃え */
        padding: 20px 15px;
    }

    /* 縦に並べる */
    .wj-sp-sidebar-sections > div {
        margin-bottom: 20px;
    }

    .wj-sp-sidebar-sections > div:last-child {
        margin-bottom: 0;
    }

    /* セミナータイトルを非表示 */
    .wj-sp-sidebar-sections .wj-sidebar-seminar-title {
        display: none;
    }

    /* 画像を中央揃えで表示 */
    .wj-sp-sidebar-sections img {
        max-width: 100%;
        height: auto;
        display: inline-block;
    }

    /* リンクも中央揃え */
    .wj-sp-sidebar-sections a {
        display: inline-block;
    }

    /* ===== 詳細ページのスマホ用追加スタイル ===== */
    /* スマホ画面でwj-author-nameのフォントサイズを20pxに */
    .wj-detail-hero-section .wj-author-name {
        font-size: 20px !important;
    }

    /* スマホ画面で不要なサイドバーセクションを非表示 */
    .wj-sidebar-popular-section,
    .wj-category-sidebar-column,
    .wj-sidebar-keywords-section {
        display: none !important;
    }

    /* スマホ画面でl-single-conten__gray-wrap内のYouTubeの縦横比を調整 */
    .l-single-conten__gray-wrap iframe[src*="youtube"] {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        max-width: 100% !important;
    }

    .l-single-conten__gray-wrap {
        overflow: hidden;
    }

    /* ナビゲーションセクションのレイアウト改善 */
    .wj-detail-nav {
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    /* 最初のボタン（記事を見る）を上部に横長に配置 */
    .wj-detail-nav > .wj-detail-nav-item:first-child {
        position: static !important;
        left: auto !important;
        width: 100% !important;
        border-radius: 6px !important;
        background: #f8f9fa !important;
        border: 2px solid #dee2e6 !important;
        min-height: 44px !important;
        font-size: 14px !important;
        font-weight: 500 !important;
        margin: 0 !important;
        flex-shrink: unset !important;
    }

    .wj-detail-nav > .wj-detail-nav-item:first-child:hover {
        background: #e9ecef !important;
        border-color: #707bc2 !important;
    }

    /* グループ内のボタンを横並びで配置 */
    .wj-detail-nav-group {
        position: static !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        gap: 8px !important;
        flex-shrink: unset !important;
    }

    .wj-detail-nav-group .wj-detail-nav-item {
        flex: 1 !important;
        font-size: 13px !important;
        min-height: 40px !important;
        border: 2px solid #dee2e6 !important;
        border-radius: 6px !important;
        background: #fff !important;
        transition: all 0.3s ease !important;
        padding: 10px 12px !important;
    }

    .wj-detail-nav-group .wj-detail-nav-item:hover {
        background: #f8f9fa !important;
        border-color: #707bc2 !important;
        transform: translateY(-1px) !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }
}