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

:root {
    /* Brand Colors */
    --color-primary: #33b5cc; /* Water Blue */
    --color-primary-dark: #2aa5bc;
    --color-primary-light: #e8f8fc;
    --color-accent: #ff7e67; /* Soft Red/Coral for CTA */
    
    /* Instagram Aesthetic Extension */
    --color-insta-green: #a3d944;
    --color-insta-yellow: #fdd835;
    --color-insta-pink: #f06292;
    --color-insta-blue: #4fc3f7;
    
    --color-bg: #ffffff;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-border: #eeeeee;
    
    /* Spacing & Sizes */
    --container-width: 1200px;
    --section-padding: 100px 24px;
    --section-padding-mobile: 60px 20px;
    
    /* Utilities */
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --radius-lg: 20px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-rounded {
    font-family: 'Noto Serif JP', 'M PLUS Rounded 1c', serif;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.05em;
}

.tag-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

li {
    list-style: none;
}

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

/* Layout Sections */
section {
    padding: var(--section-padding);
}

@media (max-width: 768px) {
    section {
        padding: var(--section-padding-mobile);
    }
}

/* ============================================
   Header & Nav - RENEW/2026 Style (Horizontal)
   ============================================ */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 90px;
    height: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--color-border);
}

.header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 15px 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    background: transparent;
}

.logo-text {
    font-family: 'M PLUS Rounded 1c', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.logo-year {
    font-weight: 400;
    color: var(--color-text-light);
    font-size: 1rem;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--color-text);
    padding: 0 4px;
    height: 32px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    text-decoration: none;
}

.nav-text-wrapper {
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a span {
    display: block;
    height: 32px;
    line-height: 32px;
}

.nav-links a span.jp {
    color: var(--color-primary);
    font-size: 0.75rem;
}

.nav-links a:hover .nav-text-wrapper {
    transform: translateY(-32px);
}

/* Underline effect removed or simplified for sliding nav */
.nav-links a:hover {
    color: var(--color-primary);
}

.nav-links a.nav-recruit-link span.en {
    color: var(--color-accent);
}

.nav-links a.nav-recruit-link:hover span.jp {
    color: var(--color-accent);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition);
}

@media (max-width: 992px) {
    .hamburger { display: flex; }
}

/* ============================================
   UI Elements
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
    transition: var(--transition);
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(51, 181, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background-color: var(--color-primary-dark);
}

.btn-accent {
    background-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 126, 103, 0.3);
}

.btn-accent:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-booking {
    background: linear-gradient(135deg, #ff7e67 0%, #ff9a44 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 126, 103, 0.4);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-booking::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: all 0.6s;
}

.btn-booking:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(255, 126, 103, 0.5);
    filter: brightness(1.05);
}

.btn-booking:hover::before {
    left: 100%;
}

/* ============================================
   Hero Section
   ============================================ */
.hero.insta-optimized {
    background: linear-gradient(180deg, var(--color-primary) 0%, #2aa5bc 60%, var(--color-primary-light) 100%);
    padding-top: 180px; 
    padding-bottom: 0; /* Important for boundary snap */
    position: relative;
    overflow: visible; /* CRITICAL for spanning glass box */
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-image: url('../img/4103579_m.jpg');
    background-size: cover;
    background-position: center 40%;
    opacity: 0.3;
    filter: saturate(1.4) brightness(1.1);
    mix-blend-mode: luminosity;
}

.hero-slideshow {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-slideshow .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slideshow .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0,0,0,0.25), 0 0 40px rgba(0,150,180,0.3);
}

/* ---- Entry Animations ---- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-fade-up {
    animation: fadeInUp 0.8s ease-out both;
}
.anim-delay-1 { animation-delay: 0.2s; }
.anim-delay-2 { animation-delay: 0.45s; }
.anim-delay-3 { animation-delay: 0.7s; }

/* ---- Button Pulse ---- */
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
    50% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}

.btn-pulse {
    animation: fadeInUp 0.8s ease-out both, btnPulse 2.5s ease-in-out 1.5s infinite;
}

.hero-event-label {
    color: rgba(255,255,255,0.95);
    font-size: 1.4rem;
    letter-spacing: 0.4em;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Spanning Glass Box (Robust Flex Wrapper Method) */
.hero-glass-box-wrapper {
    position: relative;
    z-index: 100;
    margin-top: -80px; /* Pull up to straddle (spanning effect) */
    margin-bottom: 40px;
    width: 100%;
    display: flex;
    justify-content: center; /* Perfect centering */
    pointer-events: none; /* Let clicks through wrapper if needed */
}

.hero-glass-box {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 40px;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 760px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    pointer-events: auto; /* Re-enable clicks for content */
}

/* Date Section Details (Compact) */
.date-section {
    flex: 1;
    text-align: center;
}

.date-header {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 10px;
    margin-bottom: -5px;
}

.date-header .label {
    font-size: 13px;
    color: #333;
    font-weight: 700;
}

.year-prefix {
    font-size: 18px;
    color: #B2B2B2;
    font-weight: 400;
}

.date-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: #22B4CD;
    font-size: 64px; /* Reduced from 96px */
    font-weight: 900;
    line-height: 1;
}

.date-display .dot { font-size: 42px; margin: 0 2px; }
.date-display .separator { margin: 0 12px; font-weight: 400; color: #22B4CD; }

.dow {
    font-size: 14px;
    color: #F09B32;
    margin-left: 3px;
    position: relative;
    top: -28px; /* Adjusted for smaller size */
    font-weight: 800;
}

.time-range {
    font-size: 14px;
    color: #888;
    letter-spacing: 0.1em;
    margin-top: 5px;
    font-weight: 700;
}

/* Divider */
.glass-divider {
    width: 1px;
    height: 80px; /* Reduced from 120px */
    background: rgba(0, 0, 0, 0.08);
    margin: 0 40px;
}

/* Right Section Details (Countdown - Compact) */
.countdown-section {
    flex: 1;
    text-align: center;
}

.countdown-header {
    font-size: 14px;
    color: #333;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.timer-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 15px;
    margin-top: 15px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.timer-item .number {
    font-size: 42px; /* Reduced from 56px */
    color: #22B4CD;
    font-weight: 800;
    line-height: 1;
}

.unit {
    font-size: 10px;
    color: #999;
    margin-top: 6px;
    font-weight: 800;
}

.colon {
    font-size: 24px;
    color: #DDD;
    padding-top: 8px;
}

.hero-date-days small {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-insta-yellow);
    margin-left: 2px;
    margin-right: 6px;
    vertical-align: middle;
}

.hero-date-time {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-insta-yellow);
    margin-top: 8px;
    letter-spacing: 0.15em;
}

/* ============================================
   Section Wave Dividers
   ============================================ */
.section-wave {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.section-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 80px;
}

/* ============================================
   Section Header
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.section-logo-mark {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
}

.section-logo-mark img {
    height: 120px;
    width: auto;
}

/* ============================================
   Mission Grid & Items
   ============================================ */
.mission-item p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-light);
}

.mission-item h3 {
    font-size: 1.4rem;
    margin-bottom: 24px;
}

/* Story Section */
.story-content p {
    font-size: 1.1rem;
    line-height: 1.9;
}

/* ============================================
   Card Refinement
   ============================================ */
.card {
    background: #fff;
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

/* ============================================
   Exhibitor Grid
   ============================================ */
.exhibitor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.exhibitor-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: none;
    box-shadow: var(--shadow);
}

.card-img {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-img .city-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 4px 12px;
    background: rgba(51, 181, 204, 0.9);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-top-left-radius: 10px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.card-body {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* .city-tag removed from body as it is now an overlay */

.experience-title {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 10px 0;
    flex-grow: 1;
}

.tags {
    margin-bottom: 20px;
}

.tags .filter-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 5px;
    margin-bottom: 5px;
    border: none;
}

.card-footer {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    flex: 1;
}

/* ============================================
   Tag Filters & Search
   ============================================ */
.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    justify-content: center;
}

.filter-tag {
    cursor: pointer;
    padding: 6px 15px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-tag:hover, .filter-tag.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.search-box {
    max-width: 500px;
    margin: 0 auto;
}

.search-box input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 30px;
    border: 2px solid var(--color-primary-light);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(51, 181, 204, 0.1);
}

/* ============================================
   Voices
   ============================================ */
.voices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* ============================================
   Partners Grid
   ============================================ */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.partner-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 30px 15px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid rgba(0,0,0,0.04);
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(51, 181, 204, 0.15);
}

.partner-card img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 15px;
}

.partner-card span {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 5px;
}

.partner-card small {
    color: var(--color-text-light);
    font-size: 0.8rem;
}

/* ============================================
   Instagram Section
   ============================================ */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .insta-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.insta-item {
    aspect-ratio: 5 / 4;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-size: 110%;
    background-position: center center;
    background-color: var(--color-primary-light);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.insta-item:hover {
    transform: scale(1.03);
}

.insta-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary-dark);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
}

.insta-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    z-index: 2;
}

/* Category Colors */
.tag-green { background-color: var(--color-insta-green) !important; color: #fff !important; }
.tag-yellow { background-color: var(--color-insta-yellow) !important; color: #333 !important; }
.tag-pink { background-color: var(--color-insta-pink) !important; color: #fff !important; }
.tag-blue { background-color: var(--color-insta-blue) !important; color: #fff !important; }

/* Outline Text */
.text-outline {
    -webkit-text-stroke: 1.5px var(--color-primary);
    color: transparent;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

/* ============================================
   Footer
   ============================================ */
footer {
    padding: 60px 0 40px;
    background: #fff;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
}

.footer-logo img {
    height: 70px;
    width: auto;
    margin: 0 auto 5px;
}

.footer-info {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.8rem;
}

/* ============================================
   Voices Section 窶・Horizontal Scroll + Speech Bubbles
   ============================================ */
.voices-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) transparent;
    padding: 0 0 20px;
}

.voices-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.voices-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.voices-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.voices-scroll-track {
    display: flex;
    gap: 30px;
    padding: 0 max(24px, calc((100vw - 1100px) / 2));
    width: max-content;
}

.voice-panel {
    scroll-snap-align: center;
    width: 360px;
    min-width: 360px;
    background: var(--color-primary-light);
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.voice-panel-company {
    color: var(--color-primary);
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-primary);
}

.voice-panel-photo {
    width: 100%;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
}

.voice-panel-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

/* Speech Bubbles */
.voice-bubble {
    position: relative;
    background: #fff;
    border-radius: 16px;
    padding: 16px 18px 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.voice-bubble p {
    font-size: 0.9rem;
    line-height: 1.75;
    color: var(--color-text);
    margin: 0;
}

/* Bubble tail 窶・right side */
.voice-bubble-right::after {
    content: '';
    position: absolute;
    bottom: 14px;
    right: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #fff;
}

/* Bubble tail 窶・left side */
.voice-bubble-left::after {
    content: '';
    position: absolute;
    bottom: 14px;
    left: -10px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 12px 8px 0;
    border-color: transparent #fff transparent transparent;
}

.voice-bubble-attr {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-primary);
    padding: 2px 10px;
    border-radius: 10px;
}

.voice-bubble-left .voice-bubble-attr {
    right: auto;
    left: 14px;
}

@media (max-width: 768px) {
    .voice-panel {
        width: 300px;
        min-width: 300px;
    }
    .voices-scroll-track {
        padding: 0 16px;
    }
}

/* ============================================
   Floating Whirlpool Decorations (uzusio_ao SVG)
   ============================================ */
.floating-whirlpool {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
    animation: rotate-whirl 40s linear infinite;
}

.floating-whirlpool img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   Waves & Bottom Whirlpool
   ============================================ */
.waves-divider {
    position: relative;
    width: 100%;
    height: 100px;
    background: transparent;
    overflow: visible;
    line-height: 0;
    margin-top: 40px;
}

.wave-svg {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: 200%;
    height: 60px;
    animation: wave-move 20s linear infinite;
}

.wave-svg path {
    fill: var(--color-primary);
}

@keyframes wave-move {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.whirlpool-container {
    position: absolute;
    right: 5%;
    top: -70px;
    width: 140px;
    height: 140px;
    z-index: 10;
    animation: rotate-whirl 20s linear infinite;
}

.whirlpool-left {
    right: auto;
    left: 5%;
    width: 98px;
    height: 98px;
}

.whirlpool-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top-btn {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 56px;
    height: 56px;
    z-index: 9999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(51, 181, 204, 0.4);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: translateY(-4px);
    background: var(--color-primary-dark);
    box-shadow: 0 6px 24px rgba(51, 181, 204, 0.5);
}

.back-to-top-arrow {
    font-size: 0.9rem;
    color: #fff;
    line-height: 1;
    margin-top: 2px;
}

.back-to-top-text {
    font-size: 0.6rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 0.1em;
    line-height: 1;
}

@keyframes rotate-whirl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Utils
   ============================================ */
.active {
    display: flex !important;
}

/* ============================================
   Recruitment Page (Join)
   ============================================ */
.join-hero {
    padding: 160px 24px 100px;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, var(--color-primary-light) 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.join-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/4103579_m.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    mix-blend-mode: overlay;
}

.join-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.join-hero h1 {
    font-size: 3.2rem;
    margin-bottom: 24px;
    line-height: 1.3;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.join-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.join-benefit-visual-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
}

.benefit-visual-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 30px;
    align-items: center;
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 45px rgba(51, 181, 204, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.02);
}

.benefit-visual-item:hover {
    transform: translateX(10px);
    border-color: var(--color-primary);
}

.benefit-num {
    font-size: 4rem;
    font-weight: 900;
    color: rgba(51, 181, 204, 0.25);
    line-height: 1;
    font-family: 'M PLUS Rounded 1c', sans-serif;
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 90px; /* Compensate for fixed header */
    text-align: center;
}

.benefit-num::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--color-primary);
}

.benefit-visual-content h3 {
    font-size: 1.6rem;
    color: var(--color-primary-dark);
    margin-bottom: 12px;
}

.benefit-visual-content p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

/* Accent Card for Importance */
.accent-card {
    background: linear-gradient(135deg, #fff 0%, var(--color-primary-light) 100%);
    border-left: 8px solid var(--color-primary);
}

@media (max-width: 768px) {
    .benefit-visual-item {
        grid-template-columns: 1fr;
        padding: 30px;
        text-align: center;
    }
    .benefit-num {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    .benefit-num::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Recruitment Info Table */
.info-table-wrapper {
    margin-top: 40px;
    overflow-x: auto;
}

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

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

.info-table th {
    width: 200px;
    color: var(--color-primary);
    font-weight: 700;
    vertical-align: middle; /* Center vertically */
}

.highlight-row td {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--color-primary-dark);
}

/* Voice Cards Redesign */
.join-voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.join-voice-card {
    background: #fff;
    border: 2px solid var(--color-primary-light);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(51, 181, 204, 0.05);
    transition: var(--transition);
}

.join-voice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(51, 181, 204, 0.1);
    border-color: var(--color-primary);
}

.voice-icon-side {
    flex-shrink: 0;
    text-align: center;
    width: 100px;
}

.voice-icon-side img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 10%; /* Focus more on the top/face area */
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.05);
}

.voice-meta {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-light);
    line-height: 1.3;
}

.voice-content-side {
    flex-grow: 1;
}

.voice-headline {
    font-size: 1.3rem;
    color: #e67e22; /* Adjust to match reference's warm tone */
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.4;
    font-family: 'M PLUS Rounded 1c', sans-serif;
}

.voice-body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
}

@media (max-width: 600px) {
    .join-voice-grid {
        grid-template-columns: 1fr;
    }
    .join-voice-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .voice-icon-side {
        width: 100%;
        margin-bottom: 15px;
    }
}

.info-table tr:last-child th, .info-table tr:last-child td {
    border-bottom: none;
}

/* CTA Section */
.join-cta {
    background: var(--color-primary-dark);
    color: #fff;
    text-align: center;
    padding: 80px 24px;
    border-radius: var(--radius-lg);
    margin-top: 60px;
}

@media (max-width: 992px) {
    .header-container {
        position: relative;
    }
    header .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255,255,255,0.98);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 0;
    }
    header .nav-links.active {
        display: flex !important;
    }
    header .nav-links a {
        width: 100%;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }
    header .nav-links a span {
        height: 50px;
        line-height: 50px;
        font-size: 1rem;
    }
    /* Show Japanese primarily on mobile for clarity */
    header .nav-links a .en { display: none; }
    header .nav-links a span.jp { 
        display: block !important;
        font-size: 1.1rem; 
        color: var(--color-primary-dark); 
    }
    header .nav-links a .nav-text-wrapper {
        transform: none !important;
    }
}

/* Premium Enterprise Recruitment Section */
.join-home-premium {
    position: relative;
    padding: 120px 20px;
    background-image: url('../img/4103579_m.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.join-home-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(0, 150, 180, 0.4), rgba(255, 255, 255, 0.1));
    z-index: 1;
}

.join-home-premium .container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.enterprise-glass-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 60px 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.enterprise-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    margin-bottom: 20px;
    padding: 4px 12px;
    border: 1px solid var(--color-accent);
    border-radius: 4px;
}

.enterprise-title {
    font-size: 3rem;
    line-height: 1.3;
    margin-bottom: 25px;
    font-weight: 800;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    color: #fff;
}

.enterprise-subtext {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 500;
    color: #fff;
}

.enterprise-subtext span {
    display: block;
    font-size: 1rem;
    margin-top: 10px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .join-home-premium {
        padding: 80px 20px;
        background-attachment: scroll;
    }
    .enterprise-glass-card {
        padding: 40px 20px;
    }
    .enterprise-title {
        font-size: 1.8rem;
    }
    .enterprise-subtext {
        font-size: 1.1rem;
    }
}

/* Video Hero Styles */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
}

.hero.insta-optimized .hero-content {
    position: relative;
    z-index: 10; /* Ensure content is above video */
}

/* ============================================
   Sponsor & Supporter Sections
   ============================================ */
.sponsor-section {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 2px solid #eee;
    text-align: center;
}

.sponsor-heading {
    font-size: 1.6rem;
    color: var(--color-primary-dark);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.sponsor-heading-icon {
    font-size: 1.4rem;
}

.sponsor-tier {
    margin-bottom: 40px;
}

.sponsor-tier-label {
    display: inline-block;
    padding: 6px 28px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border-radius: 20px;
    margin-bottom: 20px;
    color: #fff;
}

.sponsor-tier-gold {
    background: linear-gradient(135deg, #d4a024, #f4d03f);
    color: #5a4000;
}

.sponsor-tier-silver {
    background: linear-gradient(135deg, #8e9aaf, #c0c8d4);
    color: #3a4050;
}

.sponsor-tier-bronze {
    background: linear-gradient(135deg, #a67c52, #cd9a6e);
    color: #3e2a14;
}

.sponsor-tier-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.sponsor-logo-item {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 160px;
}

.sponsor-logo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.sponsor-grid-gold .sponsor-logo-item {
    font-size: 1.1rem;
    padding: 22px 36px;
    border-color: #f4d03f;
    min-width: 200px;
}

.sponsor-grid-silver .sponsor-logo-item {
    font-size: 1rem;
    border-color: #c0c8d4;
}

.sponsor-grid-bronze .sponsor-logo-item {
    font-size: 0.9rem;
    padding: 14px 22px;
    min-width: 140px;
}

.supporter-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #eee;
    text-align: center;
}

.supporter-list {
    font-size: 0.95rem;
    line-height: 2.2;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   Floating Whirlpool Decorations
   ============================================ */
.floating-whirlpool {
    position: absolute !important; /* Ensure absolute positioning for decoration */
    pointer-events: none;
    z-index: 1;
    opacity: 0.08;
    animation: rotate-whirl 40s linear infinite;
}

.floating-whirlpool img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
}

@keyframes rotate-whirl {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* News Section Styles */
.news-list {
    max-width: 1000px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
}
.news-item {
    display: flex;
    align-items: center;
    padding: 25px 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}
.news-item:hover { transform: translateX(10px); }
.news-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
    padding-right: 30px;
    border-right: 2px solid var(--color-primary-light);
}
.news-date-day { font-size: 2.2rem; font-weight: 900; line-height: 1; color: var(--color-primary); }
.news-date-month { font-size: 0.9rem; color: #888; font-weight: 700; }
.news-content { display: flex; flex-direction: column; padding-left: 40px; }
.news-category {
    font-size: 0.75rem;
    font-weight: 900;
    padding: 4px 14px;
    border-radius: 50px;
    width: fit-content;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}
.news-category-info { background: var(--color-primary-light); color: var(--color-primary-dark); }
.news-category-event { background: #fff5f3; color: #ff7e67; }
.news-title {
    font-size: 1.15rem;
    font-weight: 800; /* HIGH VISIBILITY */
    color: #1a1a1a; /* HIGH CONTRAST */
    margin: 0;
    line-height: 1.6;
}
.news-badge-new {
    font-size: 0.65rem;
    background: #ff7e67;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    margin-left: 15px;
    font-weight: 900;
    vertical-align: middle;
}

@media (max-width: 768px) {
    .news-item { flex-direction: column; align-items: flex-start; padding: 20px; }
    .news-date { flex-direction: row; align-items: baseline; border-right: none; border-bottom: 2px solid var(--color-primary-light); padding-right: 0; padding-bottom: 10px; margin-bottom: 15px; min-width: auto; gap: 10px; }
    .news-content { padding-left: 0; }
}
