/*
Theme Name: AI副業ラボ
Theme URI: https://info-turedure.com
Author: AI副業ラボ
Description: 生成AI×Botで副業を仕組み化するリアルな記録
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;700;800&family=Noto+Sans+JP:wght@400;500;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg:       #0a0e17;
  --bg2:      #111827;
  --bg3:      #1a2235;
  --bg4:      #1e2a3a;
  --accent:   #00d4aa;
  --accent2:  #0ea5e9;
  --accent3:  #f59e0b;
  --text:     #e2e8f0;
  --text2:    #94a3b8;
  --text3:    #475569;
  --border:   #1e293b;
  --border2:  #2d3f55;
  --radius:   8px;
  --radius-lg:12px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent2); }

img { max-width: 100%; height: auto; display: block; }

/* ========== HEADER ========== */
#masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,14,23,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border2);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title a {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .03em;
}

.site-title span { color: var(--accent); }

.site-description-header {
  font-size: 11px;
  color: var(--text3);
  font-family: 'JetBrains Mono', monospace;
  margin-left: 12px;
  display: none;
}

@media (min-width: 768px) { .site-description-header { display: inline; } }

.header-left { display: flex; align-items: baseline; gap: 0; }

/* NAV */
#site-navigation ul {
  list-style: none;
  display: flex;
  gap: 4px;
}

#site-navigation ul li a {
  color: var(--text2);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: all .2s;
  font-family: 'Syne', sans-serif;
  font-weight: 500;
}

#site-navigation ul li a:hover {
  color: var(--accent);
  background: rgba(0,212,170,.08);
}

/* ========== LAYOUT ========== */
.site-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

@media (max-width: 900px) {
  .site-content { grid-template-columns: 1fr; }
}

/* ========== HERO ========== */
.hero-banner {
  background: var(--bg2);
  border-bottom: 1px solid var(--border2);
  padding: 48px 24px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,170,.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: -40px; left: 20%;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,212,170,.1);
  color: var(--accent);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0,212,170,.3);
  margin-bottom: 16px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .08em;
}

.hero-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-title span { color: var(--accent); }

.hero-desc {
  color: var(--text2);
  font-size: 14px;
  max-width: 560px;
  font-family: 'JetBrains Mono', monospace;
}

/* ========== SECTION LABEL ========== */
.section-label {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border2);
}

/* ========== CARD GRID ========== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
}

.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}

.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.post-card-thumb {
  height: 140px;
  background: var(--bg3);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  opacity: .4;
}

.post-card-cat {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,212,170,.15);
  color: var(--accent);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(0,212,170,.3);
  font-family: 'Syne', sans-serif;
  letter-spacing: .06em;
}

.post-card-body { padding: 16px; }

.post-card-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text);
  transition: color .2s;
}

.post-card:hover .post-card-title { color: var(--accent); }

.post-card-meta {
  color: var(--text3);
  font-size: 11px;
  display: flex;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
}

/* ========== FEATURED POST ========== */
.featured-post {
  background: var(--bg2);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  transition: border-color .2s;
}

.featured-post:hover { border-color: var(--accent); border-left-color: var(--accent); }

.featured-tag {
  display: inline-block;
  background: rgba(0,212,170,.1);
  color: var(--accent);
  font-size: 10px;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-family: 'Syne', sans-serif;
  letter-spacing: .06em;
}

.featured-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--text);
}

.featured-excerpt {
  color: var(--text2);
  font-size: 13px;
  margin-bottom: 14px;
  line-height: 1.7;
}

.btn-read {
  display: inline-block;
  background: rgba(0,212,170,.1);
  color: var(--accent);
  font-size: 12px;
  padding: 6px 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,212,170,.4);
  font-family: 'Syne', sans-serif;
  letter-spacing: .05em;
  transition: all .2s;
}

.btn-read:hover {
  background: rgba(0,212,170,.2);
  color: var(--accent);
}

/* ========== PAGINATION ========== */
.pagination {
  margin-top: 32px;
}

.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* paginate_links がul/liを出力しない場合 */
.pagination > a,
.pagination > span,
.nav-links > li > a,
.nav-links > li > span,
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border-radius: var(--radius);
  font-size: 13px;
  border: 1px solid var(--border2);
  color: var(--text2);
  transition: all .2s;
  text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
  background: rgba(0,212,170,.1);
  color: var(--accent);
  border-color: rgba(0,212,170,.4);
}

/* WordPressのデフォルトpaginationクラス対応 */
.posts-navigation,
.post-navigation {
  margin-top: 32px;
  display: flex;
  gap: 12px;
}

.posts-navigation .nav-previous a,
.posts-navigation .nav-next a,
.post-navigation .nav-previous a,
.post-navigation .nav-next a {
  display: inline-block;
  background: rgba(0,212,170,.1);
  color: var(--accent);
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(0,212,170,.4);
  transition: all .2s;
}

.posts-navigation .nav-previous a:hover,
.posts-navigation .nav-next a:hover {
  background: rgba(0,212,170,.2);
}

/* ========== SIDEBAR ========== */
.widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.widget-title {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border2);
}

/* Profile widget */
.profile-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--bg3);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
  overflow: hidden;
}

.profile-name {
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 6px;
}

.profile-bio {
  text-align: center;
  color: var(--text2);
  font-size: 12px;
  line-height: 1.6;
}

.profile-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 12px;
}

.profile-tag {
  background: var(--bg3);
  color: var(--text2);
  font-size: 10px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  font-family: 'JetBrains Mono', monospace;
}

/* Category list */
.cat-list { list-style: none; }

.cat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text2);
  transition: color .2s;
}

.cat-list li:last-child { border-bottom: none; }
.cat-list li:hover { color: var(--accent); }

.cat-list li a { color: inherit; }

.cat-count {
  background: var(--bg3);
  color: var(--accent);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
}

/* Tag cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud a {
  background: var(--bg3);
  color: var(--text2);
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 12px;
  border: 1px solid var(--border2);
  transition: all .2s;
}

.tag-cloud a:hover {
  color: var(--accent);
  border-color: rgba(0,212,170,.4);
  background: rgba(0,212,170,.06);
}

/* Recent posts in sidebar */
.recent-post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.recent-post-item:last-child { border-bottom: none; }

.recent-post-thumb {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  background: var(--bg3);
  flex-shrink: 0;
  overflow: hidden;
}

.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; }

.recent-post-title {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text);
  transition: color .2s;
}

.recent-post-title:hover { color: var(--accent); }

.recent-post-date {
  font-size: 10px;
  color: var(--text3);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 4px;
}

/* ========== SINGLE POST ========== */
.entry-header { margin-bottom: 32px; }

.entry-cat {
  display: inline-block;
  background: rgba(0,212,170,.1);
  color: var(--accent);
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0,212,170,.3);
  margin-bottom: 12px;
  font-family: 'Syne', sans-serif;
}

.entry-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;
}

.entry-meta {
  color: var(--text3);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  display: flex;
  gap: 16px;
}

.entry-thumbnail {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

/* Article body */
.entry-content { max-width: 760px; }

.entry-content h2 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  color: var(--text);
}

.entry-content h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 28px 0 12px;
  color: var(--text);
}

.entry-content p { margin-bottom: 20px; color: var(--text2); }

.entry-content ul, .entry-content ol {
  margin: 0 0 20px 20px;
  color: var(--text2);
}

.entry-content li { margin-bottom: 6px; }

.entry-content code {
  background: var(--bg3);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.entry-content pre {
  background: var(--bg3);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 20px;
}

.entry-content pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  color: var(--text);
}

.entry-content blockquote {
  border-left: 3px solid var(--accent2);
  padding: 12px 20px;
  background: var(--bg2);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
  color: var(--text2);
  font-style: italic;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}

.entry-content th {
  background: var(--bg3);
  color: var(--accent);
  padding: 10px 14px;
  text-align: left;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  letter-spacing: .05em;
  border: 1px solid var(--border2);
}

.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  color: var(--text2);
}

.entry-content tr:nth-child(even) td { background: var(--bg2); }

/* ========== FOOTER ========== */
#colophon {
  background: var(--bg2);
  border-top: 1px solid var(--border2);
  padding: 40px 24px 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

.footer-title {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.footer-title span { color: var(--accent); }

.footer-desc {
  color: var(--text3);
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.7;
}

.footer-widget-title {
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-links { list-style: none; }

.footer-links li { margin-bottom: 8px; }

.footer-links a {
  color: var(--text3);
  font-size: 13px;
  transition: color .2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text3);
  font-family: 'JetBrains Mono', monospace;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .header-inner { padding: 0 16px; }
  #site-navigation { display: none; }
  .site-content { padding: 24px 16px; }
  .hero-banner { padding: 32px 16px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
