/* 全ページ共通 */

/* レスポンシブ */
.sp {
  display: none;
}

@media screen and (max-width: 500px) {
  .sp {
    display: block;
  }
  .pc {
    display: none;
  }
}

/* テキストスタイル */
.font-xl {
  font-size: 36px;
  line-height: 1.33;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.font-l {
  font-size: 30px;
  line-height: 1.33;
  letter-spacing: 0.05em;
  font-weight: 500;
}

.font-md {
  font-size: 24px;
  line-height: 1.33;
}

.font-sm {
  font-size: 20px;
  line-height: 1.33;
}

.font-xs {
  font-size: 16px;
  line-height: 1.8;
  font-weight: 500;
}

@media screen and (max-width: 500px) {
  .font-xl {
    font-size: 30px;
  }

  .font-l {
    font-size: 24px;
  }

  .font-md {
    font-size: 20px;
  }

  .font-sm {
    font-size: 18px;
  }

  .font-xs {
    font-size: 14px;
  }
}

/* レイアウト */
.main-contents {
  max-width: 1012px;
  margin: auto;
}

@media screen and (max-width: 1040px) {
  .padding-x {
    padding: 0 16px;
  }
}

section {
  margin-top: 60px;
  padding: 60px 0;
}

/* コンポーネント */
.btn {
  cursor: pointer;
  display: inline-block;
  width: 290px;
  height: 56px;
  background: #122344;
  position: relative;
}

.btn > p {
  color: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 0.05em;
}

/* ヘッダー */
header {
  background: white;
  width: 100%;
  height: 80px;
  position: fixed;
  z-index: 10;
}

.header__inner {
  height: 100%;
  padding-left: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__right {
  height: 100%;
  width: 80px;
  position: relative;
  background: #122344;
  cursor: pointer;
}

.header__right > img {
  position: absolute;
  width: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@media screen and (max-width: 500px) {
  header {
    height: 70px;
  }

  .header__inner {
    padding-left: 20px;
  }

  .header__right {
    width: 70px;
  }
}

/* ナビゲーション */
.navigation {
  display: none;
  position: fixed;
  z-index: 11;
  top: 0;
  left: 0;
  background: #122344;
  height: 100vh;
  width: 100%;
}

.navigation__open {
  display: block;
}

.navigation__inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.navigation__top {
  height: 80px;
  padding-left: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navigation__right {
  cursor: pointer;
  height: 80px;
  width: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.navigation__main {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.navigation__list {
  display: flex;
  text-align: center;
  flex-direction: column;
  gap: 20px;
}

.navigation__item a {
  color: white;
}

@media screen and (max-width: 500px) {
  .navigation__top {
    height: 70px;
  }

  .navigation__right {
    height: 70px;
    width:70px;
  }
}

/* フッター */
footer {
  background: #f7f7f7;
  padding-top: 40px;
  padding-bottom: 60px;
  position: relative;
  height: 415px;
}

.footer__logo > img {
  width: 250px;
}

.footer__list {
  width: 70%;
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 30px;
  column-gap: 48px;
}

.footer__list a {
  color: #3b4042;
  font-weight: 700;
}

.footer__copy {
  position: absolute;
  color: #3b4042;
  font-size: 12px;
  right: 30px;
  bottom: 60px;
}

@media screen and (max-width: 800px) {
  .footer__list {
    width: 100%;
    row-gap: 16px;
    column-gap: 20px;
  }

  .footer__copy {
    right: 20px;
    bottom: 20px;
  }
}

/* ページトップリンク */
.pagetop {
  cursor: pointer;
  position: fixed;
  right: 30px;
  bottom: 60px;
  width: 180px;
  height: 56px;
  background-color: #122344;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.05em;
  opacity: 0;
  z-index: 3;
}

#page-top.LeftMove {
  animation: LeftAnime 0.5s forwards;
}

@keyframes LeftAnime {
  from {
    opacity: 0;
    transform: translateX(250px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#page-top.RightMove {
  animation: RightAnime 0.5s forwards;
}
@keyframes RightAnime {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 1;
    transform: translateX(250px);
  }
}

@media screen and (max-width: 500px) {
  .pagetop {
    right: 16px;
    bottom: 20px;
  }
}