@charset "utf-8";

/* オフィス内写真 */
.office_photos {
  height: 300px;
  background: url("../corporate/img/photos1.jpg") center center no-repeat;
  background-size: cover;
}

.full_photo img {
  width: 100%;
}

@media screen and (max-width: 830px) {
  .office_photos {
    height: 200px;
  }
}

@media screen and (max-width: 550px) {
  .office_photos {
    height: 100px;
  }
}

/* 事務所 */

#location {
  padding: 0 0 40px;
}

#location img {
  max-width: 100%;
}

.flex_loc {
  display: flex;
  justify-content: space-around;
  padding: 50px 40px;
  border-bottom: solid 1px #ddd;
}

.flex_loc:last-child {
  border-bottom: none;
}

.flex_loc div:first-child {
  width: 40%;
}

.flex_loc div:last-child {
  width: 60%;
  text-align: right;
}

.flex_loc div h2 {
  font-size: 20px;
  font-weight: 700;
  padding: 1em 0 1em 30px;
  background: url("../img/li4.png") 0 center no-repeat;
}

.flex_loc div:last-child p {
  display: inline-block;
  font-size: 12px;
  padding: 4px 0 4px 12px;
  background: url("../img/arrow2.png") 0 center no-repeat;
}

.flex_loc div p {
  padding: 0 0 1em 30px;
}

/* 社長メッセージ */

#message {
  padding: 0 0 30px;
}

#message img {
  max-width: 100%;
  padding: 0 0 50px;
}

#message p {
  line-height: 1.8;
  padding: 0 60px 2em;
}

.righttext {
  text-align: right;
}

/* 会社概要 */

#gaiyou {
  padding: 40px 70px;
}

img.max {
  max-width: 100%;
}

#gaiyou table {
  width: 100%;
}

#gaiyou table td.tl,
#gaiyou table th.tl {
  background-image: linear-gradient(to right, #bbb, #bbb 2px, transparent 2px, transparent 2px), linear-gradient(to right, #bbb, #bbb 2px, transparent 2px, transparent 2px);
  background-repeat: repeat-x, repeat-x;
  background-position: left top, left bottom;
  background-size: 4px 1px, 4px 1px;
}

#gaiyou table th {
  font-size: 16px;
  font-weight: 700;
  line-height: 2;
  padding: 18px 0;
  text-align: left;
  white-space: nowrap;
  background-image: linear-gradient(to right, #c5c5c5, #c5c5c5 2px, transparent 2px, transparent 2px);
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 4px 1px;
}

#gaiyou table td {
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  padding: 18px 0 18px 16px;
  background-image: linear-gradient(to right, #c5c5c5, #c5c5c5 2px, transparent 2px, transparent 2px);
  background-repeat: repeat-x;
  background-position: left bottom;
  background-size: 4px 1px;
}

#gaiyou table th span {
  display: inline-block;
  background-image: url("../img/li4.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 8px 8px;
  padding-left: 20px;
}

#gaiyou.history table th {
  font-size: 15px;
  text-align: right;
  vertical-align: top;
  white-space: nowrap;
  padding: 20px 20px 20px 0;
}

#gaiyou.history table td {
  width: 100%;
  font-size: 15px;
  padding: 20px 0 20px 10px;
  line-height: 1.6;
}

#gaiyou.history table td p {
  display: inline-block;
  padding-bottom: 1em;
}

#gaiyou.history table td p.photo_honsha {
  float: right;
}

#gaiyou.history table td p.photo_honsha img {
  max-width: 100%;
}

#denshi {
  padding: 50px 70px;
}

#denshi h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

#denshi p {
  font-size: 14px;
  margin-bottom: 20px;
}

.flex_dk {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 100%;
}

.flex_dk::after {
  content: "";
  display: block;
  width: 32%;
}

.flex_dk div {
  width: 32%;
  border: solid 1px #ddd;
  text-align: center;
  font-size: 14px;
  padding: 25px 5px;
  margin: 0 0 20px;
}

.flex_dk div img {
  padding: 0 0 10px;
}

/* サイトポリシー */

#policy {
  margin: 60px 10%;
}

#policy div {
  padding: 0 0 50px;
}

#policy div a {
  text-decoration: underline;
}

#policy h2 {
  font-size: 26px;
  font-weight: 700;
  padding: 0 0 20px;
}

#policy h3 {
  font-size: 18px;
  font-weight: 700;
  padding: 0 0 5px;
}

#policy h4 {
  font-size: 15px;
  font-weight: 700;
  padding: 0;
}

#policy p {
  font-size: 14px;
  line-height: 1.8;
  padding: 0 0 20px;
}

#policy ul {
  font-size: 14px;
  padding: 0 0 20px 10px;
}

/* SmallPC */
@media screen and (max-width: 1000px) {
  .for_pc {
    display: none;
  }
}

/* tablet */
@media screen and (max-width: 830px) {

  #gaiyou {
    padding: 50px;
    font-size: 0.9em;
  }

  #gaiyou.history table td p {
    display: block;
  }

  #gaiyou.history table td p.photo_honsha {
    float: none;
  }

  /* 事務所 */
  #location {
    padding: 0 0 40px;
  }

  .flex_loc {
    display: block;
    padding: 20px;
  }

  .flex_loc div:first-child {
    width: 100%;
    padding-bottom: 10px;
  }

  .flex_loc div:last-child {
    width: 100%;
    text-align: right;
  }

  .flex_loc p br {
    display: none;
  }

  .flex_loc div p {
    padding: 0 0 5px 30px;
  }
}

/* SP */
@media screen and (max-width: 550px) {
  #message img {
    max-width: 100%;
    padding: 0 0 30px;
  }

  #message p {
    font-size: 14px;
    padding: 0 5vw 2em;
  }

  #gaiyou {
    padding: 20px;
    font-size: 0.8em;
  }

  #gaiyou table th {
    padding: 5px 10px 5px 0;
  }

  #gaiyou table th span {
    padding-left: 15px;
  }

  #gaiyou table td {
    padding: 5px 10px;
  }

  #denshi {
    padding: 10px;
    font-size: 0.8em;
  }

  .flex_dk div {
    width: 49%;
    font-size: 12px;
    padding: 10px;
    margin: 0 0 10px;
  }

  #gaiyou.history table th {
    font-size: 12px;
    padding: 7px 10px 7px 0;
  }

  #gaiyou.history table td {
    font-size: 13px;
    padding: 7px 0 7px 10px;
  }

  /* 事務所 */
  #location {
    padding: 0 0 20px;
  }

  .flex_loc div h2 {
    font-size: 16px;
    padding: 10px 0 10px 20px;
  }

  .flex_loc div p {
    font-size: 14px;
    padding: 0 0 5px;
  }

  .flex_loc p br.sp {
    display: block;
  }
}