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

body {
    font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
    background: #f5f8ff;
    color: #222;
    line-height: 1.7;
}

.disclaimer {
    background: #222;
    color: #fff;
    text-align: center;
    font-size: 13px;
    padding: 8px;
}

header {
    background: linear-gradient(135deg, #3f7cff, #6fd6ff);
    color: white;
    padding: 22px 7%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

nav ul {
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 16px;
    border-radius: 999px;
}

.container {
    width: min(1100px, 92%);
    margin: 35px auto;
}

.notice-hero {
    background: white;
    padding: 42px 28px;
    border-radius: 28px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 28px;
}

.hero-label {
    color: #3f7cff;
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 13px;
}

.notice-hero h1 {
    font-size: 38px;
    margin: 8px 0;
}

.notice-search-area {
    background: white;
    padding: 20px;
    border-radius: 22px;
    display: grid;
    grid-template-columns: 1fr 220px 140px;
    gap: 14px;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

#noticeSearchInput,
#noticeCategoryFilter {
    width: 100%;
    padding: 13px 15px;
    border: 2px solid #d9e4ff;
    border-radius: 14px;
    font-size: 15px;
    outline: none;
}

#noticeSearchInput:focus,
#noticeCategoryFilter:focus {
    border-color: #3f7cff;
}

.notice-count {
    font-weight: bold;
    color: #3f7cff;
    text-align: center;
}

.notice-list {
    display: grid;
    gap: 22px;
}

.notice-card {
    background: white;
    padding: 26px;
    border-radius: 24px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    border-left: 8px solid #3f7cff;
}

.notice-date {
    color: #777;
    font-size: 14px;
    margin-bottom: 8px;
}

.notice-tag {
    display: inline-block;
    color: white;
    padding: 5px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 10px;
}

.kindergarten {
    background: #ff8ac2;
}

.elementary {
    background: #4caf50;
}

.junior {
    background: #ff9800;
}

.high {
    background: #673ab7;
}

.university {
    background: #2196f3;
}

.notice-card h2 {
    font-size: 24px;
    margin: 8px 0;
}

.briefing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 18px 0;
    overflow: hidden;
    border-radius: 14px;
}

.briefing-table th,
.briefing-table td {
    border: 1px solid #e2e8f0;
    padding: 13px;
    text-align: left;
    vertical-align: top;
}

.briefing-table th {
    width: 120px;
    background: #eef4ff;
    color: #2456c5;
}

.btn-apply {
    border: none;
    background: linear-gradient(135deg, #3f7cff, #00bcd4);
    color: white;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(63, 124, 255, 0.3);
}

.no-notice {
    display: none;
    text-align: center;
    background: white;
    padding: 24px;
    border-radius: 20px;
    color: #777;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 25px;
    color: #666;
}

@media (max-width: 760px) {
    header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .notice-hero h1 {
        font-size: 30px;
    }

    .notice-search-area {
        grid-template-columns: 1fr;
    }

    .notice-count {
        text-align: left;
    }

    .notice-card {
        padding: 20px;
    }

    .notice-card h2 {
        font-size: 20px;
    }

    .briefing-table th,
    .briefing-table td {
        display: block;
        width: 100%;
    }
}

/* page top fixed button */
.page-top-btn {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9999;
    width: 120px;
    display: block;
    transition: transform .2s ease, opacity .2s ease;
}

.page-top-btn:hover {
    transform: translateY(-5px) scale(1.03);
}

.page-top-btn img {
    width: 100%;
    display: block;
}

@media (max-width: 600px) {
    .page-top-btn {
        width: 86px;
        right: 12px;
        bottom: 12px;
    }
}
