@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/

/* ============================================================
 * 旧テーマ(devs_theme)から移植した記事本文のスタイル
 * SWELL側のスタイルより優先させるため .post_content で範囲を絞る
 * ============================================================ */

/* コードブロック */
.post_content pre {
    color: #F4F5F7;
    background: #394034;
    padding: 10px;
    border-radius: 10px;
    white-space: pre-wrap;
}

.post_content code {
    font-family: Menlo, Consolas, 'DejaVu Sans Mono', monospace;
    font-size: 14px;
    line-height: 1.4;
}

/* prettify の行番号 */
.post_content li.L0, .post_content li.L1, .post_content li.L2, .post_content li.L3, .post_content li.L4,
.post_content li.L5, .post_content li.L6, .post_content li.L7, .post_content li.L8, .post_content li.L9 {
    list-style-position: outside;
    margin-left: 10px;
    padding-left: 16px;
}

/* 表(旧エディタで書いた、クラスなしの表のみ。SWELLの表ブロックには影響させない) */
.post_content > table,
.post_content > table th,
.post_content > table td {
    border-collapse: collapse;
    border: 1px solid #ccc;
    line-height: 1.5;
}

.post_content > table th {
    width: 150px;
    padding: 10px;
    font-weight: bold;
    vertical-align: top;
    background: #3f3f3f;
    color: #ffffff;
    text-align: center;
}

.post_content > table td {
    width: 350px;
    padding: 10px;
    vertical-align: top;
}

.post_content > table tr:nth-child(even) {
    background: #d9d9d9;
}

/* ============================================================
 * Pz-LinkCard のブログカードを SWELL の配色に合わせる
 * 色は SWELL のカスタマイザー設定(CSS変数)に追従させる
 * ============================================================ */
.post_content .lkc-external-wrap,
.post_content .lkc-internal-wrap {
    max-width: 100%;
    margin: 2em 0;
    border: 1px solid var(--color_border, #e2e5e8);
    border-radius: 4px;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.25s, transform 0.25s;
}

.post_content .lkc-external-wrap:hover,
.post_content .lkc-internal-wrap:hover {
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.post_content .lkc-card {
    margin: 12px 16px;
}

.post_content .lkc-info,
.post_content .lkc-domain {
    color: var(--color_text, #333);
    opacity: 0.7;
}

.post_content .lkc-content {
    height: auto;
    min-height: 90px;
}

/* サムネイルの大きさはプラグイン側で固定(!important)されているので、余白と枠線だけ合わせる */
.post_content .lkc-thumbnail {
    width: auto !important;
    margin-right: 16px;
}

.post_content .lkc-external-wrap .lkc-thumbnail-img,
.post_content .lkc-internal-wrap .lkc-thumbnail-img {
    border: 1px solid var(--color_border, #e2e5e8) !important;
}

.post_content .lkc-title {
    color: var(--color_text, #333);
    font-size: 1em;
    line-height: 1.5;
}

.post_content .lkc-excerpt {
    color: var(--color_text, #333);
    font-size: 0.8em;
    line-height: 1.6;
    opacity: 0.8;
}

.post_content .lkc-url {
    color: var(--color_link, #1176d4);
    font-size: 0.75em;
    text-decoration: none;
}

@media (max-width: 599px) {
    .post_content .lkc-thumbnail {
        margin-right: 10px;
    }
    .post_content .lkc-excerpt {
        display: none !important;
    }
}

/* ============================================================
 * 旧テーマ(devs_theme)のトップ画面: 動くグラデーションの上に bitware ロゴ
 * SWELLのメインビジュアルの画像・フィルターは使わず、背景だけで表現する
 * ============================================================ */
.home #main_visual .p-mainVisual__slide {
    box-sizing: border-box;
    padding: 0 5%;
    background-image: url("img/bitware.png"), linear-gradient(182deg, #0031f9, #00f940, #ddf900, #f90200);
    background-repeat: no-repeat;
    background-origin: content-box, border-box;
    background-size: contain, 800% 800%;
    animation: devs-gradient 30s ease infinite;
}

.home #main_visual .p-mainVisual__imgLayer,
.home #main_visual .p-mainVisual__textLayer {
    display: none;
}

.home #main_visual .c-filterLayer::before,
.home #main_visual .c-filterLayer::after {
    content: none;
}

@keyframes devs-gradient {
    0%   { background-position: center, 51% 0%; }
    50%  { background-position: center, 50% 100%; }
    100% { background-position: center, 51% 0%; }
}

/* ============================================================
 * 旧テーマ(devs_theme)のページ表示時アニメーション: 本文が下からせり上がる
 * ============================================================ */
#content {
    animation: devs-fadein 350ms ease-out both;
}

@keyframes devs-fadein {
    from { opacity: 0; transform: translateY(60px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .home #main_visual .p-mainVisual__slide,
    #content {
        animation: none;
    }
}

