/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jul 16 2025 | 07:52:03 */
/* =================================
   DNACERS SELECT プレビュー機能付きアコーディオンギャラリー CSS
   ================================= */

/* ベース設定 */
.accordion-container {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 20px;
}

/* セクションタイトル */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #9b59b6);
    margin: 20px auto;
    border-radius: 2px;
}

.section-description {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* 価格表示ボックス */
.price-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0 50px 0;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.price-highlight h3 {
    margin: 0 0 15px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.price-highlight p {
    margin: 8px 0;
    font-size: 1.1rem;
    opacity: 0.95;
}

/* =================================
   アコーディオン基本スタイル
   ================================= */

.accordion-item {
    background: #ffffff;
    border: 1px solid #e0e6ed;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

/* =================================
   プレビューギャラリー（最初の4枚）
   ================================= */

.preview-gallery {
    margin-bottom: 20px;
    padding: 20px;
}

/* PC用プレビュー：4枚を1行で表示 */
.preview-grid-pc {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

/* モバイル用プレビュー：横スクロール */
.preview-scroll-mobile {
    display: none;
    overflow-x: auto;
    margin-bottom: 20px;
    padding-bottom: 10px;
    scroll-behavior: smooth;
}

.preview-scroll-container {
    display: flex;
    gap: 15px;
    padding: 0 5px;
    width: max-content;
}

/* スクロールバーのカスタマイズ */
.preview-scroll-mobile::-webkit-scrollbar {
    height: 6px;
}

.preview-scroll-mobile::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.preview-scroll-mobile::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.preview-scroll-mobile::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Firefox用スクロールバー */
.preview-scroll-mobile {
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
}

/* プレビューアイテム共通スタイル */
.preview-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.preview-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.preview-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.preview-item:hover img {
    transform: scale(1.05);
}

/* モバイル用プレビューアイテム */
.preview-scroll-container .preview-item {
    flex: 0 0 150px;
    width: 150px;
}

.preview-scroll-container .preview-item img {
    height: 150px;
}

/* もっと見るボタン */
.more-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.more-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.more-button:active {
    transform: translateY(0);
}

.more-button .arrow {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.more-button.expanded {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.more-button.expanded:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.more-button.expanded .arrow {
    transform: rotate(180deg);
}

/* =================================
   アコーディオンヘッダー（非表示）
   ================================= */

.accordion-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e0e6ed;
    user-select: none;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.accordion-header.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-color: transparent;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.accordion-title h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.accordion-title .category-icon {
    font-size: 1.8rem;
    transition: transform 0.3s ease;
}

.accordion-header:hover .category-icon {
    transform: scale(1.1);
}

.accordion-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.accordion-count {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.accordion-header.active .accordion-count {
    background: rgba(255,255,255,0.3);
}

.accordion-arrow {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    font-weight: bold;
}

.accordion-header.active .accordion-arrow {
    transform: rotate(180deg);
}

/* =================================
   アコーディオンコンテンツ
   ================================= */

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 30px;
}

.accordion-content.active {
    max-height: 3000px;
    padding: 30px;
}

/* ギャラリーグリッド */
.gallery-grid {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

/* ドレスギャラリー（大きめ表示） */
.dress-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.dress-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dress-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.dress-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.dress-card:hover img {
    transform: scale(1.05);
}

.dress-info {
    padding: 20px;
}

.dress-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 600;
}

.dress-info p {
    margin: 0;
    color: #666;
    font-size: 0.95rem;
}

/* アクセサリーギャラリー（コンパクト表示） */
.accessory-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.accessory-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.accessory-card:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.accessory-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.accessory-info {
    padding: 10px;
    text-align: center;
}

.accessory-info h5 {
    margin: 0;
    font-size: 0.85rem;
    color: #2c3e50;
    font-weight: 500;
}

/* =================================
   カテゴリー別カラーテーマ
   ================================= */

.category-dresses { 
    border-left: 5px solid #667eea; 
}

.category-dresses .more-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-dresses .more-button:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.category-tops { 
    border-left: 5px solid #2ecc71; 
}

.category-tops .more-button {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}

.category-tops .more-button:hover {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.category-bottoms { 
    border-left: 5px solid #e74c3c; 
}

.category-bottoms .more-button {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.category-bottoms .more-button:hover {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.category-earrings { 
    border-left: 5px solid #f39c12; 
}

.category-earrings .more-button {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.category-earrings .more-button:hover {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}

.category-necklaces { 
    border-left: 5px solid #9b59b6; 
}

.category-necklaces .more-button {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.category-necklaces .more-button:hover {
    background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

.category-hair { 
    border-left: 5px solid #1abc9c; 
}

.category-hair .more-button {
    background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}

.category-hair .more-button:hover {
    background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
}

.category-others { 
    border-left: 5px solid #34495e; 
}

.category-others .more-button {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}

.category-others .more-button:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

/* =================================
   FooGalleryとの統合スタイル
   ================================= */

/* ギャラリーコンテナ */
.accordion-content .foogallery {
    margin: 20px 0 0 0;
}

/* プレビューエリアのFooGallery統合 */
.preview-gallery .foogallery {
    margin: 0;
}

.preview-gallery .foogallery.fg-masonry,
.preview-gallery .foogallery.fg-justified {
    display: grid;
    gap: 15px;
    margin-bottom: 20px;
}

/* PC用プレビューFooGallery */
.preview-grid-pc .foogallery {
    grid-template-columns: repeat(4, 1fr);
}

/* モバイル用プレビューFooGallery */
.preview-scroll-mobile .foogallery {
    display: flex;
    gap: 15px;
    width: max-content;
}

.preview-scroll-mobile .fg-item {
    flex: 0 0 150px;
    width: 150px;
}

/* Masonryレイアウト（ドレス用） */
.foogallery.fg-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.foogallery.fg-masonry .fg-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.foogallery.fg-masonry .fg-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.foogallery.fg-masonry .fg-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.foogallery.fg-masonry .fg-item:hover img {
    transform: scale(1.05);
}

/* Justifiedレイアウト（アクセサリー用） */
.foogallery.fg-justified {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.foogallery.fg-justified .fg-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.foogallery.fg-justified .fg-item:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.foogallery.fg-justified .fg-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* キャプション */
.fg-caption {
    padding: 15px;
    text-align: center;
}

.fg-caption-title {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
}

.fg-caption-desc {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* プレビュー用キャプション（簡略化） */
.preview-gallery .fg-caption {
    padding: 8px;
}

.preview-gallery .fg-caption-title {
    font-size: 0.9rem;
}

.preview-gallery .fg-caption-desc {
    font-size: 0.8rem;
}

/* =================================
   FooBoxライトボックスカスタマイズ
   ================================= */

.foobox-wrap {
    backdrop-filter: blur(5px);
}

.foobox-container {
    border-radius: 8px;
    overflow: hidden;
}

.foobox-image {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.foobox-buttons {
    background: rgba(0,0,0,0.7);
    border-radius: 25px;
    padding: 5px;
}

.foobox-button {
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    transition: all 0.3s ease;
}

.foobox-button:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

/* カスタムライトボックス */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: 300;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }

/* =================================
   アニメーション効果
   ================================= */

/* フェードイン効果 */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* プレビューアイテムの段階的表示 */
.preview-grid-pc .preview-item {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.4s ease forwards;
}

.preview-grid-pc .preview-item:nth-child(1) { animation-delay: 0.1s; }
.preview-grid-pc .preview-item:nth-child(2) { animation-delay: 0.2s; }
.preview-grid-pc .preview-item:nth-child(3) { animation-delay: 0.3s; }
.preview-grid-pc .preview-item:nth-child(4) { animation-delay: 0.4s; }

/* アコーディオンコンテンツの段階的表示 */
.accordion-content.active .gallery-grid > * {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.4s ease forwards;
}

.accordion-content.active .gallery-grid > *:nth-child(1) { animation-delay: 0.1s; }
.accordion-content.active .gallery-grid > *:nth-child(2) { animation-delay: 0.15s; }
.accordion-content.active .gallery-grid > *:nth-child(3) { animation-delay: 0.2s; }
.accordion-content.active .gallery-grid > *:nth-child(4) { animation-delay: 0.25s; }
.accordion-content.active .gallery-grid > *:nth-child(5) { animation-delay: 0.3s; }
.accordion-content.active .gallery-grid > *:nth-child(6) { animation-delay: 0.35s; }
.accordion-content.active .gallery-grid > *:nth-child(7) { animation-delay: 0.4s; }
.accordion-content.active .gallery-grid > *:nth-child(8) { animation-delay: 0.45s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ホバー時の詳細表示 */
.fg-item .overlay-info,
.preview-item .overlay-info,
.dress-card .overlay-info,
.accessory-card .overlay-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.fg-item:hover .overlay-info,
.preview-item:hover .overlay-info,
.dress-card:hover .overlay-info,
.accessory-card:hover .overlay-info {
    transform: translateY(0);
}

.overlay-info h4,
.overlay-info h5 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
}

.overlay-info p {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* =================================
   レスポンシブ対応
   ================================= */

/* タブレット〜PC */
@media (min-width: 769px) {
    .preview-grid-pc {
        display: grid;
    }
    .preview-scroll-mobile {
        display: none !important;
    }
}

/* タブレット対応 */
@media (max-width: 768px) {
    .preview-grid-pc {
        display: none !important;
    }
    .preview-scroll-mobile {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }
    
    .preview-gallery {
        padding: 15px;
    }
    
    .accordion-content.active {
        padding: 20px;
    }
    
    .foogallery.fg-masonry {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .foogallery.fg-justified {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .foogallery.fg-justified .fg-item img {
        height: 120px;
    }
    
    .price-highlight {
        padding: 25px 20px;
    }
    
    .price-highlight h3 {
        font-size: 1.3rem;
    }

    .lightbox-nav {
        display: none;
    }

    .more-button {
        min-width: 160px;
        font-size: 0.9rem;
    }

    .preview-scroll-container .preview-item {
        flex: 0 0 140px;
        width: 140px;
    }

    .preview-scroll-container .preview-item img {
        height: 140px;
    }
}

/* スマートフォン対応 */
@media (max-width: 480px) {
    .accordion-container {
        padding: 0 15px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-description {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .preview-gallery {
        padding: 10px;
    }
	.accordion-header {
		padding:8px 8px 8px 0;
	}
    .accordion-content.active {
        padding: 15px;
    }
    
    .foogallery.fg-masonry {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .foogallery.fg-justified {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .foogallery.fg-justified .fg-item img {
        height: 100px;
    }
    
    .fg-caption {
        padding: 8px;
    }
    
    .fg-caption-title {
        font-size: 0.9rem;
    }
    
    .fg-caption-desc {
        font-size: 0.8rem;
    }
    
    .price-highlight {
        padding: 20px 15px;
        margin: 20px 0 30px 0;
    }
    
    .price-highlight h3 {
        font-size: 1.2rem;
    }
    
    .price-highlight p {
        font-size: 1rem;
    }

    .more-button {
        min-width: 140px;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .preview-scroll-container .preview-item {
        flex: 0 0 120px;
        width: 120px;
    }

    .preview-scroll-container .preview-item img {
        height: 120px;
    }
}

/* 極小画面対応 */
@media (max-width: 320px) {
    .foogallery.fg-justified .fg-item img {
        height: 80px;
    }

    .preview-scroll-container .preview-item {
        flex: 0 0 100px;
        width: 100px;
    }

    .preview-scroll-container .preview-item img {
        height: 100px;
    }

    .more-button {
        min-width: 120px;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* =================================
   印刷対応
   ================================= */

@media print {
    .preview-grid-pc {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    .preview-scroll-mobile {
        display: none !important;
    }
    
    .more-button {
        display: none !important;
    }
    
    .accordion-content {
        max-height: none !important;
        overflow: visible !important;
        padding: 20px !important;
    }
    
    .foogallery.fg-masonry,
    .foogallery.fg-justified {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    
    .fg-item img,
    .preview-item img {
        height: 150px !important;
    }
}

/* =================================
   アクセシビリティ対応
   ================================= */

/* フォーカス表示 */
.more-button:focus,
.preview-item:focus,
.fg-item:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* キーボードナビゲーション */
.more-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* 高コントラストモード対応 */
@media (prefers-contrast: high) {
    .accordion-item {
        border: 2px solid #000;
    }
    
    .more-button {
        background: #000 !important;
        color: #fff !important;
        border: 2px solid #fff;
    }
    
    .preview-item,
    .fg-item {
        border: 1px solid #000;
    }
}

/* モーション設定の尊重 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .accordion-content {
        transition: none;
    }
    
    .preview-item,
    .fg-item {
        animation: none !important;
    }
    
    .lightbox-content {
        animation: none !important;
    }
}