/*
Theme Name: AIOscope Column
Description: AIOscope（aio-seo.jp）のLPデザインに合わせたコラム用WordPressテーマ
Author: Search Craft
Version: 1.0.0
Text Domain: aioscope-column
*/

:root {
  --bg: #FAF9F6;
  --ink: #1A1A2E;
  --ink-soft: #5A5A72;
  --accent: #6C5CE7;
  --accent-soft: #E8E6FF;
  --success: #00B894;
  --success-soft: #DFF8F0;
  --warn: #E17055;
  --border: #E4E1DA;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; background: var(--bg); color: var(--ink); line-height: 1.8; }
h1, h2, h3, h4 { font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 700; letter-spacing: 0.02em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===== Header（LPと共通デザイン） ===== */
header.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250,249,246,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.logo { font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.logo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.nav-links { display: flex; gap: 2rem; font-size: 14px; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.is-active { color: var(--accent); }
.btn-nav { background: var(--ink); color: #fff; border: none; border-radius: 999px; padding: 0.6rem 1.4rem; font-size: 14px; font-weight: 500; cursor: pointer; font-family: inherit; transition: background 0.2s; display: inline-block; }
.btn-nav:hover { background: var(--accent); color: #fff; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ===== Footer（LPと共通デザイン） ===== */
footer.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; margin-top: 4rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--accent); }

/* ===== Column common ===== */
.section { padding: 3rem 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--accent); font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.6rem; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.page-head { padding: 2.5rem 0 1.5rem; }
.page-head h1 { font-size: 2rem; }
.page-head p.lead { color: var(--ink-soft); font-size: 14.5px; margin-top: 0.6rem; }

/* ===== Column list (archive/home) ===== */
.column-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; margin-top: 1.5rem; }
@media (max-width: 900px) { .column-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .column-grid { grid-template-columns: 1fr; } }

.column-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.18s, box-shadow 0.18s; }
.column-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(26,26,46,0.08); }
.column-card .thumb { aspect-ratio: 16/9; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.column-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.column-card .thumb .thumb-fallback { color: var(--accent); font-family: 'Zen Kaku Gothic New', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: 0.05em; }
.column-card .body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.column-card .meta { font-size: 12px; color: var(--ink-soft); display: flex; gap: 0.6rem; align-items: center; }
.column-card .cat { background: var(--accent-soft); color: var(--accent); font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 11px; }
.column-card h2, .column-card h3 { font-size: 16.5px; line-height: 1.55; }
.column-card h2 a, .column-card h3 a { transition: color 0.15s; }
.column-card:hover h2 a, .column-card:hover h3 a { color: var(--accent); }
.column-card .excerpt { font-size: 13px; color: var(--ink-soft); line-height: 1.7; flex: 1; }
.column-card .read-more { font-size: 12.5px; color: var(--accent); font-weight: 500; margin-top: auto; }

.column-empty { text-align: center; padding: 4rem 1rem; color: var(--ink-soft); }

/* ===== Pagination ===== */
.column-pagination { display: flex; justify-content: center; gap: 0.5rem; margin: 3rem 0 1rem; flex-wrap: wrap; }
.column-pagination a, .column-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 0.7rem; border-radius: 10px; border: 1px solid var(--border); font-size: 13.5px; color: var(--ink-soft); background: #fff; }
.column-pagination a:hover { border-color: var(--accent); color: var(--accent); }
.column-pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }

/* ===== Single article ===== */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.article-head { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.article-head .cat { display: inline-block; background: var(--accent-soft); color: var(--accent); font-weight: 700; padding: 0.3rem 0.9rem; border-radius: 999px; font-size: 12px; margin-bottom: 1rem; }
.article-head h1 { font-size: 1.85rem; line-height: 1.5; margin-bottom: 1rem; }
.article-meta { display: flex; align-items: center; gap: 1rem; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.article-meta .author { display: flex; align-items: center; gap: 0.5rem; }
.article-meta .avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); }

.article-thumb { margin-bottom: 2.5rem; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; background: var(--accent-soft); }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }

.article-body { font-size: 16px; line-height: 1.95; padding-bottom: 3rem; }
.article-body h2 { font-size: 1.4rem; margin: 2.5rem 0 1rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--accent-soft); }
.article-body h3 { font-size: 1.15rem; margin: 2rem 0 0.85rem; }
.article-body p { margin: 0 0 1.4rem; }
.article-body ul, .article-body ol { margin: 0 0 1.4rem; padding-left: 1.5rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { font-weight: 700; }
.article-body blockquote { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 1rem 1.4rem; margin: 0 0 1.4rem; border-radius: 0 8px 8px 0; color: var(--ink); }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }
.article-body img, .article-body svg, .article-body figure { margin: 1.5rem auto; }
.article-body figcaption { text-align: center; font-size: 12.5px; color: var(--ink-soft); margin-top: 0.5rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 0 0 1.4rem; font-size: 14.5px; }
.article-body table th, .article-body table td { border: 1px solid var(--border); padding: 0.6rem 0.8rem; text-align: left; }
.article-body table th { background: var(--bg); font-weight: 700; }
.article-body pre { background: #1A1A2E; color: #E8E6FF; padding: 1rem 1.2rem; border-radius: 10px; overflow-x: auto; font-size: 13.5px; margin: 0 0 1.4rem; }
.article-body code { background: var(--accent-soft); color: var(--accent); padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.9em; }
.article-body pre code { background: none; color: inherit; padding: 0; }

/* 記事内のカスタムcalloutクラスとの色衝突を避けつつ整える */
.article-body .callout { border-radius: 4px; margin: 0 0 1.5rem; }

.article-cta { background: var(--accent-soft); border-radius: 16px; padding: 2rem; text-align: center; margin: 3rem 0; }
.article-cta h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.article-cta p { color: var(--ink-soft); font-size: 14px; margin-bottom: 1.2rem; }
.article-cta .btn-primary { display: inline-block; background: var(--accent); color: #fff; border: none; border-radius: 999px; padding: 0.8rem 1.8rem; font-size: 14px; font-weight: 500; }
.article-cta .btn-primary:hover { opacity: 0.9; }

.article-nav { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 0; border-top: 1px solid var(--border); margin-top: 2rem; font-size: 13.5px; }
.article-nav a { color: var(--ink-soft); max-width: 45%; }
.article-nav a:hover { color: var(--accent); }
.article-nav .label { display: block; font-size: 11px; color: var(--ink-soft); margin-bottom: 0.3rem; letter-spacing: 0.05em; }
.article-nav .next { text-align: right; margin-left: auto; }

/* ===== 404 ===== */
.column-404 { text-align: center; padding: 5rem 1rem; }
.column-404 h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.column-404 p { color: var(--ink-soft); margin-bottom: 2rem; }
