/* カテゴリーで表示記事を絞り込み　ここから */
.categories {
  margin-bottom: 20px;
  text-align: center;
}

.categories button {
  margin: 5px;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #ccc;
  color: black;
}

.categories button.selected {
  background-color: #09599A;
  color: white;
}

.pagenation {
  text-align: center;
  margin-top: 20px;
}

.pagenation button {
  padding: 8px 16px;
  background-color: #09599A;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.pagenation button.prev {
  margin-right: 10px;
}

.pagenation button.next {
  margin-left: 10px;
}

.pagenation button.firstPage {
  background-color: #ccc;
  cursor: not-allowed;
}

.pagenation button.lastPage {
  background-color: #ccc;
  cursor: not-allowed;
}

/* カテゴリーで表示記事を絞り込み　ここまで */



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #ffffff;
}

#root {
  min-height: 600px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container h1 {
  font-size: 24px;
  color: #ffffff;
}

/* Header */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: #9D3420;
}

.logo::before {
  margin-right: 10px;
  font-size: 28px;
}

.nav {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover {
  color: #9D3420;
}

/* ハンバーガーメニュー */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 25px;
  background: #333;
  margin-bottom: 5px;
  transition: 0.3s;
  border-radius: 2px;
}

.hamburger span:last-child {
  margin-bottom: 0;
}

/* ハンバーガーメニューのアニメーション */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* モバイルメニュー */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
}

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

.mobile-nav-content {
  background: white;
  width: 280px;
  height: 100vh;
  padding: 60px 30px 30px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav.active .mobile-nav-content {
  transform: translateX(0);
}

.mobile-nav ul {
  list-style: none;
}

.mobile-nav li {
  margin-bottom: 20px;
}

.mobile-nav a {
  display: block;
  padding: 15px 0;
  text-decoration: none;
  color: #333;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  transition: color 0.3s;
}

.mobile-nav a:hover {
  color: #9D3420;
}

.mobile-nav-overlay {
  flex: 1;
}

.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('https://mcc.netpartner.jp/wp-content/uploads/2025/07/presentation-skills-class-fv.jpg') center top/cover no-repeat;
  color: white;
  padding: 150px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 700;
}

/* PCでの改行用 */
.desktop-br {
  display: block;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Main Content */
.main-contents {
  padding: 60px 0;
  background-color: #ffffff;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}


/* Articles Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.article-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

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

.article-image {
  width: 100%;
  background: linear-gradient(45deg, #9D3420 0%, #A85D52 100%);
  display: flex;
  /* コンテナ内要素を中央寄せ */
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: white;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  /* はみ出し部分をトリミングして比率維持 */
  display: block;
  /* imgタグの下余白を消す */
}


.article-content {
  padding: 25px;
}

.article-category {
  display: inline-block;
  background: #9D3420;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 15px;
}

.article-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
  color: #333;
}

.article-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.article-date {
  color: #000;
  font-size: 12px;
}

/* Loading Animation */
.loading {
  text-align: center;
  padding: 40px;
  font-size: 18px;
  color: #666;
}

.loading::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #9D3420;
  border-radius: 50%;
  margin-left: 10px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 40px 0;
  text-align: center;
}

.footer-content {
  margin-bottom: 20px;
}

.footer h4 {
  margin-bottom: 15px;
  color: #ffffff;
}

.contact-btn {
  background: #9D3420;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
  margin: 20px 0;
}

.contact-btn:hover {
  background: #704136;
}


/* 記事の見出しの装飾 */

h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.3;
}


.article-heading {
  position: relative;
  padding-left: 0px;
  margin: 30px 0 20px 0;
  color: #333;
}

.article-heading h2 {
  font-size: 1.7rem;
  font-weight: 600;
  color: #555;
  padding: 0.4em 0.5em;
  background: #f4f4f4;
  /*背景色*/
  border-left: solid 5px #9D3420;
  /*左線*/
  border-bottom: solid 3px #d7d7d7;
  /*下線*/
  margin-top: 40px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-heading h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  line-height: 1.4;
  border-left: solid 5px #9D3420;
  /*左線*/
}

.article-heading h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.4;
}

.article-heading h5 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
  line-height: 1.4;
}

.article-heading h6 {
  font-size: 1rem;
  font-weight: 600;
  color: #777;
  margin-bottom: 6px;
  line-height: 1.4;
}

/* 記事内の画像サイズ調整 */
.main-contents img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 記事内のpタグ前後に余白 */
.main-contents p {
  margin-top: 0.8em;
  margin-bottom: 0.8em;
}

/* Alternative heading style with background */
.article-heading-alt {
  position: relative;
  padding: 12px 20px;
  margin: 30px 0 20px 0;
  background: linear-gradient(90deg, rgba(139, 75, 61, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  border-left: 4px solid #9D3420;
}

.article-heading-alt h1,
.article-heading-alt h2,
.article-heading-alt h3,
.article-heading-alt h4,
.article-heading-alt h5,
.article-heading-alt h6 {
  margin: 0;
  color: #333;
}

/* Section divider style heading */
.article-heading-section {
  position: relative;
  text-align: center;
  margin: 40px 0 30px 0;
}

.article-heading-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, #9D3420, transparent);
}

.article-heading-section h1,
.article-heading-section h2 {
  display: inline-block;
  padding: 0 20px;
  background: white;
  color: #9D3420;
  font-weight: 700;
  margin: 0;
}

/* リストに背景色とパディング */
.main-contents ul,
.main-contents ol {
  background-color: #f7f7f7;
  padding: 15px 20px;
  border-radius: 8px;
  margin: 15px 0;
}

.main-contents ul li,
.main-contents ol li {
  margin-bottom: 8px;
}


/* Responsive */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .articles-grid {
    grid-template-columns: 1fr;
  }

  /* ヒーローセクションのスマホ対応 */
  .hero {
    padding: 100px 0;
  }

  .hero h1 {
    font-size: 2rem;
    /* スマホで文字サイズを小さく */
  }

  .hero p {
    font-size: 1rem;
    /* スマホで文字サイズを小さく */
  }

  /* PCでの改行をスマホでは非表示 */
  .desktop-br {
    display: none;
  }

  /* ナビゲーションをハンバーガーメニューに */
  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .article-heading h1 {
    font-size: 1.8rem;
  }

  .article-heading h2 {
    font-size: 1.5rem;
  }

  .article-heading h3 {
    font-size: 1.3rem;
  }

  .logo {
    font-size: 18px;
  }
}


/* 関連記事の見た目を調整 */
.related-posts {
  max-width: 1200px;
  /* 全体の最大幅を設定 */
  margin: 0 auto;
  padding: 1rem;
}

.related-posts ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  /* 自動でカラム数調整 */
  gap: 30px;
  /* カード間の余白 */
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-posts li {
  display: flex;
}