/* 
 * Tsukuyomi Lapin Portfolio - Updated Styles
 */

:root {
    /* Color Palette */
    --bg-primary: #0d001a;
    --bg-secondary: #1a052b;
    --accent-color: #ffd700;
    --accent-glow: rgba(255, 215, 0, 0.5);
    --text-main: #ffffff;
    --text-sub: #e0e0e0;
    
    --glass-bg: rgba(15, 10, 30, 0.75); 
    --glass-border: rgba(255, 255, 255, 0.15);
    
    --warning-bg: rgba(255, 50, 50, 0.15);
    --warning-border: rgba(255, 50, 50, 0.6);

    /* Fonts */
    --font-heading: 'Orbitron', 'Courier New', monospace;
    --font-body: 'Noto Sans JP', sans-serif;

    /* Spacing & Layout */
    --section-spacing: 120px;
    --container-max-width: 860px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(100, 0, 150, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(50, 0, 100, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utilities */
h1, h2, h3 {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Sections Default */
.section {
    margin-bottom: var(--section-spacing);
    margin-top: var(--section-spacing);
    opacity: 0; 
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 特定修正: プロフィールの上部を40pxに短縮 */
#profile {
    margin-top: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-glow);
    padding-bottom: 15px;
}

.section-icon {
    font-size: 1.8rem;
    margin-right: 15px;
    filter: drop-shadow(0 0 5px var(--accent-glow));
}

.section-header h2 {
    font-size: 1.8rem;
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* 
 * HERO SECTION (再修正版)
 * 背景画像を復活 & 日本語タイトル追加
 */
.hero-section {
    min-height: 60vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    
    /* ▼▼▼ ここを 0 から 1 に変えてください！ ▼▼▼ */
    opacity: 1; 
    transform: translateY(0); /* ここも 0 に修正 */
    /* ▲▲▲ 修正はここまで ▲▲▲ */
    
    transition: opacity 1s ease-out, transform 1s ease-out;
    margin-bottom: 0;
    
    /* 背景画像 */
    background: 
        linear-gradient(rgba(13, 0, 26, 0.7), rgba(26, 5, 43, 0.7)),
        url('../img/header.png') no-repeat center center/cover;
        
    z-index: 1;
    box-shadow: inset 0 -50px 50px var(--bg-primary);
}

/* ▼▼▼ 追加：日本語タイトルのスタイル ▼▼▼ */
.header-jp-text {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent-color);
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.3); /* 文字の背景に薄い黒帯を入れて読みやすく */
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

/* ※ロゴコンテナのスタイルは削除しました */

.main-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: var(--text-main);
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    
    /* ▼ 修正: フレックスボックスにしてレイアウトを制御 */
    display: flex;
    flex-direction: column; /* デフォルト（スマホ）は縦並び */
    align-items: center;
    gap: 5px; /* 行間 */
    line-height: 1.0;
}

/* PCなどの広い画面では横並びにする（お好みで縦のままでもOKです） */
@media (min-width: 769px) {
    .main-title {
        flex-direction: row;
        gap: 20px;
    }
}


@keyframes glitch-anim {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    100% { clip: rect(50px, 9999px, 60px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(10px, 9999px, 80px, 0); }
    100% { clip: rect(30px, 9999px, 90px, 0); }
}

.sub-title {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.badge {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
}
.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    margin-bottom: 10px;
    letter-spacing: 0.3em;
    color: var(--accent-color);
}
.arrow-down {
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 100% {transform: translateY(0) rotate(45deg);}
    50% {transform: translateY(-10px) rotate(45deg);}
}

/* Profile Section */
.profile-card {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.profile-image-container {
    flex-shrink: 0;
    width: 200px;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 20px var(--accent-glow);
    background: #000;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.profile-card:hover .profile-image {
    transform: scale(1.05);
}

.card-name {
    font-size: 1.8rem;
    margin-bottom: 16px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
    margin-top: 0;
}

.en-name {
    font-size: 1rem;
    color: var(--accent-color);
    font-weight: normal;
    margin-left: 10px;
    font-family: var(--font-heading);
}

.card-text {
    margin-bottom: 24px;
    color: var(--text-sub);
    line-height: 1.9;
}

.highlight-area {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

/* Manual Section */
.warning-box {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    color: #ffcccc;
}
.warning-box h3 { color: #ff5555; font-size: 1.2rem; margin-bottom: 8px; }
.manual-content h3 { color: var(--accent-color); font-size: 1.2rem; margin-bottom: 15px; }

/* System Specs Section */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}
.spec-card {
    display: flex;
    align-items: center;
    padding: 25px;
    transition: all 0.3s ease;
    
    /* リンク化に伴うスタイルリセット */
    text-decoration: none; /* 下線を消す */
    color: inherit;        /* 文字色を親要素から継承（白系にする） */
    cursor: pointer;       /* マウスカーソルを指マークにする */
}
.spec-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-5px);
    background: rgba(30, 20, 60, 0.9);
}
.spec-icon { font-size: 2.5rem; margin-right: 20px; color: var(--accent-color); opacity: 0.8; }
.spec-info h3 { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 5px; text-transform: uppercase; }
.spec-info p { font-size: 1.2rem; font-weight: 700; font-family: var(--font-heading); color: #fff; }

/* Original Music Section */
.music-card { 
    display: flex; 
    align-items: center; 
    gap: 40px; 
    
    /* ▼ クリックできることを示すカーソル */
    cursor: pointer; 
    transition: transform 0.2s, background 0.3s;
}

.music-card:active {
    transform: scale(0.98);
}

/* 再生中のカードのデザイン（少し明るくする） */
.music-card.playing {
    background: rgba(40, 30, 80, 0.85);
    border-color: var(--accent-color);
}

.record-container { flex-shrink: 0; }

.vinyl-record {
    width: 140px; height: 140px;
    background: radial-gradient(circle at center, #111 0%, #111 30%, #333 31%, #000 32%, #000 100%);
    border-radius: 50%;
    position: relative;
    display: flex; justify-content: center; align-items: center;
    
    /* ▼ アニメーションを「停止状態」にしておく（JavaScriptで制御） */
    animation: none; 
    /* animation: rotate 8s linear infinite; ← 元のこれは削除するかコメントアウト */
    
    box-shadow: 0 5px 25px rgba(0,0,0,0.6);
    border: 2px solid #222;
    transition: box-shadow 0.3s;
}

/* ▼ 再生中クラス(.playing)がついた時だけ回す */
.music-card.playing .vinyl-record {
    animation: rotate 4s linear infinite;
    box-shadow: 0 0 30px var(--accent-glow); /* 光らせる */
}

.vinyl-label { width: 50px; height: 50px; background: var(--accent-color); border-radius: 50%; opacity: 0.9; border: 2px solid #fff; }

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ▼ 再生ステータスの文字スタイル */
.play-status {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
    font-weight: bold;
}

.music-info h3 { font-size: 1.8rem; margin-bottom: 10px; }
.music-info .genre { color: var(--accent-color); font-family: var(--font-heading); font-size: 0.9rem; margin-bottom: 15px; display: inline-block; border: 1px solid var(--accent-color); padding: 2px 8px; border-radius: 4px; }

/* Footer */
.footer {
    text-align: center;
    padding: 60px 0 40px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(to top, #000, transparent);
}

/* フッターロゴのスタイル */
.footer-logo-container {
    margin-bottom: 30px;
}
.footer-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 0 15px var(--accent-glow);
    opacity: 0.8;
    transition: opacity 0.3s;
}
.footer-logo:hover {
    opacity: 1;
}

/* Footer Social Icons (Image ver.) */
.social-links {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 30px; /* アイコン同士の間隔 */
    align-items: center;
}

.social-icon {
    display: inline-block;
    transition: transform 0.3s ease;
    text-decoration: none;
    border: none;
}

/* ▼▼▼ 画像を白抜きにする設定 ▼▼▼ */
.social-icon img {
    width: 32px;  /* アイコンのサイズ */
    height: 32px;
    object-fit: contain;
}

/* ホバー時の動き（拡大＆発光） */
.social-icon:hover {
    transform: scale(1.2);
}

/* もし以前の ::after（下線）の設定が残っていたら削除または非表示に */
.social-icon::after {
    display: none;
}

/* 以前の ::after（下線）の設定が残っている場合は削除してください */
.social-icon::after {
    display: none;
}
.copyright { color: rgba(255, 255, 255, 0.4); font-size: 0.8rem; font-family: var(--font-heading); }

/* Responsive */
@media (max-width: 768px) {
    /* ▼ 修正: フォントサイズを少し小さくして画面に収める */
    .main-title { 
        font-size: 2.2rem; 
        padding: 0 10px;
        margin-top: 10px; /* 日本語タイトルの下との余白調整 */
    }
    
    .profile-card { flex-direction: column; align-items: center; text-align: center; }
    .profile-image-container { width: 160px; height: 220px; }
    .highlight-area { text-align: left; }
    .music-card { flex-direction: column; text-align: center; }
    .glass-card { padding: 25px; }
    .section-spacing { margin-bottom: 80px; }
     /* ▼ 追加：スマホではグリッチエフェクト（アニメーション）を無効化する */
    .glitch::before,
    .glitch::after {
        display: none !important;
    }
}
/* Marshmallow Banner Section */
.marshmallow-banner-link {
    text-decoration: none;
    display: block;
    transition: transform 0.3s;
}

.marshmallow-banner-link:hover {
    transform: translateY(-5px);
}

.banner-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    
    /* ▼ 背景画像パスを img フォルダに変更 */
    /* もし背景画像(banner_marshmallow.jpg)を使わない場合は、このbackground行を削除してもOKです */
    background: 
        linear-gradient(90deg, rgba(13, 0, 26, 0.9) 0%, rgba(26, 5, 43, 0.6) 100%),
        url('../img/banner_marshmallow.jpg') no-repeat center center/cover;
        
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.banner-card:hover {
    box-shadow: 0 0 30px var(--accent-glow);
    border-color: #fff;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 25px;
    z-index: 2;
}

/* ▼ ロゴ画像の設定 */
.banner-icon-img {
    width: 60px;  /* ロゴの大きさ */
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--accent-glow)); /* 光らせる */
    animation: float 4s ease-in-out infinite; /* ふわふわ動かす */
}

.banner-text h3 {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
    letter-spacing: 0.1em;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.banner-text p {
    color: var(--text-sub);
    font-size: 0.9rem;
    font-weight: bold;
}

.banner-arrow {
    font-size: 2rem;
    color: var(--accent-color);
    opacity: 0.6;
    transition: transform 0.3s, opacity 0.3s;
}

.marshmallow-banner-link:hover .banner-arrow {
    transform: translateX(10px);
    opacity: 1;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .banner-card {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .banner-content {
        flex-direction: column;
    }
    .banner-arrow {
        transform: rotate(90deg);
    }
    .marshmallow-banner-link:hover .banner-arrow {
        transform: rotate(90deg) translateY(5px);
    }
}
