:root {
    --color-primary: #ff3e00;
    --color-bg: #000;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.u-mono { font-family: 'Courier New', Courier, monospace; }

body {
    background: var(--color-bg);
    color: #fff;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    overflow-x: hidden;
}

/* モーダル（iframe）内表示用 */
body.is-embed { min-width: 0; }
body.is-embed .header {
    padding: 14px 5%;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}
body.is-embed .logo { font-size: 1.35rem; }
body.is-embed .nav ul { flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
body.is-embed .nav a { font-size: 0.65rem; }
body.is-embed .nav-meta { font-size: 0.6rem; padding: 4px 10px; }
body.is-embed .hero {
    height: auto;
    min-height: 50vh;
    padding: 140px 5% 40px; /* height: auto を追加し、パディングを 140px に増量 */
}
body.is-embed .hero__title { font-size: clamp(2.5rem, 15vw, 5rem); margin-bottom: 20px; }
body.is-embed .hero__label { font-size: 0.7rem; margin-bottom: 12px; letter-spacing: 0.25em; }
body.is-embed .hero__desc { font-size: 0.95rem; margin-bottom: 24px; }
body.is-embed .btn { padding: 14px 32px; font-size: 0.75rem; letter-spacing: 0.2em; }
body.is-embed .hero__stats { gap: 32px; bottom: 20px; }
body.is-embed .stat-val { font-size: 1.5rem; }
body.is-embed .stat-label { font-size: 0.6rem; }
body.is-embed .section { padding: 48px 0; }
body.is-embed .container { padding: 0 4%; max-width: 100%; }
body.is-embed .tech__grid { grid-template-columns: 1fr; gap: 32px; }
body.is-embed .tech__item { padding-left: 20px; }
body.is-embed .tech__item h3 { font-size: 1.5rem; margin-bottom: 16px; }
body.is-embed .tech__item p { font-size: 0.9rem; }
body.is-embed .programs-grid { grid-template-columns: 1fr; gap: 24px; }
body.is-embed .program-content { padding: 20px 16px; }
body.is-embed .program-content h3 { font-size: 1.5rem; }
body.is-embed .cyber-group { margin-bottom: 24px; }
body.is-embed .cyber-group label { font-size: 0.7rem; margin-bottom: 8px; }
body.is-embed .cyber-group input,
body.is-embed .cyber-group textarea { padding: 14px; font-size: 1rem; }
body.is-embed .btn-glitch { padding: 18px; font-size: 0.85rem; letter-spacing: 0.3em; }

.noise {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: url(https://grainy-gradients.vercel.app/noise.svg);
    opacity: 0.1; pointer-events: none; z-index: 999;
}

/* Header */
.header {
    position: fixed; top: 0; width: 100%; padding: 40px 5%;
    display: flex; justify-content: space-between; align-items: center; z-index: 1000;
    background-color: transparent;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.header.is-scrolled {
    padding: 16px 5%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.header.is-scrolled .logo { font-size: 1.5rem; }
.header.is-scrolled .nav a { font-size: 0.7rem; }
.header.is-scrolled .nav-meta { font-size: 0.65rem; padding: 4px 12px; }
.logo { font-size: 2.2rem; font-weight: 900; letter-spacing: -0.05em; font-style: italic; transition: font-size 0.3s ease; }
.nav ul { display: flex; list-style: none; gap: 40px; }
.nav a { text-decoration: none; color: #fff; font-size: 0.75rem; letter-spacing: 0.2em; opacity: 0.7; transition: opacity 0.3s, color 0.3s, font-size 0.3s ease; }
.nav a:hover, .nav a.is-active { opacity: 1; color: var(--color-primary); }
.nav-meta { font-size: 0.7rem; color: var(--color-primary); letter-spacing: 0.2em; border: 1px solid var(--color-primary); padding: 5px 15px; transition: font-size 0.3s ease, padding 0.3s ease; }

/* Hero */
.hero {
    height: 100vh; display: flex; align-items: center; justify-content: center;
    position: relative; padding: 100px 5% 0; /* ヘッダー分の上パディングを追加 */
    overflow: hidden;
}
.hero__bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero__image-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero__img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) contrast(1.1); }

.grid {
    position: absolute; bottom: -50%; width: 200%; height: 200%;
    background-image: linear-gradient(var(--color-primary) 1px, transparent 1px), linear-gradient(90deg, var(--color-primary) 1px, transparent 1px);
    background-size: 100px 100px; transform: rotateX(70deg) translateX(-25%);
    opacity: 0.1; pointer-events: none;
}

.scanline {
    position: absolute; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%);
    background-size: 100% 4px; z-index: 2; pointer-events: none;
}

.hero__content { position: relative; z-index: 10; text-align: center; max-width: 1000px; }
.hero__label { color: var(--color-primary); font-size: 0.9rem; letter-spacing: 0.5em; display: block; margin-bottom: 25px; font-weight: 700; }
.hero__title { font-size: clamp(5rem, 20vw, 15rem); line-height: 0.8; font-weight: 900; font-style: italic; letter-spacing: -0.05em; margin-bottom: 40px; }
.hero__title span { color: var(--color-primary); }
.hero__desc { font-size: 1.15rem; opacity: 0.9; max-width: 550px; margin: 0 auto 50px; text-transform: none; line-height: 1.8; text-shadow: 0 2px 10px rgba(0,0,0,0.5); } /* Increased opacity and shadow */

.btn {
    display: inline-block; border: 1px solid #fff; color: #fff; padding: 25px 60px;
    text-decoration: none; font-weight: 900; letter-spacing: 0.4em; transition: 0.4s;
}
.btn:hover { background: var(--color-primary); border-color: var(--color-primary); transform: scale(1.05); }

.hero__stats { position: absolute; bottom: 60px; width: 100%; display: flex; justify-content: center; gap: 100px; z-index: 10; }
.stat-item { text-align: center; }
.stat-val { font-size: 3.5rem; font-weight: 900; display: block; line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--color-primary); letter-spacing: 0.2em; margin-top: 10px; display: block; opacity: 0.8; }

/* Section */
.section { padding: 160px 0; position: relative; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; }

.tech__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.tech__item { border-left: 1px solid rgba(255,255,255,0.2); padding-left: 40px; }
.tech__num { color: var(--color-primary); font-size: 0.8rem; letter-spacing: 0.2em; display: block; margin-bottom: 25px; }
.tech__item h3 { font-size: 2.5rem; line-height: 1.1; margin-bottom: 30px; }
.tech__item p { text-transform: none; opacity: 0.8; line-height: 1.8; font-size: 1.05rem; } /* Increased opacity */

/* Programs */
.programs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.program-card { position: relative; aspect-ratio: 16/10; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.program-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.6); transition: 0.8s; }
.program-card:hover img { filter: grayscale(0) brightness(0.8); transform: scale(1.05); }
.program-content { position: absolute; bottom: 0; left: 0; padding: 40px; z-index: 10; }
.program-content h3 { font-size: 2.5rem; margin-bottom: 10px; }

/* Contact Form Cyber */
.cyber-form { max-width: 700px; margin: 0 auto; }
.cyber-group { margin-bottom: 50px; position: relative; }
.cyber-group label { display: block; color: var(--color-primary); font-size: 0.8rem; margin-bottom: 15px; letter-spacing: 0.3em; }
.cyber-group input, .cyber-group textarea {
    width: 100%; background: transparent; border: 1px solid rgba(255,255,255,0.2);
    padding: 20px; color: #fff; font-family: inherit; font-size: 1.25rem; outline: none;
}
.cyber-group input:focus, .cyber-group textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 20px rgba(255, 62, 0, 0.2); }
.btn-glitch {
    width: 100%; background: #fff; color: #000; border: none; padding: 25px;
    font-size: 1rem; font-weight: 900; letter-spacing: 0.5em; cursor: pointer; transition: 0.3s;
}
.btn-glitch:hover { background: var(--color-primary); color: #fff; }

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 16px;
        padding: 20px 5%;
        align-items: center;
    }
    .header.is-scrolled {
        padding: 12px 5%;
        gap: 10px;
    }
    .header.is-scrolled .logo { font-size: 1.2rem; }
    .logo { font-size: 1.5rem; }
    .nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 20px;
    }
    .nav a { font-size: 0.65rem; }
    .nav-meta { font-size: 0.65rem; padding: 4px 12px; }
    .hero {
        min-height: 100svh;
        padding: 0 5%;
    }
    .hero__title {
        font-size: clamp(3rem, 18vw, 8rem);
        margin-bottom: 28px;
    }
    .hero__label { font-size: 0.75rem; letter-spacing: 0.3em; margin-bottom: 16px; }
    .hero__desc { font-size: 1rem; margin-bottom: 32px; }
    .btn { padding: 18px 40px; font-size: 0.8rem; letter-spacing: 0.25em; }
    .hero__stats {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
        bottom: 24px;
        flex-wrap: wrap;
    }
    .stat-val { font-size: 2rem; }
    .stat-label { font-size: 0.65rem; margin-top: 6px; }
    .section { padding: 80px 0; }
    .container { padding: 0 5%; }
    .tech__grid { grid-template-columns: 1fr; gap: 48px; }
    .tech__item { padding-left: 20px; border-left-width: 2px; }
    .tech__item h3 { font-size: 1.75rem; margin-bottom: 20px; }
    .tech__item p { font-size: 0.95rem; }
    .programs-grid { grid-template-columns: 1fr; gap: 24px; }
    .program-content { padding: 24px 20px; }
    .program-content h3 { font-size: 1.75rem; }
    .cyber-form { padding: 0; }
    .cyber-group { margin-bottom: 32px; }
    .cyber-group label { font-size: 0.7rem; margin-bottom: 10px; }
    .cyber-group input, .cyber-group textarea {
        padding: 16px;
        font-size: 1rem;
    }
    .btn-glitch { padding: 20px 16px; font-size: 0.9rem; letter-spacing: 0.3em; }
}
