@charset "UTF-8";
h2{
  padding-top: 1.5em;          /* h2の上の空間を広げる */
}
/* ============================================================
   SIRIUS2 リンクカード・カスタム（高さ調整・横長スリム版）
   ============================================================ */

/* 1. カード全体の器 */
.linkcard {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 2em 0;
    border: 1px solid #dedede;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10); /* 影を0.10に設定 */
    border-radius: 4px;
    overflow: visible;
}

/* 2. 枠内のレイアウト（高さを抑えるためpaddingを調整） */
.linkcard a {
    display: grid;
    grid-template-columns: 140px 1fr; /* 画像をさらに小さく140pxに */
    gap: 12px;                /* 文字の始まりを左に寄せるため間隔を狭く */
    padding: 12px 15px;       /* 上下の余白を12pxに詰めて高さを低く */
    text-decoration: none;
    color: #333;
    align-items: center;      /* 縦方向中央揃え */
}

/* 3. 画像（14:9比率を維持しつつコンパクトに） */
.linkcard-thumbnail {
    grid-column: 1;
    width: 140px;
    height: auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: #f8f8f8;
    border-radius: 2px;
}

.linkcard-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: bottom;
}

/* 4. 記事タイトル（全部表示） */
.linkcard-title {
    font-size: 1.05em;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 4px 0;        /* 下の余白を詰める */
    display: block;
    overflow: visible;
}

/* 5. 説明文（PCのみ表示） */
.linkcard-excerpt {
    font-size: 0.82em;        /* 少しだけ文字を小さく */
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 6. ドメイン表示 */
.linkcard-footer {
    font-size: 0.7em;
    color: #999;
    margin-top: 4px;
    position: static;
}

/* 7. 「参考記事」ラベル（ネイビー＆開始位置を画像に合わせる） */
.linkcard::before {
    content: "参考記事";
    position: absolute;
    top: -11px;
    left: 15px;               /* aタグの横paddingと同じ15pxに設定して開始位置を揃える */
    background: #D9BB14;      /* ラベルの色 */
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    padding: 0 10px;
    height: 20px;             /* 高さを少し低く */
    line-height: 20px;        /* 垂直中央揃え */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    z-index: 1;
}

/* ============================================================
   スマホ用の調整
   ============================================================ */
@media screen and (max-width: 560px) {
    .linkcard a {
        grid-template-columns: 100px 1fr;
        gap: 10px;
        padding: 10px;        /* スマホはさらにコンパクトに */
    }
    
    .linkcard-thumbnail {
        width: 100px;
    }

    /* ラベル位置をスマホのpaddingに合わせる */
    .linkcard::before {
        left: 10px; 
    }

    .linkcard-title {
        font-size: 0.9em;
    }

    .linkcard-excerpt {
        display: none;
    }
}
/* タイトル付きボックス内の行間を一括で広くする設定 */
.cbox-body {
  line-height: 1.6;
}
/* タイトル付きボックス（赤）のラベルの色変更 */
.cbox-clRD .cbox-hd6 {
  background-color: #F085A3;
}
.cbox-clRD .cbox-hd6::after {
  background-color: #F085A3;
}
.cbox-clRD .cbox-hd6::before {
  border-top-color: #F4A9BE;
  border-right-color: #F4A9BE;
}

/* プロフィールボックス（執筆者）ここから*/
.author-box {
    display: block; /* 一旦ブロックに戻す */
    overflow: hidden; /* 回り込み解除の自動化 */
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 30px;
    clear: both;
}

.author-img {
    float: left; /* 左に回り込み */
    width: 70px;
    margin-right: 10px; /* 画像と右側テキストの間の余白 */
}

.author-img img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.author-content {
    overflow: hidden; /* 右側のテキストブロックを独立させる */
}

.author-name {
    display: block;
    font-weight: bold;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 8px;
}

.author-text {
    font-size: 0.9em;
    line-height: 1.6;
    color: #555;
    margin: 0; /* 余計な上下余白を排除 */
}

/* スマホ用の設定：画面が狭いときは中央寄せ */
@media (max-width: 480px) {
    .author-img {
        float: none;
        margin: 0 auto 15px;
    }
    .author-box {
        text-align: center;
    }
}