@charset "utf-8";

#company{
  position: relative;
  margin-right: 80px;
  margin-top: 240px;
  margin-bottom: 240px;
}
#company .section__inner{
  margin-left: 80px;
  position: relative;
  background: var(--rev-c);
  padding-top: 120px;
}
#company h2{
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-50%);
  font-size: 64px;
  z-index: 1;
}
#company h2 span{
  background: var(--text-c);
  color: var(--rev-c);
  font-size: 32px;
  display: block;
  width: fit-content;
  padding: 4px 32px;
      margin-top: -1px;
}
#company h2 span.-eng{
  font-size: 64px;
  padding: 4px 32px;
}
#company .item__block{
  width: min(94%,1080px);
  margin: 0 auto;
  padding-bottom: 40px;
}
#company .item__block > p{
  font-size: 15px;
  line-height: 2.0;
  font-weight: 600;
}
#company .item__block > p span{
  display: inline-block;
}
#company .item__block + h3{
  background: var(--text-c);
  color: var(--rev-c);
  width: fit-content;
  padding: 12px 24px;
  font-size: 32px;
  transform: translateX(-80px);
  margin-bottom: 40px;
}
#company .item__block dl{
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
#company .item__block dt{
  width: 240px;
  font-size: 15px;
  font-weight: 600;
}
#company .item__block dd{
  width: calc(100% - 240px);
  line-height: 2.0;
  font-size: 15px;
}
#company .item__block dd.flex{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
#company .item__block dd a{
  background: var(--text-c);
  text-decoration: none;
  padding: 12px 24px;
}
#company .item__block dd a .flex{
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}
#company .item__block dd a .flex img{
  width: 12px;
  margin-top: 4px;
  margin-right: 6px;
}
#company .item__block dd a .flex p{
  font-size: 15px;
  font-weight: 500;
  color: var(--rev-c);
  line-height: 1.2;
}
#company .item__block dd a .flex span{
  display: block;
  font-size: 12px;
  font-weight: 500;
}

#history{
  margin-right: 80px;
  position: relative;
  margin-bottom: 120px;
  padding-top: 100px;
}
#history::before {
  content: "";
  display: block;
  background: var(--text-c);
    height: calc(100% - 100px);
    width: 100%;
    position: absolute;
    z-index: -1;
}
#history h2{
  position: absolute;
  top: 0;
  left: 0;
/*  transform: translateY(-50%);*/
  font-size: 64px;
  z-index: 1;
}
#history h2 span{
  background: var(--text-c);
  color: var(--rev-c);
  font-size: 32px;
  display: block;
  width: fit-content;
  padding: 4px 32px;
}
#history h2 span.-eng{
  font-size: 64px;
  padding: 4px 32px;
}
#history .section__inner{
  width: min(94%,1080px);
  margin: 0 auto;
  padding: 120px 0 80px;
}
#history dl{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 40px;
}
#history dt{
  color: var(--main-c);
  width: 230px;
  font-size: 28px;
  font-weight: 700;
}
#history dd{
  width: calc(100% - 230px);
  color: var(--rev-c); 
  font-size: 16px;
  font-weight: 400;
}

@media screen and (max-width:1080px){
  #company{
    margin-right: 64px;
    margin-top: 180px;
    margin-bottom: 180px;
  }
  #company h2 span.-eng,
  #history h2 span.-eng{
    font-size: 56px;
    padding: 4px 24px;
  }
  #company h2 span,
  #history h2 span{
    font-size: 24px;
    padding: 4px 24px;
  }
  #company .section__inner {
    margin-left: 64px;
  }
  #company .item__block dt{
    width: 210px;
    font-size: 14px;
  }
  #company .item__block dd {
    width: calc(100% - 210px);
    font-size: 14px;
  }
  #company .item__block > p span{
    font-size: 14px;
  }
  #company .item__block + h3{
    font-size: 24px;
    transform: translateX(-64px);
  }
  #history dt {
    width: 200px;
    font-size: 24px;
  }
  #history dd {
    width: calc(100% - 200px);
    font-size: 15px;
  }
  #history dl{
    margin-bottom: 32px;
  }
  #history {
    margin-right: 64px;
    margin-bottom: 80px;
    padding-top: 80px;
  }
  #history::before {
    height: calc(100% - 120px);
  }
}

@media screen and (max-width:768px){
  #company {
    margin-right: 48px;
    margin-top: 140px;
  }
  #company .section__inner{
    margin-left: 48px;
    padding-top: 100px;
  }
  #company h2 span.-eng, #history h2 span.-eng{
    font-size: 40px;
    padding: 4px 24px 4px 16px;
  }
  #company h2 span, #history h2 span {
    font-size: 16px;
    padding: 4px 24px 4px 16px;
  }
  #company .item__block + h3{
    font-size: 24px;
    transform: translateX(-48px);
    margin-bottom: 32px;
  }
  #company .item__block dl{
    margin-bottom: 24px;
  }
  #company .item__block dt {
    width: 100%;
    margin-bottom: 4px;
  }
  #company .item__block dd{
    width: 100%;
    padding-left: 1em;
  }
  #history {
    margin-right: 48px;
    padding-top: 40px;
  }
  #history::before {
    height: calc(100% - 80px);
  }
  #company .item__block dd a .flex p {
    font-size: 14px;
  }  
  #company .item__block dd a .flex span {
    font-size: 11px;
  }
  #history dt {
    width: 120px;
    font-size: 24px;
  }
  #history dd {
    font-size: 13px;
    line-height: 1.8;
    width: calc(100% - 120px);
  }
}

@media screen and (max-width:600px){
  #company {
    margin-right: 40px;
    margin-top: 120px;
    margin-bottom: 80px;
  }
  #company .section__inner {
    margin-left: 0;
    padding-top: 80px;
  }
  #company .item__block dd,
  #company .item__block dt{
    font-size: 13px;
  }
  #company h2 span.-eng, #history h2 span.-eng{
    font-size: 28px;
  }
  #company h2 span, #history h2 span{
    font-size: 15px;
  }
  #company .item__block + h3 {
    font-size: 20px;
    transform: unset;
    margin-bottom: 24px;
  }
  #company .item__block > p span{
    font-size: 12px;
  }
  #history .section__inner{
    padding: 80px 0 64px;
  }
  #history dt {
    width: 100%;
  }
  #history dd {
    width: 100%;
  }
}