/* Reset & Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #fff;
    background-color: #000;
    line-height: 1.6;
    overflow: hidden;
}

#matrix-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -2;
    opacity: 0.25;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 300;
    letter-spacing: 2px;
}

.divider {
    width: 60px;
    height: 2px;
    background-color: #000;
    margin: 15px auto 40px;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: transparent;
}

/* Header */
.header {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #333;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.logo {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 4px;
    display: flex;
    align-items: center;
}

.logo .site-icon {
    height: 40px;
    margin-right: 15px;
    /* 背景を透明化したPNGにしたため、ブレンドモードは不要になりました */
    /* ただし白背景の上で白文字だと見えないため、ネガ反転だけ残して黒インクのようにします */
    filter: invert(1);
}

.logo span {
    font-weight: 700;
    color: #888;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav a {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav a:hover {
    color: #888;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    color: #fff;
    text-align: center;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hero-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #cccccc;
    margin-bottom: 30px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.8;
}

/* About Section */
.philosophy-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #ddd;
    line-height: 1.8;
    text-align: left;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background-color: #111;
    padding: 40px 30px;
    border: 1px solid #333;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.05);
    border-color: #555;
}

.service-card h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.service-card p {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.6;
}

/* Contact Section */
.contact-container p {
    margin-bottom: 30px;
    color: #ddd;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #111;
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid #111;
    transition: all 0.3s;
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: #111;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ccc;
    background-color: #fafafa;
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #111;
}

.contact-form .btn {
    width: 100%;
    text-align: center;
}

/* Footer Section */
.footer {
    background-color: #111;
    color: #888;
    padding: 40px 0;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* 隠し扉 (Secret Door) */
.secret-door {
    color: inherit;
    cursor: default; /* クリックできると悟られないようにする */
}
.secret-door:hover {
    color: #555; /* わずかに色を変えるだけ */
}

/* レスポンシブ */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    .hero-content h2 {
        font-size: 2rem;
    }
}

/* Antigravity Setup Components */
.ag-logo-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Floating Logo (A only) */
.hero-logo-float {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 10;
    
    /* ゆっくりと上下に浮遊するアニメーション */
    animation: float 4s ease-in-out infinite;
}

/* 波紋を独立させ、ぽわーっと広がるアニメーションに追加 */
.ag-ripple {
    position: absolute;
    bottom: 20px;
    width: 160px;
    height: 40px;
    z-index: 5;
}

.ag-ripple .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid transparent;
    opacity: 0;
}

.ag-ripple .ring.inner {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 0 15px rgba(255,255,255,0.1), 0 0 15px rgba(255,255,255,0.1);
    animation: ripple-powaa 3s infinite ease-out;
}

.ag-ripple .ring.outer {
    border-width: 1px;
    border-color: rgba(255, 255, 255, 0.2);
    animation: ripple-powaa 3s infinite ease-out 1.5s;
}

@keyframes ripple-powaa {
    0% {
        width: 30%;
        height: 30%;
        opacity: 0.8;
    }
    100% {
        width: 150%;
        height: 150%;
        opacity: 0;
    }
}

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