:root {
    --primary-color: #1a1a1a;
    --accent-color: #c5a059;
    /* Gold/Beige for premium feel */
    --text-color: #333;
    --bg-light: #f9f9f9;
    --bg-dark: #111;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.8;
    background-color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    /* Adjust based on preference */
    width: auto;
}

.nav ul {
    display: flex;
    gap: 2rem;
}

.nav a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--primary-color);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--accent-color);
    transition: 0.3s;
}

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

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Animated Gradient Background */
    background: linear-gradient(135deg,
            rgba(76, 70, 233, 0.9) 0%,
            rgba(120, 80, 200, 0.85) 25%,
            rgba(76, 70, 233, 0.9) 50%,
            rgba(50, 30, 150, 0.95) 75%,
            rgba(26, 11, 46, 0.95) 100%);
    background-size: 400% 400%;
    animation: waveGradient 8s ease-in-out infinite;
    color: #fff;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center,
            rgba(150, 100, 255, 0.3) 0%,
            transparent 50%);
    animation: waveMove 6s ease-in-out infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center,
            rgba(100, 80, 200, 0.2) 0%,
            transparent 40%);
    animation: waveMove 8s ease-in-out infinite reverse;
    z-index: 0;
}

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

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

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

@keyframes waveMove {
    0% {
        transform: translate(0%, 0%) rotate(0deg);
    }

    50% {
        transform: translate(-25%, -25%) rotate(180deg);
    }

    100% {
        transform: translate(0%, 0%) rotate(360deg);
    }
}

/* FILO Logo Animation */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    height: 100%;
    width: 100%;
    max-width: 1200px;
}

.hero-title {
    font-family: var(--font-heading);
    /* Cormorant Garamond is already good for this look */
    font-size: 5rem;
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 0;
    letter-spacing: 0.02em;
    animation: none;
    position: absolute;
    top: 50%;
    left: 2rem;
    transform: translateY(-50%);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    animation: fadeInUp 1.5s ease 0.3s backwards;
    text-align: right;
    position: absolute;
    bottom: 17rem;
    /* Lowered slightly */
    right: 2rem;
}

/* FILO Logo Animation */
.hero-filo-logo {
    position: absolute;
    bottom: 21rem;
    /* Lowered to maintain relative position */
    right: 2rem;
    width: 675px;
    margin: 0;
    overflow: hidden;
    z-index: 2;
}

.filo-logo-img {
    width: 100%;
    height: auto;
    clip-path: inset(0 100% 0 0);
    -webkit-clip-path: inset(0 100% 0 0);
    /* Safari support */
    animation: revealLogo 5s ease-out forwards;
    animation-delay: 0.3s;
    will-change: clip-path;
}

@keyframes revealLogo {
    0% {
        clip-path: inset(0 100% 0 0);
        -webkit-clip-path: inset(0 100% 0 0);
    }

    100% {
        clip-path: inset(0 0% 0 0);
        -webkit-clip-path: inset(0 0% 0 0);
    }

}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    opacity: 0.8;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: #fff;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

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

/* Sections */
.section {
    padding: 6rem 2rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    color: var(--primary-color);
}

.section-desc {
    text-align: center;
    margin-bottom: 4rem;
    color: #666;
    font-size: 1rem;
}

/* Concept */
.concept {
    background-color: var(--bg-light);
    text-align: center;
}

.concept-text {
    font-size: 1.2rem;
    line-height: 2.2;
    color: #444;
}

/* Ink Splash Decorations */
.business {
    position: relative;
    overflow: visible;
}

.ink-splashes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.ink-splash {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
}

.ink-red {
    width: 350px;
    height: 350px;
    top: -5%;
    left: -8%;
    background-image: url('../images/splash_red.png');
    animation: splashThrow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.3s;
}

.ink-green {
    width: 300px;
    height: 300px;
    top: 22%;
    right: -6%;
    background-image: url('../images/splash_red.png');
    filter: hue-rotate(100deg) saturate(1.2);
    animation: splashThrowRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0.7s;
}

.ink-yellow {
    width: 320px;
    height: 320px;
    top: 48%;
    left: -6%;
    background-image: url('../images/splash_red.png');
    filter: hue-rotate(50deg) saturate(1.5) brightness(1.2);
    animation: splashThrow 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1.1s;
}

.ink-purple {
    width: 380px;
    height: 380px;
    top: 72%;
    right: -7%;
    background-image: url('../images/splash_red.png');
    filter: hue-rotate(280deg) saturate(1.3);
    animation: splashThrowRight 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1.5s;
}

@keyframes splashThrow {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.3) rotate(-20deg);
    }

    40% {
        opacity: 0.9;
        transform: translateX(20px) scale(1.15) rotate(5deg);
    }

    100% {
        opacity: 0.7;
        transform: translateX(0) scale(1) rotate(0deg);
    }
}

@keyframes splashThrowRight {
    0% {
        opacity: 0;
        transform: translateX(100px) scale(0.3) rotate(20deg);
    }

    40% {
        opacity: 0.9;
        transform: translateX(-20px) scale(1.15) rotate(-5deg);
    }

    100% {
        opacity: 0.7;
        transform: translateX(0) scale(1) rotate(0deg);
    }
}

/* Business Pillars */
.pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
    /* Full width cards */
}

.pillar-card {
    display: flex;
    min-height: 400px;
    border-bottom: 1px solid #eee;
}

.pillar-card:last-child {
    border-bottom: none;
}

.pillar-img {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

.pillar-content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}

.pillar-card.reverse {
    flex-direction: row-reverse;
}

.pillar-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.pillar-subtitle {
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.sub-brand {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.pillar-desc {
    color: #555;
    margin-bottom: 2rem;
}

.education-highlights ul {
    margin-bottom: 1.5rem;
    margin-left: 1rem;
}

.education-highlights li {
    list-style: disc;
    margin-bottom: 0.5rem;
    color: #555;
}

.btn-link,
.btn-contact {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    transition: 0.3s;
    width: fit-content;
}

.btn-link:hover,
.btn-contact:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Company */
.company-info {
    max-width: 600px;
    margin: 0 auto;
    border-top: 1px solid #eee;
    padding-top: 2rem;
}

.company-info dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 1.5rem;
}

.company-info dt {
    font-weight: bold;
    color: #888;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: #fff;
    padding: 2rem 0;
    text-align: center;
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Company Section Spacing */
.company {
    padding-top: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding-top: 60px;
    }

    .hero-title {
        position: relative;
        left: 0;
        top: 0;
        transform: none;
        font-size: 2.8rem;
        margin-bottom: 2rem;
    }

    .hero-filo-logo {
        position: relative;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 300px;
        margin-bottom: 2rem;
        display: flex;
        justify-content: center;
    }

    .hero-subtitle {
        position: relative;
        right: 0;
        bottom: 0;
        text-align: center;
        font-size: 1.1rem;
        line-height: 1.8;
        margin-bottom: 4rem;
        /* Added margin to push scroll indicator down */
    }

    .scroll-indicator {
        bottom: 1rem;
    }

    .pillar-card {
        flex-direction: column !important;
    }

    .pillar-content {
        padding: 3rem 1.5rem;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 999;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        right: 0;
    }

    .nav ul {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .nav a {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 1001;
    }

    .menu-toggle span {
        display: block;
        position: absolute;
        height: 2px;
        width: 100%;
        background: var(--primary-color);
        border-radius: 2px;
        opacity: 1;
        left: 0;
        transform: rotate(0deg);
        transition: .25s ease-in-out;
    }

    .menu-toggle span:nth-child(1) {
        top: 0px;
    }

    .menu-toggle span:nth-child(2) {
        top: 9px;
    }

    .menu-toggle span:nth-child(3) {
        top: 18px;
    }

    .menu-toggle.active span:nth-child(1) {
        top: 9px;
        transform: rotate(135deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        left: -60px;
    }

    .menu-toggle.active span:nth-child(3) {
        top: 9px;
        transform: rotate(-135deg);
    }
}

/* CEO Message */
.message {
    background-color: #fff;
    padding: 1rem 2rem 8rem 2rem;
}

.message-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.message-img {
    flex: 1;
    max-width: 400px;
}

.message-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.message-text {
    flex: 1.2;
}

.message-heading {
    font-family: var(--font-heading);
    font-size: 2rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.message-text p {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 2;
}

.ceo-name {
    margin-top: 3rem;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: right;
    font-family: var(--font-heading);
}

@media (max-width: 768px) {
    .message-content {
        flex-direction: column;
        gap: 2rem;
    }

    .message-heading {
        font-size: 1.6rem;
        text-align: center;
    }

    .ceo-name {
        text-align: center;
    }
}

/* Contact Section Alignment */
.contact {
    text-align: center;
}