/* 2026 Modern Design System - Coconut Beach */
:root {
    --primary: #0077b6;
    --secondary: #00b4d8;
    --accent: #90e0ef;
    --text-main: #1a202c;
    --bg-light: #f8fbff;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* --- Header / Navigation --- */
.glass-nav {
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0.6) 0%, 
        rgba(255, 255, 255, 0.3) 100%
    ) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.05);
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.nav-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    color: #4a5568;
    transition: all 0.3s;
    text-decoration: none;
}
.nav-link svg {
    width: 1.1em;
    height: 1.1em;
    stroke-width: 1.5;
    transform: translateY(0.12em); 
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link.active { font-weight: bold; }

/* Contact Button inside Nav */
.btn-nav-contact {
    display: flex;
    align-items: end;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    transition: background 0.3s;
}
.btn-nav-contact:hover { background: #023e8a; }
.btn-nav-contact svg { width: 1.25rem; height: 1.25rem; margin-bottom: 0.125rem; }

/* --- Utility & Animations --- */
.gradient-text {
    background: linear-gradient(90deg, #0077b6, #00b4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- Index Page Specifics --- */
.hero-shape {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px; background: linear-gradient(45deg, #0077b6, #00b4d8, #48cae4);
    filter: blur(80px); opacity: 0.3; z-index: -1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; animation: morphing 15s ease-in-out infinite;
}
@keyframes morphing { 0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } 50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; } }

.floating-card {
    background: white; border-radius: 40px; padding: 3rem 2rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 119, 182, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; border: 2px solid transparent;
    height: 100%; display: flex; flex-direction: column;
}
.floating-card:hover { transform: translateY(-15px) rotate(1deg); border-color: #90e0ef; box-shadow: 0 30px 60px rgba(0, 119, 182, 0.1); }
.card-icon-container {
    position: absolute; top: -30px; left: 30px; width: 70px; height: 70px;
    background: #0077b6; border-radius: 20px; display: flex; align-items: center; justify-content: center;
    color: white; box-shadow: 0 10px 20px rgba(0, 119, 182, 0.2); transform: rotate(-10deg); transition: transform 0.3s;
}
.floating-card:hover .card-icon-container { transform: rotate(0deg) scale(1.1); }

/* --- Contact Form Styles --- */
.form-input {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    appearance: none;
}
.form-input:focus {
    outline: none;
    background-color: #ffffff;
    border-color: #0077b6;
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.1);
}
#thanks-message { display: none; }
#thanks-message.active { display: block; animation: fadeIn 0.5s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- AI Chat (Demo) --- */
.ai-chat-window {
    position: fixed; bottom: 90px; right: 20px; width: 320px; max-height: 450px;
    background: white; border-radius: 24px; box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: none; flex-direction: column; overflow: hidden; z-index: 2000; border: 1px solid rgba(0,119,182,0.1);
}
.ai-chat-window.active { display: flex; animation: fadeIn 0.3s ease; }
.chat-messages { flex-grow: 1; overflow-y: auto; padding: 1rem; background: #f8fbff; font-size: 0.85rem; }
.chat-bubble { max-width: 85%; padding: 0.6rem 0.9rem; border-radius: 15px; margin-bottom: 0.75rem; line-height: 1.4; }
.chat-bubble.ai { background: white; color: #1a202c; align-self: flex-start; border-bottom-left-radius: 2px; border: 1px solid #e2e8f0; }
.chat-bubble.user { background: #0077b6; color: white; align-self: flex-end; border-bottom-right-radius: 2px; }
.loading-dots span { animation: blink 1.4s infinite both; height: 5px; width: 5px; background: #0077b6; display: inline-block; border-radius: 50%; margin: 0 2px; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0% { opacity: 0.2; } 20% { opacity: 1; } 100% { opacity: 0.2; } }