:root {
    /* Color Palette */
    --clr-bg: #FDFBF7;
    --clr-main: #1A2B3D;
    --clr-accent: #A63D40;
    --clr-text: #2C3E50;
    --clr-text-muted: #5D6D7E;
    --clr-white: #FFFFFF;
    --clr-glass: rgba(255, 255, 255, 0.85);

    /* Gradients */
    --grad-hero: linear-gradient(135deg, rgba(26, 43, 61, 0.95) 0%, rgba(26, 43, 61, 0.4) 100%);

    /* Fonts */
    --font-serif: "Noto Serif JP", serif;
    --font-sans: "Outfit", sans-serif;

    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 100px 0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--clr-main);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-padding);
}

.bg-alt {
    background-color: #F4F0E8;
}

.text-center {
    text-align: center;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    backdrop-filter: blur(10px);
    background-color: var(--clr-glass);
    transition: 0.4s;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    font-family: var(--font-sans);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: var(--clr-main);
    color: var(--clr-white);
}

.btn-primary:hover {
    background-color: var(--clr-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(166, 61, 64, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background-color: var(--clr-white);
    color: var(--clr-main);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--clr-white);
    background: var(--clr-main) url('hero.png') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-tag {
    font-family: var(--font-sans);
    color: var(--clr-accent);
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

#hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--clr-white);
    margin-bottom: 2rem;
}

.highlight {
    color: #F1C40F;
    /* Golden accent */
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.3);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background-color: var(--clr-accent);
    animation: scrollSlide 2s infinite ease-in-out;
}

@keyframes scrollSlide {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(300%);
    }
}

/* News Section */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 3rem;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.news-date {
    font-family: var(--font-sans);
    color: var(--clr-accent);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.news-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.news-desc {
    color: var(--clr-text-muted);
}

.page-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.page-card {
    background: var(--clr-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.03);
    border-top: 3px solid transparent;
    transition: 0.3s ease;
}

.page-card:hover {
    transform: translateY(-4px);
    border-top-color: var(--clr-accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.page-card__label {
    display: inline-block;
    margin-bottom: 0.9rem;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--clr-accent);
}

.page-card__title {
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.page-card__desc {
    color: var(--clr-text-muted);
    margin-bottom: 1.4rem;
}

.page-card__link {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--clr-main);
}

.admin-link {
    font-size: 0.8rem;
    color: #ccc;
    text-decoration: none;
}

.admin-link:hover {
    color: var(--clr-accent);
}

.section-title.center {
    text-align: center;
    padding-bottom: 1.5rem;
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-family: var(--font-sans);
    color: var(--clr-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.9rem;
    margin-bottom: 3rem;
    display: block;
}

/* Greeting Section */
.greeting-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--clr-white);
    padding: 4rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    position: relative;
}

.greeting-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    text-align: justify;
}

.greeting-signature {
    margin-top: 4rem;
    text-align: right;
}

.greeting-signature span {
    font-size: 1.6rem;
    font-weight: 700;
    margin-top: 0.5rem;
    display: inline-block;
}

/* About Table */
.about-table {
    max-width: 900px;
    margin: 4rem auto 0;
}

.about-table table {
    width: 100%;
    border-collapse: collapse;
}

.about-table th,
.about-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
}

.about-table th {
    width: 30%;
    font-weight: 700;
    color: var(--clr-main);
    background-color: rgba(26, 43, 61, 0.02);
}

.about-table ul {
    list-style: disc;
    margin-left: 1.5rem;
}

.about-table ul li {
    margin-bottom: 0.5rem;
}

/* Mission Section Update (for spacing) */
.bg-alt {
    background-color: #F4F0E8;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

/* Mission Section */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--clr-accent);
}

.mission-text p {
    margin-bottom: 1.5rem;
    color: var(--clr-text-muted);
}

.img-frame {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 20px 20px 0 var(--clr-accent);
}

.img-frame img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Sub-page Specific Styles */
.nav-links a.active {
    color: var(--clr-accent);
    font-weight: 600;
}

.activity-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.activity-detail-card {
    background: var(--clr-white);
    padding: 3rem 2.5rem;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.02);
    border-bottom: 3px solid transparent;
    transition: 0.3s ease;
}

.activity-detail-card:hover {
    transform: translateY(-5px);
    border-bottom: 3px solid var(--clr-accent);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
}

.activity-detail-card h3 {
    margin: 1.5rem 0 1rem;
    font-size: 1.5rem;
}

.detail-list {
    margin-top: 1.5rem;
    padding-left: 1.2rem;
    list-style: square;
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

.detail-list li {
    margin-bottom: 0.5rem;
}

.activity-teaser {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* Page Header Styles for Sub-pages */
main>.page-header {
    background: var(--clr-main);
    color: var(--clr-white);
    padding: 160px 0 80px;
}

/* Activity Cards (Original styles kept) */
.activity-card {
    background-color: var(--clr-white);
    padding: 3.5rem 2.5rem;
    border-radius: 8px;
    text-align: center;
    transition: 0.4s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* CTA */
.cta-section {
    background-color: var(--clr-main);
    color: var(--clr-white);
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    color: var(--clr-white);
    font-size: 3rem;
    margin-bottom: 2rem;
}

/* Footer */
#footer {
    background-color: #111;
    color: #eee;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

#footer h4 {
    color: var(--clr-white);
    font-family: var(--font-sans);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--clr-accent);
    padding-left: 5px;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: #777;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile responsive */
@media (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        width: 30px;
        height: 2px;
        background-color: var(--clr-main);
        transition: 0.3s;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    #hero h1 {
        font-size: 3rem;
    }
}
