@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Noto+Sans+JP:wght@300;400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #2a2a2a 100%);
    color: #e8e8e8;
    min-height: 100vh;
    overflow-x: hidden;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 119, 198, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 0;
    border-bottom: 2px solid rgba(120, 119, 198, 0.3);
}

.title {
    font-family: 'Orbitron', monospace;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, #7877c6, #ffffff, #7877c6);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
    margin-bottom: 10px;
    text-shadow: 0 0 20px rgba(120, 119, 198, 0.5);
}

.subtitle {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: #b8b8b8;
    letter-spacing: 3px;
}

.tagline {
    font-style: italic;
    margin-top: 15px;
    color: #7877c6;
    font-size: 1.1rem;
}

.navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(120, 119, 198, 0.1);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 25px;
    color: #e8e8e8;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(120, 119, 198, 0.2);
    border-color: rgba(120, 119, 198, 0.5);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(120, 119, 198, 0.3);
    border-color: rgba(120, 119, 198, 0.6);
    color: #7877c6;
}

/* .nav-icon は未使用のため削除 */

/* タイトルをリンク化した時の見た目を維持 */
.title-link { text-decoration: none; color: inherit; display: inline-block; }
.title-link:focus-visible { outline: 2px solid #7877c6; outline-offset: 4px; border-radius: 6px; }

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin-bottom: 40px;
}

.left-panel {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 10px;
    padding: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.right-panel {
    display: grid;
    gap: 20px;
}

.card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 10px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(120, 119, 198, 0.6);
    box-shadow: 0 12px 40px rgba(120, 119, 198, 0.2);
    transform: translateY(-5px);
}

.card-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #7877c6;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(120, 119, 198, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.basic-info {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-label {
    font-weight: 600;
    color: #b8b8b8;
}

.info-value {
    color: #7877c6;
    font-family: 'Orbitron', monospace;
}

.system-status {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 20px;
}

.status-item {
    text-align: center;
    padding: 15px;
    background: rgba(120, 119, 198, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(120, 119, 198, 0.2);
}

.status-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7877c6;
    display: block;
}

.status-label {
    font-size: 0.9rem;
    color: #b8b8b8;
    margin-top: 5px;
}

.world-locations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.location {
    background: rgba(120, 119, 198, 0.1);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.location:hover {
    background: rgba(120, 119, 198, 0.2);
    transform: scale(1.05);
}

.location-name {
    font-weight: 600;
    color: #7877c6;
    margin-bottom: 5px;
}

.location-desc {
    font-size: 0.9rem;
    color: #b8b8b8;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.skill {
    background: rgba(120, 119, 198, 0.1);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
}

.skill:hover {
    background: rgba(120, 119, 198, 0.2);
    border-color: rgba(120, 119, 198, 0.5);
}

.skill-name {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: #7877c6;
    margin-bottom: 10px;
}

.skill-desc {
    font-size: 0.9rem;
    color: #b8b8b8;
    line-height: 1.4;
}

.philosophy {
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.2), rgba(20, 20, 20, 0.8));
    border: 2px solid rgba(120, 119, 198, 0.4);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin: 40px 0;
}

.philosophy-quote {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #7877c6;
    margin-bottom: 15px;
    font-style: italic;
}

.philosophy-text {
    line-height: 1.6;
    color: #e8e8e8;
}

.contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-item {
    background: rgba(120, 119, 198, 0.1);
    border: 1px solid rgba(120, 119, 198, 0.3);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-item:hover {
    background: rgba(120, 119, 198, 0.2);
    transform: translateY(-3px);
}

/* .contact-icon は未使用のため削除 */

.contact-label {
    font-weight: 600;
    color: #b8b8b8;
    margin-bottom: 5px;
}

.contact-value {
    font-family: 'Orbitron', monospace;
    color: #7877c6;
    font-size: 0.9rem;
}

.footer {
    text-align: center;
    margin-top: 60px;
    padding: 30px 0;
    border-top: 1px solid rgba(120, 119, 198, 0.3);
    color: #b8b8b8;
    font-size: 0.9rem;
}

.mission-status {
    background: linear-gradient(90deg, rgba(120, 119, 198, 0.2), transparent);
    border-left: 4px solid #7877c6;
    padding: 15px 20px;
    margin: 20px 0;
    font-family: 'Orbitron', monospace;
    color: #7877c6;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 共通ロード画面スタイル */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: #7877c6;
    max-width: 500px;
    padding: 20px;
}

/* プロフィールページのロード画面 */
.android-logo {
    margin-bottom: 40px;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-hexagon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: linear-gradient(135deg, rgba(120, 119, 198, 0.3), rgba(120, 119, 198, 0.1));
    border: 2px solid #7877c6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hexagon-inner {
    text-align: center;
}

.logo-text {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(120, 119, 198, 0.5);
}

.unit-id {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 0.8rem;
    color: #7877c6;
    margin-top: 5px;
}

.android-spinner {
    position: relative;
    width: 60px;
    height: 60px;
    margin: 0 auto;
}

.spinner-orbit {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-radius: 50%;
    animation: orbitSpin 2s linear infinite;
}

.spinner-orbit:nth-child(1) {
    border-top-color: #7877c6;
    animation-duration: 1.5s;
}

.spinner-orbit:nth-child(2) {
    border-bottom-color: rgba(120, 119, 198, 0.6);
    animation-duration: 2s;
    animation-direction: reverse;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
}

.spinner-core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #7877c6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px rgba(120, 119, 198, 0.5);
}

/* 趣味ページのロード画面 */

/* 共通の進捗バーとテキスト */
.system-message {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.sub-message {
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    color: #b3b3b3;
    font-style: italic;
    margin-bottom: 30px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.progress-bar-loading {
    flex: 1;
    height: 6px;
    background: rgba(120, 119, 198, 0.2);
    border-radius: 3px;
    overflow: hidden;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

.progress-fill-loading {
    height: 100%;
    background: linear-gradient(90deg, #7877c6, #ffffff, #7877c6);
    background-size: 200% 100%;
    animation: progressShimmer 2s linear infinite;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(120, 119, 198, 0.5);
}

.progress-percentage {
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #7877c6;
    min-width: 40px;
    text-align: right;
}

.status-line {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: #7877c6;
    opacity: 0.8;
    animation: statusBlink 1.5s ease-in-out infinite;
    height: 20px;
    margin-bottom: 30px;
}

/* アニメーション */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes orbitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 未使用のアニメーション削除: controllerGlow, glowRotate, iconPulse, ringRotate, scannerMove, dotPulse, mediaFloat */

@keyframes textGlow {
    0% { text-shadow: 0 0 5px rgba(120, 119, 198, 0.5); }
    100% { text-shadow: 0 0 15px rgba(120, 119, 198, 0.8); }
}

@keyframes progressShimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes statusBlink {
    0%, 50% { opacity: 0.8; }
    51%, 100% { opacity: 0.4; }
}

@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .system-status {
        grid-template-columns: 1fr;
    }
    
    .loading-content {
        padding: 15px;
        max-width: 90%;
    }
}
