/**
 * お役立ち情報（Column）スタイル
 *
 * @package Yorisou
 */

/* ===================================================================
   記事詳細ページ
   =================================================================== */

   .single-column .entry-header {
    margin-bottom: 2rem;
}

/* .entry-title は common.css のスタイルを継承 */
.single-column .entry-title {
    margin: 1rem 0;
}

.single-column .entry-categories {
    margin-bottom: 1rem;
}

.single-column .entry-thumbnail {
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.single-column .entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.single-column .entry-meta {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.single-column .entry-meta time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===================================================================
   記事本文の見出しスタイル
   =================================================================== */

.entry-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary, #2C5F2D);
    margin: 3rem 0 1.5rem;
    padding: 1rem 0 1rem 1rem;
    border-left: 5px solid var(--color-primary, #2C5F2D);
    background: linear-gradient(90deg, #f0f8f0 0%, transparent 100%);
    line-height: 1.5;
}

.entry-content h2:first-child {
    margin-top: 0;
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary, #2C5F2D);
    margin: 2.5rem 0 1.25rem;
    padding-left: 1rem;
    border-left: 4px solid var(--color-accent, #8B4513);
    line-height: 1.5;
}

.entry-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text, #333);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    line-height: 1.5;
}

.entry-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text, #333);
    margin: 1.75rem 0 0.875rem;
    line-height: 1.5;
}

.entry-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text, #333);
    margin: 1.5rem 0 0.75rem;
    line-height: 1.5;
}

/* 本文の段落 */
.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    line-height: 1.8;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
    margin: 0.5rem 0;
}

/* 画像 */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.5rem 0;
}

.entry-content figure {
    margin: 2rem 0;
}

.entry-content figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    text-align: center;
}

/* テーブル */
.entry-content table {
    width: 100%;
    margin: 2rem 0;
    border-collapse: collapse;
    border: 1px solid #e0e0e0;
}

.entry-content th,
.entry-content td {
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.entry-content th {
    background: var(--color-primary, #2C5F2D);
    color: #fff;
    font-weight: 600;
}

.entry-content tr:nth-child(even) {
    background: #f8f9fa;
}

/* ブロック引用 */
.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 4px solid var(--color-accent, #8B4513);
    background: #f8f9fa;
    font-style: italic;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* コード */
.entry-content code {
    padding: 0.2rem 0.4rem;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
}

.entry-content pre {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow-x: auto;
}

.entry-content pre code {
    padding: 0;
    background: none;
    border: none;
}

/* ===================================================================
   記事フッター
   =================================================================== */

.entry-footer {
    margin-top: 3rem;
    padding-top: 2rem;
}

.entry-share {
    margin-top: 2rem;
}

.share-label {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text, #333);
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ===================================================================
   関連記事セクション
   =================================================================== */

.related-posts {
    margin-top: 3rem;
    padding-top: 3rem;
}

.related-posts .section-title {
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

/* ===================================================================
   CTAセクション
   =================================================================== */

.post-cta.company-cta {
    background: linear-gradient(135deg, #f8f6f4 0%, #fff 100%);
    border-radius: 16px;
    padding: 5rem 2rem;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.post-cta .cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.post-cta .cta-title {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-family: serif;
}

.post-cta .cta-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
    color: var(--color-text-light);
}

.post-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.post-cta .btn-lg {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-cta .btn-lg.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: none;
}

.post-cta .btn-lg.btn-shadow {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.post-cta .btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-content.text-center {
    background: linear-gradient(135deg, #f8f6f4 0%, #fff 100%);
    border-radius: 16px;
    padding: 5rem 2rem;
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.cta-content.text-center h2 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.cta-content.text-center p {
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

/* ===================================================================
   レスポンシブ
   =================================================================== */

@media (max-width: 768px) {
    .single-column .entry-title {
        font-size: 1.5rem;
    }

    .single-column .entry-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .entry-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem;
        padding: 0.75rem 0 0.75rem 0.75rem;
    }

    .entry-content h3 {
        font-size: 1.25rem;
        margin: 1.75rem 0 1rem;
        padding-left: 0.75rem;
    }

    .entry-content h4 {
        font-size: 1.125rem;
        margin: 1.5rem 0 0.75rem;
    }

    .entry-content h5 {
        font-size: 1rem;
    }

    .entry-content h6 {
        font-size: 0.9375rem;
    }

    .entry-content table {
        font-size: 0.875rem;
    }

    .entry-content th,
    .entry-content td {
        padding: 0.5rem;
    }

    /* CTAセクション レスポンシブ */
    .post-cta.company-cta {
        padding: 3rem 1.5rem;
    }

    .post-cta .cta-title {
        font-size: 1.5rem;
    }

    .post-cta .cta-text {
        font-size: 1rem;
    }

    .post-cta .cta-buttons {
        flex-direction: column;
    }

    .post-cta .btn-lg {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================================================
   アーカイブページ
   =================================================================== */

.post-type-archive-column .page-header {
    margin-bottom: 3rem;
    text-align: center;
}

/* .page-title / .archive-title は common.css のスタイルを継承 */

/* .page-description は common.css のスタイルを継承 */

/* グリッドレイアウト - レスポンシブ対応 */
.posts-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* PC: 3カラム */
.posts-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* タブレット: 2カラム */
@media (max-width: 992px) {
    .posts-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* スマホ: 1カラム */
@media (max-width: 768px) {
    .posts-grid.grid-3 {
        grid-template-columns: 1fr;
    }

    /* .page-title responsive handled in common.css */

    .post-type-archive-column .page-description {
        font-size: 1rem;
    }
}