@charset "UTF-8";

/* ==================================================
   Explore Page Layout & Theme
   ================================================== */

.explore-page-body {
    background-color: var(--color-black);
    color: var(--color-white);
    padding-top: var(--header-height);
}

.explore-main-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-bottom: 80px;
    z-index: 10;
}

.explore-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 24px 0;
    z-index: 20;
}

/* ==================================================
   Explore Hero
   ================================================== */
.explore-hero {
    text-align: center;
    margin-bottom: 48px;
}

.explore-main-copy {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--color-white);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.explore-sub-copy {
    font-family: var(--font-jp);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-300);
    line-height: 1.8;
}

/* ==================================================
   Search & Filter
   ================================================== */
.search-area {
    margin-bottom: 60px;
    text-align: center;
    width: 100%;
}

.search-box {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 600px;
    margin-bottom: 24px;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: var(--color-gray-500);
}

.search-input:focus {
    border-color: var(--color-neon);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--color-neon);
    cursor: pointer;
    padding: 8px 16px;
    transition: color 0.3s;
}

.search-btn:hover {
    color: var(--color-white);
}

/* Genre Filters */
.genre-filter-area {
    margin: 0 auto;
    text-align: center;
}

.genre-label {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-gray-500);
    margin-bottom: 12px;
    letter-spacing: 0.1em;
}

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

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

.genre-name {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-gray-300);
    background: transparent;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
}

.genre-tag:hover .genre-name {
    border-color: var(--color-white);
    color: var(--color-white);
}

.genre-tag input[type="checkbox"]:checked + .genre-name {
    background: var(--color-neon);
    color: var(--color-white);
    border-color: var(--color-neon);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
}

.filter-reset-btn {
    margin-top: 20px;
    background: none;
    border: none;
    text-decoration: underline;
    font-size: 0.75rem;
    color: var(--color-gray-500);
    cursor: pointer;
}

/* ==================================================
   Profile Grid
   ================================================== */
.profile-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
}

.profile-card {
    display: flex;
    flex-direction: column;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUpCard 0.6s ease-out forwards;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-neon);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

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

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

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

.role-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-white);
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.profile-info {
    padding: 12px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-name {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-white);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-loc {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    color: var(--color-gray-500);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-bottom-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

.mini-qr, .service-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: none;
    opacity: 1;
}

/* ==================================================
   Footer (In-content)
   ================================================== */
.explore-footer {
    text-align: center;
    font-family: var(--font-sans);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    font-size: 1.5rem;
    margin-top: 80px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==================================================
   ARTIST MODAL (Pro Version - Gradient Blend)
   ================================================== */
.qr-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Modal Content Box */
.qr-modal-content.art-layout {
    position: relative;
    width: 88%;
    max-width: 420px;
    height: 80vh;
    max-height: 700px;
    /* 背景を黒に */
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Close Button */
.qr-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    border: none;
    z-index: 50;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.2s;
}

.qr-modal-close:hover {
    background: rgba(0,0,0,0.6);
}

.qr-modal-close::before, .qr-modal-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background-color: #fff;
    border-radius: 1px;
}
.qr-modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.qr-modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* --- 写真エリア (上部に配置) --- */
.art-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%; /* 画面の上部60%を写真にする */
    z-index: 1;
    background: #000;
}

.art-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* 写真の下側を黒に溶け込ませるグラデーション */
.art-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%; /* 写真の下半分にかけてグラデーション */
    background: linear-gradient(to bottom, transparent, #000);
    pointer-events: none;
}

/* --- コンテンツエリア (下部に配置) --- */
.art-overlay {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* 下詰め */
    align-items: center;
    padding: 32px 24px;
    background: transparent; /* 背景は黒になっているので透明でOK */
    text-align: center;
}

/* Header Info */
.art-header {
    width: 100%;
    margin-bottom: 24px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.art-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
}

.art-title {
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 900;
    color: var(--color-white);
    text-transform: uppercase;
    line-height: 1;
}

.art-role-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--color-neon);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    transform: translateY(-2px);
}

.art-meta {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-300);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* QR Section */
.art-qr-section {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 24px 0;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(8px);
}

.art-qr-section img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    filter: invert(1); /* 白く反転 */
    opacity: 0.9;
}

.qr-caption {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--color-gray-500);
    letter-spacing: 0.1em;
}

/* Social Button */
.art-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px;
    background: rgba(255,255,255,0.08);
    border-radius: 9999px;
    color: var(--color-white);
    text-decoration: none;
    transition: background 0.3s;
}

.art-social:hover {
    background: rgba(255,255,255,0.15);
}

.art-social img {
    width: 20px;
    height: 20px;
    filter: none; /* アイコン色はそのまま */
}

.social-id {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
}

/* ==================================================
   Responsive (PC)
   ================================================== */
@media (min-width: 768px) {
    .explore-container { max-width: 1000px; padding: 40px 48px 0; }
    .profile-list { gap: 24px; }
    .profile-info { padding: 16px; }
    
    /* PCでもスマホライクな縦長モーダルを維持 */
    .qr-modal-content.art-layout {
        width: 480px;
        height: 85vh;
    }
}

@media (max-width: 430px) {
    .explore-main-copy { font-size: 2rem; }
    .profile-list { gap: 8px; }
    .qr-modal-content.art-layout { width: 92%; height: 85vh; }
    .art-title { font-size: 1.75rem; }
}
