/**
 * プロフィールバナー フロント表示用CSS
 * [profile_bnr id="xxx"] で出力される .profile-banner-wrap のスタイル
 */

/* ===========================
   ラッパー
=========================== */
.profile-banner-wrap {
    margin: 32px 0;
}

/* ===========================
   ラベル（「監修者」など）
=========================== */
.pbnr-label {
    display: inline-block;
    background-color: var(--color-main);
    color: #fff;
    font-size: 1.2rem;
    font-weight: var(--font-bold-weight, 600);
    letter-spacing: 0.05em;
    padding: 4px 12px;
    margin-bottom: 0;
    line-height: 1.5;
    border-radius: 5px 5px 0 0;
}

/* ===========================
   カード本体
=========================== */
.pbnr-card {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--color-gray, #ccc);
    color: var(--color-text, #1c3133);
    background: #fff;
    position: relative;
    border-radius: 0 10px 10px 10px;
}

/* ===========================
   画像エリア
=========================== */
.pbnr-image-wrap {
    flex-shrink: 0;
    width: 140px;
    min-height: 120px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pbnr-image-wrap img,
.pbnr-image-wrap .pbnr-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 !important;
}

/* ===========================
   テキストエリア
=========================== */
.pbnr-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.pbnr-name {
    margin: 0;
    font-size: 1.4rem;
    font-weight: var(--font-bold-weight, 600);
    line-height: 1.4;
    color: var(--color-text, #1c3133);
}

.pbnr-text {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--color-third, #666);
}

.pbnr-text p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}

/* テキスト内リンクのスタイル */
.pbnr-text a {
    color: var(--color-main, #47a0aa);
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

.pbnr-text a:hover {
    opacity: 0.7;
}

/* ===========================
   SP（768px以下）
=========================== */
@media (max-width: 768px) {
    .pbnr-image-wrap {
        width: 100px;
        min-height: 90px;
    }

    .pbnr-body {
        padding: 12px 14px;
    }

    .pbnr-name {
        font-size: 1.3rem;
    }

    .pbnr-text {
        font-size: 1.2rem;
    }
}
