/* 背景写真 */
#Company_overview {
  display: block;
  background-image: url("../asset/company_overview/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100dvh;
  padding: 20px 0 10px;
  opacity: 0.99;
  /* border: 2px solid blue; */
}

.container {
  /* border: 2px solid blue; */
}

/*********** title ************/
/* すべてBOXの共通デザイン */
#Company_overview .content.title,
.overview,
.bank,
.affiliate,
.main_factory,
.gunma_factory,
.yonezawa_factory {
  position: relative;
  width: 100%;
  padding: 9px;
  border: 5px solid black;
  border-bottom-width: 10px;
  background-color: white;
}

#Company_overview .content.title {
  margin-top: 40px;
}

/* Top画像 */
#Company_overview .content.title::before,
#Company_overview .content.title::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-size: contain;
}

#Company_overview .wrapper .content.title::before {
  background-image: url(../../assets/images/warpLeft.png);
  background-position: left;
}

#Company_overview .content.title::after {
  background-image: url(../../assets/images/warpRight.png);
  background-position: right;
}

#Company_overview h2 {
  font-size: 40px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
}

#Company_overview h2::after {
  display: inline-block;
  content: attr(data);
  font-size: 12px;
  color: var(--black);
  margin: auto 6px;
}

@media(max-width:997px) {
  #Company_overview h2 {
    line-height: 48px;
    flex-direction: column;
  }

  #Company_overview h2::after {
    line-height: normal;
  }
}

@media (max-width:576px) {
  #Company_overview h2 {
    line-height: 32px;
    font-size: 32px;
  }
}

#Company_overview p {
  font-weight: bold;
  margin: 3% 0;
  text-align: left;
}

#Company_overview .form_text {
  font-size: 35px;
  text-align: left;
  /* border: 2px solid tomato; */
  margin: 3% 0;
  color: var(--white);
}

/* overview, bank, affiliateの共通 */
.overview,
.bank,
.affiliate {
  display: flex;
  text-align: left;
  /* font-size: large; */
  margin-bottom: 8%;
}

/* overview */
.overview_a,
.overview_b {
  width: 50%;
  margin: 0 1% 9%;
}

.line {
  border: 1px solid black;
  margin: 3% 0;
}

.overview li {
  display: flex;
  height: 40px;
  align-items: center;
}

.part_1 {
  width: 25%;
}

.part_2 {
  font-weight: bold;
  width: 75%;
}

.content {
  padding-top: 16%;
  font-size: medium;
  font-weight: normal;
}

/* bank */
/* bank affiliate 共通背景画像 */
.bank {
  align-items: center;
  text-align: center;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 45px 2% 2%;
  background-image: url("../asset/company_overview/shut_2051722625.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* border: 2px solid tomato; */
}

.bank ul {
  margin: 0 2%;
  /* border: 2px solid tomato; */
}

.bank li {
  align-items: center;
  margin: 5% 0;
  text-align: center;
  font-weight: bold;
  border-radius: 50px;
  /* display: block; */
  padding: 2% 0;
  width: 100%;
  border: 2px solid var(--black);
}

/* トゲトゲ画像と中身テキスト */
.bank::after {
  position: absolute;
  text-align: center;
  display: inline-block;
  content: "取引\A銀行";
  white-space: pre;
  /* 改行したい箇所で「\A」を入力し、同時に「white-apace: pre;」を指定するだけで、改行することができます。*/
  background-image: url(../asset/company_overview/togetoge.png);
  top: -53px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3%;
  /* 中身のテキストの位置 */
  font-weight: bold;
  width: 100px;
  height: 100px;
}

/* affiliate */
/* トゲトゲ画像と中身テキスト */
.affiliate {
  padding: 45px 0 2%;
  background-image: url("../asset/company_overview/shut_2051722625.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.affiliate::after {
  position: absolute;
  text-align: center;
  display: inline-block;
  content: "関連\A会社";
  white-space: pre;
  /* 改行したい箇所で「\A」を入力し、同時に「white-apace: pre;」を指定するだけで、改行することができます。*/
  background-image: url(../asset/company_overview/togetoge.png);
  top: -53px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3%;
  /* 中身のテキストの位置 */
  font-weight: bold;
  width: 100px;
  height: 100px;
}

table {
  border-spacing: 15px;
  width: 100%;
  margin: 0 2%;
}

td {
  position: relative;
  font-size: 12px;
  padding: 10px 0 10px 2px;
  margin: 0 10px;
  text-align: left;
  border: 2px solid var(--black);
  font-weight: bold;
  align-items: center;
}

a {
  color: inherit;
}

/* ホバーすると色反転する */
td:hover {
  background-color: var(--black);
  color: var(--white);
}

.aff_link_btn:hover::after {
  /* cursor: pointer; */
  /* pointer-events: none; */
  filter: invert(100%);
  /* 画像の色反転 */
  content: "";
  background-image: url(../asset/company_overview/ico_nw.png);
}

.aff_link_btn::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  background-image: url(../asset/company_overview/ico_nw.png);
  align-items: center;
  right: 5px;
}

/* これからサイトの下部分 */

/* main_factory,gunma_factory,yonezawa_factoryの共通 */
.main_factory,
.gunma_factory,
.yonezawa_factory {
  padding: 45px 2% 2%;
  font-weight: bold;
  text-align: left;
  margin-bottom: 12%;
  /* border: 2px solid tomato; */
}

.main_factory li,
.gunma_factory li,
.yonezawa_factory li {
  margin: 15px 0;
}

.main_factory_up,
.gunma_factory_up,
.yonezawa_factory_up {
  display: flex;
  width: 100%;
  margin-bottom: 2%;
  /* border: 2px solid blue; */
}

.main_factory_a,
.main_factory_b,
.main_factory_down ul,
.gunma_factory_a,
.gunma_factory_b,
.yonezawa_factory_a,
.yonezawa_factory_b {
  margin: 0 1%;
}

.main_factory_a {
  width: 60%;
}

.gunma_factory_a,
.yonezawa_factory_a {
  width: 100%;
}

.main_factory_b,
.gunma_factory_b,
.yonezawa_factory_b {
  width: 30%;
}

.main_factory_toge,
.gunma_factory_toge,
.yonezawa_factory_toge {
  width: 100px;
  height: 100px;
}

.main_factory_a li::before,
.main_factory_down li::before,
.gunma_factory_a li::before,
.yonezawa_factory_a li::before {
  padding-left: 30px;
  content: "";
  /* position: absolute;
  width: 20px;
 height: 20px; */
  background-image: url(../asset/company_overview/icon_check.png);
}

/* main_factory */
.form_text_2 {
  font-size: 40px;
  text-align: center;
  /* border: 2px solid tomato; */
  margin: 50px 0 80px;
  color: var(--white);
}

.main_factory::before,
.yonezawa_factory::before {
  position: absolute;
  content: "";
  background-image: url(../asset/company_overview/baloon.png);
  top: 0;
  right: 15%;
  font-weight: bold;
  height: 200px;
  z-index: -1;
  aspect-ratio: 227/220;
  transform: translateY(-50%);
}

.gunma_factory::before {
  position: absolute;
  content: "";
  background-image: url(../asset/company_overview/baloon.png);
  top: 0;
  left: 12%;
  font-weight: bold;
  height: 200px;
  z-index: -1;
  aspect-ratio: 227/220;
  transform: translateY(-50%);
}

.main_factory_down {
  display: flex;
  /* border: 2px solid green; */
}

.main_factory_down ul {
  width: 100%;
  margin-bottom: 3%;
}

/* main_factory内にあるとげ */
.main_factory_up_toge,
.main_factory_down_toge,
.gunma_factory_up_toge,
.yonezawa_factory_up_toge {
  position: relative;
  margin: 0;
  padding: 0;
  /* border: 2px solid green; */
}

.main_factory_up_togetext {
  position: absolute;
  top: 8%;
  left: 34%;
}

.gunma_factory_up_togetext,
.yonezawa_factory_up_togetext {
  position: absolute;
  top: 20%;
  left: 34%;
}

.main_factory_down_togetext {
  position: absolute;
  top: 18%;
  left: 34%;
}

.black_box {
  display: flex;
  position: absolute;
  background-color: var(--black);
  color: var(--white);
  justify-content: space-between;
  padding: 3% 3%;
  font-weight: bold;
  left: 23%;
  width: 55%;
  top: 0;
  transform: translateY(-50%);
  /* ストライプを右下にずらしたCSS囲み枠デザイン repeating linear gradient*/
  background: linear-gradient(135deg, var(--black) 0 100%),
    repeating-linear-gradient(45deg, var(--black) 3px 5px, transparent 3px 6px);
  background-repeat: no-repeat;
  background-size: calc(100% - 0.5rem) calc(100% - 0.5rem);
  background-position: 0, 0.2em 0.5rem;
}

.sp {
  display: none;
}

/* 769~992px タブレット（TB）＝（SP表示） */
@media screen and (max-width: 992px) {
  .pc {
    display: none;
  }

  .sp {
    display: block;
  }

  /* overview */
  .overview.sp {
    padding: 3% 5% 5%;
    font-size: x-large;
  }

  .overview.sp li {
    height: auto;
  }

  .overview.sp .part_1,
  .overview.sp .part_2 {
    padding: 1% 0;
    border-bottom: 2px solid var(--black);
    margin: 0 2%;
  }

  .overview.sp .part_1.under_1 {
    padding: 26px 0;
  }

  .overview.sp .part_1.under_2 {
    padding: 58px 0;
  }

  .overview_a,
  .overview_b {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .overview li {
    align-items: normal;
  }

  .content {
    padding-top: 0;
    font-size: x-large;
    font-weight: bold;
    margin: auto;
  }

  /* bank */
  .bank.sp {
    display: flex;
  }

  .bank.sp ul {
    width: 100%;
    font-size: larger;
  }

  .bank.sp li {
    border: 4px solid var(--black);
  }

  /* トゲトゲ位置調整 */
  .bank.sp::after,
  .affiliate::after {
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    font-weight: bold;
    font-size: 28px;
    width: 150px;
    height: 150px;
    background-size: 100%;
    padding: 4%;
  }

  .bank.sp::after {
    top: -19%;
  }

  .affiliate::after {
    top: -10%;
  }

  /* affiliate */
  .affiliate table.sp {
    margin: 0 auto;
    width: unset;
    border-spacing: 20px;
  }

  .affiliate .sp td {
    font-size: 20px;
    padding: 5% 15px;
    width: calc(50%);
    border: 4px solid var(--black);
  }

  .affiliate .sp td::after {
    margin: 3% 0;
  }

  /* main_factory */
  .black_box {
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 86%;
    font-size: x-large;
    padding: 3% 6%;
  }

  .main_factory::before,
  .yonezawa_factory::before {
    right: -3%;
  }

  .gunma_factory::before {
    left: -3%;
  }

  .main_factory_up,
  .gunma_factory_up,
  .yonezawa_factory_up {
    flex-direction: column;
  }

  .main_factory_up_content,
  .gunma_factory_up_content,
  .yonezawa_factory_up_content {
    display: flex;
    justify-content: space-evenly;
  }

  .main_factory_toge,
  .gunma_factory_toge,
  .yonezawa_factory_toge {
    width: 120px;
    height: 120px;
  }

  .main_factory_up_toge,
  .gunma_factory_up_toge,
  .yonezawa_factory_up_toge {
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    font-weight: bold;
    font-size: 28px;
    /* width: 18%; */
    /* height: 100%; */
    background-size: 100%;
  }

  .main_factory_up.sp .main_factory_up_togetext,
  .gunma_factory_up.sp .gunma_factory_up_togetext,
  .yonezawa_factory_up.sp .yonezawa_factory_up_togetext {
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
  }

  .main_factory_up.sp .main_factory_a,
  .main_factory_up.sp .main_factory_b,
  .main_factory_down ul li {
    font-size: x-large;
  }

  .main_factory_down {
    flex-direction: column;
  }

  .main_factory_down_toge {
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    font-weight: bold;
    font-size: 28px;
    width: 120px;
    height: 120px;
    background-size: 100%;
  }

  .main_factory_down_togetext {
    position: absolute;
    top: 15%;
    left: 27%;
  }

  /* overview, bank, affiliateの下間隔幅調整調整 */
  .overview,
  .bank,
  .affiliate {
    margin-bottom: 12%;
  }

  /* main_factory, gunma_factory, yonezawa_factoryの幅調整 */
  .main_factory,
  .gunma_factory,
  .yonezawa_factory {
    margin-bottom: 16%;
  }
}

/* ~768px スマホ（SP） */
@media screen and (max-width: 768px) {
  .overview.sp .part_1.under_1 {
    padding: 39px 0;
  }

  .overview.sp .part_1.under_2 {
    padding: 58px 0;
  }

  .overview.sp .part_1.under_2 {
    padding: 74px 0;
  }

  .overview,
  .bank,
  .affiliate {
    margin-bottom: 80px;
  }

  .bank.sp::after,
  .affiliate::after {
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    font-weight: bold;
    font-size: 28px;
    width: 20%;
    height: 100%;
    background-size: 100%;
  }

  .bank.sp::after {
    top: -21%;
  }

  .black_box {
    font-size: large;
  }

  /* BOX_3 */
  .affiliate .sp td {
    font-size: 16px;
  }

  .affiliate::after {
    top: -12%;
  }

  .main_factory,
  .gunma_factory,
  .yonezawa_factory {
    margin-bottom: 22%;
  }

  .main_factory_up_toge,
  .gunma_factory_up_toge,
  .yonezawa_factory_up_toge {
    left: 50%;
    transform: translateX(-50%);
  }

  .main_factory_up.sp .main_factory_up_togetext,
  .gunma_factory_up.sp .gunma_factory_up_togetext,
  .yonezawa_factory_up.sp .yonezawa_factory_up_togetext,
  .main_factory_down_togetext {
    left: 50%;
    transform: translateX(-50%);
  }

  .main_factory_up.sp .main_factory_a,
  .main_factory_up.sp .main_factory_b,
  .main_factory_down ul li {
    font-size: large;
  }

  .main_factory_down_toge {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 650px) {
  .bank.sp::after {
    top: -19%;
  }

  .affiliate::after {
    top: -10%;
  }

  .bank.sp::after,
  .affiliate::after {
    font-size: 23px;
  }
}

@media screen and (max-width: 576px) {

  .overview.sp,
  .content {
    font-size: 20px;
    font-weight: normal;
  }

  .part_2 {
    font-weight: normal;
  }

  /* Bank */
  .bank li {
    font-size: 1rem;
  }

  .affiliate table.sp {
    border-spacing: 10px;
  }

  .bank.sp::after,
  .affiliate::after {
    font-size: 20px;
    padding-top: 1rem;
  }

  .bank.sp::after {
    top: -20%;
  }

  .black_box {
    font-size: 13px;
    padding: 6%;
  }

  .main_factory_toge,
  .gunma_factory_toge,
  .yonezawa_factory_toge {
    width: 100px;
    height: 100px;
  }

  .main_factory_up.sp .main_factory_up_togetext,
  .gunma_factory_up.sp .gunma_factory_up_togetext,
  .yonezawa_factory_up.sp .yonezawa_factory_up_togetext {
    top: 17%;
  }

  .main_factory_up.sp .main_factory_up_togetext,
  .gunma_factory_up.sp .gunma_factory_up_togetext,
  .yonezawa_factory_up.sp .yonezawa_factory_up_togetext,
  .main_factory_down_togetext {
    /* left: 36%; */
    font-size: 20px;
  }

  .main_factory_down_togetext {
    padding-top: 4px;
  }

  .main_factory,
  .gunma_factory,
  .yonezawa_factory {
    margin-bottom: 26%;
  }

  .main_factory_down_togetext {
    left: 50%;
    transform: translateX(-73%);
  }
}

@media screen and (max-width: 520px) {

  .bank.sp::after,
  .affiliate::after {
    width: 100px;
    height: 100px;
  }

  .affiliate::after {
    top: -9%;
  }
}

@media screen and (max-width: 400px) {
  .main_factory_down_toge {
    width: 100px;
    height: 100px;
  }

  /* .main_factory_down_togetext {
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
  } */

  .main_factory_up.sp .main_factory_up_togetext,
  .gunma_factory_up.sp .gunma_factory_up_togetext,
  .yonezawa_factory_up.sp .yonezawa_factory_up_togetext,
  .main_factory_down_togetext {
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
  }
}