/* ==========================================================================
   SIGNATURE EDITION CUSTOM STYLES (Tsugawa Magic Back to Top)
   ========================================================================== */

/* Brand color overrides - Dynamic values allowing theme-picker customizations */
:root {
    --color-primary: #8b5cf6;         /* Signature Violet (Initial Default) */
    --color-primary-hover: #7c3aed;
    --color-primary-rgb: 139, 92, 246;
    --color-secondary: #ec4899;       /* Signature Pink */
    --color-secondary-hover: #db2777;
    --color-card-hover-border: rgba(var(--color-primary-rgb), 0.4);
    --shadow-glow: 0 0 35px 0 rgba(var(--color-primary-rgb), 0.22);
}

/* 1. Restructured Hero Section with Blur/Glow Backdrop */
.product-hero {
    position: relative;
    padding: 100px 0 100px 0;
    overflow: hidden;
    background-color: var(--color-bg);
}

.product-hero .container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 60px;
    align-items: center;
}

.hero-logo-area {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 24px;
}

.hero-logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

.hero-logo-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-text-main);
    text-transform: uppercase;
}

.product-hero .hero-title {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 30%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-hero .product-tagline-large {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 36px;
    text-align: left;
}

.product-hero .hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
}

/* 3D Perspective Banner Mockup */
.hero-banner-wrapper {
    perspective: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-banner-card {
    width: 100%;
    max-width: 480px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 50px rgba(139, 92, 246, 0.2);
    overflow: hidden;
    transform: rotateY(-12deg) rotateX(10deg) rotateZ(2deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
    background-color: var(--color-bg-alt);
}

.hero-banner-card:hover {
    transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg) scale(1.03);
    box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.8), 0 0 60px rgba(139, 92, 246, 0.35);
    border-color: rgba(139, 92, 246, 0.5);
}

.banner-mock-img {
    width: 100%;
    height: auto;
    display: block;
}

/* 2. Signature Story Section */
.signature-story-section {
    position: relative;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
    border-top: 1px solid var(--color-card-border);
    border-bottom: 1px solid var(--color-card-border);
    overflow: hidden;
}

.signature-story-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 24px;
}

.story-header {
    text-align: center;
    margin-bottom: 50px;
}

.story-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.story-header-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
}

.story-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.story-editorial-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--color-text-muted);
}

.story-editorial-text p {
    margin-bottom: 24px;
}

.story-editorial-text strong {
    color: #ffffff;
}

.story-highlight-quote {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.6;
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    margin: 32px 0;
}

.story-meta-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 32px;
    text-align: center;
}

.story-author-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-image: url(../assets/toru-tsugawa-icon.webp);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    background-size: contain;
}

.story-author-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.story-author-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-dark);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.story-author-signature {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
    display: inline-block;
    width: 80%;
}

/* 3. Features Card Grid Custom Enhancements */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--color-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 36px;
    transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-card-hover-border);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: transform var(--transition-normal);
}

.feature-card:hover .feature-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card-icon svg {
    width: 22px;
    height: 22px;
}

.feature-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 4. Showcase & Gallery styling */
.gallery-section {
    border-top: 1px solid var(--color-card-border);
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.showcase-item:nth-child(even) {
    grid-template-columns: 0.9fr 1.1fr;
}

.showcase-item:nth-child(even) .showcase-image-wrapper {
    order: 2;
}

.showcase-text h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.showcase-text p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.showcase-image-wrapper {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-card-border);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.browser-mockup-header {
    height: 28px;
    background-color: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.browser-mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-text-dark);
}

.browser-mockup-dot.red { background-color: var(--color-danger); }
.browser-mockup-dot.yellow { background-color: var(--color-warning); }
.browser-mockup-dot.green { background-color: var(--color-success); }

.showcase-img {
    width: 100%;
    height: auto;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.showcase-image-wrapper:hover .showcase-img {
    transform: scale(1.01);
}

/* Steps Block Integration */
.step-num-large {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.15;
    position: absolute;
    right: 20px;
    top: 10px;
}

/* Responsive adjustment */
@media (max-width: 1024px) {
    .product-hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .product-hero .product-tagline-large {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    .product-hero .hero-actions {
        justify-content: center;
    }
    .hero-logo-area {
        justify-content: center;
    }
    .hero-banner-card {
        transform: none;
    }
    .hero-banner-card:hover {
        transform: scale(1.02);
    }
    .story-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .story-meta-card {
        max-width: 480px;
        margin: 0 auto;
        width: 100%;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .showcase-item, .showcase-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .showcase-item:nth-child(even) .showcase-image-wrapper {
        order: 0;
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .product-hero {
        padding: 80px 0 60px 0;
    }
    .product-hero .hero-title {
        font-size: 2.2rem;
    }
    .product-tagline-large {
        font-size: 1.15rem;
    }
    .showcase-text h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) { /* もしくは 480px など */
    .hero-actions {
        display: flex;
        flex-direction: column; /* 狭い画面ではボタンを縦並びにする */
        width: 100%;
        gap: 16px;
    }
    
    .hero-actions .btn {
        width: 100%; /* ボタンを画面幅いっぱいに広げる */
        justify-content: center;
    }
}