/* リセット & ベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00ff41;
    --secondary-color: #00d4ff;
    --accent-color: #ff0080;
    --text-color: #e5e7eb;
    --bg-color: #000000;
    --light-bg: #0a0a0a;
    --border-color: #1a1a1a;
    --glow-color: rgba(0, 255, 65, 0.5);
}

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Orbitron:wght@400;700;900&display=swap');

html {
    overflow-x: hidden;
}

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 65, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ヘッダー */
header {
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 255, 65, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--glow-color);
    position: relative;
    text-decoration: none;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a::before {
    content: '[';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a::after {
    content: ']';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a:hover::after {
    opacity: 1;
    color: var(--primary-color);
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--glow-color);
}

/* ハンバーガーメニューボタン */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    width: 40px;
    height: 32px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    padding: 0;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.menu-toggle .bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-color);
    box-shadow: 0 0 6px var(--glow-color);
    transition: all 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* メインコンテンツ */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* ヒーローセクション */
.hero {
    text-align: center;
    padding: 8rem 2rem;
    margin-bottom: 6rem;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at center, rgba(0, 255, 65, 0.1) 0%, transparent 70%);
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.code-line {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    opacity: 0.7;
    font-family: 'JetBrains Mono', monospace;
    animation: fadeIn 1s ease-in;
}

.glitch {
    font-size: 5rem;
    font-weight: 900;
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 2rem;
    position: relative;
    text-shadow: 
        0 0 10px var(--glow-color),
        0 0 20px var(--glow-color),
        0 0 30px var(--glow-color);
    animation: fadeIn 1.5s ease-in, glitch 3s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--secondary-color);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    20% { clip: rect(86px, 9999px, 77px, 0); }
    40% { clip: rect(91px, 9999px, 29px, 0); }
    60% { clip: rect(42px, 9999px, 73px, 0); }
    80% { clip: rect(23px, 9999px, 92px, 0); }
    100% { clip: rect(76px, 9999px, 91px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    20% { clip: rect(14px, 9999px, 33px, 0); }
    40% { clip: rect(66px, 9999px, 85px, 0); }
    60% { clip: rect(90px, 9999px, 11px, 0); }
    80% { clip: rect(55px, 9999px, 6px, 0); }
    100% { clip: rect(36px, 9999px, 59px, 0); }
}

.typewriter {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 3rem;
    min-height: 2rem;
    font-family: 'JetBrains Mono', monospace;
}

.typewriter .cursor {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-tagline {
    max-width: 800px;
    margin: 0 auto;
}

.code-tag {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin: 1rem 0;
    opacity: 0.6;
}

.hero-tagline p {
    font-size: 1.2rem;
    color: var(--text-color);
    line-height: 1.8;
    margin: 1.5rem 0;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanLine 3s linear infinite;
    pointer-events: none;
}

@keyframes scanLine {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

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

/* セクション */
section {
    padding: 4rem 0;
    margin-bottom: 4rem;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.section-number {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
}

section h2 {
    font-size: 2.5rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-color);
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* About Section */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--bg-color) 100%);
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.info-card:hover::before {
    left: 100%;
}

.info-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transform: translateY(-5px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.status-indicator.active {
    background: var(--primary-color);
}

.card-title {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Contact Section */
.terminal-window {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: var(--bg-color);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}

.terminal-dot:nth-child(1) { background: #ff5f56; }
.terminal-dot:nth-child(2) { background: #ffbd2e; }
.terminal-dot:nth-child(3) { background: #27c93f; }

.terminal-title {
    margin-left: auto;
    color: var(--text-color);
    font-size: 0.85rem;
    opacity: 0.7;
}

.terminal-body {
    padding: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.terminal-line {
    margin-bottom: 0.5rem;
    animation: fadeIn 0.5s ease-in;
}

.prompt {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.command {
    color: var(--secondary-color);
}

.output {
    color: var(--text-color);
    opacity: 0.8;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--primary-color);
}

/* Policy Section */
.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.policy-item {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.policy-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.15);
}

.policy-icon {
    display: block;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.policy-item p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Services Section */
.services-intro {
    margin-bottom: 3rem;
    text-align: center;
}

.services-description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--bg-color) 100%);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.25);
    transform: translateY(-5px);
}

.service-card.highlight-card {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.05) 0%, var(--light-bg) 100%);
}

.service-card.highlight-card:hover {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.4);
    transform: translateY(-8px);
}

.service-icon {
    display: block;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    text-shadow: 0 0 10px var(--glow-color);
}

.service-title {
    font-size: 1.3rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.service-content {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.95rem;
    opacity: 0.9;
}

.services-note {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.note-box {
    background: var(--light-bg);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--secondary-color);
    padding: 1.5rem 2rem;
    max-width: 800px;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.note-box:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.15);
}

.note-icon {
    color: var(--secondary-color);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    flex-shrink: 0;
}

.note-box p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0;
}

.policy-link {
    text-align: center;
    margin-top: 3rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--glow-color);
}

/* FAQ Section */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.faq-item {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--bg-color) 100%);
    border: 1px solid var(--border-color);
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 65, 0.1), transparent);
    transition: left 0.5s ease;
}

.faq-item:hover::before {
    left: 100%;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
    transform: translateY(-3px);
}

.faq-question {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.faq-answer {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.faq-icon {
    color: var(--primary-color);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    text-shadow: 0 0 10px var(--glow-color);
}

.faq-question h3 {
    font-size: 1.1rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.6;
    margin: 0;
}

.faq-answer p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* フッター */
footer {
    background-color: var(--light-bg);
    text-align: center;
    padding: 3rem 2rem;
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

footer p {
    color: #9ca3af;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    text-shadow: 0 0 10px var(--glow-color);
}

/* レスポンシブ */
@media (max-width: 768px) {
    nav {
        flex-direction: row;
        gap: 1rem;
        padding: 1rem;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 2rem 1rem;
        gap: 1.25rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        z-index: 99;
        list-style: none;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
    }

    body.menu-open {
        overflow: hidden;
    }

    .glitch {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .hero {
        padding: 4rem 1rem;
        min-height: 60vh;
    }

    main {
        padding: 1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .content-grid,
    .policy-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-description {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .service-card {
        padding: 2rem;
    }

    .note-box {
        flex-direction: column;
        padding: 1.5rem;
    }
}
