/* ========================================
   blog.css - お役立ち記事記事ページ共通スタイル
   対象: blog/ 配下の全ページ
   ======================================== */

/* ----------------------------------------
   Header
   ---------------------------------------- */
.blog-header {
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
}

.blog-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.blog-header .site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0066cc;
  text-decoration: none;
}

.blog-header .site-logo:hover { text-decoration: none; }

.site-logo-img { height: 40px; width: auto; display: block; }
.site-logo-text { font-size: 1.125rem; font-weight: bold; white-space: nowrap; }

.blog-header-back {
  font-size: 0.875rem;
  color: #666;
  text-decoration: none;
}

.blog-header-back:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* ----------------------------------------
   パンくず
   ---------------------------------------- */
.blog-breadcrumb {
  padding: 16px 0 0;
}

.blog-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 0.8125rem;
  color: #888;
  list-style: none;
}

.blog-breadcrumb li + li::before {
  content: "/";
  margin-right: 4px;
  color: #ccc;
}

.blog-breadcrumb a {
  color: #666;
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  color: #0066cc;
  text-decoration: underline;
}

/* ----------------------------------------
   記事本文
   ---------------------------------------- */
.blog-content {
  padding: 0 0 64px;
  background-color: #fff;
}

.blog-article {
  max-width: 780px;
  margin: 0 auto;
  padding-top: 32px;
}

.blog-article-title {
  font-size: 1.625rem;
  font-weight: bold;
  color: #222;
  line-height: 1.5;
  margin-bottom: 12px;
}

.blog-meta {
  font-size: 0.8125rem;
  color: #888;
  margin-bottom: 36px;
}

.blog-body {
  font-size: 0.9375rem;
  line-height: 1.9;
  color: #333;
}

.blog-body > p { margin-bottom: 20px; }

.blog-body h2 {
  font-size: 1.25rem;
  font-weight: bold;
  color: #0066cc;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0066cc;
}

.blog-body h3 {
  font-size: 1.0625rem;
  font-weight: bold;
  color: #222;
  margin: 32px 0 12px;
}

.blog-body ul,
.blog-body ol {
  margin: 12px 0 20px 1.5em;
}

.blog-body ul { list-style: disc; }
.blog-body ol { list-style: decimal; }

.blog-body li {
  margin-bottom: 6px;
  line-height: 1.8;
}

/* テーブル */
.blog-table-wrap {
  overflow-x: auto;
  margin: 20px 0;
}

.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 480px;
}

.blog-table th,
.blog-table td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  text-align: left;
}

.blog-table th {
  background-color: #f0f4fa;
  font-weight: bold;
  color: #222;
  white-space: nowrap;
}

.blog-table td { color: #444; }

/* ----------------------------------------
   本文中CTA（控えめ）
   ---------------------------------------- */
.blog-inline-cta {
  background-color: #f0f6ff;
  border: 1px solid #d0e0f0;
  border-radius: 8px;
  padding: 24px;
  margin: 32px 0;
  text-align: center;
}

.blog-inline-cta p {
  font-size: 0.9375rem;
  color: #444;
  margin-bottom: 12px;
}

.blog-inline-cta .btn { font-size: 0.9375rem; }

/* ----------------------------------------
   末尾CTA
   ---------------------------------------- */
.blog-cta {
  background: linear-gradient(135deg, #003d80 0%, #0066cc 60%, #0080e0 100%);
  color: #fff;
  border-radius: 12px;
  padding: 48px 32px;
  margin: 48px auto 0;
  max-width: 780px;
  text-align: center;
}

.blog-cta-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.blog-cta-text {
  font-size: 0.9375rem;
  opacity: 0.9;
  margin-bottom: 24px;
  line-height: 1.7;
}

.blog-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-cta .btn-primary {
  background-color: #ff6600;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
}

.blog-cta .btn-outline {
  background-color: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.blog-cta .btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.blog-cta-sub {
  font-size: 0.8125rem;
  opacity: 0.8;
  margin-top: 16px;
}

/* ----------------------------------------
   関連記事
   ---------------------------------------- */
.blog-related {
  max-width: 780px;
  margin: 48px auto 0;
}

.blog-related-title {
  font-size: 1.0625rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.blog-related-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.blog-related-card {
  display: block;
  background-color: #f7f8fa;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
  color: #333;
  font-size: 0.875rem;
  line-height: 1.6;
  transition: border-color 0.2s;
}

.blog-related-card:hover {
  border-color: #0066cc;
  text-decoration: none;
}

/* ----------------------------------------
   記事一覧ページ
   ---------------------------------------- */
.blog-list-hero {
  background: linear-gradient(135deg, #003d80 0%, #0066cc 60%, #0080e0 100%);
  color: #fff;
  padding: 40px 0 32px;
  text-align: center;
}

.blog-list-hero h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

.blog-list-content {
  padding: 48px 0 64px;
  background-color: #f7f8fa;
}

.blog-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

.blog-list-card {
  display: block;
  background-color: #fff;
  border: 1px solid #e0e4e8;
  border-radius: 10px;
  padding: 28px 24px;
  text-decoration: none;
  color: #333;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.blog-list-card:hover {
  border-color: #0066cc;
  box-shadow: 0 4px 16px rgba(0, 102, 204, 0.1);
  text-decoration: none;
}

.blog-list-card-title {
  font-size: 1.0625rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 8px;
  line-height: 1.5;
}

.blog-list-card-desc {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
}

/* ----------------------------------------
   Footer
   ---------------------------------------- */
.blog-footer {
  background-color: #1a1a2e;
  color: #999;
  padding: 32px 0;
  text-align: center;
}

.blog-footer .footer-service { font-size: 1rem; font-weight: bold; color: #ccc; margin-bottom: 4px; }
.blog-footer .footer-company { font-size: 0.8125rem; color: #888; margin-bottom: 4px; }
.blog-footer .footer-company-link { color: #aab; text-decoration: none; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.blog-footer .footer-company-link:hover { color: #ccd; border-bottom-color: #ccd; text-decoration: none; }
.blog-footer .footer-links { font-size: 0.8125rem; margin-bottom: 8px; }
.blog-footer .footer-copy { font-size: 0.75rem; }

.footer-link-sep {
  color: #666;
  margin: 0 8px;
}

/* ========================================
   レスポンシブ（768px以下）
   ======================================== */
@media (max-width: 768px) {
  .site-logo-img { height: 34px; }
  .site-logo-text { font-size: 1rem; }
  .blog-header-back { font-size: 0.8125rem; }

  .blog-article-title { font-size: 1.375rem; }
  .blog-body h2 { font-size: 1.125rem; margin-top: 36px; }
  .blog-body h3 { font-size: 1rem; }

  .blog-table { font-size: 0.8125rem; }

  .blog-cta { padding: 36px 20px; }
  .blog-cta-buttons { flex-direction: column; align-items: center; }
  .blog-cta-buttons .btn { width: 100%; max-width: 320px; text-align: center; }

  .blog-related-list { grid-template-columns: 1fr; }
  .blog-list-grid { grid-template-columns: 1fr; }

  .blog-list-hero { padding: 32px 0 24px; }
  .blog-list-hero h1 { font-size: 1.25rem; }
}
