/* ====================================
   NERD TECH - HAMBURGER & SP FIX
   ==================================== */
:root {
    --bg-color: #050505;
    --card-bg: #0f0f0f;
    --text-main: #f0f0f0;
    --text-sub: #888;
    --neon-pink: #ff66aa; 
    --neon-green: #00ff41;
    --grid-line: rgba(255, 255, 255, 0.04);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Zen Kaku Gothic New', sans-serif;
    line-height: 1.8;
    margin: 0;
    overflow-x: hidden;
    background-image: 
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
}

h1, h2, h3, h4, nav, .btn, .en { font-family: 'Roboto Mono', monospace; }

/* PCではスマホ用改行を無効化 */
.sp-br { display: none; }

/* ====================================
   ヘッダー & ハンバーガー
   ==================================== */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    background: rgba(5, 5, 5, 0.9); backdrop-filter: blur(8px);
    padding: 15px 40px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; border-bottom: 1px solid rgba(255,255,255,0.1);
    box-sizing: border-box;
}
.logo a { color: #fff; font-weight: 700; text-decoration: none; font-size: 1.2rem; letter-spacing: 1px; position: relative; z-index: 1001; }

/* PC用ナビゲーション */
nav ul { display: flex; list-style: none; gap: 30px; margin:0; padding:0; }
nav a { color: var(--text-sub); text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
nav a:hover { color: var(--neon-pink); }

/* ハンバーガーボタン（PCでは非表示） */
.hamburger { display: none; cursor: pointer; z-index: 1001; }
.bar { display: block; width: 25px; height: 3px; margin: 5px auto; transition: all 0.3s ease-in-out; background-color: #fff; }

/* ====================================
   メインビジュアル (HERO)
   ==================================== */
.hero {
    height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; position: relative; width: 100%; overflow: hidden; padding: 0 20px; box-sizing: border-box;
}
.main-logo {
    font-size: 13vw; margin: 0; line-height: 1; color: #fff; letter-spacing: -2px;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1); white-space: nowrap;
}
.hero-copy { margin-top: 20px; }
.hero-copy .en { font-size: clamp(1rem, 3vw, 2rem); font-weight: 700; letter-spacing: 3px; color: var(--neon-pink); margin: 0; }
.hero-copy .jp { font-size: 0.9rem; color: #aaa; margin-top: 5px; letter-spacing: 1px; }

.scroll-indicator {
    position: absolute; bottom: 30px; display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-family: 'Roboto Mono', monospace; font-size: 0.8rem; color: #888;
}
.scroll-indicator .line { width: 1px; height: 50px; background: #444; position: relative; overflow: hidden; }
.scroll-indicator .line::after {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--neon-pink); animation: scroll-anim 2s infinite;
}
@keyframes scroll-anim { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ====================================
   共通レイアウト
   ==================================== */
section { padding: 100px 20px; max-width: 1000px; margin: 0 auto; box-sizing: border-box; }
#concept {
    max-width: 100% !important; width: 100%; padding: 120px 0;
    background: linear-gradient(180deg, rgba(255,102,170,0.08) 0%, transparent 100%); text-align: center;
}
.concept-text { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.concept-title { font-size: 1.5rem; color: var(--neon-pink); margin-bottom: 30px; letter-spacing: 2px; }
.concept-text p { font-size: 1.1rem; color: #ccc; margin-bottom: 15px; }
.concept-text .highlight {
    color: #fff; font-weight: bold; display: inline-block; margin-top: 20px;
    border-bottom: 1px solid var(--neon-pink); padding-bottom: 5px;
}

.section-header { text-align: center; margin-bottom: 60px; }
.section-title { font-size: 3rem; margin: 0; line-height: 1; letter-spacing: 2px; color: #fff; }
.section-sub { font-size: 0.9rem; color: var(--neon-pink); margin-top: 10px; font-weight: bold; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card {
    background: var(--card-bg); border: 1px solid #222; padding: 30px; transition: 0.3s;
    display: flex; flex-direction: column;
}
.card:hover { border-color: var(--neon-pink); transform: translateY(-5px); box-shadow: 0 5px 20px rgba(255, 102, 170, 0.15); }
.card h3 { margin-top:0; color: #fff; font-size: 1.2rem; }
.service-list { padding-left: 20px; margin: 15px 0 auto 0; color: #aaa; font-size: 0.9rem; }
.works-link { margin-top: 20px; text-align: right; font-size: 0.8rem; }
.works-link a { color: #666; text-decoration: none; font-family: 'Roboto Mono'; transition: 0.3s; }
.works-link a:hover { color: var(--neon-pink); }

.package-area { margin-top: 60px; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.package-card { background: #111; border: 1px solid var(--neon-pink); padding: 25px; border-radius: 4px; text-align: center; }
.package-card h4 { margin: 0 0 15px 0; color: #fff; font-size: 1.1rem; }
.package-card p { color: #ccc; font-size: 0.9rem; margin: 0; }

.btn-area { text-align: center; margin-top: 40px; }
.btn { display: inline-block; padding: 12px 40px; border: 1px solid #444; color: #fff; text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
.btn:hover { border-color: var(--neon-pink); color: var(--neon-pink); background: rgba(255, 102, 170, 0.05); }
.btn-primary { background: var(--neon-pink); border-color: var(--neon-pink); color: #000; font-weight: bold; }
.btn-primary:hover { background: #fff; border-color: #fff; color: #000; }

.work-img { height: 180px; background: #1a1a1a; display: flex; align-items: center; justify-content: center; color: #555; margin-bottom: 15px; font-family: 'Roboto Mono'; }
.date { font-size: 0.8rem; color: var(--neon-pink); margin:0; }
footer { border-top: 1px solid #222; padding: 50px 0; text-align: center; color: #555; font-size: 0.8rem; background: #000; }

.contact-grid { display: flex; gap: 30px; justify-content: center; margin-top: 40px; }
.contact-box { flex: 1; background: #0a0a0a; border: 1px solid #333; padding: 40px; border-radius: 4px; transition: 0.3s; }
.contact-box:hover { border-color: var(--neon-pink); }

/* ====================================
   ★スマホ対応 (Responsive)
   ==================================== */
@media (max-width: 768px) {
    /* ハンバーガーメニュー表示 */
    .hamburger { display: block; }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* ナビゲーションメニュー（スマホ用） */
    nav {
        position: fixed; top: 0; left: -100%; width: 100%; height: 100vh;
        background: rgba(0,0,0,0.95); display: flex; flex-direction: column;
        justify-content: center; align-items: center; transition: 0.3s;
    }
    nav.active { left: 0; }
    nav ul { flex-direction: column; gap: 40px; text-align: center; }
    nav a { font-size: 1.5rem; font-weight: bold; }

    /* スマホ用改行を有効化 */
    .sp-br { display: block; }

    /* フォント調整 */
    .main-logo { font-size: 15vw; letter-spacing: -1px; }
    .hero-copy .en { font-size: 1.2rem; }
    .section-title { font-size: 2rem; }
    .grid, .package-grid { grid-template-columns: 1fr; }
    .contact-grid { flex-direction: column; }
    section { padding: 60px 20px; }
    #concept { padding: 80px 0; }
}