@charset "UTF-8";

.slider-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto 20px;
}
@media (max-width: 500px) {
  .slider-wrap {
    margin: 0 auto 0;
  }
}
.swiper.main {
  width: 100%;
  /*height: 500px;*/
}
.swiper.main .swiper-slide img {
  width: 100%;
  /*height: 100%;*/
  height: 600px;
  object-fit: cover;
  line-height: 0;
}
@media (max-width: 500px) {
  .swiper.main {
    line-height: 100%;
  }
  .swiper.main .swiper-slide img {
    height: 260px;
  }
}
.swiper-slide p {
  background-color: #efeae8;
  text-align: center;
  padding: 15px;
}
@media (max-width: 500px) {
  .swiper-slide p {
    padding: 10px;
  }
}
/* サムネイル */
.thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  max-width: 1100px;
  margin: 0 auto;
}
.thumbs img {
  width: calc((100% - 40px) / 5); /* 5個で改行 */
  /*max-width: 110px;*/
  height: 100px;
  object-fit: cover;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s, border 0.3s;
}
.thumbs img.active {
  opacity: 1;
}
/* レスポンシブ */
@media (max-width: 500px) {
  .swiper.main {
    width: 100%;
    /*height: 150px;*/
  }
  .thumbs img {
    width: calc((100% - 20px) / 3); /* スマホでは3列 */
    max-width: none;
    height: 50px;
  }
}
/* 丸ベタ矢印（スライダー外側配置） */
.swiper-button-next, .swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(64, 33, 15, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}
.swiper-button-next:hover, .swiper-button-prev:hover {
  background: rgba(64, 33, 15, 0.7);
  color: #fff;
}
.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 18px;
  font-weight: bold;
}
.swiper-button-prev {
  left: -60px; /* ← 外側へはみ出す位置 */
}
.swiper-button-next {
  right: -60px; /* → 外側へはみ出す位置 */
}
/* レスポンシブ調整 */
@media (max-width: 900px) {
  .swiper-button-prev {
    left: -40px;
  }
  .swiper-button-next {
    right: -40px;
  }
}
@media (max-width: 500px) {
  .swiper-button-next, .swiper-button-prev {
    width: 38px;
    height: 38px;
  }
  .swiper-button-next::after, .swiper-button-prev::after {
    font-size: 14px;
  }
  .swiper-button-prev {
    left: -15px;
  }
  .swiper-button-next {
    right: -15px;
  }
}


/* 主な医療機器 */
.diagnostic-1 {
  padding-top: 150px;
}
@media (max-width: 500px) {
  .diagnostic-1 {
    padding-top: 60px;
  }
}
.lead {
  padding-bottom: 20px;
}
.device {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: flex-start;
  padding-top: 20px;
}
.device .box {
  
  /*flex: 1 1 calc(33.333% - 10px);*/
  flex: 0 0 calc((100% - 80px) / 3); /* gap(10px)×2を引いて3等分 */
}
.device .box .ex {
  font-size: 90%;
  line-height: 1.4em;
  text-align: center;
  padding-top: 8px;
}
.device .box .linktbn {
  display: table;
  margin-left: auto;
  margin-right: auto;
  margin-top: 8px;
}
.device .box .linktbn a {
  display: block;
  padding: 2px 40px 3px;
  border-radius: 6px;
  color: #40210f;
  font-size: 90%;
  background-color: antiquewhite
}
@media (max-width: 500px) {
  .device {
    gap: 15px 10px;
    padding-top: 0px;
  }
  .device .box {
    flex: 0 0 calc((100% - 10px) / 2);
  }
  .device .box.picup {
    flex: 0 0 90%;
    margin-left: auto;
    margin-right: auto;
  }
  .device .box .ex {
    line-height: 1.3em;
  }
}