:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.5);
    
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: 'Inter', 'Noto Sans JP', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glassmorphism */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(139, 92, 246, 0.15);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Header */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    top: 20%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: #8b5cf6;
    border-radius: 50%;
}

.blob-2 {
    bottom: 20%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: #3b82f6;
    border-radius: 50%;
    animation-delay: -5s;
}

.blob-3 {
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: #ec4899;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -30px) scale(1.1); }
}

.hero-content h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Sections */
.apps-section, .about-section {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
    text-align: center;
}

/* App Grid */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.app-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 24px;
}

.yumenikki-icon {
    background: linear-gradient(135deg, #1e1b4b, #4c1d95);
    box-shadow: 0 4px 12px rgba(76, 29, 149, 0.4);
}

.void-icon {
    background: linear-gradient(135deg, #000000, #333333);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.nmd-icon {
    background: linear-gradient(135deg, #00dede, #8b33ff);
    box-shadow: 0 4px 12px rgba(0, 222, 222, 0.4);
}

.shabelog-icon {
    background-image: url('../images/shabelog_icon.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(76, 29, 149, 0.4);
}

.bihada-icon {
    background-image: url('../images/bihada_icon.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(255, 140, 150, 0.4);
}

.yottsu-icon {
    background-image: url('../images/yottsu_icon.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.4);
}

.app-info h4 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.app-tag {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.app-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* Buttons */
.link-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.link-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.link-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.glass-footer {
    padding: 32px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------
   Detail Pages
------------------------- */
.nav-back {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-back:hover {
    color: var(--text-primary);
}

.detail-hero {
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.detail-hero .app-icon {
    width: 96px;
    height: 96px;
    font-size: 48px;
    margin: 0 auto 24px;
}

.detail-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.detail-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.detail-gallery {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin: 0 auto 60px;
    max-width: 1000px;
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    overflow-x: auto;
    scrollbar-width: none;
}
.detail-gallery::-webkit-scrollbar {
    display: none;
}

.detail-gallery img {
    height: 500px;
    width: auto;
    border-radius: 16px;
    object-fit: contain;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.detail-content-section {
    padding: 60px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    padding: 24px;
    text-align: left;
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 16px;
    display: inline-block;
}

.feature-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* -------------------------
   Table Styles
------------------------- */
.specs-table {
    overflow-x: auto;
}

.specs-table table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.specs-table th,
.specs-table td {
    padding: 16px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.95rem;
}

.specs-table th {
    color: var(--text-primary);
    font-weight: 600;
    width: 30%;
    white-space: nowrap;
}

.specs-table td {
    color: var(--text-secondary);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
    border-bottom: none;
}

/* Language Switcher */
.lang-divider {
    color: var(--text-secondary);
    margin: 0 8px;
    opacity: 0.5;
}

.lang-toggle {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
    margin-left: 8px !important;
}

.lang-toggle.active {
    color: var(--accent);
}

.lang-toggle:hover {
    color: var(--text-primary);
}
