html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* overflow: hidden; */
}

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;
}

.case-study-title {
    margin-top: 5rem;
    font-size: 4rem;
}

.recruit-title{
    margin-top: 5rem;
    font-size: 4rem;
}

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

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

.case-study-content {
  width: 100%;
  background: #fff;
  color: black;
  padding: 10vw;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  z-index: 5;
}

/* ===== 画像エリア中央配置 ===== */
#case-study-top-img {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

/* ===== 表示フレーム（高さを統一） ===== */
.img-box {
  width: min(900px, 100%);
}

/* 画像表示枠 */
.img-box img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
/* 注釈 */
.img-box p {
  text-align: right;
  margin-top: .4rem;
  font-size: .75rem;
}

/* #case-study-top-img {
  display: flex;
  margin-top: 2rem;
  flex-direction: column;
  gap: .5rem;
  margin: 0 auto;
  align-items: center;
}

.img-box{
  width: min(3000px, 100%);
  aspect-ratio: 16 / 9; 
}

.img-box img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
} */
 
/* .img-box{
  display: inline-block;
}

.img-box img {
  width: 100%;
  height: auto;
  max-height: 60vh;
  display: block;
  object-fit: contain;
}*/

/* .img-box P {
  text-align: right;
}  */

.case-study-content h1,
.case-study-content #case-study-top-img img {
    text-align: center;
}

.case-study-content h1 {
    font-size: 3rem;
}

/* #case-study-top-img img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  max-height: 50vh;
} */

#case-study-top-img p {
  font-size: .7rem;
}

.case-images {
  display: grid;
  gap: 1rem;
}

/* img, svg {
  width: 100%;
} */


.post-cat {
  /* background: #bd3a03; */
  background: #42CCEB;
  color: white;
  display: inline-block;
  padding: .1rem 2rem;
  margin: 1rem 0;
  border-radius: 1rem;
  font-size: 1rem;
}

.case-study-content-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.case-study-detail-link {
  font-size: 1.5rem;
}

.case-study-text {
  font-size: 1.3rem;
}

.customer-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.customer-image {
    width: 8vw;
    height: 8vw;
    object-fit: contain;
}

.customer-text p {
    margin: 0;
}

.case-field {
  margin-bottom: 2rem;
}

.back {
  text-align: center;
  text-decoration: #42CCEB underline;
  padding-top: 2rem;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.back a {
  color: black;
}

.dli-caret-left {
  display: inline-block;
  vertical-align: middle;
  color: #42CCEB;
  line-height: 1;
  width: 0;
  height: 0;
  border-style: solid;
  border-color: transparent;
  border-width: 0.375em 0.64952em;
  border-right-color: currentColor;
  border-left: 0;
}

.case-scope-boxes{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.case-scope-box{
  padding: 12px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 10px;
  background: #f5f5f5;
  transition: .25s;
}

/* ★チェックされたものだけ */
/* .case-scope-box.is-checked{
  background: #8E8E8E;
  color: #fff;
  border-color: #8E8E8E;
  font-weight: bold;
} */

/* img, svg {
    width: 8%;
} */

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

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

@media (max-width: 768px) {
  
  .case-study-title {
    font-size: 3rem;
  }
  .case-study-content h1 {
    font-size: 1.5rem;
}
  .case-study-content-wrapper {
    width: 100%;
    padding: 3rem 0;
  }
  .case-study-content {
    width: 95%;
    padding: 2rem .5rem;
  }

  .img-box{
  display: inline-block;
}

.img-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

  .customer-wrapper {
    flex-direction: column;
    gap: 0;
  }
  .customer-image {
    width: 30%;
    height: auto;
    margin: 2rem 0;
  }
  .case-study-text {
  font-size: 1rem;
}
.case-study-content-title {
  font-size: 1.2rem;
}
.back {
  font-size: 1rem;
}

.case-scope-boxes {
  padding: 8px;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 8px;
  }

  .case-scope-box {
    padding: 10px;
    font-size: 14px;
  }

}