:root {
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-text: #1a1a2e;
    --color-text-muted: #6c757d;
    --color-accent: #5856D6;
    --color-accent-secondary: #AF52DE;
    --color-border: rgba(0, 0, 0, 0.08);
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;
    --easing: cubic-bezier(0.25, 1, 0.5, 1);
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-jp);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
}

.header__logo {
    display: block;
    width: 180px;
    height: auto;
}

.header__logo img {
    width: 100%;
    height: auto;
    display: block;
}

.header__list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.header__item {
    font-family: var(--font-en);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    transition: color 0.3s;
}

.header__item:hover {
    color: var(--color-accent);
}

/* Hamburger Button */
.header__hamburger {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 200;
    background: transparent;
    border: none;
    cursor: pointer;
}

.header__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    position: absolute;
    left: 10px;
    transition: all 0.3s var(--easing);
}

.header__hamburger span:nth-child(1) {
    top: 14px;
}

.header__hamburger span:nth-child(2) {
    top: 21px;
}

.header__hamburger span:nth-child(3) {
    top: 28px;
}

.header__hamburger.is-active span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.header__hamburger.is-active span:nth-child(2) {
    opacity: 0;
}

.header__hamburger.is-active span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .header__logo {
        width: 140px;
        z-index: 200;
        position: relative;
    }

    .header__hamburger {
        display: block;
    }

    .header__nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        z-index: 100;
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--easing);
    }

    .header__nav.is-active {
        opacity: 1;
        visibility: visible;
    }

    .header__list {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .header__item {
        font-size: 1.2rem;
    }
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s var(--easing);
    font-family: var(--font-en);
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background: #4A48DE;
    color: white;
}

.btn--primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(88, 86, 214, 0.3);
}

.btn--secondary {
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
    margin-top: 30px;
    background: transparent;
}

.btn--secondary:hover {
    background: var(--color-accent);
    color: white;
}

.btn--large {
    padding: 15px 40px;
    font-size: 1.2rem;
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0F0F1A;
}

/* Wave Animation */
.wave {
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 320" xmlns="http://www.w3.org/2000/svg"><path fill="%235856D6" fill-opacity="0.3" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-repeat: no-repeat;
    background-size: 50% 100%;
    bottom: -50px;
    animation: waveFlow 15s linear infinite;
    z-index: 0;
}

.wave:nth-child(1) {
    opacity: 0.3;
    bottom: 0;
    animation-duration: 20s;
}

.wave:nth-child(2) {
    opacity: 0.5;
    bottom: -20px;
    animation-duration: 15s;
    filter: hue-rotate(40deg);
}

.wave:nth-child(3) {
    opacity: 0.2;
    bottom: -40px;
    animation-duration: 10s;
    filter: hue-rotate(90deg);
}

@keyframes waveFlow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.hero::before {
    display: none;
}

.hero::after {
    display: none;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__content {
    text-align: center;
    z-index: 1;
    position: relative;
}

.hero__title {
    font-family: var(--font-en);
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero__title-line {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s var(--easing) forwards;
}

.hero__title-line:nth-child(2) {
    animation-delay: 0.2s;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s var(--easing) forwards;
    animation-delay: 0.4s;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: fadeIn 1s var(--easing) forwards;
    animation-delay: 1s;
}

.hero__scroll-text {
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 60px;
    background: var(--color-border);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transform: translateY(-100%);
    animation: scrollLine 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

/* Sections Common */
.section {
    padding: 120px 0;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-title {
    font-family: var(--font-en);
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 60px;
}

/* Services Section Specific Override */
.services .section-title {
    color: #fff;
}

.services {
    background: linear-gradient(135deg, #4A48DE, #696CFF);
    color: #fff;
}

/* Mission */
.mission {
    background: var(--color-bg-alt);
}

.mission__content {
    text-align: center;
}

.mission__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mission__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: normal;
    background: #fff;
    border-radius: 50%;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.mission__text {
    font-family: var(--font-en);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}



/* Services */
.services__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 60px 40px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s var(--easing);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.service-card__content {
    position: relative;
    z-index: 2;
}

.service-card__title {
    font-family: var(--font-en);
    font-size: 2rem;
    margin-bottom: 10px;
    color: #fff;
}

.service-card__desc {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-card__detail {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    min-height: 3em;
}

.arrow-link {
    font-family: var(--font-en);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    transition: color 0.3s;
}

.arrow-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.arrow-link::after {
    content: '→';
    transition: transform 0.3s var(--easing);
}

.service-card:hover .arrow-link::after {
    transform: translateX(5px);
}

.coming-soon-badge {
    display: inline-block;
    padding: 6px 12px;
    background: #fff;
    color: var(--color-accent);
    border-radius: 4px;
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* News */
.news {
    background: var(--color-bg-alt);
}

.news__wrapper {
    display: flex;
    flex-direction: column;
}

.news__list {
    border-top: 1px solid var(--color-border);
}

.news__item {
    border-bottom: 1px solid var(--color-border);
}

.news__link {
    display: flex;
    align-items: center;
    padding: 30px 0;
    transition: all 0.3s;
}

.news__link:hover {
    background: rgba(88, 86, 214, 0.03);
    padding-left: 20px;
}

.news__date {
    font-family: var(--font-en);
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-right: 30px;
    min-width: 100px;
}

.news__tag {
    font-size: 0.8rem;
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: 50px;
    margin-right: 30px;
    min-width: 80px;
    text-align: center;
}

.news__title {
    font-size: 1.1rem;
    color: var(--color-text);
}

.news__more {
    margin-top: 40px;
    text-align: right;
}

/* Footer */
.footer {
    padding: 100px 0 40px;
    background: var(--color-text);
    color: white;
}

.footer__cta {
    text-align: center;
    margin-bottom: 100px;
}

.footer__cta-title {
    font-family: var(--font-en);
    font-size: 3rem;
    margin-bottom: 40px;
    color: white;
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.footer__logo {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.5rem;
    color: white;
}

.footer__nav {
    flex-grow: 1;
}

.footer__list {
    display: flex;
    gap: 30px;
}

.footer__list a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer__list a:hover {
    color: white;
}

.footer__legal {
    display: flex;
    gap: 20px;
    font-size: 0.8rem;
}

.footer__legal a {
    color: rgba(255, 255, 255, 0.5);
}

.footer__copyright {
    font-family: var(--font-en);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Scroll Animations */
.reveal-text,
.section-title,
.service-card,
.news__item,
.footer__cta {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--easing);
}

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

/* Stagger delays */
.service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.news__item:nth-child(1) {
    transition-delay: 0.1s;
}

.news__item:nth-child(2) {
    transition-delay: 0.2s;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }

    50% {
        transform: translateY(100%);
    }

    100% {
        transform: translateY(100%);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animated Elements */
.mission__icon {
    animation: float 3s ease-in-out infinite;
}

.service-card__icon {
    transition: transform 0.4s var(--easing);
}

.service-card:hover .service-card__icon {
    transform: scale(1.1) rotate(5deg);
}



.coming-soon-badge {
    background-size: 200% 200%;
    animation: gradientShift 2s ease infinite;
}

/* Enhanced Hover Effects */
.header__item a {
    position: relative;
}

.header__item a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
    transition: width 0.3s var(--easing);
}

.header__item a:hover::after {
    width: 100%;
}

.news__link {
    position: relative;
    overflow: hidden;
}

.news__link::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(88, 86, 214, 0.05), transparent);
    transition: left 0.5s var(--easing);
}

.news__link:hover::before {
    left: 100%;
}

/* Section Title Animation */
.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-secondary));
    border-radius: 2px;
}

/* Footer CTA Animation */
.footer__cta-title {
    color: #838CFF;
}

/* Page Header Animations */
.page-header {
    position: relative;
    padding: 180px 0 80px;
    text-align: center;
    background: #0F0F1A;
    overflow: hidden;
    color: #fff;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-en);
    font-size: 3rem;
    margin-bottom: 20px;
    color: #F7F3F1;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s var(--easing) 0.2s forwards;
    opacity: 0;
}

.page-header .page-title {
    animation: fadeInUp 0.8s var(--easing) forwards;
}

/* Card Shine Effect */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s var(--easing);
    z-index: 1;
}

.service-card:hover::before {
    left: 125%;
}

/* Value Card Animations */
.value-card {
    transition: all 0.4s var(--easing);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(88, 86, 214, 0.15);
}

/* Form Input Focus Animation */
.form-control {
    transition: all 0.3s var(--easing), box-shadow 0.3s var(--easing);
}

.form-control:focus {
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .header__logo {
        width: 120px;
    }

    .hero__content {
        padding: 0 30px;
        width: 100%;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .mission__text {
        font-size: 2rem;
    }

    .services__grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 30px;
    }

    .news__link {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news__date,
    .news__tag {
        margin-right: 0;
    }

    .footer__bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer__list {
        flex-direction: column;
        gap: 20px;
    }

    .footer__cta-title {
        font-size: 2rem;
    }
}

/* News Empty State */
.news__empty {
    text-align: center;
    color: var(--color-text-muted);
    padding: 40px 0;
    font-size: 1rem;
}

/* Service Page Styles */
.service-detail {
    margin-bottom: 120px;
}

.service-detail__header {
    margin-bottom: 60px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.service-detail__title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    color: var(--color-text);
}

.service-detail__cat {
    color: var(--color-accent);
    font-family: var(--font-en);
    letter-spacing: 0.1em;
    font-weight: 700;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.feature-item {
    background: var(--color-bg-alt);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
}

.feature-item__num {
    font-family: var(--font-en);
    font-size: 3rem;
    color: var(--color-accent);
    opacity: 0.3;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 10px;
}

.feature-item__title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--color-text);
}

.feature-item p {
    color: var(--color-text-muted);
}

.offering-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.offering-item {
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .service-detail__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .service-detail__title {
        font-size: 2rem;
    }
}