/*========================================
共通
========================================*/

.c-container {
  max-width: 900px;
  margin: 0 auto;
}

.c-section2__inner {
  max-width: 900px;
  margin: 0 auto;
}



/*========================================
ヘッダー
========================================*/

.l-header {
  position: fixed;
  top: 0;
  z-index: 200;
  padding: 0 12px;
  width: 100%;
  background-color: #ffffff;
  box-shadow:0 1px 6px 1px rgba(0,0,0,0.3);
  overflow: hidden;
}

.l-header__contents .c-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.c-site-branding__title {
  order: 2;
}

.p-header-sub-navigation {
  order: 3;
}

.p-header-sub-navigation__list {
  display: flex;
  gap: 12px;
  padding-left: 0;
  font-size: 1.2rem;
  list-style-type: none;
}

.p-hamburger-button {
  order: 1;
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.p-hamburger-button__bars {
  position: relative;
  top: 10px;
  display: flex;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: transparent;
  border: none;
}

.p-hamburger-button__bars::after {
  content: "MENU";
  position: relative;
  top: 32px;
  color: #000000;
  font-size: 1rem;
}

.p-hamburger-button__bar {
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 3px;
  background-color: #000000;
  border-radius: 1px;
  transition: 0.2s ease-out;
}

.p-hamburger-button__bar:nth-of-type(1) {
  margin-top: 6px;
}

.p-hamburger-button__bar:nth-of-type(2) {
  margin-top: 16px;
}

.p-hamburger-button__bar:nth-of-type(3) {
  margin-top: 26px;
}

.p-hamburger-button__bars.active .p-hamburger-button__bar:nth-of-type(1) {
  transform: translateY(8px) rotate(45deg);
	transition: 0.2s ease-out;
}

.p-hamburger-button__bars.active .p-hamburger-button__bar:nth-of-type(2) {
  opacity: 0;
  transition: none;
}

.p-hamburger-button__bars.active .p-hamburger-button__bar:nth-of-type(3) {
  transform: translateY(-12px) rotate(-45deg);
	transition: 0.2s ease-out;
}

@media (min-width: 640px) {
  .p-hamburger-button {
    display: none;
  }
  .p-drawer-navigation {
    display: none;
  }
}

@media (max-width: 639px) {
  .l-header__contents .c-container {
    gap: 12px;
    height: 64px;
  }
  .c-site-branding__title img {
    height: 48px;
    object-fit: contain
  }
  .p-header-sub-navigation {
    display: none;
  }
}



/*========================================
ドロワーナビゲーション
========================================*/

.p-drawer-navigation {
  position: fixed;
  top: 64px;
  z-index: 100;
  transform: translateX(-100%);
  padding: 24px;
  width: 90%;
  height: 100%;
  background: url("../img/decoration_background05.png"),linear-gradient(90deg,#00aadd,#003175);
  background-repeat: no-repeat;
  background-size: 220px auto,100% 100%;
  background-position: calc(36px) calc(100% - 50px),center top;
  transition-duration: 0.3s;
}

.p-drawer-navigation.open {
  transform: translateX(0);
  transition-duration: 0.5s;
}

.p-drawer-menu__item + .p-drawer-menu__item {
  margin-top: 12px;
}

.p-drawer-menu__item a {
  color: #ffffff;
  text-decoration: none;
}



/*========================================
メインコンテンツ
========================================*/

.l-contents {
  margin-top: 76px;
  overflow: hidden;
}

@media (max-width: 991px) {
  .l-contents {
    margin-top: 66px;
  }
}

@media (max-width: 767px) {
  .l-contents {
    margin-top: 58px;
  }
}

@media (max-width: 639px) {
  .l-contents {
    margin-top: 64px;
  }
}




/*========================================
フッター
========================================*/

.l-footer {
  padding-bottom: 24px;
  background: linear-gradient(90deg,#00aadd,#003175);
}

.l-footer__contents {
  padding: 36px 12px 24px;
}

.l-footer__contents .c-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.l-footer__site-branding {
  font-size: 1.6rem;
}

.p-footer-navigation {
  width: 70%;
  font-size: 1.4rem;
}

.p-footer-navigation__list {
  display: flex;
  justify-content: center;
  line-height: 1.1;
}

.p-footer-navigation__list li + li {
  margin-left: 6px;
  padding-left: 6px;
  border-left: solid 1px #ffffff;;
}

.p-footer-navigation__list li a {
  color: #ffffff;
  text-decoration: none;
}

.p-footer-navigation__list li a:hover {
  text-decoration: underline;
}

.c-copyright {
  padding-bottom: 6px;
  color: #ffffff;
  text-align: center;
}

.c-copyright small {
  font-size: 1.2rem;
  line-height: 1;
}

@media (max-width: 639px) {
  .l-footer__contents {
    padding: 24px 12px;
  }
  .l-footer__contents .c-container {
    flex-direction: column;
    align-items: center;
  }
  .l-footer__site-branding {
    width: 100%;
    font-size: 1.2rem;
  }
  .p-footer-navigation {
    width: 100%;
    font-size: 1.4rem;
  }
  .p-footer-navigation__list {
    justify-content: center;
  }
}



/*========================================
ページトップへ戻る
========================================*/

.p-page-top {
  position: fixed;
  bottom: 24px;
  right: 48px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s;
}

.p-page-top.scroll-page-top {
  opacity: 1;
  visibility: visible;
  transition: all 0.5s;
}

@media (max-width: 639px) {
  .p-page-top {
    bottom: 12px;
    right: 12px;
  }
}
