:root {
    --bg-color: #fdf6f9;
    /* Pinkish White */
    --text-color: #5d4d5e;
    /* Soft Dark Gray/Purple */
    --primary-color: #ff9eb5;
    /* Pastel Pink */
    --secondary-color: #a0c4ff;
    /* Pastel Blue */
    --accent-color: #ffc6ff;
    /* Light Purple */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.8);
    --card-bg: rgba(255, 255, 255, 0.6);
    --font-heading: 'M PLUS Rounded 1c', sans-serif;
    --font-body: 'Zen Kaku Gothic New', sans-serif;
}

/* Dark Mode - System Preference */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-color: #1a1520;
        --text-color: #e8e0ea;
        --primary-color: #ff9eb5;
        --secondary-color: #a0c4ff;
        --accent-color: #ffc6ff;
        --glass-bg: rgba(40, 30, 50, 0.6);
        --glass-border: rgba(255, 255, 255, 0.15);
        --card-bg: rgba(40, 30, 50, 0.5);
    }
}

/* Dark Mode - Manual Toggle */
[data-theme="dark"] {
    --bg-color: #1a1520;
    --text-color: #e8e0ea;
    --primary-color: #ff9eb5;
    --secondary-color: #a0c4ff;
    --accent-color: #ffc6ff;
    --glass-bg: rgba(40, 30, 50, 0.6);
    --glass-border: rgba(255, 255, 255, 0.15);
    --card-bg: rgba(40, 30, 50, 0.5);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects - Bokeh/Soft Blurs */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 158, 181, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(160, 196, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 198, 255, 0.2) 0%, transparent 50%);
    z-index: -1;
    pointer-events: none;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--glass-border);
    border-radius: 0 0 20px 20px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(255, 158, 181, 0.1);
    transition: transform 0.3s ease;
}

.glass-header.header-hidden {
    transform: translateY(-100%);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.1rem;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* Header Controls */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 158, 181, 0.3);
}

/* Show sun in dark mode, moon in light mode */
.icon-moon {
    display: inline;
}

.icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: inline;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-moon {
        display: none;
    }

    :root:not([data-theme="light"]) .icon-sun {
        display: inline;
    }
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.3s;
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Mobile Menu Active State */
.menu-toggle.is-active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 10% 0;
    position: relative;
    overflow: hidden;
}

/* Hero Background - VRChat World Images */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    background-size: cover;
    background-position: center;
    filter: blur(5px);
    transition: opacity 2s ease-in-out;
    opacity: 0;
}

.hero-bg-image.active {
    opacity: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}


.hero-content {
    max-width: 50%;
    z-index: 2;
}

/* Hero Entrance Animation */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(255, 158, 181, 0.4);
    opacity: 0;
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 158, 181, 0.6);
    background: #ff8fa8;
}

/* Avatar Animation */
@keyframes avatarSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.avatar-container {
    position: absolute;
    right: 5%;
    bottom: 0;
    width: 600px;
    height: 750px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.avatar-container.show {
    opacity: 1;
    transform: translateY(0);
}

.avatar-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease;
}

.avatar-base {
    z-index: 1;
    opacity: 1;
}

.avatar-motion {
    z-index: 2;
    opacity: 0;
}

.avatar-motion.active {
    opacity: 1;
}

.avatar-container:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.hero-visual {
    position: absolute;
    right: 5%;
    bottom: -5%;
    height: 90vh;
    z-index: 1;
    animation: gentleFloat 6s ease-in-out infinite;
}

.hero-visual img {
    height: 100%;
    object-fit: contain;
    /* Soft glow instead of hard shadow */
    filter: drop-shadow(0 0 20px rgba(255, 198, 255, 0.5));
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Content Sections */
.content-section {
    padding: 3rem;
    margin: 2rem auto;
    max-width: 800px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border);
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(160, 196, 255, 0.15);
    padding: 3rem;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
    margin: 0.5rem auto 0;
}

/* About Section */
.about-header {
    text-align: center;
    margin-bottom: 2rem;
}

.about-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.about-title {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.about-tagline {
    font-size: 1rem;
    color: var(--secondary-color);
    font-style: italic;
    font-weight: 500;
}

.about-content {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1rem;
}

.about-skills,
.about-philosophy {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.about-skills h4,
.about-philosophy h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.skill-category {
    margin-bottom: 1.5rem;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.skill-category h5 {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.8rem;
    opacity: 0.9;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* About Team */
.about-team {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.about-team h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.about-team p {
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-team a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.about-team a:hover {
    text-decoration: underline;
}

/* About Avatar */
.about-avatar {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.about-avatar h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.about-avatar p {
    line-height: 1.7;
}

.about-avatar a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.about-avatar a:hover {
    text-decoration: underline;
}

/* About History / Timeline */
.about-history {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.about-history h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.history-timeline {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--secondary-color);
}

.timeline-item {
    position: relative;
    padding: 0.75rem 0;
    padding-left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.timeline-item.highlight::before {
    background: var(--primary-color);
    width: 14px;
    height: 14px;
    left: -1.7rem;
    box-shadow: 0 0 10px rgba(255, 158, 181, 0.5);
}

.timeline-item.current::before {
    background: #4ade80;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
    }
}

.timeline-date {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.85rem;
    min-width: 90px;
}

.timeline-event {
    color: var(--text-color);
    font-size: 0.95rem;
}

/* News Section */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.2s ease;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item:hover {
    background: rgba(255, 158, 181, 0.05);
}

.news-date {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-secondary);
    min-width: 85px;
    flex-shrink: 0;
}

.news-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    text-transform: uppercase;
    flex-shrink: 0;
}

.tag-release {
    background: var(--primary-color);
    color: white;
}

.tag-info {
    background: var(--secondary-color);
    color: white;
}

.tag-update {
    background: #4ade80;
    color: #1a1a2e;
}

.news-title {
    color: var(--text-color);
    font-size: 0.95rem;
}

.news-title a {
    color: var(--text-color);
    text-decoration: none;
}

.news-title a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .news-item {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .news-date {
        min-width: auto;
    }

    .news-title {
        width: 100%;
    }
}

/* Workflow Section */
.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.workflow-step {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    width: 140px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.workflow-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 158, 181, 0.2);
}

.step-number {
    position: absolute;
    top: -10px;
    left: -10px;
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.workflow-step h4 {
    font-size: 0.95rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.workflow-step p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.workflow-arrow {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .workflow-steps {
        flex-direction: column;
    }

    .workflow-arrow {
        transform: rotate(90deg);
    }

    .workflow-step {
        width: 100%;
        max-width: 250px;
    }
}

/* Works Grid */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.work-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
}

.work-item .shop-links {
    margin-top: auto;
}

.work-item.featured {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 158, 181, 0.2);
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(160, 196, 255, 0.3);
}

.work-item h3 {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.work-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.work-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    align-self: flex-start;
}

.work-status.current {
    background: var(--primary-color);
    color: white;
}

.work-status.active {
    background: var(--secondary-color);
    color: white;
}

.work-status.past {
    background: var(--glass-border);
    color: var(--text-color);
}

.work-partner {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-style: italic;
}

/* Work Gallery */
.work-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin: 1rem 0;
}

.work-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--glass-border);
}

.work-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 158, 181, 0.3);
}

.work-thumbnail.free {
    border: 2px solid var(--secondary-color);
}

/* Lightbox Overlay */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
    transform: scale(1);
}

/* Shop Links */
.shop-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.shop-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}

.shop-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 158, 181, 0.4);
    background: #ff8fa8;
}

.shop-icon {
    width: auto;
    height: 1.2rem;
    object-fit: contain;
}

.discord-button {
    background: #5865F2;
}

.discord-button:hover {
    background: #4752c4;
    box-shadow: 0 5px 15px rgba(88, 101, 242, 0.4);
}

.youtube-button {
    background: #282828;
}

.youtube-button:hover {
    background: #1a1a1a;
    box-shadow: 0 5px 15px rgba(40, 40, 40, 0.4);
}

/* FAQ Section */
.faq-category {
    margin-bottom: 2rem;
}

.faq-category h3 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(255, 158, 181, 0.15);
}

.faq-item summary {
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-color);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p,
.faq-item .faq-answer {
    padding: 0 1.25rem 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}

.faq-item li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.faq-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

.faq-sub-heading {
    font-weight: 600;
    color: var(--text-color);
    margin-top: 1rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.legal-links {
    margin-top: 1rem;
    font-size: 0.8rem;
}

.legal-links a {
    color: var(--secondary-color);
    text-decoration: none;
}

.legal-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Contact */
.contact-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem 1.75rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    width: auto;
    min-width: 140px;
    max-width: 100%;
    height: auto;
    min-height: 120px;
    text-align: center;
    box-sizing: border-box;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(160, 196, 255, 0.3);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.twitter-icon {
    width: 2rem;
    height: 2rem;
    color: #1DA1F2;
}

.contact-item:hover .twitter-icon {
    color: var(--primary-color);
}

.contact-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Footer */
.glass-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--glass-border);
    font-size: 0.9rem;
    color: var(--text-color);
    font-family: var(--font-heading);
}

.glass-footer p {
    color: var(--text-color);
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
    .glass-header {
        padding: 1rem 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }

    .logo a {
        justify-content: center;
    }

    /* Mobile Menu Toggle - Show on mobile */
    .menu-toggle {
        display: flex;
        z-index: 101;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Mobile Nav Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        backdrop-filter: blur(20px);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease-in-out;
        z-index: 99;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .nav-menu a {
        font-size: 1.5rem;
        color: var(--text-color);
    }

    .hero-section {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 150px;
    }

    .hero-content {
        max-width: 100%;
        margin-top: 2rem;
    }

    .hero-visual {
        position: relative;
        right: auto;
        bottom: auto;
        height: 50vh;
        margin-top: 3rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .content-section {
        padding: 4rem 5%;
        margin: 1rem 2%;
    }
}

/* ============================================================
   事業サイト改修（レイノワークス）追加スタイル 2026-11-07
   ============================================================ */

/* 英字見出しアクセント（Megrab 公式サイトと統一感） */
.content-section h2 {
    font-family: 'Audiowide', var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.1em;
}

.hero-kicker,
.about-name-en {
    font-family: 'Audiowide', var(--font-heading);
    font-weight: 400;
}

/* ---------- Hero ---------- */
.hero-kicker {
    font-size: 1.02rem;
    letter-spacing: 0.4em;
    color: #ffffff;
    opacity: 0.95;
    margin-bottom: 1.1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.hero-sub {
    display: block;
    font-size: 1.45rem;
    line-height: 1.45;
    margin-top: 0.9rem;
    letter-spacing: 0.06em;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.cta-ghost {
    background: rgba(255, 255, 255, 0.14);
    border: 2px solid rgba(255, 255, 255, 0.55);
    color: #ffffff;
    backdrop-filter: blur(6px);
    box-shadow: none;
}

.cta-ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

/* ヒーロー内の製品スクリーンショット（実物素材） */
.hero-product {
    position: relative;
    z-index: 1;
    width: min(44%, 600px);
    background: rgba(18, 22, 32, 0.45);
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 22px;
    padding: 14px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

.hero-product img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ---------- WORKS ---------- */
.work-item.featured {
    grid-column: 1 / -1;
}

.work-status.flagship {
    background: var(--primary-color);
    color: #ffffff;
}

.work-status.free {
    background: #4ade80;
    color: #123c22;
}

.work-status.oss {
    background: var(--secondary-color);
    color: #ffffff;
}

.featured-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
}

.featured-copy {
    flex: 1 1 340px;
    min-width: 0;
}

.featured-shot {
    flex: none;
    width: 100%;
    min-width: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    align-self: stretch;
}

.product-shot {
    display: block;
    width: 100%;
    height: auto;
}

.product-shot-dark {
    display: none;
}

.product-shot-light {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .product-shot-dark {
        display: block;
    }

    :root:not([data-theme="light"]) .product-shot-light {
        display: none;
    }
}

[data-theme="dark"] .product-shot-dark {
    display: block;
}

[data-theme="dark"] .product-shot-light {
    display: none;
}

.featured-copy h3 {
    font-size: 1.45rem;
}

.work-platform {
    font-size: 0.85rem;
    opacity: 0.85;
}

.price-list-mini {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 1rem;
}

.price-list-mini li {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 0.35rem 0.7rem;
    border-radius: 14px;
    font-size: 0.82rem;
}

.work-note-legal {
    font-size: 0.72rem;
    opacity: 0.8;
    line-height: 1.7;
    margin-top: 1.25rem;
}

.github-button {
    background: #24292f;
}

.github-button:hover {
    background: #101315;
    box-shadow: 0 5px 15px rgba(36, 41, 47, 0.4);
}

/* ---------- ABOUT ---------- */
.about-name-en {
    display: inline-block;
    margin-left: 0.6rem;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    color: var(--secondary-color);
    vertical-align: middle;
}

.about-links {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.about-links h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-links ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.about-links li {
    line-height: 1.6;
}

.about-links a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.about-links a:hover {
    text-decoration: underline;
}

.link-note {
    opacity: 0.8;
    font-size: 0.85rem;
}

/* ---------- NEWS ---------- */
.tag-blog {
    background: #5eead4;
    color: #0f3d38;
}

.news-more {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
}

.news-more-text {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ---------- SUPPORT ---------- */
.support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.support-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.6rem;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.support-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.support-sponsors {
    background: #24292f;
}

.support-sponsors:hover {
    background: #101315;
}

.support-stripe {
    background: #635bff;
}

.support-stripe:hover {
    background: #5449ff;
}

.support-note {
    text-align: center;
    font-size: 0.82rem;
    opacity: 0.75;
}

/* ---------- VRChat セクション（コンパクト） ---------- */
.vrc-layout {
    display: flex;
    align-items: flex-end;
    gap: 2.5rem;
}

.vrc-visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: 280px;
    height: 350px;
    flex-shrink: 0;
}

.vrc-list {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vrc-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
}

.vrc-card h4 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.02rem;
}

.vrc-card p {
    font-size: 0.92rem;
}

.vrc-gallery {
    max-width: 420px;
    margin-top: 0.75rem;
}

/* ---------- CONTACT ---------- */
.contact-note {
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ---------- アンカー移動時に固定ヘッダーがセクション見出しへ被らないように ---------- */
section[id] {
    scroll-margin-top: 100px;
}

/* ---------- HOW I WORK: 5 ステップを 1 行に収める（PC） ---------- */
@media (min-width: 769px) {
    .workflow-steps {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.75rem;
        align-items: stretch;
    }

    .workflow-step {
        width: auto;
    }

    .workflow-arrow {
        display: none;
    }
}

/* ---------- モバイル ---------- */
@media (max-width: 768px) {
    .hero-content {
        max-width: 100%;
    }

    .hero-product {
        width: min(94%, 560px);
        margin: 2.25rem auto 0;
    }

    .contact-item {
        width: min(100%, 320px);
        height: auto;
        min-height: 120px;
        padding: 1.5rem;
    }

    .contact-label {
        max-width: 100%;
        word-break: normal;
        overflow-wrap: anywhere;
    }

    .featured-main {
        flex-direction: column;
    }

    .vrc-layout {
        flex-direction: column;
        align-items: center;
    }

    .vrc-visual {
        width: min(64vw, 280px);
        height: auto;
        aspect-ratio: 4 / 5;
    }

    .vrc-list {
        width: 100%;
    }

    .vrc-gallery {
        max-width: 100%;
    }

    .news-more {
        justify-content: center;
    }
}