:root {
    /* Refined Warm Palette */
    --color-vermilion: #FF5E62;
    --color-orange: #FF9966;
    --color-yellow: #FFD54F;

    /* Gradients */
    --bg-gradient: linear-gradient(135deg, var(--color-orange), var(--color-vermilion));
    --accent-gradient: linear-gradient(135deg, var(--color-yellow), #FFC107);

    /* Text - Refined hierarchy */
    --text-color: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.75);
    --text-dark: #1a1a1a;
    --text-dark-secondary: #555;
    --text-dark-muted: #888;

    /* UI Elements */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.15);
    --card-bg: rgba(255, 255, 255, 0.97);

    /* Typography - Clean Scale */
    --font-heading: 'Noto Sans JP', sans-serif;
    --font-accent: 'Orbitron', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;

    /* Modular Type Scale (1.25 ratio) */
    --fs-display: clamp(2.4rem, 7vw, 4rem);
    --fs-h1: clamp(1.8rem, 5vw, 2.8rem);
    --fs-h2: clamp(1.5rem, 4vw, 2.2rem);
    --fs-h3: clamp(1.1rem, 3vw, 1.6rem);
    --fs-body: 1rem;
    --fs-small: 0.875rem;
    --fs-label: 0.75rem;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
}

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

body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: 1.9;
    letter-spacing: 0.03em;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Typography System */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.text-gradient {
    background: var(--bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

/* Background Effects */
.bg-abstract {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

#bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

.bg-abstract::before,
.bg-abstract::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: floatingOrb 25s infinite alternate;
}

.bg-abstract::before {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-yellow), transparent 70%);
    top: -15%;
    left: -15%;
}

.bg-abstract::after {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #ff4b1f, transparent 70%);
    bottom: -15%;
    right: -15%;
    animation-delay: -8s;
}

@keyframes floatingOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(20px, 30px) scale(1.05); }
}

/* Header - Clean & Minimal */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.header.scrolled {
    padding: 0.875rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

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

.nav a {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-dark-secondary);
    letter-spacing: 0.08em;
    position: relative;
    padding: 0.25rem 0;
}

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

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

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

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

.hero-container-inner {
    display: flex;
    width: 100%;
    align-items: center;
    gap: var(--space-lg);
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.hero-title {
    font-size: var(--fs-display);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    color: #fff;
}

.hero-title span {
    display: block;
    font-size: var(--fs-h3);
    font-weight: 300;
    font-family: var(--font-accent);
    margin-top: var(--space-sm);
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.hero-text {
    font-size: var(--fs-body);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
    line-height: 2;
    max-width: 480px;
}

.hero-text + .hero-text {
    margin-top: var(--space-sm);
}

/* Utility */
.sp-only {
    display: none;
}

.pc-only {
    display: inline;
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video-area {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 1 / 1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    position: relative;
}

/* Buttons - Refined */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: #fff;
    color: var(--color-vermilion);
    border-radius: 100px;
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 48px; /* タップターゲット */
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Sections - Generous Spacing */
.section {
    padding: var(--space-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: var(--fs-label);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--space-xs);
}

.section-title {
    font-size: var(--fs-h1);
    font-weight: 700;
    color: #fff;
}

/* Services - Card Design */
.services-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.service-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-block.reverse .service-content { order: 2; }
.service-block.reverse .service-visual { order: 1; }

.service-content h3 {
    font-size: var(--fs-h2);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-dark);
}

.service-desc {
    font-size: var(--fs-body);
    font-weight: 400;
    color: var(--text-dark-secondary);
    line-height: 2;
    margin-bottom: var(--space-md);
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 1.25rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.check-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.7rem;
    margin-top: 2px;
}

.feature-title {
    display: block;
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    letter-spacing: 0.02em;
}

.feature-text {
    font-size: var(--fs-small);
    font-weight: 400;
    color: var(--text-dark-muted);
    line-height: 1.7;
}

.service-visual {
    min-height: 400px;
    background: #fafafa;
    position: relative;
}

/* Carousel */
.visual-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-images img,
.carousel-images video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.carousel-images img.active,
.carousel-images video.active {
    opacity: 1;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--text-dark);
    font-size: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.visual-carousel:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev { left: 12px; }
.carousel-nav.next { right: 12px; }

/* Works Section */
.works-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
    max-width: 800px;
    margin: 0 auto;
}

.works-text {
    font-size: var(--fs-body);
    font-weight: 400;
    color: var(--text-dark);
    line-height: 2;
    margin-bottom: var(--space-sm);
}

.works-text-sub {
    font-size: var(--fs-small);
    font-weight: 400;
    color: var(--text-dark-muted);
    line-height: 1.9;
    margin-bottom: var(--space-md);
}

.works-actions {
    display: flex;
    justify-content: center;
}

.btn-works {
    background: var(--bg-gradient);
    color: #fff;
    font-size: var(--fs-small);
}

/* Company Section */
.company-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-lg);
    background: var(--card-bg);
    padding: var(--space-lg);
    border-radius: 24px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.08);
}

.company-dl {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1.25rem 2rem;
    align-content: start;
}

.company-dl dt {
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--color-vermilion);
}

.company-dl dd {
    font-size: var(--fs-small);
    font-weight: 400;
    color: var(--text-dark-secondary);
    line-height: 1.8;
}

.company-message-area {
    border-left: 1px solid #eee;
    padding-left: var(--space-md);
}

.company-message h4,
.company-clients h4 {
    font-size: var(--fs-small);
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.company-message p {
    font-size: var(--fs-small);
    font-weight: 400;
    color: var(--text-dark-secondary);
    line-height: 1.9;
    margin-bottom: var(--space-sm);
}

.company-message p:last-child {
    margin-bottom: var(--space-md);
}

.company-clients p {
    font-size: var(--fs-small);
    font-weight: 400;
    color: var(--text-dark-muted);
    line-height: 1.9;
}

/* Contact Section */
.contact-area {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-lg);
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

.contact-header {
    margin-bottom: var(--space-md);
}

.contact-text {
    font-size: var(--fs-body);
    font-weight: 400;
    color: #fff;
    line-height: 1.9;
    margin-bottom: var(--space-xs);
}

.contact-text-sub {
    font-size: var(--fs-small);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.9;
    margin-bottom: var(--space-md);
}

.contact-button {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: var(--fs-h3);
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.5rem 0;
    margin-bottom: var(--space-md);
    transition: all 0.3s ease;
}

.contact-button:hover {
    border-bottom-color: #fff;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    font-size: var(--fs-small);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.05em;
    padding: 0.5rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.social-links a:hover {
    color: #fff;
}

.social-links .separator {
    color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
}

/* Footer */
.footer {
    padding: var(--space-md) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--fs-small);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* Audio Toggle */
.audio-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 10;
}

.audio-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* ================================
   Tablet (768px - 900px)
   ================================ */
@media (max-width: 900px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .nav {
        display: none;
    }

    .hero {
        padding-top: 90px;
        min-height: auto;
        padding-bottom: var(--space-lg);
    }

    .hero-container-inner {
        flex-direction: column-reverse;
        text-align: center;
        gap: var(--space-md);
    }

    .hero-content {
        padding: var(--space-md) 0;
    }

    .hero-text {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-video-area {
        max-width: 70%;
        border-radius: 20px;
    }

    .service-block,
    .service-block.reverse {
        display: flex;
        flex-direction: column;
    }

    .service-content {
        padding: var(--space-md);
        order: 2;
    }

    .service-visual {
        order: 1;
        aspect-ratio: 1 / 1;
    }

    .company-grid {
        grid-template-columns: 1fr;
        padding: var(--space-md);
    }

    .company-message-area {
        border-left: none;
        border-top: 1px solid #eee;
        padding-left: 0;
        padding-top: var(--space-md);
    }

    .contact-area {
        padding: var(--space-md);
    }

    .carousel-nav {
        opacity: 1;
        width: 40px;
        height: 40px;
    }
}

/* ================================
   Mobile (480px - 768px)
   ================================ */
@media (max-width: 768px) {
    :root {
        --fs-body: 0.9375rem;
        --fs-small: 0.8125rem;
        --space-md: 1.5rem;
        --space-lg: 2.5rem;
        --space-xl: 3.5rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .logo img {
        height: 32px !important;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .hero-video-area {
        max-width: 80%;
    }

    .hero-title span {
        font-size: 0.9rem;
        letter-spacing: 0.05em;
    }

    .section-header {
        margin-bottom: var(--space-md);
    }

    .service-desc {
        line-height: 1.9;
    }

    .service-desc br {
        display: none;
    }

    .feature-list {
        gap: 1rem;
    }

    .works-card {
        padding: var(--space-md);
        border-radius: 20px;
    }

    .works-text br,
    .works-text-sub br {
        display: none;
    }

    .company-dl {
        grid-template-columns: 4.5rem 1fr;
        gap: 1rem 1.5rem;
    }

    .company-message p br,
    .company-clients p br {
        display: none;
    }

    .contact-text br,
    .contact-text-sub br {
        display: none;
    }

    .social-links {
        gap: 0.5rem;
    }

    .social-links .separator {
        display: none;
    }

    .social-links a {
        padding: 0.75rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 100px;
    }
}

/* ================================
   Small Mobile (max 480px)
   ================================ */
@media (max-width: 480px) {
    :root {
        --fs-body: 0.875rem;
        --fs-small: 0.8125rem;
        --fs-label: 0.6875rem;
        --space-md: 1.25rem;
        --space-lg: 2rem;
        --space-xl: 3rem;
    }

    .container {
        padding: 0 1rem;
    }

    .sp-only {
        display: inline;
    }

    .pc-only {
        display: none;
    }

    .header {
        padding: 1rem 0;
    }

    .logo img {
        height: 28px !important;
    }

    .logo-text {
        font-size: 1rem;
        letter-spacing: 0.1em;
    }

    .hero {
        padding-top: 80px;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.4rem);
        line-height: 1.25;
    }

    .hero-title span {
        font-size: 0.75rem;
        margin-top: 0.75rem;
    }

    .hero-video-area {
        max-width: 90%;
        border-radius: 16px;
    }

    .hero-text {
        font-size: var(--fs-small);
        line-height: 1.9;
    }

    .section {
        padding: var(--space-xl) 0;
    }

    .section-subtitle {
        font-size: 0.625rem;
        letter-spacing: 0.15em;
    }

    .service-block {
        border-radius: 16px;
    }

    .service-content {
        padding: 1.5rem 1.25rem;
    }

    .service-visual {
        aspect-ratio: 1 / 1;
    }

    .service-content h3 {
        margin-bottom: 0.75rem;
    }

    .service-desc {
        font-size: var(--fs-small);
        margin-bottom: 1.25rem;
    }

    .check-icon {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }

    .feature-title {
        font-size: 0.8125rem;
    }

    .feature-text {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .works-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .works-text {
        font-size: var(--fs-small);
        line-height: 1.9;
    }

    .works-text-sub {
        font-size: 0.75rem;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.8125rem;
        width: 100%;
        max-width: 280px;
    }

    .company-grid {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
        gap: var(--space-md);
    }

    .company-dl {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .company-dl dt {
        margin-top: 1rem;
        margin-bottom: 0.25rem;
        font-size: 0.6875rem;
        letter-spacing: 0.1em;
    }

    .company-dl dt:first-child {
        margin-top: 0;
    }

    .company-dl dd {
        font-size: var(--fs-small);
    }

    .company-message-area {
        padding-top: 1.25rem;
    }

    .company-message h4,
    .company-clients h4 {
        font-size: 0.6875rem;
        letter-spacing: 0.1em;
        margin-bottom: 0.5rem;
    }

    .company-message p,
    .company-clients p {
        font-size: var(--fs-small);
        line-height: 1.8;
    }

    .contact-area {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .contact-text,
    .contact-text-sub {
        font-size: var(--fs-small);
    }

    .contact-button {
        font-size: 1rem;
        word-break: break-all;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links a {
        font-size: 0.75rem;
        padding: 0.625rem 1rem;
    }

    .footer {
        padding: 1.5rem 0;
        font-size: 0.75rem;
    }

    .carousel-nav {
        width: 36px;
        height: 36px;
        font-size: 0.875rem;
    }

    .carousel-nav.prev { left: 8px; }
    .carousel-nav.next { right: 8px; }

    .audio-toggle {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }
}

/* ================================
   Extra Small Mobile (max 360px)
   ================================ */
@media (max-width: 360px) {
    :root {
        --fs-body: 0.8125rem;
        --fs-small: 0.75rem;
    }

    .container {
        padding: 0 0.875rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-title span {
        font-size: 0.625rem;
    }

    .service-content {
        padding: 1.25rem 1rem;
    }

    .works-card,
    .company-grid,
    .contact-area {
        padding: 1.25rem 1rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.75rem;
    }
}
