/* =============================================
   Pattern 34: IT Company (IT・テック系企業)
   NEXUS DIGITALS
   ★ 独自構成: サイバーダーク, ネオン発光, グラスモーフィズム, コードフォント
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Montserrat:wght@500;700;800&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
    --c-bg: #090A0F;
    /* 極めて暗いブルーブラック */
    --c-bg-layer: #12141D;
    /* わずかに明るい背景 */
    --c-neon-blue: #00F0FF;
    /* サイバーシアン */
    --c-neon-purple: #B026FF;
    /* アクセントパープル */
    --c-text: #E2E8F0;
    /* ライトグレー */
    --c-text-muted: #94A3B8;
    /* スレートグレー */

    --f-heading: 'Montserrat', sans-serif;
    --f-code: 'Fira Code', monospace;
    --f-body: 'Zen Kaku Gothic New', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--f-body);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.7;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.03em;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.mt-2 {
    margin-top: 10px;
}

.mt-4 {
    margin-top: 30px;
}

.mt-5 {
    margin-top: 50px;
}

/* ===== タイポグラフィ ===== */
h2,
h3 {
    font-family: var(--f-heading);
    color: #fff;
}

p {
    color: var(--c-text-muted);
}

code {
    font-family: var(--f-code);
    font-size: 0.9em;
}

.section-tag {
    display: inline-block;
    font-family: var(--f-code);
    color: var(--c-neon-blue);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
}

.sub-ja {
    font-family: var(--f-body);
    font-size: 0.75rem;
    color: var(--c-text-muted);
    margin-left: 10px;
    letter-spacing: 0.05em;
    display: inline-block;
}

.section-title {
    font-family: var(--f-body);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 30px;
    line-height: 1.4;
}

/* ===== ヘッダー ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 25px 40px;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
    background: transparent;
}

.header.is-scrolled {
    background: rgba(9, 10, 15, 0.85);
    padding: 15px 40px;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-family: var(--f-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.logo span {
    color: var(--c-neon-blue);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav a {
    font-family: var(--f-heading);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-text);
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--c-neon-blue);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.btn-nav {
    border: 1px solid var(--c-neon-blue);
    padding: 8px 20px;
    border-radius: 4px;
    color: var(--c-neon-blue) !important;
    transition: all 0.3s;
}

.btn-nav:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--c-neon-blue);
    margin-bottom: 6px;
    transition: 0.3s;
}

/* ===== ボタン ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--c-neon-blue);
    color: #000;
    padding: 15px 35px;
    text-decoration: none;
    font-family: var(--f-heading);
    font-weight: 700;
    border-radius: 4px;
    border: 1px solid var(--c-neon-blue);
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
    background: transparent;
    color: var(--c-neon-blue);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--c-text);
    padding: 15px 35px;
    text-decoration: none;
    font-family: var(--f-heading);
    font-weight: 500;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.btn-lg {
    padding: 18px 50px;
    font-size: 1.1rem;
}

/* ===== 共通：グラスモーフィズム ===== */
.glass-card {
    background: rgba(18, 20, 29, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== ヒーロー ===== */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 240, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    z-index: 0;
    transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 0 40px;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 60px;
    width: 100%;
}

.hero-left {
    flex: 1.2;
}

.hero-right {
    flex: 1;
    perspective: 1000px;
}

.hero-tag {
    color: var(--c-neon-purple);
    display: block;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-shadow: 0 0 10px rgba(176, 38, 255, 0.5);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -0.02em;
}

.text-neon {
    color: transparent;
    -webkit-text-stroke: 1px var(--c-neon-blue);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

/* ヒーロー：コードモックアップ */
.mockup-card {
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    border-color: rgba(0, 240, 255, 0.2);
    box-shadow: -20px 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 240, 255, 0.1);
}

.mockup-card:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.dot:nth-child(1) {
    background: #FF5F56;
}

.dot:nth-child(2) {
    background: #FFBD2E;
}

.dot:nth-child(3) {
    background: #27C93F;
}

.mockup-body {
    padding: 30px;
    line-height: 1.8;
    color: #E2E8F0;
    font-size: 0.95rem;
}

.c-keyword {
    color: #FF7B72;
}

.c-variable {
    color: #79C0FF;
}

.c-class {
    color: #D2A8FF;
}

.c-function {
    color: #D2A8FF;
}

.c-string {
    color: #A5D6FF;
}

.c-number {
    color: #79C0FF;
}

.c-comment {
    color: #8B949E;
    font-style: italic;
}

/* ===== セクションベース ===== */
.section {
    padding: 120px 0;
    position: relative;
}

.section--darker {
    background: var(--c-bg-layer);
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
    height: 500px;
}

.img-wrap {
    position: absolute;
    border-radius: 4px;
    overflow: hidden;
}

.img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(50%) contrast(1.2);
    transition: filter 0.5s;
}

.img-wrap:hover img {
    filter: grayscale(0%) contrast(1.1);
}

.img-1 {
    width: 75%;
    height: 70%;
    top: 0;
    left: 0;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.img-2 {
    width: 60%;
    height: 60%;
    bottom: 0;
    right: 0;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.glow-border {
    position: absolute;
    inset: -1px;
    border: 2px solid var(--c-neon-blue);
    border-radius: inherit;
    z-index: -1;
    filter: blur(8px);
    opacity: 0;
    transition: opacity 0.5s;
}

.img-1:hover .glow-border {
    opacity: 0.8;
}

.check-list {
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    font-weight: 500;
    color: #fff;
}

.check-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--c-neon-purple);
    font-family: var(--f-code);
    font-weight: bold;
}

/* ===== Services ===== */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    padding: 40px 30px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--c-neon-blue), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 240, 255, 0.1);
}

.service-card:hover::before {
    transform: translateX(100%);
}

.service-icon {
    width: 50px;
    height: 50px;
    color: var(--c-neon-blue);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Technologies ===== */
.tech-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.t-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-family: var(--f-code);
    font-size: 0.85rem;
    color: #fff;
    transition: all 0.3s;
}

.t-tag:hover {
    border-color: var(--c-neon-purple);
    background: rgba(176, 38, 255, 0.1);
    color: var(--c-neon-purple);
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.3);
}

.tech-image {
    position: relative;
    border-radius: 4px;
}

.t-img {
    width: 100%;
    display: block;
    border-radius: 4px;
    object-fit: cover;
    filter: sepia(100%) hue-rotate(180deg) saturate(200%) brightness(0.7);
    /* 暗めで青みがかったサイバー加工 */
    border: 1px solid rgba(0, 240, 255, 0.2);
    position: relative;
    z-index: 2;
}

.tech-glow {
    position: absolute;
    inset: 0;
    background: var(--c-neon-blue);
    filter: blur(50px);
    opacity: 0.15;
    z-index: 1;
    border-radius: 50%;
    transform: scale(0.9);
}

/* ===== FAQ ===== */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.faq-item {
    background: rgba(18, 20, 29, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item:hover {
    border-color: rgba(0, 240, 255, 0.4);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.faq-q {
    padding: 20px 25px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--c-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-q:hover {
    color: var(--c-neon-blue);
}

.faq-q code {
    margin-right: 15px;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-icon {
    position: relative;
    width: 14px;
    height: 14px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--c-text-muted);
    transition: transform 0.3s, background-color 0.3s;
}

.faq-item:hover .faq-icon::before,
.faq-item:hover .faq-icon::after {
    background-color: var(--c-neon-blue);
}

.faq-icon::before {
    top: 6px;
    left: 0;
    width: 14px;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 6px;
    width: 2px;
    height: 14px;
}

details[open] .faq-icon::after {
    transform: rotate(90deg) scaleY(0);
}

.faq-a {
    padding: 0 25px 25px;
    color: var(--c-text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ===== CTA ===== */
.section--cta {
    padding: 150px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    z-index: 1;
}

.section--cta h2 {
    font-size: 2.8rem;
}

.cta-desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== フッター ===== */
.footer {
    background: #050508;
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.f-desc {
    font-family: var(--f-code);
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #fff;
}

.f-col-links ul {
    list-style: none;
}

.f-col-links li {
    margin-bottom: 12px;
}

.f-col-links a {
    color: var(--c-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.f-col-links a:hover {
    color: var(--c-neon-blue);
}

.f-col-contact p {
    font-size: 0.95rem;
    color: var(--c-text-muted);
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.copyright {
    font-size: 0.85rem;
}

.f-social {
    display: flex;
    gap: 20px;
}

.f-social a {
    color: var(--c-text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.f-social a:hover {
    color: var(--c-neon-purple);
}

/* ===== アニメーション ===== */
.anim {
    opacity: 0;
    transition: all 1s ease;
}

.anim.anim-up {
    transform: translateY(40px);
}

.anim.is-visible {
    opacity: 1;
    transform: translate(0);
}

.anim-d1 {
    transition-delay: 0.2s;
}

.anim-d2 {
    transition-delay: 0.4s;
}

.anim-hero {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease;
}

.anim-hero.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
    .container {
        padding: 0 25px;
    }

    .hero {
        padding-top: 100px;
        height: auto;
        padding-bottom: 60px;
    }

    .hero-content {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .mockup-card {
        transform: none;
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: none;
        text-align: left;
    }

    .mockup-card:hover {
        transform: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-images {
        height: 400px;
        margin-bottom: 30px;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .tech-layout {
        grid-template-columns: 1fr;
    }

    .tech-image {
        order: -1;
    }

    /* 画像を上に */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }
}