html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: Futura, "Yu Gothic", "YuGothic", Avenir, sans-serif;
  background-color: #00172C;
  color: white;
}

.bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* z-index: 0; */
  pointer-events: none;
}

#case-study-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

h1 {
  margin-top: 5rem;
  font-size: 4rem;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.case-study-content-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 3rem 1rem;
}

.case-study-content {
  width: 90%;
  background: #fff;
  color: black;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 5;
  min-height: 60vh;
}

/* ===== Design 1: Simple ===== */
.tab-container ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  border-bottom: 2px solid #ddd;
}

.tab-container ul li {
  width: 100%;
  padding: 12px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 3px solid transparent;
}

.tab-container ul li.selected {
  /* color: #bd3a03; */
  color: #42CCEB;
  background-color: #f5f5f5;
  /* border-bottom-color: #bd3a03; */
  border-bottom-color: #42CCEB;
}

.tab-container ul li:not(.selected):hover {
  background-color: #f0f0f0;
}

.tab-container .tab-content {
  display: none;
  padding: 20px;
  min-height: 150px;
}

.tab-container .tab-content.selected {
  display: block;
}

.row {
  margin-top: 1rem;
}

.post-item {
  width: 100%;
}

.post-item img {
  width: 100%;
  height: 10vw; /* 高さ調整 */
  object-fit: contain; /* 高さに合わせて画像縮小表示 */
}


.post-title a {
  color: black;
  text-decoration: none;
  font-size: 1.2rem;
}

.post-meta {
  display: flex;
  align-items: center; 
  gap: 1rem;
  margin-top: 0.5rem;
}

.post-cat {
  background: #bd3a03;
  background: #42CCEB;
  color: #fff;
  display: inline-block;
  padding: .1rem .8rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  margin: 0;
}

.new {
  /* color: #bd3a03; */
  color: #42CCEB;
  font-size: 0.8rem;
}

.pagenate {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0 8px;
    list-style-type: none;
    padding: 0;
    padding-top: 2rem
}

.pagenate .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pagenate .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 1.5em;
    height: 1.5em;
    border: 1px solid black;
    border-radius: 1px;
    color: black;
    text-decoration: none;
}

.pagenate .page-numbers.current {
    background-color: black;
    color: white;
}

/* ========================　レスポンシブ　========================= */

/* ========================　スマホ　========================= */

@media (max-width: 768px) {
  
  h1 {
    font-size: 3rem;
  }
  .case-study-content-wrapper {
    /* width: 9%; */
    padding: 3rem 0;
  }
  .case-study-content {
    width: 95%;
    padding: 2rem .5rem;
  }
  .row>* {
    width: 100%;
  }
  .post-item img{
    height: 20vh;
  }
}