/* 
 * File: front.css
 * Path: /Users/brapi/WebSite/trip.style/NEW/media/assets/front.css
 * Description: Main stylesheet for Media Business LP. Implements premium dark UI and responsive grid.
 * Date: 2026-02-10 18:06 (JST)
 */

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #a855f7;
    --bg: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --nav-bg: rgba(15, 23, 42, 0.85);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --container-max: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', 'Zen Kaku Gothic New', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Components --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 50px 0;
}

/* --- Header --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

header.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav li {
    position: relative;
    margin-left: 2.5rem;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
    opacity: 0.8;
    display: block;
    padding: 0.5rem 0;
}

nav a:hover {
    color: var(--primary);
    opacity: 1;
}

/* --- Hamburger --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
    transition: var(--transition);
}

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

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

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

/* --- Dropdown --- */
.has-dropdown>a::after {
    content: '▾';
    margin-left: 0.5rem;
    font-size: 0.8rem;
    vertical-align: middle;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    min-width: 240px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    list-style: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: block;
    /* Overriding nav ul display */
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown li {
    margin: 0;
}

.dropdown a {
    padding: 0.7rem 1.5rem;
    font-size: 0.85rem;
    margin: 0;
    white-space: nowrap;
}

.dropdown a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9)),
        url('hero-bg.png') center/cover no-repeat;
}

.hero-content {
    max-width: 850px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.4rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1.1rem 2.8rem;
    border-radius: 60px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 10px 30px -5px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(99, 102, 241, 0.7);
}

/* --- Section Header --- */
.section-header {
    text-align: left;
    margin-bottom: 5rem;
}

.tag {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
}

/* --- Grid & Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* For anchor cards */
    color: inherit;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-12px);
    background: rgba(30, 41, 59, 1);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: var(--transition);
}

.card:hover::before {
    opacity: 1;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.service-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.service-tags span {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.35rem 0.9rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.card-more {
    margin-top: 2rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.card:hover .card-more {
    gap: 1rem;
    color: var(--accent);
}

/* --- Specialist Feature Box --- */
.marketing-cycle {
    margin-top: 100px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.4), rgba(15, 23, 42, 0.6));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 4rem;
}

.cycle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.cycle-item h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.cycle-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Contact Section --- */
.cta-section {
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box {
    position: relative;
    z-index: 2;
}

.cta-box h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

/* --- Footer --- */
footer {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    background: #0b1121;
}

.footer-nav {
    margin-bottom: 2rem;
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.9rem;
}

.copyright {
    color: #475569;
    font-size: 0.85rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

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

    body.menu-open {
        overflow: hidden;
    }

    .menu-toggle {
        display: flex;
    }

    nav#mainNav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        padding: 100px 1.5rem;
        transition: var(--transition);
        z-index: 1000;
        overflow-y: auto;
        display: block;
        /* Ensure it stays block, visibility controlled by right */
    }

    nav#mainNav.active {
        right: 0;
    }

    /* Main Menu List */
    nav#mainNav>ul {
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    nav#mainNav>ul>li {
        margin: 0 0 1.5rem 0;
        width: 100%;
        padding: 0;
    }

    nav#mainNav>ul>li>a {
        font-size: 1.4rem;
        padding: 0.5rem 0;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Mobile Dropdown adjustment */
    .dropdown {
        position: static;
        width: 100%;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: none;
        border: none;
        box-shadow: none;
        padding: 0;
        margin: 1rem 0;
        display: none;
        list-style: none;
        transition: none !important;
    }

    .has-dropdown.active .dropdown {
        display: block;
    }

    .dropdown li {
        margin: 0;
        width: 100%;
    }

    .dropdown a {
        font-size: 1rem;
        padding: 0.6rem 0;
        margin: 0;
        white-space: normal;
        line-height: 1.4;
        display: block;
        width: 100%;
        opacity: 0.8;
        transition: none !important;
    }

    .dropdown a::before {
        content: "・";
        margin-right: 0.3rem;
    }

    .has-dropdown>a::after {
        content: '＋';
        font-size: 1.1rem;
        transition: none !important;
        margin-left: auto;
    }

    .has-dropdown.active>a::after {
        content: '－';
        color: var(--primary);
    }

    .hero {
        text-align: center;
    }

    .hero p {
        margin: 0 auto 3rem;
    }

    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .card {
        padding: 2rem;
    }
}

/* --- Form Styles --- */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 1.2rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

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

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 3rem;
    cursor: pointer;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
    margin-top: 0.2rem;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--primary);
    text-decoration: none;
}

/* --- Breadcrumb / Page Header --- */
.page-header {
    padding: 180px 0 80px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), var(--bg));
    text-align: center;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.page-header .subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}