:root {
    --bg-color: #050505;
    --card-bg: rgba(20, 20, 20, 0.8);
    --accent-color: #ff5f5f; /* アイコン由来の赤 */
    --text-main: #e0e0e0;
    --text-dim: #999;
    --grid-color: rgba(255, 62, 62, 0.05);
}

html {
    font-size: 17px; 
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    line-height: 1.6;
    overflow-x: hidden;
    font-weight: 400; /* Ensures better clarity on dark backgrounds */
    -webkit-font-smoothing: antialiased; /* Makes fonts look sharper on Mac/iOS */
}

/* 背景エフェクト */
.bg-grid {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(var(--grid-color) 1px, transparent 1px),
                        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
}

.bg-glow {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw; height: 80vw;
    background: radial-gradient(circle, rgba(255, 62, 62, 0.07) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px;
}

/* ヒーローセクション */
.hero {
    text-align: center;
    margin-bottom: 80px;
}

.logo-wrapper {
    margin-bottom: 20px;
}

.logo {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 0 10px var(--accent-color));
}

.title {
    font-size: clamp(2rem, 10vw, 3.0rem); /* Responsive font sizing */
    font-weight: 700;
    margin: 0;
    letter-spacing: -2px;
}

.title span {
    color: var(--accent-color);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-dim);
    letter-spacing: 5px;
    margin-top: 10px;
    text-transform: uppercase;
}

/* セクション共通 */
section {
    margin-bottom: 60px;
}

h2 {
    font-size: 1.5rem;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 62, 62, 0.3);
}

/* リンク */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    text-shadow: 0 0 8px var(--accent-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.social-links a {
    font-weight: 500;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 62, 62, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
}

/* プロジェクト・論文リスト */
.list-item {
    margin-bottom: 20px;
}

.tag {
    font-size: 1.0rem;
    background: rgba(255, 62, 62, 0.15);
    color: var(--accent-color);
    padding: 2px 8px;
    border-radius: 2px;
    margin-right: 10px;
    font-weight: 700;
}

.year {
    font-size: 1.0rem;
    color: var(--text-dim);
}

.footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-dim);
    font-size: 0.8rem;
}

.emph {
    color: #f3f3f3;
    background: linear-gradient(transparent 70%, rgba(255, 62, 62, 0.3) 70%); /* 下半分に薄い赤のライン */
    padding: 0 2px;
}

strong {
    color: #f3f3f3;
    text-shadow: 0 0 5px rgba(255, 62, 62, 0.6); /* ほのかに赤く光らせる */
    letter-spacing: 0.5px;
    padding: 0 2px;
}

.tight li {
    margin-bottom: 0.6em;  /* ← item間の距離 */
    line-height: 1.6;
}
