.wam-front-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 60px; }

/* パンくず */
.wam-breadcrumb { font-size: 13px; color: #888; margin: 16px 0 24px; }
.wam-breadcrumb a { color: #888; text-decoration: none; }
.wam-breadcrumb a:hover { text-decoration: underline; }

/* 感情ナビ（一覧ページ） */
.wam-emotion-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.wam-emotion-tag { padding: 6px 16px; border-radius: 20px; background: #f5f5f5; color: #444; text-decoration: none; font-size: 13px; border: 1px solid #ddd; transition: all .15s; }
.wam-emotion-tag:hover, .wam-emotion-tag.active { background: #222; color: #fff; border-color: #222; }

/* 感情カテゴリヘッダー */
.wam-emotion-header { margin-bottom: 28px; }
.wam-emotion-header h1 { margin: 0 0 8px; font-size: 26px; }
.wam-emotion-desc { color: #555; margin: 0 0 6px; }
.wam-emotion-target { color: #888; font-size: 13px; margin: 0; }

/* シリーズグリッド */
.wam-series-grid { display: grid; grid-template-columns: repeat( auto-fill, minmax( 220px, 1fr ) ); gap: 20px; }
.wam-series-card { text-decoration: none; color: inherit; border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; transition: box-shadow .15s; display: block; }
.wam-series-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.wam-card-thumb { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #f0f0f0; }
.wam-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wam-card-volumes { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 4px; }
.wam-card-body { padding: 12px; }
.wam-card-cat { font-size: 11px; color: #e60033; font-weight: bold; }
.wam-card-title { font-size: 14px; margin: 4px 0; line-height: 1.4; }
.wam-card-hook { font-size: 12px; color: #888; margin: 4px 0 0; }

/* 詳細ヘッダー */
.wam-detail-header { display: flex; gap: 28px; margin-bottom: 28px; align-items: flex-start; }
.wam-detail-thumb { flex-shrink: 0; width: 200px; }
.wam-detail-thumb img { width: 100%; border-radius: 6px; }
.wam-detail-cat { font-size: 12px; color: #e60033; font-weight: bold; text-decoration: none; }
.wam-detail-title { font-size: 24px; margin: 6px 0; line-height: 1.3; }
.wam-detail-hook { font-size: 15px; color: #555; margin: 0 0 10px; font-style: italic; }
.wam-detail-diff { font-size: 14px; color: #444; line-height: 1.7; margin: 0; }

/* どこから読むか */
.wam-read-guide { display: flex; gap: 20px; flex-wrap: wrap; background: #f8f8f8; border-radius: 6px; padding: 12px 16px; margin-bottom: 28px; font-size: 14px; }

/* 巻一覧 */
.wam-volumes-section h2 { font-size: 18px; margin-bottom: 12px; }
.wam-volumes { border: 1px solid #eee; border-radius: 6px; overflow: hidden; }
.wam-volume-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #f0f0f0; gap: 12px; }
.wam-volume-row:last-child { border-bottom: none; }
.wam-volume-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.wam-volume-label { font-size: 11px; color: #999; }
.wam-volume-title { font-size: 14px; font-weight: bold; }
.wam-volume-hook { font-size: 12px; color: #888; }
.wam-volume-link { flex-shrink: 0; font-size: 12px; padding: 4px 12px; border: 1px solid #ddd; border-radius: 4px; color: #444; text-decoration: none; white-space: nowrap; }
.wam-volume-link:hover { background: #f5f5f5; }

/* CTA */
.wam-cta-block { text-align: center; padding: 28px; background: #fff8f8; border: 1px solid #fcc; border-radius: 8px; margin: 28px 0; }
.wam-cta-label { margin: 0 0 12px; color: #888; font-size: 13px; }
.wam-cta-btn { display: inline-block; padding: 14px 36px; background: #e60033; color: #fff; font-size: 16px; font-weight: bold; border-radius: 4px; text-decoration: none; transition: background .15s; }
.wam-cta-btn:hover { background: #c40029; }
.wam-cta-btn small { font-size: 12px; font-weight: normal; margin-left: 6px; }

/* 関連シリーズ */
.wam-related-section h2 { font-size: 18px; margin-bottom: 14px; }
.wam-related-grid { display: grid; grid-template-columns: repeat( auto-fill, minmax( 160px, 1fr ) ); gap: 14px; }
.wam-related-card { text-decoration: none; color: inherit; border: 1px solid #eee; border-radius: 6px; overflow: hidden; display: block; transition: box-shadow .15s; }
.wam-related-card:hover { box-shadow: 0 3px 12px rgba(0,0,0,.08); }
.wam-related-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.wam-related-title { display: block; font-size: 12px; font-weight: bold; padding: 8px 8px 2px; }
.wam-related-hook { display: block; font-size: 11px; color: #888; padding: 0 8px 8px; }

/* TOPページ共通 */
.wam-top-section { margin-bottom: 48px; }
.wam-section-title { font-size: 20px; font-weight: bold; margin: 0 0 18px; display: flex; align-items: center; justify-content: space-between; }
.wam-section-more { font-size: 13px; font-weight: normal; color: #888; text-decoration: none; }
.wam-section-more:hover { text-decoration: underline; }

/* 感情カテゴリグリッド（TOP） */
.wam-emotion-grid { display: grid; grid-template-columns: repeat( auto-fill, minmax( 140px, 1fr ) ); gap: 12px; }
.wam-emotion-block { display: flex; flex-direction: column; align-items: center; padding: 20px 12px; border-radius: 10px; background: #fafafa; border: 1px solid #eee; text-decoration: none; color: inherit; transition: all .15s; }
.wam-emotion-block:hover { background: #222; color: #fff; border-color: #222; transform: translateY( -2px ); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.wam-emotion-icon { font-size: 32px; margin-bottom: 8px; line-height: 1; }
.wam-emotion-name { font-size: 13px; font-weight: bold; margin-bottom: 4px; text-align: center; }
.wam-emotion-count { font-size: 11px; color: #999; }
.wam-emotion-block:hover .wam-emotion-count { color: #ccc; }

/* ピックアップ */
.wam-pickup-list { display: flex; flex-direction: column; gap: 16px; }
.wam-pickup-card { display: flex; align-items: flex-start; gap: 16px; padding: 16px; border-radius: 8px; border: 1px solid #eee; text-decoration: none; color: inherit; transition: box-shadow .15s; position: relative; }
.wam-pickup-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.wam-pickup-rank { position: absolute; top: -1px; left: -1px; width: 32px; height: 32px; border-radius: 8px 0 8px 0; background: #222; color: #fff; font-size: 16px; font-weight: bold; display: flex; align-items: center; justify-content: center; }
.wam-pickup-thumb { flex-shrink: 0; width: 90px; }
.wam-pickup-thumb img { width: 100%; border-radius: 4px; aspect-ratio: 3/4; object-fit: cover; }
.wam-pickup-body { flex: 1; padding-left: 8px; }
.wam-pickup-cat { font-size: 11px; color: #e60033; font-weight: bold; }
.wam-pickup-title { font-size: 16px; font-weight: bold; margin: 4px 0; }
.wam-pickup-hook { font-size: 13px; color: #666; font-style: italic; margin: 0 0 6px; }
.wam-pickup-diff { font-size: 12px; color: #888; margin: 0 0 8px; line-height: 1.6; }
.wam-pickup-volumes { font-size: 11px; color: #aaa; }

/* 新着グリッド */
.wam-new-grid { display: grid; grid-template-columns: repeat( auto-fill, minmax( 180px, 1fr ) ); gap: 16px; }
.wam-new-card { text-decoration: none; color: inherit; border: 1px solid #eee; border-radius: 8px; overflow: hidden; display: block; transition: box-shadow .15s; }
.wam-new-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.wam-new-thumb { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #f0f0f0; }
.wam-new-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wam-new-volumes { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 3px; }
.wam-new-body { padding: 10px 12px; }
.wam-new-cat { font-size: 10px; color: #e60033; font-weight: bold; display: block; }
.wam-new-title { font-size: 13px; font-weight: bold; margin: 3px 0; line-height: 1.4; }
.wam-new-hook { font-size: 11px; color: #999; margin: 0; }

/* レスポンシブ */
@media ( max-width: 640px ) {
    .wam-detail-header { flex-direction: column; }
    .wam-detail-thumb { width: 100%; max-width: 240px; }
    .wam-series-grid { grid-template-columns: repeat( 2, 1fr ); }
    .wam-related-grid { grid-template-columns: repeat( 2, 1fr ); }
    .wam-emotion-grid { grid-template-columns: repeat( 3, 1fr ); }
    .wam-new-grid { grid-template-columns: repeat( 2, 1fr ); }
    .wam-pickup-thumb { width: 70px; }
}

/* =========================================================
   ランキング共通
   ========================================================= */
.wam-ranking-nav {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 24px; align-items: center;
}
.wam-ranking-tab {
    padding: 6px 14px; border-radius: 20px;
    background: #f5f5f5; color: #444;
    text-decoration: none; font-size: 13px;
    border: 1px solid #ddd; transition: all .15s;
}
.wam-ranking-tab:hover,
.wam-ranking-tab.active { background: #222; color: #fff; border-color: #222; }
.wam-ranking-tab-sep { font-size: 12px; color: #aaa; padding: 0 4px; }

.wam-ranking-block { margin-bottom: 40px; }
.wam-ranking-title {
    font-size: 18px; font-weight: bold;
    margin: 0 0 14px; padding-bottom: 8px;
    border-bottom: 2px solid #222;
}

/* リスト */
.wam-ranking-list { list-style: none; margin: 0; padding: 0; }
.wam-ranking-item { margin-bottom: 2px; }
.wam-ranking-card {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; background: #fff;
    border: 1px solid #eee; border-radius: 6px;
    text-decoration: none; color: inherit;
    transition: box-shadow .15s;
}
.wam-ranking-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }

/* 順位バッジ */
.wam-rank-num {
    flex-shrink: 0; width: 28px; height: 28px;
    border-radius: 50%; display: flex;
    align-items: center; justify-content: center;
    font-size: 13px; font-weight: bold; color: #fff;
    background: #888;
}
.wam-rank-1 { background: #c8960c; font-size: 15px; }
.wam-rank-2 { background: #7a7a7a; }
.wam-rank-3 { background: #a0522d; }

/* サムネイル */
.wam-rank-thumb {
    flex-shrink: 0; width: 48px; height: 64px;
    object-fit: cover; border-radius: 3px;
}

/* 情報 */
.wam-rank-info  { flex: 1; min-width: 0; }
.wam-rank-cat   { font-size: 10px; color: #e60033; font-weight: bold; }
.wam-rank-title { font-size: 14px; font-weight: bold; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wam-rank-hook  { font-size: 11px; color: #888; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wam-rank-vols  { font-size: 11px; color: #aaa; margin-right: 8px; }
.wam-rank-sale  { font-size: 11px; color: #e60033; font-weight: bold; }

/* カテゴリ別グループ */
.wam-ranking-emotions { margin-top: 20px; }
.wam-ranking-emotion-group { margin-bottom: 32px; }
.wam-ranking-emotion-label {
    font-size: 16px; margin: 0 0 10px;
    display: flex; align-items: center; gap: 12px;
}
.wam-ranking-emotion-label a { color: inherit; text-decoration: none; }
.wam-ranking-more { font-size: 12px; color: #888; font-weight: normal; }
.wam-ranking-more:hover { text-decoration: underline; }

@media ( max-width: 640px ) {
    .wam-rank-title { white-space: normal; }
}

/* =========================================================
   ショートコード装飾
   ========================================================= */

/* --- wam_box --- */
.wam-box {
    border-radius: 6px;
    padding: 16px 18px;
    margin: 20px 0;
    border-left: 4px solid #888;
    background: #f8f8f8;
}
.wam-box-title {
    font-weight: bold;
    margin: 0 0 8px;
    font-size: 15px;
}
.wam-box-body p:last-child { margin-bottom: 0; }

.wam-box--point   { border-color: #f0c040; background: #fffbec; }
.wam-box--info    { border-color: #4a90d9; background: #eef4fc; }
.wam-box--warning { border-color: #e6a817; background: #fffbec; }
.wam-box--danger  { border-color: #e74c3c; background: #fdf0ef; }
.wam-box--success { border-color: #27ae60; background: #edfaf1; }
.wam-box--memo    { border-color: #888;    background: #f5f5f5; }
.wam-box--check   { border-color: #27ae60; background: #edfaf1; }

/* --- wam_balloon --- */
.wam-balloon {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 20px 0;
}
.wam-balloon--right { flex-direction: row-reverse; }

.wam-balloon-avatar {
    flex-shrink: 0;
    width: 52px;
    text-align: center;
}
.wam-balloon-name {
    display: block;
    font-size: 11px;
    color: #666;
    margin-top: 4px;
    word-break: break-all;
}
.wam-balloon-body { flex: 1; }
.wam-balloon-text {
    background: #f0f0f0;
    border-radius: 0 10px 10px 10px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.7;
    position: relative;
}
.wam-balloon--right .wam-balloon-text {
    background: #e8f4fd;
    border-radius: 10px 0 10px 10px;
}
.wam-balloon-text p:last-child { margin-bottom: 0; }

/* --- wam_qa --- */
.wam-qa {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin: 20px 0;
    overflow: hidden;
}
.wam-qa-q,
.wam-qa-a {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    padding: 12px 16px;
    line-height: 1.7;
    font-size: 14px;
}
.wam-qa-q { background: #f8f8f8; border-bottom: 1px solid #ddd; font-weight: bold; }
.wam-qa-a { background: #fff; }
.wam-qa-label {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    color: #fff;
    margin-top: 1px;
}
.wam-qa-label--q { background: #e74c3c; }
.wam-qa-label--a { background: #27ae60; }

/* --- wam_stars --- */
.wam-stars {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    font-size: 15px;
}
.wam-stars-inner { display: flex; gap: 2px; }
.wam-star { font-size: 22px; line-height: 1; }
.wam-star--full  { color: #f0c040; }
.wam-star--half  { color: #f0c040; opacity: 0.6; }
.wam-star--empty { color: #ddd; }
.wam-stars-rate  { font-size: 16px; font-weight: bold; color: #333; }

/* --- wam_toggle --- */
.wam-toggle { margin: 20px 0; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.wam-toggle-btn {
    width: 100%;
    text-align: left;
    background: #f8f8f8;
    border: none;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.wam-toggle-btn:hover { background: #f0f0f0; }
.wam-toggle-icon { transition: transform .2s; }
.wam-toggle-btn.open .wam-toggle-icon { transform: rotate(180deg); }
.wam-toggle-body {
    display: none;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.7;
    background: #fff;
}
.wam-toggle-body.open { display: block; }
.wam-toggle-body p:last-child { margin-bottom: 0; }

/* --- wam_step --- */
.wam-step { margin: 20px 0; }
.wam-step-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.wam-step-item:last-child { border-bottom: none; }
.wam-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #222;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}
.wam-step-body { flex: 1; }
.wam-step-title { font-weight: bold; margin: 0 0 4px; font-size: 14px; }
.wam-step-text  { margin: 0; font-size: 14px; color: #555; line-height: 1.7; }

/* =========================================================
   試し読み動画 - WordPressのwidth/height属性を強制上書き
   ========================================================= */
.wam-tachiyomi-video,
.wam-tachiyomi-video video {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
}
.wam-tachiyomi-video video {
    display: block;
    border-radius: 4px;
}