@charset "UTF-8";

.haguruma_wrapp {
  display: flex;
  align-items: center;
  gap: 50px;
}

.haguruma_wrapp > img {
  width: 420px;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
  margin:50px;
}

.haguruma_txt {
  flex: 1;
}

.haguruma_txt p {
  line-height: 1.8;
  margin: 0;
}

.haguruma_con {
  position: relative; /* この中で重なり順を制御 */
  margin-bottom:100px;
}

.haguruma_con .bg {
  position: absolute;
  top: 0;
  left: -50vw;
  right:0;
  width:150vw;
  height: 100%;
  background: #f0f0f0; /* 装飾用の背景色やグラデーション */
  z-index: -1; /* 一番後ろに配置 */
}

.haguruma_con .haguruma_wrapp {
  position: relative;
  z-index: 1; /* 背景より手前に表示 */
}

.main_wrapp {
  display: flex;
  gap: 22px;          /* カラム間の余白 */
  max-width: 1400px;  /* セクションの最大幅 */
  margin: 0 auto;
}

.main_wrapp > div {
  flex: 1;
  height: 625px;
  display: flex;
  background-size: cover;
  background-position: center;
  color: #3C3F43;
  font-size: 1.5rem;
  font-weight: bold;
}

/* 背景画像をそれぞれ指定 */
.box_airplane {
  background-image: url("https://www.tamayakin.co.jp/wp/wp-content/themes/tamayakin/img/business/detail_airplane.png");
  justify-content: center;
  align-items: flex-start;
}

.box_cosmo {
  background-image: url("https://www.tamayakin.co.jp/wp/wp-content/themes/tamayakin/img/business/detail_rocket.png");
  justify-content: center;
  align-items: flex-start;
}

.box_boei {
  background-image: url("https://www.tamayakin.co.jp/wp/wp-content/themes/tamayakin/img/business/detail_ship.png");
  justify-content: center;
  align-items: flex-start;
}

/* span の余白調整 */
.main_wrapp span {
  padding: 20px 20px;
}

.ninsyou_df {
  position:relative;
}

#term3 .bg{
  position: absolute;          /* 背景や子要素のz-index制御用 */
  top:360px;
  left: -50vw;
  right:0;
  width: 150vw;                 /* 横幅いっぱいに */
  height:85%;
  background-color: #d3e8ea;    /* 任意の背景色 */
  z-index:-1;
}

#term4 {
  margin-top:-200px;
  margin-bottom:150px;
}

#term4 .link_btn {
  margin-left:520px;
}

div.r h6.purpose {
  margin-top:0;
  padding-top:0;
}

/*ピラミッド色指定*/

.pyramid svg polygon {
  transition: fill 0.3s ease; /* スムーズに色が変わる */
}

.pyramid svg .p1.active { fill: #f4cccc; }  /* hover時の色 */
.pyramid svg .p2.active { fill: #ffe599; }
.pyramid svg .p3.active { fill: #b6d7a8; }
.pyramid svg .p4.active { fill: #9fc5e8; }
.pyramid svg .p5.active { fill: #f6b26b; }
.pyramid svg .p6.active { fill: #f4cccc; }

.pyramid svg .p1.white { fill: #ffffff; }  /* hover時の色 */
.pyramid svg .p2.white { fill: #ffffff; }
.pyramid svg .p3.white { fill: #ffffff; }
.pyramid svg .p4.white { fill: #ffffff; }
.pyramid svg .p5.white { fill: #ffffff; }
.pyramid svg .p6.white { fill: #ffffff; }


#term_cosmo {
  background-color: #cccccc;
  background-image: url("https://www.tamayakin.co.jp/wp/wp-content/themes/tamayakin/img/business/detail_bg_cosmo.png");
  background-size: cover;       /* 画面いっぱいにカバー */
  background-position: center;  /* 中央寄せ */
  background-repeat: no-repeat; /* 繰り返しなし */
  padding: 40px 20px;           /* 内側の余白を確保 */
  color: #fff;                  /* 背景が暗めなら文字は白に */
  text-align: center;
  position: relative;
  z-index: 100;
}

#term_cosmo .ib_cosmo h3{
   color:#ffffff;
   text-align: center;
   font-size: 4em;
   line-height: 0.8em;
   margin-top: 100px;
}

#term_cosmo .ib_cosmo h3::before{
  content: none;
}

#term_cosmo .ib_cosmo h3 i{
  font-size:0.6em;
  font-weight: 300;
  line-height: 0.6em;
}

#term_cosmo .ib_cosmo h3 i span{
  background-color: #ffffff;
  color:#333333;
}

#term_cosmo .ib_cosmo h4{
   color:#ffffff;
   text-align: center;
   font-size: 2em;
   line-height: 0.8em;
}

#term_cosmo .ib_cosmo h4::before{
  content: none;
}

.ib_cosmo img{
  margin-bottom:100px;
}

.equipment-table {
  width: 50%;
  border-collapse: separate; /* セル間に余白を作れるようにする */
  border-spacing: 0 10px;   /* 行ごとの余白（上下10px） */
  margin:0 auto;
}

.equipment-table td {
  background: rgba(255, 255, 255, 0.8); /* 半透明の白 */
  padding: 10px 15px;
  font-size: 20px;
  color:#333333;
}

.equipment-title {
  text-align: center;
  margin: 30px 0 15px;
  font-size: 18px;
  font-weight: bold;
  color: #fff; /* 背景が暗いので白文字 */
}

.strengths {
    display: block;
    margin:0 auto;
  }

.strengths_sp {
        display: none;
      }

.top_message {
        width:80%;
      }

.top_message .message_txt {
        margin-top:-100px;
      }

.top_message .message_txt p.name{
        padding:100px 0 0 500px;
      }

.solar .comp_solar h3 {
        width:1500px;
      }

.solar .comp_solar:before {
          content: "";
          background: url("https://www.tamayakin.co.jp/wp/wp-content/themes/tamayakin/img/company/solar2.jpg") 50% 50%;
          background-size: auto 800px;
          height: 480px;
          top: 360px;
          left: 0;
          width: calc(50vw - 120px);
          position: absolute;
      }

#content .solar .comp_solar p {
        width:600px;
        margin:300px 500px;
      }


.data_sp {
        display: none;
      }

.data_pc {
        display: block;
        width:800px;
        margin:0 auto;
      }

.data_honsya, .data_minami {
        display: block;
        width:800px;
      }

@media (max-width: 768px) {
  .haguruma_wrapp {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .haguruma_wrapp > img {
    width: 100%;
    margin:20px 0px 0 0;
  }

  .main_wrapp {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin: 0 auto;
  }

  .main_wrapp > div {
    color: #ffffff;
    min-height: 150px;          /* スマホ用に高さを短く */
    background-position: center middle;
  }

  .main_wrapp div span{
  }

  #term3 .bg{
    top:500px;
    height:150%;
  }

  #term4 {
    margin-top:0;
    margin-bottom:150px;
  }

  #term4 .link_btn {
    margin-left:0;
  }

  .minami_tab {
    position:absolute;
    top:-150px;
  }

  .lookup_con.factory.minami_con {
    margin-top:-150px;
  }

  .minami_tab span.active s{
    margin-left:-100px;
  }
  #term_cosmo .ib_cosmo h3{
     font-size: 3em;
  }

  .equipment-table {
    width: 90%;
}

.strengths {
    display: none;
  }

.strengths_sp {
      display: block;
      width:95%;
      margin:0 auto;
    }

#contente .ib .solar_wrap{
      display:block;
    }

.solar .comp_solar h3 {
      width:100%;
    }

#content .solar .comp_solar p {
      width:100%;
      margin:700px 0 0 0;
    }

.solar .comp_solar:before {
        content: "";
        background: url("https://www.tamayakin.co.jp/wp/wp-content/themes/tamayakin/img/company/solar2.jpg") 50% 50%;
        background-size: auto 800px;
        height: 480px;
        top: 300px;
        left: 0;
        width: 100%;
        position: absolute;
    }

.data_pc {
      display: none;
    }

.data_sp {
      display: block;
      width:90%;
      margin:0 auto;
    }

.area_honsya, .area_minami {
      display: block;
      width:100%;
      margin:0 auto;
    }
}
