/* ===================================
   Reset & Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #ffffff;
    --color-text: #000000;
    --color-accent: #ff4444;
    --color-gray: #666666;
    --color-border: #e0e0e0;
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
    --font-mono: "SF Mono", Monaco, "Courier New", monospace;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: none;
}

/* ===================================
   Custom Cursor
   =================================== */
.cursor-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-text);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, border-color 0.3s;
    transform: translate(-50%, -50%);
}

body:hover .cursor-follower {
    transform: translate(-50%, -50%) scale(1.5);
}

a:hover ~ .cursor-follower,
button:hover ~ .cursor-follower {
    border-color: var(--color-accent);
    transform: translate(-50%, -50%) scale(2);
}

/* ===================================
   Container
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Header
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    transition: transform 0.3s;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.logo a {
    display: block;
    transition: transform 0.3s;
}

.logo a:hover {
    transform: translateX(-5px);
}

.nav {
    display: flex;
    gap: 40px;
}

.nav a {
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-text);
    transition: width 0.3s;
}

.nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform 0.3s, opacity 0.3s;
}

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    transition: transform 0.3s;
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.mobile-menu nav a {
    padding: 15px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 16px;
    letter-spacing: 0.05em;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 40px;
    position: relative;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: clamp(48px, 10vw, 120px);
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: clamp(16px, 3vw, 24px);
    color: var(--color-gray);
    margin-bottom: 40px;
    letter-spacing: 0.1em;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-description {
    font-size: clamp(14px, 2vw, 16px);
    line-height: 2;
    color: var(--color-gray);
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-description p {
    margin-bottom: 10px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--color-gray);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--color-gray);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        opacity: 0;
        transform: translateY(-20px);
    }
    50% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Section Styles
   =================================== */
section {
    padding: 120px 20px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    text-align: center;
}

.section-description {
    text-align: center;
    color: var(--color-gray);
    font-size: 16px;
    margin-bottom: 60px;
}

/* ===================================
   Products Section
   =================================== */
.products {
    background: #fafafa;
}

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

.product-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 40px 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.product-status {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 10px;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
    color: var(--color-gray);
}

.product-card[data-status="released"] .product-status {
    color: var(--color-accent);
}

.product-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.product-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 30px;
    min-height: 120px;
}

.product-link {
    display: inline-block;
    font-size: 14px;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-text);
    padding-bottom: 2px;
    transition: transform 0.3s;
}

.product-link:hover {
    transform: translateX(5px);
}

.product-link.disabled {
    border-bottom-color: var(--color-gray);
    color: var(--color-gray);
    cursor: not-allowed;
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    text-align: center;
}

.cta-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.cta-description {
    font-size: 16px;
    color: var(--color-gray);
    line-height: 2;
    margin-bottom: 40px;
}

.cta-button {
    display: inline-block;
    padding: 20px 60px;
    border: 2px solid var(--color-text);
    font-size: 16px;
    letter-spacing: 0.1em;
    transition: background 0.3s, color 0.3s, transform 0.3s;
}

.cta-button:hover {
    background: var(--color-text);
    color: var(--color-bg);
    transform: translateY(-3px);
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: #fafafa;
    padding: 60px 20px 40px;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 0.05em;
}

.footer-info p {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.8;
}

.footer-nav {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: 14px;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: var(--color-gray);
    font-family: var(--font-mono);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 768px) {
    body {
        cursor: default;
    }
    
    .cursor-follower {
        display: none;
    }
    
    .nav {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    section {
        padding: 80px 20px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}
