:root {
    --primary-color: #2563eb;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --bg-gray: #f9fafb;
    --white: #ffffff;
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Noto Sans JP', sans-serif;
}

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

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

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

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.btn--primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn--outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

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

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

.btn--sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Header */
.header {
    padding: 20px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.logo::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50% 0 50% 50%;
    margin-right: 8px;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.nav__list li,
.nav__item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav__list li::before,
.nav__item::before {
    content: none !important;
    display: none !important;
}

.nav__item a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.nav__item a:not(.btn):hover {
    opacity: 0.7;
}

.nav__item .btn--primary {
    color: #ffffff !important;
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

.hero__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.hero__content {
    flex: 1;
    max-width: 600px;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    position: relative;
}

.hero__subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 15px;
    line-height: 1.5;
}

.hero__description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.visual__shape {
    width: 500px;
    height: 500px;
    background: conic-gradient(from 180deg at 50% 50%, #2563eb 0deg, #60a5fa 180deg, #2563eb 360deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morph 10s ease-in-out infinite;
    filter: blur(40px);
    opacity: 0.8;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(0deg);
    }

    50% {
        border-radius: 60% 40% 30% 70% / 60% 50% 50% 50%;
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: rotate(360deg);
    }
}

/* Sections */
.section {
    padding: 100px 0;
}

.section--gray {
    background-color: var(--bg-gray);
}

.section__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    text-align: center;
    margin-bottom: 10px;
}

.section__subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
}

/* Problem/Intro Grid */
.problem__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.problem__card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

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

.problem__icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.problem__heading {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.problem__text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Service Approaches */
.approaches__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.approach__card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.approach__image {
    height: 200px;
    background-color: #eee;
    /* Placeholder gradients */
}

.approach__image--2d {
    background: linear-gradient(120deg, #a1c4fd 0%, #c2e9fb 100%);
}

.approach__image--3d {
    background: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
}

.approach__content {
    padding: 30px;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.badge--blue {
    background: #e0f2fe;
    color: #0284c7;
}

.badge--purple {
    background: #f3e8ff;
    color: #9333ea;
}

.approach__details h4 {
    font-size: 0.9rem;
    margin-top: 15px;
    margin-bottom: 8px;
    color: var(--text-color);
}

.check-list li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Works */
.works__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.work__item {
    cursor: pointer;
    transition: transform 0.3s;
}

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

.work__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #eee;
    border-radius: 15px;
    margin-bottom: 15px;
    overflow: hidden;
}

.work__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.9);
    border-radius: 50%;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 0.9;
}

/* Only display for video items */
.work__item--video .work__play-btn {
    display: flex;
}

.work__play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent #ffffff;
    margin-left: 4px;
}

.work__item--video:hover .work__play-btn {
    background-color: var(--primary-color);
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 1;
}

.work__item:hover .work__image img {
    transform: scale(1.05);
}

.work__title {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.work__category {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Workflow */
.workflow__steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 20px;
    gap: 15px;
}

.step {
    flex: 0 0 140px;
    /* Fixed width for steps to ensure alignment */
    text-align: center;
}

.step__circle {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 auto 15px;
    box-shadow: 0 8px 15px rgba(37, 99, 235, 0.2);
}

.step__line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    margin-top: 30px;
    margin-left: -20px;
    margin-right: -20px;
    min-width: 20px;
}

.step__title {
    font-size: 1rem;
    margin-bottom: 8px;
    min-height: 2.4em;
    /* Ensure uniform height for titles */
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__text {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Customer Voice */
.voice__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 20px;
    /* Space for scrollbar if visible */
    -webkit-overflow-scrolling: touch;
}

.voice__card {
    flex: 0 0 320px;
    /* Fixed width for items */
    scroll-snap-align: start;
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
}

.voice__profile {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.voice__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #e5e7eb;
    overflow: hidden;
    flex-shrink: 0;
}

.voice__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.voice__name {
    font-size: 1rem;
    margin-bottom: 2px;
}

.voice__role {
    font-size: 0.85rem;
    color: var(--text-light);
}

.voice__text {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.7;
    font-style: italic;
}

/* Pricing */
.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: center;
}

.pricing__card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid #f3f4f6;
    transition: transform 0.3s;
}

.pricing__card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.pricing__card--featured {
    padding: 50px 30px;
    background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
    border: 2px solid var(--primary-color);
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.pricing__badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing__name {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.pricing__price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.pricing__unit {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 400;
}

.pricing__features {
    margin-bottom: 30px;
    min-height: 80px;
}

.pricing__features p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.pricing__note {
    font-size: 0.8rem;
}

/* FAQ */
.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background: var(--white);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq__question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-color);
}

.faq__icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq__answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
}

.faq__answer p {
    padding-bottom: 20px;
    color: var(--text-light);
}

.faq__item.active .faq__answer {
    max-height: 500px;
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

/* Video Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.is-active {
    display: flex;
    opacity: 1;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    cursor: pointer;
}

.modal__content {
    position: relative;
    width: 90%;
    max-width: 900px;
    z-index: 10000;
}

.modal__video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    background-color: #000;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.modal__video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal__close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: none;
    border: none;
    color: white;
    font-size: 35px;
    cursor: pointer;
    line-height: 1;
    z-index: 10001;
    transition: transform 0.2s;
}

.modal__close:hover {
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: #1f2937;
    color: var(--white);
    padding: 80px 0 30px;
    text-align: center;
}

.footer__contact {
    margin-bottom: 50px;
}

.footer__contact h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff !important;
}

.footer__contact p {
    margin-bottom: 30px;
    color: #9ca3af;
}

.footer__links {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

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

.copyright {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Hamburger toggle - hidden on desktop */
.nav-toggle {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    /* Hamburger button */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 32px;
        height: 32px;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--primary-color);
        transition: all 0.3s;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

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

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile nav overlay */
    .nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        z-index: 1000;
        padding-top: 80px;
    }

    .nav.is-open {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 0;
    }

    .nav__item {
        width: 100%;
        text-align: center;
    }

    .nav__item a:not(.btn) {
        display: block;
        padding: 16px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav__item:last-child {
        padding: 20px;
    }

    .nav__item .btn--primary {
        display: inline-block;
        margin-top: 10px;
    }

    /* Hero adjustments */
    .hero__title {
        font-size: 2rem;
    }

    .hero__container {
        flex-direction: column;
        text-align: center;
    }

    .hero__content {
        margin-bottom: 30px;
    }

    /* Hide visual shape on mobile */
    .hero__visual,
    .visual__shape {
        display: none !important;
    }

    .workflow__steps {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 20px;
    }

    .step {
        flex: 0 0 120px;
    }

    .step__line {
        display: none;
    }
}