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

body {
  position: relative;
  overflow-x: hidden;
}

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

.c-section__inner {
  max-width: 960px;
  margin: 0 auto;
}

@media (max-width: 869px) {
  .c-section__inner {
    max-width: 640px;
  }
}



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

.l-header {
  padding: 9px 12px;
  width: 100%;
  height: 64px;
}


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

.p-header-site-branding__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.p-header-site-branding__title h1 {
  font-size: 1rem;
  font-weight: normal;
}

.p-header-button {
  display: flex;
  gap: 12px;
}


.p-header-button--contact {
}

.p-header-button--contact a:hover {
  opacity: 0.8;
}


@media (max-width: 991px) {
  .l-header {
    height: 60px;
  }
  .p-header-site-branding__title-logo {
    max-width: 210px;
  }
}
  
@media (max-width: 869px) {
  .p-header-site-branding__title h1 {
    display: none;
  }
}

@media (min-width: 640px) {
  .p-header-button--registration {
    display: none;
  }
}

@media (max-width: 639px) {
  .l-header {
    position: fixed;
    z-index: 200;
    height: 54px;
    background-color: #ffffff;
  }
  .p-header-site-branding__title-logo {
    max-width: 180px;
  }
  .p-header-button {
    /*margin-top: 8px;*/
  }
}

@media (max-width: 369px) {
  .p-header-site-branding__title-logo {
    max-width: 170px;
  }
  .p-header-button {
    gap: 6px;
    max-width: 150px;
  }
}









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

.l-contents {
  position: relative;
  padding-bottom: 48px;
  background-image: url(../img/background01.jpg);
  background-size: 300px;
  overflow: hidden;
}

.l-contents__main {
  margin-top: -130px;
}

@media (max-width: 1199px) {
  .l-contents__main {
  }
}

@media (max-width: 1023px) {
  .l-contents__main {
  }
}

@media (max-width: 991px) {
  .l-contents__main {
    margin-top: -110px;
  }
}
@media (max-width: 767px) {
  .l-contents__main {
    margin-top: -90px;
  }
}

@media (max-width: 639px) {
  .l-contents {
    padding-bottom: 90px;
    background-image: none;
  }
  .l-contents__main {
    margin-top: 0;
  }
}


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

.l-footer {
  position: relative;
}


.c-footer-decoration {
  position: relative;
}

.c-footer-decoration figure {
  content: "";
  display: inline-block;
  position: absolute;
}

.c-footer-decoration figure:nth-of-type(1) {
  bottom: 21px;
  left: 36px;
  width: 205px;
  height: 97px;
}

.c-footer-decoration figure:nth-of-type(2) {
  bottom: -36px;
  right: -100px;
  width: 88px;
  height: 118px;
}

.l-footer__contents {
  padding: 9px 12px;
  height: 116px;
}

.l-footer__contents-inner {
  margin: 0 auto;
  max-width: 960px;
}

.l-footer__contents .c-container {
  display: flex;
  gap: 24px;
}

.p-footer-navigation {
  font-size: 1.2rem;
}

.p-footer-navigation ul {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-left: 0;
  list-style-type: none;
}

.p-footer-navigation ul li a {
  color: #000000;
}

.p-footer-navigation ul li a:hover {
  text-decoration: none;
}

.p-footer__site-branding {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
}

.p-footer__site-branding p {
  margin-top: 0;
}

.c-copyright {
  padding: 4px 6px;
  height: 36px;
  text-align: center;
  color: var(--text-base-color);
  background-color: rgba(92,199,0,0.2);
}

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

@media (min-width: 870px) {
  .c-footer-decoration figure:nth-of-type(3) {
    display: none;
  }
}

@media (max-width: 869px) {
  .c-footer-decoration figure:nth-of-type(1),
  .c-footer-decoration figure:nth-of-type(2) {
    display: none;
  }
  .c-footer-decoration figure:nth-of-type(3) {
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
  }
}


@media (max-width: 639px) {
  .l-footer {
    border: solid 1px #d0cece;
  }
  .l-footer__contents {
    height: auto;
    padding: 6px 12px 12px;
  }
  .p-footer__site-branding {
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    font-size: 1rem;
  }
  .p-footer-navigation {
    width: 100%;
    font-size: 1.2rem;
  }
  .p-footer-navigation__list {
    justify-content: center;
  }
  .c-copyright {
    background-color: #d4ebc0;
  }
}




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

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

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

.p-page-top a {
  transition: 0.2s ease;
}

.p-page-top a:hover {
  opacity: 0.8;
  transition: 0.2s ease;
}
