:root {
    /* Colors */
    --color-primary: #FF007F;
    /* Vivid Magenta */
    --color-primary-rgb: 255, 0, 127;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F9FA;
    --color-border: #E5E5E5;

    /* Typography */
    --font-jp: 'Noto Sans JP', sans-serif;
    --font-en: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-jp);
    color: var(--color-text);
    line-height: 1.8;
    background-color: var(--color-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Auth State: Hidden by default */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Portfolio Section Overhaul */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 4rem;
}

.portfolio-card {
    display: block;
    position: relative;
    /* No cursor pointer on the whole card anymore, specific interactive areas */
}

.portfolio-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.portfolio-card__title {
    font-size: 1.25rem;
    font-weight: 700;
}

.device-toggle {
    display: flex;
    background: #f0f0f0;
    padding: 3px;
    border-radius: 99px;
}

.device-btn {
    border: none;
    background: none;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 99px;
    cursor: pointer;
    color: var(--color-text-light);
    transition: all 0.3s ease;
}

.device-btn.active {
    background-color: #fff;
    color: var(--color-primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.scroll-frame {
    width: 100%;
    aspect-ratio: 16 / 10;
    /* PC Ratio */
    background-color: #eee;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s var(--ease-out-expo);
    border: 1px solid #ddd;
    margin-bottom: 1rem;
    /* Browser Header Deco */
    border-top: 20px solid #f0f0f0;
}

.scroll-frame::before {
    content: '';
    position: absolute;
    top: -14px;
    left: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ff5f56;
    /* Red dot */
    box-shadow: 12px 0 0 #ffbd2e, 24px 0 0 #27c93f;
    /* Yellow & Green dots */
    z-index: 2;
}

.scroll-frame.sp-mode {
    width: 250px;
    /* Reduced from 375px for better balance */
    margin: 0 auto 1rem;
    /* Center it */
    aspect-ratio: 9 / 18;
    border-top: none;
    border: 8px solid #333;
    border-radius: 30px;
}

.scroll-frame.sp-mode::before {
    display: none;
    /* Hide dots in mobile */
}

/* Dynamic width adjustment for mobile responsive of the card itself */
@media (max-width: 500px) {
    .scroll-frame.sp-mode {
        width: 80%;
    }
}

.scroll-inner {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #fff;
}

.scroll-image {
    width: 100%;
    display: block;
    transform: translateY(0);
    will-change: transform;
    /* Transition is handled by JS for precise speed, but default reset can be CSS */
    transition: transform 0.5s ease-out, opacity 0.3s ease;
    /* Added opacity fade */
}

/* Hover state is handled by JS mostly, but we can set cursor */
.scroll-frame:hover {
    cursor: pointer;
}

/* Progress Bar */
.progress-bar {
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 0%;
    background-color: var(--color-primary);
    z-index: 10;
    transition: height 0.1s linear;
}

.sp-mode .progress-bar {
    display: none;
    /* Hide scrollbar on mobile frame usually, or keep it? Let's hide for "app like" feel or keep for web? Keeping is fine. */
    right: 2px;
    width: 3px;
    border-radius: 2px;
}

.visit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
    text-decoration: none;
}

.visit-overlay span {
    background: #fff;
    color: var(--color-text);
    padding: 0.8rem 2rem;
    border-radius: 99px;
    font-weight: 700;
    font-family: var(--font-en);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.scroll-frame:hover .visit-overlay {
    opacity: 1;
}

.scroll-frame:hover .visit-overlay span {
    transform: translateY(0);
}

.portfolio-card__industry {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(255, 0, 127, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 0.3rem;
    letter-spacing: 0.05em;
}

.portfolio-card__desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-top: 0;
}

/* Q&A Section Styles */
.qa {
    background-color: #fff;
}

.qa__list {
    max-width: 800px;
    margin: 0 auto;
}

.qa__category {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

/* Q&A Section (Floating Speech Bubbles) */
.qa {
    background-color: var(--color-bg-alt);
    padding-bottom: 5rem;
    overflow: hidden;
    margin-top: 5rem;
    /* Separate from Flow section */
}

.qa-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem 3rem;
    /* Row gap, Column gap */
    max-width: 1000px;
    margin: 0 auto 3rem;
    padding: 0 1rem;
}

/* Individual Question Item */
.qa-bubble-item {
    position: relative;
    width: fit-content;
    max-width: 45%;
    /* Allow 2 columns on PC */
    min-width: 300px;

    /* Float Animation */
    animation: floatingBubble var(--duration, 4s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    z-index: 1;
}

@keyframes floatingBubble {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Hover: Pause Float & Scale */
.qa-bubble-item:hover {
    animation-play-state: paused;
    z-index: 10;
}

.qa-bubble-item:hover .speech-bubble {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 0, 127, 0.3);
}

/* The Speech Bubble (Summary) */
.speech-bubble {
    background-color: var(--color-primary);
    color: #fff;
    padding: 1.5rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-align: center;
    list-style: none;
    /* Hide toggle marker */
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 20px rgba(255, 0, 127, 0.2);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    display: block;
    /* Ensure full width clickable */
}

/* Hide default marker (Safari/Chrome) */
.speech-bubble::-webkit-details-marker {
    display: none;
}

/* Tail (Triangle) */
.speech-bubble::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 12px 12px 0;
    border-style: solid;
    border-color: var(--color-primary) transparent transparent transparent;
}

/* Active State Styles */
.qa-bubble-item[open] .speech-bubble {
    background-color: #D6006B;
    /* Darker magenta when open */
}

.qa-bubble-item[open] .speech-bubble::after {
    border-color: #D6006B transparent transparent transparent;
}

/* Answer Content */
.qa-answer-content {
    background: #fff;
    border-radius: 20px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    /* Default hidden state for animation */
    transform-origin: top center;
}

/* Open Animation */
.qa-bubble-item[open] .qa-answer-content {
    animation: poyoyon 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qa-answer-content p {
    margin: 0;
}

@keyframes poyoyon {
    0% {
        opacity: 0;
        transform: scaleY(0.5) scaleX(0.9) translateY(-20px);
    }

    40% {
        transform: scaleY(1.1) scaleX(1.05) translateY(10px);
    }

    70% {
        transform: scaleY(0.95) scaleX(0.98) translateY(-5px);
    }

    100% {
        opacity: 1;
        transform: scaleY(1) scaleX(1) translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .qa-container {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .qa-bubble-item {
        max-width: 100%;
        width: 100%;
    }

    /* Reduce motion on mobile if needed, or keep it playful */
    /* .speech-bubble { font-size: 1rem; padding: 1.2rem 1.5rem; } */
}

/* Custom note in QA */
.qa__note {
    margin-top: 4rem;
    text-align: center;
}

.passion-message {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    font-style: normal;
    /* Reset italic if using Japanese font */
    font-family: 'Zen Maru Gothic', serif;
    /* Updated Font */
    line-height: 1.8;
}

/* Pricing 0 Yen Highlight */
.price-zero {
    font-size: 4rem;
    line-height: 1;
    display: block;
    margin: 0.5rem 0;
    text-shadow: 2px 2px 0px rgba(255, 0, 127, 0.1);
}

.price-zero .unit {
    font-size: 1.5rem;
    margin-left: 0.5rem;
}



/* Form Styles */
.form-status {
    text-align: center;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

/* Utils */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.container__inner {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
}

.container__tiny {
    width: 90%;
    max-width: 600px;
    margin: 0 auto;
}

.u-mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .u-mobile-only {
        display: block;
    }
}

.text-magenta {
    color: var(--color-primary);
    font-weight: 700;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.header__inner {
    width: 92%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-en);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
}

.logo__dot {
    color: var(--color-primary);
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
}

.nav__link:not(.nav__link--cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s var(--ease-out-expo);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background-color: var(--color-text);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 99px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav__link--cta:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.3);
}

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-nav.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav__list {
    list-style: none;
    text-align: center;
}

.mobile-nav__item {
    margin: 1.5rem 0;
    overflow: hidden;
}

.mobile-nav__item a {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out-expo);
}

.mobile-nav.active .mobile-nav__item a {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__content {
    text-align: center;
    position: relative;
    padding-top: 4rem;
}

.hero__title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero__sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: var(--color-text-light);
    margin-bottom: 3rem;
}

.hero__lead {
    font-size: 1rem;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 99px;
    transition: all 0.3s var(--ease-out-expo);
    cursor: pointer;
    border: none;
}

.btn--primary {
    background-color: var(--color-primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(255, 0, 127, 0.4);
}

.btn--primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 0, 127, 0.6);
}

.btn--primary:active {
    transform: translateY(-1px);
}

.btn--large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.btn__icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn__icon {
    transform: translateX(4px);
}

.scroll-indicator {
    position: absolute;
    bottom: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-en);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background-color: var(--color-text);
    animation: scrollDown 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDown {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Common Section */
.section {
    padding: var(--spacing-xl) 0;
}

.section__header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section__title {
    font-family: var(--font-en);
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.section__subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    font-weight: 500;
}

/* Problem Section */
.problem {
    background-color: var(--color-bg-alt);
}

.problem__content {
    text-align: center;
    font-size: 1.1rem;
    line-height: 2;
}

.problem__highlight {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 2rem 0;
    line-height: 1.2;
}

/* Portfolio Section */
.portfolio__note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.portfolio-card {
    display: block;
    position: relative;
    cursor: pointer;
}

.portfolio-card__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: #eee;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-card__image {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 0, 127, 0.2);
}

.portfolio-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-card__image img {
    transform: scale(1.05);
}

.portfolio-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Portfolio Labels */
.portfolio-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.label-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: #FF007F;
    /* Magenta */
    background-color: rgba(255, 0, 127, 0.05);
    /* Light Pink */
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.label-role {
    font-size: 0.75rem;
    font-weight: 400;
    /* Normal */
    color: #666666;
    /* Dark Gray */
    background-color: #F0F0F0;
    /* Light Gray */
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}

.portfolio-card__desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Flow Section */
.flow__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    counter-reset: flow;
    position: relative;
}

/* Connecting Line (Desktop) */
@media (min-width: 769px) {
    .flow__steps::before {
        content: '';
        position: absolute;
        top: 30%;
        left: 50px;
        right: 50px;
        height: 2px;
        background: linear-gradient(to right, var(--color-primary), #00FFFF);
        /* Magenta to Cyan */
        z-index: 0;
        opacity: 0.3;
    }
}

.flow__step {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    transition: transform 0.3s ease;
    z-index: 1;
    /* Above line */
}

.flow__step:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.flow__number {
    font-family: var(--font-en);
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    /* Changed for circle bg */
    line-height: 1;
    margin: 0 auto 1.5rem;
    background: var(--color-primary);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.3);
}

.flow__icon {
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flow__icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1.5;
}

/* Connector Arrow */
.flow__step::after {
    display: none;
    /* Simplified to line for now */
}

.flow__content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.flow__content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Contact/Form Section */
.contact {
    background-color: #fff;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form__label {
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form__optional {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 400;
    background: #F0F0F0;
    padding: 2px 6px;
    border-radius: 4px;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--color-bg-alt);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(255, 0, 127, 0.1);
}

.form__checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.checkbox-wrapper input {
    display: none;
}

.checkbox-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.checkbox-wrapper input:checked+.checkbox-tile {
    background-color: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(255, 0, 127, 0.3);
}

.btn--submit {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    border: none;
}

/* Footer */
.footer {
    padding: 4rem 0;
    background-color: #111;
    color: #fff;
    font-size: 0.8rem;
    text-align: center;
}

.footer__notes {
    color: #888;
    margin-bottom: 2rem;
}

.footer__copy {
    font-family: var(--font-en);
}

/* Pricing Section */
.pricing {
    background-color: var(--color-bg-alt);
    position: relative;
    /* overflow: hidden; Removed to prevent clipping */
}

/* Subtle background deco for pricing */
.pricing::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2rem;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-border);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.pricing-card--recommended {
    border: 2px solid var(--color-primary);
    background: #fff;
    box-shadow: 0 15px 50px rgba(255, 0, 127, 0.1);
}

.pricing-card--recommended:hover {
    box-shadow: 0 25px 70px rgba(255, 0, 127, 0.2);
}

.pricing-card__tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pricing-card--recommended .pricing-card__tag {
    background: var(--color-primary);
    box-shadow: 0 4px 10px rgba(255, 0, 127, 0.4);
}

.pricing-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.pricing-card__lead {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.pricing-card__price {
    margin-bottom: 2rem;
    background: var(--color-bg-alt);
    padding: 1.5rem;
    border-radius: 12px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.5rem;
}

.price-item:last-child {
    margin-bottom: 0;
}

.price-item .label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text-light);
}

.price-item .value {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-en);
}

.price-item .value .unit {
    font-size: 0.9rem;
    font-weight: 700;
    margin-left: 2px;
}

.pricing-card__features {
    list-style: none;
    margin-bottom: auto;
    /* Push note to bottom */
    padding-bottom: 2rem;
}

.pricing-card__features li {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 500;
}

.pricing-card__features li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 900;
}

.pricing-card__features li.is-disabled {
    color: #CCC;
    text-decoration: line-through;
}

.pricing-card__features li.is-disabled::before {
    content: '×';
    color: #CCC;
}

.pricing-card__note {
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-align: center;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
}

.pricing-card__attention {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-align: left;
    border-top: 1px solid var(--color-border);
    padding-top: 1rem;
    line-height: 1.6;
}

.pricing-card__attention p {
    margin-bottom: 0.5rem;
    text-indent: -1em;
    padding-left: 1em;
}

/* Plan Details */
.plan-details {
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--color-border);
    /* Centering & Connector */
    position: relative;
    max-width: 900px;
    margin: 3rem auto 0;
    text-align: center;
}

/* Connector from Plan A (Recommended) */
/* Vertical Connector Removed */

.plan-details__title {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    background: linear-gradient(transparent 70%, rgba(255, 0, 127, 0.1) 70%);
    display: inline-block;
    padding: 0 1rem;
    position: relative;
    /* left/transform not needed if parent is text-align center and inline-block */
}

.plan-details__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    /* slightly wider minimum */
    gap: 2rem;
    justify-content: center;
}

.plan-item {
    text-align: left;
    /* Switch to left align for list readability */
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: var(--color-bg-alt);
    transition: background 0.3s ease, transform 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
}

.plan-item:hover {
    transform: translateY(-5px);
    border-color: var(--color-primary);
}

.plan-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
    color: var(--color-text);
    text-align: center;
    font-weight: 700;
}

.plan-item .desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.plan-item .price {
    font-size: 2.5rem;
    /* Jump rate up */
    font-weight: 900;
    font-family: var(--font-en);
    margin-bottom: 2rem;
    color: var(--color-primary);
    text-align: center;
    line-height: 1;
    letter-spacing: -0.05em;
}

.plan-item .price .unit {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-left: 4px;
    letter-spacing: 0;
}

.plan-item .price--highlight {
    font-size: 3rem;
    /* Even larger for Standard */
    text-shadow: 0 4px 10px rgba(255, 0, 127, 0.2);
}

.plan-list {
    list-style: none;
    margin-top: auto;
    /* Push to button if we had one */
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
}

.plan-list li {
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.plan-list li:last-child {
    margin-bottom: 0;
}

.plan-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: 900;
}

.plan-item--highlight {
    background: #FFF0F7;
    /* Very light magenta */
    position: relative;
    border: 2px solid var(--color-primary);
    /* Thicker border */
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 0, 127, 0.15);
    /* Enhanced shadow */
    z-index: 2;
}

/* Accent Line for Recommended Title */
.pricing-card--recommended .pricing-card__title {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.pricing-card--recommended .pricing-card__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

/* Vertical Connector to Plan Details */
.pricing-card--recommended::after {
    content: '';
    position: absolute;
    bottom: -3rem;
    /* Extend to cover the gap */
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 3rem;
    /* Length of the gap */
    background: linear-gradient(to bottom, var(--color-primary), rgba(255, 0, 127, 0.3));
    z-index: 0;
}

.plan-item--highlight .plan-list {
    background: rgba(255, 255, 255, 0.6);
}

.discount-item {
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 1rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--color-border);
}

.discount-item strong {
    font-size: 1.1em;
}

/* Price Comparison Table */
.price-comparison-wrapper {
    margin-top: 3rem;
    text-align: center;
}

.price-comparison__summary {
    display: inline-block;
    cursor: pointer;
    background: var(--color-bg-alt);
    padding: 1rem 2rem;
    border-radius: 99px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid var(--color-border);
    list-style: none;
    /* Hide default triangle */
}

.price-comparison__summary::-webkit-details-marker {
    display: none;
}

.price-comparison__summary:hover {
    background: #fff;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.summary-icon {
    display: inline-block;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

details[open] .summary-icon {
    transform: rotate(180deg);
}

.price-comparison__content {
    margin-top: 2rem;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comparison-note {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.table-scroll {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.9rem;
    white-space: nowrap;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.comparison-table th {
    background: var(--color-bg-alt);
    font-weight: 700;
}

.comparison-table .th-standard,
.comparison-table .td-standard {
    background: #FFF0F7;
    /* Highlight Standard Column */
    color: var(--color-primary);
    font-weight: 700;
}

.comparison-table tr:last-child th,
.comparison-table tr:last-child td {
    border-bottom: none;
}


.popular-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 99px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .pricing__grid {
        grid-template-columns: 1fr;
    }

    .plan-item--highlight {
        transform: scale(1);
    }

    .plan-details {
        padding: 2rem 1rem;
    }
}

/* Animations */
.reveal-text {
    overflow: hidden;
}

.reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1s ease;
}

.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Cursor */
/* Simple dot for now, can expand later */
.cursor-dot {
    display: none;
    /* Hidden on mobile by default */
}

@media (min-width: 1024px) {
    /* Only enable custom cursor logic on desktop if implemented in JS */
}