/* 関連記事 */
.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.related-post {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    width: 100%;
    height: 100%;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.related-post:hover {
    transform: scale(1.02);
    top: -2%;
}

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

.related-post-thumbnail {
    width: 100%;
    height: auto;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.related-post-thumbnail img {
    width: 90%;
    height: 90%;
    object-fit: cover;
}

.related-post-title {
    padding: 10px;
    font-size: 16px;
    color: #333;
    text-align: center;
}

@media (max-width: 768px) {
    .background-gray {
        padding: 20px 20px;
    }
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .related-post-title {
        padding: 0px 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        width: calc(100% - 20px);
    }
}

/*カテゴリリンクのスタイル*/
.category-links {
    margin: 20px 0;
}

.category-links h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
}

.category-button {
    display: inline-block;
    padding: 4px 20px 6px;
    margin: 0 5px 0 0;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.category-button a {
    color: #fff;
    text-decoration: none;
}

.category-button:hover {
    background-color: #005f8d;
}

.category-button a:hover {
    color: #fff;
}

.category-scroll::-webkit-scrollbar {
    display: none;
}

.category-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* SNS links */
.sns-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 20px;
}

.sns-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 3px;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
    background: #1e6aa8;
    color: #fff;
}

.sns-btn:hover {
    opacity: .92;
    filter: brightness(1.05);
}

.sns-btn i {
    font-size: 16px;
}

.sns-text {
    font-size: 14px;
    white-space: nowrap;
}

.single .sns-buttons {
    margin-top: 0;
    gap: 8px;
}

.single .sns-btn {
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line, #e5e7eb);
    background: var(--card-bg, #fff);
    color: var(--ink, #1f2933);
    box-shadow: none;
}

.single .sns-btn:hover {
    opacity: 1;
    filter: none;
    background: var(--soft-card, #f9fafb);
    transform: translateY(-1px);
}

.single .sns-btn i {
    color: var(--muted, #6b7280);
}

.sns-youtube {
    background: #ff0033;
    color: #fff;
}

.sns-x {
    background: #111111;
    color: #fff;
}

.sns-instagram {
    background: #c13584;
    color: #fff;
}

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

.sns-shop {
    background: #2b7a3d;
    color: #fff;
}

.sns-liberty {
    background: #2f6f6f;
    color: #fff;
}

.sns-marshmallow {
    background: #6b5cff;
    color: #fff;
}

.single .sns-buttons .sns-btn {
    border: 1px solid var(--line, #e5e7eb);
    background: var(--card-bg, #fff);
    color: var(--ink, #1f2933);
}

/* 次前ナビゲーション */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 60px 0 20px;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous, .nav-next {
    width: 40%;
    text-align: center;
    border-radius: 5px;
    padding: 10px 4%;
    font-size: 0.8rem;
    border: 1px solid #ddd;
}

.nav-previous i, .nav-next i {
    margin-right: 8px;
    vertical-align: middle;
}

.nav-previous i {
    margin-left: 8px;
    margin-right: 0;
}

.nav-next i {
    margin-right: 8px;
    margin-left: 0;
}

.nav-thumbnail img {
    width: 100px;
    height: 100px;
}

/*パンくずリスト*/
.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.breadcrumb li {
    display: inline;
}

/* Single content blocks */
.single-answer-box,
.single-how-to,
.single-faq,
.single-youtube-video,
.single-youtube-channel-cta,
.single-related-videos,
.cta-download-support {
    margin: 24px 0;
}

.single-answer-box,
.single-how-to,
.single-youtube-channel-cta,
.cta-download-usage,
.cta-recommended-materials {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card-bg);
}

.single-how-to,
.single-faq,
.single-youtube-video,
.single-related-videos,
.cta-download-usage,
.cta-recommended-materials {
    color: #444;
}

.single-answer-box h2,
.single-how-to h2,
.single-faq h2,
.single-youtube-video h2,
.single-youtube-channel-cta h2,
.single-related-videos h2,
.cta-download-usage h3,
.cta-recommended-materials h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.15rem;
    line-height: 1.5;
}

.single-how-to-item h3,
.single-faq-item h3 {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1rem;
}

.single-how-to-item p,
.single-faq-item p,
.single-youtube-channel-cta p {
    margin-bottom: 0;
}

/* Single CTA */
.cta-download {
    margin: 18px 0;
}

.cta-download--first-view {
    margin: 18px 0 8px;
}

.cta-download--after-variations {
    margin-top: 14px;
}

.cta-download--post-bottom {
    margin-top: 20px;
}

.single .cta-download-button {
    width: 100%;
    border-radius: 8px;
    font-weight: 700;
}

.cta-download--first-view .cta-download-button,
.cta-download--post-bottom .cta-download-button {
    padding: 14px;
}

.cta-download--after-variations .cta-download-button {
    padding: 10px;
    font-size: 1rem;
    background-color: #333;
}

.cta-download-support {
    display: grid;
    gap: 16px;
}

.cta-youtube-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

.cta-youtube-embed iframe {
    width: 100%;
    height: 100%;
}

.cta-text-link {
    display: inline-block;
    margin-top: 8px;
    font-weight: 600;
}

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

.cta-recommended-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.cta-recommended-thumb {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #f0f0f0;
}

.cta-recommended-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.cta-recommended-title {
    font-size: 14px;
    line-height: 1.5;
}

.cta-follow {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 32px;
}

.cta-follow .LnkBtn,
.cta-follow .booth-button-container {
    flex: 1 1 220px;
    margin: 0;
    max-width: none;
}

.cta-follow-button {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
}

.cta-follow-button--youtube {
    background: #ff0033;
}

.cta-follow-button--shop {
    background: #2b7a3d;
}

.cta-follow-button:hover {
    color: #fff;
    opacity: .92;
}

@media (max-width: 767px) {
    .single-answer-box,
    .single-how-to,
    .single-faq,
    .single-youtube-video,
    .single-youtube-channel-cta,
    .single-related-videos,
    .cta-download-support {
        margin: 18px 0;
    }

    .single-answer-box,
    .single-how-to,
    .single-youtube-channel-cta,
    .cta-download-usage,
    .cta-recommended-materials {
        padding: 14px;
        border-radius: 8px;
    }

    .single-answer-box h2,
    .single-how-to h2,
    .single-faq h2,
    .single-youtube-video h2,
    .single-youtube-channel-cta h2,
    .single-related-videos h2,
    .cta-download-usage h3,
    .cta-recommended-materials h3 {
        margin-bottom: 10px;
        font-size: 1rem;
        line-height: 1.45;
    }

    .single .cta-download-button,
    .cta-follow-button,
    .single-youtube-subscribe-button {
        min-height: 44px;
    }

    .cta-recommended-grid {
        grid-template-columns: 1fr;
    }
}

.single-answer-box-list {
    margin: 0;
    padding-left: 1.3em;
}

.single-answer-box-list li + li {
    margin-top: 6px;
}

.single-faq-item {
    padding: 14px 0;
    border-bottom: 1px solid #e2e2e2;
}

.single-how-to-list {
    display: grid;
    gap: 12px;
}

/* Single YouTube blocks */
.single-youtube-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 8px;
    overflow: hidden;
}

.single-youtube-video-embed iframe {
    width: 100%;
    height: 100%;
}

.single-youtube-channel-cta {
    text-align: center;
}

.single-youtube-channel-cta p {
    margin: 0 0 14px;
}

.single-youtube-subscribe-button {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 8px;
    background: #ff0033;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.single-youtube-subscribe-button:hover {
    color: #fff;
    opacity: .92;
}

.single-related-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.single-related-video-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: inherit;
    text-decoration: none;
}

.single-related-video-thumb {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #111;
}

.single-related-video-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.single-related-video-title {
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .single-related-videos-grid {
        grid-template-columns: 1fr;
    }
}
