.nav {
  width: 100%;
  position: absolute;
  left: 50%;
  bottom: 0;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  background-color: rgba(51, 51, 51, 0.8);
  overflow: hidden;
}
.nav ul {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  height: 8rem;
}
@media only screen and (max-width: 980px) {
  .nav ul {
    height: auto;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
  }
}
.nav ul li {
  -webkit-transform: skewX(150deg);
          transform: skewX(150deg);
}
@media only screen and (max-width: 980px) {
  .nav ul li {
    width: 33%;
    -webkit-transform: skewX(0);
            transform: skewX(0);
    gap: 1rem;
  }
}
@media only screen and (max-width: 480px) {
  .nav ul li {
    width: 50%;
    height: 8rem;
  }
}
.nav ul li:first-child a {
  position: relative;
  z-index: 1;
}
.nav ul li:first-child a::after {
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.nav ul li:first-child a:hover::after {
  width: 300%;
  height: 100%;
  right: 0;
  left: unset;
  -webkit-transform: translate(0, -50%);
          transform: translate(0, -50%);
}
.nav ul li:first-child.current a::after {
  width: 300%;
  height: 100%;
  right: 0;
  left: unset;
  -webkit-transform: translate(0, -50%);
          transform: translate(0, -50%);
}
.nav ul li:last-child a::after {
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.nav ul li:last-child a:hover::after {
  width: 200%;
  height: 100%;
  -webkit-transform: translate(-25%, -50%);
          transform: translate(-25%, -50%);
}
.nav ul li:last-child.current a::after {
  width: 200%;
  height: 100%;
  -webkit-transform: translate(-25%, -50%);
          transform: translate(-25%, -50%);
}
.nav ul li a {
  color: #ffffff;
  font-size: 1.2rem;
  display: block;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  height: 100%;
  padding: 0 3.8rem;
}
@media only screen and (max-width: 980px) {
  .nav ul li a {
    padding: 2rem 0;
    -webkit-box-pack: center !important;
        -ms-flex-pack: center !important;
            justify-content: center !important;
  }
}
.nav ul li a::before {
  content: attr(data-text);
  opacity: 0;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  white-space: nowrap;
  position: absolute;
  left: 50%;
  -webkit-transform: translateX(-50%) skewX(-150deg);
          transform: translateX(-50%) skewX(-150deg);
}
@media only screen and (max-width: 980px) {
  .nav ul li a::before {
    -webkit-transform: translateX(-50%) skewX(0);
            transform: translateX(-50%) skewX(0);
  }
}
.nav ul li a::after {
  content: "";
  opacity: 0;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  width: 0;
  height: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  background-color: rgba(137, 2, 2, 0.5);
  z-index: -1;
}
.nav ul li a span {
  opacity: 1;
  -webkit-transition: 0.3s;
  transition: 0.3s;
  -webkit-transform: skewX(-150deg);
          transform: skewX(-150deg);
}
@media only screen and (max-width: 980px) {
  .nav ul li a span {
    -webkit-transform: skewX(0);
            transform: skewX(0);
  }
}
@media only screen and (max-width: 1200px) {
  .nav ul li a {
    width: 100%;
    height: 100%;
    text-align: right;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: end;
    padding-right: 4rem;
  }
}
@media only screen and (max-width: 980px) {
  .nav ul li a {
    font-size: 1rem;
  }
}
.nav ul li a:hover::before {
  opacity: 1;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.nav ul li a:hover::after {
  width: 100%;
  height: 100%;
  background-color: rgb(65 146 255 / 50%);
  opacity: 1;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.nav ul li a:hover span {
  opacity: 0;
  -webkit-transition: 0.3s;
  transition: 0.3s;
}
.nav ul li.current a span {
  opacity: 0;
}
.nav ul li.current a::before {
  opacity: 1;
}
.nav ul li.current a::after {
  width: 100%;
  height: 100%;
  background-color: rgba(137, 2, 2, 0.5);
  opacity: 1;
}
/*---------------------------------------
   会社紹介
---------------------------------------*/
/*---------企業理念---------*/
#philosophy {
  background-color: #0d6efd;
  padding: 20rem 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}
#philosophy::after {
  content: "";
  width: 100%;
  height: 100%;
  background: -webkit-gradient(linear, left bottom, left top, color-stop(80%, transparent), to(#000000));
  background: linear-gradient(0deg, transparent 80%, #000000 100%);
  position: absolute;
  top: -15rem;
  left: 0;
  z-index: 1;
  opacity: 0.5;
}
@media only screen and (max-width: 980px) {
  #philosophy {
    background-attachment: unset;
    background-size: 300%;
  }
}
@media only screen and (max-width: 768px) {
  #philosophy {
    background-attachment: unset;
    background-size: 500%;
  }
}
@media only screen and (max-width: 480px) {
  #philosophy {
    background-size: 550%;
    padding: 20rem 0 9rem;
  }
}
#philosophy .container {
  width: 55%;
  padding: 4rem;
  background-color: rgba(255, 255, 255, 0.75);
  margin-left: auto;
  margin-right: 0;
}
@media only screen and (max-width: 980px) {
  #philosophy .container {
    width: 95%;
    margin-top: -18rem;
  }
}
@media only screen and (max-width: 768px) {
  #philosophy .container {
    width: 95%;
    margin-top: -20rem;
  }
}
@media only screen and (max-width: 480px) {
  #philosophy .container {
    width: 100%;
    margin-top: -20rem;
    padding: 1rem;
  }
}
#philosophy .ttl::before {
  right: unset;
  left: calc(100% + 1rem);
}
#philosophy .txt {
  color: #000000;
  width: 75%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8rem;
}
@media only screen and (max-width: 980px) {
  #philosophy .txt {
    width: 100%;
  }
}
#philosophy .sign {
  margin-left: auto;
  margin-right: 0;
}
@media only screen and (max-width: 480px) {
  #philosophy .sign {
    max-width: 100%;
  }
}
@media only screen and (max-width: 480px) {
  #philosophy .nav ul li:nth-child(1), #philosophy .nav ul li:nth-child(2), #philosophy .nav ul li:nth-child(3) {
    width: 33%;
  }
}

/*---------会社概要---------*/
#profile .grid-layout {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
      grid-template-areas: "a a" "d c" "b b";
}
@media only screen and (max-width: 980px) {
  #profile .grid-layout {
    gap: 5rem;
        grid-template-areas: "a" "b" "c";
  }
  #profile .grid-layout > .ttl {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
  }
  #profile .grid-layout > .img {
    -ms-grid-row: 5;
    -ms-grid-row-span: 1;
    -ms-grid-column: 1;
  }
  #profile .grid-layout > .txt {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
  }
}
#profile .ttl {
  -ms-grid-row: 3;
  -ms-grid-column: 3;
  grid-area: a;
}
#profile .btn {
  -ms-grid-row: 1;
  -ms-grid-row-span: 5;
  -ms-grid-column: 1;
  grid-area: c;
}

.table-layout {width: 65%;}
@media only screen and (max-width: 980px) {
  .table-layout {width: 100%;}
}
.table-layout tr{
  border-bottom: 1px;
  border-color: inherit;
  border-style: solid;
}
.table-layout th{
  font-size:1.2rem;
  font-weight: bold;
}
.table-layout td{
  font-size: 1rem;
}
/*---------アクセス---------*/
#access {
  background-color: #0d6efd;
  color: #ffffff;
  padding-bottom: 0;
}
#access h2{
  color: #ffffff;
}
#access h2 span{
  color: #ffffff;
}
#access .wht{
  color: #ffffff;
}
#access .grid-layout {
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
      grid-template-areas: "a c" "d c" "b e";
}
@media only screen and (max-width: 480px) {
  #access .grid-layout {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 5rem;
    -ms-grid-rows: auto 5rem auto 5rem auto;
        grid-template-areas: "a" "b" "c";
  }
  #access .grid-layout > .ttl {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
  }
  #access .grid-layout > .img {
    -ms-grid-row: 5;
    -ms-grid-row-span: 1;
    -ms-grid-column: 1;
  }
  #access .grid-layout > .txt {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
  }
  #access .grid-layout > .ttl {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
  }
  #access .grid-layout > .btn {
    -ms-grid-row: 5;
    -ms-grid-row-span: 1;
    -ms-grid-column: 1;
  }
}
#access .ttl {
  -ms-grid-row: 3;
  -ms-grid-column: 3;
  grid-area: a;
}
#access .txt {
  -ms-grid-row: 5;
  -ms-grid-column: 3;
  grid-area: b;
}
#access .btn {
  -ms-grid-row: 1;
  -ms-grid-row-span: 5;
  -ms-grid-column: 1;
  grid-area: c;
}
#access h3 {
  font-weight: normal;
  margin-bottom: 1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
}
#access h3::after {
  content: "";
  width: 22rem;
  height: 1px;
  background-color: #ffffff;
}
#access p {
  margin-bottom: 1rem;
}
#access ul {
  padding-left: 2rem;
}
#access ul li {
  margin-bottom: 1rem;
  list-style: disc;
}
#access iframe {
  margin-top: 5rem;
  width: 100%;
  height: 55rem;
  border: 0;
  vertical-align: bottom;
  -webkit-filter: grayscale(0.5);
          filter: grayscale(0.5);
}
#access .icon-tel::before {
  -webkit-filter: unset;
          filter: unset;
}
