* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
}

.wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.inner-wrap {
    max-width: 75rem;
    padding: 0 4vw;
    margin: 0 auto;
}

.hero-section {
    background: linear-gradient(135deg, #253583 0%, #4a5fa8 100%);
    text-align: center;
    color: white;
    position: relative;
    padding: 0.5rem 0;
}

.hero-logo {
    width: 200px;
    max-width: 80%;
    height: auto;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ffeb3b;
}

.media-section {
    background: linear-gradient(to bottom, #e6f2ff 0%, #cce5ff 100%);
    padding: 3rem 1rem;
    flex: 1;
}

.section-title {
    text-align: center;
    color: #253583;
    font-size: 3.125rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.media-list {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.media-item {
    background-color: white;
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #A9A1A1;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
}

.media-item:hover .media-text {
    color: #2D8BDC;
}

.media-date {
    font-size: 1rem;
    color: #666;
    white-space: nowrap;
}

.media-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 1rem;
    color: white;
    white-space: nowrap;
    text-align: center;
    font-weight: 700;
    background-color: #2D8BDC;
}

.media-text {
    color: #253583;
    font-size: 1.25rem;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 700;
    min-width: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination button {
    min-width: 40px;
    height: 40px;
    border: none;
    background-color: white;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s;
}

.pagination button:hover:not(:disabled) {
    background-color: #e0e0e0;
}

.pagination button.active {
    background-color: #2D8BDC;
    color: white;
    font-weight: 700;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .dots {
    padding: 0 0.5rem;
    color: #666;
}

.back-button-container {
    text-align: center;
    padding-top: 2rem;
}

.back-button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 30px;
    background-color: white;
    color: #253583;
    border: 2px solid #253583;
    border-radius: 999px;
    font-size: 1.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.back-button:hover {
    background-color: #253583;
    color: white;
}

.back-button:hover::after {
    background-color: white;
}

.back-button:hover::before {
    border-top-color: #253583;
    border-right-color: #253583;
}

.back-button::after {
    content: '';
    width: 20px;
    height: 20px;
    background-color: #253583;
    border-radius: 50%;
    position: relative;
    transition: background-color 0.3s;
}

.back-button::before {
    content: '';
    position: absolute;
    right: 37px;
    width: 6px;
    height: 6px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    z-index: 1;
    transition: border-color 0.3s;
}

.footer {
    background-color: #253583;
    padding: 1rem 0;
}

.footer ul {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.footer li {
    list-style: none;
    margin-left: 1rem;
    font-size: 1.125rem;
}

.footer-link {
    text-decoration: none;
    color: white;
    font-size: 1.125rem;
}

@media screen and (max-width: 992px) {
    .section-title {
        font-size: 6vw;
    }

    .media-item {
        grid-template-columns: 18vw auto;
        grid-template-rows: auto auto;
        gap: 0.5rem;
        align-items: center;
    }

    .media-date {
        font-size: 3vw;
        width: auto;
        margin-right: 0;
    }

    .media-tag {
        font-size: 3vw;
        width: auto;
        justify-self: start;
        margin-right: 0;
    }

    .media-text {
        grid-column: 1 / -1;
        font-size: 3.5vw;
    }

    .pagination button {
        min-width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}