@charset "UTF-8";
/*----------このエリアは削除すると正しく動作しない可能性があります----------

Theme Name:   LION MEDIA Child
Theme URI:    http://fit-jp.com/theme/
Description:  FIT(フィット) が制作するメディア用WordPressTHEME「LION MEDIA」の子テーマ
Author:       Kota Naito　@FIT(フィット)
Author URI:   http://fit-jp.com/about/
Template:     lionmedia
Version:      1.2
License:      GNU GENERAL PUBLIC LICENSE
License URI:  http://www.gnu.org/licenses/gpl.html

----------このエリアは削除すると正しく動作しない可能性があります----------*/


/*/////////////////////////////////////////////////
//下記ユーザーカスタマイズエリア
/////////////////////////////////////////////////*/

.socialList__link.icon-twitter {
    background: #000000 !important;
}
.icon-twitter:before {
    content: "\e998" !important;
}

.socialList__link.icon-twitter:hover::before {
    color: #000000 !important;
}

.content a {
    color: #0055aa !important;
}

.l-footer {
    color: #ffffff !important;
}
.l-footer a:hover {
    color: #35C6FA !important;
}

.tag-cloud-link {
    color: #ffffff !important;
    border-color: #ffffff !important;
}
.tag-cloud-link:hover {
    border-color: #35C6FA !important;
    background: none !important;
}

.widget .tag-cloud-link:hover {
    color: #35C6FA !important;
}

/*リストタグ*/
.content ul li,
.content ol li {
    font-size: 1.6rem;
}

.red {
    color: #E60000;
}

/* ウィジェット内のリストマーカー（疑似要素）を非表示にする */
.widget ul li::before {
    content: none !important;
    /* 疑似要素のコンテンツを非表示にする */
}

/* 念のため、通常のリストスタイルもリセット（再確認のため） */
.widget ul {
    list-style: none !important;
    /* デフォルトのリストマーカーを非表示 */
    padding-left: 0 !important;
    /* 左のパディングをリセット */
    margin-left: 0 !important;
    /* 左のマージンをリセット */
}

.widget ul li {
    list-style: none !important;
    /* li要素のリストマーカーも非表示 */
}

/* 最新記事ウィジェットのリスト項目 */
.custom-recent-posts li {
    list-style: none;
    /* リストの点などを消す場合 */
    margin-bottom: 20px;
    /* 記事ごとの下部余白 */
    text-align: center;
    /* li内のコンテンツ（画像とテキスト）を中央寄せ */
}

/* 画像を囲むラッパー */
.custom-recent-posts .post-thumbnail-wrapper {
    display: block;
    /* ブロック要素として確保 */
    margin: 0 auto 10px auto;
    /* 上下左右中央寄せ、下部に余白 */
    width: fit-content;
    /* 画像の幅に合わせる (optional: 画像が中央に来ない場合は追加) */
    /* text-align: center; この親要素にtext-align:centerがあれば不要 */
}

/* 画像自体へのスタイル */
.custom-recent-posts .post-thumbnail-wrapper img {
    display: block;
    /* 画像をブロック要素として扱う */
    max-width: 100%;
    /* 親要素からはみ出さないように */
    height: auto;
    /* 比率を保つ */
}

/* タイトルを囲むラッパー */
.custom-recent-posts .post-title-wrapper {
    display: block;
    /* ブロック要素として確保 */
    margin-top: 5px;
    /* 画像との間隔 */
    font-weight: bold;
    /* タイトルを太字にするなど */
    /* text-align: center; 親要素のtext-align:centerで適用される */
}

/* リンク全体へのスタイル（必要であれば） */
.custom-recent-posts li a {
    text-decoration: none;
    /* 下線を消す */
    color: inherit;
    /* 親の文字色を継承 */
    display: block;
    /* リンク全体をクリック可能にする */
}

/* --- 人気記事ウィジェットの共通スタイル --- */
.custom-popular-posts-list {
    list-style: none;
    /* リストの点などを消す */
    padding: 0;
    /* デフォルトのパディングを削除 */
    margin: 0;
    /* デフォルトのマージンを削除 */
}

.custom-popular-posts-list li {
    margin-bottom: 20px;
    /* 記事ごとの下部余白 */
    text-align: center;
    /* li内のコンテンツを中央寄せ */
}

.custom-popular-posts-list li a {
    text-decoration: none;
    /* 下線を消す */
    color: inherit;
    /* 親の文字色を継承 */
    display: block;
    /* リンク全体をクリック可能にする */
}

.custom-popular-posts-list .post-item-inner {
    display: flex;
    flex-direction: column;
    /* 要素を縦方向に並べる */
    align-items: center;
    /* 水平方向の中央寄せ */
}

/* 画像を囲むラッパー（順位バッジの基準位置にもなる） */
.custom-popular-posts-list .post-thumbnail-wrapper {
    position: relative;
    /* 順位番号を絶対配置するための基準 */
    display: block;
    /* ブロック要素として確保 */
    margin: 0 auto 10px auto;
    /* 画像の上下左右中央寄せ、下部に余白 */
    width: fit-content;
    /* 画像の幅に合わせる */
}

/* 画像自体へのスタイル */
.custom-popular-posts-list .post-thumbnail-wrapper img {
    display: block;
    /* 画像をブロック要素として扱う */
    max-width: 100%;
    /* 親要素からはみ出さないように */
    height: auto;
    /* 比率を保つ */
}

/* タイトルを囲むラッパー */
.custom-popular-posts-list .post-title-wrapper {
    display: block;
    /* ブロック要素として確保 */
    margin-top: 5px;
    /* 画像との間隔 */
    font-weight: bold;
    /* タイトルを太字にするなど */
}

/* --- 順位番号のデザイン --- */
.custom-popular-posts-list .rank-number {
    position: absolute;
    /* 画像に対して絶対位置で配置 */
    top: -5px;
    /* 画像の左上より少し上に */
    left: -5px;
    /* 画像の左上より少し左に */
    background-color: #333;
    /* デフォルトの背景色 */
    color: #fff;
    /* 文字色 */
    font-weight: bold;
    font-size: 1.2em;
    /* 文字サイズ */
    padding: 5px 8px;
    /* パディング */
    border-radius: 5px;
    /* 角を丸くする */
    min-width: 25px;
    /* 幅を確保（1桁、2桁対応） */
    text-align: center;
    /* 数字を中央に */
    box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    /* 影 */
    z-index: 10;
    /* 画像の上に表示されるように */
}

/* 順位の色付け */
.custom-popular-posts-list li.rank-1 .rank-number {
    background-color: #FFD700;
    /* 1位: ゴールド */
    color: #333;
}

.custom-popular-posts-list li.rank-2 .rank-number {
    background-color: #C0C0C0;
    /* 2位: シルバー */
    color: #333;
}

.custom-popular-posts-list li.rank-3 .rank-number {
    background-color: #CD7F32;
    /* 3位: ブロンズ */
    color: #333;
}

/* 4位以下はデフォルト色、または別の色を指定することも可能 */
/*
.custom-popular-posts-list li.rank-4 .rank-number {
    background-color: #663399;
}
.custom-popular-posts-list li.rank-5 .rank-number {
    background-color: #4682B4;
}
*/


/* コードブロックの基本的なスタイルと背景色 */
pre {
    background-color: #272822;
    /* お好みの背景色に設定 */
    color: #191919 !important;
    /* コードの文字色 */
    padding: 1em 1em 1em 3.5em;
    /* 行番号のための左側の余白を確保 */
    overflow-x: auto;
    /* コードが長い場合に横スクロール */
    position: relative;
    /* 行番号の配置基準 */
    border-radius: 4px;
    /* 角を丸くする */
    font-family: 'Consolas', 'Monaco', 'Andale Mono', 'Ubuntu Mono', monospace;
    /* 等幅フォント */
    font-size: 0.9em;
    line-height: 1.6;
    white-space: pre-wrap;
    /* 自動改行 */
    word-wrap: break-word;
    /* 単語の途中で改行 */
    counter-reset: line-number;
    /* 行番号カウンターをリセット */
}

pre code {
    display: block;
    /* code要素をブロック要素にして行番号と揃える */
}

/* 行番号のスタイル */
pre span.line-number {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3em;
    /* 行番号の幅 */
    padding: 1em 0.5em 1em 0;
    background-color: #3e3d32;
    /* 行番号エリアの背景色 */
    color: #6d756d;
    /* 行番号の文字色 */
    text-align: right;
    border-right: 1px solid #4a4a4a;
    pointer-events: none;
    /* 行番号をクリックできないように */
    user-select: none;
    /* 行番号を選択できないように */
}

pre code .line {
    position: relative;
    padding-left: 0.5em;
    /* コードと行番号の間にスペース */
}

pre code .line::before {
    counter-increment: line-number;
    /* 行ごとにカウンターを増加 */
    content: counter(line-number);
    /* カウンターの値を表示 */
    position: absolute;
    left: -3em;
    /* 行番号の位置調整 */
    width: 3em;
    text-align: right;
    color: #6d756d;
    user-select: none;
}

/* 行番号が不要な場合は、以下のクラスをpreタグに追加 */
pre.no-line-numbers {
    padding-left: 1em;
    /* 行番号の余白をなくす */
}

pre.no-line-numbers code .line::before {
    content: none;
    /* 行番号を非表示 */
}

/* コピーボタンのスタイル */
.copy-code-button {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    background-color: #2d92fa;
    color: #fff;
    border: none;
    padding: 0.3em 0.6em;
    font-size: 0.8em;
    cursor: pointer;
    border-radius: 3px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 10;
    /* コードの上に表示 */
}

.copy-code-button:hover {
    opacity: 1;
}

.copy-code-button:active {
    background-color: rgba(255, 255, 255, 0.4);
}

/*Rinkerのカスタマイズ*/

.yyi-rinker-title {
    font-weight: 700;
}

/*外部リンクマーク非表示*/
div.yyi-rinker-contents div.yyi-rinker-title a span,
div.yyi-rinker-contents div.yyi-rinker-detail a span,
div.yyi-rinker-contents ul.yyi-rinker-links li a span {
    display: none;
}

/*ボタンのデザイン*/
div.yyi-rinker-contents div.yyi-rinker-info {
    width: calc(100% - 220px) !important;
}
div.yyi-rinker-contents ul.yyi-rinker-links li {
    width: 47%;
    border-radius: 4px !important;
    margin: 5px !important;
}

div.yyi-rinker-contents ul.yyi-rinker-links li a {
    height: 40px !important;
    line-height: 40px !important;
    text-align: center;
    font-size: 14px !important;
    color: #fff !important;
    transition: all 0.5s 0s ease;
}

div.yyi-rinker-contents ul.yyi-rinker-links li.freelink2 {
    background: #cf4944;
}

.yyi-rinker-img-m .yyi-rinker-image {
    width: auto !important;
}
/*レスポンシブ480px以下*/
@media screen and (max-width: 480px) {

    /*縦表示*/
    div.yyi-rinker-contents div.yyi-rinker-box {
        flex-direction: column;
    }

    /*画像を中央寄せ*/
    div.yyi-rinker-contents div.yyi-rinker-image {
        width: auto !important;
        margin: 0 auto !important;
    }

    div.yyi-rinker-image {
        max-width: 70%;
    }

    /*商品情報を中央寄せ*/
    div.yyi-rinker-contents div.yyi-rinker-box div.yyi-rinker-info {
        width: calc(100% - 10px);
        text-align: center;
        padding: 0 !important;
    }

    div.yyi-rinker-contents div.yyi-rinker-detail {
        padding: 0 !important;
    }

    /*ボタンの幅を100%にする*/
    div.yyi-rinker-contents ul.yyi-rinker-links li {
        width: 100%;
    }

    /*ボタン文字位置の調整*/
    div.yyi-rinker-contents ul.yyi-rinker-links li a {
        padding: 0 !important;
    }
}

/* 関連記事カード全体のコンテナ */
.related-posts-container {
    border: 1px solid #333;
    /* 黒枠 */
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    position: relative;
    /* 子要素の絶対配置の基準に */
    overflow: hidden;
    /* 角丸の親要素でコンテンツがはみ出さないように */

    /* ★★ ここを薄い青色に、そしてパディングを設定する ★★ */
    background-color: #F0F8FF;
    /* コンテナ全体を薄い青に */
    padding: 15px;
    /* コンテナ全体の内部余白 */
    padding-top: 50px;
    /* タイトルが重なるため、コンテンツ開始位置を下げる */
}

/* 関連記事セクションのタイトル (h5) */
.related-posts-container .related-posts-title {
    background-color: #333;
    /* 背景黒 */
    color: #fff;
    /* テキスト白 */
    padding: 8px 15px;
    font-size: 1.1em;
    border-radius: 3px;
    /* 左上への配置 (コンテンツに重なる) */
    position: absolute;
    top: -1px;
    /* 親要素のボーダーに合わせる */
    left: -1px;
    /* 親要素のボーダーに合わせる */
    z-index: 10;
    /* 他のコンテンツの上に表示 */
}

/* 関連記事カードのリストコンテナ */
.related-posts-list {
    display: flex;
    flex-wrap: wrap;
    /* カードを複数行に折り返す */
    gap: 20px;
    /* カード間のスペース */
    /* ★★ ここから背景色と複雑なマージン・パディングを削除 ★★ */
    /* 背景色は親の.related-posts-containerに移動 */
    /* 負のマージンも不要になる */
    padding: 0;
    /* 親がパディングを持つのでここはゼロに */
    box-sizing: border-box;
    /* paddingを幅に含める */
}

/* 個々の関連記事カードアイテム */
.related-posts-list .related-post-card-item {
    flex: 1 1 calc(50% - 20px);
    /* PC版は2列表示を維持 */
    min-width: 500px;
    max-width: 800px;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    /* 角丸と画像のはみ出し対策 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    /* カード自体の背景色はaタグに移動するため、ここでは不要 */
}

.related-posts-list .related-post-card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.related-posts-list .related-post-card-item a {
    display: flex;
    /* アイキャッチとコンテンツを横並びにするため */
    width: 100%;
    /* 親の幅いっぱいに */
    height: 100%;
    /* ホバー時の高さ合わせのため */
    text-decoration: none;
    color: inherit;
    background-color: #fff;
    /* 各カードの背景は白に */
    border-radius: 8px;
    /* カード全体の角丸をリンクに適用 */
    padding: 15px;
    /* カード全体の内部余白をここで設定 */
    box-sizing: border-box;
    /* paddingを幅に含める */
}

/* アイキャッチ画像 */
.related-posts-list .card-item-img {
    flex: 0 0 30%;
    /* アイキャッチの幅を約30%に固定 */
    max-width: 30%;
    margin-right: 15px;
    /* アイキャッチとテキストの間の余白 */
    margin-left: 5px;
    /* アイキャッチ左側の余白 */
    overflow: hidden;
    /* 画像の角丸とアスペクト比維持のため */
}

.related-posts-list .card-item-img img {
    width: 100%;
    height: auto;
    /* 親要素の高さに合わせる */
    object-fit: cover;
    /* 画像がコンテナに収まるように調整 */
    display: block;
    border-radius: 5px;
    /* 画像の角を少し丸める */
}

/* カードコンテンツ部分（タイトルと抜粋） */
.related-posts-list .card-item-content {
    flex-grow: 1;
    /* 残りのスペースを埋める */
    padding: 0;
    /* 親のaタグでパディングを設定したのでここではゼロに */
    display: flex;
    flex-direction: column;
}

/* カードタイトル (h6) */
.related-posts-list .card-item-title {
    font-size: 1.1em;
    margin-top: 0;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* 2行まで表示 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* カード抜粋 (p) */
.related-posts-list .card-item-excerpt {
    font-size: 0.85em;
    color: #555;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 3行まで表示 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ------------------- レスポンシブデザイン ------------------- */

/* スマートフォン版（PC版と同じ並び） */
@media (max-width: 768px) {
    .related-posts-container {
        padding: 10px;
        /* SP版のコンテナ全体余白 */
        padding-top: 40px;
        /* SP版のタイトル考慮 */
    }

    .related-posts-container .related-posts-title {
        font-size: 1em;
        padding: 6px 12px;
    }

    .related-posts-list {
        flex-direction: column;
        /* SP版は1列にする */
        gap: 15px;
        /* SP版のgap */
        padding: 0;
        /* 親がパディングを持つのでここはゼロに */
    }

    .related-posts-list .related-post-card-item {
        flex: 1 1 100%;
        /* 1列表示 */
        min-width: 200px;
        max-width: none;
    }

    /* SP版のアイキャッチとコンテンツの並びもPC版と同じ */
    .related-posts-list .card-item-img {
        flex: 0 0 35%;
        /* SP版はアイキャッチを少し広めに */
        max-width: 35%;
        margin-right: 10px;
        /* 余白調整 */
        margin-left: 5px;
        /* 左側余白 */
    }

    .related-posts-list .card-item-content {
        padding: 0;
        /* 親のaタグでパディングを設定したのでここではゼロに */
    }

    .related-posts-list .related-post-card-item a {
        padding: 10px;
        /* SP版のカード全体の内部余白 */
    }

    .related-posts-list .card-item-title {
        font-size: 1em;
    }

    .related-posts-list .card-item-excerpt {
        font-size: 0.8em;
    }
}

/* さらに小さいスマートフォン向け */
@media (max-width: 480px) {
    .related-posts-container .related-posts-title {
        font-size: 0.9em;
        padding: 5px 10px;
    }

    .related-posts-list .card-item-img {
        flex: 0 0 40%;
        /* さらに小さい画面ではアイキャッチをさらに広めに */
        max-width: 40%;
    }
}