.notice-page {
    min-height: 70vh;
    background: #fff;
}

.notice-content {
    padding: clamp(56px, 6vw, 80px) 0 clamp(88px, 9vw, 124px);
}

.notice-list {
    border-top: 2px solid #171717;
}

.notice-list__head,
.notice-list__row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 150px;
    align-items: center;
}

.notice-list__head {
    min-height: 56px;
    border-bottom: 1px solid var(--color-border);
    color: #555d65;
    font-size: .84rem;
    font-weight: 650;
    text-align: center;
}

.notice-list__row {
    min-height: 78px;
    border-bottom: 1px solid var(--color-border);
    color: #262a2e;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
}

.notice-list__row:hover,
.notice-list__row:focus-visible {
    background: #fafafa;
    color: var(--color-primary);
}

.notice-list__number,
.notice-list__row time {
    color: #666d73;
    font-size: .88rem;
    text-align: center;
}

.notice-list__number strong {
    display: inline-flex;
    padding: 3px 8px;
    border: 1px solid rgb(230 0 19 / 18%);
    border-radius: 2px;
    background: rgb(230 0 19 / 5%);
    color: var(--color-primary);
    font-size: .76rem;
    font-weight: 750;
}

.notice-list__title {
    min-width: 0;
    padding: 18px 24px;
    overflow: hidden;
    font-size: 1.02rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-empty {
    padding: 76px 20px;
    border-bottom: 1px solid var(--color-border);
    color: #666d73;
    text-align: center;
}

.notice-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 44px;
}

.notice-pagination a,
.notice-pagination strong,
.notice-pagination > span {
    min-width: 42px;
    min-height: 42px;
    display: inline-grid;
    place-items: center;
    color: #51575d;
    text-decoration: none;
    font-size: .88rem;
}

.notice-pagination a:hover,
.notice-pagination a:focus-visible,
.notice-pagination strong {
    color: var(--color-primary);
}

.notice-pagination strong {
    border-bottom: 2px solid var(--color-primary);
}

.notice-detail {
    padding: clamp(58px, 7vw, 88px) 0 clamp(92px, 9vw, 128px);
}

.notice-detail__inner {
    max-width: 980px;
}

.notice-detail__header {
    padding-bottom: 26px;
    border-bottom: 1px solid #272b2f;
}

.notice-detail__title-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 16px;
}

.notice-detail__title-row > span {
    flex: 0 0 auto;
    margin-top: 5px;
    padding: 4px 8px;
    border: 1px solid rgb(230 0 19 / 18%);
    border-radius: 2px;
    background: rgb(230 0 19 / 5%);
    color: var(--color-primary);
    font-size: .76rem;
    font-weight: 750;
}

.notice-detail h1 {
    margin: 0;
    color: #171717;
    font-size: clamp(1.8rem, 3vw, 2.12rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.04em;
    word-break: keep-all;
}

.notice-detail__header time {
    color: #6a7076;
    font-size: .88rem;
}

.notice-detail__body {
    min-height: 280px;
    padding: clamp(42px, 5vw, 64px) clamp(0px, 2.2vw, 24px);
    border-bottom: 1px solid var(--color-border);
    color: #33383d;
    font-size: var(--font-size-copy);
    font-weight: 400;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.notice-detail__body > :first-child {
    margin-top: 0;
}

.notice-detail__body > :last-child {
    margin-bottom: 0;
}

.notice-detail__body p,
.notice-detail__body ul,
.notice-detail__body ol,
.notice-detail__body blockquote,
.notice-detail__body table,
.notice-detail__body img {
    margin-block: 0 1.4em;
}

.notice-detail__body h2,
.notice-detail__body h3 {
    margin: 1.8em 0 .7em;
    color: #1d2125;
    line-height: 1.35;
    letter-spacing: -.035em;
}

.notice-detail__body h2 {
    font-size: 1.5em;
}

.notice-detail__body h3 {
    font-size: 1.25em;
}

.notice-detail__body ul,
.notice-detail__body ol {
    padding-left: 1.5em;
}

.notice-detail__body blockquote {
    padding: 12px 18px;
    border-left: 3px solid var(--color-primary);
    background: #fafafa;
    color: #50565b;
}

.notice-detail__body a {
    color: var(--color-primary);
    text-underline-offset: 3px;
}

.notice-detail__body img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.notice-detail__body table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
}

.notice-detail__body th,
.notice-detail__body td {
    min-width: 110px;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    text-align: left;
}

.notice-detail__body th {
    background: #f7f7f7;
    font-weight: 650;
}

.notice-attachments {
    padding: 32px 0;
    border-bottom: 1px solid var(--color-border);
}

.notice-attachments h2 {
    margin: 0 0 14px;
    color: #24282c;
    font-size: 1rem;
    font-weight: 700;
}

.notice-attachments__list {
    border-top: 1px solid var(--color-border);
}

.notice-attachments__list a {
    min-height: 54px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 90px 90px;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--color-border);
    color: #33383d;
    text-decoration: none;
}

.notice-attachments__list strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.notice-attachments__list a:hover,
.notice-attachments__list a:focus-visible {
    color: var(--color-primary);
    background: #fafafa;
}

.notice-attachments__list small,
.notice-attachments__list em {
    color: #6a7076;
    font-size: .82rem;
    font-style: normal;
}

.notice-attachments__list em {
    text-align: right;
}

.notice-adjacent {
    border-bottom: 1px solid var(--color-border);
}

.notice-adjacent > div {
    min-height: 62px;
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    align-items: center;
    border-top: 1px solid var(--color-border);
}

.notice-adjacent span {
    color: #6a7076;
    font-size: .84rem;
    font-weight: 650;
}

.notice-adjacent a {
    overflow: hidden;
    color: #30353a;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-adjacent a:hover,
.notice-adjacent a:focus-visible {
    color: var(--color-primary);
}

.notice-adjacent em {
    color: #9ba0a5;
    font-style: normal;
}

.notice-detail__actions {
    display: flex;
    justify-content: center;
    margin-top: 42px;
}

.notice-detail__actions a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 0 20px;
    border: 1px solid #bfc5ca;
    color: #22272b;
    text-decoration: none;
    font-weight: 650;
}

.notice-detail__actions a:hover,
.notice-detail__actions a:focus-visible {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

@media (max-width: 640px) {
    .notice-content,
    .notice-detail {
        padding: 52px 0 84px;
    }

    .notice-list__head {
        display: none;
    }

    .notice-list__row {
        min-height: 76px;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 8px 10px;
        padding: 15px 2px;
    }

    .notice-list__number {
        grid-row: 1 / span 2;
        align-self: start;
        padding-top: 2px;
    }

    .notice-list__number:not(.notice-list__number--pinned) {
        display: none;
    }

    .notice-list__title {
        grid-column: 2;
        padding: 0;
        display: -webkit-box;
        overflow: hidden;
        font-size: .98rem;
        line-height: 1.45;
        text-overflow: ellipsis;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .notice-list__row time {
        grid-column: 2;
        text-align: left;
    }

    .notice-detail__title-row {
        display: block;
    }

    .notice-detail__title-row > span {
        width: fit-content;
        display: block;
        margin: 0 0 12px;
    }

    .notice-detail h1 {
        font-size: clamp(1.45rem, 7vw, 1.7rem);
        line-height: 1.35;
    }

    .notice-detail__body {
        min-height: 220px;
        padding-block: 34px 48px;
        font-size: var(--font-size-copy-small);
        line-height: 1.8;
    }

    .notice-attachments__list a {
        grid-template-columns: 20px minmax(0, 1fr) auto;
        gap: 7px;
        padding: 12px 4px;
    }

    .notice-attachments__list small {
        grid-column: 2;
    }

    .notice-attachments__list em {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .notice-adjacent > div {
        grid-template-columns: 76px minmax(0, 1fr);
    }

    .notice-adjacent a {
        display: -webkit-box;
        overflow: hidden;
        line-height: 1.45;
        text-overflow: ellipsis;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
}
