/* ===== 体験ライターコメント ブロック ===== */

.wec-block {
    border: 2px solid #7ba3cc;
    border-radius: 0 8px 8px 8px;
    overflow: visible;
    margin: 2.4em 0 2em;
    font-size: 0.95em;
    background: #fff;
    position: relative;
}

/* 外枠タイトルタブ */
.wec-outer-label {
    position: absolute;
    top: -2px;
    left: -2px;
    transform: translateY(-100%);
    display: inline-block;
    background: #4a72b5;
    color: #fff;
    font-size: 0.85em;
    font-weight: bold;
    padding: 5px 16px;
    border-radius: 6px 6px 0 0;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* プロフィールバー */
.wec-profile-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f0f5fb;
    border-bottom: 1px solid #d0dcea;
    flex-wrap: wrap;
}

.wec-avatar-link {
    display: block;
    flex-shrink: 0;
    line-height: 0;
}

.wec-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #b0c4de;
}

.wec-profile-info {
    flex: 1;
    min-width: 0;
}

.wec-writer-name {
    display: block;
    font-weight: bold;
    font-size: 0.95em;
    color: #2c5282;
    text-decoration: none;
    line-height: 1.3;
}

.wec-writer-name:hover {
    text-decoration: underline;
}

.wec-writer-bio {
    font-size: 0.82em;
    color: #666;
    margin: 3px 0 0;
    line-height: 1.45;
    white-space: pre-wrap;
}

.wec-headline-badge {
    margin-left: auto;
    background: #2c5282;
    color: #fff;
    font-size: 0.78em;
    font-weight: bold;
    padding: 4px 11px;
    border-radius: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.wec-profile-empty,
.wec-content-empty {
    color: #aaa;
    font-style: italic;
    font-size: 0.88em;
    padding: 2px 0;
}

/* コンテンツ本体 */
.wec-content {
    padding: 16px 18px;
}

.wec-section {
    margin-bottom: 1.4em;
}

.wec-section:last-child {
    margin-bottom: 0;
}

.wec-section-text {
    line-height: 1.75;
    margin-bottom: 0.75em;
}

.wec-section-text p:first-child { margin-top: 0; }
.wec-section-text p:last-child  { margin-bottom: 0; }

/* 画像グリッド */
.wec-section-images {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.wec-image-item {
    margin: 0;
    flex: 1 1 200px;
}

.wec-image-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

.wec-image-item figcaption {
    font-size: 0.78em;
    color: #777;
    text-align: center;
    margin-top: 4px;
    line-height: 1.4;
}

/* 1枚だけの場合は全幅 */
.wec-images-count-1 .wec-image-item {
    flex: 1 1 100%;
}

/* ===== エディター専用スタイル ===== */

/* InnerBlocks エリアの視認性 */
.wec-block .wec-content .block-editor-inner-blocks {
    min-height: 60px;
}

/* スマホ */
@media (max-width: 640px) {
    .wec-image-item {
        flex: 1 1 100%;
    }
    .wec-headline-badge {
        margin-left: 0;
    }
}
