/* 記事全体の余白調整 */
.article-single-content {
    margin: 3rem auto;
    max-width: 720px;
    padding: 0 1rem;
    line-height: 1.8;
    font-size: 1rem;
    color: #333;
}

/* タイトル */
.article-single-content .article-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* タグエリア */
.article-single-content .article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}



/* 本文中の画像をレスポンシブに */
.article-single-content .article-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
}

/* 段落の余白 */
.article-single-content .article-body p {
    margin-bottom: 1.5rem;
}

.article-featured-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 800px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

.article-author-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.article-author-box .author-image-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.author-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #ccc;
}

.author-name {
    margin-top: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
    color: #333;
}

.author-bio {
    margin: 0;
    font-size: 0.7rem;
    color: #333;
    line-height: 1.6;
    flex: 1;
}

/* リンクの体裁と余白を整える */
.author-link {
    margin-top: 0.25rem;    /* 名前との間隔を軽く空ける */
    font-size: 0.85rem;
}

.author-link a {
    color: #333;         /* 好みで変更。WP 標準ブルー例 */
    text-decoration: underline;
}

.author-link a:hover {
    text-decoration: none;
}

.sns-share {
    margin-top: 1.5em;
}

.sns-btn {
    display: inline-block;
    margin-right: 10px;
    padding: 10px 14px;
    border-radius: 5px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.sns-btn i {
    margin-right: 6px;
}

/* 色の指定 */
.sns-btn.x-twitter {
    background-color: #000000; /* Xは黒が基調 */
}

.sns-btn.facebook {
    background-color: #3b5998;
}

.sns-btn.line {
    background-color: #06C755;
}


/* ✅ スマホ（幅767px以下）では縦並びに切り替える */
@media (max-width: 767px) {
    .article-author-box {
        flex-direction: column;
        align-items: center;
        text-align: left;
    }

    .author-bio {
        margin-top: 1rem;
    }
}

.related-posts-slider {
    margin-top: 2rem;
    margin-bottom: 3rem;
}

.related-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

/* スクロール領域 */
.related-posts-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 1rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 1rem;
    -webkit-overflow-scrolling: touch;
}

/* スクロールバー */
.related-posts-scroll::-webkit-scrollbar {
    height: 8px;
}

.related-posts-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.related-posts-scroll::-webkit-scrollbar-track {
    background: #f4f4f4;
}

/* 各カード */
.related-post-card {
    flex: 0 0 240px;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: left;
}

.related-post-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* サムネイル画像 */
.related-post-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

/* タイトル部分 */
.related-post-title {
    font-size: 1rem;
    font-weight: bold;
    padding: 0.75rem;
    color: #333;
    line-height: 1.4;
    flex-grow: 1;
}

.related-post-title:hover {
    text-decoration: underline;
}

