@charset "UTF-8";
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");
@import url('https://fonts.googleapis.com/css2?family=Zen+Old+Mincho:wght@400;600;700&display=swap');
@import url("reset.min.css");


:root {
  /* Colors: */
  --color-main: #00817a;
  --color-sub: #020000;

  --color-white: #ffffff;
  --color-black: #020000;
  --color-gray: #ccc;
  --color-green-light: #e1f0ef;

  /* Font/text values */
  --font-family-noto-sans-jp: Noto Sans JP;
  --font-style-normal: normal;
  --font-weight-medium: medium;

  /* Min 320 16px Max 1200 24px　*/
  /* --font-size: clamp(1rem, 0.818rem + 0.91vw, 1.5rem); */


  --header-height: 80px;
  /* Utility */
  --border-radius: 20px;

  --header-margin-bottom: 2rem;

}

html {
  font-size: 62.5%;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-noto-sans-jp);
  font-style: var(--font-style-normal);
  font-weight: var(--font-weight-medium);
  font-size: 1.6rem;
  color: var(--color-text);
  background-color: var(--color-background);
  line-height: 1.5;
  letter-spacing: 0.085em;

  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}

time {
  flex-shrink: 0;
}

body {
  background-color: #ffffff;
  background-image: url("https://www.transparenttextures.com/patterns/absurdity.png");
}

@media screen and (min-width: 999.8px) {
  body {
    font-size: 1.8rem;
  }
}

img {
  max-width: 100%;
  height: auto;
  overflow: hidden;
}

/* sp */
h2 {
  font-size: 1.9rem;
}

h3 {
  font-size: 1.6rem;
}

/* pc */
@media screen and (min-width:999.8px) {
  h2 {
    font-size: 3.5rem;
  }

  h3 {
    font-size: 2.6rem;
  }
}

/* utility */
.fadein {
  opacity: 0;
  transform: translate(0, 0);
  transition: all 1.5s;

  &.fadein-left {
    transform: translate(-30px, 0);
  }

  &.fadein-right {
    transform: translate(30px, 0);
  }

  &.fadein-up {
    transform: translate(0, -30px);
  }

  &.fadein-bottom {
    transform: translate(0, 80px);
  }

  &.scrollin {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
  }
}


.pc {
  display: none;
}

.sp {
  display: inline-block;
}

.text-center {
  text-align: center;
}

.text-sm-center {
  text-align: center;
}


.mb-2 {
  margin-bottom: 2rem;
}

.pt-0 {
  padding-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-45 {
  margin-top: 4.5vw !important;
}

.mb-45 {
  margin-bottom: 4.5vw !important;
}

.mb-8 {
  margin-bottom: 8vw !important;
}

.mt-8 {
  margin-top: 8vw !important;
}

.pt-45 {
  padding-top: 4.5vw !important;
}

.pb-45 {
  padding-bottom: 4.5vw !important;
}

.pt-8 {
  padding-top: 8vw !important;
}

.pb-8 {
  padding-bottom: 8vw !important;
}

.content-mb {
  margin-bottom: 20% !important;
}

.content-sm-mb {
  margin-bottom: 20% !important;
}

.mb58 {
  margin-bottom: calc(5% + 2rem) !important;
}

.mt-sm-2 {
  margin-top: 2rem !important;
}

.mt-sm-4 {
  margin-top: 4rem !important;
}

.mt-sm-8 {
  margin-top: 4rem !important;
}

.ti__1 {
  padding-left: 1em !important;
}

.ti__2 {
  padding-left: 2em !important;
}

@media screen and (max-width: 999.8px) {
  .pt-sm-0 {
    padding-top: 0 !important;
  }

  .mt-sm-5 {
    margin-top: 5% !important;
  }

  .mt-sm-4 {
    margin-top: 4% !important;
  }

  .mt-sm-8 {
    margin-top: 8% !important;
  }
}

@media screen and (min-width:999.8px) {
  .pc {
    display: inline-block;
  }

  .sp {
    display: none;
  }

  .mb58 {
    margin-bottom: initial !important;
  }

  .content-mb {
    margin-bottom: 8vw !important;
  }

  .content-sm-mb {
    margin-bottom: 0 !important;
  }

  .text-sm-center {
    text-align: unset;
  }

  .text-lg-right {
    text-align: right;
  }

  .gap-4 {
    gap: 4%;
  }

  #sec02.mb-0,
  #sec03.mb-0,
  #sec02_sustainability.mb-0 {
    margin-bottom: 0 !important;
  }

}

.d-block {
  display: block !important;
}

.d-none {
  display: none !important;
}

/* color */
/* text */

.text__title {
  color: var(--color-main);
  /* margin-left: 2rem; */
}

.pc__br {
  display: none;
}

.ft-weight-bold {
  font-weight: 700;
}

@media screen and (min-width: 999.8px) {
  .pc__br {
    display: inline;
  }
}

/* arrow */
/* 矢印btn */
.arrow {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-gray);
  /* 通常時はグレー */
  border-radius: 50%;
  text-decoration: none;
  vertical-align: middle;
  transition: all 0.1s;
  flex: 0 0 auto !important;
}

.arrow__lg {
  width: 48px;
  height: 48px;
}

.arrow::before,
.arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.1s;
}

/* 横線（→の棒） */
.arrow::before {
  width: 12px;
  height: 1px;
  background-color: var(--color-gray);
}

/* 矢印の先端（→の > 部分） */
.arrow::after {
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--color-gray);
  border-right: 1px solid var(--color-gray);
  transform: translate(-50%, -50%) rotate(45deg);
}

a:hover .arrow {
  background-color: var(--color-white);
  border-color: var(--color-white);

  &::before {
    background-color: var(--color-main);
  }

  &::after {
    border-top-color: var(--color-main);
    border-right-color: var(--color-main);
  }
}

.arrow.arrow__green {
  border-color: var(--color-main);
  transition: all 0.2s;

  &::before {
    background-color: var(--color-main);
  }

  &::after {
    border-top-color: var(--color-main);
    border-right-color: var(--color-main);
  }
}

a:hover .arrow.arrow__green {
  background-color: var(--color-main);

  &::before {
    background-color: var(--color-white);
  }

  &::after {
    border-color: var(--color-white);
  }
}

a.fc__hover__green:hover {
  color: var(--color-main);
}

.arrow.arrow__green_ot {
  border-color: var(--color-main);
  background-color: var(--color-main);
  transition: all 0.2s;

  &::before {
    background-color: var(--color-white);
  }

  &::after {
    border-top-color: var(--color-white);
    border-right-color: var(--color-white);
  }
}

a:hover .arrow.arrow__green_ot {
  background-color: unset;

  &::before {
    background-color: var(--color-main);
  }

  &::after {
    border-color: var(--color-main);
  }
}

/* ページネーション */
.nav-links {

  padding-top: 8rem;
  display: flex;
  gap: 1rem;
  justify-content: center;

  &>.current {
    color: var(--color-main);
  }

  & .prev,
  & .next {
    border-color: var(--color-main);
    background-color: var(--color-main);

    position: relative;
    display: inline-block;
    width: 32px;
    height: 32px;
    /* 通常時はグレー */
    border-radius: 50%;
    text-decoration: none;
    vertical-align: middle;
    transition: all 0.2s;
    flex: 0 0 auto !important;

    &::before {
      background-color: var(--color-white);
    }

    &::after {
      border-top-color: var(--color-white);
      border-right-color: var(--color-white);
    }

    /* 横線（→の棒） */
    &::before {
      width: 12px;
      height: 1px;
    }

    /* 矢印の先端（→の > 部分） */
    &::after {
      width: 8px;
      height: 8px;
      transform: translate(-50%, -50%) rotate(45deg);
    }
  }

  & .prev {
    transform: rotate(180deg);
  }
}

/* 横線（→の棒） */
.arrow::before {
  width: 12px;
  height: 1px;
  background-color: var(--color-gray);
}

/* 矢印の先端（→の > 部分） */


.prev::before,
.prev::after,
.next::before,
.next::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.1s;
}

.prev::after,
.next::after {
  width: 8px;
  height: 8px;
  border-top: 1px solid var(--color-gray);
  border-right: 1px solid var(--color-gray);
  transform: translate(-50%, -50%) rotate(45deg);
}


/* grid */
.d-grid {
  display: block;

  & .d-grid__item {
    height: 100%;
    width: 100%;

    & a {
      padding: 2rem 4rem;
      display: flex;
      align-items: center;
      height: 100%;
      width: 100%;
      transition: background-color 0.2s ease;

      &>span,
      &>div {
        font-size: 1.8rem;
        flex: 1 0 auto;

        &>span.link__blank {
          display: inline-flex;
          align-items: end;
          height: 1cap;
        }

        &>span.link__blank::after {
          content: url(../../assets/images/link_black.png);
          display: inline-block;
          transform: scale(50%) translateY(16px);
        }

        &>span {
          color: var(--color-main);
          display: block;
          font-size: 1.4rem;
        }
      }

      &:hover {
        background-color: var(--color-main);

        &>span,
        &>div {
          color: #ffffff;

          &>span.link__blank::after {
            content: url(../../assets/images/link_white.png);
          }

          &>span {
            color: #ffffff;
          }
        }

      }
    }
  }
}

@media screen and (min-width: 999.8px) {
  .d-grid {
    display: grid;

    & .d-grid__item {

      & a {
        padding: 2rem 4rem;

        &>span,
        &>div {
          font-size: 2.4rem;

          &>span.link__blank::after {
            transform: scale(70%) translateY(8px);
          }

          &>span {
            font-size: 1.6rem;
          }
        }

        & .arrow {
          flex: 0 0 auto;
          margin-left: 0;
        }

        &:hover {
          background-color: var(--color-main);

          &>span {
            color: #ffffff;

            &>span {
              color: #ffffff;
            }
          }

          & .arrow {
            background-color: #ffffff;
            border-color: var(--color-main);

            &::before {
              background-color: var(--color-main);
            }

            &::after {
              /* background-color: #ffffff; */
              border-color: var(--color-main);
            }
          }
        }
      }
    }
  }
}

/* flex */
.item__news_list {
  border-bottom: solid 1px var(--color-main);
  display: flex;
  justify-content: space-between;
  align-items: center;

  &.border-sm-none {
    border: none;
  }

  /* &:first-of-type {
    border-top: none;
  } */

  &>a {
    padding: 4.5vw 2rem;
    flex-grow: 1;
    display: flex;
    transition: all 0.2s ease;
    gap: 4rem;

    & p {
      flex-grow: 1;
    }

    & .arrow {
      position: relative;
      /* top: -0.5cap; */
      flex-shrink: 0;
    }

    &:hover {
      background: #e1f0e6;
      color: var(--color-main);

      & .arrow {
        background-color: var(--color-main);
        border-color: var(--color-main);

        &:before {
          background-color: var(--color-white);
        }

        &:after {
          border-color: var(--color-white);
        }
      }
    }
  }
}


.under {
  border-bottom: solid 1px var(--color-main);
  /* display: none; */
}

.d-content {
  display: block;
  flex-grow: 1;
}

.d-flex {
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

@media screen and (min-width: 999.8px) {

  .item__news_list {
    &>a {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;

      padding: 1.5vw;
    }
  }

  /* .item__news_list:first-of-type {
    border-top: none;
  } */

  /* .item__news_list:last-of-type {
    border-bottom: none;
  } */

  .d-flex {
    display: contents;
  }

  .d-content {
    display: contents;
  }

  .under {
    display: flex;
  }

}

/* btn */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* padding: 12px 24px; */

  width: 240px;
  height: 52px;
  border-radius: 100vh;
  background-color: var(--color-white);
  color: var(--color-main);
  border: 1px solid var(--color-main);
  text-align: center;
  font-weight: 600;
  transition: 0.2s;

  &.btn__sm {
    height: 48px;
  }

  &>.arrow {
    position: absolute;
    margin: 0;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    &.arrow__left {
      right: unset;
      left: 1rem;
      transform: translateY(-50%) rotate(180deg);
    }
  }

  &.btn__green {
    background-color: var(--color-main);
    color: var(--color-white);
    border: 1px solid var(--color-main);

    &.border__none {
      border-color: var(--color-main);
    }

    &>.arrow {
      background-color: var(--color-white);
      border-color: var(--color-main);

      &:before {
        background-color: var(--color-main);
      }

      &:after {
        border-color: var(--color-main);
      }
    }
  }

  &:hover.btn__green {
    background-color: var(--color-white);
    color: var(--color-main);
    border-color: var(--color-main);

    &>.arrow {
      background-color: var(--color-main);
      border-color: var(--color-main);

      &:before {
        background-color: var(--color-white);
      }

      &:after {
        border-color: var(--color-white);
      }
    }
  }

  &.btn__white {
    background-color: var(--color-white);
    color: var(--color-main);
    border: 1px solid var(--color-main);

    &.border__none {
      border-color: var(--color-white);
    }

    &>.arrow {
      background-color: var(--color-main);
      border-color: var(--color-main);

      &:before {
        background-color: var(--color-white);
      }

      &:after {
        border-color: var(--color-white);
      }
    }
  }

  &:hover.btn__white {
    background-color: var(--color-main);
    color: var(--color-white);
    border-color: var(--color-main);

    &>.arrow {
      background-color: var(--color-white);
      border-color: var(--color-white);

      &:before {
        background-color: var(--color-main);
      }

      &:after {
        border-color: var(--color-main);
      }
    }
  }



}



@media screen and (min-width: 999.8px) {
  .btn {
    width: 280px;
  }
}


/* その他設定 */
.white {
  color: var(--color-white);
}

.green {
  color: var(--color-main);
}

.center {
  display: flex;
  justify-content: center;
}

.contentsSp {
  padding-inline: 2rem;
}

.pankuzu {
  padding-block: 1rem;
  padding-inline: 2rem;
  display: block;
  font-size: 1.2rem;
}

.text__main {
  padding-inline: 2rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;

  & .txt__top1 {
    position: relative;
    letter-spacing: 0.2em;
    line-height: 1.4;
    font-weight: 700;
    color: var(--color-white);
    /* margin-bottom: 1rem; */
  }

  & .txt__top2 {
    letter-spacing: 0.2em;
    line-height: 1.4;
    color: var(--color-white);
    z-index: 2;
    font-size: 1.4rem;
  }

}

/* PC */
@media screen and (min-width: 999.8px) {
  .top150 {
    margin-top: 150px;
  }

  /* section幅 */
  .contents {
    width: 70%;
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 4.5vw 0; */
  }

  .contents.__1120 {
    width: 100%;
    max-width: 1120px;
  }

  .contentsSp {
    padding-inline: 0;
  }

  .pankuzu {
    width: 70%;
    max-width: 1400px;
    margin: 0 auto;
    padding-inline: 0;
  }

  .text__main {
    width: 70%;
    max-width: 1400px;
    margin: 0 auto;
    padding-inline: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;

    & .txt__top1 {
      letter-spacing: 0.2em;
      line-height: 1.4;
      font-weight: 700;
      color: var(--color-white);
      margin-bottom: 1rem;
    }

    & .txt__top2 {
      letter-spacing: 0.2em;
      line-height: 1.4;
      color: var(--color-white);
      z-index: 2;
    }

  }

}


/* Header SP*/
header {
  background-color: rgba(255, 255, 255, 1);
  color: var(--color-black);
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  height: 80px;
  padding-inline: 2rem;
  font-size: 1.6rem;

  display: flex;
  align-items: center;
  transition: opacity 0.2s ease-in-out;

  & .header__inner {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 15px 6px; */
  }
}

body.top header {
  background: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .2), rgba(0, 0, 0, 0));
  color: var(--color-white);
  /* position: absolute; */
}

body.top header.is-fixed {
  transition: opacity 0.2s ease-in-out;

  background: rgba(255, 255, 255, 1);
  color: var(--color-black);
  position: fixed;
  /* background-color: rgba(255, 255, 255, 1); */
}

body.top header .logo_black {
  display: none;
}

body.top header .logo_white {
  display: inline-block;
}

body.sub header .logo_white {
  display: none;
}

body.top header.is-fixed .logo_black {
  display: inline-block;
}

body.top header.is-fixed .logo_white {
  display: none;
}


.logo {
  position: relative;
  z-index: 9999;
  width: 200px;
}

.header__contact {
  display: none;
}

/* menu button */
.menu_button {
  position: relative;
  z-index: 9999;
}

.menu_button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--color-main);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  & span {
    position: absolute;
    display: block;
    width: 60%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 2px;
    background-color: var(--color-white);
    transition: opacity 0.2s ease-in-out;
  }

  & span:first-of-type {
    top: 40%;
  }

  & span:last-of-type {
    top: 60%;
  }

  &.active span:first-of-type {
    transform: translate(-50%, -50%) rotate(45deg);
    top: 50%;
  }

  &.active span:last-of-type {
    transform: translate(-50%, -50%) rotate(-45deg);
    top: 50%;
  }

}

body.sub main {

  & section:nth-of-type(2) {
    margin-top: 4.5vw !important;
    padding-top: 0 !important;

    & .contents:not(.contact, .rinen) {
      padding-top: 0 !important;
    }
  }

  & section:not(.introduction_section)::last-of-type {
    margin-bottom: 20% !important;
    padding-bottom: 0 !important;

    & .contents:not(.contact, .rinen) {
      padding-bottom: 0 !important;
    }
  }

}


@media screen and (min-width: 999.8px) {
  body.sub main {

    & section:nth-of-type(2) {
      margin-top: 4.5vw !important;
      padding-top: 0 !important;

      & .contents:not(.contact, .rinen) {
        padding-top: 0 !important;
      }
    }

    & section:not(.introduction_section)::last-of-type {
      margin-bottom: 8vw !important;
    }

  }
}

/* 下層ページの共通調整 */


/* sec02 */
/* #sec02 {
  margin-top: 4.5vw !important;
  padding-top: 0 !important;

  & .contents:not(.contact, .rinen) {
    padding-top: 0 !important;
  }
}

#sec02_10Company {
  margin-top: 4.5vw !important;
  padding-top: 0 !important;

  & .contents {
    padding-top: 0 !important;
  }
} */


/* =========
nav menu 
========= */

/* SP */
.header__nav {
  width: 100%;
  height: 100vh;
  transform: translateX(101%);
  position: fixed;
  top: 0;
  left: 0;
  background-color: white;
  z-index: 1000;
  transition: opacity 0.4s ease;
  overflow-y: scroll;
  padding-top: 130px;
}

.header__nav.active {
  transform: translateX(0);
}

.nav__contents {
  display: flex;
  justify-content: flex-end;
  /* padding: 4% 5%; */
}

.logo__nav {
  width: 48%;
}

.nav__contact {
  display: none;
}

.menu__close {
  width: 52px;
  height: 52px;
}

.nav__box {
  color: var(--color-black);
  padding: 0 7%;
}

/* nav top & bottom contents */
.nav__tb {
  display: flex;
  flex-direction: column;
}

.nav__tb:last-of-type {
  margin-bottom: 12rem;
}

.nav__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* text-align: center; */
  border-bottom: 1px solid var(--color-black);
  padding-block: 2rem;
}

.nav__row.link-item {
  display: block;

  & a {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

.border {
  border-bottom: none;
}

/* menu item */

.slick-dots {
  display: flex;
  justify-content: center;
}

.slick-dots li button {
  font-size: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ccc;
  border: none;
  margin: 0 5px;
}

.slick-dots li {
  list-style: none;
}

.slick-dots li.slick-active button {
  background-color: var(--color-main);
}

.nav__list {
  margin-left: 0;
  padding-block: 2rem;
  border-bottom: 1px solid var(--color-black);
}

.nav__list li {
  list-style: none;
  display: flex;
  align-items: start;
  padding-bottom: 1.4rem;
}

.nav__list li:not(.nav__title)::before {
  content: "";
  display: inline-block;
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background-color: var(--color-main);
  border-radius: 50%;
  margin-top: 0.7cap;
  margin-right: 1rem;
}


.nav__title {
  /* padding-bottom: 1rem; */
  list-style: none;
}

.nav__title>a>span {
  display: block;
  /* padding-left: 1em; */
}

.header__nav .nav__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__nav .nav__title .bi {
  font-size: 2.4rem;
}

.nav__item {
  padding-bottom: 4%;
  overflow: visible;
  padding-left: 2rem;
}

/* link icon */
.nav__link::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  background-image: url(../images/link_black.png);
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 5px;
  margin-top: 0.5cap;
}

.top .header .header__nav_pc .nav__link::after {
  background-image: url(../images/link_white.png);
}

.top .header.is-fixed .header__nav_pc .nav__link::after {
  background-image: url(../images/link_black.png);
}


.contact__item {
  font-size: 1.9rem;
  text-align: center;
  border-top: solid 1px var(--color-main);
  border-bottom: solid 1px var(--color-main);
  padding: 5% 0;
}

.contact__sabtitle {
  font-size: 1.6rem;
}

.nav__logo {
  width: 100%;
  background-image: url(../images/menu_backgroundSp.png);
  background-size: auto;
  background-repeat: repeat;
}

/* Contact*/
.item__sec09 {
  text-align: center;
  border-top: solid 1px var(--color-main);
  border-bottom: solid 1px var(--color-main);
  padding: 6% 0;
}

/* ul liリスト */
li {
  display: list-item;
  list-style: disc;
}

li::marker {
  color: var(--color-main);
}

.header__nav details {
  padding-block: 2rem;
  border-bottom: 1px solid var(--color-black);

  /* --------アコーディオンの中身のスタイル-------- */
  &::details-content {
    transition: height 0.4s, opacity 0.4s, content-visibility 0.4s allow-discrete;
    height: 0;
    opacity: 0;
    overflow: clip;
  }

  /* --------アコーディオンの中身のスタイル（開いている時）-------- */
  &[open]::details-content {
    opacity: 1;
  }

  /* アコーディオンが開いた時のスタイル */
  &[open] .bi {
    transform: rotate(45deg);
  }

}

@supports (interpolate-size: allow-keywords) {
  :root {
    interpolate-size: allow-keywords;
    /* height:0（数値型） → auto（文字型） のアニメーションを可能にするための指定 */
  }

  details[open]::details-content {
    height: auto;
  }
}

@supports not (interpolate-size: allow-keywords) {
  details[open]::details-content {
    height: 100%;
    max-height: 1000px;
    overflow-y: scroll;
    /* 溢れる場合はスクロール可能にする */
  }
}

.header__nav details .nav__list {
  padding-bottom: 0;
  border-bottom: none;
}

.header__nav details .bi {
  transition: transform 0.2s ease-in-out;
}

.header__nav details[open] .bi {
  transform: rotate(45deg);
}

.header__nav summary {
  list-style-type: none;
  cursor: pointer;

  &::-webkit-details-marker {
    display: none;
  }
}

/* Header pc */
@media screen and (min-width: 999.8px) {
  header {
    height: var(--header-height);
    /* padding-inline: 2rem; */

    /* & h1,
    & .header__contact {
      position: relative;
      z-index: 9999;
    } */

    /* padding: 3% 3% 1%; */
  }

  .header__nav.active {
    display: none;
  }

  .logo {
    width: 80%;
  }

  /* =========
nav menu 
========= */

  .header__inner .pc {
    flex-shrink: 0;
  }

  .header__nav_pc {
    display: flex;
    align-items: center;

    &>ul {
      display: flex;
      gap: 2rem;

      &>li {
        list-style: none;
        display: flex;
        align-items: center;
        gap: 2rem;
        position: relative;

        &>a,
        &>.nav__title>a {
          width: 100%;
          /* transition: color 0.2s ease-in-out; */
        }

        &>.nav__title>i::before {
          transition: transform 0.1s ease-in-out;
        }

        &>.submenu {
          display: none;
          opacity: 0;
          color: var(--color-black);
          position: absolute;
          width: max-content;
          background-color: var(--color-white);
          padding: 1rem 4rem 2rem;
          top: 3rem;
          left: -2rem;

          transition-property: opacity, display;
          transition-behavior: allow-discrete;
          transition-duration: 0.2s;

          @starting-style {
            opacity: 0;
          }

          &>ul>li {
            list-style: none;
            margin-top: 16px;

            &>a:hover {
              color: var(--color-main);
              text-decoration: underline;
              text-underline-offset: 4px;
            }
          }


        }

        &:hover {

          &>.nav__title>a {
            color: var(--color-main);
          }

          &>.nav__title+.submenu {
            display: block;
            opacity: 1;
          }

          &>.nav__title>i::before {
            color: var(--color-main);
            transform: rotate(45deg);
          }
        }


        &>a.contact {
          padding: 4px 8px;
          border-radius: 100vh;
          color: var(--color-main);
          border: 1px solid var(--color-main);
          transition: 0.1s ease-in-out;
          background-color: var(--color-white);
        }

        &>a.contact:hover {
          color: var(--color-white);
          background-color: var(--color-main);
        }

      }

      &>li::before {
        content: "";
        display: block;
        width: 2px;
        height: 2cap;
        background-color: #e6e6e6;
        flex-shrink: 0;
      }

    }
  }

  .top .header__nav_pc ul li .submenu {
    color: var(--color-white);
    background-color: rgba(0, 0, 0, 0.4);
  }

  .is-fixed .header__nav_pc {
    &>ul {
      &>li {
        &>.submenu {
          color: var(--color-black);
          background-color: var(--color-white);
          padding: 1rem 4rem 3rem;
          border-radius: 0 0 10px 10px;
        }
      }
    }
  }


  .header__nav {
    width: 100%;
    background-image: url(../images/menu_BackgroundPc.png);
    background-size: auto;
    background-repeat: repeat;
    text-align: left;
    display: flex;
    align-items: center;
  }

  .nav__contact {
    display: block;
  }

  .header__contact,
  .nav__contact {
    display: flex;
    z-index: 9999;
    justify-content: space-between;
    /* padding: 4% 5%; */
    background: #fff;
    border-radius: 100vh;
    border: 1px solid var(--color-black);
    position: relative;
    align-items: center;
    margin: 0 auto;
    padding: 12px 64px;
    margin-right: 30px;
    color: var(--color-black);
  }

  .nav__box {
    white-space: nowrap;
    padding: 0;
  }

  .nav__contents {
    width: 100%;
    display: flex;
    justify-content: space-between;
    /* padding: 2%; */
    height: 130px;
  }

  .logo__nav {
    width: 15%;
  }

  /* menu item */
  .header__nav {
    height: 100vh;
    margin-right: 2rem;
    flex-direction: column;
  }

  .header__nav .nav__title {
    padding-left: 1rem;
  }



  .nav__tb {
    display: flex;
    flex-direction: row;
    gap: 40px;
    /* justify-content: space-between; */
  }

  .nav__row {
    flex: 1 1 auto;
    width: 50%;
    align-items: center;
    border-top: 1px solid var(--color-black);
    border-bottom: 1px solid var(--color-black);
    padding: 1.9% 2rem;
    margin-top: 2.5%;
  }

  .nav__wrapper {
    display: flex;
    gap: 40px;
    /* justify-content: space-between; */
  }

  .nav__list {
    flex: 1 1 auto;
    width: 25%;
    list-style: none;
    padding-left: 20px;
    padding: 1.3% 0;
  }


  .nav__list li {
    list-style: none;
    display: flex;
    align-items: start;
  }

  .nav__list li:not(.nav__title)::before {
    content: "";
    display: inline-block;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background-color: var(--color-main);
    border-radius: 50%;
    margin-top: 0.4cap;
    margin-right: 1rem;
  }

  .header__nav .nav__link::after {
    margin-top: 0.4cap;
  }

  .nav__footer,
  .footer__logo {
    display: none;
  }

  .nav__list li:not(.nav__title) {
    padding-left: 1rem;
  }

  .header__nav .arrow {
    background-color: var(--color-main);
  }

  .header__nav .arrow::before,
  .header__nav .arrow::after {
    border-color: var(--color-white);
  }

  /* Contact*/
  .item__sec09 {
    padding: 10.6% 0;
  }
}

main {
  padding-top: 80px;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.flex-basis-160 {
  flex-basis: 160px;
}

/* ===========
     footer
  =========== */

footer {
  letter-spacing: 1px;
  font-size: 1.4rem;
}

/* sp */
.footer__menu {
  position: relative;
  /* display: none; */
}


.footer__menuList {
  display: none;
}

.footer__menuList li a {
  transition: all 0.2s ease;
}

.footer__menuList li a:hover {
  opacity: 0.5;
}

.footer__logo {
  width: 50%;
  display: block;
  margin: auto;
  padding-block: 5rem 2rem;
}

.footer__container {
  width: 100%;
  /* height: 630px; */
  background-image: url(../images/footer_backgroundSp.png);
  background-size: auto;
  background-repeat: repeat;
}

p.copy {
  text-align: center;
  font-size: min(1.4rem, calc(100vw / 40));
  padding-bottom: 1rem;
  color: #939393;
}

.goToTop {
  position: absolute;
  top: -30px;
  bottom: unset;
  right: 50%;
  transform: translateX(50%);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 100vh;
  background-color: var(--color-main);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.2s ease;

  & a {
    display: inline-block;
    width: 100%;
    height: 100%;
    position: relative;

    &>i {
      position: relative;
      top: 30%;
    }
  }
}

/* pc */
@media screen and (min-width: 999.8px) {
  .footer__menu {
    display: block;
  }

  .footer__logo {
    display: none;
  }

  .footer__container {
    width: 100%;
    /* height: 630px; */
    background-image: url(../images/footer_background.png);
    background-size: auto;
    background-repeat: repeat;
  }

  .footer__menu {
    display: flex;
    justify-content: space-between;
    padding: 100px 0;
  }

  .footer__menuList {
    /* padding: 0 20px; */
    display: inline-block;
    /* margin: 0 20px; */
    /* width: 20%; */
  }

  .footer__menuList li {
    list-style: none;
  }

  .footer__menuList li:not(.nav__title) {
    padding-left: 1.4cap;
  }

  .footer__menuList li {
    line-height: 1.2;
    margin-bottom: 1.2rem;
  }

  .goToTop {
    top: unset;
    bottom: 4.5vw;
    right: 0;
  }

  p.copy {
    margin-inline: auto;
    width: 70%;
    max-width: 1400px;
    text-align: right;
    font-size: 1.4rem;
    padding-bottom: 40px;
  }

}

.goToTop:hover {
  bottom: 5.5vw;
}

/* -- works link -- */

#worksLink {
  & .grid-box {
    display: block;
    margin-bottom: 9vw;
    /* padding-inline: 2rem; */

    & .grid-item {
      & .grid-item__inner {
        height: 100%;
        width: 100%;

        &>a {
          position: relative;
          padding: 2rem 4rem;
          display: flex;
          height: 100%;
          width: 100%;
          transition: all 0.2s ease;
          align-items: center;

          &>.grid-item__txt {
            line-height: 1.5;
            font-size: 1.8rem;
            flex-grow: 1;
            margin-left: 0;
            justify-items: start;

            &>span {
              display: block;
              color: var(--color-main);
              font-size: 1.4rem;
            }
          }

          &>.grid-item__arrow {
            flex-shrink: 0;

            &>.arrow {
              margin: 0;
            }
          }
        }

        &>a:hover {
          background-color: var(--color-main);

          &>.grid-item__txt {
            flex-grow: 1;
            color: var(--color-white);

            &>span {
              display: block;
              color: var(--color-white);
            }
          }

          & .arrow {
            background-color: #ffffff;
            border-color: var(--color-main);

            &::before {
              background-color: var(--color-main);
            }

            &::after {
              /* background-color: #ffffff; */
              border-color: var(--color-main);
            }
          }
        }

      }

      &.__01 {
        border-top: 1px solid var(--color-main);
        border-left: 1px solid var(--color-main);
        border-right: 1px solid var(--color-main);
        border-bottom: 1px solid var(--color-main);

        &>.grid-item__inner>a>.grid-item__txt {
          margin-left: 0;
        }
      }

      &.__02 {
        border-left: 1px solid var(--color-main);
        border-right: 1px solid var(--color-main);
        border-bottom: 1px solid var(--color-main);
      }

      &.__03 {
        border-left: 1px solid var(--color-main);
        border-right: 1px solid var(--color-main);
        border-bottom: 1px solid var(--color-main);
      }

      &.__04 {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
        border-left: 1px solid var(--color-main);
        border-right: 1px solid var(--color-main);
        border-bottom: 1px solid var(--color-main);
      }

      &.__05 {
        border-left: 1px solid var(--color-main);
        border-right: 1px solid var(--color-main);
        border-bottom: 1px solid var(--color-main);
      }
    }
  }

  @media screen and (min-width: 999.8px) {
    & .grid-box {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(2, 1fr);
      padding-inline: 0;


      & .grid-item {
        & .grid-item__inner {

          align-self: center;

          &>a {
            position: relative;
            display: flex;
            height: 100%;
            width: 100%;
            transition: all 0.2s ease;
            align-items: center;

            &>.grid-item__txt {
              line-height: 1.5;
              font-size: 2.4rem;
              flex-grow: 1;

              &>span {
                display: block;
                color: var(--color-main);
                font-size: 1.6rem;
              }
            }

            &>.grid-item__arrow {
              flex-shrink: 0;

              &>.arrow {
                margin: 0;
              }
            }
          }

          &>a:hover {
            background-color: var(--color-main);

            &>.grid-item__txt {
              flex-grow: 1;
              color: var(--color-white);

              &>span {
                display: block;
                color: var(--color-white);
              }
            }

            & .arrow {
              background-color: #ffffff;
              border-color: var(--color-main);

              &::before {
                background-color: var(--color-main);
              }

              &::after {
                /* background-color: #ffffff; */
                border-color: var(--color-main);
              }
            }
          }

        }

        &.__01 {
          grid-column: 1 / 5;
          grid-row: 1 / 2;
          border-top: 1px solid var(--color-main);
          border-left: 1px solid var(--color-main);
          border-right: 1px solid var(--color-main);
          border-bottom: 1px solid var(--color-main);

          &>.grid-item__inner>a>.grid-item__txt {
            justify-items: center;
            text-align: center;
            margin-left: 32px;
          }
        }

        &.__02 {
          grid-column: 1 / 2;
          grid-row: 2 / 3;
          border-left: 1px solid var(--color-main);
          border-right: 1px solid var(--color-main);
          border-bottom: 1px solid var(--color-main);
        }

        &.__03 {
          grid-column: 2 / 3;
          grid-row: 2 / 3;
          border-left: none;
          border-right: 1px solid var(--color-main);
          border-bottom: 1px solid var(--color-main);
        }

        &.__04 {
          grid-column: 3 / 4;
          grid-row: 2 / 3;
          border-left: none;
          border-right: 1px solid var(--color-main);
          border-bottom: 1px solid var(--color-main);
        }

        &.__05 {
          grid-column: 4 / 5;
          grid-row: 2 / 3;
          border-left: none;
          border-right: 1px solid var(--color-main);
          border-bottom: 1px solid var(--color-main);
        }
      }
    }
  }
}