*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --xly-dark: #0f172a;
    --xly-accent: #c68642;
    --xly-light: #f6f7fb;
    --xly-muted: #6b7280;
    --xly-border: #e5e7eb;
    --xly-gradient: linear-gradient(135deg, #0f172a 0%, #1f2937 40%, #374151 100%);
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: var(--xly-light);
    color: #111827;
    line-height: 1.6;
}

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

.xly-container {
    width: min(1200px, 90vw);
    margin: 0 auto;
}

.xly-header {
    position: sticky;
    top: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--xly-border);
    backdrop-filter: blur(12px);
}

.xly-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.xly-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.xly-brand__logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.xly-brand__text {
    display: flex;
    flex-direction: column;
    font-family: 'Playfair Display', serif;
}

.xly-nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
}

.xly-nav__bar {
    width: 24px;
    height: 2px;
    background: #111827;
}

.xly-nav__list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.xly-nav__list a {
    text-decoration: none;
    color: #111827;
    font-weight: 500;
}

.xly-hero {
    padding: 6rem 0 4rem;
    background: var(--xly-gradient);
    color: #fff;
}

.xly-hero__content {
    max-width: 540px;
}

.xly-hero__cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.xly-hero__carousel {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
}

.xly-hero__carousel::-webkit-scrollbar {
    display: none;
}

.xly-hero__carousel::after {
    content: '';
    flex: 0 0 1px;
}

.xly-slide {
    position: relative;
    flex: 0 0 25%;
    max-width: 25%;
    min-width: 220px;
    aspect-ratio: 4 / 3;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.35);
    background: #020617;
    cursor: grab;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.xly-hero__carousel.is-dragging {
    cursor: grabbing;
}

.xly-slide:active {
    cursor: grabbing;
}

.xly-slide:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.45);
}

.xly-slide__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.xly-slide__overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.25rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.4), transparent);
    color: #e5e7eb;
    pointer-events: none;
}

.xly-hero__carousel * {
    -webkit-user-drag: none;
}

.xly-slide__overlay h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.xly-slide__overlay p {
    margin: 0;
    font-size: 0.85rem;
    color: #cbd5f5;
}

@media (max-width: 768px) {
    .xly-slide {
        flex-basis: 80%;
        max-width: 80%;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .xly-slide {
        flex-basis: 50%;
        max-width: 50%;
    }
}

.xly-eyebrow {
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--xly-accent);
}

.xly-lead {
    font-size: 1.1rem;
    color: var(--xly-muted);
}

.xly-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.85rem 1.75rem;
    border: none;
    background: var(--xly-accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.xly-btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.xly-about,
.xly-process,
.xly-common,
.xly-clients,
.xly-appointment {
    padding: 4rem 0;
    background: #fff;
}

.xly-about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: center;
}

.xly-about__text {
    padding-right: 1rem;
}

.xly-about__description {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-top: 1rem;
}

.xly-about__description::-webkit-scrollbar {
    width: 6px;
}

.xly-about__description::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.3);
    border-radius: 999px;
}

.xly-about__media video {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.1);
}

.xly-process--dark {
    background: var(--xly-dark);
    color: #f8fafc;
}

.xly-common {
    background: var(--xly-light);
}

.xly-common__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.xly-common__keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.75rem;
    color: #475569;
    font-weight: 500;
}

.xly-common__keywords span::after {
    content: '、';
    margin-left: 0.35rem;
    color: rgba(71, 85, 105, 0.6);
}

.xly-common__keywords span:last-child::after {
    content: '';
}

.xly-common__card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid var(--xly-border);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    text-align: center;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.xly-common__icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.12);
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
    margin-bottom: 1rem;
}

.xly-common__card i {
    font-size: 1.5rem;
    color: var(--xly-accent);
}

.xly-common__card h3 {
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
}

@media (min-width: 992px) {
    .xly-common__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.xly-clients__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2.5rem 2rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.xly-client {
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.6s ease;
}

.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.xly-client:hover {
    transform: translateY(-2px);
}

.xly-client a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
    position: relative;
}

.xly-client a:hover {
    background-color: rgba(15, 23, 42, 0.02);
}

.xly-client__icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    display: block;
    border: 2px solid #d1d5db;
    border-radius: 2px;
    background: #fff;
    transition: all 0.2s ease;
    position: relative;
}

.xly-client:hover .xly-client__icon {
    border-color: var(--xly-accent);
    background: rgba(198, 134, 66, 0.05);
}

.xly-client:hover .xly-client__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--xly-accent);
    border-radius: 1px;
    opacity: 0.3;
}

.xly-client__logo {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 50px;
    padding: 0.25rem 0;
}

.xly-client__logo img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0.2);
    opacity: 0.75;
    transition: all 0.3s ease;
}

.xly-client:hover .xly-client__logo img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.03);
}

@media (max-width: 1200px) {
    .xly-clients__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .xly-clients__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem 1rem;
    }
    
    .xly-client__logo {
        min-height: 45px;
    }
    
    .xly-client__logo img {
        max-height: 45px;
    }
    
    .xly-client__icon {
        width: 16px;
        height: 16px;
    }
    
    .xly-client__icon i {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .xly-clients__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem 1rem;
    }
}

.xly-posts {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.xly-posts__grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    align-items: stretch;
    min-height: 400px;
    visibility: visible !important;
}

.xly-post-card {
    background: #ffffff !important;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: block !important;
    width: 100%;
    min-height: 300px;
    visibility: visible !important;
    opacity: 1 !important;
}

.xly-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

.xly-post-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.xly-post-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    position: relative;
    display: block;
}

.xly-post-card__image img {
    width: 100%;
    height: 100%;
    min-height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-user-drag: none;
    user-select: none;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.xly-post-card:hover .xly-post-card__image img {
    transform: scale(1.1);
}

.xly-post-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.xly-post-card:hover .xly-post-card__overlay {
    opacity: 1;
}

.xly-post-card__read-more {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    pointer-events: none;
}

.xly-post-card:hover .xly-post-card__read-more {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.xly-post-card__content {
    padding: 2rem;
    display: block;
    min-height: 80px;
}

.xly-post-card__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.5;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3em;
}

.xly-post-card:hover .xly-post-card__title {
    color: #c68642;
}

.xly-posts__more {
    text-align: center;
    margin-top: 3rem;
}

.xly-btn--center {
    display: inline-flex;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .xly-posts__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .xly-post-card__content {
        padding: 1.5rem;
    }
    
    .xly-post-card__title {
        font-size: 1.1rem;
    }
    
    .xly-posts__more {
        margin-top: 2rem;
    }
}

.xly-appointment {
    background: var(--xly-dark);
    color: #f8fafc;
}

.xly-appointment__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.xly-appointment__form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.xly-form__row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.xly-appointment__form label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.xly-appointment__form input,
.xly-appointment__form select,
.xly-appointment__form textarea {
    width: 100%;
    padding: 0.85rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-size: 0.95rem;
}

.xly-appointment__form select option {
    color: #111827;
}

.xly-btn--full {
    width: 100%;
    margin-top: 0.5rem;
}

.xly-tabs {
    margin-top: 2rem;
}

.xly-tablist {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.xly-tablink {
    border: 1px solid var(--xly-border);
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    background: #fff;
    color: #1f2937;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.xly-process--dark .xly-tablink {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.1);
}

.xly-tablink__index {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--xly-accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.xly-tablink.is-active {
    background: var(--xly-accent);
    color: #fff;
    box-shadow: 0 10px 20px rgba(198, 134, 66, 0.35);
    border-color: transparent;
}

.xly-process--dark .xly-tablink.is-active {
    background: #fff;
    color: var(--xly-dark);
}

.xly-tabpanels {
    margin-top: 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid var(--xly-border);
    background: #fff;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.xly-process--dark .xly-tabpanels {
    background: rgba(15, 23, 42, 0.65);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.xly-tabpanel {
    display: none;
    padding: 2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.xly-tabpanel.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.xly-tabpanel__content {
    margin-top: 0.75rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.xly-tabpanel__content::-webkit-scrollbar {
    width: 6px;
}

.xly-tabpanel__content::-webkit-scrollbar-thumb {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 999px;
}

.xly-process--dark .xly-tabpanel__content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}

.xly-captcha {
    display: flex;
    flex-direction: column;
}

.xly-alert {
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.xly-alert--success {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.xly-alert--danger {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

.xly-list {
    list-style: none;
    padding: 0;
}

.xly-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.xly-list i {
    color: var(--xly-accent);
}

.xly-footer {
    background: #0b1120;
    color: #cbd5f5;
    padding: 3rem 0 1rem;
}

.xly-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.xly-footer__logo {
    width: 72px;
    margin-bottom: 1rem;
}

.xly-footer__grid a {
    color: #fff;
    text-decoration: none;
}

.xly-certifications {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.xly-certifications img {
    width: 60px;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) brightness(1.1);
}

.xly-footer__bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
    padding-top: 1rem;
}

@media (max-width: 768px) {
    .xly-nav__toggle {
        display: flex;
    }

    .xly-nav__list {
        position: absolute;
        right: 1rem;
        top: 4.5rem;
        flex-direction: column;
        background: #fff;
        padding: 1rem;
        border-radius: 1rem;
        border: 1px solid var(--xly-border);
        display: none;
    }

    .xly-nav__list.is-open {
        display: flex;
    }

    .xly-header__inner {
        flex-wrap: wrap;
    }

    .xly-hero__cta {
        flex-direction: column;
        gap: 1rem;
    }

    .xly-hero__cta .xly-btn {
        width: 100%;
    }

    .xly-appointment__form {
        padding: 1.5rem;
    }

    .xly-tablink {
        width: 100%;
        justify-content: flex-start;
    }

    .xly-tabpanel {
        padding: 1.5rem;
    }
}


