@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;500;700&family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

:root {
    --bg-body: #050505;
    --bg-card: rgba(20, 20, 20, 0.6);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #ffffff;
    --accent-gradient: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    --header-height: 80px;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-body);
    line-height: 1.8;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 120px 0;
    position: relative;
}

/* Header */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1280px;
    /* height: var(--header-height); Removed fixed height */
    padding: 15px 40px;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    /* Pill shape */
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

header.scrolled {
    background: rgba(5, 5, 5, 0.9);
    top: 10px;
    width: 98%;
    padding: 10px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 0;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-brand .logo {
    height: 60px;
    /* Increased size to replace text */
    width: auto;
    filter: brightness(0) invert(1);
    /* Make logo white */
}

.nav-brand h1 {
    display: none;
    /* Hide text to use logo image instead */
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-menu a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding: 5px 0;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #fff;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s var(--ease-out-expo);
}

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

.nav-menu .contact-info {
    margin-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 30px;
}

.phone-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    display: block;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('logo/hero_smartphone_lepont.png') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, rgba(5, 5, 5, 0.9) 100%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 1000px;
    padding: 0 20px;
    animation: fadeInUp 1.2s var(--ease-out-expo) forwards;
}

.hero h2 {
    font-size: 5rem;
    font-weight: 300;
    margin-bottom: 30px;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: 0.15em;
}

.hero h2 strong {
    font-weight: 700;
    display: block;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 50px;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 100px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 300;
    display: inline-block;
    position: relative;
    padding-bottom: 20px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--text-primary);
}

.section-title h2::before {
    content: attr(data-en);
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.3em;
    margin-bottom: 10px;
    font-weight: 400;
}

/* Cards & Grids */
.strength-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.strength-card,
.service-card {
    background: var(--bg-card);
    padding: 50px 40px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease-out-expo);
}

.strength-card:hover,
.service-card:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

.strength-card h3,
.service-card h3 {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.strength-card p,
.service-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 2;
}

/* Page Hero (Sub-pages) */
.page-hero {
    background: #0a0a0a;
    padding: 200px 0 100px;
    text-align: center;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 100px;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
}

.page-hero .en-title {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.4em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* Content Containers */
.asp-content,
.about-content,
.contact-content {
    background: var(--bg-card);
    padding: 60px;
    border: 1px solid var(--border-color);
}

.asp-content h3,
.contact-form-section h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 50px 0 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.asp-content p {
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 2rem;
}

/* Table */
.company-info {
    border: 1px solid var(--border-color);
    background: transparent;
}

.company-info th,
.company-info td {
    padding: 25px 40px;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
}

.company-info th {
    color: var(--text-primary);
    font-weight: 500;
    width: 30%;
    border-right: 1px solid var(--border-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 50px;
    background: transparent;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    border: 1px solid var(--text-primary);
    transition: all 0.3s ease;
}

.btn:hover {
    background: var(--text-primary);
    color: var(--bg-body);
}

.center-btn {
    text-align: center;
    margin-top: 80px;
}

/* Contact Section */
.contact {
    background: #0a0a0a;
    border-top: 1px solid var(--border-color);
    padding: 160px 0;
}

.contact-item {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 60px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-item .phone-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    margin-top: 20px;
    display: block;
}

/* Footer */
footer {
    background: #000000;
    color: var(--text-secondary);
    padding: 60px 0;
    text-align: center;
    font-size: 0.8rem;
    border-top: 1px solid var(--border-color);
}

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

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

/* Privacy Policy */
.privacy-content h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 40px 0 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.privacy-content h3:first-of-type {
    margin-top: 0;
}

.privacy-content p {
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 1rem;
}

.privacy-list {
    color: var(--text-secondary);
    margin: 15px 0 25px 20px;
    line-height: 2;
}

.privacy-list li {
    position: relative;
    padding-left: 15px;
}

.privacy-list li::before {
    content: '・';
    position: absolute;
    left: 0;
}

.policy-date {
    margin-top: 50px;
    text-align: right;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Privacy Link */
.privacy-link-wrapper {
    text-align: right;
    margin-top: 40px;
}

.privacy-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.privacy-link:hover {
    color: var(--text-primary);
}

/* Mobile */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 1px;
    background: var(--text-primary);
    margin: 6px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #000000;
        flex-direction: column;
        justify-content: center;
        transform: translateX(100%);
        transition: 0.4s var(--ease-out-expo);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .hero h2 {
        font-size: 3rem;
    }

    .container {
        padding: 0 20px;
    }

    /* Page Hero Mobile */
    .page-hero {
        padding: 140px 0 60px;
        margin-bottom: 60px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero .en-title {
        font-size: 0.75rem;
        letter-spacing: 0.3em;
    }

    /* About Content Mobile */
    .about-content,
    .asp-content,
    .contact-content {
        padding: 30px 20px;
    }

    /* Company Info Table Mobile */
    .company-info table {
        width: 100%;
    }

    .company-info th,
    .company-info td {
        display: block;
        width: 100%;
        padding: 15px 20px;
        border-right: none;
    }

    .company-info th {
        background: rgba(255, 255, 255, 0.05);
        border-bottom: none;
        padding-bottom: 10px;
    }

    .company-info td {
        padding-top: 10px;
        padding-bottom: 20px;
    }

    .company-info tr:last-child td {
        border-bottom: none;
    }

    /* Section Mobile */
    section {
        padding: 60px 0;
    }

    /* Privacy Link Mobile */
    .privacy-link-wrapper {
        margin-top: 30px;
        text-align: center;
    }

    /* Privacy Content Mobile */
    .privacy-content h3 {
        font-size: 1.1rem;
        margin: 30px 0 12px;
    }

    .privacy-content p {
        font-size: 0.9rem;
    }

    .privacy-list {
        font-size: 0.9rem;
        margin-left: 10px;
    }
}