/* ブログ専用スタイルシート */

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

.blog-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.blog-thumbnail {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.blog-content {
  padding: 1.8rem;
}

.blog-content h2 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.blog-content time {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #666;
}

.article-summary {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
  color: #333;
}

.read-more {
  display: inline-block;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-wrapper {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.main-content {
  background: white;
  padding: 2.8rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.article-content {
  line-height: 1.85;
  font-size: 1.05rem;
}

.article-content section {
  margin-bottom: 3rem;
}

.article-content h2 {
  font-size: 2rem;
  margin: 2.8rem 0 1.5rem 0;
  font-weight: 600;
  padding-bottom: 1rem;
  border-bottom: 3px solid #007bff;
}

.article-content h3 {
  font-size: 1.55rem;
  margin: 2.2rem 0 1.2rem 0;
  font-weight: 600;
}

.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.9;
}

.article-content ul,
.article-content ol {
  margin: 1.8rem 0;
  padding-left: 2.2rem;
  line-height: 1.85;
}

.article-content li {
  margin-bottom: 0.9rem;
}

.article-meta {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.sidebar {
  position: sticky;
  top: 90px;
  height: fit-content;
}

.toc,
.ad-space,
.related-articles {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
  border: 1px solid #e0e0e0;
}

.toc h3,
.ad-space h3,
.related-articles h3 {
  font-size: 1.25rem;
  margin-bottom: 1.3rem;
  font-weight: 600;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid #007bff;
}

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

.toc li {
  margin-bottom: 0.8rem;
}

.toc a {
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.toc a:hover {
  background: rgba(0, 123, 255, 0.1);
  padding-left: 1.3rem;
}

.ad-space {
  background: rgba(0, 123, 255, 0.03);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed #e0e0e0;
}

.hero {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
}

.hero-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.hero-content {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  padding: 3rem;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-content h1 {
  color: white;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
  .page-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .blog-list {
    grid-template-columns: 1fr;
  }

  .main-content {
    padding: 2rem;
  }

  .article-content h2 {
    font-size: 1.7rem;
  }

  .hero-content h1 {
    font-size: 1.9rem;
  }
}

/* ====================================
   ヘッダー・フッタースタイル
   (メインサイトから継承)
   ==================================== */

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition-speed);
}

.header.scrolled {
    box-shadow: 0 2px 10px var(--shadow-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo a {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    max-width: 900px;
    justify-content: center;
}

.nav-item a {
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-item a:hover, .nav-item a.active {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.footer-nav a {
    color: var(--text-color-light);
    opacity: 0.8;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive - ハンバーガーメニュー */
@media (max-width: 991px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--surface-color);
        box-shadow: 0 4px 10px var(--shadow-color);
        padding: 1rem 0;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hamburger-inner,
    .hamburger-inner::before,
    .hamburger-inner::after {
        width: 25px;
        height: 3px;
        background-color: var(--text-color);
        border-radius: 3px;
        position: relative;
        transition: transform 0.3s;
    }

    .hamburger-inner::before,
    .hamburger-inner::after {
        content: '';
        position: absolute;
        left: 0;
    }

    .hamburger-inner::before {
        top: -8px;
    }

    .hamburger-inner::after {
        bottom: -8px;
    }

    .hamburger.active .hamburger-inner {
        transform: rotate(45deg);
    }

    .hamburger.active .hamburger-inner::before {
        top: 0;
        transform: rotate(90deg);
    }

    .hamburger.active .hamburger-inner::after {
        bottom: 0;
        transform: rotate(90deg);
    }
}
