/*
Theme Name: PokiBlog
Theme URI: https://popincho.com
Description: PokiAdmin auto-generated theme
Version: 1.0
Text Domain: pokiblog
*/
:root {
  --bg: #0d0d12;
  --bg2: #161620;
  --accent: #e8305a;
  --accent2: #ff5577;
  --pink: #ff2d6b;
  --bg3: #1e1e2e;
  --border: #2a2a3d;
  --text: #f0f0f5;
  --text2: #8888aa;
  --gold: #ffcc44;
}
body { font-family: 'Noto Sans JP', sans-serif; }

/* ===== PokiBlog BASE CSS ===== */
/* breakpoints: SP(<600) SM(600-767) TB(768-1023) PC(1024-1279) WD(1280+) */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--bg, #0f0f15);
    color: var(--text, #f0f0f5);
    font-size: 15px;
    line-height: 1.75;
    font-family: 'Noto Sans JP', 'Yu Gothic UI', 'Hiragino Sans', sans-serif;
}
@media (min-width: 1024px) {
    body { font-size: 16px; line-height: 1.7; }
}

a { color: var(--accent2, #9b7fff); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

/* ヘッダー */
.po-header {
    background: var(--bg2, #161620);
    border-bottom: 1px solid var(--border, #2a2a3d);
    padding: 14px 0;
}
.po-header .inner {
    max-width: 1160px; margin: 0 auto; padding: 0 16px;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 8px;
}
.site-title { font-size: 22px; font-weight: 700; color: var(--accent2, #9b7fff); }
.site-title a { color: inherit; }
.site-desc { font-size: 11px; color: var(--text2, #8888aa); margin-top: 2px; }

/* ヘッダーバナー PC/SP 出し分け */
.po-banner-pc { display: none; text-align: center; padding: 8px 0; background: var(--bg, #0d0d12); }
.po-banner-sp { display: block; text-align: center; padding: 6px 0; background: var(--bg, #0d0d12); }
@media (min-width: 768px) {
    .po-banner-pc { display: block; }
    .po-banner-sp { display: none; }
}

/* ナビ */
.site-nav {
    background: var(--bg3, #1e1e2e);
    border-bottom: 1px solid var(--border, #2a2a3d);
    overflow-x: auto;
}
.site-nav .inner {
    max-width: 1160px; margin: 0 auto; padding: 0 16px;
    display: flex; gap: 0;
}
.site-nav a {
    display: block; padding: 10px 14px; font-size: 13px;
    color: var(--text2, #8888aa); white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover { color: var(--text, #f0f0f5); border-bottom-color: var(--accent, #e8305a); text-decoration: none; }

/* メインレイアウト共通（パターンCSSで上書き） */
.po-content {
    max-width: 1160px; margin: 0 auto; padding: 20px 16px;
    display: grid; grid-template-columns: 1fr 280px; gap: 24px;
}
@media (max-width: 1023px) {
    .po-content { grid-template-columns: 1fr; }
}

/* 記事グリッド — デフォルト2列 */
.po-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
/* SP: 1列 */
@media (max-width: 599px) {
    .po-grid { grid-template-columns: 1fr; gap: 12px; }
}
/* TB/SM: 2列 */
@media (min-width: 600px) and (max-width: 1023px) {
    .po-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* 記事カード */
.po-card {
    background: var(--bg2, #161620);
    border: 1px solid var(--border, #2a2a3d);
    border-radius: 8px; overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.po-card:hover {
    border-color: var(--accent, #e8305a);
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.po-card .thumb {
    width: 100%; padding-top: 56.25%;
    background: var(--bg3, #1e1e2e); position: relative; overflow: hidden;
}
.po-card .thumb img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.3s ease;
}
.po-card:hover .thumb img { transform: scale(1.05); }
.po-card .thumb .duration {
    position: absolute; bottom: 5px; right: 5px;
    background: rgba(0,0,0,0.8); color: #fff; font-size: 11px;
    padding: 1px 6px; border-radius: 3px;
}
.po-card .info { padding: 10px; }
.po-card .info h2 {
    font-size: 13px; font-weight: 500; line-height: 1.5;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 5px;
}
@media (min-width: 1024px) {
    .po-card .info h2 { font-size: 14px; }
}
.po-card .info h2 a { color: var(--text, #f0f0f5); }
.po-card .info h2 a:hover { color: var(--accent2, #ff5577); text-decoration: none; }
.po-card .tags { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.po-card .tags a {
    font-size: 10px; padding: 1px 5px; border-radius: 3px;
    background: var(--bg3, #1e1e2e); color: var(--text2, #8888aa);
}
.po-card .meta {
    font-size: 11px; color: var(--text2, #8888aa); margin-top: 5px;
    display: flex; gap: 8px; flex-wrap: wrap;
}

/* ページタイトル */
.page-title { margin-bottom: 18px; }
.page-title h1 {
    font-size: 18px; font-weight: 700; line-height: 1.4;
}
@media (min-width: 1024px) {
    .page-title h1 { font-size: 22px; }
}

/* サイドバー */
.po-sidebar { display: flex; flex-direction: column; gap: 16px; }
.po-widget {
    background: var(--bg2, #161620);
    border: 1px solid var(--border, #2a2a3d);
    border-radius: 8px; padding: 14px; overflow: hidden;
}
.po-widget-title {
    font-size: 14px; font-weight: 700; margin-bottom: 10px;
    padding-bottom: 8px; border-bottom: 2px solid var(--accent, #e8305a);
    color: var(--accent2, #ff5577);
}
.po-ad-wrap { max-width: 280px; overflow: hidden; }

/* 個別記事 */
.single-content {
    background: var(--bg2, #161620);
    border: 1px solid var(--border, #2a2a3d);
    border-radius: 8px; padding: 22px;
    min-width: 0;
}
.po-title {
    font-size: 18px; font-weight: 700; margin-bottom: 14px; line-height: 1.5;
}
@media (min-width: 1024px) {
    .po-title { font-size: 22px; }
}
.po-meta { font-size: 12px; color: var(--text2, #8888aa); margin-bottom: 14px; }
.po-entry {
    line-height: 1.8; font-size: 15px;
}
@media (min-width: 1024px) {
    .po-entry { font-size: 16px; }
}
.po-entry img { max-width: 100%; height: auto; border-radius: 4px; margin: 8px 0; }
.po-entry a { color: var(--accent2, #ff5577); }
.po-entry p { margin-bottom: 12px; }

/* 動画ボタン */
.video-link { text-align: center; margin: 20px 0; }
.video-link a {
    display: inline-block; padding: 14px 40px;
    background: var(--pink, #ff2d6b); color: #fff;
    border-radius: 8px; font-weight: 700; font-size: 18px;
    transition: opacity 0.2s;
}
.video-link a:hover { opacity: 0.85; text-decoration: none; color: #fff; }

/* KOK広告 */
.kok-ads { margin: 22px 0; }
.article-bottom-parts { margin-top: 20px; }

/* ページネーション */
.pagination { margin-top: 24px; display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; }
.pagination a, .pagination span {
    display: inline-block; padding: 7px 13px;
    background: var(--bg2, #161620);
    border: 1px solid var(--border, #2a2a3d);
    border-radius: 4px; font-size: 13px;
    color: var(--text2, #8888aa);
}
.pagination .current {
    background: var(--accent, #e8305a); color: #fff;
    border-color: var(--accent, #e8305a);
}

/* フッター */
.po-footer {
    background: var(--bg2, #161620);
    border-top: 1px solid var(--border, #2a2a3d);
    padding: 20px 0; margin-top: 36px;
}
.po-footer .inner {
    max-width: 1160px; margin: 0 auto; padding: 0 16px;
}
.footer-widgets {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-bottom: 18px;
}
@media (max-width: 767px) {
    .footer-widgets { grid-template-columns: 1fr; }
}
.footer-bottom {
    display: flex; gap: 16px; align-items: center;
    font-size: 11px; color: var(--text2, #8888aa); flex-wrap: wrap;
}
.footer-bottom a { color: var(--text2, #8888aa); }

/* SP時ナビ調整 */
@media (max-width: 599px) {
    .site-nav a { padding: 9px 11px; font-size: 12px; }
    .po-header .inner { padding: 0 12px; }
    .po-content { padding: 14px 12px; }
}


/* ===== magazine パターン固有CSS ===== */
/* サイドバー右280px */
.po-content { grid-template-columns: 1fr 280px; }
@media (max-width: 1023px) { .po-content { grid-template-columns: 1fr; } }

/* PC: グリッド3列 */
@media (min-width: 1024px) { .po-grid { grid-template-columns: 1fr 1fr 1fr; } }

/* フィーチャード記事 */
.po-featured {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}
.po-featured a { display: block; text-decoration: none; }
.po-featured-thumb {
    position: relative; width: 100%; padding-top: 42%;
    overflow: hidden; background: var(--bg3, #1e1e2e);
}
.po-featured-thumb img {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.po-featured:hover .po-featured-thumb img { transform: scale(1.04); }
.po-featured-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 24px 20px 18px;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}
.po-featured-title {
    font-size: 18px; font-weight: 700; color: #fff;
    line-height: 1.5; margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}
@media (min-width: 1024px) {
    .po-featured-title { font-size: 22px; }
    .po-featured-thumb { padding-top: 38%; }
}
.po-featured-meta { font-size: 12px; color: rgba(255,255,255,0.75); }
@media (max-width: 599px) {
    .po-featured-thumb { padding-top: 56.25%; }
    .po-featured-title { font-size: 15px; }
    .po-featured-overlay { padding: 16px 12px 12px; }
}

