.terms-page{
    max-width:900px;
    margin:0 auto;
    background:white;
    border-radius:16px;
    padding:2.5rem;
    box-shadow:
        0 2px 8px rgba(0,0,0,.04),
        0 8px 24px rgba(0,0,0,.06);
}
.terms-page h1{
    margin-top:0;
    margin-bottom:2rem;
    font-size:2rem;
    font-weight:800;
    color:#111827;
}
.terms-page h2{
    margin-top:2.5rem;
    margin-bottom:.75rem;
    font-size:1.2rem;
    font-weight:700;
    color:#0f172a;
}
.terms-page p{
    margin:.75rem 0;
    line-height:1.8;
    color:#374151;
}
.terms-page ul{
    margin:.75rem 0;
    padding-left:1.5rem;
}

.terms-page li{
    line-height:1.8;
    color:#374151;
}
.terms-page h1::after{
    content:'';
    display:block;
    width:60px;
    height:4px;
    margin-top:.75rem;
    border-radius:999px;
    background:var(--label-color);
}
li > ul{
    margin: 0 !important;
}
.notice-page-header{
    padding-bottom:1.5rem;
    border-bottom:1px solid #d1d5db;
}
.notice-list{
    display:flex;
    flex-direction:column;
    gap:.75rem;
}

.notice-item{
    background:white;
    border:1px solid #e5e7eb;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 4px 18px rgba(15,23,42,.04);
}

.notice-header{
    width:100%;
    padding:1.25rem 1.5rem;

    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:1rem;

    background:white;
    border:none;
    cursor:pointer;
    text-align:left;
}

.notice-header:hover{
    background:#f8fafc;
}

.notice-filter{
    margin-bottom:1.5rem;

    display:flex;
    flex-wrap:wrap;
    gap:.5rem;
}

.notice-filter-btn{
    padding:.55rem .85rem;

    border:1px solid #e5e7eb;
    border-radius:999px;

    background:white;
    color:#4b5563;

    font-size:.9rem;
    font-weight:700;

    cursor:pointer;

    transition: .35s;
}

.notice-filter-btn:hover{
    border-color:var(--label-color);
    color:var(--label-color);
}

.notice-filter-btn.active{
    background:var(--label-color);
    border-color:var(--label-color);
    color:white;
}
.notice-title{
    width:50%
}
.notice-tags{
    display:flex;
    flex-wrap:wrap;
    gap:.35rem;
    width:40%;
    justify-content: flex-end;
}

.notice-tags span{
    display:inline-flex;

    padding:.2rem .45rem;

    border-radius:999px;

    background:#fff7ed;
    color:var(--label-color);

    font-size:.72rem;
    font-weight:800;
}

.about-label{
    margin:0 0 1rem;
    color:var(--label-color);
    font-size:.85rem;
    font-weight:800;
    letter-spacing:.15em;
}

.about-hero h1{
    margin:0;

    color:#0f172a;

    font-size:clamp(2.5rem, 6vw, 4.5rem);
    line-height:1.15;
    letter-spacing:-.05em;
}

.about-lead{
    max-width:720px;

    margin-top:1.5rem;

    color:#4b5563;
    font-size:1.1rem;
    line-height:1.9;
}

.about-section{
    margin-top:5rem;
}

.about-section h2{
    margin:0 0 1.5rem;

    color:#111827;

    font-size:2rem;
    letter-spacing:-.03em;
}

.about-section p{
    color:#4b5563;
    line-height:2;
}

.about-values{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:1rem;
}

.about-value{
    padding:1.5rem;

    background:white;

    border:1px solid #e5e7eb;
    border-radius:18px;
}

.about-value h3{
    margin:0 0 .75rem;
}

.about-message{
    max-width:850px;
}
.about-message p{
    margin-bottom: 0.7rem;
}

.about-message blockquote{
    margin:1.3rem 0 0;
    padding:1.5rem;
    border-left:4px solid var(--label-color);

    background:#fff7ed;

    color:#9a3412;

    font-size:1.15rem;
    font-weight:700;

    border-radius:0 12px 12px 0;
}

.about-footer{
    margin-top:5rem;
    padding-top:2rem;

    border-top:1px solid #e5e7eb;

    color:#6b7280;
    font-size:.95rem !important;
}
.content-list-item {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
    margin-bottom: .8rem;
}

.content-list-item.important {
    border-color: #fb923c;
    background: #fff7ed;
}

.content-list-button {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 1.1rem 1.2rem;
    text-align: left;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.content-list-button:hover {
    background: #f8fafc;
}

.content-list-date {
    width: 10%;
    color: #64748b;
    font-size: .9rem;
    white-space: nowrap;
}

.content-list-button h2 {
    width: 55%;
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.content-list-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: .78rem;
    font-weight: 700;
    white-space: nowrap;
}

.content-important-badge {
    display: inline-flex;
    align-items: center;
    margin-right: .5rem;
    padding: .15rem .45rem;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    vertical-align: middle;
}

/* modal */

.content-modal[hidden] {
    display: none;
}

.content-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 1.5rem;
}

.content-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(3px);
}

.content-modal-box {
    position: relative;
    width: min(720px, 100%);
    max-height: 70vh;
    overflow-y: auto;
    padding: 1.6rem;
    border-radius: 1.2rem;
    background: #fff;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .25);
}
.content-list-tags {
    width:35%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
}


.content-modal-tag-button {
    border: 0;
    cursor: pointer;
    padding: .5rem .8rem;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-size: .82rem;
    font-weight: 700;
    margin-right: 0.5rem;
    margin-bottom: .6rem;
}

.content-modal-tag-button:hover {
    background: #fed7aa;
}
.content-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.content-modal-close:hover {
    background: #e2e8f0;
}

.content-modal-date {
    display: block;
    margin-bottom: .35rem;
    color: #64748b;
    font-size: .9rem;
}

.content-modal-title {
    margin: 0;
    padding-right: 2.5rem;
    color: #0f172a;
    font-size: 1.55rem;
    line-height: 1.4;
}

.content-modal-tag {
    display: flex;
    margin-top: .8rem;
    margin-bottom: .8rem;
    border-radius: 999px;
    color: #c2410c;
    font-size: .82rem;
    font-weight: 700;
    flex-wrap: wrap;
}

.content-modal-body {
    color: #334155;
    line-height: 1.85;
    font-size: .98rem;
}

.content-modal-body h1,
.content-modal-body h2,
.content-modal-body h3 {
    color: #0f172a;
    line-height: 1.5;
}

.content-modal-body h1 {
    margin: 1.8rem 0 .8rem;
    font-size: 1.45rem;
}

.content-modal-body h2 {
    margin: 1.6rem 0 .7rem;
    font-size: 1.25rem;
}

.content-modal-body h3 {
    margin: 1.3rem 0 .6rem;
    font-size: 1.08rem;
}

.content-modal-body p {
    margin: .7rem 0;
}

.content-modal-body a {
    color: #ea580c;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: .18em;
}

.content-modal-body ul,
.content-modal-body ol {
    padding-left: 1.4rem;
    margin: .8rem 0;
}

.content-modal-body li {
    margin: .35rem 0;
}
.content-modal-image {
    margin: 1.5rem 0;
}

.content-modal-image img {
    display: block;
    width: 100%;
    border-radius: .75rem;
    border: 1px solid #e5e7eb;
}

.content-modal-image figcaption {
    margin-top: .5rem;
    color: #64748b;
    font-size: .85rem;
    text-align: center;
}
.modal-open {
    overflow: hidden;
}

@media (max-width:600px){
    .notice-header{
        padding:1rem 1.1rem;
    }

    .notice-item.open .notice-content {
        max-height: 500px;
        padding: 0 1.5rem 1.5rem;
        overflow-y: auto;
    }

    .notice-header h2{
        font-size:1rem;
    }
}
@media (max-width:640px){
    .notice-header{
        flex-wrap: wrap;
        gap : 0.3rem;
    }
    .notice-page-header{
        padding:0 1rem;
        padding-bottom: 1rem;
    }
    .notice-filter{
        padding : 0 1rem;
    }
    .notice-title{
        width: 100%;
    }
    .notice-tags{
        width:80%;
        justify-content: flex-start;
    }
    .about-hero, .about-section, .about-footer{
        padding:0 1rem;
    }
    .content-list-tag {
        width: fit-content;
    }

    .content-modal-box {
        width: calc(100% - 1rem);
        max-height: calc(80vh - 2rem);
        margin: 1rem auto;
        padding: 1.3rem;
        border-radius: 1rem;
    }

    .content-modal-title {
        font-size: 1.3rem;
    }

    .content-list-item{
        margin: 0 1rem;
    }
}
@media (max-width:768px){
    .main{
        padding:
            calc(3rem + 1rem)
            .75rem
            2rem;
    }
    .terms-page{
        padding:1.5rem;
        border-radius:12px;
    }
    .terms-page h1{
        font-size:1.7rem;
    }
    .about-values{
        grid-template-columns: none;
    }
    .content-list-button {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    .content-list-button > * {
        width: 100% !important;
    }
}