/*
Theme Name: 男性増大塾 まとめテーマ
Theme URI: https://otoko-zoudai-jyuku.com
Author: otoko-zoudai-jyuku
Description: 2chまとめ風 男性増大情報サイト
Version: 2.0.0
License: GNU General Public License v2 or later
Text Domain: otoko-matome
*/

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: 'Meiryo', 'Hiragino Kaku Gothic ProN', 'MS PGothic', sans-serif;
  background: #e8e8e8;
  color: #333;
  line-height: 1.6;
  font-size: 14px;
}
a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; color: #0044aa; }
img { max-width: 100%; height: auto; display: block; }

/* === Layout === */
.site-wrapper { max-width: 1040px; margin: 0 auto; padding: 0 8px; }
.content-area { display: flex; gap: 12px; padding: 10px 0 20px; }
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 230px; flex-shrink: 0; }

/* === Header === */
#site-header {
  background: linear-gradient(to bottom, #1a3a6e, #0d2146);
  border-bottom: 3px solid #e8391a;
}
.header-inner {
  max-width: 1040px; margin: 0 auto; padding: 8px;
  display: flex; align-items: center; gap: 10px;
}
.site-title-wrap a {
  display: block;
  font-size: 1.5rem; font-weight: bold; color: #fff;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  letter-spacing: 1px;
  text-decoration: none !important;
}
.site-title-wrap a:hover { text-decoration: none !important; opacity: 0.9; }
.header-desc { color: #aac4ff; font-size: 0.78rem; margin-top: 2px; }
.header-search { margin-left: auto; }
.header-search form { display: flex; }
.header-search input[type="text"] {
  padding: 5px 10px; border: 1px solid #4a6fa0; border-radius: 3px 0 0 3px;
  font-size: 12px; background: rgba(255,255,255,0.1); color: #fff; width: 150px; outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,0.5); }
.header-search button {
  padding: 5px 10px; background: #e8391a; border: none; border-radius: 0 3px 3px 0;
  color: #fff; cursor: pointer; font-size: 12px;
}

/* === Navigation === */
#site-nav { background: #0d2146; border-bottom: 1px solid #2a4a7a; }
.nav-inner {
  max-width: 1040px; margin: 0 auto;
  display: flex; flex-wrap: wrap; padding: 0 8px;
}
.nav-inner a {
  color: #ccd8f0; padding: 8px 14px; font-size: 12px; font-weight: bold;
  display: block; border-right: 1px solid #2a4a7a; white-space: nowrap;
  transition: background 0.15s;
}
.nav-inner a:first-child { border-left: 1px solid #2a4a7a; }
.nav-inner a:hover, .nav-inner a.current { background: #e8391a; color: #fff; text-decoration: none; }

/* === Breadcrumb === */
.breadcrumb {
  background: #f0f0f0; border: 1px solid #ccc; padding: 5px 10px;
  font-size: 11px; color: #666; margin-bottom: 8px; border-radius: 2px;
}
.breadcrumb a { color: #0066cc; }
.breadcrumb span::before { content: " ＞ "; color: #999; }

/* === Article Card (Index) === */
.thread-list { display: flex; flex-direction: column; gap: 0; }
.thread-card {
  background: #fff; border: 1px solid #ccc; border-top: none;
  display: flex; gap: 0; transition: background 0.1s;
}
.thread-card:first-child { border-top: 1px solid #ccc; }
.thread-card:hover { background: #f5f8ff; }
.thread-card .card-thumb {
  width: 110px; flex-shrink: 0; overflow: hidden; border-right: 1px solid #e0e0e0;
}
.thread-card .card-thumb img { width: 110px; height: 82px; object-fit: cover; display: block; }
.thread-card .no-thumb-sm {
  width: 110px; height: 82px; background: #dde4f0;
  display: flex; align-items: center; justify-content: center; color: #aaa; font-size: 1.5rem;
}
.thread-card .card-body { padding: 8px 12px; flex: 1; min-width: 0; }
.thread-card .card-meta { font-size: 11px; color: #888; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.thread-card .cat-tag {
  background: #1a3a6e; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 2px; white-space: nowrap;
}
.thread-card .res-count { color: #e8391a; font-weight: bold; }
.thread-card .card-title {
  font-size: 14px; font-weight: bold; color: #0d2146; line-height: 1.4; margin-bottom: 6px;
}
.thread-card .card-title a { color: #0d2146; }
.thread-card .card-title a:hover { color: #e8391a; text-decoration: none; }
.thread-card .card-excerpt { font-size: 12px; color: #555; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.thread-card .card-footer { margin-top: 6px; display: flex; justify-content: flex-end; }
.thread-card .read-more {
  font-size: 11px; color: #0066cc; border: 1px solid #aac; padding: 2px 10px; border-radius: 2px;
  background: #f5f8ff;
}
.thread-card .read-more:hover { background: #0066cc; color: #fff; text-decoration: none; }

/* === Section Title === */
.section-ttl {
  background: linear-gradient(to bottom, #2a5298, #1a3a6e);
  color: #fff; font-size: 13px; font-weight: bold; padding: 7px 12px;
  margin-bottom: 0; border-bottom: 2px solid #e8391a;
  display: flex; align-items: center; gap: 6px;
}
.section-ttl .num { background: #e8391a; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 10px; margin-left: auto; }

/* === Single Post (スレッド形式) === */
.single-wrap { background: #fff; border: 1px solid #ccc; }

.post-header-bar {
  background: linear-gradient(to bottom, #2a5298, #1a3a6e);
  color: #fff; padding: 8px 12px;
  border-bottom: 2px solid #e8391a;
}
.post-header-bar .post-cat { background: #e8391a; color: #fff; font-size: 10px; padding: 1px 8px; border-radius: 2px; margin-bottom: 5px; display: inline-block; }
.post-header-bar h1 { font-size: 15px; font-weight: bold; color: #fff; line-height: 1.4; }

.post-meta-bar { background: #f0f4ff; border-bottom: 1px solid #dde4f0; padding: 5px 12px; font-size: 11px; color: #666; display: flex; gap: 15px; flex-wrap: wrap; }

.post-featured { padding: 12px; border-bottom: 1px solid #eee; text-align: center; }
.post-featured img { max-width: 500px; margin: 0 auto; border: 1px solid #ddd; }

/* スレッド投稿スタイル */
.thread-body { padding: 0 12px 12px; }
.thread-intro { padding: 12px 0; font-size: 13px; border-bottom: 1px dashed #ddd; margin-bottom: 8px; }

.res-wrap { margin-bottom: 2px; }
.res-block {
  border: 1px solid #cce; background: #f6f6ff;
  margin-bottom: 8px; font-size: 13px;
}
.res-block.highlight { border-color: #e8391a; background: #fff5f5; }
.res-header {
  background: #e8e8f8; border-bottom: 1px solid #cce;
  padding: 3px 8px; font-size: 11px; color: #444;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.res-num { font-weight: bold; color: #0066cc; }
.res-name { color: #117711; font-weight: bold; }
.res-date { color: #888; }
.res-id { color: #888; }
.res-body { padding: 8px 12px; line-height: 1.7; color: #222; }
.res-body p { margin-bottom: 4px; }
.res-body img { max-width: 100%; border: 1px solid #ddd; margin: 6px 0; }
.res-anchor { color: #0066cc; font-weight: bold; }
.res-anchor:hover { color: #e8391a; }
.res-quote { color: #117711; font-size: 12px; }

/* 引用・コメント装飾 */
.matome-comment {
  background: #fffde7; border: 1px solid #f5c518; border-left: 4px solid #f5c518;
  padding: 10px 14px; margin: 8px 0; border-radius: 2px; font-size: 13px;
}
.matome-comment .comment-label { font-size: 11px; color: #a07000; font-weight: bold; margin-bottom: 5px; }

.spoiler-box { background: #f0f0f0; border: 1px solid #ccc; padding: 10px; margin: 8px 0; font-size: 12px; }
.spoiler-box .sp-title { font-weight: bold; color: #e8391a; margin-bottom: 5px; }

/* Post Footer */
.post-footer { border-top: 1px solid #eee; padding: 12px; background: #fafafa; }
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 14px; border-radius: 3px; font-size: 12px; font-weight: bold; color: #fff;
}
.share-btn.tw { background: #1da1f2; }
.share-btn.fb { background: #1877f2; }
.share-btn.line { background: #06c755; }
.share-btn:hover { opacity: 0.85; text-decoration: none; color: #fff; }

.tags-area { margin-top: 8px; }
.tags-area .tag-label { font-size: 11px; color: #888; margin-bottom: 5px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-item { background: #e8e8f8; border: 1px solid #cce; color: #0066cc; font-size: 11px; padding: 2px 8px; border-radius: 2px; }
.tag-item:hover { background: #0066cc; color: #fff; border-color: #0066cc; text-decoration: none; }

/* Related Posts */
.related-wrap { margin-top: 10px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.related-item { border: 1px solid #ccc; background: #fff; }
.related-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.related-item .r-no-thumb { background: #dde4f0; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; color: #aaa; }
.related-item .r-title { padding: 5px 7px; font-size: 11px; color: #0d2146; font-weight: bold; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-item:hover { border-color: #0066cc; }
.related-item:hover .r-title { color: #e8391a; }

/* === Sidebar === */
.widget-box { background: #fff; border: 1px solid #ccc; margin-bottom: 10px; }
.widget-title-bar {
  background: linear-gradient(to bottom, #2a5298, #1a3a6e);
  color: #fff; font-size: 12px; font-weight: bold; padding: 6px 10px;
  border-bottom: 2px solid #e8391a;
}
.widget-body { padding: 8px; }

.sb-thread-list { list-style: none; }
.sb-thread-item { display: flex; gap: 6px; padding: 6px 0; border-bottom: 1px solid #eee; align-items: flex-start; }
.sb-thread-item:last-child { border-bottom: none; }
.sb-rank { width: 18px; height: 18px; border-radius: 50%; background: #1a3a6e; color: #fff; font-size: 10px; font-weight: bold; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.sb-rank.r1 { background: #d4ac0d; }
.sb-rank.r2 { background: #808080; }
.sb-rank.r3 { background: #a04000; }
.sb-thread-title { font-size: 12px; color: #0d2146; line-height: 1.4; font-weight: bold; }
.sb-thread-title a { color: #0d2146; }
.sb-thread-title a:hover { color: #e8391a; text-decoration: none; }
.sb-thumb { width: 50px; height: 37px; object-fit: cover; border: 1px solid #ddd; flex-shrink: 0; }

.sb-new-list { list-style: none; }
.sb-new-item { padding: 5px 0; border-bottom: 1px dashed #eee; font-size: 12px; display: flex; gap: 5px; }
.sb-new-item:last-child { border-bottom: none; }
.sb-new-item::before { content: "●"; color: #e8391a; flex-shrink: 0; }
.sb-new-item a { color: #0066cc; }
.sb-new-item a:hover { color: #e8391a; text-decoration: none; }

.cat-list { list-style: none; }
.cat-list li { border-bottom: 1px solid #eee; }
.cat-list li:last-child { border-bottom: none; }
.cat-list a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 8px; font-size: 12px; color: #0066cc;
}
.cat-list a:hover { background: #f0f4ff; text-decoration: none; }
.cat-count { background: #1a3a6e; color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 10px; }

.sb-tag-cloud { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; }
.sb-tag { background: #eef; border: 1px solid #cce; color: #0066cc; font-size: 11px; padding: 2px 7px; border-radius: 2px; }
.sb-tag:hover { background: #0066cc; color: #fff; border-color: #0066cc; text-decoration: none; }

/* === Pagination === */
.pagination { display: flex; justify-content: center; gap: 3px; margin: 15px 0; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 30px; border-radius: 2px; font-size: 12px;
  background: #fff; color: #0066cc; border: 1px solid #ccc; padding: 0 6px;
}
.pagination .current { background: #1a3a6e; color: #fff; border-color: #1a3a6e; }
.pagination a:hover { background: #0066cc; color: #fff; border-color: #0066cc; text-decoration: none; }

/* === Footer === */
#site-footer { background: #1a3a6e; color: rgba(255,255,255,0.8); margin-top: 15px; border-top: 3px solid #e8391a; }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 20px 8px 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 12px; justify-content: center; }
.footer-links a { color: #aac4ff; font-size: 12px; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-copy { text-align: center; font-size: 11px; color: rgba(255,255,255,0.5); }
.footer-disclaimer { text-align: center; font-size: 10px; color: rgba(255,255,255,0.35); margin-top: 6px; }

/* === Scroll Top === */
#scroll-top { position: fixed; bottom: 20px; right: 15px; width: 40px; height: 40px; background: #1a3a6e; border: 2px solid #aac4ff; color: #fff; border-radius: 3px; display: none; align-items: center; justify-content: center; font-size: 1.1rem; cursor: pointer; z-index: 999; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
#scroll-top.show { display: flex; }

/* === Notice Bar === */
.notice-bar { background: #e8391a; color: #fff; text-align: center; padding: 5px; font-size: 12px; font-weight: bold; }

/* === Responsive === */
@media (max-width: 768px) {
  .content-area { flex-direction: column; }
  .sidebar { width: 100%; }
  .thread-card .card-thumb { width: 80px; }
  .thread-card .card-thumb img { width: 80px; height: 60px; }
  .thread-card .no-thumb-sm { width: 80px; height: 60px; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .res-header { font-size: 10px; }
}

/* === Shortcode: [res] === */
.thread-source {
  font-size: 11px; color: #888; padding: 6px 12px;
  border-bottom: 1px dashed #ddd; margin-bottom: 4px; background: #fafafa;
}
.sc-res-block {
  border: 1px solid #c8c8e0; background: #f8f8ff;
  margin-bottom: 5px; font-size: 13px; position: relative;
}
.sc-res-block .sc-res-head {
  background: #eaeaf5; border-bottom: 1px solid #c8c8e0;
  padding: 3px 8px; font-size: 11px; color: #444;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.sc-res-block .sc-res-num { font-weight: bold; color: #0055bb; min-width: 20px; }
.sc-res-block .sc-res-name { color: #117711; font-weight: bold; }
.sc-res-block .sc-res-date { color: #999; }
.sc-res-block .sc-res-id { color: #bbb; font-size: 10px; }
.sc-res-block .sc-res-body { padding: 7px 12px; line-height: 1.8; color: #222; }
.sc-res-block .sc-res-body p { margin: 0 0 2px; }
.sc-res-block .sc-res-body img { max-width: 100%; margin: 4px 0; }

/* ハイライトレス（注目） */
.sc-res-block.highlight {
  border-color: #e8391a;
  background: #fff8f6;
  border-left: 4px solid #e8391a;
}
.sc-res-block.highlight .sc-res-head {
  background: #ffeae6;
  border-bottom-color: #f5a090;
}
.sc-res-block.highlight::before {
  content: "★ 注目";
  position: absolute; top: 3px; right: 6px;
  font-size: 10px; font-weight: bold;
  color: #e8391a; letter-spacing: 0.5px;
}

/* まとめコメント [matome] */
.sc-matome {
  background: #f9f5ff; border: 1px solid #b090e8;
  border-left: 4px solid #7c4dff;
  margin: 12px 0; font-size: 13px; border-radius: 2px;
  overflow: hidden;
}
.sc-matome-head {
  background: #7c4dff; color: #fff;
  padding: 5px 12px; font-size: 11px; font-weight: bold;
  display: flex; align-items: center; gap: 6px;
}
.sc-matome-head::before {
  content: "✎"; font-size: 13px;
}
.sc-matome-body {
  padding: 10px 14px; line-height: 1.8; color: #2a1a4a;
}

/* 導入文 [intro] */
.sc-intro {
  background: #fff;
  border: 1px solid #c8c8e0;
  border-top: 3px solid #1a3a6e;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.9;
  color: #222;
}
.sc-intro-title {
  font-size: 12px;
  font-weight: bold;
  color: #1a3a6e;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px dashed #c8c8e0;
}
.sc-intro-body p { margin: 0 0 6px; }
.sc-intro-body p:last-child { margin-bottom: 0; }

/* ピックアップコメント [pickup] */
.sc-pickup {
  background: #e8f5e9; border: 1px solid #81c784;
  border-left: 4px solid #43a047;
  padding: 8px 12px; margin: 8px 0; font-size: 13px;
  border-radius: 2px;
}
.sc-pickup-badge {
  display: inline-block; background: #43a047; color: #fff;
  font-size: 10px; font-weight: bold; padding: 1px 8px;
  border-radius: 10px; margin-bottom: 5px;
}
.sc-pickup-body { color: #1b5e20; line-height: 1.7; }

/* アンカーリンク */
.anc-link { color: #0055bb; font-weight: bold; }
.anc-link:hover { color: #e8391a; }
.res-quote { color: #117711; font-size: 12px; display: block; }

/* ===== 忍者ADMAX 広告エリア ===== */
.admax-wrap {
  text-align: center;
  margin: 12px 0;
  overflow: hidden;
}
.admax-top  { margin: 8px 0 12px; }
.admax-bottom { margin: 12px 0 8px; }

/* スマホ表示（デフォルト） */
.admax-pc { display: none; }
.admax-sp { display: block; }

/* PC表示（768px以上） */
@media (min-width: 768px) {
  .admax-pc { display: block; }
  .admax-sp { display: none; }
}

/* ===== フッター X(Twitter) リンク ===== */
.footer-sns {
  text-align: center;
  margin-bottom: 8px;
}
.footer-x-link {
  display: inline-block;
  background: #000;
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
  letter-spacing: 0.03em;
}
.footer-x-link:hover {
  background: #333;
  color: #fff;
}
