/* ===== DMM Auto Poster フロントエンド記事スタイル ===== */

/* 購入ボタン */
.dap-buy-btn-wrap {
    text-align: center;
    margin: 24px 0;
}

.dap-buy-btn {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff !important;
    text-decoration: none !important;
    padding: 14px 40px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    letter-spacing: .05em;
    box-shadow: 0 4px 14px rgba(231,76,60,.45);
    transition: transform .15s, box-shadow .15s;
}

.dap-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231,76,60,.55);
    color: #fff !important;
}

.dap-buy-btn span::before {
    content: "▶ ";
}

/* 作品情報テーブル */
.dap-info-table-wrap {
    margin: 24px 0;
    overflow-x: auto;
}

.dap-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .95em;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.dap-info-table th,
.dap-info-table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.dap-info-table th {
    background: #f7f7f7;
    width: 120px;
    font-weight: bold;
    color: #555;
    white-space: nowrap;
}

.dap-info-table tr:last-child th,
.dap-info-table tr:last-child td {
    border-bottom: none;
}

.dap-info-table del {
    color: #aaa;
    font-size: .85em;
    margin-left: 6px;
}

/* 評価の星 */
.dap-stars {
    color: #f39c12;
    font-size: 1.1em;
    letter-spacing: 2px;
}

.dap-review-count {
    color: #888;
    font-size: .85em;
}

/* ジャンルタグ */
.dap-genre-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    font-size: .8em;
    padding: 2px 10px;
    border-radius: 12px;
    margin: 2px;
    text-decoration: none;
}

/* ===== サンプル動画 ===== */
.dap-sample-movie {
    margin: 28px 0;
}

.dap-movie-title {
    font-size: 1em;
    font-weight: bold;
    color: #555;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #e74c3c;
}

.dap-movie-wrap {
    width: 100%;
    background: #000;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
}

.dap-movie-wrap video {
    width: 100%;
    height: auto;
    max-height: 70vh;
    display: block;
    background: #000;
}

/* サンプル動画なし時のポスターリンク */
.dap-movie-poster-wrap {
    position: relative;
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.dap-poster-link {
    display: block;
    position: relative;
    text-decoration: none !important;
}

.dap-poster-play {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,.65);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 1em;
    font-weight: bold;
    letter-spacing: .03em;
}

/* サンプルギャラリー */
.dap-sample-gallery {
    margin: 28px 0;
}

.dap-gallery-title {
    font-size: 1em;
    font-weight: bold;
    color: #555;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 3px solid #e74c3c;
}

.dap-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.dap-gallery-grid a {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.dap-gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .2s;
}

.dap-gallery-grid a:hover img {
    transform: scale(1.04);
}

/* スマホ対応 */
@media (max-width: 600px) {
    .dap-buy-btn {
        padding: 12px 24px;
        font-size: 1em;
    }

    .dap-info-table th {
        width: 90px;
        font-size: .85em;
    }

    .dap-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
}

/* ===== 購入者の声 ===== */
.dap-reviews {
    margin: 32px 0;
}

.dap-reviews-title {
    font-size: 1em;
    font-weight: bold;
    color: #555;
    margin-bottom: 14px;
    padding-left: 10px;
    border-left: 3px solid #e74c3c;
}

.dap-review-card {
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
}

.dap-review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.dap-review-user {
    font-weight: bold;
    font-size: .9em;
    color: #444;
}

.dap-review-stars {
    color: #f39c12;
    font-size: 1em;
    letter-spacing: 1px;
}

.dap-review-body {
    margin: 0;
    font-size: .93em;
    color: #555;
    line-height: 1.7;
}

.dap-reviews-note {
    font-size: .78em;
    color: #aaa;
    margin-top: 8px;
}

/* ===== イントロ文 ===== */
.dap-intro {
    background: #fafafa;
    border-left: 4px solid #e74c3c;
    padding: 14px 18px;
    margin-bottom: 24px;
    border-radius: 0 6px 6px 0;
    font-size: .97em;
    line-height: 1.8;
    color: #444;
}

.dap-intro p {
    margin: 0;
}

/* ===== この女優の他の作品 ===== */
.dap-actress-posts {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.dap-actress-posts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.dap-actress-posts-title {
    font-size: 1em;
    font-weight: bold;
    color: #333;
    margin: 0;
    padding-left: 10px;
    border-left: 3px solid #e74c3c;
}

.dap-actress-more {
    font-size: .85em;
    color: #e74c3c;
    text-decoration: none;
    white-space: nowrap;
}

.dap-actress-more:hover {
    text-decoration: underline;
}

/* ===== 関連作品 ===== */
.dap-related-posts {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid #f0f0f0;
}

.dap-related-title {
    font-size: 1em;
    font-weight: bold;
    color: #555;
    margin-bottom: 16px;
    padding-left: 10px;
    border-left: 3px solid #e74c3c;
}

.dap-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.dap-related-item {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}

.dap-related-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

.dap-related-item img {
    width: 100%;
    height: auto;
    display: block;
}

.dap-related-item-title {
    display: block;
    font-size: 11px;
    padding: 6px 8px 4px;
    line-height: 1.4;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dap-related-item-price {
    display: block;
    font-size: 11px;
    font-weight: bold;
    color: #e74c3c;
    padding: 0 8px 8px;
}

@media (max-width: 600px) {
    .dap-related-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
}

/* ===== アフィリエイト表記 ===== */
.dap-pr-label {
    font-size: .75em;
    color: #aaa;
    margin: 0 0 12px;
    text-align: right;
}

/* ===== シェアボタン ===== */
.dap-share-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 24px;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.dap-share-label {
    font-size: .85em;
    color: #888;
    white-space: nowrap;
}

.dap-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 16px;
    border-radius: 50px;
    font-size: .85em;
    font-weight: bold;
    text-decoration: none !important;
    transition: opacity .15s, transform .15s;
    color: #fff !important;
}

.dap-share-btn:hover {
    opacity: .85;
    transform: translateY(-1px);
}

.dap-share-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.dap-share-line    { background: #06c755; }
.dap-share-twitter { background: #000; }

/* ===== お気に入りボタン ===== */
.dap-favorite-wrap {
    text-align: center;
    margin: 28px 0;
}

.dap-favorite-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid #e74c3c;
    color: #e74c3c;
    border-radius: 50px;
    padding: 10px 28px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background .15s, color .15s, transform .15s;
}

.dap-favorite-btn:hover {
    background: #e74c3c;
    color: #fff;
}

.dap-favorite-btn.dap-fav-active {
    background: #e74c3c;
    color: #fff;
}

.dap-fav-heart {
    font-size: 1.2em;
    line-height: 1;
}

@keyframes dap-bounce {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.2); }
    70%  { transform: scale(.9); }
    100% { transform: scale(1); }
}

.dap-favorite-btn.dap-fav-bounce {
    animation: dap-bounce .4s ease;
}

/* ===== お気に入り一覧ページ ===== */
#dap-favorites-page {
    margin: 20px 0;
}

.dap-fav-page-title {
    font-size: 1.3em;
    color: #333;
    border-left: 4px solid #e74c3c;
    padding-left: 12px;
    margin-bottom: 8px;
}

.dap-fav-page-desc {
    color: #888;
    font-size: .9em;
    margin-bottom: 20px;
}

.dap-fav-empty {
    color: #aaa;
    text-align: center;
    padding: 40px 0;
    font-size: .95em;
}

.dap-related-item {
    position: relative;
}

.dap-fav-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,.55);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 11px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    display: none;
}

.dap-related-item:hover .dap-fav-remove-btn {
    display: block;
}

.dap-fav-clear-btn {
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 22px;
    font-size: .9em;
    cursor: pointer;
    transition: background .15s;
}

.dap-fav-clear-btn:hover {
    background: #c0392b;
}

.dap-fav-actions {
    margin-top: 20px;
    text-align: right;
}

/* ===== 女優プロフィール（タグアーカイブ） ===== */
.dap-actress-profile {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.dap-actress-profile-img {
    width: 120px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

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

.dap-actress-profile-name {
    font-size: 1.3em;
    color: #333;
    margin: 0 0 12px;
}

.dap-actress-profile-ruby {
    font-size: .65em;
    color: #888;
    font-weight: normal;
}

.dap-actress-profile-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88em;
    margin-bottom: 12px;
}

.dap-actress-profile-table th,
.dap-actress-profile-table td {
    padding: 5px 10px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.dap-actress-profile-table th {
    width: 80px;
    color: #888;
    white-space: nowrap;
    font-weight: normal;
}

.dap-actress-profile-link {
    display: inline-block;
    font-size: .85em;
    color: #e74c3c;
    text-decoration: none;
}

.dap-actress-profile-link:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .dap-actress-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .dap-actress-profile-table th {
        text-align: left;
    }
}

/* ===== ジャンルピックアップ / 新着 shortcode ===== */
.dap-genre-picks {
    margin: 32px 0;
}

.dap-genre-picks-title {
    font-size: 1em;
    font-weight: bold;
    color: #555;
    margin-bottom: 14px;
    padding-left: 10px;
    border-left: 3px solid #e74c3c;
}

/* ===== おすすめまとめ記事 ===== */
.dap-roundup-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.dap-roundup-rank {
    font-size: 1.6em;
    font-weight: bold;
    color: #e74c3c;
    min-width: 44px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
    padding-top: 6px;
}

.dap-roundup-thumb {
    width: 120px;
    height: auto;
    border-radius: 6px;
    flex-shrink: 0;
}

.dap-roundup-info {
    flex: 1;
    min-width: 0;
}

.dap-roundup-title {
    font-size: 1em;
    margin: 0 0 8px;
    line-height: 1.5;
}

.dap-roundup-title a {
    text-decoration: none;
    color: #222;
}

.dap-roundup-title a:hover {
    color: #e74c3c;
}

.dap-roundup-price {
    font-size: .9em;
    font-weight: bold;
    color: #e74c3c;
    margin: 6px 0 10px;
}

@media (max-width: 480px) {
    .dap-roundup-item {
        flex-direction: column;
    }
    .dap-roundup-thumb {
        width: 100%;
    }
}
