@charset "utf-8";

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

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

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

ul {
  list-style: none;
}


/* -------------------------------------------------------
共通
------------------------------------------------------- */
body {
  color: #303030;
  font-family: "futura-pt", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.4rem;
  letter-spacing: 0.1rem;
  background-color: #efeff0;
}

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


/* -------------------------------------------------------
header
------------------------------------------------------- */
.header {
  background-color: #fff;
  width: 100%;
  height: 85px;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10;
}

.site-title {
  width: calc(100%/3);
  line-height: 1;
}

.site-title a {
  display: block;
}

.hamburger-menu {
  width: calc(100%/3);
}

.drawer_hidden,
.drawer_open {
  /* PC版ではいらないので非表示に */
  display: none;
}

.site-menu ul {
  display: flex;
  justify-content: center;
  font-size: 2rem;
}

.site-menu li {
  margin: 0 15px;
}

.sns-links {
  width: calc(100%/3);
  display: flex;
  justify-content: flex-end;
}

.sns-links li:first-of-type {
  margin-right: 20px;
}

.header a {
  transition: 0.3s;
}

.header a:hover {
  opacity: 0.7;
}


/* -------------------------------------------------------
footer
------------------------------------------------------- */
.footer {
  background-color: #fff;
}

.copyright {
  text-align: center;
  font-size: 1.2rem;
  padding: 10px 0;
}


/* -------------------------------------------------------
mobile用
------------------------------------------------------- */
@media screen and (max-width: 1040px) {
  body {
    font-size: 1.2rem;
  }


  /* -------------------------------------
  header
  ------------------------------------- */
  .site-title {
    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: #303030;
    /* クリックされた時に回転する動作をゆっくりになるように指定 */
    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(48, 48, 48, 0.8);
    position: fixed;
    top: 0;
    /* 「right: 100%」で画面の左側に飛ばす */
    right: 100%;
  }
  
  .site-menu ul {
    flex-direction: column;
    position: fixed;
    top: 100px;
    /* 「right: 100%」で画面の左側に飛ばす */
    right: 100%;
    /* 左から右に移動してくる時の動作をゆっくりにさせる */
    transition: 0.7s;
    font-size: 2.5rem;
  }
  
  .site-menu li {
    margin: 18px 0;
    /* liの:hover時の動作をゆっくりに */
    transition: 0.7s;
  }

  .site-menu li:first-of-type {
    margin-top: 0;
  }
  
  .site-menu a {
    color: #fff;
  }
  
  /* クリックされたら画面に入れる&線の色を白に変更 */
  #drawer_input:checked ~ .site-menu {
    right: 0;
  }
  
  #drawer_input:checked ~ .site-menu ul {
    right: calc(100% - 190px);
  }
  
  #drawer_input:checked ~ .drawer_open span {
    background-color: #fff;
  }
}