/*
Theme Name: WING-AFFINGER5 Child
Template: affinger5
Description: ver20180831以上対応
Version: 20180831
*/



/*media Queries スマートフォンとタブレットサイズ（959px以下）で適応したいCSS - スマホ・タブレット
---------------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 959px) {


	/*-- ここまで --*/
}
	
/*media Queries タブレットサイズ（600px～959px）のみで適応したいCSS -タブレットのみ
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) and (max-width: 959px) {


	/*-- ここまで --*/
}	
	
/*media Queries タブレット（600px）以上で適応したいCSS -タブレット・PC
---------------------------------------------------------------------------------------------------*/
@media only screen and (min-width: 600px) {


	/*-- ここまで --*/
}

/*media Queries PCサイズ（960px）以上で適応したいCSS - PCのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (min-width: 960px) {


	/*-- ここまで --*/
}

/*media Queries スマホサイズ（599px）以下で適応したいCSS - スマホのみ
---------------------------------------------------------------------------------------------------*/
@media print, screen and (max-width: 599px) {

	
	/*-- ここまで --*/
}

/* --- カード全体 --- */
.doujin-box { border: 1px solid #e0e0e0; padding: 15px; display: flex; gap: 20px; background: #fff; border-radius: 8px; margin-bottom: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.doujin-img { flex-shrink: 0; width: 140px; }
.doujin-img img { width: 100%; border-radius: 6px; }
.doujin-info { flex: 1; }
.doujin-title { font-weight: 700; font-size: 1.15em; margin-bottom: 8px; line-height: 1.4; }
.circle-label { font-size: 0.8em; background: #eee; padding: 2px 6px; border-radius: 4px; color: #555; }

/* --- 評価・バッジ --- */
.sale-badge { position: absolute; top: -5px; left: -5px; background: #e60033; color: #fff; padding: 3px 8px; border-radius: 4px; font-size: 0.8em; transform: rotate(-5deg); z-index: 10; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.rating-area { margin: 10px 0; font-size: 0.9em; background: #f9f9f9; padding: 8px; border-radius: 4px; }
.rating-row { margin-bottom: 4px; } .rating-row:last-child { margin-bottom: 0; }
.stars { display: inline-block; font-family: Times, serif; color: #ddd; position: relative; font-size: 1.1em; }
.stars::before { content: "★★★★★"; }
.stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; color: #ffc107; overflow: hidden; width: calc(var(--rating) * 20%); white-space: nowrap; }

/* --- スペック表 --- */
.tag-spec-table { margin: 10px 0; border-top: 1px solid #eee; font-size: 0.85em; }
.spec-row { display: flex; border-bottom: 1px solid #eee; }
.spec-label { width: 90px; background: #f9f9f9; padding: 6px; font-weight: bold; flex-shrink: 0; color: #555; }
.spec-value { padding: 6px; flex: 1; display: flex; flex-wrap: wrap; gap: 4px; }
.spec-tag { border: 1px solid #ddd; border-radius: 12px; padding: 1px 8px; color: #666; background: #fff; }

/* --- あらすじ開閉 --- */
.story-area { margin: 15px 0; font-size: 0.9em; }
.story-area details { border: 1px solid #ddd; border-radius: 4px; background: #f9f9f9; }
.story-area summary { padding: 8px 12px; cursor: pointer; font-weight: bold; color: #0056b3; outline: none; list-style: none; display: flex; justify-content: space-between; }
.story-area summary::after { content: '+'; font-size: 1.2em; color: #666; }
.story-area details[open] summary::after { content: '-'; }
.story-content { padding: 12px; border-top: 1px solid #ddd; background: #fff; color: #444; line-height: 1.6; max-height: 300px; overflow-y: auto; }

/* --- ボタン --- */
.doujin-buttons { display: flex; gap: 10px; margin-top: 15px; }
.btn { text-decoration: none; padding: 10px 15px; border-radius: 6px; font-weight: bold; color: #fff !important; text-align: center; flex: 1; display: flex; justify-content: space-between; align-items: center; transition: opacity 0.2s; }
.btn:hover { opacity: 0.8; }
.fanza-btn { background: #222; } .dlsite-btn { background: #0056b3; }
.price-badge { background: rgba(255,255,255,0.2); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* --- ギャラリー --- */
.sample-gallery { margin-top: 15px; border-top: 1px dashed #ddd; padding-top: 10px; }
.gallery-scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 5px; }
.gallery-scroll img { height: 110px; border-radius: 4px; border: 1px solid #eee; }

/* --- スマホ固定フッター --- */
.sticky-footer-nav { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; border-top: 1px solid #ddd; display: flex; padding: 5px; z-index: 9999; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); }
.sticky-btn { flex: 1; margin: 0 4px; text-decoration: none; color: #fff !important; text-align: center; border-radius: 4px; padding: 6px 0; display: flex; flex-direction: column; justify-content: center; }
.btn-sub { font-size: 0.75em; opacity: 0.9; } .btn-main { font-weight: bold; font-size: 1.1em; }
@media (min-width: 768px) { .sticky-footer-nav { display: none; } }
@media (max-width: 600px) { .doujin-box { flex-direction: column; } .doujin-img { width: 100%; } }
body { padding-bottom: 70px; }

/* --- ランキング & おすすめ & ソート --- */
.ranking-list { margin-top: 20px; }
.ranking-item { position: relative; margin-bottom: 40px; }
.rank-badge { position: absolute; top: -15px; left: -15px; width: 50px; height: 50px; line-height: 50px; text-align: center; border-radius: 50%; color: #fff; font-weight: bold; font-size: 1.1em; z-index: 20; box-shadow: 0 3px 6px rgba(0,0,0,0.3); border: 2px solid #fff; }
.rank-1 { background: linear-gradient(135deg, #ffd700, #f0e68c); }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #e0e0e0); }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #f4a460); }
.rank-normal { background: #444; width: 40px; height: 40px; line-height: 40px; font-size: 0.9em; }

.admin-pickup-box { border: 2px solid #ffc107; background: #fffbe6; padding: 15px; border-radius: 8px; margin-bottom: 30px; }
.pickup-title { font-weight: bold; color: #d39e00; text-align: center; margin-bottom: 10px; }
.pickup-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pickup-item { text-decoration: none; color: #333; font-size: 0.8em; text-align: center; display: block; }
.pickup-item img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 5px; }
.pickup-caption { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }

.sort-link { padding: 5px 12px; border: 1px solid #ddd; text-decoration: none; color: #333; border-radius: 20px; background: #fff; font-weight: bold; }
.sort-link:hover { background: #f0f0f0; }

/* --- 相互RSS & 関連記事 --- */
.antenna-rss-list { list-style: none; padding: 0; margin: 0; border: 1px solid #eee; background: #fff; border-radius: 4px; }
.antenna-rss-list li { border-bottom: 1px dashed #eee; padding: 8px 10px; font-size: 0.9em; display: flex; justify-content: space-between; }
.antenna-rss-list a { color: #333; margin-right: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rss-date { color: #999; font-size: 0.8em; white-space: nowrap; }

.related-posts { margin-top: 40px; padding-top: 20px; border-top: 3px solid #f0f0f0; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.related-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 4px; }
.related-title { font-size: 0.8em; line-height: 1.3; margin-top: 5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
