:root {
    --bg: #09090b;
    --text-main: #fcfcfc;
    --text-muted: #a1a1aa;
    --primary: #ffffff;
    --primary-accent: rgba(255, 255, 255, 0.85);
    --accent: #3b82f6;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-sans: 'Inter', 'Noto Sans JP', sans-serif;
}

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

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

a,
button,
input,
select,
textarea {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

:focus-visible {
    outline: 2px solid var(--primary-accent);
    outline-offset: 4px;
    border-radius: 2px;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Background gradient blobs */
/* Optimized for performance: removed filter: blur() to prevent heavy GPU recalculations during animation */
.blob {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    animation: float 20s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
    will-change: transform;
    pointer-events: none;
}

.blob-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -20vh;
    left: -10vw;
}

.blob-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -10vh;
    right: -10vw;
    animation-delay: -5s;
}

.blob-3 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: 40vh;
    left: 20vw;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10vw, 10vh) scale(1.1);
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    transition: background 0.3s;
}

.header.blur-effect {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(9, 9, 11, 0.6);
    transform: translateZ(0);
    /* Force hardware acceleration */
    will-change: background-color, border-color;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
    animation: pulse-glow 3s infinite alternate;
}

@keyframes pulse-glow {
    0% {
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2)) opacity(0.8);
        transform: scale(1);
    }

    100% {
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8)) opacity(1);
        transform: scale(1.02);
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 100px;
    letter-spacing: 0.05em;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
}

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

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Glassmorphism */
/* Added translateZ(0) to force separate compositing layer for heavy backdrop filters */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    transform: translateZ(0);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Sections */
section {
    padding: 120px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

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

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

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.78vh;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    border: none;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(9, 9, 11, 0.4) 0%, rgba(9, 9, 11, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding-top: 80px;
    /* Offset for header */
}

/* NEW HERO TEXT STYLES */
.hero-text-area {
    text-align: center;
    max-width: 900px;
    padding: 0 40px;
    margin-bottom: 48px;
}

.hero-title {
    font-size: clamp(2.4rem, 4.5vw, 4.8rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: 0.06em;
    color: var(--text-primary);
    white-space: nowrap;
    word-break: keep-all;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    letter-spacing: 0.18em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    text-transform: none;
}

/* BUTTONS */
.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
    transition: all var(--transition-medium);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-large {
    padding: 16px 48px;
    font-size: 1.1rem;
}

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

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

.hero-center-logo {
    width: 280px;
    max-width: 80vw;
    height: auto;
    margin-bottom: 40px;
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.5));
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.scroll-indicator.style-minimal {
    bottom: 30px;
    opacity: 0.4;
    transform: scale(0.8);
    transition: opacity var(--transition-medium);
}

.scroll-indicator.style-minimal:hover {
    opacity: 0.8;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
}

@keyframes scroll {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 18px;
        opacity: 0;
    }
}

@keyframes bounce {

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

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Storytelling Section */
.storytelling {
    padding: 100px 0 80px;
    background-color: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.story-line-wrap {
    width: 100%;
    padding: 60px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.story-line {
    text-align: center;
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.55;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.19, 1, 0.22, 1),
                transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

.story-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-line .highlight {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* About / Vision Enhanced Animations */
.vision-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 28vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    z-index: 0;
    white-space: nowrap;
    pointer-events: none;
    letter-spacing: -0.05em;
    user-select: none;
    line-height: 0.8;
}

.about .section-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    max-width: 720px;
    margin: 0 auto;
}

.about-text .section-subtitle {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.about-text .section-subtitle span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Stagger animated spans when parent .fade-in-up gets .active */
.about-text.active .section-subtitle span {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.about-text.active .section-subtitle span:nth-child(1) {
    transition-delay: 0.3s;
}

.about-text.active .section-subtitle span:nth-child(3) {
    transition-delay: 0.6s;
}

/* br counts as child occasionally depending on HTML, nth-of-type works better but let's stick to simple delay */

.scroll-reveal-text {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 2;
}

.reveal-line {
    opacity: 0.15;
    transition: opacity 0.5s ease, color 0.5s ease;
    display: inline;
}

.reveal-line.revealed {
    opacity: 1;
    color: #ffffff;
}

/* Vision intro paragraph */
.vision-intro {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 48px;
    opacity: 0.15;
    transition: opacity 0.8s ease, color 0.8s ease;
}
.vision-intro.revealed,
.about-text.active .vision-intro {
    opacity: 1;
    color: rgba(255,255,255,0.75);
}

/* Challenge Grid — 3-column layout for 経営課題 */
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 8px;
}

.challenge-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px 24px;
    position: relative;
    transition: border-color 0.4s ease, transform 0.4s ease;
}
.challenge-card:hover {
    border-color: rgba(255,255,255,0.2);
    transform: translateY(-4px);
}

.challenge-num {
    display: block;
    font-size: 2.4rem;
    font-weight: 700;
    color: rgba(255,255,255,0.06);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
}

.challenge-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 12px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

.challenge-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin: 0;
}

/* Video Placeholder Layout */
.vision-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: translateZ(0);
    /* Hardware accel */
}

.vision-video {
    width: 100%;
    height: 100%;
    border: none;
    opacity: 0.7;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.vision-video-wrapper:hover .vision-video {
    opacity: 1;
    transform: scale(1.05);
    /* Slow zoom effect on hover */
}

.video-overlay-ui {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.1, 0.7, 0.1, 1), background 0.3s ease;
}

.vision-video-wrapper:hover .video-overlay-ui {
    transform: translate(-50%, -50%) scale(1.15);
    background: rgba(255, 255, 255, 0.2);
}

.play-icon {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 18px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 6px;
    /* visually center the triangle */
}

.about-visual {
    position: relative;
}

.about-visual.active::before {
    opacity: 1;
}

.standout-card h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.standout-card p {
    color: var(--text-muted);
}

/* Services Enhanced (Bento Box) */
/* =============================================
   SERVICE ARCHITECTURE — Grid & Cards
   ============================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
    margin-top: 80px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    transform: translateZ(0);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x,50%) var(--mouse-y,50%), rgba(255,255,255,0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}
.service-card:hover { border-color: rgba(255,255,255,0.25); box-shadow: 0 40px 80px rgba(0,0,0,0.5); z-index: 10; }
.service-card:hover::before { opacity: 1; }

/* ---- Card-wide: full-width, internal 2-col ---- */
.card-wide {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 55% 45%;
    align-items: center;
    padding: 56px 56px;
    gap: 0 48px;
    min-height: 340px;
}
.card-wide.card-reverse {
    grid-template-columns: 42% 58%;
}
.card-wide.card-reverse .card-visual { order: 1; }
.card-wide.card-reverse .card-text  { order: 2; }

/* ---- Card-half: half-width, vertical stack ---- */
.card-half {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    padding: 44px 40px;
}

/* ---- card-text ---- */
.card-text {
    position: relative;
    z-index: 2;
}
.card-text h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    font-weight: 600;
}
.card-text .service-lead {
    color: var(--primary-accent);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 14px;
    line-height: 1.5;
}
.card-text p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 18px;
}
.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-features li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}
.service-features li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--primary-accent);
}

/* ---- service-num (decorative number) ---- */
.service-num {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.05);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 16px;
    font-family: var(--font-en);
}

/* ---- card-visual ---- */
.card-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

/* Wide: visual has separator line */
.card-wide .card-visual {
    min-height: 200px;
    padding-left: 48px;
    border-left: 1px solid rgba(255,255,255,0.06);
}
.card-wide.card-reverse .card-visual {
    padding-left: 0;
    padding-right: 48px;
    border-left: none;
    border-right: 1px solid rgba(255,255,255,0.06);
}

/* Half: visual sits at bottom with natural spacing */
.card-half .card-visual {
    margin-top: auto;
    padding-top: 28px;
}

/* ---- Infographic area ---- */
.infographic-area {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}
.service-card.active .infographic-area { opacity: 1; }

/* Wide cards: infographic fills generously */
.card-wide .infographic-area {
    height: 200px;
}
/* Half cards: compact infographic */
.card-half .infographic-area {
    height: 130px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 24px;
}

/* 01: Timeline */
.info-timeline {
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
    box-sizing: border-box;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 10px;
    right: 10px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
    transform: translateY(-50%);
}

.service-card.active .timeline-line {
    background: linear-gradient(90deg, var(--primary) 0%, transparent 100%);
    background-size: 200% 100%;
    animation: flowLine 2s linear infinite;
}

@keyframes flowLine {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

.timeline-step {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-card.active .timeline-step {
    background: #fff;
    transform: scale(1.5);
}

.timeline-step span {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* 02: Funnel */
.info-funnel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.funnel-layer {
    height: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: transparent;
    transition: all 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.service-card.active .funnel-layer {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    height: 24px;
}

.service-card.active .funnel-layer:nth-child(1) {
    width: 100% !important;
}

.service-card.active .funnel-layer:nth-child(2) {
    width: 80% !important;
    transition-delay: 0.1s;
}

.service-card.active .funnel-layer:nth-child(3) {
    width: 60% !important;
    background: rgba(255, 255, 255, 0.3);
    transition-delay: 0.2s;
}

/* 03: Circles */
.info-circles {
    position: relative;
    width: 100px;
    height: 60px;
}

.circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: all 0.5s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.c-brand {
    left: 0;
    background: rgba(255, 255, 255, 0.02);
}

.c-market {
    right: 0;
    background: rgba(255, 255, 255, 0.02);
}

.service-card.active .c-brand {
    left: -10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.service-card.active .c-market {
    right: -10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* 04: Growth */
.info-growth {
    display: flex;
    align-items: flex-end;
    gap: 15px;
    height: 60px;
    width: 100%;
    position: relative;
}

.growth-bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: height 0.6s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.b1 {
    height: 20%;
}

.b2 {
    height: 40%;
}

.b3 {
    height: 60%;
}

.service-card.active .b1 {
    height: 40%;
}

.service-card.active .b2 {
    height: 70%;
    transition-delay: 0.1s;
}

.service-card.active .b3 {
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transition-delay: 0.2s;
}

.growth-arrow {
    position: absolute;
    bottom: 20%;
    left: 10%;
    width: 80%;
    height: 2px;
    background: transparent;
    border-top: 2px dashed rgba(255, 255, 255, 0);
    transform: rotate(-15deg);
    transform-origin: left bottom;
    transition: border-color 0.4s ease 0.2s;
}

.service-card.active .growth-arrow {
    border-color: rgba(255, 255, 255, 0.4);
}

/* =============================================
   VISION section: single column (video removed)
   ============================================= */
.about .section-content {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
}

/* =============================================
   02 SNS: PDCA Cycle
   ============================================= */
.info-sns-cycle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    flex-wrap: nowrap;
}

.sns-step {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.sns-label {
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.sns-arrow {
    width: 20px;
    height: 1px;
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
    transition: background 0.3s ease;
    position: relative;
}
.sns-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    border: 3px solid transparent;
    border-left: 4px solid rgba(255,255,255,0.12);
    transition: border-color 0.3s ease;
}
.service-card.active .sns-arrow { background: rgba(255,255,255,0.35); }
.service-card.active .sns-arrow::after { border-left-color: rgba(255,255,255,0.35); }

/* active state: steps light up sequentially */
.service-card.active .sns-step[data-step="1"] {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.12);
    transform: scale(1.15);
    animation: snsLight 2.5s ease infinite;
}
.service-card.active .sns-step[data-step="2"] {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.12);
    transform: scale(1.15);
    animation: snsLight 2.5s ease 0.5s infinite;
}
.service-card.active .sns-step[data-step="3"] {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.12);
    transform: scale(1.15);
    animation: snsLight 2.5s ease 1s infinite;
}
.service-card.active .sns-step[data-step="4"] {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.12);
    transform: scale(1.15);
    animation: snsLight 2.5s ease 1.5s infinite;
}
.service-card.active .sns-step[data-step="5"] {
    border-color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.12);
    transform: scale(1.15);
    animation: snsLight 2.5s ease 2s infinite;
}
.service-card.active .sns-label { color: rgba(255,255,255,0.7); }
.service-card.active .sns-arrow { color: rgba(255,255,255,0.4); }

@keyframes snsLight {
    0%, 100% { background: rgba(255,255,255,0.08); }
    30%       { background: rgba(255,255,255,0.25); }
}

/* =============================================
   03 PR設計: Brand Hub
   ============================================= */
.info-pr-hub {
    position: relative;
    width: 160px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pr-core {
    position: relative;
    z-index: 3;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.48rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
    line-height: 1.3;
    letter-spacing: 0.05em;
    transition: background 0.4s ease, border-color 0.4s ease;
}

.pr-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.07);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    transition: transform 0.6s cubic-bezier(0.1,0.7,0.1,1), border-color 0.6s ease;
}
.pr-ring-1 { width: 76px; height: 76px; }
.pr-ring-2 { width: 110px; height: 110px; }

.pr-spoke {
    position: absolute;
    z-index: 4;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.pr-spoke span {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 3px;
    padding: 2px 5px;
    white-space: nowrap;
}
.pr-spoke-1 { top: -2px; left: 50%; transform: translate(-50%, 8px); }
.pr-spoke-2 { bottom: -2px; left: 10%; transform: translateY(-8px); }
.pr-spoke-3 { bottom: -2px; right: 4%; transform: translateY(-8px); }

.service-card.active .pr-core {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}
.service-card.active .pr-ring-1 {
    transform: translate(-50%, -50%) scale(1);
    border-color: rgba(255,255,255,0.2);
    animation: prPulse 2.5s ease infinite;
}
.service-card.active .pr-ring-2 {
    transform: translate(-50%, -50%) scale(1);
    border-color: rgba(255,255,255,0.1);
    animation: prPulse 2.5s ease 0.6s infinite;
}
.service-card.active .pr-spoke {
    opacity: 1;
}
.service-card.active .pr-spoke-1 { transform: translate(-50%, 0); transition-delay: 0.2s; }
.service-card.active .pr-spoke-2 { transform: translateY(0); transition-delay: 0.35s; }
.service-card.active .pr-spoke-3 { transform: translateY(0); transition-delay: 0.5s; }

@keyframes prPulse {
    0%, 100% { opacity: 0.6; }
    50%       { opacity: 1; }
}

/* =============================================
   04 自社IP: Growth Chart
   ============================================= */
.info-ip-growth {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
    height: auto;
    padding-bottom: 4px;
    position: relative;
}

.ip-year {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ip-bar-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 2px;
    height: 100px;
}

.ip-bar {
    width: 100%;
    border-radius: 3px 3px 0 0;
    transition: height 0.7s cubic-bezier(0.1, 0.7, 0.1, 1);
}

.ip-bar-agency {
    background: rgba(255,255,255,0.18);
    height: 0;
}
.ip-bar-ip {
    background: rgba(255,255,255,0.5);
    height: 0;
}

.service-card.active .ip-bar-agency { height: 60%; }
.service-card.active .ip-year:nth-child(2) .ip-bar-agency { height: 50%; transition-delay: 0.15s; }
.service-card.active .ip-year:nth-child(2) .ip-bar-ip    { height: 20%; transition-delay: 0.25s; }
.service-card.active .ip-year:nth-child(3) .ip-bar-agency { height: 42%; transition-delay: 0.3s; }
.service-card.active .ip-year:nth-child(3) .ip-bar-ip    { height: 42%; transition-delay: 0.45s; }

.ip-year-label {
    font-size: 0.62rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}
.ip-year-sub {
    font-size: 0.5rem;
    color: rgba(255,255,255,0.3);
}

.ip-legend {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 0.5rem;
}
.legend-agency::before,
.legend-ip::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 3px;
    vertical-align: middle;
}
.legend-agency { color: rgba(255,255,255,0.4); }
.legend-agency::before { background: rgba(255,255,255,0.18); }
.legend-ip { color: rgba(255,255,255,0.4); }
.legend-ip::before { background: rgba(255,255,255,0.5); }


/* Process section */
.process {
    padding: 100px 0;
    position: relative;
}

.subtle-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.process-step {
    display: flex;
    gap: 30px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
    padding: 40px;
    border-radius: 8px;
    border-left: 2px solid var(--primary);
    transition: transform var(--transition-medium);
}

.process-step:hover {
    transform: translateX(10px);
}

.step-number {
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--text-muted);
    opacity: 0.5;
    line-height: 1;
    font-family: 'Inter', sans-serif;
}

.step-content h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Members */
.members-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 60px;
}

.member-profile {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
}

.member-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
}

.member-role {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 10px;
}

.member-name {
    font-size: 2rem;
    margin-bottom: 15px;
}

.en-name {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-muted);
    margin-left: 10px;
}

.member-desc {
    color: var(--text-muted);
    max-width: 600px;
}

/* Instagram Profile & Widget Styles */
.ig-profile-img {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-clip: padding-box;
    border: 4px solid var(--bg);
    /* Space for the gradient ring */
}

.ig-story-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    z-index: -1;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ig-profile-img:hover .ig-story-ring {
    opacity: 1;
    transform: scale(1.02);
}

.ig-link-icon {
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.ig-link-icon:hover {
    color: #e6683c;
}

.ig-link-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    vertical-align: middle;
}

/* Footer */
.footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0;
    background: rgba(0, 0, 0, 0.3);
}

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

.footer-logo {
    height: 28px;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-center ul {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.footer-center a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-right p {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: right;
}

/* Animations */
/* Animations */
/* Premium Easing Curve: Sharp entry, very smooth decelerated finish */
:root {
    --ease-premium: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-premium-slow: cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    /* Slightly larger travel distance for premium feel */
    transition: opacity 1.2s var(--ease-premium), transform 1.2s var(--ease-premium);
}

.fade-in-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Accessibility: Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .blob {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Staggered Delays for unified rhythm */
.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

.delay-4 {
    transition-delay: 0.6s;
}

.delay-5 {
    transition-delay: 0.75s;
}

/* Responsive */
@media (max-width: 768px) {

    /* ===== 共通 ===== */
    body {
        word-break: keep-all;
        overflow-wrap: break-word;
        overflow-x: hidden;
    }

    * {
        max-width: 100%;
        box-sizing: border-box;
    }

    .container {
        padding: 0 20px;
        overflow: hidden;
    }

    section {
        overflow: hidden;
        padding: 80px 0;
    }

    /* ===== ヘッダー ===== */
    .nav-links {
        display: none;
    }

    /* ===== ヒーロー ===== */
    .hero-content {
        padding: 0 24px;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(1.9rem, 7vw, 2.6rem);
        white-space: normal;
        letter-spacing: 0.04em;
        line-height: 1.3;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: clamp(0.85rem, 3.5vw, 1rem);
        letter-spacing: 0.1em;
        line-height: 2;
        margin-bottom: 32px;
    }

    .hero-actions {
        margin-bottom: 40px;
    }

    /* ===== ストーリーセクション ===== */
    .storytelling {
        padding: 60px 0 40px;
        gap: 0;
    }

    .story-line-wrap {
        padding: 40px 24px;
        min-height: 30vh;
    }

    .story-line {
        font-size: clamp(1.4rem, 5.5vw, 2rem);
        line-height: 1.65;
        letter-spacing: 0;
    }

    /* ===== VISIONセクション ===== */
    .about .section-content {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 100%;
        padding: 0 20px;
    }

    .about-text {
        max-width: 100%;
        overflow: hidden;
    }

    .about-text .section-subtitle {
        font-size: clamp(1.3rem, 5vw, 1.6rem);
        line-height: 1.6;
    }

    .section-desc {
        font-size: clamp(0.85rem, 3.5vw, 0.95rem);
        line-height: 2;
    }

    .section-title {
        font-size: clamp(1.1rem, 4.5vw, 1.5rem);
        letter-spacing: 0.1em;
    }

    .vision-bg-text {
        display: none;
    }

    /* ===== サービスカード ===== */
    .card-wide {
        grid-column: span 12;
        display: flex;
        flex-direction: column;
        padding: 36px 24px;
        gap: 0;
    }

    .card-half {
        grid-column: span 12;
        padding: 36px 24px;
    }

    .card-wide .card-text,
    .card-wide .card-visual {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .card-wide .card-visual {
        min-height: auto;
        padding-left: 0;
        border-left: none;
        padding-top: 20px;
        margin-top: 16px;
    }

    .card-wide.card-reverse .card-visual {
        padding-right: 0;
        border-right: none;
        order: 2;
    }
    .card-wide.card-reverse .card-text {
        order: 1;
    }

    .service-num {
        font-size: 2.8rem;
        margin-bottom: 12px;
    }

    .card-text h3 {
        font-size: clamp(1.3rem, 5.5vw, 1.6rem);
        margin-bottom: 8px;
    }

    .card-text .service-lead {
        font-size: clamp(0.8rem, 3.2vw, 0.9rem);
    }

    .card-text p {
        font-size: 0.85rem;
    }

    .card-wide .infographic-area,
    .card-half .infographic-area {
        height: 110px;
    }

    .info-ip-growth {
        height: 100px;
        gap: 12px;
    }
    .ip-bar-wrap {
        height: 60px;
    }

    .info-pr-hub {
        width: 140px;
        height: 100px;
    }

    .sns-step {
        width: 30px;
        height: 30px;
    }
    .sns-label {
        font-size: 0.52rem;
        bottom: -16px;
    }
    .sns-arrow {
        width: 12px;
    }

    /* ===== 経営課題カード ===== */
    .challenge-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .challenge-card {
        padding: 20px 20px;
        display: grid;
        grid-template-columns: 44px 1fr;
        grid-template-rows: auto auto;
        gap: 0 10px;
        align-items: start;
        overflow: hidden;
    }

    .challenge-num {
        grid-row: 1 / 3;
        font-size: 1.8rem;
        margin-bottom: 0;
        padding-top: 2px;
    }

    .challenge-card h4 {
        font-size: 0.88rem;
        margin-bottom: 6px;
        word-break: break-all;
        overflow-wrap: break-word;
        min-width: 0;
    }

    .challenge-card p {
        font-size: 0.78rem;
        line-height: 1.7;
        min-width: 0;
        overflow-wrap: break-word;
    }

    .vision-intro {
        font-size: 0.9rem;
        line-height: 1.8;
        margin-bottom: 32px;
    }

    /* ===== メンバーセクション ===== */
    .members-grid {
        gap: 48px;
        margin-top: 40px;
    }

    .member-profile {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        max-width: 100%;
        overflow: hidden;
    }

    .member-image,
    .ig-profile-img {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }

    .member-info {
        max-width: 100%;
        padding: 0 8px;
        overflow: hidden;
    }

    .member-name {
        font-size: 1.3rem;
        margin-bottom: 4px;
        line-height: 1.4;
        word-break: keep-all;
    }

    .en-name {
        font-size: 0.8rem;
        display: block;
        margin-top: 4px;
        margin-left: 0;
        color: var(--text-muted);
    }

    .ig-link-icon {
        display: block;
        margin: 8px auto 0;
    }

    .ig-link-icon svg {
        width: 20px;
        height: 20px;
    }

    .member-role {
        font-size: 0.65rem;
        letter-spacing: 0.1em;
        margin-bottom: 6px;
    }

    .member-desc {
        font-size: 0.8rem;
        line-height: 1.75;
        text-align: center;
        max-width: 100%;
        padding: 0;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .ig-widget-header {
        justify-content: center;
    }

    /* ===== プロセスセクション ===== */
    .process-steps {
        margin-top: 40px;
        gap: 24px;
    }

    .process-step {
        flex-direction: column;
        gap: 12px;
        padding: 24px 20px;
        max-width: 100%;
        overflow: hidden;
    }

    .step-number {
        font-size: 1.8rem;
    }

    .step-content {
        max-width: 100%;
        overflow: hidden;
    }

    .step-content h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .step-content p {
        font-size: 0.82rem;
        line-height: 1.7;
        word-break: normal;
        overflow-wrap: break-word;
    }

    .section-header .subtle-text {
        font-size: 0.9rem;
    }

    /* ===== フッター ===== */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .footer-center ul {
        flex-direction: column;
        gap: 12px;
    }

    .footer-right p {
        text-align: center;
        font-size: 0.72rem;
    }

    .footer-logo {
        height: 24px;
    }

    .footer-left p {
        font-size: 0.8rem;
    }
}

/* Bento Box Mobile Fallback */
@media (max-width: 768px) {
    .services-grid {
        display: flex;
        flex-direction: column;
    }
}