﻿/* --- 基本設定 --- */
body {
    background-color: #0f0f0f;
    color: #ffffff;
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    margin: 0;
    padding: 0;
}

/* --- プロフィールヘッダー --- */
header {
    text-align: center;
    padding: 60px 20px;
    background-color: transparent; 

    border-bottom: none;
    position: relative;
    z-index: 1;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #333;
    margin-bottom: 20px;
    object-fit: cover;
}

h1 {
    margin: 0;
    font-size: 2.2rem;
    letter-spacing: 0.15em;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(0, 0, 0, 0.8);
}

.bio {
    color: #eee;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* --- メインコンテンツ --- */
main {
    display: grid;
    max-width: 1000px; 
    margin: 0 auto;

    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    
    gap: 25px;
    padding: 40px 20px;
    align-items: stretch;
}

/* --- リンクカード --- */
.link-card {
    display: flex;
    flex-direction: row; 
    align-items: flex-start;
    padding: 25px;
    text-decoration: none;
    color: inherit;
    height: 100%; 
    box-sizing: border-box; 
    position: relative;
    overflow: hidden;

    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid #333;
    border-radius: 16px;
    
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.link-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #4CAF50; 
    background-color: rgba(60, 60, 60, 0.95);
    
    box-shadow: 
        0 0 10px rgba(76, 175, 80, 0.6), 
        0 0 30px rgba(76, 175, 80, 0.4), 
        0 20px 40px rgba(0, 0, 0, 0.6); 
}

.link-card:hover .icon-area {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.icon-area {
    width: 50px;
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-right: 20px;
    margin-top: 2px; 
}

.text-area {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.text-area h2 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.text-area p {
    flex-grow: 1;
    margin: 0;
    font-size: 0.9rem;
    color: #ccc;
    line-height: 1.6;
    word-break: break-word; 
    overflow-wrap: break-word;
}

/* サービス別に色を変える */
.youtube { color: #FF0000; }
.x-twitter { color: #fff; }
.bookmeter { color: #59bb0c; }
.annict { color: #f85b73; }
.game { color: #4CAF50; }

footer {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    color: #666;
}

/* --- 背景アニメーションの土台 --- */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at center, #1a1a1a 0%, #050505 100%);
    overflow: hidden;
}

/* 擬似要素を使って星（ドット）を作る */
.bg-animation::before,
.bg-animation::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%; 
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #eee, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.4;
    animation: stars-loop 20s linear infinite;
}

.bg-animation::after {
    opacity: 0.2;
    background-size: 350px 350px;
    animation: stars-loop 40s linear infinite reverse;
}

@keyframes stars-loop {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes stars-move {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

@keyframes floating {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

@media (max-width: 480px) {
    main {
        grid-template-columns: 1fr;
    }
}
