/* --- Product Page Specific Styles --- */

.product-page {
    position: relative;
    background: #fdfdfd;
}

/* --- Editorial Page Header (Product Variant) --- */
.product-header {
    min-height: 75vh !important;
    background: var(--bg-color) !important;
}

.editorial-header {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 !important;
    overflow: hidden;
}

.header-visual-elements {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.visual-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

/* Same subtle blobs as about.html */
.blob-a {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #ff9a9e 0%, #a18cd1 100%);
    top: -200px;
    right: -100px;
    animation: float-blob 20s infinite alternate-reverse;
}

.blob-b {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    bottom: -150px;
    left: -100px;
    animation: float-blob 25s infinite alternate;
}

@keyframes float-blob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.visual-line {
    position: absolute;
    top: 0;
    left: 20%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.04), transparent);
}

.header-main-flex {
    display: flex;
    align-items: flex-start;
    gap: 60px;
    position: relative;
    z-index: 5;
    padding-top: 100px;
    width: 100%;
}

.header-left-decor {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

.decor-tag {
    writing-mode: vertical-rl;
    font-family: var(--font-en);
    font-size: 11px;
    letter-spacing: 0.4em;
    font-weight: 700;
    color: #bbb;
    transform: rotate(180deg);
}

.decor-line {
    width: 1px;
    height: 100px;
    background: #000;
    margin-top: 30px;
}

.header-content-group {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8vw;
}

.header-title-col {
    flex: 0 0 450px;
    padding-left: 5vw;
}

.sub-title-en {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: #aaa;
    line-height: 1;
    margin-bottom: -5px;
    letter-spacing: -0.02em;
}

.editorial-title {
    font-size: clamp(4rem, 10vw, 7rem) !important;
    font-weight: 800 !important;
    line-height: 0.9 !important;
    margin-left: -4px;
    letter-spacing: -0.05em !important;
    background: linear-gradient(135deg, #1a1a1a 0%, #5d8bb3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-message-col {
    flex: 1;
    padding-bottom: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 40px;
    max-width: 600px;
    position: relative;
    text-align: left;
}

.message-accent-line {
    position: absolute;
    top: -1px;
    left: 0;
    width: 80px;
    height: 1.5px;
    background: #5d8bb3;
}

.caption-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #5d8bb3;
    margin-bottom: 25px;
}

.caption-desc {
    font-size: 15px !important;
    font-weight: 500 !important;
    line-height: 2 !important;
    color: #666 !important;
    margin: 0 !important;
}


/* --- Single Large Card Design --- */

.product-showcase {
    /* Same background as top page - organic gradient with blobs */
    position: relative;
    padding: 80px 0 120px;
    background-color: var(--bg-color);
    overflow: hidden;
}

/* Background blobs for product showcase - same as index.html */
.product-showcase::before,
.product-showcase::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    pointer-events: none;
    animation: float 20s infinite ease-in-out alternate;
}

.product-showcase::before {
    width: 600px;
    height: 600px;
    background: var(--accent-blob-1);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.product-showcase::after {
    width: 500px;
    height: 500px;
    background: var(--accent-blob-3);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

/* Product Item Card */
.product-item-card {
    position: relative;
    z-index: 5;
    max-width: 1200px;
    margin: 0 auto 80px;
    /* Subtle card styling for separation */
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 60px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s var(--easing);
}

.product-item-card:last-child {
    margin-bottom: 0;
}

.product-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.5);
}

.product-item-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 100px;
    align-items: center;
}

/* Reverse layout for alternating cards */
.product-item-card.reverse .product-item-content {
    grid-template-columns: 1fr 2fr;
}

.product-item-card.reverse .product-item-left {
    order: 2;
}

.product-item-card.reverse .product-item-right {
    order: 1;
}

/* Left Column - Text Content */
.product-item-left {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.product-item-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 8px;
}

.product-number {
    font-family: var(--font-en);
    font-size: 72px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: -0.02em;
}

.product-divider {
    font-size: 20px;
    color: #ddd;
    font-weight: 300;
}

.product-category {
    font-size: 20px;
    font-weight: 500;
    color: #666;
    letter-spacing: 0.05em;
}

.product-release-info {
    font-size: 15px;
    color: #aaa;
    margin: 0 0 40px 0;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.product-catch-phrase {
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.2;
    margin: 0 0 30px;
    letter-spacing: 0.02em;
    font-family: var(--font-jp);
}

.product-description {
    font-size: 18px;
    line-height: 2;
    color: #555;
    font-weight: 500;
    margin: 0 0 50px;
    letter-spacing: 0.03em;
}

.product-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    color: #fff;
    padding: 18px 48px;
    border-radius: 4px;
    font-family: var(--font-en);
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid #1a1a1a;
}

.product-cta-btn:hover {
    background-color: #fff;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-cta-btn.is-disabled {
    background-color: #eee;
    color: #999;
    border-color: #eee;
    cursor: default;
    pointer-events: none;
}

/* External Link Icon */
.product-cta-btn[target="_blank"] {
    position: relative;
    padding-right: 60px;
}

.product-cta-btn[target="_blank"]::after {
    content: '';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-color: currentColor;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.product-cta-btn[target="_blank"]:hover::after {
    opacity: 1;
}

/* Right Column - Image */
.product-item-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-wrapper {
    width: 85%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(93, 139, 179, 0.1) 0%, rgba(123, 165, 204, 0.1) 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    overflow: hidden;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--easing);
}

.product-item-card:hover .product-image-wrapper img {
    transform: scale(1.05);
}

.image-label {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    .product-item-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Reset reverse layout on mobile */
    .product-item-card.reverse .product-item-content {
        grid-template-columns: 1fr;
    }

    .product-item-card.reverse .product-item-left {
        order: 1;
    }

    .product-item-card.reverse .product-item-right {
        order: 2;
    }

    .product-item-card {
        padding: 40px;
    }

    .product-catch-phrase {
        font-size: 26px;
    }

    .product-description br {
        display: none;
    }
}

.product-item-large {
    max-width: 1200px;
    margin: 0 auto;
}

.product-card-container {
    background: #fff;
    border-radius: 40px;
    padding: 40px 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.03);
    min-height: 700px;
    display: flex;
    flex-direction: column;
}

/* Top Meta */
.card-meta-top {
    margin-bottom: 30px;
}

.meta-no {
    font-size: 14px;
    color: #999;
    font-weight: 500;
    display: block;
    margin-bottom: 5px;
}

.meta-cat {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    margin: 0;
}

/* Main Content Area */
.card-content-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Push text to bottom if image is background? 
                                  No, ref implies standard flow but large image space */
    gap: 30px;
}

.card-image-block {
    flex: 1;
    background: #fcfcfc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.img-placeholder {
    color: #eee;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-family: var(--font-en);
}

.card-text-block {
    margin-top: auto;
    /* Ensure it stays bottom */
}

.catch-copy {
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
}

.product-title {
    font-size: 24px;
    font-weight: 800;
    color: #222;
    margin-bottom: 20px;
    line-height: 1.4;
}

.value-point {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.point-icon {
    font-size: 12px;
    color: #333;
}

.point-label {
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

.product-desc {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 25px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
}

.link-btn:hover {
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .editorial-header {
        min-height: auto !important;
        padding-top: 100px !important;
        /* Added to prevent overlap */
        padding-bottom: 80px !important;
    }

    .header-main-flex {
        flex-direction: column;
        align-items: center;
        /* Center horizontally */
        gap: 30px;
        padding-top: 40px;
        text-align: center;
        /* Center children text */
    }

    .header-left-decor {
        flex-direction: row;
        width: 100%;
        align-items: center;
        justify-content: center;
        /* Center horizontally */
        gap: 20px;
    }

    .decor-tag {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .decor-line {
        width: 60px;
        height: 1px;
        margin-top: 0;
    }

    .header-content-group {
        flex-direction: column;
        align-items: center;
        /* Center horizontally */
        gap: 40px;
        text-align: center;
    }

    .header-title-col {
        padding-left: 0;
        flex: none !important;
        width: 100%;
        text-align: center;
    }

    .header-message-col {
        padding-top: 30px;
        width: 100%;
        text-align: center;
    }

    .message-accent-line {
        left: 50%;
        transform: translateX(-50%);
    }

    .caption-desc {
        text-align: center !important;
    }

    .editorial-title {
        font-size: clamp(3rem, 15vw, 6rem) !important;
    }

    .product-card-container {
        padding: 30px;
        min-height: auto;
    }

    .card-image-block {
        min-height: 250px;
    }

    /* Mobile Refinements for Product Card */
    .product-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        margin-bottom: 15px;
    }

    .product-divider {
        display: none;
    }

    .product-number {
        font-size: 50px;
        margin-bottom: 0;
    }

    .product-category {
        font-size: 15px;
    }

    .product-catch-phrase {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 20px;
    }

    .product-description {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 30px;
    }
}