@charset "UTF-8";

main {
  padding-top: 0;
}

.site_name {
  position: absolute;
  z-index: 3;
}

/* 下のの三角形 */
.triangle02 {
  position: relative;
}

.triangle02::after {
  display: block;
  content: "";
  background-color: #fff;
  width: 83vw;
  height: 200px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  position: absolute;
  bottom: 0;
  right: -15px;
  z-index: 1;
}


/* === リード文 =============== */

.top_lead {
  width: fit-content;
  margin: 0 auto;
  text-align: center;
  color: #fff;
  position: relative;
  z-index: 990;
  font-size: 0.9em;
}

.top_lead span {
  font-size: 1.5em;
}


/* === スライダー =============== */

.slider_area {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  margin-bottom: 0;
}

/* スライダーを含む親要素の大きさ */
.swiper {
  width: 100%;
  flex: 0 0 auto;
}

.swiper-slide {
  padding: 0 5px;
}

/* css変数でナビゲーションとページネーションの色を変更 */
:root {
  --swiper-navigation-color: #fff;
  --swiper-pagination-color: #fff;
}

/* 背景色 */
.background_main {
  padding-top: 150px;
  background: linear-gradient(#0d238f, #263893, #3097ff 60%);
  position: relative;
}

header p {
  margin-top: 1rem;
  text-align: center;
  color: #fff;
  mix-blend-mode: hard-light;
  z-index: 2;
}

header p span {
  font-size: 1.55em;

}

h2 {
  padding-top: 2rem;
  margin: 0 0 1rem 0;
  border: none;
  color: #fff;
  text-align: center;
  letter-spacing: 2px;
  font-family: "M PLUS 2", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 1.5rem;
  background-color: initial;
}

.jigyou h2,
.about h2,
.annai h2 {
  opacity: 0.9;
}

/*=== about ==========*/

.jigyou h2 {
  font-size: 1.5rem;
}


/*=== about ==========*/

.about h2 {
  font-size: 1.8rem;
  letter-spacing: 0;
}

.about .bunkatsu {
  display: grid;
  gap: 20px;
}

.about .bunkatsu div {
  background-color: #fff;
  border: 1px solid #0d238f;
  display: flex;
  /* 三角形より上に来るように */
  position: relative;
  z-index: 2;
}

.about .bunkatsu img {
  width: 120px;
}

.about .bunkatsu p {
  padding: 15px 15px 15px 18px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.about .bunkatsu a {
  display: block;
  color: #333;
  transition: all 0.5s ease;
}

.about .bunkatsu span {
  position: absolute;
  right: 0;
  bottom: 0;
  color: #fff;
  background-color: #0d238f;
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
}

.about .our_b a:hover span {
  background-color: #3a5eff;
  transition: all 0.5s ease;
}

.about .our_b a:hover div {
  border: 1px solid #fff;
  transition: all 0.5s ease;
}


/*=== 会社案内 ==========*/

.annai .bunkatsu {
  display: grid;
  gap: 20px;
  padding-bottom: 50px;
}

.annai a {
  display: block;
  background-color: #ececec;
  color: #333;
  padding: 20px 0;
  text-align: center;
  /* 三角形より上に来るように */
  position: relative;
  z-index: 2;
}

.annai a::after {
  display: block;
  content: "";
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #333;
  border-right: 2px solid #333;
  position: absolute;
  transform: rotate(-45deg) translateY(-50%);
  right: 15px;
  top: 50%;
}

.annai a:hover {
  filter: brightness(80%);
  transition: all 0.5s ease;
}


/*=== ブログ ==========*/

.news {
  background: linear-gradient(rgba(133, 194, 12, 0.7), rgba(133, 194, 12, 0.7)), url(images/kouji-02.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 0 0 2rem;
}

/* 記事1つ */
.news dl {
  margin-bottom: 0;
  background-color: #fff;
  padding: 10px 15px;
}


/* 日付 */
.news dt {
  margin-left: 0;
  font-weight: normal;
}

/* 記事内容 */
.news dd {
  margin-left: 0;
}

/* ブログ一覧へ */
.news p {
  margin: 1.5rem 0 0 0;
  text-align: center;
}

.news p a {
  color: #333;
}

.news p a::after {
  display: inline-block;
  content: "";
  width: 8px;
  height: 8px;
  border-bottom: 2px solid #333;
  border-right: 2px solid #333;
  transform: rotate(-45deg) translateY(-50%);
  margin: auto 0 -1px 8px;
}

.news p a:visited::after {
  border-bottom: 2px solid #000;
  border-right: 2px solid #000;
}

.news p a:hover::after {
  border-bottom: 2px solid #777;
  border-right: 2px solid #777;
}

.news p a:active::after  {
  border-bottom: 2px solid #aaa;
  border-right: 2px solid #aaa;
}


@media (min-width:750px) {
  /* 上の三角形 */
  .site_name {
    width: 45vw;
    height: 450px;
    clip-path: polygon(0 0, 100% 0, 0 100%, 0 0%);
  }
  
  /* 下のの三角形 */
  .triangle02::after {
    width: 45vw;
    height: 450px;
  }

  header .bunkatsu {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 200px;
  }

  /* 背景色 */
  .background_main {
    padding-top: 30px;
  }

  h2 {
    font-size: 1.8rem;
  }


  /* === リード文 =============== */

  .top_lead {
    padding-left: 32vw;
  }

  .top_lead span {
    font-size: 1.55em;
  }

  
  /*=== スライド ==========*/
  .slide img {
    width: 35%;
  }


  /*=== about ==========*/

  .about h2 {
    font-size: 2rem;
  }

  .about .bunkatsu {
    grid-template-columns: repeat(2, 1fr);

  }


  /*=== 会社案内 ==========*/
  .annai .bunkatsu {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }


  /*=== ブログ ==========*/
  /* 記事1つ */
  .news dl {
    display: flex;
    padding: 10px 30px;
  }

  .news dl:nth-child(2) {
    padding-top: 20px;
  }

  .news dl:nth-last-child(2) {
    padding-bottom: 20px;
  }

  /* 記事内容 */
  .news dd {
    margin-left: 20px;
  }
}


@media (min-width:992px) {
  h2 {
    padding-top: 3rem;
    font-size: 2rem;
  }

  /*=== jigyou ==========*/

  .jigyou h2 {
    font-size: 2rem;
  }

  /*=== about ==========*/

  .about h2 {
    font-size: 2.3rem;
  }

  .news h2,
  .contact h2 {
    padding-top: 2rem;
  }
}

@media (min-width:1025px) {

  html {
    overflow-x: hidden;
  }


  /* 下の三角形 */
  .triangle02::after {
    right: calc((-100vw + 995px) / 2);

  }

  /* === リード文 =============== */

  .top_lead {
    font-size: 1.2rem;
    padding-left: 400px;
    padding-top: 10px;
  }
}