/*
 * Manus Cast Manager Plugin Styles
 * このスタイルは、元のテーマのデザインを再現するために抽出・調整されたものです。
 * 既存のテーマのスタイルと競合する可能性があるため、必要に応じて調整してください。
 */

/* =======================================
    汎用スタイル (元のテーマから継承)
======================================= */
.mcm-table-medium {
    border: 1px solid black;
    margin: 0 auto 20px;
    font-size: 1rem;
    width: 100%; /* ショートコード内で使用するため幅を100%に設定 */
    border-collapse: collapse;
}
.mcm-table-medium tr {
    border-bottom: 1px solid black;
}
.mcm-table-medium tr:last-child {
    border-bottom: none;
}
.mcm-table-medium tr td, .mcm-table-medium tr th {
    padding: 10px;
}
.mcm-table-medium tr th {
    border-right: 1px solid black;
    font-weight: normal;
    text-align: center;
    background-color: #f7f7f7;
    width: 30%; /* プロフィールテーブルの調整 */
}
.mcm-table-medium tr td {
    width: 70%; /* プロフィールテーブルの調整 */
}

/* =======================================
    [cast_profile] ショートコード
======================================= */
.mcm-cast-profile {
    margin-bottom: 30px;
}
.mcm-cast-profile .mcm-profile-header {
    border-bottom: 3px solid black;
    margin-bottom: 20px;
}
.mcm-cast-profile .mcm-cast-name {
    font-size: 2.2rem;
    margin-top: 0;
}
.mcm-cast-profile .mcm-profile-body {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}
.mcm-cast-profile .mcm-profile-image {
    flex: 0 0 300px; /* 画像の固定幅 */
}
.mcm-cast-profile .mcm-profile-image img {
    width: 100%;
    height: auto;
    display: block;
}
.mcm-cast-profile .mcm-profile-details {
    flex-grow: 1;
}
.mcm-cast-profile .mcm-schedule-title {
    font-size: 2rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
}
.mcm-cast-profile .mcm-schedule-table th {
    width: 40%;
}
.mcm-cast-profile .mcm-schedule-table td {
    width: 60%;
}

/* =======================================
    [cast_list] ショートコード
======================================= */
.mcm-cast-list-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* アイテム間のスペース */
}
.mcm-cast-item {
    flex: 1 1 calc(33.333% - 15px); /* 3列表示を基本 */
    box-sizing: border-box;
    background: #000;
}
.mcm-cast-item a {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s;
}
.mcm-cast-item a:hover {
    opacity: 0.8;
}
.mcm-cast-item .mcm-panel-head {
    background: black;
    color: white;
    padding: 8px 5px;
    text-align: center;
}
.mcm-cast-item .mcm-panel-head .mcm-innrTxt {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0;
}
.mcm-cast-item .mcm-panel-body {
    padding: 0;
}
.mcm-cast-item .mcm-img-responsive {
    width: 100%;
    height: auto;
    display: block;
}

/* =======================================
    [schedule_list] ショートコード
======================================= */
.mcm-schedule-list-container {
    margin-bottom: 30px;
}
.mcm-schedule-list-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
}
.mcm-schedule-list-table th {
    background-color: #f1f1f1;
}
.mcm-schedule-list-table a {
    text-decoration: underline;
}

/* =======================================
    メディアクエリ (レスポンシブ対応)
======================================= */
@media screen and (max-width: 768px) {
    .mcm-cast-profile .mcm-profile-body {
        flex-direction: column;
    }
    .mcm-cast-profile .mcm-profile-image {
        flex: none;
        width: 100%;
        max-width: 400px; /* スマホでの画像サイズ調整 */
    }
    .mcm-cast-item {
        flex: 1 1 calc(50% - 15px); /* 2列表示 */
    }
    .mcm-table-medium tr td, .mcm-table-medium tr th {
        padding: 8px;
    }
}

@media screen and (max-width: 480px) {
    .mcm-cast-item {
        flex: 1 1 100%; /* 1列表示 */
    }
    .mcm-table-medium tr th {
        width: 40%;
    }
    .mcm-table-medium tr td {
        width: 60%;
    }
}
