.post-index {
    padding: 60px 0 100px;
    background: #ffffff;
}

.post-index__inner {
    width: min(100% - 40px, 1360px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 48px;
}

.post-index__sidebar {
    min-width: 0;
}

.post-index-side + .post-index-side {
    margin-top: 52px;
}

.post-index-side__title {
    position: relative;
    margin: 0 0 24px;
    padding-left: 18px;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    color: #111827;
}

.post-index-side__title::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 0;
    width: 6px;
    height: 28px;
    border-radius: 999px;
    background: #1f4e8c;
}

.post-index-side__title--green::before {
    background: #16a34a;
}

.post-index-side__buttons {
    display: grid;
    gap: 10px;
}

.post-index-side__button {
    display: block;
    padding: 16px 18px;
    border: 1px solid #d8dee8;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.post-index-side__button.is-active,
.post-index-side__button:hover {
    background: #1f4e8c;
    border-color: #1f4e8c;
    color: #ffffff;
}

.post-index-side__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 10px;
}

.post-index-side__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid #d8dee8;
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.post-index-side__tag.is-active,
.post-index-side__tag:hover {
    background: #ecfdf3;
    border-color: #16a34a;
    color: #166534;
}

.post-index__main {
    min-width: 0;
}

.post-index__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.post-index__title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.4;
    color: #111827;
}

.post-index__count {
    margin: 0;
    padding-top: 6px;
    color: #64748b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.post-index-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px 32px;
}

.post-card {
    min-width: 0;
}

.post-card__link {
    display: block;
    height: 100%;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
}

.post-card__thumb {
    aspect-ratio: 16 / 9;
    background: #dfe5ee;
    overflow: hidden;
}

.post-card__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-card__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: #dfe5ee;
}

.post-card__body {
    padding: 24px 26px 22px;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.post-card__cat {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #eef2f7;
    color: #1f4e8c;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.post-card__date {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.post-card__title {
    margin: 0 0 18px;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.45;
    color: #0f172a;
}

.post-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-card__tag {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.post-index__pager {
    margin-top: 42px;
}

.post-index__pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    margin-right: 8px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.post-index__pager .page-numbers.current,
.post-index__pager .page-numbers:hover {
    background: #1f4e8c;
    border-color: #1f4e8c;
    color: #ffffff;
}

.post-index__empty {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

@media screen and (max-width: 1024px) {
    .post-index__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .post-index-grid {
        gap: 24px;
    }
}

@media screen and (max-width: 768px) {
    .post-index {
        padding: 36px 0 70px;
    }

    .post-index__inner {
        width: min(100% - 24px, 1360px);
        gap: 28px;
    }

    .post-index__head {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }

    .post-index__title {
        font-size: 22px;
    }

    .post-index-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-card__body {
        padding: 18px 18px 20px;
    }

    .post-card__title {
        font-size: 19px;
    }
}

.post-index-side__children {
    display: grid;
    gap: 8px;
    margin: -2px 0 10px 14px;
}

.post-index-side__child {
    display: block;
    padding: 10px 14px;
    border: 1px solid #e1e6ee;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.post-index-side__child.is-active,
.post-index-side__child:hover {
    background: #eef4fb;
    border-color: #1f4e8c;
    color: #1f4e8c;
}

.post-index__description {
    margin-bottom: 24px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.9;
}

@media screen and (max-width: 768px) {
    .post-index__inner {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .post-index__main {
        order: 1;
    }

    .post-index__sidebar {
        order: 2;
        margin-top: 0;
    }
}

/* ========================================
   started-guide 専用カード
======================================== */
.post-card--started-guide {
    min-width: 0;
	margin-bottom: 20px;
}

.post-card--started-guide .post-card__link {
    display: block;
    height: 100%;
    padding: 20px 20px 0;
    border: 1px solid #d8dee8;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: none;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.post-card--started-guide .post-card__link:hover {
    transform: translateY(-2px);
    border-color: #c6d0de;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.post-card--started-guide .post-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    padding: 0;
}

.post-card__started-head {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.post-card__started-icon {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    overflow: hidden;
}

.post-card__started-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.post-card__started-title {
    margin: 0;
    min-width: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.post-card__started-text {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.9;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.post-card__started-text p {
    margin: 0;
}

/* ========================================
   画面幅調整
======================================== */
@media screen and (max-width: 1024px) {
    .post-index-grid {
        grid-template-columns: 1fr;
        row-gap: 24px;
        column-gap: 24px;
    }

    .post-card--started-guide .post-card__link {
        min-height: 0;
    }
}

@media screen and (max-width: 768px) {
    .post-index-grid {
        grid-template-columns: 1fr;
        row-gap: 20px;
        column-gap: 20px;
    }

    .post-card__body {
        padding: 18px 18px 20px;
    }

    .post-card__title {
        font-size: 19px;
    }

    .post-card--started-guide .post-card__link {
        padding: 18px 18px 16px;
        min-height: 0;
    }

    .post-card__started-head {
        gap: 14px;
    }

    .post-card__started-icon {
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
    }

    .post-card__started-title {
        font-size: 16px;
        line-height: 1.5;
    }

    .post-card__started-text {
        font-size: 14px;
        line-height: 1.8;
    }
}