/* ── RESET & BASE ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #050505; --bg2: #121212; --bg3: #1a1a1a;
  --fg: #eee; --fg2: #aaaaaa; --fg3: #666;
  --accent: #00ff88; --accent-dim: #00ff8815;
  --border: #222; --border2: #333;
  --mono: 'JetBrains Mono', monospace; --sans: 'Noto Sans JP', sans-serif;
}

html { scroll-behavior: auto; overflow-x: hidden; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 15px; line-height: 1.8; overflow-x: hidden; cursor: none; }
body.loading { height: 100vh; overflow: hidden; }
::selection { background: var(--accent); color: var(--bg); }

/* noise overlay */
body::before {
    content: ''; position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 9000;
}

/* ── HUD & CURSOR ────────────────────────────────── */
#loader { position: fixed; inset: 0; background: var(--bg); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: opacity 0.6s ease; }
#loader span { font-family: var(--mono); color: var(--accent); font-size: 1.2rem; letter-spacing: 0.5em; text-transform: uppercase; }
#loader.hidden { opacity: 0; pointer-events: none; }

#progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 9998; width: 0; will-change: width; }
#cursor-dot, #cursor-ring { position: fixed; border-radius: 50%; pointer-events: none; z-index: 10000; transform: translate(-50%, -50%); will-change: transform; transition: width 0.3s, height 0.3s, background-color 0.3s, opacity 0.3s; }
#cursor-dot { width: 6px; height: 6px; background: var(--accent); }
#cursor-ring { width: 32px; height: 32px; border: 1px solid var(--accent); }
body.hovering #cursor-dot { opacity: 0; }
body.hovering #cursor-ring { width: 55px; height: 55px; background: var(--accent-dim); border-color: transparent; }

.hud { position: fixed; font-family: var(--mono); font-size: 10px; color: var(--accent); opacity: 0.4; z-index: 100; pointer-events: none; letter-spacing: 0.2em; }
.hud-tl { top: 25px; left: 40px; } .hud-tr { top: 25px; right: 40px; text-align: right; }
.hud-bl { bottom: 25px; left: 40px; } .hud-br { bottom: 25px; right: 40px; text-align: right; }

/* ── NAVIGATION ──────────────────────────────────── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; padding: 0 4rem; height: 70px; background: rgba(5,5,5,0.8); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-brand { font-family: var(--mono); font-weight: 800; color: var(--accent); letter-spacing: 0.1em; cursor: pointer; }
.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links a { font-family: var(--mono); font-size: 11px; color: var(--fg2); text-transform: uppercase; letter-spacing: 0.2em; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent); }
.sp-only { display: none; }

/* ── SECTIONS ────────────────────────────────────── */
section { padding: 120px 4rem; max-width: 1600px; margin: 0 auto; position: relative; }
.section-label { font-family: var(--mono); font-size: 11px; color: var(--accent); text-transform: uppercase; letter-spacing: 0.3em; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem; }
.section-label::before { content: ''; width: 30px; height: 1px; background: var(--accent); }
.section-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; margin-bottom: 4.5rem; letter-spacing: -0.02em; position: relative; color: #fff; }
.section-title::before { position: absolute; top: 50%; left: -0.1em; transform: translateY(-50%); font-family: var(--mono); font-size: clamp(4rem, 12vw, 10rem); color: var(--fg); opacity: 0.03; z-index: -1; pointer-events: none; }

#about .section-title::before { content: 'PHILOSOPHY'; }
#skills .section-title::before { content: 'LANGUAGES'; }
#featured .section-title::before { content: 'HONEST_LOGS'; }
#setup .section-title::before { content: 'EXTENSIONS'; }
#sns .section-title::before { content: 'CONTACT'; }

/* ── HERO ───────────────────────────────────────── */
#hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hero-title { font-size: clamp(3rem, 10vw, 7.5rem); font-weight: 900; line-height: 1.1; margin-bottom: 2.5rem; color: #fff; }
.hero-title .char { display: inline-block; opacity: 0; transform: translateY(30px); will-change: transform, opacity; }
.hero-sub { font-family: var(--mono); font-size: clamp(1rem, 1.5vw, 1.25rem); color: var(--accent); max-width: 800px; opacity: 0; transform: translateY(15px); transition: 0.8s 1s; }
.scroll-indicator { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); text-align: center; }
.scroll-indicator span { font-family: var(--mono); font-size: 10px; color: var(--fg3); text-transform: uppercase; letter-spacing: 0.3em; }
.scroll-line { width: 1px; height: 60px; background: var(--fg3); margin: 10px auto; animation: scrollAnim 2s infinite; transform-origin: top; }
@keyframes scrollAnim { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ── LAUNCHERS (視認性改善・削除に伴う統合) ───────── */
.launcher-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.launcher-card { background: var(--bg2); border: 1px solid var(--border); padding: 3.5rem 2.5rem; text-align: left; transition: 0.4s; position: relative; border-radius: 4px; display: flex; flex-direction: column; }
.launcher-card:hover { border-color: var(--accent); background: var(--bg3); transform: translateY(-5px); }
.launcher-icon-wrap { width: 40px; height: 40px; color: var(--accent); margin-bottom: 1.5rem; }
.launcher-label { font-family: var(--mono); font-size: 10px; color: var(--accent); margin-bottom: 1.2rem; display: block; text-transform: uppercase; }
.launcher-card h3 { font-size: 1.5rem; margin-bottom: 1rem; color: #fff; font-weight: 800; }
.launcher-card p { font-size: 0.95rem; color: var(--fg2); line-height: 1.7; font-weight: 500; }
.launcher-arrow { font-family: var(--mono); color: var(--accent); font-size: 11px; font-weight: 800; text-align: right; margin-top: auto; letter-spacing: 0.1em; }
.highlight-card { border-color: rgba(0, 255, 136, 0.3); }

/* ── ABOUT / PHILOSOPHY ─────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6rem; align-items: start; }
.about-text p { font-size: 1.3rem; color: var(--fg2); margin-bottom: 2rem; }
.about-text .hl { color: var(--accent); font-family: var(--mono); font-weight: 700; }
.about-philosophy-grid { display: flex; flex-direction: column; gap: 2rem; }
.philosophy-card { background: var(--bg2); border-left: 2px solid var(--accent); padding: 2rem; }
.philosophy-card h4 { font-family: var(--mono); color: var(--accent); font-size: 0.9rem; margin-bottom: 1rem; text-transform: uppercase; }
.philosophy-card p { font-size: 1rem; color: var(--fg2); font-weight: 500; }

/* ── SKILLS ─────────────────────────────────────── */
.skills-groups { grid-template-columns: repeat(3, 1fr); }
.skill-box { background: var(--bg2); padding: 2.5rem; border: 1px solid var(--border); }
.skill-group-label { font-family: var(--mono); font-size: 11px; color: var(--accent); margin-bottom: 2rem; border-bottom: 1px solid var(--border); padding-bottom: 1rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag { font-family: var(--mono); font-size: 13px; padding: 6px 14px; border: 1px solid var(--border2); border-radius: 2px; color: var(--fg2); transition: 0.3s; }
.skill-tag:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ── LOGS (RSS 単独展開) ────────────────────────── */
.rss-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }
.rss-card { background: var(--bg2); border: 1px solid var(--border); padding: 2.5rem; transition: 0.4s; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.rss-card:hover { border-color: var(--fg2); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.rss-card h3 { font-size: 1.15rem; font-weight: 800; line-height: 1.5; color: #fff; }
.rss-img-wrap { aspect-ratio: 16/9; overflow: hidden; margin-bottom: 1.8rem; border: 1px solid var(--border); background: var(--bg3); }
.rss-img-wrap img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.rss-card:hover img { filter: grayscale(0%); transform: scale(1.05); }
.rss-date { font-family: var(--mono); font-size: 11px; color: var(--fg3); margin-bottom: 0.8rem; display: block; }

/* ── SETUP & NETWORK ──────────────────────────────── */
.setup-grid, .sns-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.setup-item, .sns-card { background: var(--bg2); border: 1px solid var(--border); padding: 2.5rem; transition: 0.4s; border-radius: 4px; }
.setup-category { font-family: var(--mono); font-size: 10px; color: var(--accent); text-transform: uppercase; margin-bottom: 1.2rem; display: block; }
.setup-item h3 { font-size: 1.2rem; margin-bottom: 0.8rem; color: #fff; font-weight: 800; }
.setup-item p { font-size: 0.95rem; color: var(--fg2); font-weight: 500; }

.graveyard-title { font-family: var(--mono); font-size: 12px; color: var(--fg3); margin: 5rem 0 1.5rem; text-transform: uppercase; letter-spacing: 0.2em; }
.graveyard-list { display: flex; flex-wrap: wrap; gap: 12px; }
.graveyard-tag { font-family: var(--mono); font-size: 13px; padding: 10px 20px; border: 1px solid var(--border2); border-radius: 999px; color: var(--fg2); position: relative; overflow: hidden; }
.graveyard-tag::after { content: ''; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: var(--fg3); transform: scaleX(0); transform-origin: left; transition: 0.3s; }
.graveyard-tag:hover::after { transform: scaleX(1); }

.contact-lead { font-size: 1.5rem; margin-bottom: 3rem; color: var(--fg2); max-width: 700px; }
.sns-icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: 1.5rem; }
.sns-platform { font-family: var(--mono); font-size: 11px; color: var(--fg3); text-transform: uppercase; margin-bottom: 1rem; display: block; }
.sns-card h3 { font-size: 1.6rem; color: #fff; font-weight: 800; margin-bottom: 0.5rem; }

footer { border-top: 1px solid var(--border); padding: 6rem 4rem; display: flex; justify-content: space-between; align-items: center; }
.footer-logo { font-family: var(--mono); color: var(--fg3); font-size: 14px; letter-spacing: 0.05em; }
.footer-copy { font-family: var(--mono); font-size: 11px; color: var(--fg3); }

/* ── REVEAL SYSTEM ──────────────────────────────── */
[data-reveal] { opacity: 0; transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform, opacity; }
[data-reveal="up"] { transform: translateY(40px); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
.in-view { opacity: 1 !important; transform: translate(0,0) !important; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
    nav { padding: 0 2rem; }
    section { padding: 100px 2.5rem; }
    .launcher-grid, .about-grid, .skills-groups { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    body { cursor: auto; }
    #cursor-dot, #cursor-ring, .hud, .nav-links { display: none; }
    .sp-only { display: block; }
    #progress-bar { display: block; }
    section { padding: 80px 1.5rem; }
    nav { padding: 0 1.5rem; }
    .rss-grid, .setup-grid, .sns-grid { grid-template-columns: 1fr; }
}
