@charset "utf-8";

/*
##########################################################################
  キャストカード共通CSS
  /item, /schedule, home など cast一覧で使用
##########################################################################*/

/* ==========================================================================
   グリッド（item一覧ページ）
   ========================================================================== */

.item-card-grid {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 768px) {
    .item-card-grid {
        gap: 0.85rem;
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1280px) {
    .item-card-grid {
        gap: 1.5rem;
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ==========================================================================
   カード（item-card / cast-card 共通ネオンダークテーマ）
   ========================================================================== */

.item-card {
    display: block;
    background: rgba(18, 8, 32, 0.90);
    border-radius: 6px;
    border: 1px solid rgba(255, 0, 180, 0.22);
    overflow: hidden;
    text-decoration: none;
    color: #fce8f4;
    transition: box-shadow 0.2s, border-color 0.2s;
    text-align: center;
}

.item-card:hover {
    border-color: rgba(255, 0, 180, 0.55);
    box-shadow: 0 4px 24px rgba(255, 0, 180, 0.18), 0 0 0 1px rgba(255,0,180,0.10);
    color: #fce8f4;
    text-decoration: none;
}

/* 画像 */
.item-card-img {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0e0e12;
}

.item-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
    display: block;
}

.item-card:hover .item-card-img img {
    transform: scale(1.04);
}

/* 本体 */
.item-card-body {
    padding: 0.3rem 0.4rem 0.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .item-card-body {
        padding: 0.9rem 0.6rem 1rem;
    }
}

@media (min-width: 1280px) {
    .item-card-body {
        padding: 0.9rem 1rem 1rem;
    }
}

/* 名前行 */
.item-card-name-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.3rem;
    color: #fce8f4;
}

.item-card-name {
    font-size: 0.8rem;
    font-weight: 700;
    margin: 0;
    color: #fce8f4;
}

.item-card-age {
    font-size: 0.72rem;
    color: rgb(255, 255, 255);
    padding: 0.15rem 0.0rem;
    border-radius: 4px;
    white-space: nowrap;
}

/* サイズ（身長・スリーサイズ） */
.item-card-sizes {
    margin: 0.15rem 0 0;
    font-size: 0.74rem;
    color: rgb(255, 255, 255);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

@media (min-width: 768px) {
    .item-card-name  { font-size: 1rem; }
    .item-card-age   { font-size: 0.82rem; }
    .item-card-sizes { font-size: 0.7rem; }
}

/* カテゴリ */
.item-card-category {
    margin-bottom: 0.5rem;
}

.item-card-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 9999px;
}

/* プロフィールリンク */
.item-card-link {
    margin-top: 0.7rem;
    padding: 0.1rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: rgba(252, 195, 228, 0.60);
    text-align: center;
    border-radius: 15px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.item-card-link:hover {
    color: #fc88d3;
    text-decoration: none;
}

/* ==========================================================================
   アイコンタグ（item / schedule / top_schedule 共通）
   ========================================================================== */
.item-card-icons,
.cast-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0.5rem;
}

.item-icon-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 0, 180, 0.12);
    border: 1px solid rgba(255, 0, 180, 0.35);
    color: #ff9ad9;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.item-icon-img {
    display: block;
    height: 16px;
    width: auto;
    max-width: 48px;
    object-fit: contain;
}

/* ==========================================================================
   空状態
   ========================================================================== */

.item-card-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: rgba(252, 195, 228, 0.50);
}

.item-card-empty i {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
}

.item-card-empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(252, 195, 228, 0.70);
    margin-bottom: 0.4rem;
}

.item-card-empty-sub {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.item-card-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, #cc0099, #ff00b4);
    color: #fff;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.item-card-empty-btn:hover {
    opacity: 0.85;
    color: #fff;
    text-decoration: none;
}

/* ==========================================================================
   検索結果カウント
   ========================================================================== */

.item-card-search-count {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: rgba(252, 195, 228, 0.55);
}

.item-card-search-count strong {
    color: #fce8f4;
    font-weight: 700;
}

/* ==========================================================================
   バッジアイコン（FC・マイオプション・マイコスチューム）
   ========================================================================== */

.item-card-badges {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

/* scheduleページではleft揃え */
.cast-info .item-card-badges {
    justify-content: flex-start;
}

.item-card-badge {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    font-size: 0.62rem;
}

.item-card-badge--fc  { background: rgba(255,0,180,0.18); color: #f472b6; }
.item-card-badge--opt { background: rgba(234,179,8,0.20); color: #fbbf24; }
.item-card-badge--cos { background: rgba(99,102,241,0.20); color: #818cf8; }

/* ==========================================================================
   カードグリッド（スケジュール・ホーム用フレックス）
   ========================================================================== */

.cast-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .cast-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

/* ==========================================================================
   キャストカード（スケジュール・ホーム共通）
   ========================================================================== */

.cast-card {
    width: 180px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: rgba(18, 8, 32, 0.90);
    border: 1px solid rgba(255, 0, 180, 0.22);
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
    text-align: center;
    color: #fce8f4;
}

.cast-card:hover {
    border-color: rgba(255, 0, 180, 0.55);
    box-shadow: 0 4px 24px rgba(255, 0, 180, 0.18), 0 0 0 1px rgba(255,0,180,0.10);
}

@media (max-width: 640px) {
    .cast-card {
        width: 100%;
    }
}

/* 画像（3:4縦長） */
.cast-image {
    width: 100%;
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0e0e12;
    flex-shrink: 0;
}

.cast-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.cast-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    border: none;
    display: block;
    transition: transform 0.35s ease;
}

.cast-card:hover .cast-image img {
    transform: scale(1.04);
}

/* カード本体（画像下） */
.cast-body {
    padding: 0.4rem 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.cast-name {
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.cast-name a          { color: #fce8f4; text-decoration: none; }
.cast-name a:hover    { color: #fc88d3; }
.cast-age             { color: rgba(255, 227, 244, 0.55); font-size: 0.75em; }

.cast-category        { margin-top: 0.15rem; }

.cast-status          { margin-top: 0.1rem; }

/* ==========================================================================
   ステータスバッジ
   ========================================================================== */

.status-badge {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.03em;
}

.status-badge.request  {
    background: linear-gradient(135deg, #cc0099, #ff00b4);
    box-shadow: 0 0 8px rgba(255,0,180,0.40);
}
.status-badge.tel      {
    background: linear-gradient(135deg, #7700cc, #9900ff);
    box-shadow: 0 0 8px rgba(144,0,255,0.35);
}
.status-badge.closed   { background: rgba(80,20,40,0.90);  border: 1px solid rgba(255,0,80,0.30); }
.status-badge.holiday  { background: rgba(20,40,60,0.90);  border: 1px solid rgba(0,120,200,0.30); }
.status-badge.sold     { background: rgba(70,10,10,0.90);  border: 1px solid rgba(200,0,0,0.30); }
.status-badge.available {
    background: linear-gradient(135deg, #cc0099, #ff00b4);
    box-shadow: 0 0 8px rgba(255,0,180,0.35);
}

/* ==========================================================================
   キャストカードフッター（勤務時間）
   ========================================================================== */

.cast-footer {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.35rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(255, 0, 180, 0.18);
}

.work-time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    background: rgba(255, 0, 180, 0.06);
    border: 1px solid rgba(255, 0, 180, 0.22);
    border-radius: 4px;
    padding: 3px 8px;
}

.work-time-icon { color: #ff00b4; font-size: 0.72rem; }
.work-time-text {
    display: inline-block;
    background: transparent;
    color: #ff55cc;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.cast-btns {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   カテゴリフィルター（/items・/schedule 共通）
   ========================================================================== */

.cat-filter {
    padding: 10px 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 0, 180, 0.15);
}

.cat-filter-list {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.cat-filter-list::-webkit-scrollbar {
    display: none;
}

.cat-filter-item {
    flex: 0 0 auto;
}

.cat-filter-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
    color: rgba(252, 195, 228, 0.75);
}

.cat-filter-link:hover {
    background: rgba(255, 0, 180, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: #fce8f4;
}

.cat-filter-link.is-active {
    background: rgba(255, 0, 180, 0.18);
}

.cat-filter-link.is-active .cat-filter-name {
    color: #fc88d3;
    font-weight: 700;
}

.cat-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    font-size: 1rem;
}

.cat-filter-icon--all {
    background: rgba(255, 0, 180, 0.25);
}

.cat-filter-link.is-active .cat-filter-icon--all {
    background: rgba(255, 0, 180, 0.50);
}

.cat-filter-name {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(252, 195, 228, 0.70);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .cat-filter-icon {
        width: 34px;
        height: 34px;
        font-size: 0.875rem;
    }

    .cat-filter-name {
        font-size: 0.62rem;
    }
}
