/* assets */
/* SCSS */
#pagetitle {
  background: url(/images/page/company/header.jpg) no-repeat;
  background-size: cover;
  height: 220px;
  position: relative;
}

#pagetitle h1 {
  font-size: 35px;
  line-height: 35px;
  height: 35px;
  position: absolute;
  top: 0;
  bottom: 0;
  margin: auto;
  color: #fff;
  text-shadow: 0 0 16px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 0, 0, 0.75),
    0 0 16px rgba(0, 0, 0, 0.75);
  letter-spacing: 0.2em;
}

#pagetitle h1 span {
  font-size: 17px;
  vertical-align: text-top;
  margin-left: 30px;
  letter-spacing: 0;
}

#pagenavi {
  padding: 40px 0;
}

#pagenavi ul {
  display: flex;
  justify-content: center;
}

#pagenavi ul li {
  width: 20.1%;
  border-right: 1px solid #020429;
}

#pagenavi ul li:last-child {
  border-right: none;
}

#pagenavi ul li a {
  font-size: 18px;
  display: block;
  text-align: center;
  line-height: 1;
  padding: 21px 0;
  position: relative;
}

#pagenavi ul li a:before {
  content: '';
  width: 0;
  height: 0;
  display: block;
  border-top: 8px solid #fff;
  border-left: 11px solid #020429;
  border-bottom: 8px solid #fff;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  margin: auto;
}

#pagenavi ul li a:hover {
  opacity: 0.7;
}

#pagenavi ul li:first-child a:before {
  display: none;
}

section .flex {
  display: flex;
}

section h2 {
  border-bottom: 1px solid #000;
  border-top: 1px solid #000;
  text-align: center;
  font-size: 16px;
  /* line-height: 55px; */
  line-height: 1;
  /* height: 55px; */
  padding: 18px 0;
  background: #e5e5e5;
}

section h2 span {
  font-size: 20px;
}

#greeting .inner {
  padding: 75px;
  max-width: 800px;
  margin: 0 auto;
}

#greeting h3 {
  font-size: 25px;
  font-weight: 900;
  margin-bottom: 40px;
  letter-spacing: 0.15em;
  line-height: 1.5;
  font-family: 'Hiragino Mincho Pro', 'ヒラギノ明朝 Pro W3', 'Kozuka Mincho Pro',
    'Kozuka Mincho Std', '小塚明朝 Pro R', '小塚明朝 Std R', '游明朝', YuMincho,
    'ＭＳ Ｐ明朝', 'Times', 'Times New Roman', serif;
}

#greeting p {
  font-size: 15px;
  line-height: 1.95;
  margin-bottom: 20px;
}

#greeting p:last-of-type {
  margin-bottom: 0;
}

#greeting .name {
  font-size: 15px;
  text-align: right;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
}

#greeting .name img {
  height: 40px;
  width: auto;
}

#profile .inner {
  padding: 55px 25px;
}

#profile h3 {
  font-size: 35px;
  margin-bottom: 50px;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-align: center;
}

#profile table {
  width: 100%;
}

#profile table th {
  background: #e5e5e5;
  text-align: center;
  font-weight: normal;
  padding: 10px;
  width: 16%;
  font-size: 14px;
  border-bottom: 1px solid #aaa9a9;
  vertical-align: middle;
  line-height: 1.7;
}

#profile table td {
  padding: 10px 30px;
  font-size: 13px;
  border-bottom: 1px solid #aaa9a9;
  vertical-align: middle;
  line-height: 1.7;
}

#profile table td table {
  width: auto;
}

#profile table td td {
  border-bottom: none;
  padding: 0 15px 0 0;
}

#profile table tr:last-child th {
  border-bottom: none;
}

#profile table tr:last-child td {
  border-bottom: none;
}

#identity .inner {
  padding: 55px 25px;
}

#identity h3 {
  font-size: 35px;
  margin-bottom: 50px;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-align: center;
}

#identity .flex {
  justify-content: space-between;
}

#identity .flex .text {
  width: 48%;
}

#identity .flex .image {
  width: 45.78%;
}

#identity .vision {
  margin-top: 60px;
  margin-bottom: 30px;
}

#identity .vision dt {
  border-bottom: 1px solid #000;
  font-size: 20px;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

#identity .vision dd {
  font-size: 15px;
  line-height: 1.6;
}

#identity p {
  font-size: 15px;
  line-height: 1.95;
}

#history .inner {
  padding: 55px 25px;
}

#history h3 {
  font-size: 35px;
  margin-bottom: 50px;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-align: center;
}

#history table {
  width: 100%;
}

#history table th {
  background: #e5e5e5;
  text-align: center;
  font-weight: normal;
  padding: 6px 10px;
  width: 16%;
  font-size: 14px;
  border-bottom: 1px solid #aaa9a9;
  vertical-align: middle;
  line-height: 1.7;
}

#history table td {
  padding: 6px 30px;
  font-size: 13px;
  border-bottom: 1px solid #aaa9a9;
  vertical-align: middle;
  line-height: 1.7;
}

#history table tr:last-child th {
  border-bottom: none;
}

#history table tr:last-child td {
  border-bottom: none;
}

#eco .inner {
  padding: 55px 25px;
}

#eco h3 {
  font-size: 35px;
  margin-bottom: 50px;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-align: center;
}

#eco h4 {
  font-size: 26px;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 0.15em;
}

#eco .flex {
  justify-content: space-between;
}

#eco .flex .text {
  width: 48%;
}

#eco .flex .image {
  width: 48%;
}

#eco p {
  font-size: 15px;
  line-height: 1.95;
}

@media (max-width: 768px) {
  header {
    display: inherit;
  }
  section .flex {
    display: inherit;
  }
  #pagetitle {
    background: url(/images/page/company/sp_header.jpg) no-repeat right;
    background-size: cover;
    height: 100px;
    margin-top: 45px;
  }
  #pagetitle h1 {
    font-size: 24px;
    line-height: 24px;
    top: 0;
  }
  #pagetitle h1 span {
    font-size: 15px;
    margin-left: 15px;
  }
  #pagenavi {
    padding: 0;
  }
  #pagenavi ul {
    flex-wrap: wrap;
    justify-content: flex-start;
    position: relative;
  }
  #pagenavi ul li {
    width: 50%;
    border-bottom: 1px solid #020429;
    border-right: none;
  }
  #pagenavi ul li:nth-child(5) {
    border-bottom: none;
  }
  #pagenavi ul li a {
    border-right: 1px solid #020429;
    padding: 15px 0;
    font-size: 12px;
  }
  #pagenavi ul li a:before {
    display: none;
  }
  #pagenavi ul li:nth-child(2n) a {
    border-right: none;
  }
  #pagenavi #navi_open {
    background: #6d6d6d;
    text-align: center;
    height: 27px;
  }
  #pagenavi #navi_open img {
    transition: all 0.3s;
  }
  #pagenavi #navi_open.close img {
    transform: rotate(180deg);
  }
  #greeting .inner {
    padding: 20px;
  }
  #greeting .inner {
    max-width: none;
  }
  #greeting h3 {
    font-size: 32px;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 20px;
  }
  #greeting p {
    margin-bottom: 30px;
  }
  #profile .inner {
    padding: 20px;
  }
  #profile h3 {
    font-size: 32px;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 20px;
  }
  #profile table th {
    display: block;
    width: 100%;
    text-align: left;
  }
  #profile table td {
    display: block;
    width: 100%;
    padding: 10px;
  }
  #profile table td table th,
  #profile table td table td {
    display: table-cell;
    width: auto;
    vertical-align: top;
  }
  #identity .inner {
    padding: 20px;
  }
  #identity h3 {
    font-size: 32px;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 20px;
  }
  #identity p {
    margin-bottom: 20px;
  }
  #identity .flex .text {
    width: auto;
  }
  #identity .flex .image {
    display: none;
  }
  #identity .vision {
    margin-top: 30px;
  }
  #history .inner {
    padding: 20px;
  }
  #history h3 {
    font-size: 32px;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 20px;
  }
  #history table th {
    display: block;
    width: 100%;
    text-align: left;
  }
  #history table td {
    display: block;
    width: 100%;
    padding: 10px;
  }
  #history table td table th,
  #history table td table td {
    display: table-cell;
    width: auto;
    vertical-align: top;
  }
  #eco {
    border-bottom: 1px solid #000;
    padding-bottom: 30px;
  }
  #eco .inner {
    padding: 20px;
  }
  #eco h3 {
    font-size: 32px;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 20px;
  }
  #eco .flex .text {
    width: auto;
    margin-bottom: 20px;
  }
  #eco .flex .image {
    width: auto;
  }
}
