/*
Theme Name: 男の増大塾 テーマ
Theme URI: https://otoko-zoudai-jyuku.com/
Description: 「男の増大塾」専用のYMYL健康メディア向けクリーンテーマ。テストステロン・精力・男性機能・体づくり・男磨きを医学的根拠ベースで発信。E-E-A-T重視（著者box・公開/更新日・免責・パンくず・関連記事）。SEOメタ/構造化データはRank Mathに一任。
Author: 男の増大塾 編集部
Version: 1.0.0
*/

/* ===== Design Tokens ===== */
:root{
  --navy:#16263d; --navy-dark:#0f1b2d; --navy-line:#26405f;
  --accent:#d8472e; --accent-dark:#b8351f; --accent-soft:#fdece8;
  --text:#23272e; --muted:#6b7280; --link:#1f5fa8;
  --bg:#f4f5f7; --card:#fff; --border:#e3e6ea; --soft:#f7f8fa;
  --radius:10px; --shadow:0 1px 3px rgba(20,30,50,.06),0 1px 2px rgba(20,30,50,.04);
}

/* ===== Reset / Base ===== */
*{box-sizing:border-box;}
html{-webkit-text-size-adjust:100%;}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;
  font-size:16px; line-height:1.85; -webkit-font-smoothing:antialiased;
}
img{max-width:100%; height:auto; display:block;}
a{color:var(--link); text-decoration:none;}
a:hover{text-decoration:underline;}
h1,h2,h3,h4{line-height:1.4; color:var(--navy-dark);}

/* ===== Notice bar (YMYL) ===== */
.notice-bar{
  background:var(--navy-dark); color:#dfe7f1; text-align:center;
  font-size:12.5px; padding:7px 12px; line-height:1.6;
}

/* ===== Header ===== */
.site-header{background:var(--navy); color:#fff;}
.header-inner{
  max-width:1120px; margin:0 auto; padding:16px 16px; display:flex;
  align-items:center; gap:20px; flex-wrap:wrap;
}
.site-brand{display:flex; flex-direction:column; gap:2px; margin-right:auto;}
.site-title{font-size:26px; font-weight:800; letter-spacing:.02em; margin:0;}
.site-title a{color:#fff;}
.site-title a:hover{text-decoration:none; opacity:.92;}
.site-desc{font-size:12.5px; color:#b9c6d8; margin:0;}
.header-search form{display:flex; align-items:stretch;}
.header-search input[type="search"]{
  border:1px solid var(--navy-line); background:#fff; color:#222; width:230px; max-width:46vw;
  padding:9px 12px; font-size:14px; border-radius:6px 0 0 6px; outline:none;
}
.header-search button{
  border:0; background:var(--accent); color:#fff; padding:0 16px; font-size:14px;
  font-weight:700; border-radius:0 6px 6px 0; cursor:pointer;
}
.header-search button:hover{background:var(--accent-dark);}

/* ===== Global nav ===== */
.global-nav{background:var(--navy-dark); border-top:1px solid var(--navy-line);}
.nav-inner{max-width:1120px; margin:0 auto; display:flex; flex-wrap:wrap;}
.nav-inner a{
  color:#e7edf5; font-size:14.5px; font-weight:600; padding:13px 18px; display:block;
  border-left:1px solid rgba(255,255,255,.06);
}
.nav-inner a:first-child{border-left:0;}
.nav-inner a:hover,.nav-inner a.current{background:var(--accent); color:#fff; text-decoration:none;}

/* ===== Layout ===== */
.container{max-width:1120px; margin:0 auto; padding:0 16px;}
.breadcrumb{font-size:12.5px; color:var(--muted); padding:12px 0; }
.breadcrumb a{color:var(--link);}
.breadcrumb span+span::before{content:"›"; margin:0 7px; color:#bcc3cd;}
.content-wrap{display:flex; gap:28px; align-items:flex-start; padding-bottom:40px;}
.main-col{flex:1; min-width:0;}
.sidebar{width:312px; flex-shrink:0; position:sticky; top:12px;}

/* ===== Section title ===== */
.section-title{
  font-size:19px; font-weight:800; color:var(--navy-dark); margin:4px 0 18px;
  padding-left:12px; border-left:5px solid var(--accent);
}
.section-title .count{font-size:13px; color:var(--muted); font-weight:600; margin-left:8px;}

/* ===== Post cards (list) ===== */
.post-list{display:grid; grid-template-columns:1fr 1fr; gap:20px;}
.post-card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden; box-shadow:var(--shadow); display:flex; flex-direction:column; transition:.15s;
}
.post-card:hover{box-shadow:0 6px 18px rgba(20,30,50,.10); transform:translateY(-2px);}
.post-card a.thumb{display:block; aspect-ratio:16/9; background:#eef0f3; overflow:hidden;}
.post-card a.thumb img{width:100%; height:100%; object-fit:cover;}
.post-card .no-thumb{width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:30px; color:#c3c9d2;}
.post-card .card-body{padding:14px 16px 16px; display:flex; flex-direction:column; gap:8px;}
.cat-badge{
  display:inline-block; background:var(--accent); color:#fff; font-size:11.5px; font-weight:700;
  padding:3px 10px; border-radius:4px; align-self:flex-start;
}
.cat-badge:hover{background:var(--accent-dark); text-decoration:none; color:#fff;}
.post-card h2,.post-card h3{font-size:16px; margin:0; line-height:1.5;}
.post-card h2 a,.post-card h3 a{color:var(--navy-dark);}
.post-card .excerpt{font-size:13px; color:var(--muted); line-height:1.7; margin:0;}
.post-card .meta{font-size:12px; color:#9aa3af; margin-top:auto;}
.post-card .date{font-size:12px; color:#98a1ad;}

/* ===== Single article ===== */
.article{background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden;}
.article-head{padding:22px 26px 0;}
.article-head .cat-badge{margin-bottom:12px;}
.article-title{font-size:27px; font-weight:800; line-height:1.45; margin:0 0 14px; color:var(--navy-dark);}
.article-meta{
  display:flex; flex-wrap:wrap; gap:16px; font-size:12.5px; color:var(--muted);
  border-top:1px solid var(--border); padding:12px 0; margin-top:4px;
}
.article-meta .author{color:var(--navy); font-weight:700;}
.featured{margin:0;}
.featured img{width:100%; height:auto;}
.entry-content{padding:8px 26px 26px; font-size:16.5px; line-height:1.95;}
.entry-content>*{margin:0 0 1.2em;}
.entry-content h2{
  font-size:22px; font-weight:800; margin:1.8em 0 .9em; padding:10px 16px;
  background:var(--soft); border-left:6px solid var(--accent); border-radius:0 6px 6px 0;
}
.entry-content h3{font-size:18.5px; font-weight:700; margin:1.6em 0 .7em; padding-bottom:6px; border-bottom:2px solid var(--border);}
.entry-content h4{font-size:16.5px; font-weight:700; margin:1.4em 0 .6em;}
.entry-content a{color:var(--link); text-decoration:underline;}
.entry-content ul,.entry-content ol{padding-left:1.5em;}
.entry-content li{margin:.4em 0;}
.entry-content img{border-radius:8px; margin:1em auto;}
.entry-content blockquote{
  margin:1.4em 0; padding:12px 18px; background:var(--soft); border-left:4px solid #c7ccd4; color:#444; border-radius:0 6px 6px 0;
}
.entry-content table{border-collapse:collapse; width:100%; font-size:14.5px; margin:1.2em 0;}
.entry-content th,.entry-content td{border:1px solid var(--border); padding:9px 12px; text-align:left;}
.entry-content th{background:var(--navy); color:#fff; font-weight:700;}
.entry-content tr:nth-child(even) td{background:#fafbfc;}
.entry-content strong{color:var(--navy-dark);}

/* 免責ボックス（記事内 .disclaimer も拾う） */
.entry-content .disclaimer,.disclaimer-box{
  background:#fff8ef; border:1px solid #f0d9b5; border-left:4px solid #e0a64b;
  border-radius:0 6px 6px 0; padding:12px 16px; font-size:13.5px; color:#6a5526; line-height:1.8;
}

/* ===== Author / E-E-A-T box ===== */
.author-box{
  display:flex; gap:14px; align-items:flex-start; margin:24px 26px; padding:16px;
  background:var(--soft); border:1px solid var(--border); border-radius:var(--radius);
}
.author-box .avatar{width:52px; height:52px; border-radius:50%; background:var(--navy); color:#fff; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:22px; font-weight:800;}
.author-box .a-name{font-weight:800; color:var(--navy-dark); font-size:15px; margin:0 0 4px;}
.author-box .a-desc{font-size:12.5px; color:var(--muted); margin:0; line-height:1.75;}

/* ===== Related ===== */
.related{margin-top:28px;}
.related .related-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:14px;}
.related-item{background:var(--card); border:1px solid var(--border); border-radius:8px; overflow:hidden; display:block; box-shadow:var(--shadow);}
.related-item:hover{text-decoration:none; box-shadow:0 5px 14px rgba(20,30,50,.10);}
.related-item .r-thumb{aspect-ratio:16/9; background:#eef0f3; overflow:hidden;}
.related-item .r-thumb img{width:100%; height:100%; object-fit:cover;}
.related-item .r-title{padding:9px 11px; font-size:12.5px; color:var(--navy-dark); line-height:1.55;}

/* ===== Share ===== */
.share-buttons{display:flex; gap:8px; flex-wrap:wrap; padding:0 26px 8px;}
.share-buttons a{flex:1; min-width:90px; text-align:center; color:#fff; font-size:13px; font-weight:700; padding:9px; border-radius:6px;}
.share-buttons a:hover{opacity:.9; text-decoration:none;}
.share-x{background:#111;} .share-fb{background:#1877f2;} .share-line{background:#06c755;}

/* ===== Sidebar widgets ===== */
.widget{background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); margin-bottom:22px; overflow:hidden;}
.widget-title{background:var(--navy); color:#fff; font-size:14px; font-weight:700; padding:11px 15px;}
.widget-body{padding:14px 15px;}
.profile-box{text-align:center;}
.profile-box .p-avatar{width:64px; height:64px; border-radius:50%; background:var(--navy); color:#fff; margin:0 auto 10px; display:flex; align-items:center; justify-content:center; font-size:26px; font-weight:800;}
.profile-box .p-name{font-weight:800; color:var(--navy-dark); margin:0 0 6px;}
.profile-box .p-desc{font-size:12.5px; color:var(--muted); line-height:1.8; margin:0 0 10px; text-align:left;}
.profile-box .p-link{display:inline-block; font-size:12.5px; color:var(--accent); font-weight:700;}
.rank-list{list-style:none; margin:0; padding:0;}
.rank-item{display:flex; gap:10px; padding:10px 0; border-bottom:1px dashed var(--border); align-items:flex-start;}
.rank-item:last-child{border-bottom:0;}
.rank-num{width:22px; height:22px; border-radius:50%; background:#c2cad6; color:#fff; font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; flex-shrink:0; margin-top:2px;}
.rank-item:nth-child(1) .rank-num{background:#e0a800;} .rank-item:nth-child(2) .rank-num{background:#a7adb6;} .rank-item:nth-child(3) .rank-num{background:#c87b3c;}
.rank-thumb{width:58px; height:43px; object-fit:cover; border-radius:4px; flex-shrink:0;}
.rank-title{font-size:12.5px; line-height:1.55; color:var(--navy-dark);}
.cat-links{list-style:none; margin:0; padding:0;}
.cat-links li{border-bottom:1px solid var(--border);}
.cat-links li:last-child{border-bottom:0;}
.cat-links a{display:flex; justify-content:space-between; padding:9px 2px; color:var(--text); font-size:13.5px;}
.cat-links a:hover{color:var(--accent); text-decoration:none;}
.cat-links .c-count{background:var(--soft); color:var(--muted); font-size:11px; border-radius:10px; padding:1px 9px;}

/* ===== Pagination ===== */
.pagination{display:flex; justify-content:center; gap:6px; flex-wrap:wrap; margin:26px 0;}
.pagination .page-numbers{
  min-width:38px; height:38px; display:flex; align-items:center; justify-content:center;
  background:var(--card); border:1px solid var(--border); border-radius:6px; color:var(--navy); font-size:14px; font-weight:600;
}
.pagination .page-numbers.current{background:var(--accent); border-color:var(--accent); color:#fff;}
.pagination a.page-numbers:hover{border-color:var(--accent); color:var(--accent); text-decoration:none;}

/* ===== Page (固定ページ) ===== */
.page-wrap{background:var(--card); border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:26px;}
.page-wrap h1{font-size:26px; margin:0 0 18px;}

/* ===== Empty / 404 ===== */
.empty-box{background:var(--card); border:1px solid var(--border); border-radius:var(--radius); padding:40px 24px; text-align:center; color:var(--muted);}

/* ===== Footer ===== */
.site-footer{background:var(--navy); color:#cdd7e4; margin-top:20px;}
.footer-inner{max-width:1120px; margin:0 auto; padding:26px 16px 18px;}
.footer-links{display:flex; flex-wrap:wrap; gap:16px; justify-content:center; margin-bottom:14px;}
.footer-links a{color:#dbe4ef; font-size:13px;}
.footer-disclaimer{font-size:11.5px; color:#93a2b6; text-align:center; line-height:1.8; max-width:760px; margin:0 auto 12px;}
.footer-copy{text-align:center; font-size:12px; color:#8696ac; border-top:1px solid var(--navy-line); padding-top:12px;}

/* ===== Scroll top ===== */
#to-top{position:fixed; right:16px; bottom:16px; width:42px; height:42px; background:var(--navy); color:#fff; border-radius:8px; display:none; align-items:center; justify-content:center; font-size:18px; cursor:pointer; z-index:99; box-shadow:0 3px 10px rgba(0,0,0,.25);}
#to-top.show{display:flex;}

/* 目次プラグイン(easy-table-of-contents)を本文幅に */
#ez-toc-container,.ez-toc-container{width:100%!important; max-width:100%!important; box-sizing:border-box;}

/* ===== Responsive ===== */
@media(max-width:880px){
  .content-wrap{flex-direction:column;}
  .sidebar{width:100%; position:static;}
  .post-list{grid-template-columns:1fr;}
  .related .related-grid{grid-template-columns:1fr 1fr;}
  .site-title{font-size:22px;}
  .header-inner{gap:12px;}
  .header-search{width:100%;}
  .header-search input[type="search"]{flex:1; max-width:none; width:auto;}
  .article-title{font-size:22px;}
  .entry-content{padding:8px 16px 20px; font-size:16px;}
  .article-head{padding:18px 16px 0;}
  .author-box,.share-buttons{margin-left:16px; margin-right:16px; padding-left:16px; padding-right:16px;}
}
html,body{overflow-x:hidden;}
