:root {
    /* Color Palette - Refined for Japanese Web Style */
    --bg-color: #0a0a0f;
    --bg-section-alt: #111118;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --accent-color: #5dadec;
    /* Softer blue from logo */
    --accent-dark: #3d4d6e;
    /* Navy from logo */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Typography - Japanese Web Style */
    --font-main: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;

    /* Spacing */
    --section-padding: 100px 20px;
    --container-max-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 16px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 30px;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

/* Typography Utilities */
h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.4;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 10px;
}

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

.section-label {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Sections */
section {
    padding: var(--section-padding);
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.02);
    /* Very subtle initial bg */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
}

nav.scrolled {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

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

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    object-fit: cover;
    opacity: 0.4;
}

.hero-content h1 {
    margin-bottom: 20px;
}

/* Hero Logo & Branding */
.hero-logo-container {
    margin-bottom: 25px;
}

.hero-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.hero-reading {
    font-size: 1rem;
    color: var(--accent-color);
    letter-spacing: 0.3em;
    margin-bottom: 20px;
    font-weight: 500;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-top: 25px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-color);
}

.btn-primary:hover {
    background: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-secondary);
}

/* Service Grid */
.services-section {
    background: var(--bg-section-alt);
}

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

.service-card {
    padding: 40px 30px;
    text-align: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 20px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.link-arrow {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Apps Highlight Section */
.apps-highlight-section {
    padding: var(--section-padding);
    background: url('../assets/bg-apps.png') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.apps-highlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.75);
    /* Dark overlay for readability */
    backdrop-filter: blur(5px);
    z-index: 1;
}

.apps-highlight-section .container {
    position: relative;
    z-index: 2;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.apps-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apps-text p,
.creator-text p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.app-card-preview {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 30px;
}

.app-icon-large {
    font-size: 3.5rem;
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 20px;
}

.app-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.app-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Apps Page Specific */
.page-header {
    padding: 150px 20px 80px;
    background: var(--bg-section-alt);
}

.page-header h1 {
    margin-bottom: 15px;
}

.apps-section {
    padding-bottom: 120px;
}

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

.app-card {
    padding: 40px;
    text-align: center;
    transition: transform 0.4s ease;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

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

.app-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
}

.link-privacy {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.85rem;
}

.app-placeholder {
    opacity: 0.5;
    border-style: dashed;
}

/* Creator Section */
.creator-section {
    background: var(--bg-section-alt);
}

.creator-visual {
    position: relative;
}

.glass-img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    display: block;
}

.stats-overlay {
    position: absolute;
    bottom: -30px;
    right: -20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 10;
}

.stat-card {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-number small {
    font-size: 1rem;
    font-weight: 400;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.tool-item {
    padding: 35px 30px;
    text-align: left;
    transition: transform 0.4s ease;
}

.tool-item:hover {
    transform: translateY(-5px);
}

.tool-item h4 {
    margin-bottom: 10px;
}

.tool-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Development Section */
.dev-section {
    padding: var(--section-padding);
    background: url('../assets/bg-dev.png') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.dev-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.8);
    /* Darker overlay for dev section */
    backdrop-filter: blur(3px);
    z-index: 1;
}

.dev-section .container {
    position: relative;
    z-index: 2;
}

.dev-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dev-card {
    padding: 30px;
    text-align: left;
}

.dev-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
}

.dev-card h4 {
    margin-bottom: 10px;
}

.dev-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.dev-achievements {
    padding: 25px;
    margin-top: 25px;
}

.achievement-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.achievement-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.achievement-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Section */
.contact-section {
    padding: 120px 20px;
}

/* Footer */
footer {
    padding: 80px 20px;
    border-top: 1px solid var(--glass-border);
}

.footer-logo {
    height: 50px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.footer-links {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--text-primary);
}

footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Policy Page */
.policy-content {
    padding-bottom: 100px;
}

.policy-card {
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.policy-card h3 {
    margin-top: 30px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.policy-card h3:first-child {
    margin-top: 0;
}

.policy-card p {
    color: var(--text-secondary);
}

.link-back {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

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

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Responsive */
@media (max-width: 900px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .stats-overlay {
        position: static;
        margin-top: 25px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
    }

    .stat-card {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        min-height: 90vh;
    }

    .page-header {
        padding: 120px 20px 60px;
    }
}