/* public/css/blog.css */

/* スムーズスクロール効果 */
html {
  scroll-behavior: smooth;
}

/* ターゲットセクションが表示されたときのスタイル */
:target {
  scroll-margin-top: 70px; /* ヘッダーの高さに合わせて調整 */
}

/* ブログ一覧ページのスタイル - Noteスタイル */
.blog-hero {
  background-color: #fff;
  position: relative;
  padding: 4rem 0 2rem;
  border-bottom: 1px solid #eaeaea;
}

.blog-hero-title {
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.blog-hero-subtitle {
  font-weight: 400;
  color: #555;
  margin-top: 0.5rem;
}

.blog-posts {
  padding-top: 3rem;
}

/* コンテナの基本設定 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.blog-card {
  border: none;
  overflow: hidden;
  background-color: #fff;
  height: 100%;
  transition: opacity 0.3s ease;
}

.blog-card:hover {
  opacity: 0.8;
}

.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.blog-card__image {
  height: 200px;
  overflow: hidden;
  border-radius: 4px;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.blog-card__design {
  height: 200px;
  overflow: hidden;
  border-radius: 4px;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.blog-card__design-inner {
  text-align: center;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.blog-card__design-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.blog-card:hover .blog-card__design {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.blog-card:hover .blog-card__image img {
  opacity: 0.9;
}

.blog-card__content {
  padding: 1rem 0;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.blog-card__date {
  color: #6b7280;
  margin-right: 1rem;
}

.blog-card__category {
  color: #0369a1;
  font-size: 0.75rem;
}

.blog-card__title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.blog-card__excerpt {
  color: #4b5563;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ブログ記事ページのスタイル - Noteスタイル */
.blog-post-hero {
  background-color: #fff;
  position: relative;
  padding: 4rem 0 2rem;
  border-bottom: 1px solid #eaeaea;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  margin-top: 1rem;
  color: #6b7280;
}

.blog-category {
  color: #0369a1;
  font-size: 0.85rem;
}

.blog-post-container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 4rem;
  margin: 3rem auto;
  max-width: 1200px;
  padding: 0 1.5rem;
}

/* ブログ記事スタイル改善 */
.blog-article-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.blog-article {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

.blog-article-header {
  margin-bottom: 2rem;
}

.blog-article-featured-image {
  margin: 2rem 0;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.blog-article-featured-image img,
.blog-content-image img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* 記事内の画像スタイル */
.blog-content-image {
  margin: 2rem 0;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* CSS代替デザイン要素 */
.blog-content-design {
  margin: 2rem 0;
  text-align: center;
  border-radius: 8px;
  overflow: hidden;
}

.design-caption {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 1rem;
  text-align: center;
}

/* グラデーション背景を持つヘッダー */
.header-visualization {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  color: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-visualization .header-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.header-visualization .header-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.header-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  padding: 1rem;
  border-radius: 8px;
  width: 100%;
}

.header-icon i {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

/* ダッシュボード視覚化 */
.dashboard-visualization {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background-color: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
}

.dashboard-title {
  font-weight: 600;
  font-size: 1.25rem;
  color: #111827;
}

.dashboard-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-date {
  font-size: 0.875rem;
  color: #6b7280;
}

.dashboard-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-content {
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.dashboard-widget {
  background-color: #f9fafb;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.widget-title {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.widget-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.75rem;
}

.widget-chart {
  height: 60px;
  display: flex;
  align-items: flex-end;
}

.bar-chart {
  justify-content: space-between;
}

.bar {
  width: 16%;
  background: linear-gradient(to top, #3b82f6, #1e40af);
  border-radius: 4px 4px 0 0;
}

.line-chart {
  position: relative;
}

.line-chart .line {
  position: absolute;
  height: 2px;
  background-color: #3b82f6;
  width: 100%;
  top: 50%;
  z-index: 1;
}

.line-chart::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3b82f6;
  bottom: 10%;
  left: 10%;
  z-index: 2;
}

.line-chart::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3b82f6;
  top: 20%;
  right: 10%;
  z-index: 2;
}

.pie-chart {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pie-segment {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: conic-gradient(#3b82f6 0% 75%, #e5e7eb 75% 100%);
}

/* ブログ記事フッターとCTAスタイル */
.blog-article-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #4b5563;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.back-to-blog:hover {
  color: #111827;
}

.back-to-blog i {
  font-size: 0.85rem;
}

.blog-share {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blog-share span {
  font-size: 0.9rem;
  color: #6b7280;
}

.social-share {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: opacity 0.2s ease;
}

.social-share:hover {
  opacity: 0.8;
}

.social-share.twitter {
  background-color: #1DA1F2;
}

.social-share.facebook {
  background-color: #1877F2;
}

.social-share.linkedin {
  background-color: #0A66C2;
}

.cta-box {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #111827;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background-color: #2563eb;
  color: white;
  border: 1px solid #2563eb;
}

.btn--primary:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}

.btn--outline {
  background-color: transparent;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.btn--outline:hover {
  background-color: #eef2ff;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .header-icons {
    flex-wrap: wrap;
  }
  
  .header-icon {
    width: calc(50% - 0.5rem);
  }
  
  .dashboard-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
  
  .blog-article-header {
    padding: 0 1rem;
  }
}

.image-caption {
  font-size: 0.9rem;
  color: #666;
  padding: 0.8rem 1rem;
  background: #f8f9fa;
  margin: 0;
  border-top: 1px solid #eee;
  text-align: center;
}

.blog-breadcrumb {
  display: flex;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: #666;
}

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

.blog-breadcrumb a:hover {
  text-decoration: underline;
}

.blog-breadcrumb-separator {
  margin: 0 0.5rem;
}

.blog-article-title {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.blog-article-date {
  font-size: 1rem;
  color: #666;
  display: inline-block;
  padding: 0.3rem 1rem;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.blog-article-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #333;
}

.blog-post-content p {
  margin-bottom: 1.2rem;
}

.blog-article-content p {
  margin-bottom: 1rem;
}

.blog-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 1.2rem;
  padding-bottom: 0;
  letter-spacing: -0.01em;
  line-height: 1.4;
  position: relative; /* 位置を基準にする */
}

/* 青い縦ラインを持つ擬似要素を削除（上書き） */
.blog-section-title::before {
  display: none !important; /* 完全に非表示にする */
}

.blog-section-title:first-child {
  margin-top: 0;
}

.blog-subsection-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin: 1.2rem 0 0.6rem;
  letter-spacing: -0.01em;
  text-align: left;
}

.blog-list {
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.blog-list li {
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

.blog-emphasis {
  font-weight: 500;
  margin: 1rem 0 0.5rem;
  color: #111;
}

.blog-note {
  background-color: #fafafa;
  padding: 1.5rem;
  margin: 2rem 0;
  border-left: 2px solid #ddd;
  font-size: 0.95rem;
  color: #555;
}

.cta-box {
  background-color: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.cta-title {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

.cta-text {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.blog-related {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #eaeaea;
}

.blog-related-title {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.blog-related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

/* サイドバー */
.blog-sidebar {
  position: sticky;
  top: 2rem;
}

.sidebar-widget {
  background-color: #fff;
  padding: 0 0 2rem 0;
  margin-bottom: 2rem;
}

.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eaeaea;
}

.category-list {
  list-style: none;
  padding: 0;
}

.category-list li {
  margin-bottom: 0.25rem;
}

.category-list a {
  display: block;
  padding: 0.4rem 0;
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.category-list a:hover {
  color: #000;
}

.recent-posts {
  list-style: none;
  padding: 0;
}

.recent-posts li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eaeaea;
}

.recent-posts li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.recent-posts a {
  display: block;
  text-decoration: none;
  color: #333;
  margin-bottom: 0.25rem;
  font-weight: normal;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color 0.2s ease;
}

.recent-posts a:hover {
  color: #000;
}

.recent-post-date {
  font-size: 0.8rem;
  color: #6b7280;
}

/* レスポンシブ対応 */
@media (max-width: 1200px) {
  .blog-post-container {
    grid-template-columns: 1fr;
    padding: 0 1.5rem;
  }
  
  .blog-article {
    max-width: 800px;
  }
}

@media (max-width: 900px) {
  .cta-buttons {
    flex-direction: column;
  }

  .blog-sidebar {
    position: static;
    margin-top: 3rem;
    border-top: 1px solid #eaeaea;
    padding-top: 2rem;
  }

  .blog-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    padding: 0 1.5rem;
  }
  
  .page-header__inner {
    padding: 0 1.5rem;
  }
  
  .blog-post-hero h1,
  .blog-article-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .container,
  .blog-article-wrapper {
    padding: 0 1rem;
  }
  
  .blog-article-content h2 {
    font-size: 1.4rem;
  }
  
  .blog-article-content h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .toc-container {
    flex-direction: column;
  }
  
  .toc-column {
    width: 100%;
  }
  
  .toc-column-right {
    margin-top: 1rem;
  }
  
  .toc-list > li {
    padding: 0.3rem 0;
  }
  
  .toc-list a {
    padding: 0.2rem 0.3rem;
  }
  
  /* スマホ表示では目次を1列に */
  .toc-column-left,
  .toc-column-right {
    width: 100%;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .blog-article-title,
  .blog-post-hero h1 {
    font-size: 1.5rem;
  }
  
  .blog-section-title {
    font-size: 1.3rem;
    font-weight: 700;
  }
  
  .blog-subsection-title {
    font-size: 1.1rem;
  }
}

/* 目次スタイル */
.table-of-contents {
  background-color: #f8f8f8;
  border-radius: 4px;
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #eaeaea;
}

.toc-title {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  padding-left: 0;
  text-align: left;
}

.toc-title:before {
  content: "▼";
  font-size: 0.8rem;
  margin-right: 0.5rem;
  color: #555;
  transition: transform 0.3s ease;
}

.toc-closed:before {
  transform: rotate(-90deg);
}

.toc-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.toc-column {
  width: 48%;
}

.toc-column-left {
  padding-right: 2%;
}

.toc-column-right {
  padding-left: 2%;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-list > li {
  padding: 0.2rem 0;
  line-height: 1.4;
  margin: 0;
}

.toc-list > li > a {
  font-weight: normal;
  padding-left: 0;
}

.toc-sublist {
  list-style: none;
  padding: 0.2rem 0 0.2rem 1rem;
  margin: 0;
  display: block; /* サブリストは1列 */
}

.toc-sublist li {
  padding: 0.1rem 0;
  font-size: 0.9rem;
  line-height: 1.3;
}

.toc-list a {
  text-decoration: none;
  color: #333;
  display: block;
  transition: all 0.2s ease;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

.toc-list a:hover {
  color: #3b82f6;
  background-color: #f0f0f0;
}

.toc-list > li > a {
  color: #000;
}

.toc-sublist a {
  color: #555;
  padding-left: 1rem;
}

/* セクションタイトルのスタイル変更 */
.blog-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.5rem 0 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eaeaea;
  text-align: left;
  position: relative; /* 位置を基準にする */
}

/* 最初のセクションタイトル「はじめに」の上マージンは小さく */
#intro.blog-section-title {
  margin-top: 1rem;
}

/* ブログ画像のスタイリング */
.blog-image-wrapper {
  margin: 2rem 0;
  text-align: center;
}

.blog-image {
  max-width: 100%;
  height: auto;
}

/* セクションタイトルの統一スタイリング */
/* 事例ページのタイトル修正 - 2025/10/19追加 */
.blog-article-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

@media (max-width: 768px) {
  .blog-article-title {
    font-size: 1.8rem;
  }
}

/* 事例ページのスタイル修正 - 2025/10/19追加 */
.blog-article-wrapper {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 6rem auto 3rem;
  padding: 0 1.5rem;
}

.blog-article {
  flex: 1;
  min-width: 280px;
  max-width: 800px;
  padding-right: 2rem;
}

.case-study-sidebar {
  width: 300px;
  margin-left: auto;
  padding-left: 2rem;
  border-left: 1px solid #eaeaea;
}

@media (max-width: 992px) {
  .blog-article-wrapper {
    margin-top: 4rem;
  }
  
  .blog-article {
    width: 100%;
    max-width: 100%;
    padding-right: 0;
  }
  
  .case-study-sidebar {
    width: 100%;
    margin-top: 3rem;
    margin-left: 0;
    padding-left: 0;
    padding-top: 2rem;
    border-left: none;
    border-top: 1px solid #eaeaea;
  }
}

/* サイドバーウィジェットスタイル改善 - 2025/10/19追加 */
.sidebar-widget {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.sidebar-widget h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eaeaea;
}

.company-logo-sidebar {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.other-case-link {
  display: block;
  padding: 1rem;
  background-color: #fff;
  border-radius: 6px;
  margin-bottom: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.other-case-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.other-case-company {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.other-case-desc {
  font-size: 0.9rem;
  color: #666;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  margin-bottom: 1rem;
}

.feature-list a {
  display: flex;
  align-items: center;
  color: #333;
  text-decoration: none;
  padding: 0.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.feature-list a:hover {
  background-color: rgba(0,0,0,0.05);
  color: #0369a1;
}

.icon-feature {
  margin-right: 0.75rem;
  color: #0369a1;
  width: 1.2rem;
  text-align: center;
}

/* レイアウト修正 - 2025/10/19追加 */
body {
  overflow-x: hidden;
}

main {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.blog-article-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 6rem auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.blog-article {
  width: 100%;
  max-width: 800px;
}

.case-study-sidebar {
  width: 300px;
}

/* 余分な要素を非表示 */
.side-navigation {
  display: none !important;
}

@media (max-width: 1100px) {
  .blog-article-wrapper {
    flex-direction: column;
  }
  
  .blog-article,
  .case-study-sidebar {
    width: 100%;
    max-width: 100%;
  }
  
  .case-study-sidebar {
    margin-top: 3rem;
  }
}

/* 重要修正: 余分な要素を確実に非表示 - 2025/10/19追加 */
.side-navigation,
[class*="side-nav"],
[id*="side-nav"],
.right-sidebar:not(.case-study-sidebar),
aside:not(.case-study-sidebar) {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
}

/* ページコンテナの調整 */
body,
html {
  overflow-x: hidden;
  width: 100%;
}

body > div {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* 最終修正 - 2025/10/19 */
.page-container {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  position: relative;
}

.blog-article-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 6rem auto 3rem;
  padding: 0 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.blog-article {
  width: 100%;
  max-width: 800px;
}

.case-study-sidebar {
  width: 300px;
}

@media (max-width: 1200px) {
  .blog-article {
    max-width: 65%;
  }
  
  .case-study-sidebar {
    width: 30%;
  }
}

@media (max-width: 768px) {
  .blog-article-wrapper {
    flex-direction: column;
  }
  
  .blog-article,
  .case-study-sidebar {
    width: 100%;
    max-width: 100%;
  }
  
  .case-study-sidebar {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
  }
}

/* ブログ・事例記事タイトル修正 - 2025/10/19追加 */
.blog-article h1,
.blog-article h2,
.blog-article h3,
.blog-article .blog-article-title,
.blog-article-title {
  text-align: left !important;
  margin-bottom: 1.5rem;
}

/* メインタイトルのサイズ調整 */
.blog-article h1,
.blog-article .blog-article-title,
.blog-article-title {
  font-size: 2rem !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}

/* サブタイトルのサイズ調整 */
.blog-article h2 {
  font-size: 1.6rem !important;
  line-height: 1.4 !important;
  margin-top: 2rem !important;
  margin-bottom: 1rem !important;
}

.blog-article h3 {
  font-size: 1.3rem !important;
  line-height: 1.4 !important;
  margin-top: 1.5rem !important;
  margin-bottom: 0.8rem !important;
}

/* 段落テキスト調整 */
.blog-article p {
  line-height: 1.8 !important;
  margin-bottom: 1.2rem !important;
  font-size: 1rem !important;
}

@media (max-width: 768px) {
  .blog-article h1,
  .blog-article .blog-article-title,
  .blog-article-title {
    font-size: 1.7rem !important;
  }
  
  .blog-article h2 {
    font-size: 1.4rem !important;
  }
  
  .blog-article h3 {
    font-size: 1.2rem !important;
  }
  
  .blog-article p {
    font-size: 0.95rem !important;
  }
}

/* 記事フッター用スタイル - 2025/10/19追加 */
.article-footer-info {
  border-top: 1px solid #eaeaea;
  margin-top: 3rem;
  padding-top: 2rem;
}

.company-profile {
  margin-bottom: 2.5rem;
}

.company-profile h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.company-logo {
  max-width: 200px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}

.cta-container {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 2rem;
  margin-top: 2rem;
}

.cta-container h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.cta-buttons .btn {
  min-width: 200px;
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
  }
  
  .cta-buttons .btn {
    width: 100%;
  }
}

/* サイドバー削除のためのレイアウト調整 */
.blog-article {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.blog-article-wrapper {
  justify-content: center;
}

/* 会社情報をよりコンパクトに - 2025/10/19追加 */
.article-footer-info {
  border-top: 1px solid #eaeaea;
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.company-profile {
  margin-bottom: 1rem;
  max-width: 400px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.company-profile h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.company-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 0.8rem;
  display: block;
}

.company-profile p {
  margin-bottom: 0.3rem !important;
  font-size: 0.95rem !important;
}

.cta-container {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 0;
  flex: 1;
  min-width: 300px;
}

.cta-container h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.cta-container p {
  margin-bottom: 0.8rem !important;
  font-size: 0.95rem !important;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.cta-buttons .btn {
  min-width: 160px;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
  .article-footer-info {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .company-profile,
  .cta-container {
    width: 100%;
    max-width: 100%;
  }
  
  .cta-buttons {
    flex-direction: row;
  }
  
  .cta-buttons .btn {
    flex: 1;
    min-width: auto;
  }
}

/* 会社情報をよりコンパクトに - 2025/10/19追加 */
.article-footer-info {
  border-top: 1px solid #eaeaea;
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.company-profile {
  margin-bottom: 1rem;
  max-width: 400px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.company-profile h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.company-logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 0.8rem;
  display: block;
}

.company-profile p {
  margin-bottom: 0.3rem !important;
  font-size: 0.95rem !important;
}

.cta-container {
  background-color: #f9f9f9;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 0;
  flex: 1;
  min-width: 300px;
}

.cta-container h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}

.cta-container p {
  margin-bottom: 0.8rem !important;
  font-size: 0.95rem !important;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.cta-buttons .btn {
  min-width: 160px;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
  .article-footer-info {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .company-profile,
  .cta-container {
    width: 100%;
    max-width: 100%;
  }
  
  .cta-buttons {
    flex-direction: row;
  }
  
  .cta-buttons .btn {
    flex: 1;
    min-width: auto;
  }
}

/* 会社情報のスタイル微調整 - 2025/10/19追加 */
.company-profile h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  letter-spacing: 0.05em;
}

.company-logo {
  max-width: 270px;
  margin-bottom: 1rem;
}

.company-profile p:first-of-type {
  font-size: 1.2rem !important;
  font-weight: 700;
  margin-bottom: 1rem !important;
  letter-spacing: 0.02em;
}

.company-profile p {
  font-size: 1rem !important;
  line-height: 1.8 !important;
  margin-bottom: 0.5rem !important;
  color: #333;
  letter-spacing: 0.02em;
}

/* フォントを一貫して表示 */
.blog-article,
.company-profile,
.cta-container {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
}

/* CTAボタンのスタイルとホバーエフェクト改善 - 2025/10/19追加 */
.cta-container {
  background-color: #f0f4f9;  /* より明るく目立つ背景色 */
  border: 1px solid #e1e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cta-buttons .btn {
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-buttons .btn-primary {
  background-color: #2563eb;  /* より鮮やかな青色 */
  color: white;
  border: none;
}

.cta-buttons .btn-secondary {
  background-color: white;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.cta-buttons .btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-buttons .btn-secondary:hover {
  background-color: #f8fafc;
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* アクティブ状態（クリック時）のスタイル */
.cta-buttons .btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ホバー時のアニメーション効果 */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.cta-buttons .btn-primary:hover {
  animation: pulse 1.5s infinite ease-in-out;
}

/* CTAボタンのスタイルとホバーエフェクト改善 - 2025/10/19追加 */
.cta-container {
  background-color: #f0f4f9;  /* より明るく目立つ背景色 */
  border: 1px solid #e1e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cta-buttons .btn {
  transition: all 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-buttons .btn-primary {
  background-color: #2563eb;  /* より鮮やかな青色 */
  color: white;
  border: none;
}

.cta-buttons .btn-secondary {
  background-color: white;
  color: #2563eb;
  border: 1px solid #2563eb;
}

.cta-buttons .btn-primary:hover {
  background-color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.cta-buttons .btn-secondary:hover {
  background-color: #f8fafc;
  color: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* アクティブ状態（クリック時）のスタイル */
.cta-buttons .btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* ホバー時のアニメーション効果 */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.cta-buttons .btn-primary:hover {
  animation: pulse 1.5s infinite ease-in-out;
}

/* 2重フッター問題の修正 - 2025/10/19追加 */
.page-container {
  min-height: calc(100vh - 70px - 350px); /* ヘッダーとフッターの高さを引いた高さ */
}

/* アニメーションの競合を防ぐ調整 */
.cta-buttons .btn-primary:hover {
  animation: pulse 1.5s infinite ease-in-out;
  transform: none; /* 以前の transform を上書き */
}

.cta-buttons .btn-secondary:hover {
  transform: translateY(-2px);
}

/* CTAボタンのパディング調整 */
.cta-buttons .btn {
  padding: 0.75rem 1.5rem;
}

/* スペーシングの微調整 */
.article-footer-info {
  margin-top: 2.5rem;
  padding: 2rem 0;
}

/* CTAコンテナの視覚的強調 */
.cta-container {
  position: relative;
  z-index: 1;
}

/* 添付画像に合わせたボタンのスタイル */
.cta-buttons {
  margin-top: 1.5rem;
}

.cta-buttons .btn {
  display: inline-block;
  width: auto;
  min-width: 200px;
}

/* 記事間の導線スタイル - 2025/10/19追加 */
.article-navigation {
  margin: 3rem 0 1rem;
  padding: 1.5rem 0;
  border-top: 1px solid #eaeaea;
}

.other-case-links h3 {
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.case-link-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.case-link-card {
  display: flex;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background-color: white;
  text-decoration: none;
  color: inherit;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.case-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-color: #c7d2fe;
}

.case-link-logo {
  width: 80px;
  height: auto;
  margin-right: 1rem;
}

.case-link-content {
  flex: 1;
}

.case-link-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.case-link-desc {
  font-size: 0.9rem;
  color: #555;
}

.blog-pagination {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.blog-pagination .btn {
  padding: 0.6rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.blog-pagination .btn i {
  font-size: 0.9rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .article-navigation {
    margin: 2rem 0 1rem;
    padding: 1rem 0;
  }
  
  .case-link-card {
    padding: 1rem;
  }
  
  .case-link-logo {
    width: 60px;
  }
  
  .case-link-title {
    font-size: 0.95rem;
  }
  
  .case-link-desc {
    font-size: 0.85rem;
  }
}

/* 段落の番号と文章の位置を揃えるスタイル - 2025/10/19追加 */
.numbered-feature-list {
  counter-reset: feature-counter;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}

.numbered-feature-item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 2.5rem;
}

.numbered-feature-item::before {
  counter-increment: feature-counter;
  content: counter(feature-counter);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
}

.numbered-feature-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.numbered-feature-desc {
  margin: 0;
  line-height: 1.8;
  color: #333;
}

/* 既存の番号付きリストに上書きする場合のスタイル */
.blog-article-content h2 + p,
.blog-article-content h3 + p {
  margin-top: 0.5rem;
}

.blog-article-content p:empty {
  display: none;
}
