/* Header Section */
.topic-type-header {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px 132px;
    gap: 10px;
}

.topic-type-header-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.topic-type-header-inner {
    box-sizing: border-box;
    background-color: #FF2D55;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding: 70px;
    border-radius: 24px;
    flex: 1;
    min-width: 0;
}

.topic-type-header-title {
    font-family: 'Dela Gothic One', sans-serif;
    font-weight: 400;
    font-size: 64px;
    line-height: 0;
    color: #ffffff;
    margin: 0;
    white-space: pre;
    flex-shrink: 0;
}

/* Main Content Section */
.topic-type-main {
    box-sizing: border-box;
    width: 100%;
    padding: 128px 448px;
    display: flex;
    justify-content: center;
}

.topic-type-main-container {
    max-width: 1024px;
    box-sizing: border-box;
    border-radius: 0;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.topic-type-main-header {
    width: 100%;
    display: flex;
    gap: 48px;
    align-items: center;
    justify-content: space-between;
}

.topic-type-main-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 1.4;
    color: #FF0000;
    margin: 0;
    flex: 1;
}

.topic-type-main-image {
    width: 468px;
    height: 433px;
    border-radius: 16px;
    overflow: hidden;
    flex-shrink: 0;
}

.topic-type-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Cards Grid */
.topic-type-cards-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    grid-auto-rows: auto;
}


.topic-type-card-link:hover .topic-type-card {
    border-color: #FF2D55;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.topic-type-card {
    background-color: #ffffff;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.topic-type-card-body {
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.topic-type-card-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 32px;
    color: #333333;
    margin: 0;
    min-height: 64px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.topic-type-card-date {
    font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 20px;
    color: #828282;
    margin: 0;
}

.topic-type-card-description {
    font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
    font-weight: 300;
    font-size: 14px;
    line-height: 22px;
    color: #1c1c1c;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.topic-type-card-tag {
    border-radius: 6px;
    padding: 3px 8px;
}

.topic-type-card-tag p {
    font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
    font-weight: 300;
    font-size: 12px;
    line-height: 20px;
    margin: 0;
}

.topic-type-card-tag--orange {
    background-color: #fff0c6;
    color: #fa8c16;
}

.topic-type-card-tag--pink {
    background-color: #FFF1F0;
    color: #FF2D55;
}

.topic-type-card-tag--green {
    background-color: #F6FFED;
    color: #135200;
}

.topic-type-empty {
    font-family: 'Hiragino Kaku Gothic Pro', sans-serif;
    font-size: 18px;
    color: #333333;
    margin: 0;
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 0;
}

/* Pagination */
.topic-type-pagination {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.topic-type-pagination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #E5E5E5;
    color: #333333;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s;
}

.topic-type-pagination-arrow:hover:not(.topic-type-pagination-arrow--disabled) {
    background-color: #D0D0D0;
}

.topic-type-pagination-arrow--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.topic-type-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topic-type-pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background-color: #E5E5E5;
    color: #333333;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    padding: 0 12px;
    transition: background-color 0.2s;
}

.topic-type-pagination-number:hover:not(.topic-type-pagination-number--active) {
    background-color: #D0D0D0;
}

.topic-type-pagination-number--active {
    background-color: #999999;
    color: #ffffff;
    cursor: default;
}

.topic-type-pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    color: #333333;
    padding: 0 8px;
}

