@import "https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&family=Outfit:wght@400;700&display=swap";

:root {
    --brand-green: #8bc044;
    --brand-orange: #f39800;
    --brand-blue: #9cf;
    --brand-yellow: gold;
    --text-main: #2c3e50;
    --text-muted: #7f8c8d;
    --bg-white: #fff;
    --bg-light: #f8fafc;
    --grid-color: #99ccff1a;
    --card-shadow: 0 10px 30px #0000000d;
    --card-hover-shadow: 0 20px 40px #0000001a;
    --font-heading: "Outfit", "Noto Sans JP", sans-serif;
    --font-body: "Noto Sans JP", sans-serif;
    --transition: all .3s cubic-bezier(.4, 0, .2, 1)
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden
}

.grid-bg {
    background-image: linear-gradient(var(--grid-color) 1px, transparent 1px), linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    z-index: -1;
    pointer-events: none;
    background-size: 40px 40px;
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px
}

.site-header {
    background: #fff;
    border-bottom: 1px solid #0000000d;
    padding: 20px 0
}

.site-logo {
    color: inherit;
    align-items: center;
    text-decoration: none;
    display: flex
}

.school-name {
    border-left: 1px solid #0000001a;
    flex-direction: column;
    margin-left: 20px;
    padding-left: 20px;
    display: flex
}

.school-name .corp {
    color: var(--text-muted);
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.2
}

.school-name .school {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2
}

.site-logo img {
    width: auto;
    height: 50px
}

.hero-banner {
    background: #f8fafc;
    padding: 60px 0
}

.hero-header {
    max-width: 800px;
    margin-bottom: 40px
}

.hero-header h1 {
    color: var(--text-main);
    margin-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2
}

.hero-header p {
    color: var(--text-muted);
    margin-left: 2rem;
    font-size: 1.2rem
}

.hero-content {
    background: #fff;
    border-radius: 40px;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px #0000001a
}

.hero-img {
    object-fit: cover;
    width: 100%;
    height: auto;
    min-height: 400px;
    display: block
}

.site-footer {
    text-align: center;
    background: #fff;
    border-top: 1px solid #0000000d;
    margin-top: 100px;
    padding: 60px 0
}

.footer-links {
    margin-bottom: 20px
}

.footer-links a {
    color: var(--brand-green);
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none
}

.footer-links a:hover {
    text-decoration: underline
}

.copyright {
    color: var(--text-muted);
    font-size: .85rem
}

.blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    padding-bottom: 80px;
    display: grid
}

.blog-card {
    background: var(--bg-white);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    color: inherit;
    border: 1px solid #00000008;
    border-radius: 20px;
    flex-direction: column;
    text-decoration: none;
    display: flex;
    overflow: hidden
}

.blog-card:hover {
    box-shadow: var(--card-hover-shadow);
    transform: translateY(-10px)
}

.card-image {
    background-color: #f0f3f5;
    background-position: 50%;
    background-size: cover;
    width: 100%;
    height: 220px
}

.card-content {
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
    display: flex
}

.card-tag {
    text-transform: uppercase;
    color: var(--brand-green);
    background-color: #8bc0441a;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 12px;
    padding: 4px 12px;
    font-size: .75rem;
    font-weight: 700;
    display: inline-block
}

.card-tag.news {
    color: var(--brand-orange);
    background-color: #f398001a
}

.card-title {
    font-family: var(--font-heading);
    margin-bottom: 12px;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4
}

.card-excerpt {
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 20px;
    font-size: .95rem
}

.card-footer {
    color: var(--text-muted);
    border-top: 1px solid #0000000d;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    font-size: .85rem;
    display: flex
}

.post-header {
    text-align: center;
    max-width: 800px;
    margin: 60px auto 40px
}

.post-meta {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: .9rem
}

.post-title {
    font-family: var(--font-heading);
    margin-bottom: 30px;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2
}

.post-featured-image {
    width: 100%;
    height: 400px;
    box-shadow: var(--card-shadow);
    background-color: #f0f3f5;
    background-position: 50%;
    background-size: cover;
    border-radius: 30px;
    margin-bottom: 60px
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8
}

.post-content h2 {
    font-family: var(--font-heading);
    border-left: 6px solid var(--brand-green);
    margin: 60px 0 24px;
    padding-left: 16px;
    font-size: 1.8rem
}

.post-content p {
    margin-bottom: 24px
}

.post-content ul {
    margin: 0 0 24px 24px
}

.back-link {
    color: var(--brand-green);
    margin-top: 60px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block
}

@media (width<=768px) {
    h1 {
        font-size: 2.2rem
    }

    .post-title {
        font-size: 2rem
    }

    .blog-grid {
        grid-template-columns: 1fr
    }
}