/* ================================================
   Works Detail Page Styles
   ================================================ */

:root {
    --color-teal-detail: #0BFFB7;
    --color-dark-detail: #0F1214;
    --color-deep-detail: #111418;
    --color-light-bg: #F6F7F8;
}

/* ================================================
   Body & General
   ================================================ */

body {
    background: linear-gradient(135deg, rgba(10, 13, 18, 1) 0%, rgba(15, 17, 20, 1) 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ================================================
   Particles Canvas
   ================================================ */

.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 1;
}

/* Z-index Management */
.header {
    position: relative;
    z-index: 1000;
}

section {
    position: relative;
}

.container {
    position: relative;
    z-index: auto;
}

.footer {
    background: var(--color-dark-detail) !important;
    z-index: auto;
    position: relative;
}

/* ================================================
   Hero Section
   ================================================ */

.detail-hero {
    padding: 140px 0 100px;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: auto;
}

.hero-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-teal-detail);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.hero-left {
    flex: 1;
}

.hero-right {
    flex-shrink: 0;
    min-width: 350px;
}

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.3;
    margin-bottom: 0;
    text-align: left;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    text-align: left;
}

.meta-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.meta-value {
    font-size: 1.1rem;
    color: #FFFFFF;
    font-weight: 500;
    line-height: 1.6;
}

.meta-divider {
    width: 100%;
    height: 1px;
    background: rgba(11, 255, 183, 0.3);
}

.hero-line {
    width: 100%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-teal-detail), transparent);
    margin: 0 auto;
    box-shadow: 0 0 15px rgba(11, 255, 183, 0.3);
}

/* ================================================
   Light Background Sections
   ================================================ */

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

/* ================================================
   Section Common Styles
   ================================================ */

.detail-section {
    padding: 100px 0;
    background: transparent;
    position: relative;
    z-index: auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-number {
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #0BFFB7;
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(11, 255, 183, 0.5);
}

.section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
}

.section-line {
    width: 80px;
    height: 1px;
    background: var(--color-teal-detail);
    margin: 0 auto;
}

/* ================================================
   Glass Card
   ================================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.card-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--color-dark-detail);
    margin-bottom: 1.5rem;
}

.card-text:last-child {
    margin-bottom: 0;
}

/* ================================================
   Logo Showcase Section
   ================================================ */

.logo-showcase {
    max-width: 900px;
    margin: 0 auto;
}

.logo-main-card {
    padding: 4rem 3rem;
    text-align: center;
}

.logo-image-wrapper {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 3rem;
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.logo-image {
    width: 100%;
    height: auto;
    display: block;
}

.logo-description {
    max-width: 700px;
    margin: 0 auto;
}

.logo-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark-detail);
    margin-bottom: 1.5rem;
}

.logo-text {
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(15, 18, 20, 0.75);
}

.privacy-note {
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(15, 18, 20, 0.5);
    margin-top: 1rem;
    text-align: right;
    font-style: italic;
}

/* Business Card Page Specific (PC) */
.logo-title-businesscard br:nth-of-type(1) {
    display: none;
}

.card-text-businesscard br {
    display: block;
}

.problem-title-businesscard br {
    display: none;
}

.design-text-businesscard br {
    display: none;
}

.logo-link-wrapper {
    margin-top: 2rem;
}

.logo-site-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(18, 206, 150, 0.1);
    border: 1px solid #12ce96;
    border-radius: 8px;
    color: #12ce96;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo-site-link:hover {
    background: #12ce96;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(18, 206, 150, 0.3);
}

.logo-site-link svg {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    .logo-main-card {
        padding: 2.5rem 1.5rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .logo-image-wrapper {
        padding: 2rem;
        margin-bottom: 2rem;
        max-width: 100%;
    }

    .logo-title {
        font-size: 1.25rem;
    }

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

/* ================================================
   Results Section
   ================================================ */

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.result-card {
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.result-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 255, 183, 0.1);
    border-radius: 50%;
    margin-bottom: 0.5rem;
}

.result-icon svg {
    stroke: var(--color-teal-detail);
}

.result-value {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-teal-detail);
    line-height: 1;
}

.result-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-dark-detail);
    margin-bottom: 0.5rem;
}

.result-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(15, 18, 20, 0.7);
    max-width: 280px;
}

/* ================================================
   Problem Section
   ================================================ */

.problem-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.problem-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.problem-icon {
    width: 8px;
    height: 8px;
    background: var(--color-teal-detail);
    border-radius: 50%;
    margin-top: 0.7rem;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(11, 255, 183, 0.5);
}

.problem-content {
    flex: 1;
}

.problem-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-dark-detail);
    margin-bottom: 0.5rem;
}

.problem-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(15, 18, 20, 0.7);
}

/* ================================================
   Approach Section
   ================================================ */

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.approach-card {
    text-align: left;
}

.approach-step {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-teal-detail);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.approach-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-dark-detail);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(11, 255, 183, 0.2);
}

.approach-text {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(15, 18, 20, 0.75);
}

/* ================================================
   Design Point Section
   ================================================ */

.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.design-card {
    text-align: center;
    padding: 2.5rem 2rem;
}

.design-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #12ce96;
    opacity: 1;
    margin-bottom: 1rem;
}

.design-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark-detail);
    margin-bottom: 0.75rem;
}

.design-text {
    font-size: 0.9rem;
    line-height: 1.7;
    color: rgba(15, 18, 20, 0.7);
}

/* ================================================
   Before/After Section
   ================================================ */

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.comparison-label {
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.comparison-label.before {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(15, 18, 20, 0.6);
}

.comparison-label.after {
    background: rgba(11, 255, 183, 0.15);
    color: var(--color-teal-detail);
    border: 1px solid var(--color-teal-detail);
}

.comparison-image {
    margin-bottom: 2rem;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: rgba(0, 0, 0, 0.03);
    border: 2px dashed rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder span {
    font-size: 0.875rem;
    color: rgba(15, 18, 20, 0.4);
}

.comparison-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.comparison-list li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(15, 18, 20, 0.75);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.comparison-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-teal-detail);
}

/* ================================================
   Implementation Section
   ================================================ */

.implementation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.implementation-card {
    text-align: left;
}

.implementation-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-dark-detail);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(11, 255, 183, 0.2);
}

.implementation-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.implementation-list li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(15, 18, 20, 0.75);
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}

.implementation-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-teal-detail);
    font-weight: 700;
}

.implementation-note {
    font-size: 0.85rem;
    color: rgba(15, 18, 20, 0.6);
    margin-top: 1.5rem;
    font-style: italic;
}

/* ================================================
   CTA Section
   ================================================ */

.detail-cta {
    padding: 120px 0;
    background: transparent;
    text-align: center;
    position: relative;
    z-index: auto;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ================================================
   Responsive Design
   ================================================ */

@media (max-width: 768px) {
    .detail-hero {
        padding: 120px 0 80px;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

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

    .hero-meta {
        align-items: center;
        text-align: center;
    }

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

    .meta-divider {
        display: none;
    }

    .detail-section {
        padding: 60px 0;
    }

    .glass-card {
        padding: 2rem 1.5rem;
    }

    .approach-grid,
    .design-grid,
    .comparison-grid,
    .implementation-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .detail-cta {
        padding: 80px 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Candle Page SP Adjustments */
    .hero-title-candle br {
        display: block !important;
    }

    .hero-title-candle {
        font-size: 2rem;
        line-height: 1.4;
    }

    .logo-title-candle br {
        display: block !important;
    }

    .logo-text-candle br {
        display: block !important;
    }

    .logo-text-candle {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .design-title-candle br {
        display: block !important;
    }

    .cta-title-candle br {
        display: block !important;
    }

    .cta-title-candle {
        font-size: 1.75rem;
        line-height: 1.5;
    }

    /* Wedding Page SP Adjustments */
    .hero-title-wedding br {
        display: block !important;
    }

    .hero-title-wedding {
        font-size: 1.75rem;
        line-height: 1.4;
        word-break: keep-all;
    }

    .logo-title-wedding {
        font-size: 1.3rem;
        line-height: 1.5;
    }

    .logo-text-wedding {
        font-size: 0.9rem;
        line-height: 1.8;
    }

    .logo-text-wedding br {
        display: none;
    }

    .logo-site-link {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
        word-break: break-all;
    }

    .cta-title-wedding {
        font-size: 1.75rem;
        line-height: 1.5;
    }

    .cta-title-wedding br {
        display: block !important;
    }

    .cta-text-wedding {
        font-size: 0.95rem;
        line-height: 1.8;
    }

    .cta-text-wedding br {
        display: block !important;
    }

    /* Business Card Page SP Adjustments */
    .logo-title-businesscard br:nth-of-type(1) {
        display: block !important;
    }

    .card-text-businesscard br {
        display: none !important;
    }

    .problem-title-businesscard {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }

    .problem-title-businesscard br {
        display: block !important;
    }

    .design-title-businesscard {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }

    .problem-text-businesscard {
        font-size: 0.9rem !important;
        line-height: 1.75 !important;
    }

    .design-text-businesscard {
        font-size: 0.9rem !important;
        line-height: 1.75 !important;
    }

    .design-text-businesscard br {
        display: block !important;
    }

    /* ARKWAY Partners Page SP Adjustments */
    .hero-title-arkway br {
        display: block !important;
    }

    .hero-title-arkway {
        font-size: 1.6rem;
        line-height: 1.4;
        word-break: keep-all;
    }

    /* Rabbit Group Page SP Adjustments */
    .hero-title-rabbit {
        font-size: 1.75rem;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .glass-card {
        padding: 1.5rem 1rem;
    }

    .card-text {
        font-size: 0.95rem;
    }

    /* Business Card Page Only */
    body.businesscard-page .detail-cta .container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    body.businesscard-page .detail-cta .cta-content {
        max-width: 100% !important;
        margin: 0 !important;
    }

    body.businesscard-page .detail-cta .cta-title {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
        display: block !important;
        text-align: center !important;
        margin: 0 0 1.5rem 0 !important;
        padding: 0 1rem !important;
        width: 100% !important;
    }
    
    body.businesscard-page .detail-cta .cta-text {
        padding: 0 var(--spacing-md) !important;
    }
    
    body.businesscard-page .detail-cta .cta-buttons {
        padding: 0 var(--spacing-md) !important;
    }
}

/* ================================================
   Candle Page Specific (PC)
   ================================================ */

.hero-title-candle br:nth-of-type(1) {
    display: none;
}

.hero-title-candle br:nth-of-type(2) {
    display: block;
}

.logo-title-candle br {
    display: none;
}

.logo-text-candle br:nth-of-type(1) {
    display: none;
}

.design-title-candle br {
    display: block;
}

.cta-title-candle br {
    display: none;
}

/* ================================================
   Wedding Page Specific (PC)
   ================================================ */

.hero-title-wedding {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-title-wedding br:nth-of-type(1) {
    display: inline;
}

.hero-title-wedding br:nth-of-type(2) {
    display: none;
}

.cta-title-wedding br {
    display: none;
}

.cta-text-wedding br {
    display: none;
}

/* ================================================
   ARKWAY Partners Page Specific (PC)
   ================================================ */

.hero-title-arkway {
    font-size: clamp(2rem, 4vw, 3rem);
}

.hero-title-arkway br:nth-of-type(1) {
    display: inline;
}

.hero-title-arkway br:nth-of-type(2) {
    display: inline;
}

/* ================================================
   Rabbit Group Page Specific (PC)
   ================================================ */

.hero-title-rabbit {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

/* ================================================
   Animation Utilities
   ================================================ */

[data-animate="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-animate="fade-up"].animated {
    opacity: 1;
    transform: translateY(0);
}
