@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@400;700&display=swap');

:root {
    --primary-color: #00C2CB;
    /* Turquoise */
    --accent-color: #FFD93D;
    /* Yellow */
    --footer-bg: #00BCD4;
    /* Solid Cyan */
    --brand-dark: #134E5E;
    /* Main Dark Text */
    --hero-bg-gradient: linear-gradient(135deg, rgba(0, 188, 212, 0.15) 0%, #ffffff 60%);
    /* Cyan Gradient (Footer opacity) */
    --sage-bg: #EDF2F2;
    /* Light Sage */
    --bg-color: #ffffff;
    --text-color: #333333;
    /* Dark Gray */
    --light-bg: #F0F8FF;
    --white: #ffffff;

    --font-sans: 'Noto Sans JP', sans-serif;
    --font-serif: 'Noto Serif JP', serif;
}

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

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

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

a:hover {
    opacity: 0.7;
}

ul {
    list-style: none;
}

/* Header Styles */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 4%;
    background-color: var(--white);
    position: sticky;
    /* Optional: make it sticky if desired, or fixed */
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle separation */
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    /* Adjust based on preference, standard header height */
    width: auto;
}

.main-nav {
    margin-left: auto;
    /* Push to the right */
    margin-right: 3rem;
    /* Gap from the contact button */
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.btn-contact {
    background-color: var(--accent-color);
    /* Yellow */
    color: var(--brand-dark);
    /* Dark Text */
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    /* Pill shape */
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-contact:hover {
    background-color: #ffeaa7;
    /* Lighter yellow */
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    margin-right: 1rem;
}

.mobile-menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--brand-dark);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Responsive adjustment for header */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        padding: 6rem 2rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: block;
        /* Override none */
        margin: 0;
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .main-nav a {
        font-size: 1.2rem;
    }

    .site-header {
        padding: 1rem 1.5rem;
        /* Reduce padding on mobile */
    }

    .logo-img {
        height: 30px;
        /* Smaller logo */
    }

    .btn-contact {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Hero Section */
.hero {
    padding: 4rem 4% 6rem;
    background: var(--hero-bg-gradient);
    /* Pale Yellow Gradient */
    text-align: center;
}

.hero-header {
    margin-bottom: 3rem;
}

.eyebrow {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--accent-color);
    /* Gold */
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-title-card {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    /* Responsive size to prevent clipping */
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.1rem;
    line-height: 1.0;
    letter-spacing: -0.05em;
    /* Tighten for better fit */
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    width: 100%;
    overflow-wrap: break-word;
}

.card-education:hover .hero-title-card {
    transform: scale(1.05) translateY(-5px);
}

.card-education:hover .hero-subtitle-card {
    transform: translateY(-5px);
}

.hero-title-card .progdence {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #4466a3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title-card .cross {
    color: var(--accent-color);
    font-weight: 200;
    font-size: 4rem;
    /* Prominent cross */
    margin: -1rem 0;
    /* Tight overlap for dynamic feel */
}

.hero-subtitle-card {
    font-size: 1.2rem;
    /* Larger */
    color: #333;
    letter-spacing: 0.15em;
    font-weight: 700;
    margin-bottom: 0;
    /* Removed to center vertically within card */
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-subtitle-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
}

.card-bottom-info {
    text-align: center;
}

.hero-title {
    display: none;
    /* Hide old title */
}

.hero-subtitle {
    display: none;
    /* Hide old subtitle */
}

/* Hero Cards Grid */
.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 580px;
    /* Vertically long portrait ratio */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    /* Remove default link underline */
    color: inherit;
    /* Inherit text color for links */
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card:hover .card-bg-zoom {
    transform: scale(1.15);
    /* Slow zoom effect */
}

.card-bg-zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 1.5s ease;
    /* Slowly */
    z-index: 0;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.card-bg-overlay {
    z-index: 1;
}

.card-content {
    z-index: 2;
}

/* Card 1: Education (White) */
.card-education {
    background-color: #fff;
    color: var(--primary-color);
    padding: 2rem 1rem;
    /* Reduced horizontal padding */
}

.card-education .icon-placeholder {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: bold;
}

.card-education .card-title-en {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #aaccee;
    /* Light blue accent text */
}

.card-education .card-tag {
    display: inline-block;
    background-color: #edf5fa;
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.65rem;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.card-education .card-desc {
    font-size: 0.75rem;
    color: #333;
    line-height: 1.6;
}

/* Card 2: Training (Gold/Yellow Gradient for now) */
.card-training {
    background-color: #f8f8f8;
    color: #fff;
}

.card-training .vertical-text-box {
    background-color: rgba(255, 255, 255, 0.5);
    /* Increased transparency */
    padding: 2rem 1rem;
    margin-bottom: 2rem;
    /* Vertical text Mode */
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 0.2rem;
    color: #333;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.4rem;
    height: 300px;
    /* Taller for new card height */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-training .bottom-info,
.card-interview .bottom-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Dark overlay at bottom */
    padding: 1rem;
    text-align: left;
}

.card-training .bottom-info {
    background: #103852;
    /* Dark Blue bar */
    text-align: center;
}

.card-training .card-tag {
    display: block;
    font-size: 0.65rem;
    color: #fff;
    /* Highlight color */
    letter-spacing: 0.1em;
    margin-bottom: 0.2rem;
}

.card-training .card-desc {
    font-size: 0.8rem;
    color: #fff;
}

/* Card 3: Interview (Red/Dark Gradient for now) */
.card-interview {
    color: #fff;
}

.card-interview .card-bg-overlay {
    background-color: transparent;
}

.card-interview .card-bg-zoom {
    transform: scale(1.5);
}

.card-interview:hover .card-bg-zoom {
    transform: scale(1.65);
}


.card-interview .vertical-text-right {
    position: absolute;
    top: 2rem;
    right: 2rem;
    writing-mode: vertical-rl;
    text-orientation: upright;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.2rem;
    line-height: 1.8;
}

.card-interview .bottom-info {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
}

.card-interview .play-button {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.card-interview .card-tag {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* Responsive Grid */
@media (max-width: 900px) {
    .hero {
        padding: 2rem 0 0;
        /* Minimal bottom padding */
        /* Remove side padding for full bleed carousel, reduce bottom */
        overflow: hidden;
    }

    .hero-cards {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding: 0 4%;
        /* Add padding back for carousel feel */
        max-width: none;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hero-cards::-webkit-scrollbar {
        display: none;
    }

    .card {
        flex: 0 0 85vw;
        scroll-snap-align: center;
        height: 60vh;
        min-height: 400px;
        max-height: 600px;
    }

    /* Order changes for mobile: Title first, then visuals */
    .card-education {
        height: 60vh;
        min-height: 400px;
        padding: 2rem 1rem;
    }

    .hero-title-card {
        font-size: 2.2rem;
        /* Adjusted */
        margin-bottom: 0.5rem;
    }

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

    .hero-subtitle-card {
        font-size: 1rem;
    }
}

/* Collaboration Section */
.collaboration {
    padding: 6rem 4%;
    background-color: #fff;
    /* Clean white */
    text-align: center;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.eyebrow-center {
    display: block;
    font-size: 0.8rem;
    color: #D4AF37;
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
    font-weight: 700;
}

.collaboration .content-container {
    max-width: 98%;
    /* Even wider for the massive text */
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--brand-dark);
    /* Match hero title */
    margin-bottom: 2rem;
}

.message-title {
    font-size: 3rem;
    /* Reduced to fit on 2 lines as requested */
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.5;
    color: var(--brand-dark);
    letter-spacing: -0.02em;
    font-family: var(--font-serif);
    word-break: keep-all;
    overflow-wrap: break-word;
    margin-right: auto;
}

@media (max-width: 768px) {
    .message {
        padding: 1rem 4% 0.5rem;
        /* Reduce top significantly, bottom to almost zero */
    }

    .message-title {
        font-size: 1.4rem;
        /* Increase back up */
        margin-bottom: 1rem;
        word-break: auto-phrase;
        line-height: 1.5;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .section-text {
        font-size: 1.1rem;
        /* Increased from 0.9rem */
        letter-spacing: -0.05em;
        /* Tighten to prevent wrapping */
        line-height: 1.6;
    }

    .section-text br {
        display: none;
        /* Let it wrap naturally or fit */
    }
}

.section-text {
    font-size: 1.4rem;
    /* Increased from 1.1rem */
    color: #666;
    line-height: 1.8;
}

/* Activities Section */
.activities {
    padding: 2rem 4% 6rem;
    background-color: #fff;
    text-align: center;
}

.section-title-ja {
    font-size: 4.5rem;
    /* Matches Footer Title Size */
    font-weight: 700;
    margin-bottom: 5rem;
    line-height: 1.4;
    color: var(--brand-dark);
    letter-spacing: -0.02em;
    font-family: var(--font-serif);
    text-align: center;
    word-break: keep-all;
    overflow-wrap: break-word;
}

@media (max-width: 768px) {
    .activities {
        padding: 0.5rem 4% 2rem;
        /* Reduce top padding to match tight gap */
    }

    .activities-grid {
        gap: 1rem;
        /* Tighter gap on mobile */
    }

    .section-title-ja {
        font-size: 2rem;
        /* Scale down title */
        margin-bottom: 2rem;
    }
}

.activities .content-container {
    max-width: 1600px;
    margin: 0 auto;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 6 columns for perfect straddling */
    gap: 1.5rem 1rem;
    /* Tighter gap */
    width: 100%;
}

.activities-grid-header {
    grid-column: 1 / -1;
    /* Span all cols */
    text-align: left;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.subsection-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-dark);
    font-family: var(--font-serif);
    letter-spacing: 0.05em;
}

.sponsor-left {
    grid-column: 1 / -1;
}

.sponsor-right {
    grid-column: span 3;
}

.topic-techc {
    grid-column: span 3;
}

.topic-hosei {
    grid-column: span 3;
}

.topic-tokyo {
    grid-column: span 2;
}

.activity-card-split:hover .activity-image-zoom {
    transform: scale(1.15);
    /* Slow zoom effect */
}

.activity-image-side {
    position: relative;
    overflow: hidden;
    flex: 0 0 45%;
    /* Slightly wider image for 1920x1080 balance */
}

.activity-image-zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.activity-card-split {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    height: 450px;
    /* Changed to landscape aspect ratio */
    background-color: #000;
    transition: transform 0.5s ease;
}

.activity-card-split:hover {
    transform: translateY(-10px);
}

.activity-image-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Position text at bottom for landscape flow */
    align-items: flex-start;
    text-align: left;
    /* Explicitly ensure left alignment */
    background: linear-gradient(to top, rgba(0, 48, 87, 0.8) 0%, rgba(0, 0, 0, 0) 60%);
    z-index: 2;
    color: #fff;
    pointer-events: none;
}

.horizontal-title {
    font-size: 1.8rem;
    /* Slightly smaller for better balance */
    line-height: 1.3;
    letter-spacing: 0.05em;
    font-weight: 700;
    font-family: var(--font-serif);
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
    text-align: left;
    /* Explicitly left align title text */
}

.static-tag {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--brand-dark);
    border-left: 3px solid var(--accent-color);
    padding-left: 1rem;
    display: block;
}

@media (max-width: 1200px) {
    .activity-card-split {
        height: 400px;
    }

    .horizontal-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .activity-card-split {
        height: auto;
        min-height: 0;
        /* Remove fixed min-height to avoid gaps */
        display: flex;
        flex-direction: column;
        background-color: #fff;
        /* Ensure white background */
    }

    .activity-image-side {
        position: relative;
        height: 250px;
        /* Fixed height for image part */
        flex: none;
    }

    .card-overlay {
        position: absolute;
        /* Revert to overlay */
        bottom: 0;
        top: auto;
        /* Only bottom half */
        left: 0;
        width: 100%;
        height: auto;
        padding: 1.5rem;
        /* High contrast gradient for readability */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0) 100%);
        color: #fff;
        z-index: 2;
    }

    .horizontal-title {
        font-size: 1.3rem;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        margin-bottom: 0;
    }

    .activity-image-side {
        height: 60vw;
        /* Responsive height */
        min-height: 250px;
    }

    .horizontal-title {
        font-size: 1.5rem;
        color: #fff;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        margin-bottom: 0.5rem;
    }

    /* Reveal hidden text if any, or adjust layout */

    .sponsor-left,
    .sponsor-right,
    .topic-techc,
    .topic-hosei,
    .topic-tokyo {
        grid-column: span 1;
        /* Reset execution */
    }
}

.activity-image {
    background: linear-gradient(135deg, #ff9f43 0%, #ee5253 100%);
    /* Fresh Red/Orange gradient */
    height: 400px;
    border-radius: 4px;
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Simulate the volley ball team illustration feel */
.activity-image::after {
    content: "";
    /* Placeholder for illustration */
    width: 60%;
    height: 60%;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    filter: blur(40px);
}


.image-inner {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.vertical-tag {
    writing-mode: vertical-rl;
    text-orientation: upright;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 2rem 1rem;
    font-family: var(--font-serif);
    color: #333;
    font-weight: 700;
    letter-spacing: 0.2rem;
    border-radius: 50px;
    /* Capsule shape */
}

.activity-meta {
    font-size: 0.8rem;
    color: #ee5253;
    /* Red accent */
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.activity-title {
    font-size: 1.5rem;
    color: var(--brand-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.activity-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.activity-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}





.topic-card {
    background-color: transparent;
    padding: 0;
    padding-bottom: 2rem;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    /* Ensure left-aligned text for titles and tags */
    transition: none;
}

.topic-card:hover {
    transform: none;
    opacity: 0.8;
}

.topics-grid {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

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

.topic-image-container {
    width: 100%;
    aspect-ratio: 3/2;
    /* Standard Landscape for clean grid alignment */
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: #eee;
    border-radius: 12px;
    position: relative;
    /* Added for tag overlay */
}

/* Unified Tag Overlay (White Box with Yellow Bar) */
.topic-image-container .static-tag,
.activity-image-side .static-tag {
    position: absolute;
    top: 1.5rem;
    left: 0;
    background-color: transparent;
    /* Removed white background */
    padding: 0 1.2rem;
    /* Adjusted padding for minimal look */
    margin: 0;
    z-index: 10;
    color: var(--accent-color);
    /* Yellow text */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    /* Strong shadow for readability on photos */
    box-shadow: none;
    /* Removed box shadow */
}

.topic-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 12px;
    /* Match container rounding */
}

.topic-card:hover .topic-img {
    transform: scale(1.1);
}

/* Specific overrides for banners with base transforms */
.topic-hosei .topic-img {
    transform: scale(1.5);
    transform-origin: center 70%;
}

.topic-hosei:hover .topic-img {
    transform: scale(1.65);
}

.topic-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.topic-date {
    /* Red dot style */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #c29b00;
    /* Darker Amber for readability */
    font-family: var(--font-sans);
}

.topic-date::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #c29b00;
}

.topic-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #c29b00;
    margin-left: auto;
    text-transform: capitalize;
}

.topic-title {
    font-size: 0.9rem;
    /* Reduced from 1.1rem */
    color: #111;
    line-height: 1.4;
    margin-bottom: 0.8rem;
    font-weight: 700;
    /* Bolder */
    text-align: left;
    margin-top: 0.5rem;
}

.topic-hashes {
    font-size: 0.7rem;
    color: #999;
    line-height: 1.5;
    text-align: left;
}

/* Recruit Section (HTML/CSS Rebuild) */
/* Recruit Section (Exact Layout Replication) */
.recruit-section {
    padding: 4rem 0;
    /* Reduced from 8rem */
    background-color: #fff;
}

.recruit-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 0 4%;
}

.recruit-visual {
    flex: 0 0 240px;
    height: 360px;
    /* Increased from 240px to make it taller (3:2 approx) */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.recruit-side-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    /* Prioritize the top of the image (faces) */
}

.recruit-left .recruit-side-img,
.recruit-right .recruit-side-img {
    object-position: center;
}

.recruit-content {
    flex: 1;
    text-align: center;
    max-width: 700px;
}

.recruit-header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    /* Reduced */
}

.recruit-title-en {
    font-family: var(--font-sans);
    font-size: 3.5rem;
    /* Reduced from 5rem */
    color: var(--brand-dark);
    letter-spacing: 0.15em;
    font-weight: 300;
    line-height: 1;
}

.recruit-subtitle {
    font-size: 0.9rem;
    color: #4466a3;
    letter-spacing: 0.1em;
}

.recruit-catchphrase {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    /* Reduced from 2.2rem */
    color: #333;
    margin-bottom: 1.5rem;
    /* Reduced */
    letter-spacing: 0.05em;
    line-height: 1.4;
    white-space: nowrap;
}

.recruit-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 2rem;
    /* Reduced from 4rem */
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.btn-recruit-site {
    display: inline-block;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: transparent;
    border-radius: 8px;
}

.btn-recruit-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.2rem 2.5rem;
    background-color: var(--brand-dark);
    color: #fff;
    border-radius: 50px;
    /* Pill shape for "stand out" look */
    box-shadow: 0 10px 30px rgba(19, 78, 94, 0.3);
    transition: all 0.3s ease;
}

.btn-recruit-site:hover {
    transform: translateY(-5px) scale(1.02);
}

.btn-recruit-site:hover .btn-recruit-inner {
    background-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 194, 203, 0.4);
}

.mini-logo {
    height: 48px;
    width: auto;
    /* Filter removed to show original square logo colors */
}

.btn-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.15em;
}

.icon-arrow {
    display: flex;
    align-items: center;
    color: #fff;
}

/* Responsive Recruit Section */
@media (max-width: 1100px) {
    .recruit-container {
        gap: 2rem;
    }

    .recruit-visual {
        flex: 0 0 200px;
        height: 350px;
    }

    .recruit-title-en {
        font-size: 3.5rem;
    }
}

@media (max-width: 800px) {
    .recruit-section {
        padding: 4rem 4%;
        background-image: url('../images/recruit-source.jpg.jpg');
        /* Typo in filename from user context */
        background-size: cover;
        background-position: center;
        position: relative;
        color: #fff;
        /* White text on bg */
        margin-top: 2rem;
    }

    /* Dark overlay for readability */
    .recruit-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.6);
        z-index: 1;
    }

    .recruit-container {
        position: relative;
        z-index: 2;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    /* Hide side images on mobile as we use BG now */
    .recruit-visual {
        display: none;
    }

    .recruit-content {
        padding: 0;
        max-width: 100%;
        color: #fff;
    }

    .recruit-title-en {
        font-size: 2.5rem;
        /* Restore size */
        margin-bottom: 0.5rem;
        color: #fff;
        /* Override dark color */
    }

    .recruit-subtitle {
        font-size: 1rem;
        color: #ddd;
        /* Lighter subtitle */
    }

    .recruit-header {
        margin-bottom: 1.5rem;
        gap: 1rem;
        justify-content: center;
    }

    .recruit-catchphrase {
        font-size: 1.5rem;
        /* Restore size */
        margin-bottom: 1.5rem;
        line-height: 1.4;
        color: #fff;
    }

    .recruit-description {
        display: block;
        font-size: 0.8rem;
        /* Adjusted for 4-line layout */
        line-height: 1.6;
        margin-bottom: 2.5rem;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        /* Remove truncation */
        color: #eee;
    }

    .recruit-footer {
        position: static;
        /* Reset absolute */
        transform: none;
        width: auto;
    }

    .btn-recruit-site {
        width: auto;
        display: inline-block;
    }

    .btn-recruit-inner {
        padding: 1rem 2rem;
        gap: 1.5rem;
        height: auto;
        justify-content: center;
        width: auto;
        background-color: transparent;
        border: 2px solid #fff;
        box-shadow: none;
    }

    .btn-recruit-inner:hover {
        background-color: #fff;
        color: #333;
    }

    .btn-recruit-inner:hover .btn-text,
    .btn-recruit-inner:hover .icon-arrow {
        color: #333;
    }

    .mini-logo {
        height: 32px;
        filter: brightness(0) invert(1);
        /* Make logo white */
    }

    .btn-text {
        font-size: 1rem;
        letter-spacing: 0.1em;
        color: #fff;
    }

    .icon-arrow svg {
        width: 20px;
        height: 20px;
        color: #fff;
    }
}

/* Footer Section */
.site-footer {
    background: var(--footer-bg);
    color: #fff;
    padding: 5rem 4% 2rem;
    position: relative;
    overflow: hidden;
}

.footer-cta {
    max-width: 800px;
    margin-bottom: 6rem;
}

.footer-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.footer-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.btn-footer {
    display: inline-block;
    background-color: var(--accent-color);
    /* Yellow */
    color: var(--brand-dark);
    /* Dark Text */
    padding: 1rem 3rem;
    /* Larger button */
    border-radius: 50px;
    /* Pill shape */
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
}

.btn-footer:hover {
    background-color: #ffeaa7;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    gap: 2rem;
}

.footer-info {
    text-align: right;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 1.5rem;
    color: #fff;
}

.logo-text-footer {
    font-size: 1.2rem;
    font-weight: 700;
}

.logo-img-footer {
    height: 40px;
    /* Match header logo height */
    width: auto;
}

.footer-info p {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 0.3rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    font-size: 0.75rem;
    opacity: 0.6;
}

.footer-links a:hover {
    opacity: 1;
}


/* Mobile for Topics and Footer */
@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-left,
    .sponsor-right,
    .topic-techc,
    .topic-hosei,
    .topic-tokyo {
        grid-column: auto;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 2rem;
    }

    .footer-logo {
        order: 2;
        /* Move to bottom */
        margin-top: 1rem;
        justify-content: flex-start;
        width: 100%;
    }

    .logo-img-footer {
        height: 30px;
        width: auto;
    }

    .footer-info {
        order: 1;
        /* Move to top */
    }

    .footer-logo {
        justify-content: flex-start;
        /* Ensure logo image text aligns left */
        width: 100%;
    }

    .footer-info {
        text-align: left;
        /* Reset from right align */
        margin-top: 0;
        width: 100%;
    }

    .footer-info p {
        font-size: 0.65rem;
        /* Reduced as requested */
        line-height: 1.5;
        opacity: 0.7;
    }

    .copyright {
        font-size: 0.6rem;
        margin-top: 1rem;
    }
}

.tag {
    font-size: 0.75rem;
    color: #888;
    background-color: #f5f5f5;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

/* Message Section */
.message {
    padding: 3rem 4% 1rem;
    background-color: #fcfcfc;
    text-align: center;
}

.content-container {
    max-width: 800px;
    margin: 0 auto;
}

.eyebrow-center {
    display: block;
    font-size: 0.7rem;
    color: #D4AF37;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.section-text {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

/* Activities Section */
.activities {
    padding: 6rem 4%;
    background-color: #fff;
    text-align: center;
}

.section-title-en {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 4rem;
}

.activity-card {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    /* Horizontal Layout */
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    /* For rounds */
    min-height: 400px;
    /* Adjust height directly */
}

/* Left Side: Image */
.activity-image-side {
    flex: 1;
    background: #ff7675;
    /* Fallback Red */
    background: url('../images/activity-img.jpg');
    /* Placeholder logic */
    background-size: cover;
    background-position: center;
    position: relative;
    /* Simulate the illustration */
}

/* Adding a pseudo-element to mimic the illustration visual provided */
.activity-image-side::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
}

/* Right Side: Content */
.activity-content-side {
    flex: 1;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #fff;
}

.activity-badge {
    display: inline-block;
    background-color: #eef4f8;
    /* Light blueish gray */
    color: #5d7c8d;
    /* Muted blue text */
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    align-self: flex-start;
}

.activity-title-new {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: #111;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
}

.activity-desc-new {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.btn-feature {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 2rem;
    border: 1px solid var(--brand-dark);
    border-radius: 6px;
    color: #103852;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    align-self: flex-start;
    width: fit-content;
}

.btn-feature:hover {
    background-color: var(--brand-dark);
    color: #fff;
    opacity: 1;
}

/* Material icon style adjustment if not using actual icon font */
.icon-open {
    font-size: 1rem;
    font-family: sans-serif;
    /* fallback */
}


/* Responsive for Activity Card */
@media (max-width: 768px) {
    .activity-card {
        flex-direction: column;
    }

    .activity-image-side {
        height: 250px;
        flex: none;
    }

    .activity-content-side {
        padding: 2rem;
    }
}

/* Responsive Grid */
@media (max-width: 900px) {
    .hero-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}