/* 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;
}

/* ===== MOBILE RESPONSIVE (max-width: 768px) ===== */
@media (max-width: 768px) {
    /* Header Section Mobile */
    .topic-type-header {
        padding: 0 24px 24px 24px;
    }

    .topic-type-header-inner {
        padding: 48px;
        align-items: center;
    }

    .topic-type-header-title {
        font-size: 36px;
        line-height: 1;
        white-space: normal;
        text-align: center;
        width: 100%;
    }

    /* Main Content Section Mobile */
    .topic-type-main {
        padding: 48px 24px;
    }

    .topic-type-main-container {
        padding: 0;
        gap: 48px;
    }

    .topic-type-main-header {
        flex-direction: column;
        gap: 24px;
    }

    .topic-type-main-title {
        font-size: 48px;
        line-height: 40px;
        text-align: center;
        width: 100%;
    }

    .topic-type-main-image {
        width: 100%;
        height: auto;
        aspect-ratio: 311 / 288;
        border-radius: 0;
    }

    /* Cards Grid Mobile */
    .topic-type-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .topic-type-card {
        border-radius: 16px;
        border: 1px solid #ededed;
    }

    .topic-type-card-title {
        min-height: unset;
        -webkit-line-clamp: unset;
        line-clamp: unset;
    }
}

