@charset "UTF-8";

/* ========================================
   Variables & Reset
======================================== */
:root {
    --primary-color: #0066cc;
    --secondary-color: #00ccff;
    --bg-dark: #0a0e17;
    --bg-light: #151b26;
    --text-main: #e0e6ed;
    --text-muted: #8a9bb2;
    --glass-bg: rgba(21, 27, 38, 0.7);
    --glass-border: rgba(0, 204, 255, 0.2);
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Orbitron', sans-serif;
}

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

html {
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-jp);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 薄いグリッド背景（ベースレイヤー） */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 204, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 204, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center center;
    z-index: -2;
    pointer-events: none;
}

/* 動く光の線背景アニメーション（セカンドレイヤー/軽量化版） */
body::after {
    content: '';
    position: fixed;
    top: -100vmax;
    left: -100vmax;
    width: 300vmax;
    height: 300vmax;
    z-index: -1;
    background-image:
        linear-gradient(135deg, transparent 0%, transparent 40%, rgba(0, 204, 255, 0.2) 42%, transparent 44%, transparent 100%),
        linear-gradient(135deg, transparent 0%, transparent 60%, rgba(0, 102, 204, 0.15) 62%, transparent 64%, transparent 100%),
        linear-gradient(135deg, transparent 0%, transparent 80%, rgba(0, 204, 255, 0.1) 82%, transparent 84%, transparent 100%);
    background-size: 100vmax 100vmax;
    opacity: 0.8;
    pointer-events: none;
    animation: lightLines 15s linear infinite;
    will-change: transform;
}

@keyframes lightLines {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(100vmax, 100vmax, 0); }
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-dark {
    background-color: var(--bg-light);
}

.center {
    text-align: center;
}

/* ========================================
   Typography
======================================== */
.section-title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), transparent);
}

.center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    width: 100px;
}

.section-title span {
    color: var(--secondary-color);
}

/* ========================================
   Header
======================================== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: 0.3s;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    padding: 0 40px;
}

.logo img {
    height: 200px;
    transition: height 0.3s ease;
}

.global-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.global-nav a {
    font-family: var(--font-en);
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

.global-nav a:hover {
    color: var(--secondary-color);
}

.btn-contact-nav {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    padding: 8px 20px;
    border-radius: 30px;
    color: #fff !important;
    font-weight: bold;
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* ========================================
   Hero
======================================== */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,14,23,0.9) 0%, rgba(0,102,204,0.3) 100%);
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-content h2 {
    font-family: var(--font-en);
    font-size: 4vw;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.hero-content h2 span {
    color: transparent;
    -webkit-text-stroke: 1px var(--secondary-color);
    text-shadow: 0 0 15px rgba(0, 204, 255, 0.5);
}

/* ヒーローテキストのグリッチエフェクト（軽量化版） */
.glitch {
    position: relative;
}
.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: -1;
    will-change: transform, opacity;
}
.glitch::before {
    text-shadow: -2px 0 rgba(0, 102, 204, 0.8);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch::after {
    text-shadow: -2px 0 var(--secondary-color);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
    animation-delay: 0.5s;
}

@keyframes glitch-anim {
    0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.8; }
    20% { transform: translate3d(-2px, 1px, 0); opacity: 0.5; }
    40% { transform: translate3d(2px, -1px, 0); opacity: 0.9; }
    60% { transform: translate3d(-1px, 2px, 0); opacity: 0.5; }
    80% { transform: translate3d(1px, -2px, 0); opacity: 0.8; }
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.scroll-down::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: var(--secondary-color);
    margin: 10px auto 0;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ========================================
   Mission & Greeting
======================================== */
.mission-wrapper {
    display: flex;
    gap: 50px;
    align-items: center;
}

.mission-wrapper .text-box {
    flex: 1;
}

.mission-wrapper .img-box {
    flex: 1;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.mission-wrapper .img-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--secondary-color);
    z-index: -1;
}

.content-block {
    margin-bottom: 30px;
}

.content-block h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.greeting-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(5px);
}

.signature {
    text-align: right;
    margin-top: 30px;
    font-size: 1.2rem;
    font-weight: bold;
}

/* ========================================
   Services
======================================== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 204, 255, 0.2);
    border-color: var(--secondary-color);
}

.card-img {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.service-card:hover .card-img img {
    transform: scale(1.1);
}

/* サービスカードのスキャンラインエフェクト */
.card-img::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(0,204,255,0.5), rgba(255,255,255,0));
    transition: 0s;
}
.service-card:hover .card-img::after {
    animation: scan 1s forwards cubic-bezier(0.1, 0, 0.1, 1);
}
@keyframes scan {
    0% { top: -100%; }
    100% { top: 200%; }
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-family: var(--font-en);
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.card-content h3 span {
    display: block;
    font-family: var(--font-jp);
    font-size: 0.9rem;
    color: var(--text-main);
    margin-top: 5px;
}

/* ========================================
   Pricing
======================================== */
.pricing-table-wrapper {
    overflow-x: auto;
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.pricing-table th, .pricing-table td {
    padding: 20px;
    border: 1px solid var(--glass-border);
    text-align: left;
}

.pricing-table th {
    background: rgba(0, 102, 204, 0.2);
    color: var(--secondary-color);
    font-weight: bold;
    white-space: nowrap;
}

.notes {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================
   Flow
======================================== */
.flow-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    background: var(--glass-bg);
    border-left: 4px solid var(--secondary-color);
    padding: 30px;
    position: relative;
}

.step-num {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: bold;
    color: rgba(0, 204, 255, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* ========================================
   FAQ
======================================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--glass-border);
}

.faq-q {
    padding: 20px 0;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}

.faq-q::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: 0.3s;
}

.faq-item.active .faq-q::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-a {
    padding-bottom: 20px;
    color: var(--text-muted);
    display: none;
}

/* ========================================
   Company
======================================== */
.company-wrapper {
    display: flex;
    gap: 50px;
}

.company-info {
    flex: 1;
}

.company-info dl {
    display: flex;
    flex-wrap: wrap;
    border-top: 1px solid var(--glass-border);
}

.company-info dt, .company-info dd {
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

.company-info dt {
    width: 30%;
    font-weight: bold;
    color: var(--secondary-color);
}

.company-info dd {
    width: 70%;
}

.company-map {
    flex: 1;
    min-height: 300px;
    border: 1px solid var(--glass-border);
}

/* 地図のiframe自体にも高さを強制指定 */
.company-map iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    display: block;
}

/* ========================================
   Contact Form
======================================== */
.contact-section {
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-light));
}

.contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    background: var(--glass-bg);
    padding: 40px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.required {
    background: var(--secondary-color);
    color: #000;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 10px;
}

.optional {
    background: #555;
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 10px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: #fff;
    font-family: var(--font-jp);
    border-radius: 5px;
    transition: 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: rgba(0, 204, 255, 0.05);
}

.form-agreement {
    text-align: center;
    margin: 30px 0;
}

.link-privacy {
    color: var(--secondary-color);
    text-decoration: underline;
}

.form-submit {
    text-align: center;
}

.btn-submit {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    border: none;
    padding: 15px 60px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.5);
}

/* ボタンのパルスエフェクト */
.btn-contact-nav, .btn-submit {
    position: relative;
    overflow: hidden;
    animation: pulseGlow 2s infinite;
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 204, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 204, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 204, 255, 0); }
}

/* ========================================
   Footer
======================================== */
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 20px;
}

.footer-logo img {
    height: 250px;
    width: auto;
    max-width: 250px; 
    transition: height 0.3s ease;
}

.footer-nav ul {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-nav a {
    font-family: var(--font-en);
    font-size: 0.95rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 5px;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: 0.3s;
    box-shadow: 0 0 10px var(--secondary-color);
}

.footer-nav a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 8px rgba(0, 204, 255, 0.5);
}

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

.footer-bottom {
    padding-bottom: 30px;
    color: var(--text-muted);
}

/* ========================================
   Modal
======================================== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-light);
    margin: 10% auto;
    padding: 40px;
    border: 1px solid var(--secondary-color);
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

.close-modal {
    color: var(--text-muted);
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--secondary-color);
}

.modal-body h3 {
    margin: 20px 0 10px;
    color: var(--secondary-color);
}

/* ========================================
   Animations (Intersection Observer)
======================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.1, 0, 0.1, 1), transform 0.8s cubic-bezier(0.1, 0, 0.1, 1);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.1, 0, 0.1, 1), transform 0.8s cubic-bezier(0.1, 0, 0.1, 1);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.1, 0, 0.1, 1), transform 0.8s cubic-bezier(0.1, 0, 0.1, 1);
}

.is-visible {
    opacity: 1;
    transform: translate(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* ========================================
   Responsive
======================================== */
@media screen and (max-width: 900px) {
    .mission-wrapper, .company-wrapper {
        flex-direction: column;
    }
    .service-grid {
        grid-template-columns: 1fr;
    }
    .company-info dt, .company-info dd {
        width: 100%;
        border-bottom: none;
    }
    .company-info dd {
        padding-top: 0;
        border-bottom: 1px solid var(--glass-border);
    }
    
    /* スマホ・タブレット表示時の地図サイズを強制固定 */
    .company-map {
        width: 100%;
        height: 350px;
        min-height: 350px;
        display: block;
    }
    .company-map iframe {
        height: 350px !important;
    }
}

@media screen and (max-width: 768px) {
    /* ヘッダー・フッターのロゴサイズをモバイル用に60pxへ強制変更 */
    .logo img, .footer-logo img {
        height: 60px !important;
        width: auto !important;
    }

    .header-inner {
        padding: 0 20px;
    }
    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        z-index: 1001;
    }
    .hamburger span {
        position: absolute;
        width: 100%;
        height: 2px;
        background: #fff;
        transition: 0.3s;
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 9px; }
    .hamburger span:nth-child(3) { bottom: 0; }
    
    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 23, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: 0.3s;
    }
    .global-nav.active {
        right: 0;
    }
    .global-nav ul {
        flex-direction: column;
    }
    .hero-content h2 { font-size: 8vw; }
    
    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }
    .footer-nav ul {
        gap: 15px;
    }
}