/*
Theme Name: Juggler Analysis Blog
Theme URI: https://juggler-analysis.com/
Author: Juggler Analysis
Description: ジャグラーアナリシスのニュース・コラム専用テーマ
Version: 1.0.0
Text Domain: juggler-analysis
*/

:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0b192b;
  --panel-soft: #0d2239;
  --ink: #f6f9fc;
  --muted: #a9b8c8;
  --blue: #45b4ff;
  --green: #45e39a;
  --gold: #ffd063;
  --line: rgba(255,255,255,.12);
  font-family: "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 80% 2%, rgba(41,133,199,.16), transparent 26rem), var(--bg);
  color: var(--ink);
  line-height: 1.8;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.blog-shell { width: min(calc(100% - 56px), 1148px); margin: 0 auto; }

.site-header {
  width: min(100%, 1260px);
  min-height: 98px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand-mark {
  width: 62px;
  height: 62px;
  display: block;
  border: 1px solid rgba(100,194,255,.55);
  border-radius: 13px;
  object-fit: cover;
  box-shadow: 0 7px 20px rgba(27,125,205,.28);
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.25rem; line-height: 1.2; }
.brand small { margin-top: 4px; color: #7cc6f4; font-size: .66rem; font-weight: 900; letter-spacing: .15em; }
.site-header nav { display: flex; align-items: center; gap: 20px; }
.site-header nav a { color: #d5e1ec; text-decoration: none; font-size: .95rem; font-weight: 900; }
.site-header .nav-current { color: var(--blue); }
.site-header .nav-cta { border: 1px solid rgba(83,184,255,.58); border-radius: 10px; padding: 10px 18px; background: rgba(44,146,221,.14); }

.blog-hero { padding: 72px 0 62px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(110deg, rgba(7,17,31,.97), rgba(10,28,48,.82)); }
.eyebrow { margin: 0 0 14px; color: #72c6ff; font-size: .74rem; font-weight: 900; letter-spacing: .2em; }
.blog-hero h1 { margin: 0; font-size: clamp(2.45rem, 6vw, 4.2rem); line-height: 1.18; letter-spacing: -.045em; }
.blog-hero p:last-child { max-width: 760px; margin: 22px 0 0; color: #c0ccda; }

.blog-main { padding: 70px 0 96px; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.post-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(13,34,57,.92), rgba(9,23,39,.96)); box-shadow: 0 18px 48px rgba(0,0,0,.22); }
.post-card__image { display: block; aspect-ratio: 16/9; overflow: hidden; background: #10233a; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.post-card:hover .post-card__image img { transform: scale(1.025); }
.post-card__body { padding: 26px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; color: #7fb9df; font-size: .73rem; font-weight: 800; }
.post-card h2 { margin: 13px 0 0; font-size: clamp(1.25rem, 2.7vw, 1.65rem); line-height: 1.42; letter-spacing: -.025em; }
.post-card h2 a { text-decoration: none; }
.post-excerpt { margin: 15px 0 0; color: var(--muted); font-size: .9rem; }
.read-more { display: inline-flex; margin-top: 18px; color: var(--green); text-decoration: none; font-weight: 900; }

.article-wrap { width: min(calc(100% - 56px), 900px); margin: 0 auto; padding: 62px 0 96px; }
.article-header { padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.article-header h1 { margin: 14px 0 0; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.3; letter-spacing: -.04em; }
.article-thumbnail { margin: 34px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); }
.article-thumbnail img { width: 100%; display: block; }
.article-content { margin-top: 42px; color: #dce7f0; font-size: 1rem; overflow-wrap: anywhere; }
.article-content h2 { margin: 54px 0 18px; padding-left: 16px; border-left: 4px solid var(--green); font-size: 1.75rem; line-height: 1.4; }
.article-content h3 { margin: 38px 0 14px; color: #eaf6ff; font-size: 1.35rem; }
.article-content p { margin: 0 0 1.35em; }
.article-content a { color: #72c6ff; }
.article-content blockquote { margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--blue); background: rgba(69,180,255,.07); color: #c7d7e5; }
.article-content table { width: 100%; border-collapse: collapse; margin: 28px 0; }
.article-content th, .article-content td { padding: 12px; border: 1px solid var(--line); text-align: left; }
.article-content th { background: rgba(69,180,255,.09); }

.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { min-width: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; text-align: center; text-decoration: none; }
.page-numbers.current { border-color: rgba(69,227,154,.55); background: rgba(69,227,154,.12); color: var(--green); }
.empty-posts { padding: 50px 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); color: var(--muted); text-align: center; }

.site-footer { border-top: 1px solid var(--line); color: #7f91a6; }
.site-footer .blog-shell { padding: 30px 0 42px; display: flex; justify-content: space-between; gap: 24px; }
.site-footer a { color: #a9b8c8; text-decoration: none; font-weight: 800; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }

@media (max-width: 760px) {
  .site-header { min-height: 74px; padding: 10px 14px; gap: 12px; }
  .brand { gap: 9px; }
  .brand-mark { width: 44px; height: 44px; border-radius: 10px; }
  .brand strong { font-size: .86rem; }
  .brand small { font-size: .52rem; }
  .site-header nav { gap: 8px; }
  .site-header nav a:not(.nav-cta) { display: none; }
  .site-header .nav-cta { padding: 8px 10px; font-size: .7rem; }
  .blog-shell { width: calc(100% - 28px); }
  .blog-hero { padding: 52px 0 45px; }
  .blog-main { padding: 38px 0 70px; }
  .post-grid { grid-template-columns: 1fr; gap: 16px; }
  .post-card { border-radius: 17px; }
  .post-card__body { padding: 20px 18px; }
  .article-wrap { width: calc(100% - 28px); padding: 42px 0 70px; }
  .article-header h1 { font-size: 2rem; }
  .article-thumbnail { border-radius: 16px; }
  .article-content { margin-top: 30px; font-size: .94rem; }
  .article-content h2 { margin-top: 42px; font-size: 1.45rem; }
  .article-content table { display: block; overflow-x: auto; }
  .site-footer .blog-shell { flex-direction: column; padding: 24px 0 34px; }
}

