/* [yc_newspapers] ショートコード用スタイル */

.yc-newspapers {
    width: 100%;
    margin: 1.5em 0;
}

.yc-newspapers-section {
    margin-bottom: 3em;
}

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

.yc-newspapers-heading {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0 0 1.2em;
    padding-bottom: 0.5em;
    border-bottom: 2px solid #ccc;
}

/* PC: 3列グリッド */
.yc-newspapers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.yc-newspaper-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.7em;
    overflow: hidden;
}

/* ロゴ */
.yc-newspaper-logo {
    text-align: center;
}

.yc-newspaper-logo-img {
    max-width: 100%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: inline-block;
}

/* 新聞名 */
.yc-newspaper-title {
    font-size: 1em;
    font-weight: 600;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    word-break: break-all;
}

/* 説明文 */
.yc-newspaper-description {
    font-size: 0.9em;
    line-height: 1.6;
    color: #444;
    margin: 0;
    overflow-wrap: break-word;
}

/* 料金・発行情報 */
.yc-newspaper-details {
    font-size: 0.85em;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 0.3em;
}

.yc-newspaper-detail {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2em 0.6em;
    padding: 0.35em 0;
    border-top: 1px solid #f0f0f0;
}

.yc-newspaper-detail:first-child {
    border-top: none;
    padding-top: 0;
}

.yc-newspaper-detail-label {
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.yc-newspaper-detail span:last-child {
    color: #333;
    overflow-wrap: break-word;
    min-width: 0;
}

/* 購読申込ボタン */
.yc-newspaper-order {
    margin-top: auto;
    padding-top: 0.5em;
}


/* タブレット: 2列 */
@media (max-width: 1024px) {
    .yc-newspapers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* スマートフォン: 1列 */
@media (max-width: 767px) {
    .yc-newspapers-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .yc-newspapers-section {
        margin-bottom: 2em;
    }
}
