@charset "utf-8";

/* -------------------------------------------------------
デフォルトのスタイルを打ち消す
------------------------------------------------------- */
*,::after,::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* 計算しやすいよう、文字サイズをデフォルトの16pxの62.5%=10pxに設定 */
  font-size: 62.5%;
}

a {
  text-decoration: none;
  color: #000;
}

ul {
  list-style: none;
}


/* -------------------------------------------------------
共通
------------------------------------------------------- */
body {
  color: #000;
  background-color: #fff;
  font-size: 1.2rem;
  position: relative;
  min-height: 100vh;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

.wrapper {
  max-width: 1360px;
  padding: 0 40px;
  margin: 0 auto;
}


/* -------------------------------------------------------
header
------------------------------------------------------- */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background-color: #fff;
  z-index: 10;
  height: 80px;
}

.site-title a {
  display: block;
}

.site-title img {
  width: 180px;
}


/* -------------------------------------
ハンバーガーメニュー
------------------------------------- */
.drawer_hidden {
  /* チェックボックスを非表示にする */
  display: none;
}

/* ハンバーガーアイコンの設置スペースを確保 */
.drawer_open {
  /* labelタグは元々インライン要素なので大きさを指定するために「display: block」 */
  display: block;
  height: 30px;
  width: 30px;
  /* 子要素であるspan(2本の線）の位置を指定するための「position: relative」 */
  position: relative;
  /* 「z-index: 100」で重なり順を 一番上にする */
  z-index: 100;
  cursor: pointer;
}

/* 2個のspanタグを使って2本の線を作る */
.drawer_open span {
  /* spanタグは元々インライン要素なので大きさを指定するために「display: block」 */
  display: block;
  height: 2px;
  width: 30px;
  border-radius: 2px;
  background-color: #000;
  /* クリックされた時に回転する動作をゆっくりになるように指定 */
  transition: 0.5s;
  position: absolute;
}

/* 上の線の位置を指定 */
.drawer_open span:first-of-type {
  top: 10px;
}

/* 下の線の位置を指定 */
.drawer_open span:last-of-type {
  bottom: 10px;
}

/* アイコンがクリックされたらアイコンが×印になるように2本の線を回転 */
#drawer_input:checked ~ .drawer_open span:first-of-type {
  transform: rotate(-45deg);
  top: 14px;
}

#drawer_input:checked ~ .drawer_open span:last-of-type {
  transform: rotate(45deg);
  bottom: 14px;
}

.site-menu {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  position: fixed;
  top: 0;
  /* 「right: 100%」で画面の左側に飛ばす */
  right: 100%;
}

.site-menu ul {
  position: fixed;
  top: 36px;
  /* 「right: 100%」で画面の左側に飛ばす */
  right: 100%;
  /* 左から右に移動してくる時の動作をゆっくりにさせる */
  transition: 0.7s;
}

.site-menu li {
  font-size: 1.4rem;
  margin-bottom: 14px;
  /* liの:hover時の動作をゆっくりに */
  transition: 0.7s;
}

.site-menu li:hover {
  opacity: 0.7;
}

.site-menu a {
  color: #fff;
}

/* クリックされたら画面に入れる&線の色を白に変更 */
#drawer_input:checked ~ .site-menu {
  right: 0;
}

#drawer_input:checked ~ .site-menu ul {
  right: calc(100% - 130px);
}

#drawer_input:checked ~ .drawer_open span {
  background-color: #fff;
}



/* -------------------------------------------------------
footer
------------------------------------------------------- */
#footer {
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
}

.sns-links {
  display: flex;
}

.sns-links li {
  margin-right: 30px;
}

.sns-links li:hover {
  opacity: 0.7;
}

.copyright {
  font-size: 1rem;
}


/* -------------------------------------------------------
mobile用
------------------------------------------------------- */
@media screen and (max-width: 900px) {
  /* -------------------------------------
  footer
  ------------------------------------- */
  #footer {
    flex-direction: column;
  }

  .sns-links {
    margin-bottom: 5px;
  }
}