@charset "utf-8";
.cate {
  gap: clamp(0px, 5vw, 50px);
}
.main-visual {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
body.on .panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  transition: background 0.9s ease;
  pointer-events: none;
}
body.on .panel:hover::after {
  background: rgba(0, 0, 0, 0.0);
}
.main-visual .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
  gap: 5px;
  background: #000;
}
.main-visual .panel {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-decoration: none;
}
.panel:hover {
  opacity: 1 !important;
}
body.on .main-visual:hover::after {
  background: rgba(0, 0, 0, 0.1); /* 明るくする（黒を薄く） */
}
.main-visual .panel1 {
  background-image: url('https://saitozaimokuten.co.jp/system_panel/uploads/images/top-1.jpg');
}
.main-visual .panel2 {
  background-image: url('https://saitozaimokuten.co.jp/system_panel/uploads/images/top-2.jpg');
}
.main-visual .panel3 {
  background-image: url('https://saitozaimokuten.co.jp/system_panel/uploads/images/top-3.JPG');
}
.main-visual .panel4 {
  background-image: url('https://saitozaimokuten.co.jp/system_panel/uploads/images/top-4.jpg');
}
.main-visual .label {
  text-align: center;
  z-index: 5;
  transition: ease 0.3s;
}
.main-visual .label .title {
  width: clamp(100px, 10vw, 180px);
  margin: 15px 0 30px;
}
.label i {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  transition: transform 0.3s ease;
}
.panel:hover .label i {
  transform: translateX(4px);
}
body.on .section01 .center-logo {
  pointer-events: none;
}
.section01 .center-logo img {
  min-width: 370px;
  margin-bottom: 20px;
}
.section01 .center-logo .catch {
  color: #fff;
  line-height: 1.6;
  display: inline-block;
}
.section02 .tree-illustration {
  position: absolute;
  bottom: 0;
  right: clamp(20px, 10vw, 100px);
  width: 150px;
}
.section02::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://saitozaimokuten.co.jp/system_panel/uploads/images/tree.png');
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: cover;
  z-index: -2;
  pointer-events: none;
  opacity: 0.7;
}
.section03 .txtbox {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.section03 .talentlist .webgene-blog .webgene-item .imgbox {
  width: 80px;
  height: 80px;
}
.section03 .talentlist .webgene-blog .webgene-item {
  padding: 20px 0;
}
/* product-area */
.product-area {
  text-align: center;
  color: #fff;
  position: relative;
}
.cate5 {
  background-color: #84968A;
}
.product-title {
  position: relative;
  display: inline-block; /* 必須 */
  text-align: center;
}
.product-title::before, .product-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 90px;
  height: 90px;
  background-size: contain;
  background-repeat: no-repeat;
  transform: translateY(-50%);
}
/* 左の画像 */
.product-title::before {
  left: -110px;
  background-image: url('https://saitozaimokuten.co.jp/system_panel/uploads/images/smoke-l.png');
}
/* 右の画像 */
.product-title::after {
  right: -110px;
  background-image: url('https://saitozaimokuten.co.jp/system_panel/uploads/images/smoke-r.png');
}
.product-title span {
  font-size: 1.5em;
  font-weight: bold;
}
.product-desc {
  color: #fff;
  margin-bottom: 40px;
}
.product-list-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.product-list {
  flex-wrap: nowrap;
  gap: clamp(20px, 5vw, 60px);
}
.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% / 5 - 20px); /* 初期: 5列想定 */
  max-width: 200px;
}
.product-item .imgwrap {
  width: clamp(120px, 15vw, 170px);
  height: clamp(120px, 15vw, 170px);
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #000;
}
.product-item .imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.3);
  transform-origin: center;
}
.product-item p {
  margin-top: -10px;
  background: #000;
  color: #fff;
  padding: clamp(4px, 1vw, 8px) clamp(12px, 2vw, 20px);
  font-weight: bold;
  letter-spacing: 0.1em;
  z-index: 3;
}
.product-area .link-button {
  position: absolute;
  top: 35%;
  right: -30px;
  transform: translateY(-50%);
  z-index: 2;
}
/* product-area */
/*グリッド */
.visual-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0));
  z-index: 1;
  pointer-events: none;
}
.grid-wrapper {
  width: 100%;
  overflow: hidden; /* はみ出し部分を隠す */
  display: flex;
  justify-content: center;
}
.custom-grid {
  display: grid;
  grid-template-columns: 40% 15% 15% 30%;
  grid-template-rows: auto auto;
  min-width: 1000px;
  min-height: 500px;
  aspect-ratio: 1920 / 640;
  position: relative;
  overflow: hidden;
}
.item {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* グリッド配置 */
.item1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}
.item2 {
  grid-column: 2 / 4;
  grid-row: 1 / 2;
}
.item3 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.item4 {
  grid-column: 3 / 4;
  grid-row: 2;
}
.item5 {
  grid-column: 4 / 5;
  grid-row: 1 / 3;
}
/* ===== テキストレイヤー ===== */
.visual-block {
  position: relative;
}
.text-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
  pointer-events: none;
}
/* 左画像上のテキスト */
.overlay-text {
  position: absolute;
  top: clamp(20px, 18vw, 120px);
  left: 10%;
  color: #fff;
  pointer-events: auto;
}
.overlay-text h2, .section02 .main-title {
  font-size: clamp(32px, 6vw, 80px);
  font-weight: 300;
}
.cta-button {
  background: #000;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  display: inline-block;
  border-radius: 30px;
  font-size: 0.9rem;
}
.about-box {
  position: absolute;
  top: clamp(20px, 12vw, 100px);
  left: 55%;
  width: clamp(280px, 50vw, 400px);
  background: rgba(255, 255, 255, 1.00);
  padding: 30px;
  color: #000;
  font-size: 0.9rem;
  line-height: 1.8;
  z-index: 6;
  pointer-events: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.about-box h3 {
  margin-bottom: 10px;
  letter-spacing: 0.3em;
}
/* グリッド */
@keyframes rotate {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
.rotate-logo {
  width: clamp(200px, 50vw, 419px);
  aspect-ratio: 1 / 1;
  animation: rotate 20s linear infinite;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}
body.on .rotate-logo {
  pointer-events: none;
}
.rotate-logo2 {
  animation: rotate 10s linear infinite;
}
/* ---------- main ---------- */
/* ---------- more ---------- */
/* ---------- IEのみ ---------- */
@media all and (-ms-high-contrast: none) {}
/* ---------- 1280px ~ ---------- */
@media screen and (max-width: 1280px) {
  .recruit1 .item-wrap {}
  .recruit1 .item-wrap .item > div {
    padding-left: 0px;
  }
  .main-wrap .map {
    height: 500px;
  }
  .main-wrap .history .box_wrap .box {
    padding-left: 150px;
  }
}
/* ---------- 1080px ~ ---------- */
@media screen and (max-width: 1080px) {
  .section02 .text-area {
    width: 100%;
  }
  .recruit1 .item-wrap {
    width: 100%;
  }
  .recruit1 .item-wrap .item h3 {
    width: 120px;
    padding-right: 20px;
  }
  .recruit1 .item-wrap .item > div {
    width: calc(100% - 120px);
    padding-left: 20px;
  }
  .product-area .link-button {
    right: 0px;
  }
}
/* ---------- 768px ~ ---------- */
@media screen and (max-width: 768px) {
  .product-item .imgwrap {
    width: clamp(90px, 25vw, 150px);
    height: clamp(90px, 25vw, 150px);
  }
  .product-list {
    flex-wrap: wrap;
    gap: 0px;
  }
  .product-item {
    width: calc(100% / 3); /* 3列 */
  }
  .product-area .link-button {
    top: 25%;
    right: -30px;
  }
  /* グリッド */
.grid-wrapper {
height: 580px;
}
    
  .visual-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
  }
  .text-layer {
    flex-direction: column;
  }
  .overlay-text h2 {
    font-size: 50px;
  }
  .overlay-text {
    width: 100%;
    position: relative;
    top: 50px;
    left: 0%;
  }
  .about-box {
    top: 75px;
    left: 0%;
    width: 92%;
    position: relative;
    max-width: 600px;
    padding: clamp(0px, 5vw, 30px);
    background: rgba(255, 255, 255, 0.90);
  }
  /* グリッド */
}
/* ---------- 576px ~ ---------- */
@media screen and (max-width: 576px) {
  .section02 .circle-area {
    width: 400px;
    height: 400px;
  }
  .section02 .circle {
    position: absolute;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
    flex-direction: column;
    z-index: 2;
    padding: 10px;
  }
  .section02 .center-logo {
    width: 120px;
    height: 120px;
  }
  .product-title::before, .product-title::after {
    width: 70px;
    height: 70px;
  }
  .product-title::after {
    right: -70px;
  }
  .product-title::before {
    left: -70px;
  }
  .product-list-wrap {
    justify-content: center;
  }
  .product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 10%;
  }
  .product-item {
    width: calc(50% - 10px); /* gap考慮して2列 */
    max-width: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .product-area .link-button {
    position: absolute;
    top: 210px;
    right: 2%; /* 横の中央に配置 */
  }
  .recruit1 .item-wrap {}
  .recruit1 .item-wrap .item {
    gap: 0;
  }
  .recruit1 .item-wrap .item h3 {
    width: 100%;
    padding: 10px 0 0;
    padding-right: 0px;
  }
  .recruit1 .item-wrap .item > div {
    width: 100%;
    padding-left: 0px;
  }
  .access-wrap {
    flex-wrap: wrap;
  }
  .access-box {
    width: 100%;
  }
  .main-wrap .map {
    height: 350px;
  }
  .main-wrap .history .box_wrap::after {
    left: 20px;
    height: calc(100% - 60px);
  }
  .main-wrap .history .box_wrap .box {
    padding-left: 70px;
  }
  .main-wrap .history .box_wrap .box:not(:last-of-type) {
    margin-bottom: 50px;
  }
  .main-wrap .history .box_wrap .box p {
    margin-bottom: 0;
  }
  .main-wrap .history .box_wrap .box::after {
    width: 40px;
  }
}
/* ---------- 350px ~ ---------- */
@media screen and (max-width: 350px) {}