/* ---------------------------------------
   基本
--------------------------------------- */
.media-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 20px;
}

/* ---------------------------------------
   体裁・ヘッダー
--------------------------------------- */
.heading {
    font-size: 30px;
    color: #064082;
    text-align: center;
    margin-bottom: 15px;
    border-bottom: 4px solid #064082;
    padding-bottom: 10px;
    font-weight: 700;
}

.content-title {
    font-size: 22px;
    color: #1e619d;
    border-left: 8px solid #1e619d;
    padding-left: 12px;
    margin-top: 35px;
    margin-bottom: 25px;
    font-weight: 600;
}

.media-content p,
.media-content li {
    font-size: 17px;
    line-height: 1.6;
    color: #333;
    font-weight: 300;
}

/* ---------------------------------------
カード内文字調整
--------------------------------------- */
/* メディア名 */
.media-card-mname {
    font-weight: bold;
    color: #3A669D;
    font-size: 19px;
    margin-bottom: 5px;
    min-height: 48px;
    overflow: hidden;
}

/* 紹介商品名 */
.media-card-product {
    color: #1D7C4C;
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 12px;
    display: inline-block;
    border: 1px solid #1D7C4C;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: normal;
	align-self: flex-start;
    width: auto;
    max-width: 100%;
}

.media-card-product::before {
    content: "ご紹介商品："; /* 常時表示文言 */
    margin-right: 5px;
    border: none;
    padding: 0;
    background: none;
    display: inline;
}
    
/* 記事タイトル */
.media-card-title { 
    font-size: 17px;
    line-height: 1.6;
    color: #1D1D1D;
    margin: 0 0 10px 0;
    font-weight: 300;
    flex-grow: 1;
}

.intro-box {
    background-color: #fcfafa;
    border: 1px solid #ddd;
    padding: 30px;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.08);
}

.intro-box strong {
    color: #000000;
    font-size: 18px;
    font-weight: 500;
}

/* ---------------------------------------
   メディアリスト
--------------------------------------- */
.media-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
}

.media-card-unit {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
	display: none;
    flex-direction: column;
    justify-content: flex-start;
    max-width: 50%;
}

@media (max-width: 768px) {
    .media-card-unit {
        max-width: 100%;
    }
}

.media-card-unit.visible {
    display: flex;
}

.media-card-unit:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

/* ---------------------------------------
   ボタンとフッター
--------------------------------------- */
.media-container .link-button {
    display: block;
    background-color: #005799;
    color: #ffffff;
    padding: 14px 15px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    margin-top: auto;
    transition: background-color 0.3s;
    font-size: 16px;
    font-weight: 500;
}
    
.link-button:hover {
    background-color: #003366;
}

.load-more-container {
    text-align: center;
    margin: 30px 0;
}

#loadMoreBtn {
    background-color: #777;
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 5px;
    font-size: 17px;
    cursor: pointer;
    font-weight: 500;
}

/* アフィリエイト誘導枠 */
.next-step {
    margin-top: 50px;
    padding: 30px;
    background-color: #f8f8f8;
    text-align: center;
    border-radius: 8px;
}
    
.next-step a.link-button {
    background-color: #E50011;
    color: #FFFF;
}
    
.next-step a.link-button:hover {
    background-color: #B8000E;
}
