/*
 * Plugin: maa-kiji-bk-format.css
 */


/*
 * maa-kiji-format1-
 */
.maa-kiji-format1-post-thumbnail {
  width: 60%;      /* 横幅を親要素いっぱいに広げる */
  height: auto;       /* 高さは横幅に合わせて自動調整（画像の比率を保つ） */
  display: block;     /* 画像下の余分な余白をなくす */
  margin: 0 auto 1.5em; /* 中央揃えにし、画像の下に余白を設ける */
}

.maa-kiji-format1-video-post-card {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Hiragino Sans', 'Noto Sans CJK JP', 'Yu Gothic', Meiryo, sans-serif;
    background-color: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px !important;
    overflow: hidden;
    transition: box-shadow .3s ease;
    display: flex;
    flex-direction: column;
}
.maa-kiji-format1-video-post-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, .15);
}
.maa-kiji-format1-card-header {
    display: flex;
    align-items: center;
}
.maa-kiji-format1-thumbnail-wrapper {
    flex: 3 1 0%;
    aspect-ratio: 4 / 3;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
}
.maa-kiji-format1-video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}
.maa-kiji-format1-title-wrapper {
    flex: 7 1 0%;
    padding: 20px;
    min-width: 0;
}
.maa-kiji-format1-video-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a !important;
    line-height: 1.4;
    margin: 0;
}
.maa-kiji-format1-video-body {
    padding: 15px 25px 25px 25px;
    border-top: 1px solid #f0f0f0;
    color: #333333 !important;/* 親要素の文字色を指定 */
}
.maa-kiji-format1-actor-name {
    font-size: 16px;
    color: #555 !important;
    margin-bottom: 20px;
    font-weight: 500;
}

.maa-kiji-format1-actor-name::before {
    content: '出演: ';
    font-weight: normal;
    color: #888 !important;
}

.maa-kiji-format1-video-description {
    font-size: 15px;
    color: #333333 !important; /* 文字色を濃い灰色に設定 */
    line-height: 1.7;
    background-color: #ffffff !important;/* 背景色 */
}

.maa-kiji-format1-video-description p {
  color: #333333 !important;
}

.maa-kiji-format1-watch-button {
    display: block;
    background: linear-gradient(45deg, #FF6B6B, #FF8E53) !important;
    color: #ffffff !important;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    transition: transform .2s ease, box-shadow .3s ease;
    box-sizing: border-box;
    /* --- 変更箇所 --- */
    width: fit-content;      /* 幅をコンテンツに合わせる */
    margin: 25px auto 0;     /* 上25px, 左右autoで中央寄せ */
}
.maa-kiji-format1-watch-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, .5);
}

/* Responsive styles for mobile */
@media (max-width: 480px) {
    .maa-kiji-format1-video-title {
        font-size: 18px;
    }
    .maa-kiji-format1-thumbnail-wrapper,
    .maa-kiji-format1-title-wrapper {
        padding: 10px;
    }
    .maa-kiji-format1-video-body {
        padding: 15px;
    }
    /* スマホではボタンの幅を100%に戻してタップしやすくする（任意） */
    .maa-kiji-format1-watch-button {
        width: 100%;
    }
}




/*
 * maa-kiji-format2-
 */
.maa-kiji-format2-container {
    font-family: sans-serif;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.maa-kiji-format2-header {
    text-align: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
    position: relative;
    padding-top: 20px; /* 修正: 適切な余白を確保 */
}

.maa-kiji-format2-header-button-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 15px; /* 修正: タイトルとの間隔 */
    position: static; /* 修正: 絶対配置を解除して重なりを防止 */
}

.maa-kiji-format2-title {
    font-size: 1.8em;
    color: #333 !important;
    margin: 0;
}

.maa-kiji-format2-thumbnail-wrapper {
    text-align: center;
    margin-bottom: 20px;
}

.maa-kiji-format2-thumbnail {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.maa-kiji-format2-details {
    line-height: 1.6;
    color: #555 !important;
}

.maa-kiji-format2-description {
    margin-bottom: 20px;
    color: #333 !important;
}

.maa-kiji-format2-description p {
    color: #333 !important;
}

.maa-kiji-format2-meta-info {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.maa-kiji-format2-meta-container {
    display: flex;
    flex-direction: column;
}

.maa-kiji-format2-meta-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.maa-kiji-format2-meta-label {
    font-weight: bold;
    color: #333 !important;
    width: 100px;
    flex-shrink: 0;
}

/* パッケージ画像がある場合はラベルを非表示 */
.maa-kiji-format2-meta-item:has(.maa-kiji-format2-package-img) > .maa-kiji-format2-meta-label {
    display: none;
}

.maa-kiji-format2-meta-value {
    flex-grow: 1;
}

.maa-kiji-format2-meta-value ul {
    margin: 0;
    padding-left: 20px;
}

.maa-kiji-format2-package-img {
    max-width: 150px;
    height: auto;
    border-radius: 4px;
}

.maa-kiji-format2-button-wrapper {
    margin-top: 0;
}

.maa-kiji-format2-button {
    display: inline-block;
    padding: 12px 24px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.maa-kiji-format2-button:hover {
    background-color: #0056b3;
}




/*
 * maa-kiji-format3-
 */
.maa-kiji-format3 {
    border: 1px solid #ccc;
    padding: 16px;
    margin-bottom: 24px;
    background-color: #f9f9f9;
}


.maa-kiji-format3-setsumei {
    margin-top: 12px;
}

.maa-kiji-format3-janru {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

.maa-kiji-format3-janru li {
    background-color: #eee;
    padding: 4px 8px;
    border-radius: 4px;
}

.maa-kiji-format3-package-img img {
    max-width: 100%;
    height: auto;
    margin-top: 12px;
}

.maa-kiji-format3-package-title {
    margin-top: 12px;
    font-size: 1.2em;
    font-weight: bold;
}

.maa-kiji-format3-info {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}


.maa-kiji-format3-video {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.maa-kiji-format3-video img {
    display: block;
    width: 100%;
    height: auto;
}

.maa-kiji-format3-video-link {
    position: relative;
    display: block;
    text-decoration: none;
}

.maa-kiji-format3-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    margin-left: -30px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    z-index: 2;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.maa-kiji-format3-play-button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-left: 18px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
}

.maa-kiji-format3-play-button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}




/*
 * theme-mkf5-
 */
/* =========================================================================
 * 共通設定 (Common Settings)
 * ========================================================================= */
.theme-mkf5-container {
    /* 記事全体を囲むコンテナ。必要に応じて追加してください。 */
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* =========================================================================
 * タイトル (Title)
 * ========================================================================= */
.theme-mkf5-package-title {
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50; /* ダークブルー */
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    border-bottom: 3px solid #f39c12; /* オレンジのアクセントライン */
    padding-bottom: 10px;
}

/* =========================================================================
 * 画像 (Images)
 * ========================================================================= */
.theme-mkf5-thumbnail-image,
.theme-mkf5-package-image {
    display: block; /* ブロック要素にして、マージンを調整しやすくする */
    max-width: 100%; /* 親要素の幅に合わせて画像を縮小 */
    height: auto; /* 縦横比を維持 */
    margin: 30px auto; /* 上下に30px、左右中央に配置 */
    border: 5px solid #ecf0f1; /* ライトグレーの枠線 */
    border-radius: 10px; /* 角を少し丸くする */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* ほんのりとした影 */
}

/* =========================================================================
 * 動画ボタン (Video Button)
 * ========================================================================= */

/* モダンな動画ボタン */
.theme-mkf5-video-button {
    display: inline-block;
    padding: 18px 40px; /* パディングを増やしてボタンを大きくする */
    font-size: 20px; /* フォントサイズを大きくする */
    font-weight: bold;
    color: #ffffff;
    background-color: #2980b9; /* 落ち着いた青色 */
    border: none;
    border-radius: 50px; /* 完全に丸いボタン */
    text-decoration: none;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* 影を強くして立体感を出す */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* ホバー時のアニメーションを滑らかに */
    display: block; /* 新しく追加 */
    margin: 30px auto; /* 新しく追加 */
}

/* ホバー時の効果 */
.theme-mkf5-video-button:hover {
    background-color: #3498db; /* 少し明るい青色 */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-3px); /* ボタンを少し浮き上がらせる */
}

/* クリック時の効果 */
.theme-mkf5-video-button:active {
    transform: translateY(1px); /* ボタンを押し込んだように見せる */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ボタンアイコン（任意） */
.theme-mkf5-video-button::before {
    content: '▶︎'; /* 再生アイコン */
    display: inline-block;
    margin-right: 10px;
    font-size: 1.2em;
    vertical-align: middle;
}