/* blog.css — Rabona AI shared blog styles */
/* Brand colors via :root in each article's <style> */

* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic Pro', sans-serif;
  color: #1A1A1A;
  line-height: 1.8;
  background: #F5F7FA;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
footer { margin-top: auto; }

/* ===== Header ===== */
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
}
header .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
header .logo {
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--brand, #008CCF);
  text-decoration: none;
}
header .back-link {
  font-size: 14px;
  color: var(--brand, #008CCF);
  text-decoration: none;
  font-weight: 600;
}
header .back-link:hover { text-decoration: underline; }

/* ===== Blog Hero ===== */
.blog-hero {
  background: linear-gradient(135deg, #C5E5F7 0%, #DCEEFB 50%, #E8F4FD 100%);
  padding: 64px 24px 56px;
  text-align: center;
}
.blog-hero .tag-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.blog-hero .tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(0,140,207,0.12);
  color: var(--brand, #008CCF);
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
}
.blog-hero h1 {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.5;
  margin-bottom: 16px;
  color: #1A1A1A;
}
.blog-hero .meta {
  font-size: 14px;
  color: #5B5B5F;
}
.blog-hero .meta span { margin: 0 8px; }

/* ===== Article ===== */
.article-wrap {
  max-width: 1000px;
  margin: -32px auto 60px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
  padding: 56px 56px 64px;
  position: relative;
  z-index: 1;
}
.article-wrap h2 {
  font-size: 24px;
  font-weight: 900;
  color: #1A1A1A;
  margin-top: 56px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--brand, #008CCF);
}
.article-wrap h3 {
  font-size: 20px;
  font-weight: 800;
  color: #1A1A1A;
  margin-top: 40px;
  margin-bottom: 14px;
}
.article-wrap p {
  font-size: 16px;
  color: #333;
  line-height: 2.0;
  margin-bottom: 20px;
}
.article-wrap ul, .article-wrap ol {
  margin: 16px 0 20px 24px;
  font-size: 16px;
  line-height: 2.0;
  color: #333;
}
.article-wrap li { margin-bottom: 8px; }
.article-wrap strong { color: #1A1A1A; }
.article-wrap a { color: var(--brand, #008CCF); text-decoration: underline; }
.article-wrap a:hover { color: var(--brand-dark, #006BA0); }
.article-wrap blockquote {
  border-left: 4px solid var(--brand, #008CCF);
  background: var(--brand-bg, #F0F9FF);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  color: #333;
}
.article-wrap pre {
  background: #F0F4F8;
  border-radius: 8px;
  padding: 24px;
  overflow-x: auto;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}
.article-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
.article-wrap th {
  background: var(--brand, #008CCF);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
}
.article-wrap td {
  padding: 12px 16px;
  border-bottom: 1px solid #E8ECF0;
}
.article-wrap tr:nth-child(even) td { background: #F8FAFB; }
.article-wrap img { border-radius: 10px; margin: 24px 0; }

/* ===== Image Placeholder ===== */
.image-placeholder {
  background: linear-gradient(135deg, #E8F4FD, #DCEEFB);
  border: 2px dashed #B9E7FE;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  color: var(--brand, #008CCF);
  font-size: 14px;
  font-weight: 600;
  margin: 24px 0;
}

/* ===== TOC ===== */
.toc {
  background: #F8FAFB;
  border: 1px solid #E8ECF0;
  border-radius: 12px;
  padding: 28px 32px;
  margin: 32px 0;
}
.toc-title {
  font-size: 16px;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 16px;
}
.toc ol {
  margin: 0;
  padding-left: 20px;
}
.toc li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.6;
}
.toc a {
  color: var(--brand, #008CCF);
  text-decoration: none;
}
.toc a:hover { text-decoration: underline; }

/* ===== Summary Box ===== */
.summary-box {
  background: var(--brand-bg, #F0F9FF);
  border: 1px solid #B9E7FE;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 24px 0;
}
.summary-box h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--brand, #008CCF);
  margin-bottom: 12px;
}
.summary-box ul {
  margin: 0 0 0 20px;
  font-size: 15px;
}

/* ===== FAQ ===== */
.faq-item {
  margin-bottom: 28px;
}
.faq-item h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--brand, #008CCF);
  margin-top: 0;
  margin-bottom: 8px;
}
.faq-item p {
  font-size: 15px;
}

/* ===== Blog CTA ===== */
.blog-cta {
  background: linear-gradient(135deg, #008CCF, #0CAAEB);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}
.blog-cta p {
  color: #fff;
  font-size: 16px;
  margin-bottom: 20px;
}
.blog-cta a {
  display: inline-block;
  padding: 14px 40px;
  background: #fff;
  color: var(--brand, #008CCF);
  font-size: 16px;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.blog-cta a:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

/* ===== Architecture Flow ===== */
.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 28px 0;
}
.arch-step {
  width: 100%;
  max-width: 520px;
  background: #F8FAFB;
  border: 2px solid #E8ECF0;
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
}
.arch-step.arch-highlight {
  background: var(--brand-bg, #F0F9FF);
  border-color: var(--brand, #008CCF);
}
.arch-label {
  font-size: 16px;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 4px;
}
.arch-highlight .arch-label { color: var(--brand, #008CCF); }
.arch-desc {
  font-size: 13px;
  color: #5B5B5F;
}
.arch-arrow {
  font-size: 18px;
  color: var(--brand, #008CCF);
  line-height: 1;
  padding: 6px 0;
}

/* ===== Diagram ===== */
.diagram {
  background: #F8FAFB;
  border: 1px solid #E8ECF0;
  border-radius: 12px;
  padding: 32px 24px;
  margin: 28px 0;
  text-align: center;
}
.diagram-title {
  font-size: 13px;
  font-weight: 700;
  color: #5B5B5F;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.diagram svg { max-width: 100%; height: auto; }

/* ===== Pillar Grid ===== */
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
}
.pillar-card {
  background: #F8FAFB;
  border: 1px solid #E8ECF0;
  border-radius: 12px;
  padding: 24px;
}
.pillar-card.accent {
  background: var(--brand-bg, #F0F9FF);
  border-color: var(--brand, #008CCF);
}
.pillar-card h4 {
  font-size: 16px;
  font-weight: 800;
  color: #1A1A1A;
  margin-bottom: 10px;
}
.pillar-card.accent h4 { color: var(--brand, #008CCF); }
.pillar-card p {
  font-size: 14px;
  line-height: 1.8;
  color: #5B5B5F;
  margin: 0;
}

/* ===== Footer ===== */
#footer {
  background: #0b4c6f;
  color: rgba(255,255,255,0.7);
  padding: 40px 0 16px;
  font-size: 13px;
}
#footer .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 60px;
}
.footer-brand { flex: 1; }
.logo-footer {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: block;
  margin-bottom: 8px;
}
.footer-title { font-weight: 700; color: #fff; margin-bottom: 8px; }
.footer-nav { list-style: none; }
.footer-nav li { margin-bottom: 4px; }
.footer-nav a { color: rgba(255,255,255,0.6); transition: color 0.3s; }
.footer-nav a:hover { color: #fff; }
.footer-btm {
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 16px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}

/* ===== Back to Top ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 52px;
  height: 52px;
  background: var(--brand, #008CCF);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,140,207,0.3);
  transition: all 0.3s;
  opacity: 0;
  visibility: hidden;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #016CA3; transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,140,207,0.4); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .blog-hero { padding: 48px 16px 40px; }
  .blog-hero h1 { font-size: 22px; }
  .article-wrap { margin: -24px 12px 40px; padding: 32px 20px 40px; border-radius: 12px; max-width: 100%; }
  .article-wrap h2 { font-size: 20px; margin-top: 40px; }
  .article-wrap h3 { font-size: 17px; margin-top: 28px; }
  .article-wrap p, .article-wrap ul, .article-wrap ol { font-size: 15px; }
  .article-wrap pre { font-size: 12px; padding: 16px; }
  .toc { padding: 20px; }
  .blog-cta { padding: 28px 20px; }
  .pillar-grid { grid-template-columns: 1fr; }
  #footer .inner { flex-direction: column; gap: 16px; }
  .footer-btm { flex-direction: column; text-align: center; gap: 4px; }
  .back-to-top { bottom: 20px; right: 20px; width: 44px; height: 44px; font-size: 18px; }
}
