/* ----------------------------------------
   キャスト一覧グリッド
---------------------------------------- */
.fujoho-cast-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* カード */
.fujoho-cast-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

/* 写真 */
.fujoho-cast-image-wrap {
    position: relative;
    display: block;
}

.fujoho-cast-image-wrap img {
    width: 100%;
    display: block;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* グラデーションオーバーレイ（上が透明 → 下が黒） */
.fujoho-cast-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.75) 45%,
            rgba(0, 0, 0, 0.95) 100%);
    padding: 48px 10px 12px;
    color: #fff;
}

/* キャスト名（白・時間の上） */
.fujoho-cast-name {
    color: #fff;
    font-weight: bold;
    font-size: 1em;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* 出勤時間（赤・時計アイコン） */
.fujoho-cast-time {
    color: #38D39F;
    font-weight: bold;
    font-size: 0.9em;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 年齢 */
.fujoho-cast-age {
    font-weight: bold;
    font-size: 0.95em;
    margin-bottom: 3px;
}

/* スリーサイズ */
.fujoho-cast-sizes {
    font-size: 0.8em;
    color: #ccc;
}

@media (max-width: 600px) {
    .fujoho-cast-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ----------------------------------------
   キャスト詳細ページ
---------------------------------------- */
.fujoho-detail {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 8px 32px;
    margin-bottom: 50px;
}

/* 左：メイン画像 */
.fujoho-detail__left {
    grid-column: 1;
    grid-row: 1;
}

.fujoho-detail__main-wrap {
    width: 100%;
}

.fujoho-detail__main-img {
    width: 100%;
    display: block;
    border-radius: 4px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

/* 右：プロフィール＋スケジュール */
.fujoho-detail__right {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
}

.fujoho-detail__profile {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.fujoho-detail__name {
    font-size: 1.4em;
    font-weight: bold;
}

.fujoho-detail__age {
    font-size: 0.95em;
    color: #555;
}

.fujoho-detail__sizes {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 24px;
    letter-spacing: 0.03em;
}

.fujoho-detail__schedule-title {
    font-size: 1em;
    font-weight: bold;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #333;
}

.fujoho-detail__schedule {
    width: 100%;
    border-collapse: collapse;
}

.fujoho-detail__schedule th,
.fujoho-detail__schedule td {
    padding: 10px 14px;
    border-bottom: 1px solid #eee;
    font-size: 0.9em;
    text-align: left;
}

.fujoho-detail__schedule th {
    font-weight: normal;
    width: 45%;
}

.fujoho-detail__schedule tr.is-today th {
    color: #1a73e8;
    font-weight: bold;
}

.fujoho-detail__schedule tr.is-weekend th {
    color: #e03c31;
}

/* 左カラム下：サムネイル（メイン画像と同幅で3分割） */
.fujoho-detail__gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 4px;
    width: 100%;
}

.fujoho-detail__gallery-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    border: 2px solid transparent;
    display: block;
    box-sizing: border-box;
}

.fujoho-detail__gallery-img:hover {
    opacity: 1;
}

.fujoho-detail__gallery-img.is-active {
    opacity: 1;
    border-color: #333;
}

@media (max-width: 600px) {
    .fujoho-detail {
        grid-template-columns: 1fr;
    }

    .fujoho-detail__left,
    .fujoho-detail__right {
        grid-column: 1;
    }

    .fujoho-detail__right {
        grid-row: 2;
    }
}