/* --- カスタムプロパティ --- */
:root {
    --bg-dark: #020010;
    --bg-light: #110f1f;
    --primary: #a855f7; /* Purple-500 */
    --secondary: #ec4899; /* Pink-500 */
    --text-main: #f9fafb; /* Gray-50 */
    --text-muted: #a1a1aa; /* Zinc-400 */
    --border-color: rgba(255, 255, 255, 0.1);
}

/* --- 基本スタイル --- */
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
}
.font-display { font-family: 'Poppins', sans-serif; }

.main-container {
    position: relative;
    z-index: 1;
}

/* --- 背景アニメーション --- */
.lines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    margin: auto;
    width: 90vw;
    z-index: -1;
}
.line {
    position: absolute;
    width: 1px;
    height: 100%;
    top: 0;
    left: 50%;
    background: var(--border-color);
    overflow: hidden;
}
.line::after {
    content: "";
    display: block;
    position: absolute;
    height: 15vh;
    width: 100%;
    top: -50%;
    left: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, var(--primary) 75%, var(--secondary) 100%);
    animation: drop 7s 0s infinite;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}
.line:nth-child(1) {
    margin-left: -25%;
}
.line:nth-child(1)::after {
    animation-delay: 2s;
}
.line:nth-child(3) {
    margin-left: 25%;
}
.line:nth-child(3)::after {
    animation-delay: 2.5s;
}
@keyframes drop {
    0% { top: -50%; }
    100% { top: 110%; }
}


/* --- ヘッダー --- */
.header {
    background: rgba(2, 0, 16, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}
.nav-link {
    position: relative;
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: var(--text-main);
}
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--text-main);
}


/* --- ボタン --- */
.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}
.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 20px -5px rgba(168, 85, 247, 0.5);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px -5px rgba(168, 85, 247, 0.7);
}
.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-main);
    border-color: var(--border-color);
}
.btn-secondary:hover {
    background-color: var(--border-color);
    border-color: var(--text-muted);
}

/* --- ヒーロー --- */
.hero-title {
    background: -webkit-linear-gradient(45deg, #f9fafb, #a1a1aa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- カード --- */
.feature-card {
    background: radial-gradient(circle at 100% 100%, var(--bg-light), var(--bg-dark));
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(2,0,16,0.5);
}
.card-icon {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    width: 3rem; height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- コマンドページ --- */
.search-input {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem 0.75rem 3rem;
    transition: border-color 0.3s ease;
}
.search-input:focus {
    outline: none;
    border-color: var(--primary);
}
.command-category-title {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.command-card {
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.2s ease-in-out;
}
.command-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}
.command-name {
    color: var(--primary);
    font-family: 'Courier New', Courier, monospace;
    font-weight: 600;
    cursor: pointer;
}
.command-name:hover {
    text-decoration: underline;
}

/* --- スクロールアニメーション --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- コピー通知 --- */
#copy-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #22C55E; /* Green-500 */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    z-index: 100;
    transition: bottom 0.5s ease-in-out;
}
#copy-notification.show {
    bottom: 2rem;
}
