/* assets */
/* SCSS */
#pagetitle {
  background: url(/images/page/factory/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: 30px 0;
  position: relative;
  background: url(/images/page/factory/icon_pin.png) no-repeat 20px;
  background-size: 23px;
}

#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;
}

#pagenavi ul li:nth-child(5) a {
  padding: 21px 0;
}

section .flex {
  display: flex;
}

section .flex .photo {
  width: 50%;
}

section .flex .text {
  width: 50%;
  padding: 40px;
  position: relative;
}

section .flex .text p {
  text-align: left;
  margin-bottom: 30px;
}

section .flex .text span {
  font-size: 18px;
}

section .flex .text span.mp {
  font-size: 14px;
  position: absolute;
  left: 0;
  right: 0;
  margin: auto;
  bottom: 30px;
}

section .flex .text .toggle {
  width: 45px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  cursor: pointer;
  transition: all 0.3s;
}

section p {
  font-size: 15px;
  line-height: 2;
}

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;
}

section .inner {
  padding: 25px;
  text-align: center;
}

section iframe {
  width: 100%;
  height: 430px;
}

section h3 {
  font-size: 31px;
  margin-bottom: 1em;
  text-align: center;
}

section.product .flex {
  justify-content: space-around;
  margin-top: 50px;
  margin-bottom: 20px;
}

section.product .flex .pBox {
  width: 22%;
  text-align: left;
}

section.product .flex .pBox h4 {
  text-align: center;
  border-bottom: 1px solid;
  font-size: 16px;
}

section .btn {
  width: 240px;
  height: 50px;
  line-height: 50px;
  border: 1px solid #3e3e3e;
  border-radius: 25px;
  text-align: center;
  display: block;
  margin: auto;
  position: relative;
  margin-bottom: 30px;
}

section .btn:after {
  content: '';
  width: 15px;
  height: 15px;
  background: url(/images/icon_circle_arrow_black.png);
  background-size: 15px;
  margin: auto 0;
  position: absolute;
  top: 0;
  right: 20px;
  bottom: 0;
}

section.facility .flex {
  justify-content: space-between;
  margin-bottom: 30px;
}

section.facility .outerTbl {
  margin-top: 40px;
  width: 47%;
}

section.facility .outerTbl th {
  width: 50%;
  background: #e5e5e5;
  text-align: center;
  font-weight: normal;
  border-bottom: 1px solid #aaa9a9;
  vertical-align: middle;
}

section.facility .outerTbl td {
  width: 50%;
  border-bottom: 1px solid #aaa9a9;
  padding: 7px;
  vertical-align: middle;
}

section.facility .outerTbl td table {
  width: 100%;
}

section.facility .outerTbl td table th {
  text-align: left;
  background: none;
  border: none;
  width: 80%;
}

section.facility .outerTbl td table td {
  border: none;
  text-align: right;
  padding: 0;
  width: 20%;
}

.factory section {
  display: none;
}

.factory section:first-child {
  display: block;
}

.factory:first-child .hide {
  display: block;
}

.factory.rotate .toggle {
  transform: rotate(180deg);
}

@media (max-width: 1350px) and (min-width: 769px) {
  #pagenavi ul li a {
    padding: 20px 20px 20px 40px;
    background-position: 12px;
    width: 100%;
    font-size: 14px;
    line-height: 1.5;
  }
  #pagenavi ul li {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}


@media (max-width: 768px) {
  header {
    display: inherit;
  }
  section .flex {
    display: inherit;
  }
  section .flex .photo {
    width: auto;
  }
  section .flex .text {
    width: auto;
    padding: 20px 10px;
  }
  section .flex .text .toggle {
    left: 0;
    right: 0;
    margin: auto;
    transition: all 0.3s;
  }
  section .flex .text p {
    margin-bottom: 20px;
  }
  section.product .flex {
    display: inherit;
  }
  section.product .flex .pBox {
    width: auto;
    margin-bottom: 30px;
  }
  section .inner p {
    text-align: left;
  }
  section.facility .outerTbl {
    width: 100%;
  }
  section.facility .outerTbl > tbody > tr > th {
    display: block;
    width: 100%;
  }
  section.facility .outerTbl > tbody > tr > td {
    display: block;
    width: 100%;
  }
  #pagetitle {
    background: url(/images/page/factory/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 a {
    border-right: 1px solid #020429;
    padding: 15px 0;
    font-size: 12px;
    background-size: 14px;
    background-position: 10px;
  }
  #pagenavi ul li a:before {
    display: none;
  }
  #pagenavi ul li:nth-child(2n) a {
    border-right: none;
  }
  #pagenavi ul li:nth-child(5) {
    border-bottom: none;
  }
  #pagenavi ul li:nth-child(5) a {
    padding: 10px 0;
  }
  #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);
  }
  section .inner {
    padding: 10px;
    text-align: center;
  }
  section h3 {
    font-size: 26px;
    letter-spacing: 0;
    text-align: center;
    margin-bottom: 20px;
  }
  section p {
    font-size: 15px;
    line-height: 1.95;
    margin-bottom: 50px;
  }
  section .bx-wrapper {
    width: 90%;
    margin: auto;
  }
  section .bx-wrapper h4 {
    font-size: 18px;
    margin: 20px 0;
  }
  section .navi {
    width: 100%;
    margin: auto;
    position: relative;
  }
  section .navi .open {
    border: 1px solid #000;
    height: 40px;
  }
  section .navi .open div {
    border-left: 1px solid #000;
    width: 50px;
    height: 38px;
    margin: 0 0 0 auto;
    text-align: center;
  }
  section .navi .open div img {
    vertical-align: bottom;
  }
  section .navi ul {
    position: absolute;
    background: #fff;
    top: 40px;
    z-index: 1;
    width: 85%;
    display: none;
  }
  section .navi ul li {
    border: 1px solid #000;
    border-top: none;
    width: 100%;
    padding: 10px;
    text-align: left;
  }
  section .navi ul a {
    display: block;
  }
  #inspection {
    border-bottom: 1px solid #000;
  }
  .bx-wrapper .bx-controls-direction a {
    width: 12px !important;
    height: 18px !important;
    top: 67% !important;
  }
  .bx-wrapper .bx-next,
  .bx-wrapper .bx-prev {
    background-size: 12px !important;
  }

  section .btn {
    margin-bottom: 50px;
  }
}
