/* ----------------------------------------------
共通
----------------------------------------------- */

:root {
  --primaryColor: #2a4297;
  --font-EN: "Raleway", sans-serif;
}

body {
  font-family: "Noto Sans JP", sans-serif;
  color: #000;
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 1.6;
  font-weight: 500;
}

/* ----------------------------------------------
PC・SPの切り替え
----------------------------------------------- */

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

  .-sp {
    display: none;
  }
}

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

  .-sp {
    display: block;
  }
}

/* ----------------------------------------------
フェードイン
----------------------------------------------- */

.js-fadeIn {
  opacity: 0;
  transition: all 2s; 
}

.fadeIn {
  opacity: 1;
}

/* ----------------------------------------------
レイアウト
----------------------------------------------- */

.l-container {
  width: 100%;
  max-width: 990px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ----------------------------------------------
共通パーツ
----------------------------------------------- */

/* header
----------------------------------------------- */
.c-header {
  position: fixed;
  top: 0;
  left: 0;
  height: 120px;
  width: 100%;
  z-index: 999;
  background-color: rgb(256, 256, 256, 0.5);
}

.c-header__logo {
  width: min(18.18vw, 200px);
}

.c-header__logo a {
  display: flex;
}

.c-header__logo img {
  width: 100%;
  height: auto;
}

.c-drawer {
  display: none;
}

.c-globalNav__item > a {
  display: block;
  font-weight: 600;
  position: relative;
}

@media screen and (min-width: 768px) {
  .c-header {
    padding: 20px 4.9%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .c-header__drawerWrap {
    margin-left: auto;
  }

  .c-globalNav {
    display: flex;
    gap: clamp(0.625rem, -0.486rem + 2.31vw, 1.25rem);
  }

  .c-globalNav__list,
  .c-globalNav__snsList {
    display: flex;
    gap: clamp(0.625rem, -0.486rem + 2.31vw, 1.25rem);
    justify-content: flex-end;
  }

  .c-globalNav__list .c-globalNav__item,
  .c-globalNav__snsList .c-globalNav__item {
    display: flex;
    align-items: center;
  }

  .c-globalNav__snsList .c-globalNav__item.-icon {
    width: 30px;
  }

  .c-globalNav__list .c-globalNav__item > a{
    padding-block: 4px;
    border-bottom: 1px solid transparent;
  }

  .c-globalNav__list .c-globalNav__item > a,
  .c-globalNav__snsList .c-globalNav__item > a {
    transition: 0.4s ease;
  }

  .c-globalNav__list .c-globalNav__item > a:hover{
    color: var(--primaryColor);
    border-bottom: 1px solid var(--primaryColor);
  }

  .c-globalNav__snsList .c-globalNav__item > a:hover {
    opacity: 0.6;
  }
}

@media screen and (max-width: 767px) {
  body.open {
    overflow: hidden;
  }

  .c-header {
    height: 60px;
    padding: 20px;
    display: block;
    transition: 0.5s ease-in-out;
  }

  body.open .c-header {
    background-color: rgb(256, 256, 256, 1);
  }

  .c-header__drawerWrap {
    position: fixed;
    width: 100%;
    height: 100dvh;
    top: 60px;
    right: 0;

    padding: 80px 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
  }

  .c-globalNav {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .c-globalNav__snsList {
    display: flex;
    gap: 20px;
    justify-content: center;
  }

  .c-header__logo {
    width: 160px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  .c-header__logo a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .c-header__logo img {
    width: 100%;
  }

  .c-globalNav {
    width: 100%;
  }

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

  .c-globalNav__list .c-globalNav__item > a {
    font-size: 1rem;
    display: inline;
  }

  .c-globalNav__snsList .c-globalNav__item.-icon {
    width: 25px;
  }

  /* ハンバーガー */
  .c-drawer.open .navbar_toggle_icon:nth-child(1) {
    top: 32px;
    left: 20px;
  }

  .c-drawer.open .navbar_toggle_icon:nth-child(2) {
    top: 25px;
    left: 20px;
  }

  .c-header__drawerWrap.open {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
    background-color: rgb(256, 256, 256, 1);
  }

  .c-drawer {
    height: 100px;
    display: block;
    position: absolute;
    top: 0;
    right: 0;
  }

  .navbar_toggle {
    position: absolute;
    z-index: 100;
    height: 60px;
    right: 20px;
    top: 0;
  }

  .navbar_toggle_icon {
    position: relative;
    display: block;
    height: 2px;
    width: 24px;
    -webkit-transition: ease 0.4s;
    transition: ease 0.4s;
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
    background: var(--primaryColor);
  }

  .navbar_toggle_icon:nth-child(1) {
    top: calc(50% + 8px);
    transition: 0.4s;
  }

  .navbar_toggle_icon:nth-child(2) {
    transition: 0.4s;
  }

  .navbar_toggle_icon:nth-child(3) {
    top: calc(50% - 8px);
    transition: 0.4s;
    opacity: 1;
  }

  .c-drawer.open .navbar_toggle_icon:nth-child(1) {
    top: 50%;
    left: 0px;
    transform: rotate(45deg);
  }

  .c-drawer.open .navbar_toggle_icon:nth-child(2) {
    top: calc(50% - 8px);
    left: 0px;
    margin-top: 6px;
    transform: rotate(-45deg);
  }

  .c-drawer.open .navbar_toggle_icon:nth-child(3) {
    opacity: 0;
  }
}

/* ----------------------------------------------
footer
----------------------------------------------- */

.c-footer {
  margin-top: 100px;
  border-top: #dcdddd 1px solid;
}

.c-footer__flexBox {
  display: flex;
  justify-content: space-between;
  padding-block: 40px;
}

.c-footer__leftBox,
.c-footer__rightBox {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.c-footer__logo {
  width: min(18.18vw, 270px);
}

.c-footer__leftBox {
  gap: 60px;
}

.c-footer__iconBox {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.c-footer__icon {
  width: 25px;
  -webkit-transition: ease 0.4s;
  transition: ease 0.4s;
}

.c-footer__rightBox {
  align-items: end;
}

.c-footerNav__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-footerNav__list + .c-footerNav__list {
  margin-top: 24px;
}

.c-footerNav__item {
  -webkit-transition: ease 0.4s;
  transition: ease 0.4s;
}

.c-footer__copyright {
  font-size: 10px;
  text-align: end;
}

@media screen and (min-width: 768px) {
  .c-footer__icon:hover,
  .c-footerNav__item:hover {
    opacity: 0.6;
  }
}

@media screen and (max-width: 767px) {
  .c-footer__flexBox {
    flex-direction: column;
    gap: 40px;
  }

  .c-footer__leftBox,
  .c-footer__rightBox {
    align-items: center;
    gap: 20px;
  }

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

  .c-footer__iconBox {
    justify-content: center;
  }

  .c-footerNav__list {
    align-items: center;
  }

  .c-footer__logo {
    width: 160px;
  }
}

/* ----------------------------------------------
見出し
----------------------------------------------- */

.c-heading {
  position: relative;
  padding: 1rem 0;
  color: var(--primaryColor);
  font-size: 1.5rem;
  text-align: center;
  font-weight: 700;
}

.c-heading::before {
  position: absolute;
  content: "";
  width: 70px;
  height: 70px;

  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url(../img/logo-mark.svg);
}

@media screen and (max-width: 767px) {
  .c-heading {
    font-size: 1.25rem;
  }
}

/* ----------------------------------------------
ボタン
----------------------------------------------- */
.c-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 350px);

  text-align: center;
  font-weight: 500;
  color: #fff;
  background-color: var(--primaryColor);
  border: var(--primaryColor) 1px solid;

  margin: 0 auto;

  -webkit-transition: ease 0.4s;
  transition: ease 0.4s;

  position: relative;
  cursor: pointer;
}

.c-btn > a,
.c-btn > input,
.c-btn > p{
  width: 100%;
  padding: 16px 0;
}

.c-btn:not(.-back)::after{
  content: '';
  width: 10px;
  height: 10px;
  border: 0;
  border-top: solid 2px #fff;
  border-right: solid 2px #fff;

  position: absolute;
  top: 50%;
  right: 1rem;
  transform: rotate(45deg) translateX(-50%);
}

.c-btn.-back{
  background-color: rgb(42, 66, 151, 0.1);
  color: var(--primaryColor);
}

.c-btn.-back::before{
  content: '';
  width: 10px;
  height: 10px;
  border: 0;
  border-top: solid 2px var(--primaryColor);
  border-left: solid 2px var(--primaryColor);

  position: absolute;
  top: 50%;
  left: 1rem;
  transform: rotate(-45deg) translateX(50%);
}

@media screen and (min-width: 768px) {
  .c-btn:hover {
    color: var(--primaryColor);
    background-color: #fff;
  }

  .c-btn:not(.-back):hover::after{
  border-top: solid 2px var(--primaryColor);
  border-right: solid 2px var(--primaryColor);
}
}


/* ----------------------------------------------
バナー
----------------------------------------------- */
.c-linkBanner {
  display: block;
  -webkit-transition: ease 0.4s;
  transition: ease 0.4s;
}

@media screen and (min-width: 768px) {
  .c-linkBanner:hover {
    color: #fff;
    opacity: 0.6;
  }
}
