/* --- Global Styles & Variables (Koi-Fit24 Staff LP) --- */
:root {
    --kfs-primary-color: #1E293B;
    /* Slate-like dark blue */
    --kfs-secondary-color: #FFFFFF;
    --kfs-accent-color: #1E88E5;
    /* Calm blue for CTAs */
    --kfs-accent-color-dark: #1565C0;
    --kfs-line-green: #06C755;
    /* LINE brand */
    --kfs-text-color: #2C3E50;
    /* on light */
    --kfs-text-light: #607D8B;
    /* muted */
    --kfs-bg-body: #F7FAFC;
    /* subtle light */
    --kfs-bg-light: #FFFFFF;
    --kfs-bg-medium: #EEF2F7;
    --kfs-card-shadow: 0 8px 24px rgba(30, 41, 59, 0.12);
    --kfs-card-hover-shadow: 0 12px 28px rgba(30, 41, 59, 0.18);
    --kfs-border-radius: 12px;
    --kfs-font-primary: 'Noto Sans JP', sans-serif;
    --kfs-font-accent: 'Poppins', sans-serif;
    --kfs-transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body.kfs-body {
    font-family: var(--kfs-font-primary);
    line-height: 1.75;
    color: var(--kfs-text-color);
    background-color: var(--kfs-bg-body);
    margin: 0;
    padding: 0;
    font-size: 16px;
}

.kfs-container {
    width: 90%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Buttons --- */
.kfs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform var(--kfs-transition), box-shadow var(--kfs-transition), background-color var(--kfs-transition), color var(--kfs-transition);
    border: 2px solid transparent;
}

.kfs-btn i {
    margin-right: 0.45em;
}

.kfs-btn-lg {
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
}

.kfs-btn-line {
    background: var(--kfs-line-green);
    color: var(--kfs-secondary-color);
    box-shadow: 0 6px 16px rgba(6, 199, 85, 0.25);
}

.kfs-btn-line:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(6, 199, 85, 0.35);
}

.kfs-btn-outline {
    background: transparent;
    color: var(--kfs-accent-color);
    border-color: var(--kfs-accent-color);
}

.kfs-btn-outline:hover {
    background: var(--kfs-accent-color);
    color: var(--kfs-secondary-color);
    transform: translateY(-2px);
}

/* --- Header --- */
.kfs-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    transition: background-color var(--kfs-transition), box-shadow var(--kfs-transition), padding var(--kfs-transition);
    padding: 0.9rem 0;
}

.kfs-header.scrolled-kfs {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 0.7rem 0;
}

.kfs-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.kfs-logo {
    font-family: var(--kfs-font-accent);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--kfs-primary-color);
    text-decoration: none;
}

.kfs-logo .sub {
    font-size: 0.7em;
    color: var(--kfs-accent-color);
    margin-left: 0.35em;
    letter-spacing: 0.05em;
}

/* Header logo image size */
.kfs-logo-image {
    height: 24px;
    width: auto;
    display: block;
}

@media (min-width: 768px) {
    .kfs-logo-image {
        height: 26px;
    }
}

.kfs-nav {
    display: none;
    align-items: center;
    gap: 1.25rem;
}

.kfs-nav a {
    color: var(--kfs-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--kfs-transition);
}

.kfs-nav a:hover {
    color: var(--kfs-accent-color);
}

.kfs-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: var(--kfs-accent-color);
    transition: width var(--kfs-transition);
}

.kfs-nav a:hover::after {
    width: 100%;
}

.kfs-menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--kfs-primary-color);
    cursor: pointer;
}

@media (min-width: 768px) {
    .kfs-nav {
        display: flex;
    }

    .kfs-menu-btn {
        display: none;
    }
}

/* Mobile menu */
.kfs-nav.kfs-mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--kfs-secondary-color);
    padding: 1rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    gap: 0.9rem;
}

.kfs-nav.kfs-mobile-active a,
.kfs-nav.kfs-mobile-active .kfs-btn {
    width: 100%;
    text-align: center;
}

/* --- Hero --- */
.kfs-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: var(--kfs-secondary-color);
    padding: 90px 0 40px;
    text-align: center;
    overflow: hidden;
}

.kfs-hero-bg-image {
    position: absolute;
    inset: 0;
    background: #0b1628 url('../images/pages/hero-gym-staff.jpg') no-repeat center center/cover;
    filter: brightness(0.55) saturate(1.05);
    z-index: 1;
    transform: scale(1.02);
}

.kfs-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, rgba(30, 41, 59, 0.72) 10%, rgba(30, 41, 59, 0.88) 90%);
    z-index: 2;
}

.kfs-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 820px;
    margin: 0 auto;
}

.kfs-title {
    font-family: var(--kfs-font-accent);
    font-size: clamp(2.6rem, 6.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1.2rem 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.kfs-title .hl {
    color: var(--kfs-accent-color);
}

.kfs-subtitle {
    font-size: clamp(1.05rem, 2.8vw, 1.35rem);
    line-height: 1.8;
    opacity: 0.95;
    margin: 0 auto 1.8rem auto;
}

.kfs-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 1.8rem;
}

.kfs-hero-tag {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--kfs-secondary-color);
    padding: 0.4rem 0.9rem;
    border-radius: 9999px;
    font-size: 0.9rem;
}

.kfs-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* --- Sections General --- */
.kfs-section {
    position: relative;
    overflow: hidden;
    padding: 72px 0;
}

.kfs-section:nth-child(even) {
    background: var(--kfs-bg-medium);
}

.kfs-section-header {
    text-align: center;
    margin-bottom: 44px;
}

.kfs-section-title {
    font-family: var(--kfs-font-accent);
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--kfs-primary-color);
    margin: 0 0 12px 0;
    position: relative;
    display: inline-block;
}

.kfs-section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: var(--kfs-accent-color);
    margin: 12px auto 0;
    border-radius: 2px;
}

.kfs-section-sub {
    font-size: 1rem;
    color: var(--kfs-text-light);
    margin: 0 auto;
    max-width: 720px;
    line-height: 1.9;
}

/* Overview */
.kfs-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.kfs-card {
    background: var(--kfs-bg-light);
    border-radius: var(--kfs-border-radius);
    padding: 1.25rem;
    box-shadow: var(--kfs-card-shadow);
    transition: transform var(--kfs-transition), box-shadow var(--kfs-transition);
}

.kfs-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--kfs-card-hover-shadow);
}

.kfs-card-icon {
    font-size: 1.6rem;
    color: var(--kfs-accent-color);
    margin-right: 0.9rem;
}

.kfs-card .kfs-card-content h3 {
    margin: 0 0 0.35rem 0;
    font-size: 1.1rem;
    color: var(--kfs-primary-color);
}

.kfs-card .kfs-card-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--kfs-text-light);
}

.kfs-card.kfs-apply-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 1.8rem 1.4rem;
}

/* Details */
.kfs-details-card {
    max-width: 880px;
    margin: 0 auto;
    padding: 1.6rem 1.4rem;
}

.kfs-details-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    margin: 0;
}

.kfs-details-item {
    display: flex;
    align-items: flex-start;
}

.kfs-check {
    background: var(--kfs-accent-color);
    color: var(--kfs-secondary-color);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.85rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(30, 136, 229, 0.25);
}

.kfs-details-title {
    margin: 0 0 0.2rem 0;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--kfs-primary-color);
}

.kfs-details-desc {
    margin: 0;
    font-size: 0.95rem;
    color: var(--kfs-text-light);
    line-height: 1.8;
}

/* Location */
.kfs-map-container {
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    border-radius: var(--kfs-border-radius);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
    background: #000;
}

.kfs-map-container iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.kfs-location-text {
    text-align: center;
    margin: 0.8rem 0 0 0;
    color: var(--kfs-text-light);
    font-size: 0.98rem;
}

.kfs-location-text i {
    color: var(--kfs-accent-color);
    margin-right: 0.4em;
}

/* Conditions */
.kfs-conditions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.kfs-conditions-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.kfs-conditions-list li {
    color: var(--kfs-text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.kfs-conditions-list li i {
    color: #8BC34A;
    margin-right: 0.5em;
}

.kfs-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--kfs-primary-color);
}

.kfs-card h3 i {
    margin-right: 0.5em;
    color: var(--kfs-accent-color);
}

/* Generic grid (profile/benefits) */
.kfs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

/* Benefits icons */
.kfs-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--kfs-secondary-color);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.kfs-icon-blue {
    background: linear-gradient(135deg, #1E88E5, #1565C0);
}

.kfs-icon-mint {
    background: linear-gradient(135deg, #2DD4BF, #10B981);
}

.kfs-icon-yellow {
    background: linear-gradient(135deg, #F6C945, #F59E0B);
    color: #1E293B;
}

/* Apply */
.kfs-apply-list {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0.8rem 0 0 0;
    color: var(--kfs-text-light);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Footer */
.kfs-footer {
    background: #0F172A;
    color: rgba(255, 255, 255, 0.75);
    padding: 56px 0 26px;
}

.kfs-footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 18px;
}

.kfs-footer-logo {
    font-family: var(--kfs-font-accent);
    font-size: 1.4rem;
    margin: 0 0 0.4rem 0;
    color: var(--kfs-secondary-color);
}

.kfs-footer-logo-sub {
    font-size: 0.75em;
    color: var(--kfs-accent-color);
}

.kfs-footer-about p {
    margin: 0;
    line-height: 1.7;
}

.kfs-footer-links h4,
.kfs-footer-contact h4 {
    margin: 0 0 0.8rem 0;
    font-family: var(--kfs-font-accent);
    font-size: 1.05rem;
    color: var(--kfs-secondary-color);
}

.kfs-footer-links ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.kfs-footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color var(--kfs-transition);
}

.kfs-footer-links a:hover {
    color: var(--kfs-accent-color);
}

.kfs-footer-contact p {
    margin: 0 0 0.6rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kfs-footer-contact p i {
    color: var(--kfs-accent-color);
    width: 20px;
    text-align: center;
}

.kfs-footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.kfs-footer-contact a:hover {
    color: var(--kfs-accent-color);
}

.kfs-footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* --- Animation --- */
/* --- Animation --- */
.kfs-anim {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-delay: var(--delay, 0s);
}

.kfs-anim.fu {
    transform: translateY(40px);
}

.kfs-anim.sr {
    transform: translateX(50px);
}

.kfs-anim.sl {
    transform: translateX(-50px);
}

.kfs-anim.zoom {
    transform: scale(0.94);
}

.kfs-anim.pop {
    transform: scale(0.9);
    opacity: 0;
}

.kfs-anim.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* On Load Animations (Hero) */
.animate-kfs-on-load {
    opacity: 0;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1);
    animation-delay: var(--delay, 0s);
}

.fade-in-up-kfs {
    animation-name: kfsFadeInUp;
    transform: translateY(50px);
}

@keyframes kfsFadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .kfs-section {
        padding: 64px 0;
    }
}

@media (max-width: 767px) {
    body.kfs-body {
        font-size: 15px;
    }

    .kfs-section {
        padding: 52px 0;
    }

    .kfs-section-title {
        margin-bottom: 32px;
    }

    .kfs-hero {
        min-height: 88vh;
        padding: 78px 0 36px;
    }

    .kfs-cta .kfs-btn {
        width: 100%;
        max-width: 320px;
    }

    .kfs-footer-container {
        text-align: center;
    }

    .kfs-footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .kfs-title {
        letter-spacing: -0.01em;
    }

    .kfs-btn {
        padding: 0.7rem 1.1rem;
        font-size: 0.92rem;
    }

    .kfs-btn-lg {
        padding: 0.9rem 1.4rem;
        font-size: 0.98rem;
    }
}