html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
}

.bg-main-blue { background-color: #003495; }
.text-main-blue { color: #003495; }
.border-main-blue { border-color: #003495; }
.border-accent-blue { border-color: #003495; }
.bg-accent-blue { background-color: #003495; }
.bg-accent-blue-light { background-color: #2054B5; }
.bg-main-blue-dark { background-color: #00286f; }
.hover\:bg-accent-blue-light:hover { background-color: #3064C5; }
.text-accent-blue { color: #003495; }

.wow {
    visibility: hidden;
}

.animate__animated {
    --animate-duration: 0.7s;
}

.site-border {
    position: fixed;
    inset: 0;
    border: 10px solid #003495;
    pointer-events: none;
    z-index: 9999;
}

.site-nav-link {
    position: relative;
    padding-bottom: 8px;
}

.site-nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #003495;
    transform: translateX(-50%);
    transition: width 0.3s ease-in-out;
}

.site-nav-link:hover::after,
.site-nav-link.is-active::after {
    width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    min-height: 72px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

.site-header-inner {
    width: 100%;
    max-width: 1536px;
    margin: 0 auto;
    padding: 0.125rem 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-brand {
    color: #003495;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    margin-left: 0.45rem;
    transform: translateY(2px);
}

.site-nav {
    display: none;
    align-items: center;
    gap: 2rem;
    font-weight: 700;
}

.site-nav-item {
    position: relative;
}

.site-nav-link {
    color: inherit;
    transition: color 0.3s ease;
}

.site-subnav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    min-width: 14rem;
    padding: 0.75rem 0;
    border-radius: 0.85rem;
    background-color: #ffffff;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.site-nav-item:hover .site-subnav,
.site-nav-item:focus-within .site-subnav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-subnav-link {
    display: block;
    padding: 0.6rem 1rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.site-subnav--university {
    background-color: #003495;
}

.site-subnav--high-school {
    background-color: #8A1A23;
}

.site-nav-item:has(.site-subnav) .site-nav-link:hover::after {
    width: 0;
}

.site-subnav--university .site-subnav-link:hover {
    background-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.site-subnav--high-school .site-subnav-link:hover {
    background-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

.site-header-cta,
.site-mobile-cta {
    display: inline-block;
    background-color: #003495;
    color: #ffffff;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.site-header-cta:hover,
.site-mobile-cta:hover {
    background-color: #2054B5;
}

.site-header-cta {
    display: none;
}

.site-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #003495;
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
    line-height: 1;
}

.site-mobile-menu {
    display: none;
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.site-mobile-menu.is-open {
    display: block;
}

.site-mobile-link {
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
    color: #374151;
}

.site-mobile-link:hover {
    background-color: #f3f4f6;
}

.site-mobile-group {
    padding: 0.25rem 0 0.5rem;
}

.site-mobile-group-title {
    display: block;
    text-align: center;
    padding: 0.6rem 1rem 0.35rem;
    color: #003495;
    font-weight: 700;
}

.site-mobile-sublink {
    display: block;
    text-align: center;
    padding: 0.45rem 1rem;
    color: #4b5563;
    font-size: 0.95rem;
}

.site-mobile-sublink:hover {
    background-color: #f3f4f6;
    color: #003495;
}

.site-mobile-cta-wrap {
    text-align: center;
    margin-top: 1rem;
}

.site-footer {
    background-color: #003495;
    color: #ffffff;
    padding: 3rem 0 2rem;
}

.site-footer-inner {
    max-width: 1536px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.site-footer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 3rem;
    margin-bottom: 1.5rem;
    color: #d1d5db;
}

.site-footer-link {
    transition: color 0.3s ease;
}

.site-footer-menu-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
    text-align: left;
}

.site-footer-link--heading {
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.site-footer-submenu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    font-size: 0.9375rem;
    color: #fff;
}

.site-footer-sublink {
    color: #d1d5db;
    position: relative;
    padding-left: 1.2rem;
    font-size: 0.88rem;
}

.site-footer-sublink::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 0.75rem;
    border-top: 1px solid currentColor;
    transform: translateY(-50%);
}

.site-footer-link:hover {
    color: #ffffff;
}

.site-footer-org {
    margin-bottom: 0.5rem;
}

.site-footer-copy {
    color: #c1c5cb;
    font-size: 0.875rem;
}

.page-hero {
    background: linear-gradient(135deg, #003495 0%, #5084E5 100%);
    color: #ffffff;
}

.page-hero-inner {
    max-width: 1536px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.page-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.page-breadcrumb-list {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.page-breadcrumb-link:hover {
    text-decoration: underline;
}

.page-hero-content {
    max-width: 56rem;
}

.page-hero-title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.page-hero-label {
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.section-heading-primary {
    font-size: 1.25rem;
    font-weight: 700;
    color: #003495;
    line-height: 1.4;
}

.intro-copy {
    display: grid;
    grid-template-columns: 240px 1px minmax(0, 1fr);
    column-gap: 1.5rem;
    align-items: start;
}

.intro-copy-line {
    background-color: #d1d5db;
    min-height: 100%;
}

.intro-copy-label {
    color: #1F2937;
    padding-top: 0.15rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.intro-copy-body {
    color: #4b5563;
    line-height: 2.1;
    padding-left: 1.5rem;
}

.intro-copy-heading {
    margin-bottom: 1.5rem;
}

.intro-plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 5rem;
}

.intro-plan-card {
    margin: 0;
}

.plan-modal-trigger {
    display: block;
    width: 100%;
}

.plan-modal-trigger img,
.intro-plan-card img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
}

.plan-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background-color: rgba(15, 23, 42, 0.82);
}

.plan-modal.is-open {
    display: flex;
}

.plan-modal-dialog {
    position: relative;
    width: min(1100px, 100%);
    max-height: 90vh;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.plan-modal-dialog img {
    display: block;
    width: 100%;
    max-height: calc(90vh - 7rem);
    object-fit: contain;
    background-color: #ffffff;
}

.plan-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 2rem;
    line-height: 1;
    color: #475569;
}

.plan-modal-caption {
    margin-top: 1rem;
    text-align: center;
    color: #475569;
}

.intro-plan-card figcaption {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #4b5563;
    text-align: center;
}

.intro-gallery {
    background: linear-gradient(180deg, #eef2f7 0%, #dfe4ed 100%);
}

.intro-gallery-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 0.75rem;
}

.intro-gallery-card {
    overflow: hidden;
    background-color: #d1d5db;
}

.intro-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.intro-gallery-card:hover img {
    filter: grayscale(25%);
    transform: scale(1.02);
}

.support-message-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 2rem;
    align-items: start;
}

.support-message-photo {
    text-align: center;
}

.support-message-photo img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.support-message-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.support-message-role {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    color: #6b7280;
}

.schedule-table th,
.schedule-table td {
    padding: 0.5rem;
    font-size: 0.75rem;
    vertical-align: top;
}

.schedule-table th {
    text-align: center;
}

.schedule-table th + th,
.schedule-table td + td {
    border-left: 1px solid #dbeafe;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.article-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #003495;
    border-left: 5px solid #003495;
    padding-left: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.article-content img {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.75rem;
}

.article-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 2rem;
}

#back-to-list-btn:hover {
    background-color: #003495 !important;
    color: #ffffff !important;
}

@media (min-width: 768px) {
    .site-footer-inner,
    .page-hero-inner {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .site-header-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        gap: 0.75rem;
    }

    .site-brand {
        font-size: 0.95rem;
        margin-left: 0;
        transform: none;
        white-space: nowrap;
    }

    .site-nav {
        display: flex;
        gap: 0.75rem;
        font-size: 0.8rem;
    }

    .site-header-cta {
        display: none;
    }

    .site-menu-button {
        display: none;
    }

    .section-heading-primary {
        font-size: 1.625rem;
    }

    .intro-copy-label {
        font-size: 1.625rem;
    }
}

@media (min-width: 1024px) {
    .site-header-inner {
        padding-left: 2rem;
        padding-right: 2rem;
        gap: 1rem;
    }

    .site-brand {
        font-size: 1.1rem;
    }

    .site-nav {
        gap: 1.25rem;
        font-size: 0.875rem;
    }

    .site-header-cta {
        display: inline-block;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (min-width: 1280px) {
    .site-header-inner {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
        gap: 1.5rem;
    }

    .site-brand {
        font-size: 1.5rem;
    }

    .site-nav {
        gap: 2rem;
        font-size: 1rem;
    }

    .site-header-cta {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .page-hero-title {
        font-size: 2.5rem;
    }

    .page-hero-label {
        font-size: 1rem;
    }

    .section-heading-primary {
        font-size: 2rem;
    }

    .intro-copy-label {
        font-size: 2rem;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .support-cta-inner {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

}

@media (max-width: 768px) {
    .intro-copy {
        grid-template-columns: 1fr;
        row-gap: 1rem;
    }

    .intro-copy-line {
        width: 100%;
        min-height: 1px;
    }

    .intro-gallery-grid {
        grid-template-columns: 1fr;
    }

    .intro-plan-grid {
        grid-template-columns: 1fr;
    }

    .support-message-layout,
    .support-cta-grid {
        grid-template-columns: 1fr;
    }

    .support-cta-title {
        font-size: 1.625rem;
    }

    .intro-gallery-card {
        aspect-ratio: 16 / 10;
    }

    .intro-copy-body {
        padding-left: 0;
    }
}

:root {
    --color-high-school: #8A1A23;
    --color-university: #003495;
}

.project-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 2rem;
}

.project-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.2rem;
    border: 1px solid #d1d5db;
    border-radius: 9999px;
    background: #ffffff;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.project-filter-button:hover {
    border-color: #003495;
    color: #003495;
}

.project-filter-button.is-active {
    border-color: #003495;
    background: #003495;
    color: #ffffff;
}

.project-filter-button--university {
    border-color: rgba(0, 52, 149, 0.35);
    color: var(--color-university);
}

.project-filter-button--university:hover {
    border-color: var(--color-university);
    color: var(--color-university);
}

.project-filter-button--university.is-active,
.project-filter-button--university.is-active:hover {
    border-color: var(--color-university);
    background: var(--color-university);
    color: #ffffff;
}

.project-filter-button--high-school {
    border-color: rgba(138, 26, 35, 0.35);
    color: var(--color-high-school);
}

.project-filter-button--high-school:hover {
    border-color: var(--color-high-school);
    color: var(--color-high-school);
}

.project-filter-button--high-school.is-active {
    border-color: var(--color-high-school);
    background: var(--color-high-school);
    color: #ffffff;
}

.project-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.project-card-date {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: nowrap;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
}

.project-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 4.4rem;
    padding: 0.38rem 0.75rem;
    border-radius: 9999px;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
}

.project-card-icon--university {
    background: var(--color-university);
}

.project-card-icon--high-school {
    background: var(--color-high-school);
}

.project-report-card img {
    height: 13.5rem;
}

.project-report-card .p-5 {
    padding: 1.5rem;
}

.project-report-card h3 {
    font-size: 1.3rem;
    line-height: 1.5;
}

.project-report-card p.text-gray-600 {
    font-size: 0.95rem;
    line-height: 1.75;
}

.project-card-hidden {
    display: none !important;
}

.section-project-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding: 0.45rem 0.9rem;
    border-radius: 9999px;
    background: rgba(0, 52, 149, 0.08);
    color: var(--color-university);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-project-chip::before {
    content: "";
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 9999px;
    background: var(--color-university);
    box-shadow: 0 0 0 4px rgba(0, 52, 149, 0.14);
}

.section-project-chip--high-school {
    background: rgba(138, 26, 35, 0.08);
    color: var(--color-high-school);
}

.section-project-chip--high-school::before {
    background: var(--color-high-school);
    box-shadow: 0 0 0 4px rgba(138, 26, 35, 0.14);
}

.section-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 13rem;
    padding: 0.95rem 1.6rem;
    border-radius: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.section-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.18);
}

.section-cta-button--university {
    background: var(--color-university);
}

.section-cta-button--university:hover {
    background: #2054B5;
}

.section-cta-button--high-school {
    background: var(--color-high-school);
}

.section-cta-button--high-school:hover {
    background: #a52631;
}

@media (max-width: 767px) {
    #progress,
    #univ-concept,
    #high-concept,
    #greeting,
    #donation {
        font-size: 0.94rem;
    }

    #progress h2,
    #univ-concept h2,
    #high-concept h2,
    #greeting h2 {
        font-size: 1.85rem !important;
    }

    #donation h2 {
        font-size: 1.75rem;
        line-height: 1.4;
    }

    #progress > div > p,
    #univ-concept > div > div > div p.text-gray-500,
    #high-concept > div > div > div p.text-gray-500,
    #greeting > div > div > div p.text-gray-500,
    #donation p.text-gray-300 {
        font-size: 0.92rem !important;
    }

    .project-filter-button {
        font-size: 0.82rem;
        padding: 0.58rem 0.9rem;
    }

    .project-card-date {
        font-size: 0.78rem;
    }

    .project-card-icon {
        min-width: 3.8rem;
        padding: 0.32rem 0.6rem;
        font-size: 0.68rem;
    }

    .project-report-card .p-5 {
        padding: 1.1rem;
    }

    .project-report-card h3 {
        font-size: 1.05rem;
        line-height: 1.45;
    }

    .project-report-card p.text-gray-600 {
        font-size: 0.82rem;
        line-height: 1.6;
    }

    .section-project-chip {
        font-size: 0.72rem;
    }

    #univ-concept h3,
    #high-concept h3 {
        font-size: 1.35rem;
        margin-bottom: 1rem;
    }

    #univ-concept p.text-base,
    #high-concept p.text-base,
    #greeting p.text-lg,
    #donation .max-w-3xl {
        font-size: 0.9rem !important;
        line-height: 1.75;
    }

    #univ-concept ul,
    #high-concept ul {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .section-cta-button,
    #donation a.text-lg {
        min-width: 11.5rem;
        padding: 0.82rem 1.2rem;
        font-size: 0.92rem;
    }
}
