:root {
    --bg-primary: #0f1115;       
    --bg-secondary: #1a1d24;     
    --bg-accent: #242933;        
    --text-primary: #f3f4f6;     
    --text-secondary: #9ca3af;   
    --accent-color: #d4af37;     
    --accent-glow: rgba(212, 175, 55, 0.15);
    --error-color: #ef4444;      
    --bg-primary: #050505;
    --accent-neon: #0ff; /* シアンのネオン */
    --accent-glow: 0 0 10px #0ff, 0 0 20px #0ff;
    --text-primary: #fff;
    --accent-color: #58a6ff;     /* サーバー管理画面風の青（視認性重視） */
    --accent-glow: rgba(88, 166, 255, 0.15);
    --error-color: #f85149;      
    
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.3s ease;
    --border-radius: 6px;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans JP", sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius: 8px;
}
.menu-toggle {
    background: var(--bg-secondary);
    border: 1px solid #30363d;
    border-radius: var(--border-radius);
    padding: 12px;
}

.bar {
    background-color: var(--text-primary); /* 白っぽい色でハッキリと */
}
.nav-menu {
    background: var(--bg-secondary);
    border: 1px solid #30363d; /* 枠線を追加して境界を明確に */
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: var(--transition-smooth);
}
.menu-toggle, .nav-menu {
    display: none;
}

/* --- スマホ版限定のスタイル (幅 768px 以下) --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 1001;
        border: 1px solid var(--accent-neon);
        box-shadow: var(--accent-glow);
    }

    .nav-menu.is-active {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(5, 5, 5, 0.95);
        justify-content: center;
        align-items: center;
        z-index: 1000;
        /* ネオン文字 */
        text-shadow: var(--accent-glow);
    }
}
.nav-menu a:hover {
    background: var(--bg-accent);
    color: var(--accent-color);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at 80% 20%, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 0 24px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.hero-name {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.hero-role {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.05em;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

.cta-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.cta-btn:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.portfolio-card {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    border-color: rgba(214, 175, 87, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--accent-glow);
}

.card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 12px;
}

.portfolio-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.project-role {
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 16px;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: auto; /* 下部の技術スタックを揃える */
    padding-bottom: 24px;
}

.tech-stack {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--accent-color);
    background-color: rgba(214, 175, 87, 0.08);
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
    align-self: flex-start;
}

.experience-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 768px) {
    .experience-layout {
        grid-template-columns: 4fr 6fr;
    }
}

.skills-block h3, .timeline-block h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.skills-list {
    list-style: none;
}

.skills-list li {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    border-left: 4px solid var(--accent-color);
}

.skills-list strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.timeline {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid var(--bg-secondary);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent-color);
}

.timeline-date {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.timeline-item h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.timeline-item p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.philosophy-section {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 60px 40px;
}

.philosophy-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 800px;
}

.philosophy-content p:last-child {
    margin-bottom: 0;
}

.contact-form {
    background-color: var(--bg-secondary);
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input, .form-group textarea {
    width: 100%;
    background-color: var(--bg-accent);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 14px 16px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(214, 175, 87, 0.2);
}

.error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.8rem;
    margin-top: 6px;
    min-height: 1.2em;
}

.submit-btn {
    width: 100%;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    border: none;
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: 48px; /* タップターゲット */
}

.submit-btn:hover {
    background-color: #f1c43f;
    box-shadow: 0 4px 12px rgba(214, 175, 87, 0.3);
}

footer {
    text-align: center;
    padding: 40px 24px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--bg-secondary);
}

@media (max-width: 768px) {
    .hero-name {
        font-size: 2.5rem;
    }
    
    .hero-role {
        font-size: 1.25rem;
    }
    
    .section-container {
        padding: 60px 16px;
    }
    
    .philosophy-section, .contact-form {
        padding: 30px 20px;
    }
}


/* ==========================================================================
   9. ⑥ Cocktail Study Lab Section
   ========================================================================== */
.section-intro {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
}

/* フィルターコントロールUI */
.lab-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
    background-color: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-right: 8px;
}

.filter-btn {
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
}

.filter-btn.active {
    background-color: var(--accent-color);
    color: var(--bg-primary);
    border-color: var(--accent-color);
}

/* カクテルグリッドとアニメーション */
.cocktail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

.cocktail-item {
    background-color: var(--bg-secondary);
    padding: 32px 24px;
    border-radius: var(--border-radius);
    border-top: 3px solid transparent;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 1;
    transform: scale(1);
}

.cocktail-item:hover {
    border-top-color: var(--accent-color);
    background-color: #1e222b;
}

/* JSによるフィルタリング時の非表示クラス */
.cocktail-item.hide {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

.cocktail-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bg-primary);
    background-color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 16px;
}

.cocktail-item[data-method="stir"] .cocktail-badge { background-color: #60a5fa; } /* 氷水のようなブルー */
.cocktail-item[data-method="shake"] .cocktail-badge { background-color: #f43f5e; } /* 情熱的なレッド */
.cocktail-item[data-method="build"] .cocktail-badge { background-color: #10b981; } /* 爽やかなグリーン */

.cocktail-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.cocktail-recipe {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.cocktail-logic {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* PDFアーカイブカード（資料DL用） */
.pdf-archive-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, #16181d 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: var(--transition-smooth);
}

.pdf-archive-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
    border-color: var(--accent-color);
}

@media (min-width: 768px) {
    .pdf-archive-card {
        flex-direction: row;
        align-items: center;
    }
}

.pdf-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

@media (min-width: 768px) {
    .pdf-info {
        margin-bottom: 0;
        margin-right: 24px;
    }
}

.pdf-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.pdf-info h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pdf-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.download-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 6px;
    border: 1px solid var(--accent-color);
    transition: var(--transition-smooth);
    min-width: 200px;
    text-align: center;
}

.download-link:hover {
    background-color: var(--accent-color);
    color: var(--bg-primary);
}

.btn-text {
    font-weight: 700;
    font-size: 1rem;
}

.btn-sub {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-top: 4px;
}


/* ==========================================================================
   10. ⑦ Language Learning Hub Section
   ========================================================================== */
.language-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .language-layout {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

/* 言語ステータスボード */
.lang-status-board h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.lang-card {
    background-color: var(--bg-secondary);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 16px;
    border-left: 4px solid var(--accent-color);
}

.lang-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.lang-name {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.lang-level {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--accent-color);
    background-color: rgba(212, 175, 55, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

/* プログレスバー */
.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--bg-primary);
    border-radius: 3px;
    margin-bottom: 12px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 3px;
    transform-origin: left;
    animation: loadProgress 1.5s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes loadProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.lang-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ルーティン・タブUI */
.routine-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-secondary);
    padding-bottom: 10px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active {
    color: var(--text-primary);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.routine-list {
    list-style: none;
    margin-bottom: 32px;
}

.routine-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.routine-list li:last-child {
    border-bottom: none;
}

.time-slot {
    display: inline-block;
    width: 90px;
    font-family: monospace;
    font-weight: 700;
    color: var(--accent-color);
}

.routine-detail {
    font-size: 0.85rem !important;
    padding-top: 4px !important;
    line-height: 1.6;
}

/* 言語用PDFカードの微調整 */
.lang-pdf-card {
    margin-top: auto;
}

/* ==========================================================================
   11. ⑧ Sound Architecture (Music Player) Section
   ========================================================================== */
.music-player-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    background: linear-gradient(145deg, var(--bg-secondary) 0%, #111318 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (min-width: 992px) {
    .music-player-wrapper {
        grid-template-columns: 350px 1fr;
        padding: 40px;
    }
}

/* --- Player Core --- */
.player-core {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.artwork-container {
    width: 200px;
    height: 200px;
    margin-bottom: 24px;
}

/* レコード盤デザインと回転アニメーション */
.artwork-disc {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(#111, #333, #111, #333, #111);
    border: 4px solid #2a2a2a;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    animation: spinDisc 8s linear infinite;
    animation-play-state: paused; /* 初期状態は停止 */
}

.artwork-disc.playing {
    animation-play-state: running;
}

.disc-center {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    border-radius: 50%;
    border: 12px solid #0f1115;
}

@keyframes spinDisc {
    100% { transform: rotate(360deg); }
}

.track-info {
    margin-bottom: 24px;
    width: 100%;
}

.track-info h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.track-info p {
    font-size: 0.85rem;
    color: var(--accent-color);
}

/* --- Progress Bar --- */
.progress-area {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    margin-bottom: 24px;
}

.time-current, .time-total {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    min-width: 40px;
}

.progress-bar-container {
    flex-grow: 1;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent-color);
    width: 0%;
    border-radius: 3px;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -4px;
    width: 14px;
    height: 14px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.2s;
}

.progress-bar-container:hover .progress-bar-fill::after {
    opacity: 1;
}

/* --- Controls --- */
.controls-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.control-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.control-btn:hover {
    color: var(--accent-color);
}

.play-btn {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px; /* 再生アイコンのズレ補正 */
}

.play-btn.is-playing {
    padding-left: 0;
}

.play-btn:hover {
    background-color: #f1c43f;
    color: var(--bg-primary);
    transform: scale(1.05);
}

/* --- Volume Control --- */
.volume-area {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 60%;
}

.vol-icon {
    font-size: 1rem;
    color: var(--text-secondary);
}

.volume-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-primary);
    cursor: pointer;
}

/* --- Playlist --- */
.playlist-container {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

/* スクロールバーのカスタマイズ */
.playlist-container::-webkit-scrollbar {
    width: 6px;
}
.playlist-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.playlist-header {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.playlist {
    list-style: none;
}

.playlist-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-left: 3px solid transparent;
}

.playlist-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.playlist-item.active {
    background-color: rgba(212, 175, 55, 0.1);
    border-left-color: var(--accent-color);
}

.track-num {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--text-secondary);
    width: 30px;
}

.playlist-item.active .track-num {
    color: var(--accent-color);
}

.track-name {
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* ==========================================================================
   12. ⑨ Web Development Archives Section
   ========================================================================== */
.web-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

/* リンクカード全体のスタイリング */
.web-card {
    display: block;
    text-decoration: none;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #15181e 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.web-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.web-card:hover {
    transform: translateY(-4px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.web-card:hover::before {
    transform: scaleX(1);
}

.web-card-content {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.web-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.web-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* 外部リンクを示す矢印アイコンのアニメーション */
.external-icon {
    font-size: 1.2rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.web-card:hover .external-icon {
    color: var(--accent-color);
    transform: translate(4px, -4px); /* 右上へ少しスライド */
}

.web-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.web-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1; /* 下部のタグを揃えるための余白調整 */
}

/* 運用中を示すハイライト（ラブライブ！同好会などに適用） */
.active-project {
    background: linear-gradient(180deg, #181c25 0%, #111318 100%);
    border-color: rgba(212, 175, 55, 0.15);
}

.active-project .web-category {
    color: var(--accent-color);
}

.web-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-badge {
    font-size: 0.75rem;
    font-family: monospace;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.web-card:hover .tech-badge {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    border-color: rgba(212, 175, 55, 0.2);
}

.unity-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 992px) {
    .unity-layout {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.unity-process {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.process-step {
    display: flex;
    gap: 20px;
}

.step-number {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-primary);
    background-color: var(--accent-color);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    margin-top: 4px;
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.code-window {
    background-color: #1e1e1e;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    font-family: 'Consolas', 'Courier New', monospace;
}

.code-header {
    background-color: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #111;
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.code-title {
    color: #858585;
    font-size: 0.85rem;
}

.code-body {
    padding: 24px;
    overflow-x: auto;
}

.code-body pre {
    margin: 0;
}

.code-body code {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #d4d4d4; 
}

.keyword { color: #569cd6; } 
.type { color: #4ec9b0; }    
.function { color: #dcdcaa; } 
.string { color: #ce9178; }  
.comment { color: #6a9955; font-style: italic; } 

.experience-gallery {
    position: relative;
    width: 100%;
    height: 250px;
    margin-bottom: 48px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .experience-gallery {
        height: 400px;
    }
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    /* 1.5秒かけてふわっと切り替わる */
    transition: opacity 1.5s ease-in-out, visibility 1.5s ease-in-out;
    z-index: 1;
}

.gallery-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像の縦横比を崩さずに枠いっぱいにする */
    /* 高級感を出すためのゆっくりとしたズームアニメーション設定 */
    transform: scale(1.08);
    transition: transform 6s ease-out;
}

.gallery-slide.active img {
    transform: scale(1);
}

.pdf-viewer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdf-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pdf-tab {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--accent-color);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.pdf-tab.active {
    background: var(--accent-color);
    color: var(--bg-primary);
}

.pdf-preview-box {
    background: #fff; /* PDFの背景は白が見やすい */
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
}

.category-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.cat-btn {
    background: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

.cat-btn.active {
    background: var(--accent-color);
    color: var(--bg-primary);
}

.pdf-list {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* ヘッダーコンテナを固定 */
.header-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100;
}

/* ハンバーガーボタン */
.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
}

/* ナビメニュー（最初は非表示） */
.nav-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--bg-secondary);
    padding: 20px;
    display: none; /* 初期は隠す */
    flex-direction: column;
    gap: 15px;
    border-radius: var(--border-radius);
}
/* メニューが開いた時に付与するクラス */
.nav-menu.is-active {
    display: flex;
}
/* PC版：ヘッダーのナビゲーションを横並びで表示 */
@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
    
    .nav-menu {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
    }
    
    .nav-menu a {
        font-weight: bold;
        text-shadow: 0 0 5px var(--accent-color);
    }
}

/* 派手なネオン効果の追加 */
:root {
    --accent-neon-blue: #00f3ff;
    --neon-glow: 0 0 10px var(--accent-neon-blue), 0 0 20px var(--accent-neon-blue);
}

.hero-name {
    text-shadow: 0 0 15px var(--accent-neon-blue);
}

.nav-menu a:hover {
    color: var(--accent-neon-blue);
    text-shadow: var(--neon-glow);
    background: transparent;
}

.menu-toggle {
    border: 2px solid var(--accent-neon-blue) !important;
    box-shadow: var(--neon-glow) !important;
}

.bar {
    background-color: var(--accent-neon-blue) !important;
    box-shadow: 0 0 5px var(--accent-neon-blue);
}
/* --- PDF専用ページの追加スタイル --- */
.pdf-preview-container {
    width: 100%;
    height: 80vh; /* 画面の高さの80%分、表示領域を確保 */
    background-color: var(--bg-secondary);
    border: 2px solid var(--bg-accent);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

/* スマホなど画面が狭いときはPDFが見づらくなるので、高さを少し調整 */
@media (max-width: 768px) {
    .pdf-preview-container {
        height: 60vh;
    }
}
/* --- PDF選択・閲覧ページ用レイアウト --- */
.pdf-viewer-layout {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.pdf-sidebar {
    flex: 1;
    min-width: 250px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--bg-accent);
    border-radius: var(--border-radius);
    padding: 20px;
    height: fit-content;
}

.pdf-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-item-btn {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid var(--bg-accent);
    color: var(--text-secondary);
    padding: 12px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.pdf-item-btn:hover {
    border-color: var(--accent-color);
    color: var(--text-primary);
    background-color: rgba(88, 166, 255, 0.05);
}

.pdf-item-btn.active {
    border-color: var(--accent-color);
    color: var(--text-primary);
    background-color: var(--bg-accent);
    font-weight: bold;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.2);
}

.pdf-main-content {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pdf-actions {
    display: flex;
    justify-content: flex-start;
}

.pdf-preview-container {
    width: 100%;
    height: 75vh;
    background-color: var(--bg-secondary);
    border: 1px solid var(--bg-accent);
    border-radius: var(--border-radius);
    overflow: hidden;
}

/* スマホ用のレスポンシブ対応 */
@media (max-width: 768px) {
    .pdf-viewer-layout {
        flex-direction: column;
    }
    .pdf-sidebar {
        width: 100%;
    }
    .pdf-preview-container {
        height: 50vh;
    }
}

/* ==========================================================================
   Unity Section Image Gallery Style
   ========================================================================== */
.gallery-body {
    position: relative;
    padding: 0 !important; /* 画像を枠いっぱいに広げる */
    height: 380px; /* コードウィンドウと同等の高さを確保（好みに応じて調整可） */
    overflow: hidden;
}

.gallery-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

/* スライド（ページ）の基本状態 */
.gallery-item-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(30px); /* 右側から入ってくる効果の初期値 */
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1),
                visibility 0.6s;
    z-index: 1;
}

/* アクティブ（表示中）の状態 */
.gallery-item-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

/* 画像のトリミング設定 */
.gallery-item-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* アスペクト比を保ったまま領域を埋める */
}

/* ページめくりボタンの共通スタイル */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    transition: var(--transition-smooth);
}

.gallery-nav-btn:hover {
    background: var(--accent-color);
    color: var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-glow);
}

.prev-btn { left: 16px; }
.next-btn { right: 16px; }

/* スマホ対応：画像の高さを画面幅に合わせる */
@media (max-width: 768px) {
    .gallery-body {
        height: 250px;
    }
}

/* ==========================================================================
   Image Zoom Modal Style
   ========================================================================== */
/* ギャラリー内の画像にホバーした際、クリックできることを伝えるカーソル */
.gallery-item-slide img {
    cursor: zoom-in;
    transition: filter 0.3s ease;
}
.gallery-item-slide img:hover {
    filter: brightness(0.9); /* ホバー時に少し暗くして反応を返す */
}

/* モーダル背景（初期状態は非表示） */
.image-modal {
    display: none; 
    position: fixed;
    z-index: 2000; /* ヘッダーやメニューより前面に表示 */
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(5, 5, 5, 0.9); /* 背景を90%の黒に */
    backdrop-filter: blur(4px); /* 背景を少しぼかす（高級感の演出） */
}

/* モーダル内画像（中央配置とアニメーション） */
.modal-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 80vh;
    object-fit: contain; /* アスペクト比を維持 */
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    
    /* 開いた時のアニメーション（ふわっと拡大） */
    animation: zoomInModal 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes zoomInModal {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* 閉じるボタン（右上） */
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--text-secondary);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    color: var(--accent-color);
}

/* スマホ用のサイズ微調整 */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        padding-top: 100px;
    }
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}
/* ==========================================================================
   Neon Server Space Success Message Animation
   ========================================================================== */
#neon-success-container {
    width: 100%;
    max-width: 600px;
    margin: 40px auto;
    perspective: 1000px;
    animation: terminalFormFadeIn 0.5s ease-out forwards;
}

.server-terminal-box {
    background: #0a0c10;
    border: 2px solid #0ff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2), inset 0 0 15px rgba(0, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    font-family: monospace;
}

.terminal-header {
    background: #11161f;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    display: flex;
    align-items: center;
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}
.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27c93f; }

.terminal-title {
    color: #0ff;
    font-size: 11px;
    margin-left: 10px;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.terminal-content {
    padding: 30px 20px;
    text-align: center;
    position: relative;
}

/* ネオンテキストアニメーション */
.neon-text-cyan {
    color: #0ff;
    font-size: 14px;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 0 0 8px #0ff;
    animation: neonBlink 1.5s infinite alternate;
}

.neon-text-blue {
    color: #fff;
    font-size: 24px;
    margin: 15px 0 5px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 0 10px #58a6ff, 0 0 20px #58a6ff;
}

.neon-subtext {
    color: #9ca3af;
    font-size: 15px;
    margin-bottom: 25px;
}

/* 5秒カウントダウンに連動するインジケータープログレスバー */
.loading-bar-container {
    width: 80%;
    height: 4px;
    background: rgba(88, 166, 255, 0.1);
    margin: 20px auto;
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0ff, #58a6ff);
    box-shadow: 0 0 8px #0ff;
    transform-origin: left;
    animation: countdownProgress 5s linear forwards;
}

.auto-return-text {
    color: rgba(156, 163, 175, 0.6);
    font-size: 11px;
    margin-top: 15px;
}

/* サーバー画面特有の走査線（スキャンライン）エフェクト */
.scanline {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 3px, 3px 100%;
    opacity: 0.4;
    pointer-events: none;
}

/* キーフレーム定義 */
@keyframes terminalFormFadeIn {
    from { opacity: 0; transform: translateY(15px) rotateX(-5deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

@keyframes neonBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; text-shadow: 0 0 3px #0ff; }
}

@keyframes countdownProgress {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}