/* ============================
   MISUBE Corporate Website
   Theme: Dark + Purple accent (和風AI)
   ============================ */

:root {
    --bg-primary: #07101E;
    --bg-secondary: #0D1B2A;
    --bg-card: #132238;
    --text-primary: #F6F2E8;
    --text-secondary: #A0AEBF;
    --text-muted: #6B7B8F;
    --accent: #A98CFF;
    --accent-light: #C4B0FF;
    --accent-dark: #7B5FCC;
    --border: #1E3048;
    --gradient-hero: linear-gradient(135deg, #07101E 0%, #1A1040 50%, #07101E 100%);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --radius: 12px;
    --radius-lg: 20px;
    --container: 1200px;
    --nav-height: 72px;
    --font-sans: 'Noto Sans JP', 'Zen Kaku Gothic New', sans-serif;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--accent);
}

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================
   Navigation
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(7, 16, 30, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
}

.logo-icon {
    width: 36px;
    height: 36px;
    display: inline-block;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-size: 20px;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s;
}

/* ============================
   Hero
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(169, 140, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(110, 198, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    text-align: center;
    padding: 80px 0;
}

.hero-tagline {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent-dark);
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 2;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-image-wrap {
    width: min(300px, 62vw);
    margin: 72px auto 0;
    padding: 10px;
    border: 1px solid rgba(169, 140, 255, 0.28);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(169, 140, 255, 0.12), rgba(7, 16, 30, 0.45));
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42), 0 0 70px rgba(169, 140, 255, 0.16);
}

.hero-image {
    display: block;
    width: 100%;
    border-radius: 18px;
}

/* ============================
   Buttons
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: #fff;
    box-shadow: 0 4px 16px rgba(169, 140, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(169, 140, 255, 0.4);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* ============================
   Sections
   ============================ */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================
   Services Grid
   ============================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
    border-color: var(--accent-dark);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(169, 140, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 20px;
    color: var(--accent);
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================
   Features List
   ============================ */
.features-list {
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-number {
    font-size: 36px;
    font-weight: 900;
    color: var(--accent-dark);
    line-height: 1;
    min-width: 60px;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================
   Agents Grid
   ============================ */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.agent-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.agent-avatar {
    width: 128px;
    height: 128px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(169, 140, 255, 0.1);
    border: 2px solid var(--accent, #A98CFF);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent, #A98CFF);
    overflow: hidden;
    box-shadow: 0 0 32px color-mix(in srgb, var(--accent, #A98CFF) 28%, transparent);
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agent-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.agent-role {
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 12px;
}

.agent-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================
   Company Table
   ============================ */
.company-table {
    max-width: 700px;
    margin: 0 auto;
}

.company-table table {
    width: 100%;
    border-collapse: collapse;
}

.company-table tr {
    border-bottom: 1px solid var(--border);
}

.company-table th,
.company-table td {
    padding: 18px 16px;
    text-align: left;
    font-size: 15px;
}

.company-table th {
    color: var(--text-muted);
    font-weight: 500;
    width: 140px;
    white-space: nowrap;
}

.company-table td {
    color: var(--text-primary);
}

/* ============================
   Contact Grid
   ============================ */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
}

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(169, 140, 255, 0.1);
    border-radius: 12px;
    margin: 0 auto 16px;
    color: var(--accent);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.line-qr-card {
    max-width: 820px;
    margin: 40px auto 0;
    padding: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    background: linear-gradient(135deg, rgba(6, 199, 85, 0.10), rgba(169, 140, 255, 0.08));
    border: 1px solid rgba(6, 199, 85, 0.28);
    border-radius: var(--radius-lg);
}

.line-qr-content {
    text-align: left;
}

.line-qr-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #06C755;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.line-qr-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.line-qr-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.line-qr-image-wrap {
    flex: 0 0 160px;
    padding: 10px;
    background: #fff;
    border-radius: 16px;
}

.line-qr-image {
    display: block;
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: 8px;
}

/* ============================
   Footer
   ============================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo-icon,
.footer-brand .logo-text {
    display: inline-block;
    vertical-align: middle;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 64px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-description br {
        display: none;
    }

    .feature-item {
        flex-direction: column;
        gap: 12px;
    }

    .feature-number {
        font-size: 28px;
    }

    .footer-top {
        flex-direction: column;
    }

    .footer-links {
        gap: 36px;
    }

    .company-table th {
        width: 100px;
    }

    .line-qr-card {
        flex-direction: column;
        text-align: center;
    }

    .line-qr-content {
        text-align: center;
    }
}
