@charset "UTF-8";

/* ==================================================
   Dig Page Specific Styles (画像差し替え版)
   ================================================== */

/* --- 1. ページ全体 --- */
.dig-page {
    background-color: #ffffff; 
    overflow-x: hidden;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* --- 2. ロゴ --- */
.dig-logo {
    position: absolute;
    top: 120px;
    left: 30px;
    margin: 0;
    width: 500px;
    max-width: 80%;
    z-index: 10;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 3. メインコンテンツ --- */
.dig-content {
    padding-top: 400px; 
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: 100px;
    padding-left: 20px;
    padding-right: 20px;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 4. 検索バー & フィルター --- */
.search-area {
    margin-bottom: 60px;
    text-align: center;
    width: 100%;
}

.search-box {
    display: inline-flex;
    width: 100%;
    max-width: 600px;
    height: 50px;
    border: 2px solid #000;
    background: #fff;
    box-sizing: border-box;
}

.search-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 0 15px;
    font-size: 1rem;
    color: #000;
    outline: none;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.search-input::placeholder {
    color: #aaa;
    letter-spacing: 1px;
}

.search-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 0 25px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 1px;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #333;
}

/* --- ジャンルフィルター --- */
.genre-filter-area {
    max-width: 800px;
    margin: 20px auto 0;
    text-align: center;
}

.genre-label {
    font-size: 0.7rem; 
    font-weight: bold;
    color: #999;
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.genre-checkboxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px; 
}

.genre-tag {
    cursor: pointer;
    user-select: none;
}

.genre-tag input[type="checkbox"] {
    display: none;
}

.genre-name {
    display: inline-block;
    padding: 4px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    color: #666;
    background: #fff;
    transition: all 0.2s;
    text-transform: uppercase;
}

.genre-tag:hover .genre-name {
    border-color: #000;
    color: #000;
}

.genre-tag input[type="checkbox"]:checked + .genre-name {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* DJ MIXタグ用スタイル */
.genre-tag.special-tag .genre-name {
    border: 2px solid #000; 
    font-size: 0.85rem;     
    padding: 5px 15px;      
    color: #000;            
}

.genre-tag.special-tag input[type="checkbox"]:checked + .genre-name {
    background: #000;
    color: #fff;
    border-color: #000;
}

.filter-reset-btn {
    margin-top: 15px;
    background: none;
    border: none;
    text-decoration: underline;
    font-size: 0.8rem;
    color: #888;
    cursor: pointer;
}

/* --- 5. プロフィールカード --- */
.profile-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; 
    width: 100%;
}

.profile-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    
    opacity: 0; 
    animation: fadeInUpCard 0.6s ease-out forwards;
    
    position: relative; 
    height: 100%;
}

@keyframes fadeInUpCard {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.profile-img {
    width: 100%;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    background: #f0f0f0;
    position: relative; 
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.profile-card:hover .profile-img img {
    transform: scale(1.05);
}

.role-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #000;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 3px 6px;
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    z-index: 2;
}

.profile-info {
    padding: 15px;
    text-align: left;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
}

.profile-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #000;
    line-height: 1.2;
}

.profile-loc {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
    font-weight: normal;
}

.profile-genre-text {
    font-size: 0.75rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-bottom-row {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px dashed #eee;
    padding-top: 10px;
    margin-top: auto; 
}

.mini-qr-wrapper, .service-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-qr {
    width: 30px;
    height: 30px;
    mix-blend-mode: multiply;
}

.service-icon {
    width: 24px; 
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s;
}


/* ==================================================
   ★現代アート風モーダル (Art Layout - Clean)
   ================================================== */

.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.qr-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.qr-modal-content.art-layout {
    display: flex;
    width: 900px;
    max-width: 90%;
    height: 500px;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative;
    padding: 0;
    box-sizing: border-box;
    text-align: left;
    
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.qr-modal-overlay.active .qr-modal-content.art-layout {
    transform: scale(1);
}

/* --- 閉じるボタンの修正 --- */
.qr-modal-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    
    /* 背景を透明に */
    background: transparent; 
    
    border: none;
    cursor: pointer;
    z-index: 100;
    transition: transform 0.3s;
}

/* ホバー時にくるっと回す */
.qr-modal-close:hover {
    background: transparent;
    transform: rotate(90deg);
}

/* ★修正: 線を共通設定（PCでは黒） */
.qr-modal-close::before,
.qr-modal-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px; 
    height: 2px;
    background-color: #000; 
}

/* ★修正: ここで回転させて「×」の形にします */
.qr-modal-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.qr-modal-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}


.close-line { display: none; }

.art-image-section {
    flex: 0 0 40%;
    position: relative;
    background: #000;
    height: 100%;
}

.art-image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.95;
}

.art-role-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #fff;
    color: #000;
    font-size: 0.75rem;
    font-weight: 900;
    padding: 6px 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
}

.art-info-section {
    flex: 1;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-sizing: border-box; 
}

.art-name {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 0.9;
    margin: 0 0 20px 0;
    text-transform: uppercase;
    letter-spacing: -2px;
    color: #000;
}

.art-meta-row {
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.art-slash {
    color: #ccc;
    font-weight: 300;
}

.art-location, .art-genre {
    text-transform: uppercase;
    letter-spacing: 1px;
}
.art-genre {
    color: #666;
}

.art-insta-link {
    text-decoration: none;
    font-size: 1rem;
    color: #000;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s;
    font-weight: bold;
}
.art-insta-link:hover {
    border-bottom: 1px solid #000;
}

/* ★修正: テキストの代わりに画像を表示するためのスタイル */
.insta-icon {
    width: 18px; 
    height: 18px;
    object-fit: contain;
    margin-right: 5px;
}

.insta-suffix {
    color: #ccc; 
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-left: 10px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-transform: none; 
}

.art-info-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.art-qr-container img {
    width: 100px;
    height: 100px;
    mix-blend-mode: multiply;
}

.art-scan-text {
    font-size: 0.8rem;
    font-weight: 900;
    color: #ccc;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin: 0;
}

/* --- モーダルのレスポンシブ (スマホ対応) --- */
@media (max-width: 768px) {
    .dig-logo {
        width: 300px;
        top: 80px;
    }
    .dig-content {
        padding-top: 300px;
    }
    .profile-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .profile-info { padding: 10px; }
    .profile-name { font-size: 0.8rem; }
    .profile-loc { font-size: 0.6rem; }
    .profile-genre-text { display: none; }
    .profile-bottom-row { justify-content: center; gap: 10px; }
    .mini-qr { width: 20px; height: 20px; }
    .service-icon { width: 18px; height: 18px; }
    .profile-card .role-badge { 
        font-size: 0.5rem; 
        padding: 2px 4px; 
    }

    .qr-modal-content.art-layout {
        flex-direction: column;
        height: auto;
        max-height: 85vh;
        overflow-y: auto;
        width: 85%;
    }

    .art-image-section {
        height: 250px;
        flex: none;
    }

    .art-info-section {
        padding: 30px;
        flex: none;
        gap: 20px;
    }

    .art-name {
        font-size: 2.2rem;
    }
    
    .art-info-footer {
        flex-direction: row-reverse;
        justify-content: space-between;
        align-items: center;
    }
    
    .art-scan-text {
        writing-mode: horizontal-tb;
        transform: none;
    }

    /* ★修正: スマホではボタンの色を灰色にする（黒背景で見えるように） */
    .qr-modal-close::before,
    .qr-modal-close::after {
        background-color: #ccc; 
    }
}
