@charset "utf-8";
/* CSS Document */

/* ---------- cate3 ---------- */
.cate3 .boxwrap {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 3vw, 30px);
}

.cate3 .boxwrap .box {
  width: calc((100% - 60px) / 3);
  cursor: pointer;
}

.cate3 .imgbox a {
  display: block;
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.cate3 .imgbox img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- modal ---------- */

.modal_wrap {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

/* 開いた状態 */
.modal_wrap.active {
  display: flex;
  width: 700px;
  height: 700px;
}
/* フェードアニメーション */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* モーダル中身 */
.modal-item {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  box-shadow: none;
  padding: 30px 50px;
  gap: 30px;
  animation: scaleUp 0.3s ease;
}

@keyframes scaleUp {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* 画像 */
.modal-img {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-img img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* テキスト */
.modal-txt {
  display: none;
  flex: 0 0 auto;
  margin-top: 20px;
  text-align: center;
  color: #fff;
  flex-direction: column;
  gap: 10px;
}
.lb-caption .modal-txt {
  display: flex;
  color: #333; /* Lightbox内は背景が白系なら黒文字に */
}
body:not(.on) .modal-txt {
  display: block;
	background-color: #000;
}
.cate1 .title-style4 {
  text-align: center;
}
.cate1 .title-style4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1px;
  background-color: #847D5F;
}
/*  flow  */
.flow-box {
  justify-content: space-between;
}
.flow-box .flow-item {
  flex-direction: column;
  flex: 1;
  padding: 30px 10px;
}
.flow-box .flow-item img {
  width: clamp(70px, 10vw, 90px);
  height: auto; 
margin-top: clamp(10px, 2vw, 15px);
margin-bottom: clamp(10px, 3vw, 20px);
}
.flow-box .flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 10px;
  padding-right: 10px;
  flex: 0 0 40px;
}
.flow-box .flow-arrow img {
  width: 25px;
  height: auto;
}
.flow-box .numbox {
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.flow-box .numbox .number {
  font-family: "EB Garamond", sans-serif;
  font-size: 30px;
  color: #847D5F;
  letter-spacing: 0.2em;
  font-weight: 500;
}
.flow-box .flow-item p {
  text-align: center;
}

/* ---------- cate4 ---------- */
.cate4 .box_wrap3 {
  gap: 100px;
}
.cate4 .box_wrap3 .boxitem {
  width: 100%;
  gap: 60px;
}
.cate4 .box_wrap3 .boxitem .imgbox {
  width: calc(40% - 30px);
}
.cate4 .box_wrap3 .boxitem .txtbox {
  width: calc(60% - 30px);
}
.cate4 .oem-contactbox {
  gap: 40px;
  background-color: #343434;
  margin-top: 20px;
  justify-content: space-around;
  padding: 60px 80px;
}
.cate4 .oem-contactbox .titlebox {
  flex-direction: column;
	align-items: flex-start;
	width: calc(20% - 20px);
}
.cate4 .oem-contactbox .rightbox{
	width: calc(80% - 20px);
}
.cate4 .oem-contactbox .telbox{
	margin-left: 50px;
}
.cate4 .oem-contactbox .telbox {
  margin-left: 50px;
}
.cate4 .oem-contactbox .telbox img {
  width: 25px;
  margin-right: 10px;
}


/* ---------- IEのみ ---------- */
@media all and (-ms-high-contrast: none) {}
/* ---------- 1280px ~ ---------- */
@media screen and (max-width: 1280px) {
  .flow-box {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
  }
  .flow-box .flow-arrow {
    flex: 0 0 40px;
    padding: 0;
    box-sizing: border-box;
  }
  .flow-box .flow-item {
    box-sizing: border-box;
    flex: 0 1 calc((90% - 0px) / 3);
  }
  .flow-box .flow-arrow {
    display: none;
  }
  .cate4 .oem-contactbox .telbox img {
    width: 22px;
  }
}
/* ---------- 1080px ~ ---------- */
@media screen and (max-width: 1080px) {
  .flow-box .flow-item {
    box-sizing: border-box;
    flex: 0 1 calc((100% - 0px) / 3);
  }
  
  .cate4 .box_wrap3 .boxitem {
    gap: 50px;
  }
  .cate4 .oem-contactbox {
    flex-direction: column;
    padding: 30px 40px;
  }
  .cate4 .oem-contactbox .titlebox{
		align-items: center;
		width: 100%;
	}
  .cate4 .oem-contactbox .rightbox{
		width: 100%;
	}

}
/* ---------- 768px ~ ---------- */
@media screen and (max-width: 768px) {
  .cate1 .title-style4 h2 span {
    display: inline-block;
  }
  .cate1 > p br {
    display: none;
  }
  .cate1 > p span {
    display: inline-block;
  }
  .flow-box .flow-arrow {
    display: none;
  }
  .flow-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2列 */
    column-gap: 16px; /* 横の間隔 */
    row-gap: 16px; /* 縦の間隔 */
    align-items: start; /* 各カードの上端を揃える */
  }
  .flow-box .flow-item {
    padding: 20px 20px; /* そのまま踏襲 */
    box-sizing: border-box;
  }

  .flow-box .flow-arrow {
    display: none;
  }
  .cate4 .oem-contactbox {
    gap: 40px;
    margin-top: 20px;
  }
  .cate4 .oem-contactbox .rightbox {
    flex-direction: column;
  }
  .cate4 .oem-contactbox .telbox {
    margin-left: 0px;
    margin-top: 20px;
  }
  .cate4 .box_wrap3 {
    gap: 50px;
  }
  .cate4 .box_wrap3 {
    gap: 30px;
  }
  .cate4 .box_wrap3 .boxitem {
    display: flex;
    flex-direction: column-reverse;
    gap: 24px;
    max-width: 100%;
    margin-top: 60px;
  }
  .cate4 .box_wrap3 .boxitem2 {
    flex-direction: column;
  }
	.cate3 .boxwrap {
		flex-direction: column;
	}
	.cate3 .boxwrap .box {
		width: 100%;
	}
.cate4 .box_wrap3 .boxitem {
    flex-direction: column-reverse;
  }
  .cate4 .box_wrap3 .boxitem2 {
    flex-direction: column;
  }
  .cate4 .box_wrap3 .boxitem .txtbox {
    width: 100%;
  }
  .cate4 .box_wrap3 .boxitem .imgbox {
    width: 100%;
  }
}
/* ---------- 576px ~ ---------- */
@media screen and (max-width: 576px) {
  .flow-box {
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 12px;
    justify-items: center; /* 中央寄せ */
  }
  .flow-box .flow-item {
    width: 100%;
    max-width: 600px; /* 中央寄せ＋最大幅 */
    padding: 20px 20px;
    box-sizing: border-box;
  }
  .cate4 .box_wrap3 .boxitem .txtbox {
    width: 100%;
  }
  .cate4 .box_wrap3 .boxitem .imgbox {
    width: 100%;
  }
}
/* ---------- 350px ~ ---------- */
@media screen and (max-width: 350px) {}