@charset "utf-8";

.header_img {
    background-image: url(../img/company_img.jpg);
    height: calc(100vh - 150px);
    position: relative;
}

.title {
    width: 100vw;
    text-align: center;
    position: absolute;
    top: 50%;
    left: 0%;
    background-color: rgba(255, 255, 255, .5);
}


.sub_title {
    display: flex;
    align-items: center; /* 垂直中心 */
    justify-content: center; /* 水平中心 */
  }
  .sub_title:before, .sub_title:after {
    border-top: 3px solid;
    content: "";
    width: 6em; /* 線の長さ */
  }
  .sub_title:before {
    margin-right: 1em; /* 文字の右隣 */
  }
  .sub_title:after {
    margin-left: 1em; /* 文字の左隣 */
  }

  .greeting {
      width: 90%;
      margin: 100px auto 0;
  }

  .greeting_contents {
      width: 80%;
      margin: 100px auto 0;
      display: flex;
      justify-content: center;
      align-items: center;
  }

  .greeting_contents img {
      width: 250px;
      border-radius: 20px;
      margin-right: 10%;
  }
  

  .greeting_text h3 {
    font-size: 24px;
  }

  .greeting_text p {
      margin-top: 20px;
      font-size: 18px;
      line-height: 2.5em;
  }

  .greeting_text p:nth-of-type(1){
      margin-top: 50px;
  }

  .name {
      text-align: right;
      font-weight: bold;
  }

  .outline {
      width: 80%;
      margin: 150px auto 0;
  }

  .outline table {
      margin: 100px auto 0;
      border-collapse: collapse;
  }

  table th,table td {
      padding: 24px 0;
      border: none;
      font-size: 20px;
      border-bottom: 2px solid #000;

  }

  table th {
      width: 20%;
  }

  .map {
      margin: 150px auto ;
  }

  .map_contents {
      width: 60%;
      display: flex;
      justify-content: space-around;
      align-items: center;
      margin: 100px auto 0;
  }


  .map_text {
      line-height: 3em;
  }

  .map_text h3 {
      font-size: 20px;
  }

  .map_text p {
      font-size: 18px;
  }

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

    .sub_title {
        font-size: 20px;
    }

    .sub_title:before, .sub_title:after {
        border-top: 2px solid;
    }

    .greeting_contents {
        justify-content: space-between;
        width: 100%;
    }
    
    .greeting img {
        width: 200px;
    }

    .greeting h3 {
        font-size: 18px;
    }

    .greeting_text p {
        font-size: 16px;
        line-height: 1.8em;
        margin-top: 10px;
    }

    .greeting_text p:nth-of-type(1) {
        margin-top: 30px;
    }

    .greeting_text .name {
        margin-top: 20px;
    }

    table th{
        font-size: 18px;
    }

    table td {
        font-size: 16px;
        padding-left: 10px;
    }

    .map_contents {
        width: 80%;
    }

    .map_text {
        line-height: 2.5em;
    }

    .map_text h3 {
        font-size: 18px;
    }

    .map_text p {
        font-size: 16px;
    }

    .map_img {
        width: 300px;
        height: 250px;
    }
}

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

    .header_img {
        background-image: none;
    }

    header {
        background-image: url(../img/company_img.jpg);
        background-repeat: no-repeat;
        background-position: center;
    }

    .title {
        font-size: 26px;
        margin-top: -50px;
        color: #666;
    }

    .sub_title {
        font-size: 18px;
    }

    .sub_title:before, .sub_title:after {
        border-top: 2px solid;
        content: "";
        width: 4em; /* 線の長さ */
        }

      .greeting_contents {
          flex-flow: column;
          align-items: center;
          margin: 30px auto 0;
      }

      .greeting_contents img {
         width: 150px;
         margin-right: 0;
      }

      .greeting_text {
          width: 90%;
          margin: 30px auto 0;
          text-align: center;
      }

      .greeting_text h3 {
          margin-top: 20px;
          font-size: 16px;
      }

      .greeting_text p {
          font-size: 14px;
          text-align: left;
          line-height: 2em;
          letter-spacing: 0.1em;
      }

      .greeting_text p:nth-of-type(1) {
          margin-top: 20px;
      }

      .greeting_text .name {
          text-align: right;
      }

      .outline {
          width: 90%;
          margin: 100px auto 0;
      }
      
      .outline table {
          margin: 50px auto 0;
      }

      table th {
          width: 25%;
          font-size: 16px;
      }

      table td {
          font-size: 14px;
          padding-left: 10px;
      }


      .map_contents {
          flex-flow: column;
      }

      .map_text {
          line-height: 2em;
      }

      .map_text h3 {
          font-size: 16px;
      }

      .map_text p {
          font-size: 14px;
      }

      .map_img {
          margin-top: 30px;
      }
}