@charset "UTF-8";

html {
  font-size: 100%;
}

body {
  background-color: #f0f0f0;
  color: #000;
  font-size: 0.875rem;
}

a {
  color: #000;
  font-size: 0.875rem;
  text-decoration: none
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

li {
  list-style: none;
}

.logo {
  width: 100px;
  line-height: 1px;
  margin-right: 60px;
}

.logo a {
  display: block;
}

.section-title {
  font-weight: normal;
  /*line-height = フォントの高さ + 上下の余白*/
  /*数値のみを指定した場合フォントサイズ × 数値が列の高さに指定される*/
  line-height: 1;
  margin-bottom: 50px;
}

/*擬似クラスはコロンひとつ擬似要素はコロンふたつの後に書く*/
.section-title::after {
  content: "";
  background-color: #000;
  display: block;
  width: 40px;
  height: 1px;
}

.section-title .en {
  display: block;
  font-size: 2.25rem;
  letter-spacing: 0.3em;
  margin-bottom: 10px;
}

.section-title .ja {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 36px;
}

.wrapper {
  width: 100%;
  padding: 0 16px;
  /*width または max-widthで幅を決めてからmargin: 0 auto;で中央に寄せる*/
  max-width: 1032px;
  margin: 0 auto;
}

#header {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#header .inner {
  display: flex;
  align-items: center;
}

#header .inner ul {
  display: flex;
  align-items: center;
}

#header .inner li {
  margin-right: 30px;
}

#header .inner li:last-child {
  margin-right: 0;
}

#header .contact {
  width: 200px;
  height: 80px;
  /*テキストを上下中央に配置*/
  line-height: 80px;
  background-color: #000;
  color: #fff;
  font-size: 0.75rem;
  display: inline-block;
  text-align: center;
}

#header .contact:hover {
  background-color: #333;
}

#mainvisual {
  margin-bottom: 120px;
}

#mainvisual img {
  width: 100%;
  height: calc(100vh - 80px);
  object-fit: cover;
}

#news {
  margin-bottom: 120px;
}

#news .list {
  display: flex;
  justify-content: space-between;
}

#news .list li {
  width: calc(100% / 3);
  border-right: solid 1px #000;
  padding: 10px 20px;
}

#news .list li:first-child {
  padding-left: 0;
}

#news .list li:last-child {
  border-right: none;
  padding-right: 0;
}

#news .list li .date-area {
  margin-bottom: 16px;
}

#news .list li .date-area span {
  width: 50px;
  height: 20px;
  line-height: 20px;
  background-color: #000;
  color: #fff;
  display: inline-block;
  font-size: 0.75rem;
  margin-left: 10px;
  text-align: center;
}

#about {
  display: flex;
  margin-bottom: 120px;
}

#about .img {
  width: 55%;
}

#about .img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

#about .text {
  width: 45%;
  padding: 180px 5% 0 5%;
}

#about .text p {
  line-height: 2.2;
}

#business {
  margin-bottom: 120px;
}

#business .flex {
  display: flex;
  justify-content: space-between;
  padding: 0 10%;
}

#business .flex .left {
  width: 46%;
  margin-top: 100px;
}

#business .flex .right {
  width: 46%;
}

#business .flex .item {
  margin-bottom: 50px;
}

#business .flex .item:last-child {
  margin-bottom: 0px;
}

#business .flex .title {
  font-weight: bold;
  margin: 0 0 10px 18px;
  position: relative;
}

#business .flex .title::before {
  content: "";
  width: 8px;
  height: 1px;
  background-color: #000;
  position: absolute;
  top: 50%;
  left: -18px;
}

#company {
  /*子要素のposition: absolute;で高さがなくなるため
「height: 750px;」を指定して高さを確保*/
  height: 750px;
  display: flex;
  align-items: center;
  position: relative;
}

#company .text {
  width: 55%;
  background-color: #fff;
  padding: 100px 8% 100px 6%;
  position: absolute;
  top: 0;
  left: 0;
}

#company .img {
  width: 53%;
  position: absolute;
  top: 115px;
  right: 0;
}

#company .img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

#company .info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

#company .info dt {
  width: 20%;
  margin-top: 10px;
}

/*最初のdtはmargin-top: 0;*/
/*first-child と first-of-typeの違いに注意*/
#company .info dt:first-of-type {
  margin-top: 0;
}

#company .info dd {
width: 80%;
margin-top: 10px;
}

#company .info dd:first-of-type {
  margin-top: 0;
}

#company .info .add {
  margin-left: 20%;
}

#footer {
  background-color: #fff;
  padding-bottom: 20px;
}

#footer .flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
}

#footer .flex .logo {
  margin-right: 0;
}

#footer .copyright {
  font-size: 0.625rem;
}

@media screen and (max-width: 900px) {
  .logo {
    width: 80px;
    margin: 8px 0;
  }

  .section-title {
    margin-bottom: 34px;
  }

  .section-title .ja {
    margin-bottom: 24px;
  }

  #header .inner {
    flex-direction: column;
    /*フレックスアイテムを先頭にまとめる*/
    align-items: flex-start;
  }

  #header .contact {
    display: none;
  }

  #mainvisual {
    margin-bottom: 80px;
  }

  #news {
    margin-bottom: 80px;
  }

  #news .list {
    flex-direction: column;
  }

  #news .list li {
    width: 100%;
    border-right: none;
    padding: 10px 0;
    margin-bottom: 20px;
  }

  #news .list li:last-child {
    margin-bottom: 0;
  }

  #about {
    flex-direction: column;
    margin-bottom: 80px;
  }

  #about .img {
    width: 100%;
    margin-bottom: 30px;
  }

  #about .img img {
    height: 300px;
  }

  #about .text {
    width: 100%;
    padding: 0 16px;
  }

  #business {
    margin-bottom: 80px;
  }

  #business .flex {
    flex-direction: column;
    padding: 0;
  }

  #business .flex .left {
    width: 100%;
    margin: 0 0 30px 0;
  }

  #business .flex .right {
    width: 100%;
  }

  #business .flex .item {
    /*text-align: center;(← 必要？)*/
    margin-bottom: 30px;
  }

  #business .flex .title {
    text-align: left;
  }

  #company {
    height: auto;
    flex-direction: column;
    /*初期値に戻す(relativeを解除)*/
    position: static;
  }

  #company .text {
    /*初期値に戻す(absoluteを解除)*/
    position: static;    
    width: 100%;
    padding: 40px 20px;
    margin-bottom: 20px;
  }

  #company .img {
    /*初期値に戻す(absoluteを解除)*/
    position: static;
    width: 100%;
    padding: 0;
  }

  #company .info {
    flex-direction: column;
  }

  #company .info dt {
    width: 100%;
    margin-top: 20px;
  }
  
  #company .info dd {
    width: 100%;
    margin-top: 5px;
    padding-left: 14px;
  }

  #company .info dd:first-of-type {
    margin-top: 5px;
  }

  #company .info .add {
    margin-left: 0;
  }

  #footer .flex {
    flex-direction: column;
    /*フレックスアイテムを先頭にまとめる*/
    align-items: flex-start;
  }

  #footer .flex .logo {
    margin-bottom: 10px;
  }
}