/* ==============================
   お知らせ
============================== */

.news-page {
    box-sizing: border-box;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.news-page__header,
.news-card,
.news-manage-card {
    box-sizing: border-box;
    width: 100%;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid rgba(130, 130, 130, 0.35);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
}

.news-page__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.news-page__title {
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 1.3;
}

.news-page__description {
    margin: 0;
    line-height: 1.7;
}

.news-list,
.news-manage-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card {
    margin-bottom: 0;
}

.news-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 10px;
    border-bottom: none;
}

.news-card__title {
    margin: 0;
    font-size: 21px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.news-card__date,
.news-card__updated-at,
.news-manage-item__date {
    color: #555;
    font-size: 13px;
}

.news-card__date {
    flex-shrink: 0;
    white-space: nowrap;
}

.news-card__body {
    margin-top: 12px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.news-card__updated-at {
    margin-top: 12px;
    text-align: right;
}

.news-card__empty {
    margin: 0;
    line-height: 1.7;
}

.news-manage-card__title {
    margin: 0 0 14px;
    font-size: 21px;
}

.news-form__field {
    margin-bottom: 14px;
}

.news-form__field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.news-form__title-input,
.news-form__body-input {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}

.news-form__body-input {
    resize: vertical;
}

.news-form ul.errorlist,
.news-form__errors {
    margin: 5px 0 0;
    color: #b00020;
    font-weight: bold;
}

.news-form__actions,
.news-manage-item__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.news-form__actions--between {
    justify-content: space-between;
}

.news-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 34px;
    padding: 6px 14px;
    border: 1px solid #777;
    border-radius: 6px;
    background: #fff;
    color: #222;
    font: inherit;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.news-button:hover {
    background: #eee;
    text-decoration: none;
}

.news-button--primary {
    border-color: #526b8f;
    background: #edf3fb;
}

.news-button--danger {
    border-color: #a85b5b;
    background: #fff2f2;
    color: #7c1e1e;
}

.news-manage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 7px;
    background: #fff;
}

.news-manage-item__main {
    min-width: 0;
}

.news-manage-item__title {
    margin: 0 0 5px;
    font-size: 18px;
    overflow-wrap: anywhere;
}

.news-manage-item__snippet {
    margin: 7px 0 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.news-manage-item__actions,
.news-manage-item__delete-form {
    flex-shrink: 0;
    margin: 0;
}

@media (max-width: 700px) {
    .news-page__header,
    .news-card__header,
    .news-manage-item {
        align-items: stretch;
        flex-direction: column;
    }

    .news-card__date {
        white-space: normal;
    }

    .news-manage-item__actions {
        justify-content: flex-start;
    }
}
