/* FV - First View Styles */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Lato:wght@300;400;700&family=Noto+Serif+JP:wght@300;400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --re-main: #0077b6;
    --re-accent: #f59e0b;
    --re-base: #ffffff;
    --re-dark: #0f172a;
    --re-gray: #64748b;
    --re-light: #f0f9ff;
    --re-navy: #0077b6;
    --re-gold: #f59e0b;
}

/* Hero Map Container */
#hero-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Hero Section Adjustments */
.fv-hero-section {
    position: relative;
    overflow: hidden;
    height: 400vh;
}

.fv-hero-section * {
    box-sizing: border-box;
}

/* Font Family Override for FV */
.fv-hero-section,
.fv-hero-section * {
    font-family: 'Noto Serif JP', serif;
}

.fv-font-serif {
    font-family: 'Cinzel', 'Noto Serif JP', serif;
}

.fv-font-sans {
    font-family: 'Lato', 'Noto Serif JP', sans-serif;
}

/* Customize Map Controls */
.maplibregl-ctrl-bottom-right,
.maplibregl-ctrl-bottom-left {
    display: none;
}

/* Fixed Hero Container */
.fv-hero-fixed {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Hero Content Grid */
.fv-hero-content {
    height: 100%;
    display: flex;
    align-items: center;
}

.fv-hero-grid {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
    position: relative;
    z-index: 10;
    display: grid;
    gap: 3rem;
    align-items: center;
    pointer-events: none;
}

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

.fv-hero-text {
    pointer-events: auto;
    color: var(--re-dark);
}

@media (min-width: 768px) {
    .fv-hero-text {
        grid-column: span 8;
    }
}

/* Tagline */
.fv-tagline {
    display: inline-block;
    border-bottom: 2px solid var(--re-main);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.fv-tagline p {
    color: var(--re-main);
    font-size: 0.875rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

/* Main Heading */
.fv-heading {
    font-size: 2.25rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--re-dark);
    filter: drop-shadow(0 1px 1px rgba(255,255,255,0.5));
}

@media (min-width: 768px) {
    .fv-heading {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .fv-heading {
        font-size: 3.75rem;
    }
}

.fv-heading-accent {
    color: var(--re-main);
    font-style: italic;
}

/* Description */
.fv-description {
    color: var(--re-gray);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 3rem;
    max-width: 36rem;
    line-height: 2;
}

/* CTA Buttons */
.fv-cta-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .fv-cta-wrapper {
        flex-direction: row;
    }
}

.fv-btn-primary {
    background-color: var(--re-accent);
    color: white;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.3);
    transition: opacity 0.3s;
    text-decoration: none;
    display: inline-block;
}

.fv-btn-primary:hover {
    opacity: 0.8;
}

.fv-btn-secondary {
    border: 2px solid var(--re-dark);
    color: var(--re-dark);
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    background: transparent;
}

.fv-btn-secondary:hover {
    background-color: var(--re-dark);
    color: white;
}

/* Floating Card */
.fv-floating-card-wrapper {
    display: none;
    align-self: flex-end;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .fv-floating-card-wrapper {
        display: block;
        grid-column: span 4;
    }
}

.fv-floating-card {
    background: white;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-top: 4px solid var(--re-main);
}

.fv-card-title {
    color: var(--re-main);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.fv-card-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--re-light);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.fv-card-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.fv-card-label {
    color: #9ca3af;
    font-size: 0.875rem;
}

.fv-card-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--re-dark);
    text-align: right;
}

.fv-card-value-small {
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

/* About Content (Parallax) */
.fv-about-content {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    padding: 0 1.5rem;
}

.fv-about-inner {
    max-width: 64rem;
    margin: 0 auto;
    width: 100%;
}

/* Glass Card */
.fv-glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

@media (min-width: 768px) {
    .fv-glass-card {
        padding: 4rem;
    }
}

/* About Text Section */
.fv-about-text {
    text-align: center;
    margin-bottom: 4rem;
}

.fv-about-heading {
    font-size: 1.875rem;
    color: var(--re-main);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .fv-about-heading {
        font-size: 2.25rem;
    }
}

.fv-about-description {
    color: var(--re-dark);
    font-size: 1.125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 2;
}

@media (min-width: 768px) {
    .fv-about-description {
        font-size: 1.25rem;
    }
}

/* Numbers Grid */
.fv-numbers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    align-items: center;
    text-align: center;
}

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

.fv-number-item {
    padding: 1rem;
    border-left: 1px solid rgba(0, 119, 182, 0.2);
}

.fv-number-item:first-child {
    border-left: none;
}

@media (max-width: 767px) {
    .fv-number-item:nth-child(odd) {
        border-left: none;
    }
}

.fv-number-label {
    color: var(--re-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.fv-number-value {
    font-size: 2.25rem;
    color: var(--re-main);
}

@media (min-width: 768px) {
    .fv-number-value {
        font-size: 3rem;
    }
}

.fv-number-suffix {
    font-size: 1.125rem;
    margin-left: 0.25rem;
}

