/* LOOK BOOK スタイルシート
 * NANGA WHITE LABEL 最強ダウン LOOK BOOK用
 * SWELLテーマ対応版
 */

/* SWELLテーマのスタイルをリセット */
body.lookbook-page {
    margin: 0 !important;
    padding: 0 !important;
}

.lookbook-page #header,
.lookbook-page #footer,
.lookbook-page .l-header,
.lookbook-page .l-footer,
.lookbook-page .l-contents,
.lookbook-page .l-main {
    display: none !important;
}

:root {
    --text-color: #000;
    --bg-color: #fafafa;
    --overlay-bg: rgba(250, 250, 250, 0.98);
    --transition-speed: 0.4s;
    --grid-gap: 2px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.lookbook-page {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    overflow-y: auto;
}

/* ヘッダー */
.lookbook-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px 40px;
    z-index: 50;
    background-color: rgba(250, 250, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.lookbook-header-title {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    font-weight: 300;
}

/* TOP VISUAL セクション */
.top-visual {
    width: 100vw;
    height: 100vh;
    display: flex;
    margin-top: 80px;
    scroll-snap-align: start;
}

.top-visual-left {
    width: 70%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-color);
}

.top-visual-right {
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.top-visual-right-top {
    height: 50%;
    overflow: hidden;
    border-bottom: var(--grid-gap) solid var(--bg-color);
}

.top-visual-right-bottom {
    height: 50%;
    overflow: hidden;
}

.top-visual img,
.top-visual .placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 最初の1枚目（横長画像 1536×864px）用のスタイル - 全体表示 */
.top-visual-left img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
    max-height: 100vh;
    display: block;
}

/* 右側の画像は cover のまま */
.top-visual-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* LOOK セクション */
.look-section {
    width: 100vw;
    min-height: 100vh;
    padding: 40px;
    scroll-snap-align: start;
}

.look-header {
    margin-bottom: 40px;
    text-align: center;
}

.look-title {
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    font-weight: 300;
    margin-bottom: 10px;
}

.look-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #666;
    font-weight: 300;
}

/* グリッドレイアウト */
.look-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--grid-gap);
    max-width: 1400px;
    margin: 0 auto;
}

.look-grid-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background-color: #e8e8e8;
}

.look-grid-item.wide {
    grid-column: span 2;
    aspect-ratio: 8 / 5;
}

.look-grid-item.tall {
    grid-row: span 2;
    aspect-ratio: 4 / 10;
}

.look-grid-item img,
.look-grid-item .placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.look-grid-item:hover img,
.look-grid-item:hover .placeholder {
    transform: scale(1.05);
}

.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    text-align: center;
}

/* grid-label を非表示 */
.grid-label {
    display: none !important;
}

/* 固定タブ */
.fixed-tabs {
    position: fixed;
    bottom: 30px;
    right: 40px;
    display: flex;
    gap: 32px;
    z-index: 20;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    /* 透過型の背景色を追加 */
    background-color: rgba(250, 250, 250, 0.7); /* 半透明の背景 */
    backdrop-filter: blur(10px); /* 背景をぼかす */
    -webkit-backdrop-filter: blur(10px); /* Safari対応 */
    padding: 15px 25px;
    border-radius: 4px;
}

.tab-btn {
    cursor: pointer;
    color: #000;
    position: relative;
    padding-bottom: 2px;
    transition: opacity 0.3s;
}

.tab-btn:hover {
    opacity: 0.6;
}

/* オーバーレイ */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--overlay-bg);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-speed);
    overflow-y: auto;
}

.overlay.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
}

.overlay-content {
    width: 100%;
    max-width: 535px;
    text-align: center;
    padding: 60px 40px;
    position: relative;
    margin: 40px 0;
    pointer-events: auto;
    z-index: 101;
}

.close-btn {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    font-weight: 300;
    color: #666;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #000;
}

.info-title {
    font-size: 0.8rem;
    margin-bottom: 40px;
    letter-spacing: 0.2em;
    font-weight: 300;
}

.info-text {
    font-size: 0.85rem;
    line-height: 2.2;
    margin-bottom: 24px;
    font-weight: 300;
}

.product-list {
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.8;
    font-weight: 300;
}

.product-list strong {
    font-weight: bold;
    display: block;
    margin-top: 8px;
    margin-bottom: 8px;
}

.product-list strong:first-child {
    margin-top: 0;
}

.product-list a {
    color: #000;
    text-decoration: underline;
    margin-top: 20px;
    display: inline-block;
}

.product-list a.product-item-link {
    color: #000 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    margin-top: 0;
    display: inline;
    position: relative;
    z-index: 102;
}

.product-list a.product-item-link:hover {
    opacity: 0.6;
    text-decoration: underline;
}

.product-list p {
    pointer-events: auto;
    position: relative;
    z-index: 101;
}

/* スクロールインジケーター */
.scroll-indicator {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: #999;
    font-weight: 300;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* STORE INFO フッター */
.store-info-footer {
    width: 100%;
    padding: 60px 40px;
    text-align: center;
    background-color: var(--bg-color);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.store-info-footer .info-text {
    font-size: 0.85rem;
    line-height: 2.2;
    margin-bottom: 24px;
    font-weight: 300;
}

.store-info-footer a {
    color: #000;
    text-decoration: underline;
    font-weight: 300;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .lookbook-header {
        padding: 20px;
    }

    .top-visual {
        flex-direction: column;
        height: auto;
        margin-top: 60px;
    }

    .top-visual-left,
    .top-visual-right {
        width: 100%;
    }

    .top-visual-left {
        height: 30vh;
    }

    .top-visual-right {
        height: 40vh;
        flex-direction: row;
    }

    .top-visual-right-top,
    .top-visual-right-bottom {
        width: 50%;
        height: 100%;
    }

    .top-visual-right-top {
        border-bottom: none;
        border-right: var(--grid-gap) solid var(--bg-color);
    }

    .look-section {
        padding: 20px;
    }

    .look-grid {
        grid-template-columns: 1fr;
        gap: var(--grid-gap);
    }

    .look-grid-item.wide,
    .look-grid-item.tall {
        grid-column: span 1;
        grid-row: span 1;
        aspect-ratio: 4 / 5;
    }

    .fixed-tabs {
        right: 50%;
        transform: translateX(50%);
        bottom: 20px;
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }

    .scroll-indicator {
        display: none;
    }

    /* STYLING ITEMS オーバーレイのモバイル最適化 */
    .overlay-content {
        padding: 40px 20px;
        margin: 20px 0;
    }

    .close-btn {
        top: 20px;
        right: 20px;
        font-size: 1.5rem;
    }

    .product-list {
        font-size: 0.75rem;
    }

    /* STORE INFO フッターのモバイル最適化 */
    .store-info-footer {
        padding: 40px 20px;
    }

    .store-info-footer .info-text {
        font-size: 0.75rem;
        line-height: 2;
    }
}




