/*
 Theme Name: harem_magazine Child
 Template:   harem_magazine
*/

/* ==========================================================================
   新デザイン（プレビューモード）のヘッダーCSS
   ========================================================================== */

/* 1. 全体コンテナの余白調整 */
.m-archive__head--tag-custom {
    margin-bottom: 40px;
    background: #fdfdfd; /* わずかにオフホワイトで柔らかく */
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

/* 2. ヒーロー画像のデザイン */
.p-tag-hero {
    width: 100%;
    max-height: 400px; /* 高くなりすぎないよう制限 */
    overflow: hidden;
    margin-bottom: 25px;
}

.p-tag-hero img {
    width: 100%;
    height: auto;
    object-fit: cover; /* 枠に合わせてトリミング */
    vertical-align: bottom;
    /* イラストのように少し柔らかい印象にするなら角丸を（お好みで） */
    /* border-radius: 8px; */
}

/* 3. タイトルと説明文のテキストエリア */
.p-tag-head-content {
    max-width: 900px; /* 読みやすい横幅に制限 */
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* 4. カスタムタイトルのスタイル */
.p-tag-head__custom-ttl {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* タグ名を目立たせるバッジ */
.tag-badge {
    display: inline-block;
    background: #e67e22; /* HAREMさんのイメージに近い暖色（調整可） */
    color: #fff;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    margin: 0 5px;
    vertical-align: middle;
}

/* 5. カスタム説明文のスタイル */
.p-tag-head__custom-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    text-align: left; /* 説明文は左揃えが読みやすいです */
    background: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    border-left: 4px solid #ccc;
}

/* モバイル用の微調整 */
@media screen and (max-width: 767px) {
    .p-tag-head__custom-ttl {
        font-size: 20px;
    }
    .p-tag-hero {
        max-height: 250px;
    }
}