@charset "UTF-8";

/* =========================================================================
   Variables & Fonts
========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Inter:wght@400;600;800&display=swap');

:root {
    /* Brand Colors extracted from Logo */
    --color-green: #3cb45a;
    --color-pink: #ff50aa;
    --color-yellow: #ffdc00;
    --color-lightblue: #00aaff;
    --color-darkblue: #005ab4;
    --color-orange: #ff9600;
    --color-red: #f50000;

    /* Base Colors */
    --text-main: #333333;
    --text-light: #777777;
    --bg-main: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #1a1a1a;
    
    /* Typography */
    --font-ja: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;
}

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

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-ja);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    /* Prevent scroll during intro */
    /* overflow: hidden; is handled by JS initially */
}

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

a:hover {
    opacity: 0.7;
}

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

ul, ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.3;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

.section-padding {
    padding: 120px 0;
}
@media (max-width: 768px) {
    .section-padding {
        padding: 80px 0;
    }
}

.section-title {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 800;
    text-align: left;
    margin: 0 0 60px 0;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
}



.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-pink), var(--color-orange), var(--color-yellow), var(--color-green), var(--color-lightblue), var(--color-darkblue));
    border-radius: 4px;
}

/* SVG Logo Classes for HTML embedded SVG */
.st0 { fill: var(--color-green); }
.st1 { fill: var(--color-pink); }
.st2 { fill: var(--color-yellow); }
.st3 { fill: var(--color-lightblue); }
.st4 { fill: var(--color-darkblue); }
.st5 { fill: var(--color-orange); }
.st6 { fill: var(--color-red); }

.logo-white .st0,
.logo-white .st1,
.logo-white .st2,
.logo-white .st3,
.logo-white .st4,
.logo-white .st5,
.logo-white .st6 {
    fill: #ffffff;
}

/* =========================================================================
   Intro Animation Overlay (Sample 1: Wipe)
========================================================================== */
#intro-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* Color Bands Wipe */
.color-bands {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 1;
}

.band {
    flex: 1;
    height: 100%; 
    transform: scaleY(0);
    transform-origin: bottom;
}

.intro-active .band {
    animation: wipeInOut 2.5s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
.intro-active .band:nth-child(1) { background-color: var(--color-lightblue); animation-delay: 0.1s; } 
.intro-active .band:nth-child(2) { background-color: var(--color-yellow); animation-delay: 0.2s; } 
.intro-active .band:nth-child(3) { background-color: var(--color-pink); animation-delay: 0.3s; } 
.intro-active .band:nth-child(4) { background-color: var(--color-darkblue); animation-delay: 0.4s; } 
.intro-active .band:nth-child(5) { background-color: var(--color-orange); animation-delay: 0.5s; } 
.intro-active .band:nth-child(6) { background-color: var(--color-red); animation-delay: 0.6s; } 
.intro-active .band:nth-child(7) { background-color: var(--color-green); animation-delay: 0.7s; } 

@keyframes wipeInOut {
    0%   { transform: scaleY(0); transform-origin: bottom; }
    30%  { transform: scaleY(1); transform-origin: bottom; }
    60%  { transform: scaleY(1); transform-origin: bottom; }
    60.1%{ transform: scaleY(1); transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: top; }
}

/* Intro Logo Reveal */
.intro-logo {
    position: relative;
    z-index: 20;
    width: 320px;
    max-width: 80%;
    opacity: 0;
}

.intro-active .intro-logo {
    animation: logoFade 1.4s ease forwards;
    animation-delay: 1.0s;
}

@keyframes logoFade {
    0%   { opacity: 0; transform: scale(0.95) translateY(10px); }
    20%  { opacity: 1; transform: scale(1) translateY(0); }
    80%  { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(1.05) translateY(-10px); }
}

/* fade out the intro wrapper when done */
.intro-done #intro-wrap {
    opacity: 0;
    transition: opacity 0.5s ease;
    visibility: hidden;
}

/* =========================================================================
   Header
========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease, box-shadow 0.3s ease;
    /* Use a clear transparent background to avoid white flashing during transition */
    background-color: transparent;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 40px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.header-logo {
    width: 150px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    position: relative;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 768px) {
    .header { padding: 15px 20px; }
    .header.scrolled { padding: 10px 20px; }
    
    .nav-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 100%;
        height: 100vh;
        background-color: rgba(255,255,255,0.98);
        gap: 40px;
        transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    }
    
    .nav-menu.active { 
        transform: translateX(0); 
    }
    .nav-menu a { font-size: 1.5rem; }
    
    .hamburger { display: block; }
    .hamburger span {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--text-main);
        margin: 5px 0;
        transition: 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* =========================================================================
   Main Content Layout
========================================================================== */
.main-wrapper {
    opacity: 0;
    overflow-x: hidden;
    width: 100%;
}
.intro-done .main-wrapper {
    animation: contentFadeIn 1.5s ease forwards;
}

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

/* =========================================================================
   Hero Section
========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    background-color: var(--bg-light);
    overflow: hidden;
}

/* Dynamic colorful background blobs */
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    filter: blur(80px);
    opacity: 0.4;
}
.blob {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite alternate;
}
.blob-1 { width: 50vw; height: 50vw; background: var(--color-pink); top: -10%; left: -10%; animation-duration: 25s; }
.blob-2 { width: 40vw; height: 40vw; background: var(--color-lightblue); bottom: 10%; right: -5%; animation-duration: 20s; animation-direction: alternate-reverse; }
.blob-3 { width: 30vw; height: 30vw; background: var(--color-yellow); top: 40%; left: 30%; animation-duration: 15s; }

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10%, 10%) scale(1.1); }
}

.hero-gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px; /* Adjust height of the fade */
    background: linear-gradient(to top, var(--bg-main) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

.catchcopy {
    font-size: 4vw;
    font-weight: 900;
    line-height: 1.4;
    color: var(--text-main);
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.catchcopy span {
    display: block;
    background: linear-gradient(135deg, var(--color-green), var(--color-darkblue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 5vw;
}

@media(max-width: 768px) {
    .catchcopy { font-size: 1.8rem; }
    .catchcopy span { font-size: 2.2rem; }
}

.intro-done .catchcopy {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    opacity: 0;
    z-index: 10;
}
.intro-done .scroll-indicator {
    animation: fadeIn 1s forwards 1.5s;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background-color: rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}
.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-pink);
    animation: scrollDown 2s infinite cubic-bezier(0.65, 0, 0.35, 1);
}
@keyframes scrollDown {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* =========================================================================
   Background Motifs (Decorative Elements)
========================================================================== */
.deco-blob {
    position: absolute;
    border-radius: 10px; /* Instead of circle, rounded rectangle/square */
    z-index: 0;
    opacity: 0.15; /* Subtle in the background */
    filter: blur(5px);
    pointer-events: none;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); /* For scroll-linked parallax effect via JS */
}

.blob-green { background: var(--color-green); width: 250px; height: 250px; top: 10%; right: -50px; transform: rotate(15deg); }
.blob-yellow { background: var(--color-yellow); width: 150px; height: 150px; bottom: 20%; left: -30px; transform: rotate(-20deg); }
.blob-pink { background: var(--color-pink); width: 300px; height: 300px; top: -50px; left: -100px; transform: rotate(45deg); }
.blob-lightblue { background: var(--color-lightblue); width: 200px; height: 200px; bottom: 0; right: 0; transform: rotate(30deg); }
.blob-orange { background: var(--color-orange); width: 180px; height: 180px; top: 30%; left: -40px; transform: rotate(10deg); }

.section-padding {
    position: relative; /* Essential for absolute positioning of deco-blobs inside sections */
    overflow: hidden; /* Contain blobs within their sections */
}

/* =========================================================================
   Philosophy Section
========================================================================== */
.philosophy {
    background-color: var(--bg-main);
}

.philosophy-content {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.philosophy-text {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 2;
    margin-bottom: 60px;
    text-align: left;
}

.philosophy-desc {
    display: block;
}

.philosophy-main-text {
    font-size: 1.1rem;
    line-height: 2.2;
    color: var(--text-light);
    text-align: left;
    margin-bottom: 60px;
}

.philosophy-ceo {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: right;
}

@media(max-width: 768px) {
    .philosophy-content {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
}

.philosophy-text {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 2;
    margin-bottom: 60px;
    text-align: left;
}

.philosophy-desc {
    display: block;
}

.philosophy-main-text {
    font-size: 1.1rem;
    line-height: 2.2;
    color: var(--text-light);
    text-align: left;
    margin-bottom: 60px;
}

.philosophy-ceo {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: right;
}
}

/* =========================================================================
   Works Section
========================================================================== */
.works {
    background-color: var(--bg-light);
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.work-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background-color: #ddd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
}

.work-item.color-1 { background: linear-gradient(135deg, var(--color-pink), var(--color-orange)); }
.work-item.color-2 { background: linear-gradient(135deg, var(--color-lightblue), var(--color-darkblue)); }
.work-item.color-3 { background: linear-gradient(135deg, var(--color-yellow), var(--color-green)); }
.work-item.color-4 { background: linear-gradient(135deg, var(--color-red), var(--color-pink)); }
.work-item.color-5 { background: linear-gradient(135deg, var(--color-green), var(--color-lightblue)); }
.work-item.color-6 { background: linear-gradient(135deg, var(--color-orange), var(--color-yellow)); }

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.work-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
}

.work-item:hover .work-overlay {
    opacity: 1;
}

/* =========================================================================
   Company Section
========================================================================== */
.company {
    background-color: transparent; /* Remove solid background to see blob */
}

.company-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
}

.company-table th, .company-table td {
    padding: 25px 20px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.company-table th {
    width: 30%;
    font-weight: 700;
    color: var(--text-main);
    position: relative;
}

.company-table th::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background-color: var(--color-darkblue);
    border-radius: 2px;
}

.company-table tr:nth-child(2) th::before { background-color: var(--color-pink); }
.company-table tr:nth-child(3) th::before { background-color: var(--color-yellow); }
.company-table tr:nth-child(4) th::before { background-color: var(--color-green); }
.company-table tr:nth-child(5) th::before { background-color: var(--color-orange); }

@media(max-width: 768px) {
    .company-table th, .company-table td {
        display: block;
        width: 100%;
        padding: 15px 10px;
    }
    .company-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
}

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

.news-list {
    max-width: 800px;
    margin: 0 auto;
}

.news-item {
    display: flex;
    padding: 25px 0;
    border-bottom: 1px solid #ddd;
    transition: padding-left 0.3s ease;
}



.news-date {
    width: 150px;
    font-family: var(--font-en);
    font-weight: 600;
    color: var(--color-pink);
}

.news-title {
    flex: 1;
}

@media(max-width: 768px) {
    .news-item { flex-direction: column; gap: 10px; }
}

/* =========================================================================
   Access Section
========================================================================== */
.access {
    background-color: var(--bg-main);
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: #eee;
}

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

.access-info {
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
}

.access-info strong {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 15px;
}

/* =========================================================================
   Contact Section
========================================================================== */
.contact {
    background: linear-gradient(135deg, var(--bg-dark), #333);
    color: white;
}

.contact .section-title {
    color: white;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255,255,255,0.05);
    padding: 50px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 6px;
    background-color: rgba(255,255,255,0.9);
    font-family: var(--font-ja);
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.form-control:focus {
    outline: 2px solid var(--color-pink);
    background-color: #fff;
}

textarea.form-control {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, var(--color-pink), var(--color-orange));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 80, 170, 0.4);
}

@media(max-width: 768px) {
    .contact-form { padding: 30px 20px; }
}

/* =========================================================================
   Footer
========================================================================== */
.footer {
    background-color: #111;
    color: #888;
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
}

/* =========================================================================
   Animations (Scroll Reveal)
========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
