/*
* {
  outline: 1px solid red;
}
  */
.company {
  background: linear-gradient(to bottom, #fff 400px, #f5f7f9 400px);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto;
  color: #002857;
}
.company .pageMain {
  background-image: url(../img/company_bg.jpg), url(../img/companyBg.png);
  background-repeat: repeat-x, no-repeat;
  padding: 0;
}
.catch {
  margin-top: 400px;
  color: #000;
}
.top-right-img img,
.img-bottom-left img {
  width: 100%;
}
.gaiyo {
  flex-basis: 100%;
  color: #fff;
}
.gaiyo .detail {
  padding: 30px;
  box-sizing: border-box;
}
.gaiyo .detail .secTtl {
  margin-bottom: 30px;
}
.gaiyo .detail .secTtl h3 {
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 400;
}
.gaiyo .detail table {
  width: 100%;
  border-top: 1px solid #fff;
}
.gaiyo .detail table th {
  font-weight: 200;
  font-size: 12px;
  border-bottom: 1px solid #fff;
  white-space: nowrap;
}
.gaiyo .detail table td {
  font-weight: 200;
  font-size: 12px;
  border-bottom: 1px solid #fff;
}

@media (max-width: 767px) {
  .company .pageMain {
    background-size:
      auto 500px,
      auto 30vh;
    background-position:
      center 0,
      right bottom;
  }
  .catch {
    position: relative;
    height: 800px;
  }
  .text-vertical {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    height: 400px;
    padding: 15px;
    box-sizing: border-box;
  }
  .text-vertical h3 {
    font-size: calc(100vw / 15);
    letter-spacing: 0.2em;
  }
  .top-right-img {
    position: absolute;
    top: 450px;
    right: 100px;
    width: 25%;
  }
  .img-bottom-left {
    position: absolute;
    top: 550px;
    left: 0;
    width: 25%;
  }
  .text-vertical p {
    font-size: 14px;
  }
  .gaiyo {
    background-color: var(--wp--preset--color--primary);
    padding-bottom: 80px;
  }
  .gaiyo .detail .secTtl h3 {
    font-size: calc(100vw / 12);
  }
  .gaiyo .detail .secTtl p {
    font-size: 14px;
  }
}
@media screen and (min-width: 768px) {
  .company .pageMain {
    padding-bottom: 500px;
    background-size:
      auto 500px,
      auto 600px;
    background-position:
      center 0,
      right bottom 120px;
  }
  .catch {
    padding-right: 5%;
    height: 800px;
    flex-direction: row-reverse;
    display: flex;
  }
  .top-right-img {
    flex-basis: 19%;
    object-fit: cover;
  }
  .img-bottom-left {
    flex-basis: 17%;
    object-fit: cover;
    align-self: flex-end;
  }
  .text-vertical {
    flex-basis: 70%;
    flex: 1;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    display: flex;
    flex-direction: column; /* 右から左へ列を並べる */
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px;
  }
  .text-vertical h3 {
    font-size: 36px;
    letter-spacing: 0.2em;
    line-height: 1.5;
  }
  .text-vertical p {
    font-size: 18px;
    line-height: 2.3;
  }
  .gaiyo {
    background-image: url(../img/serviceBg.jpg);
    background-repeat: no-repeat;
    background-position: right 0;
    background-size: 80% auto;
    padding-bottom: 120px;
  }
  .gaiyo .img {
    margin-top: -400px;
    width: 75%;
  }
  .gaiyo .detail {
    margin-left: 20%;
    display: flex;
    padding: 30px;
  }
  .gaiyo .detail .secTtl {
    flex-basis: 200px;
  }
  .gaiyo .detail .secTtl h3 {
    font-size: 36px;
  }
  .gaiyo .detail .secTtl p {
    font-size: 18px;
  }
  .gaiyo .detail table {
    flex-basis: calc(100% - 300px);
  }
  .gaiyo .detail table th,
  .gaiyo .detail table td {
    font-size: 16px;
    padding: 15px 8px;
    box-sizing: border-box;
  }
}
