/* =========================================================================
   Gymsta Kingdom — Premium Redesign
   Reference tone: imaiunso.com (deep navy, bold type, professional)
   Reference design: yahagijisyo.co.jp (generous whitespace, minimal lines)
   ========================================================================= */

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

/* =========================================================================
   Design Tokens
   ========================================================================= */
:root {
    /* Core Palette — inspired by pacificleague.jp */
    --navy:        #010719;      /* deep black/navy */
    --navy-mid:    #002b5c;      /* dark blue */
    --navy-light:  #142847;
    --accent:      #0055b4;      /* pacific blue */
    --accent-mid:  #015dc4;
    --accent-glow: rgba(0, 85, 180, 0.15);
    --gold:        #699ed9;      /* light blue accent */

    /* Surface */
    --bg-page:     #F4F6F9;      /* clean cool white */
    --bg-white:    #FFFFFF;
    --bg-light:    #EDF1F5;

    /* Text */
    --text-dark:   #010719;
    --text-body:   #1A202C;
    --text-muted:  #707A8A;
    --text-white:  #FFFFFF;
    --text-light:  rgba(255,255,255,0.75);

    /* Lines */
    --line-subtle: rgba(0,0,0,0.06);
    --line-navy:   rgba(1,7,25,0.15);

    /* Type */
    --font-sans:   'Noto Sans JP', sans-serif;
    --font-serif:  'Noto Serif JP', serif;
    --font-latin:  'Outfit', sans-serif;

    /* Motion */
    --ease-out:    cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-pop:    cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --duration:    0.35s;

    /* Radius */
    --radius-sm:   4px;
    --radius-md:   8px;
    --radius-lg:   16px;
    --radius-xl:   32px;
    --radius-pill: 999px;
}

/* =========================================================================
   Reset & Base
   ========================================================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    background: var(--bg-page);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }

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

.container {
    width: min(90%, 1160px);
    margin-inline: auto;
}

.section {
    padding-block: 100px;
}

/* =========================================================================
   Utility — Thin decorative lines (yahagijisyo.co.jp style)
   ========================================================================= */
.divider-line {
    display: block;
    width: 40px;
    height: 1px;
    background: var(--navy);
    margin: 20px auto;
    opacity: 0.35;
}

.divider-line--left {
    margin-left: 0;
}

/* =========================================================================
   Typography Helpers
   ========================================================================= */
.eyebrow {
    font-family: var(--font-latin);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.section-title--white {
    color: var(--text-white);
}

.section-subtitle {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 16px;
    line-height: 1.8;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--duration) var(--ease-out);
    border: 1.5px solid transparent;
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn--primary:hover {
    background: var(--accent-mid);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(44, 94, 255, 0.35);
}

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.btn--ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.8);
}

.btn--outline-dark {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn--outline-dark:hover {
    background: var(--navy);
    color: #fff;
}

.btn-arrow {
    width: 18px;
    height: 18px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--duration) var(--ease-out);
    flex-shrink: 0;
}

.btn:hover .btn-arrow {
    transform: rotate(45deg) translate(3px, -3px);
}

/* =========================================================================
   Scroll Reveal
   ========================================================================= */
.reveal-up {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-44px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right {
    opacity: 0;
    transform: translateX(44px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0);
}

.fade-in-up {
    animation: fadeInUp 0.9s var(--ease-out) forwards;
    opacity: 0;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
    from { opacity: 0; transform: translateY(28px); }
}

/* =========================================================================
   Header
   ========================================================================= */
.header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    transition: background var(--duration), box-shadow var(--duration), backdrop-filter var(--duration);
    background: transparent;
}

/* Scrolled state added by JS */
.header.scrolled {
    background: rgba(10, 15, 46, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
}

.logo img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-text-jp {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    opacity: 0.75;
    display: block;
    line-height: 1;
}

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

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.04em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width var(--duration) var(--ease-out);
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-btn {
    padding: 8px 22px;
    border-radius: var(--radius-pill);
    font-size: 0.83rem !important;
    font-weight: 600 !important;
    border: 1.5px solid rgba(255,255,255,0.55);
    color: rgba(255,255,255,0.9) !important;
    background: transparent;
    transition: all var(--duration) var(--ease-out);
}

.nav-btn:hover {
    background: rgba(255,255,255,0.12) !important;
    border-color: rgba(255,255,255,0.9) !important;
}
.nav-btn::after { display: none !important; }

@media (max-width: 840px) {
    .nav-links a:not(.nav-btn) { display: none; }
    .nav-links { gap: 16px; }
}

/* =========================================================================
   HERO — imaiunso.com style dark full-bleed
   ========================================================================= */
.hero {
    position: relative;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--navy);
}

.hero-bg-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    opacity: 0;
    transform: scale(1.05);
    animation: heroSlideFade 24s infinite linear;
}

@keyframes heroSlideFade {
    0% { opacity: 0; transform: scale(1.05); }
    4% { opacity: 0.38; }
    25% { opacity: 0.38; }
    29% { opacity: 0; }
    100% { opacity: 0; transform: scale(1.0); }
}

.hero-bg-slide:nth-child(1) { animation-delay: 0s; }
.hero-bg-slide:nth-child(2) { animation-delay: 6s; }
.hero-bg-slide:nth-child(3) { animation-delay: 12s; }
.hero-bg-slide:nth-child(4) { animation-delay: 18s; }

/* Diagonal gradient — imaiunso.com pattern */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(10,15,46,0.92) 0%, rgba(10,15,46,0.55) 60%, rgba(44,94,255,0.15) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 680px;
    padding-top: 72px; /* header height */
    text-align: center;
    margin: 0 auto;
}

.hero-eyebrow {
    font-family: var(--font-latin);
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
    content: '';
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--gold);
    opacity: 0.7;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
}

.hero-title em {
    font-style: normal;
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 2;
    margin-bottom: 44px;
    font-weight: 300;
    letter-spacing: 0.04em;
}

.hero-subtitle-en {
    font-family: var(--font-latin);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
    margin-top: 6px;
    display: block;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.4);
    font-family: var(--font-latin);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(0.6); }
}

/* =========================================================================
   About Section
   ========================================================================= */
.about {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: 'ABOUT';
    position: absolute;
    right: -2rem;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-family: var(--font-latin);
    font-size: 9rem;
    font-weight: 900;
    color: var(--bg-light);
    pointer-events: none;
    letter-spacing: 0.1em;
    white-space: nowrap;
    line-height: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-text-inner {
    max-width: 480px;
}

.about-desc {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-body);
    margin-top: 32px;
}

.about-image-wrap {
    position: relative;
}

.about-image-wrap img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
}

.about-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    position: relative;
}

.about-image-grid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.4s var(--ease-out);
}

.about-image-grid img:hover { transform: scale(1.03); z-index: 2; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.about-image-grid img:first-child { border-radius: var(--radius-lg) var(--radius-md) var(--radius-md) var(--radius-md); }
.about-image-grid img:last-child { border-radius: var(--radius-md) var(--radius-md) var(--radius-lg) var(--radius-md); }

/* Decorative frame — yahagijisyo.co.jp layered image style */
.about-image-wrap::before,
.about-image-grid::before {
    content: '';
    position: absolute;
    inset: -16px -16px auto auto;
    width: 60%;
    height: 60%;
    border-top: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    opacity: 0.3;
    border-radius: 0 var(--radius-md) 0 0;
    pointer-events: none;
    z-index: 0;
}

.about-stat-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-subtle);
    border: 1px solid var(--line-subtle);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 40px;
}

.about-stat {
    background: var(--bg-white);
    padding: 24px 20px;
    text-align: center;
}

.about-stat-num {
    font-family: var(--font-latin);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    display: block;
}

.about-stat-num span {
    font-family: var(--font-latin);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.about-stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.04em;
}

@media (max-width: 900px) {
    .about::before { display: none; }
    .about-grid { grid-template-columns: 1fr; gap: 48px; position: relative; }
    .about-image-wrap img { height: 320px; }
    .about-stat-num { font-size: 1.8rem; }
}

/* =========================================================================
   Flow Section
   ========================================================================= */
.flow {
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

/* Subtle texture dots */
.flow::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.flow .section-title { color: var(--text-white); }
.flow .section-subtitle { color: rgba(255,255,255,0.55); }
.flow .eyebrow { color: var(--gold); }

.flow-notice {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    margin: 48px auto 0;
    max-width: 800px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
}

.flow-notice strong { color: var(--gold); font-weight: 600; }

.flow-steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 0;
    margin-top: 56px;
}

.step-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all var(--duration) var(--ease-out);
    position: relative;
}

.step-card:hover {
    background: rgba(44, 94, 255, 0.15);
    border-color: rgba(44, 94, 255, 0.4);
    transform: translateY(-6px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-latin);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(44, 94, 255, 0.4);
}

.step-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.step-desc {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
}

.step-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    padding-top: 56px; /* align with step number center */
}

.step-connector-line {
    display: flex;
    align-items: center;
    gap: 4px;
}

.step-connector-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(44, 94, 255, 0.5);
}
.step-connector-dot:nth-child(2) { background: rgba(44, 94, 255, 0.35); }
.step-connector-dot:nth-child(3) { background: rgba(44, 94, 255, 0.2); }

@media (max-width: 900px) {
    .flow-steps {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 12px;
        padding-bottom: 24px;
        -webkit-overflow-scrolling: touch;
        scroll-padding-inline: 5%;
        margin-inline: -1rem;
        padding-inline: 1rem;
    }
    .flow-steps::-webkit-scrollbar {
        height: 6px;
    }
    .flow-steps::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.05);
        border-radius: 4px;
    }
    .flow-steps::-webkit-scrollbar-thumb {
        background: rgba(44, 94, 255, 0.4);
        border-radius: 4px;
    }
    .step-card {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
    .step-connector {
        flex: 0 0 auto;
        padding: 0;
        transform: none !important;
    }
    .step-connector-line { display: none; }
    .step-connector::after {
        content: '→';
        font-size: 2rem;
        color: var(--gold);
        opacity: 0.8;
    }
}

/* =========================================================================
   Locations / Store Search
   ========================================================================= */
.store-search {
    background: var(--bg-page);
    position: relative;
}

.search-wrap {
    max-width: 560px;
    margin: 40px auto 0;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 16px 24px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    background: var(--bg-white);
    border: 1.5px solid var(--line-subtle);
    border-radius: var(--radius-pill);
    outline: none;
    color: var(--text-dark);
    transition: border-color var(--duration), box-shadow var(--duration);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.search-input::placeholder { color: var(--text-muted); }

.search-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(44,94,255,0.1);
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.store-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line-subtle);
    display: flex;
    flex-direction: column;
    transition: transform var(--duration) var(--ease-pop), box-shadow var(--duration) var(--ease-out);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.store-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(10,15,46,0.12);
}

.store-img-wrap {
    position: relative;
    overflow: hidden;
}

.store-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}

.store-card:hover .store-img {
    transform: scale(1.06);
}

.store-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 14px;
    border-radius: var(--radius-pill);
    font-family: var(--font-latin);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    background: var(--navy);
    color: var(--gold);
    z-index: 1;
}

.store-body {
    padding: 28px 28px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.store-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.store-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    flex: 1;
}

.store-footer {
    padding: 20px 28px 28px;
    border-top: 1px solid var(--line-subtle);
    margin-top: auto;
}

.store-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 13px 20px;
    border: 1.5px solid var(--navy);
    border-radius: var(--radius-pill);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
    background: transparent;
    transition: all var(--duration) var(--ease-out);
    letter-spacing: 0.03em;
}

.store-btn:hover {
    background: var(--navy);
    color: #fff;
}

.store-btn .store-btn-arrow {
    font-size: 1rem;
    transition: transform var(--duration) var(--ease-out);
}

.store-btn:hover .store-btn-arrow {
    transform: translateX(4px);
}

/* Coming soon card */
.store-card--soon {
    opacity: 0.55;
    pointer-events: none;
}

@media (max-width: 760px) {
    .store-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        gap: 16px;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .store-grid::-webkit-scrollbar { display: none; }
    .store-card {
        flex: 0 0 82%;
        max-width: 340px;
        scroll-snap-align: center;
    }
}

/* =========================================================================
   Features Section
   ========================================================================= */
.features {
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

/* Section label watermark */
.features::after {
    content: 'FEATURES';
    position: absolute;
    left: -3rem;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-family: var(--font-latin);
    font-size: 8rem;
    font-weight: 900;
    color: var(--bg-light);
    letter-spacing: 0.1em;
    white-space: nowrap;
    pointer-events: none;
    line-height: 1;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 100px;
    margin-top: 72px;
    position: relative;
    z-index: 1;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl;
}
.feature-row.reverse > * {
    direction: ltr;
}

.feature-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.feature-image-wrap img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    transition: transform 0.7s var(--ease-out);
    display: block;
}

.feature-row:hover .feature-image-wrap img {
    transform: scale(1.04);
}

/* Corner accent lines — yahagijisyo style */
.feature-image-wrap::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 50%;
    height: 50%;
    border-bottom: 1px solid var(--navy);
    border-right: 1px solid var(--navy);
    opacity: 0.15;
    border-radius: 0 0 var(--radius-sm) 0;
    pointer-events: none;
}

.feature-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-number {
    font-family: var(--font-latin);
    font-size: 5rem;
    font-weight: 900;
    color: var(--bg-light);
    line-height: 1;
    margin-bottom: -8px;
    letter-spacing: -0.04em;
}

.feature-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 20px;
}

.feature-sep {
    width: 40px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    margin-bottom: 20px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.9;
}

@media (max-width: 900px) {
    .features::after { display: none; }
    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: 32px;
    }
    .feature-image-wrap img { height: 260px; }
    .feature-number { font-size: 3.5rem; }
    .feature-title { font-size: 1.4rem; }
}

/* =========================================================================
   CTA Banner
   ========================================================================= */
.cta-banner {
    position: relative;
    background: var(--navy);
    overflow: hidden;
    padding-block: 80px;
    text-align: center;
}

.cta-banner-bg {
    position: absolute;
    inset: 0;
    background-image: url('images/gymsta-kingdom/ad_banner.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.cta-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10,15,46,0.9) 0%, rgba(10,15,46,0.75) 100%);
}

.cta-banner-content {
    position: relative;
    z-index: 2;
}

.cta-banner-title {
    font-family: var(--font-sans);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
}

.cta-banner-sub {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
    letter-spacing: 0.06em;
}

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
    background: var(--navy-mid);
    padding-block: 64px 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.04em;
}

.footer-brand span { color: var(--gold); }

.footer-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
    line-height: 1.8;
}

.footer-col-title {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 20px;
    font-family: var(--font-latin);
    font-weight: 600;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    transition: color var(--duration);
}
.footer-links a:hover { color: var(--gold); }

.footer-bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copyright {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.04em;
}

.footer-powered {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.06em;
}
.footer-powered a { color: rgba(255,255,255,0.35); }
.footer-powered a:hover { color: rgba(255,255,255,0.6); }

@media (max-width: 760px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* =========================================================================
   Misc — mt-N helpers
   ========================================================================= */
.mt-4  { margin-top: 16px; }
.mt-5  { margin-top: 20px; }
.mt-10 { margin-top: 40px; }
.text-center { text-align: center; }

/* =========================================================================
   Mobile global tweaks
   ========================================================================= */
@media (max-width: 580px) {
    .section { padding-block: 68px; }
    .hero-title { font-size: 2.4rem; }
    .hero-quote-mark { font-size: 5rem; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .btn { width: 100%; justify-content: center; }
    
    /* Header optimization */
    .logo { font-size: 0.95rem; gap: 8px; }
    .logo img { height: 28px; }
    .header { height: 60px; }
    
    /* Search input */
    .search-input { padding: 12px 18px; font-size: 0.85rem; }
    .search-wrap { margin-top: 24px; }
    
    /* About Us - Sophisticated Card Overlay */
    .about { padding-block: 0 80px; }
    .about-grid { display: flex; flex-direction: column; padding-block: 0; position: relative; }
    
    .about-image-wrap { 
        order: -1; 
        position: relative; 
        top: auto; left: auto; right: auto; bottom: auto;
        opacity: 1; 
        mix-blend-mode: normal; 
        z-index: 0;
        width: 100vw;
        height: 380px;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
    }
    .about-image-wrap img { height: 100%; width: 100%; object-fit: cover; border-radius: 0 !important; }
    .about-image-wrap::before { display: none; }
    
    .about-text-inner { 
        order: 1;
        position: relative; 
        z-index: 2; 
        background: var(--bg-white);
        padding: 40px 24px;
        margin-top: -60px; /* overlapping effect */
        border-radius: var(--radius-lg);
        box-shadow: 0 12px 40px rgba(10,15,46,0.06);
    }
    
    /* About Us - Stats Row (Horizontal) */
    .about-stat-strip { 
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1px; 
        margin-top: 32px;
    }
    .about-stat { padding: 16px 8px; }
    .about-stat-num { font-size: 1.35rem; }
    .about-stat-num span { font-size: 0.8rem; }
    .about-stat-label { font-size: 0.65rem; margin-top: 4px; }
    
    /* Features - Staggered layout */
    .feature-row, .feature-row.reverse { gap: 16px; margin-bottom: 72px; padding-inline: 4px; }
    .feature-image-wrap img { height: 260px; box-shadow: 0 10px 30px rgba(10,15,46,0.08); }
    
    .feature-number { font-size: 4rem; position: relative; z-index: 2; margin-bottom: -24px; color: var(--navy); opacity: 0.15; }
    
    .feature-row:nth-child(odd) .feature-number { margin-left: 12px; }
    .feature-row:nth-child(odd) .feature-text { padding-right: 16px; }
    
    .feature-row:nth-child(even) .feature-number { text-align: right; margin-right: 12px; }
    .feature-row:nth-child(even) .feature-title { text-align: right; }
    .feature-row:nth-child(even) .feature-sep { margin-left: auto; }
    .feature-row:nth-child(even) .feature-text { padding-left: 16px; text-align: right; }
}