/********************************************************/
/* header */
/********************************************************/
#header.header {
  font-family:"kiwi Maru",'Noto Serif JP', serif;
}
.header {
  position: relative;
  width: 100%;
  padding: 1.5rem 2rem;
  background-color: var(--base-color);
  z-index: 300;
  @media screen and (max-width: 768px) {
    position: sticky;
  padding: 1.5rem;
  }
}

.header__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  width: 28%;
  max-width: 300px;
  @media screen and (max-width: 1024px) {
    width: 100%;
    max-width: 200px;
  }
}

.header__link__container {
  width: 85%;
  @media screen and (max-width: 1024px) {
    display: none;
  }
}

.header__sub__menu {
    margin-left: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: right;
}

.header__sub__list:first-child .header__sub__link {
  border-left: none;
}

.header__sub__link {
  font-size: 14px;
  padding-left:1rem;
  padding-right:1rem;
  border-left: solid 1px #000;
}

.header__main__menu {
  margin-top: 1rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: right;
  gap: 4%;
}

.header__main__link {
  font-size: 16px;
}

/* bottom btn */
.bottom__btn__contents {
  display: none;
  @media screen and (max-width: 640px) {
    display: block;
    position:fixed;
    z-index: 100;
    bottom: 0;
    left: 0;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.bottom__btn__contents .bottom__btn {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height:50px;
}
.bottom__btn .bottom__btn__link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%; /* 親要素と同じ高さに設定 */
  text-align: center;
  line-height: 1.5;
}
.bottom__btn:nth-of-type(1) .bottom__btn__link {
  background-color: #fff000;
  color: var(--main-color);
}

.bottom__btn:nth-of-type(2) .bottom__btn__link {
  background-color: var(--main-color);
  color: var(--base-color);
}
.bottom__btn:nth-of-type(3) .bottom__btn__link {
  background-color: #2A977F;
  color: var(--base-color);
}

.bottom__btn__link {
  font-family:"kiwi Maru",'Noto Serif JP', serif;
  padding: .5rem .2rem;
  text-align: center;
  font-size: 12px;
}




/********************************************************/
/* ハンバーガーメニュー  */
/********************************************************/
.hamburger {
  display: none;
  padding:0;
  @media screen and (max-width: 1024px) {
    display: block;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background-color: transparent;
    border-color: transparent;
    z-index: 5555;
    width: 50px;
  }
}

/* ハンバーガーメニューの線 */
.hamburger span {
  background-color: #000; /*ハンバーガーメニュークリック時の三本線の動きを遅延*/
  display: block;
  height: 1px;
  position: relative;
  -webkit-transition: ease 0.5s;
  transition: ease 0.5s;
  width: 100%;
}

.hamburger span:nth-child(1) {
  top: 0;
}

.hamburger span:nth-child(2) {
  margin: 12px 0;
}

.hambuger__text {
  font-size: 14px;
  /*絶対配置でテキストの位置を決める*/
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  /*アニメーションの指定*/
  transition: all .5s;
  /*ブロック要素にしてテキスト折り返しなし*/  
  display: block;
  white-space: nowrap;
}

.hambuger__text:nth-of-type(2) {
  opacity:0;/*透過0に*/
}

/* ハンバーガーメニュークリック後のスタイル */

.hamburger.active span:nth-child(1) {
  top: 5px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  top: -8px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

/*hoverするとテキストが入れ替わる設定*/
.hamburger.active  .hambuger__text:nth-of-type(1){
  opacity:0;/*透過0に*/
}

/*hoverするとテキストが入れ替わる設定*/
.hamburger.active  .hambuger__text:nth-of-type(2){
  opacity:1;/*不透明に*/
}




/********************************************************/
/* ドロワーメニュー */
/********************************************************/
.drawer__nav {
  transition: all .5s;
  visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0) !important;
  content: "";
  height: auto;
  right: 0;
  top:  4.5rem;
  position: fixed;
  transform: translate3d(0, 0, 0) !important;
  width: 100%;
  height: auto;
  z-index: 265;
  opacity: 0;
  background-color: var(--main-color);
  padding: 1rem 1rem 1.5rem 1rem;
}

.drawer__nav.active {
  transition: all .5s; /* トランジションにはopacityを使用 */
  visibility: visible;
  opacity: 1;
  height:calc(100% - 80px);
  overflow:auto;
}

/********************************************************/
/* アコーディオンメニュー */
/********************************************************/
/* 矢印を消す */
/* Chrome、Safari以外 */
summary {
  display: block;
}

/* Chrome、Safari */
summary::-webkit-details-marker {
  display: none;
}

/* オープン時にアニメーションを設定 */
details[open] {
  .drawer__accordion__contents {
    animation: fadeIn 0.5s ease;
  }
  .drawer__accordion__title::before {
    opacity: 0;
    display: none;
    /* opacityとdisplayを同時に指定するとtransitionが使用できる */
    transition: opacity 0.5s, display 0.5s allow-discrete;
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0; /* 透明 */
    transform: translateY(-10px); /* 上から表示 */
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.drawer__accordion {
  width: 100%;
}

.drawer__accordion__title {
  position: relative;
  color: var(--base-color);
  padding: 1rem .5rem;
  border-bottom: solid 1px var(--base-color);
}

.drawer__accordion__title::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  height: 20px;
  width: 2px;
  background-color: var(--base-color);
  opacity: 1;
  display: block;
}

.drawer__accordion__title::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  height: 2px;
  width: 20px;
  background-color: var(--base-color);
  font-size: 14px;
}

.drawer__accordion__contents {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: center;
}

.drawer__accordion__contents__item__text {
  margin-top: 0.5rem;
  color: var(--base-color);
  font-size: 12px;
}

.overlay.active {
  display: none;
}

.overlay.active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 250;
}

.drawer__btn__contents {
  margin-top: 1.5rem;
  width: 100%;
  position: relative;
}
.drawer__btn {
  width: 100%;
}
.drawer__btn:nth-of-type(1) .drawer__btn__link {
  background-color: #ffff00;
}
.drawer__btn:nth-of-type(2) .drawer__btn__link {
  margin-top: 1rem;
  background-color: var(--base-color);
}
.drawer__btn__link {
  text-align: center;
  padding: 1rem;
  color: var(--main-color);
  display: block;
}
.drawer__btn__link::after {
  content: '';
  display: inline-block;
  height: 20px;
  width: 20px;
  vertical-align: middle;
  margin-left: 2%;
  margin-bottom: .5rem;
  background-image: url(../images/green_arrow.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.drawer__menu {
  padding: 1rem;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 6%;
  column-gap: 1rem;
}

.drawer__menu__list__link {
  font-size: 14px;
  color: var(--base-color);
}

.drawer__sns__link-box {
  margin-top: 1rem;
  margin-left: auto;
  width: 100%;
  max-width: 50%;
  display: flex;
  gap: 13%;
}




/********************************************************/
/* test */
/********************************************************/
.test {
  position: relative;
  height: 200px;
  background-color: var(--base-color);
}

.top__scroll__btn {
  position: absolute;
  right: 1rem;
  bottom: 2rem;
}

.top__scroll__btn__link {
  position: relative;
  writing-mode: vertical-rl;
  color: var(--main-color);
  font-size: 20px;
}

.top__scroll__btn__link:visited {
  color: var(--main-color);
}

.green__vertical__arrow::before {
  content: '';
  position: absolute;
  top: -38px;
  left: 42%;
  transform: translateX(-50%);
  height: 27px;
  width: 1.3px;
  background-color: var(--main-color);
}

.green__vertical__arrow::after {
  content: '';
  position: absolute;
  top: -50px;
  left: 30%;
  transform: translateX(-50%);
  height: 15px;
  width: 9px;
  clip-path: polygon(100% 0, 0% 100%, 100% 85%);
  background-color: var(--main-color);
}



/********************************************************/
/* footer__nav */
/********************************************************/
.footer__main__section {
  background-color: var(--accent-color);
  padding-top: var(--sp-main-padding);
  padding-bottom: var(--sp-main-padding);
  @media screen and (max-width: 1024px) {
    padding-top: 0;
    padding-bottom: 0;
  }
}

.footer__main__nav {
  width: 100%;
  @media screen and (max-width: 1024px) {
    margin-right: calc(50% - 50vw);
    margin-left: calc(50% - 50vw);
    width: 110%;
  }
}

.footer__main__menu {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  @media screen and (max-width: 1024px) {
    
  }
}

.footer__main__list {
  width: 25%;
  &:first-child .footer__main__link {
    border-left: solid 1px #cccccc;
  }
  @media screen and (max-width: 1024px) {
    width: 50%;
    &:first-child .footer__main__link {
      border-left: none;
    }
  }
}

.footer__main__list:nth-of-type(3) .footer__main__link {
  @media screen and (max-width: 1024px) {
    border-top: solid 1px #cccccc;
  }
}

.footer__main__list:nth-of-type(4) .footer__main__link {
  @media screen and (max-width: 1024px) {
    border-top: solid 1px #cccccc;
  }
}

.footer__main__link {
  width: 100%;
  text-align: center;
  border-right: solid 1px #cccccc;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  @media screen and (max-width: 1024px) {
  padding-top: 1rem;
  padding-bottom: 1rem;
  }
}

.footer__main__link__img {
  width: 15%;
  max-width: 4rem;
  margin-inline: auto;
}

.footer__main__nav__title {
  position: relative;
  margin-top: 1rem;
  font-family:"kiwi Maru",'Noto Serif JP', serif!important;
  font-size: 22px;
  font-weight: 400;
    &::after {
      content: '';
      display: inline-block;
      height: 20px;
      width: 20px;
      vertical-align: middle;
      margin-left: 2%;
      margin-bottom: .5rem;
      background-image: url(../images/green_arrow.svg);
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
    }
    @media screen and (max-width: 1024px) {
      margin-top: .5rem;
      font-size: 14px;
      &::after {
      content: '';
      display: inline-block;
      height: 13px;
      width: 13px;
      vertical-align: middle;
      margin-left: 2%;
      margin-bottom: .5rem;
      background-image: url(../images/green_arrow.svg);
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
    }
    }
}

.footer__main__nav__subtitle {
  margin-top: 1rem;
  font-size: 20px;
  color: var(--main-color);
  font-family:"kiwi Maru",'Noto Serif JP', serif!important;
  font-weight: 400;
    @media screen and (max-width: 1024px) {
      margin-top: .5rem;
      font-size: 12px;
    }
}

.footer__main__nav__subtitle:visited {
  color: var(--main-color);
}

/********************************************************/
/* footer */
/********************************************************/
.footer {
  width: 100%;
  padding-top: var(--main-padding);
  padding-bottom: var(--main-padding);
  background-color: var(--main-color);
  @media screen and (max-width: 768px) {
    padding-top: var(--sp-main-padding);
    padding-bottom: var(--sp-main-padding);
  }
}

.footer__top__container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--main-margin);
  @media screen and (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: var(--sp-main-margin);
  }
}

.footer__top__btn__link {
  position: relative;
  padding: 2rem;
  border: 1px solid #fff;
  color: #fff!important;
  text-align: center;
    &::after {
      content: '';
      display: inline-block;
      height: 20px;
      width: 20px;
      vertical-align: middle;
      margin-left: 2%;
      margin-bottom: .5rem;
      background-image: url(../images/white_arrow.svg);
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
  }
  @media screen and (max-width: 768px) {
    padding: 1rem;
      &::after {
      height: 14px;
      width: 14px;
    }
  }
}

.footer__top__btn__link:visited {
  color: #fff;
}

.footer__center__container {
  width: 100%;
  padding-top: var(--main-margin);
  padding-bottom: var(--main-margin);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  @media screen and (max-width: 768px) {
    padding-top: var(--sp-main-margin);
    padding-bottom: var(--sp-main-margin);
  }
}

.footer__center__container__left__contents {
  width: 50%;
  @media screen and (max-width: 768px) {
    width: 100%;
  }
}

.footer__logo {
  width: 100%;
  max-width: 385px;
  @media screen and (max-width: 768px) {
    max-width: 250px;
  }
}

.footer__address {
  margin-top: .5rem;
  font-style: normal;
  font-size: 14px;
  color: var(--text-white);
  @media screen and (max-width: 768px) {
    font-size: 12px;
  }
}

.footer__tel__link-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  @media screen and (max-width: 768px) {
    gap: .5rem;
  }
}

.footer__tel__link {
  color: var(--text-white);
  font-size: 14px;
  color:#fff!important;
  @media screen and (max-width: 768px) {
    font-size: 12px;
  }
}

.footer__tel__link:visited{
  color: var(--text-white);
}

.footer__center__container__right__contents {
  width: 50%;
  @media screen and (max-width: 768px) {
    margin-top: 1.5rem;
    width: 100%;
  }
}

.footer__sns__link-box {
  margin-left: auto;
  width: 100%;
  max-width: 165px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 1rem;
  @media screen and (max-width: 768px) {
    gap: 14%;
  }
}

.copyright {
  margin-top: 5rem;
  text-align: right;
  display: block;
  font-size: 14px;
  color: var(--text-white);
  @media screen and (max-width: 768px) {
    margin-top: 1.5rem;
    font-size: 10px;
  }
}

.footer__bottom__container {
  width: 100%;
  margin-top: var(--main-margin);
  padding-top: var(--main-padding);
  width: 100%;
  border-top: 1px solid #fff;
  @media screen and (max-width: 768px) {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
}

.footer__bottom__container__nav {
  color: var(--text-white);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 5%;
  @media screen and (max-width: 768px) {
    display: none;
  }
}

.footer__bottom__container__menu {

}

.footer__bottom__container__menu__title {
  margin-bottom: 1rem;
  font-size: 18px;
}

.footer__bottom__container__link {
    color: var(--text-white);
    font-size: 14px;
}

.footer__bottom__container__link:visited {
    color: var(--text-white);
}

.footer__bottom__container__title__link {
    color: var(--text-white);
    font-size: 18px;
}

.footer__bottom__container__title__link:visited {
    color: var(--text-white);
}

/* sitemap */
/********************************************************/
/* アコーディオンメニュー */
/********************************************************/
/* 矢印を消す */
/* Chrome、Safari以外 */
summary {
  display: block;
}

/* Chrome、Safari */
summary::-webkit-details-marker {
  display: none;
}

/* オープン時にアニメーションを設定 */
details[open] {
  .footer__accordion__contents {
    animation: fadeIn 0.5s ease;
  }
  .footer__accordion__title::before {
    opacity: 0;
    display: none;
    /* opacityとdisplayを同時に指定するとtransitionが使用できる */
    transition: opacity 0.5s, display 0.5s allow-discrete;
  }
}
@keyframes fadeIn {
  0% {
    opacity: 0; /* 透明 */
    transform: translateY(-10px); /* 上から表示 */
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.footer__accordion {
  display: none;
  @media screen and (max-width: 768px) {
    display: block;
    margin-top: 0rem;
    margin-bottom: 0rem;
    width: 100%;
  }
}

.footer__accordion__title {
  position: relative;
  color: var(--base-color);
  padding: 1rem .5rem;
  border-bottom: solid 1px var(--base-color);
}

.footer__accordion__title::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 11px;
  transform: translateY(-50%);
  height: 20px;
  width: 2px;
  background-color: var(--base-color);
  opacity: 1;
  display: block;
}

.footer__accordion__title::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
  height: 2px;
  width: 20px;
  background-color: var(--base-color);
  font-size: 14px;
}

.footer__accordion__contents {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: center;
}

.footer__accordion__contents__item__text {
  margin-top: 0.5rem;
  color: var(--base-color);
  font-size: 12px;
}
.footer__menu {
  padding: 1rem;
  width: 100%;
  display: none;
  grid-template-columns: 1fr 1fr;
  row-gap: 6%;
  column-gap: 1rem;
  @media screen and (max-width: 768px) {
    display: grid;
  }
}

.footer__menu__list__link {
  font-size: 14px;
  color: var(--base-color)!important;
}
