@charset "utf-8";
/* 日付タブバー */
.avail-date-bar {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.avail-date-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 10px;
    border: 2px solid #bbb;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    color: #444;
    text-decoration: none;
    background: #fff;
    line-height: 1.3;
    min-width: 58px;
    text-align: center;
}
.avail-date-tab .adtab-date { font-size: 14px; font-weight: bold; }
.avail-date-tab .adtab-cnt { font-size: 10px; font-weight: normal; color: #333; margin-top: 2px; }
.avail-date-tab.active { border-color: #931d1d; color: #931d1d; }
.avail-date-tab.active .adtab-cnt { color: #931d1d; }
/* 土日: 背景は通常色のまま、日付と人数のテキスト色だけ変更 */
.avail-date-tab.sat .adtab-date,
.avail-date-tab.sat .adtab-cnt { color: #0288d1; }
.avail-date-tab.sun .adtab-date,
.avail-date-tab.sun .adtab-cnt { color: #e91e63; }
.avail-sort-select {
    margin-left: auto;
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    appearance: auto;
}

/* キャストカード */
.ac-card {
    border: 1px solid #ddd;
    margin-bottom: 20px;
    background: #fff;
    overflow: hidden;
}
.ac-card-inner { display: flex; flex-wrap: wrap; }
.ac-card-inner > .ac-slots-section { width: 100%; }

/* 写真エリア */
.ac-photo-wrap {
    flex-shrink: 0;
    width: 150px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.ac-photo-wrap a { display: block; overflow: hidden; flex: none; }
.ac-photo-wrap img {
    width: 150px;
    height: 220px;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.ac-photo-wrap .pattern {
    position: absolute;
    top: 0;
    left: 0;
}
.ac-time-bar {
    background: rgba(0,0,0,0.78);
    color: #fff;
    font-size: 11px;
    padding: 6px 8px;
    text-align: center;
    line-height: 1.4;
}
.ac-time-bar span { display: block; font-size: 13px; font-weight: bold; letter-spacing: 0.5px; }

/* 右側3カラム */
.ac-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ac-cols { display: flex; flex: 1; border-bottom: 1px solid #e0e0e0; }

/* カラム1：名前/タイプ */
.ac-col-profile {
    width: 190px;
    flex-shrink: 0;
    border-right: 1px solid #e0e0e0;
}
/* カラム2：プロフィール詳細 */
.ac-col-detail {
    flex: 1;
    min-width: 0;
    border-right: 1px solid #e0e0e0;
    padding: 0;
}
/* カラム3：可能オプション */
.ac-col-options {
    width: 145px;
    flex-shrink: 0;
}

/* セクション見出し */
.ac-section-head {
    background: #e8e8e8;
    font-size: 11px;
    font-weight: bold;
    color: #444;
    padding: 4px 10px;
    border-bottom: 1px solid #d0d0d0;
}

.ac-name {
    color: #c0392b;
    font-size: 16px;
    font-weight: bold;
    padding: 8px 10px 2px;
    margin: 0;
}
.ac-name span { font-size: 13px; font-weight: normal; color: #666; }
.ac-size { font-size: 11px; color: #555; padding: 2px 10px 4px; margin: 0; }
.ac-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background: #D6428B;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 10px;
    margin: 0 10px 8px;
    border-radius: 10px;
}

/* タイプチェック (companion.html同様の画像方式) */
.ac-type-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 8px 8px;
}
.ac-type-icons img { height: 40px; width: auto; }

/* プロフィール詳細 DL */
.ac-detail-dl {
    margin: 0;
    padding: 8px 12px;
    font-size: 12px;
}
.ac-detail-dl dt {
    color: #444;
    font-weight: bold;
    margin: 6px 0 1px;
}
.ac-detail-dl dt:first-child { margin-top: 0; }
.ac-detail-dl dd {
    color: #333;
    margin: 0 0 0 0;
    word-break: break-all;
    line-height: 1.5;
}

/* 可能オプション (companion.html同様のGIF方式) */
.ac-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    padding: 6px;
}
.ac-option-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 30px;
}
.ac-option-item img { width: 30px; height: 30px; object-fit: contain; }
.ac-option-item span { display: none; }
.ac-option-item.off img { opacity: 0.25; filter: grayscale(1); }
.ac-option-item.off span { color: #bbb; }

/* =========== SPレイアウト =========== */
/* SP用シンプル情報（SPのみ表示） */
.ac-sp-info { display: none; }

/* SP・タブレット共通レイアウト (〜893px) */
@media (max-width: 893px) {
    /* PC用3カラム・スロットを非表示 */
    .ac-cols { display: none; }
    .ac-card-inner > .ac-slots-section { display: none; }
    /* SP用情報を表示 */
    .ac-sp-info { display: flex; gap: 10px; padding: 10px; border-bottom: 1px solid #eee; }

    .ac-sp-photo { flex-shrink: 0; width: 100px; position: relative; }
    .ac-sp-photo img { width: 100px; object-fit: cover; object-position: top center; display: block; border-radius: 2px; }
    .ac-sp-photo .pattern {
        position: absolute;
        top: 0;
        left: 0;
    }
    .ac-sp-badge {
        position: absolute; bottom: 0; left: 0; right: 0;
        background: #D6428B; color: #fff; font-size: 10px;
        text-align: center; padding: 3px 0;
    }
    .ac-sp-detail { flex: 1; min-width: 0; }
    .ac-sp-name {
        color: #c0392b; font-size: 15px; font-weight: bold;
        margin: 0 0 5px; line-height: 1.3;
    }
    .ac-sp-name span { font-size: 12px; font-weight: normal; color: #666; }
    .ac-sp-list { font-size: 11px; color: #333; line-height: 2; margin: 0; }
    .ac-sp-list span.lbl { color: #555; }

    /* 写真エリア非表示（SP用に差し替え） */
    .ac-photo-wrap { display: none; }
    .ac-card-inner { flex-direction: column; }

    /* スロットテーブル */
    .ac-slots-section { padding: 8px 10px 10px; }
    .ac-slots-table td { }
    .ac-slots-hour { font-size: 11px; }
    .ac-heart { font-size: 17px; }

    /* SP用時間表示 */
    .ac-sp-time-label {
        color: #c0392b;
        font-size: 12px;
        font-weight: bold;
        margin: 0 0 4px;
    }
}
