/* skills_style.css */
:root {
    --bg-color: #0a0a0a;
    --text-color: #00ff41;
    --shadow-color: rgba(0, 255, 65, 0.5);
    --glitch-color-1: #ff00c1;
    --glitch-color-2: #00fff3;
}

body {
    background-color: var(--bg-color);
    /* ここで背景画像を指定 */
    background-image: url('skills_background.jpg'); 
    background-size: cover; /* 画面全体を覆う */
    background-position: center; /* 中央に配置 */
    background-attachment: fixed; /* スクロールしても背景は固定 */
    
    color: var(--text-color);
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

/* 共通のスキャンライン（走査線）エフェクト */
.scanlines {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 10;
    pointer-events: none;
    animation: flicker 0.15s infinite;
}

@keyframes flicker { 0% { opacity: 0.2; } 20% { opacity: 1; } 80% { opacity: 0.7; } 100% { opacity: 1; } }

.container {
    width: 90%;
    max-width: 900px;
    height: 90vh;
    /* 背景が透けて見えるように、少し透明な黒い背景色を設定 */
    background-color: rgba(10, 10, 10, 0.85);
    border: 1px solid var(--text-color);
    box-shadow: 0 0 15px var(--shadow-color);
    padding: 20px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* 内容が多ければスクロール可能に */
}

header {
    text-align: center;
    margin-bottom: 20px;
    flex-shrink: 0; /* ヘッダーのサイズを固定 */
}

h1 {
    font-size: 2.5rem;
    text-shadow: 0 0 5px var(--shadow-color);
    margin: 0;
}

.skill-content {
    flex-grow: 1; /* メインコンテンツエリアを広げる */
}

.skill-category {
    margin-bottom: 25px;
}

.skill-category h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 5px;
}

.skill-category ul {
    list-style: none;
    padding-left: 10px;
}

.skill-category li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.skill-category li span {
    width: 200px; /* スキル名の幅を固定 */
    flex-shrink: 0;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background-color: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--text-color);
    padding: 2px;
}

.progress-bar div {
    height: 100%;
    background-color: var(--text-color);
    box-shadow: 0 0 5px var(--shadow-color);
}

footer {
    text-align: center;
    margin-top: 20px;
    flex-shrink: 0; /* フッターのサイズを固定 */
}

.back-link {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 5px 10px;
}
.back-link:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* グリッチエフェクト（使いまわし） */
.glitch { position: relative; display: inline-block; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; background: rgba(10, 10, 10, 0.85); }
.glitch::before { left: 2px; text-shadow: -2px 0 var(--glitch-color-1); animation: glitch-anim 3s infinite linear alternate-reverse; }
.glitch::after { left: -2px; text-shadow: -2px 0 var(--glitch-color-2); animation: glitch-anim 2.5s infinite linear alternate-reverse; }
@keyframes glitch-anim { 0% { clip-path: inset(89% 0 1% 0); } 5% { clip-path: inset(34% 0 35% 0); } 10% { clip-path: inset(93% 0 4% 0); } 15% { clip-path: inset(49% 0 49% 0); } 20% { clip-path: inset(18% 0 42% 0); } 100% { clip-path: inset(69% 0 18% 0); } }