@charset "utf-8";

/* // <uniquifier>: Use a unique and descriptive class name
// <weight>: Use a value from 200 to 900 */

body {
    font-family: 'Source Sans 3', sans-serif;
    margin: 0;
    padding: 0;
    color: #050507;
    font-weight: 300;
}

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

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

li {
    list-style: none;
}


/* h1タグ用 */

.site-title {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 6.25rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    margin: 100px 0;
}

/* h2タグ用 */

.section-title {
    font-family: 'Source Sans 3', sans-serif;
    border-bottom: solid 1px #fff;
    display: inline-block;
    font-size: 3.75rem;
    font-weight: 300;
    letter-spacing: 0.03em;
    margin-bottom: 45px;
}

/* コンテンツ幅を設定するための共通クラス */

.wrapper {
    max-width: 800px;
    padding: 0 30px;
    margin: 0 auto;
}

/* mainとfooter全体を囲むクラス */

.container {
    background: #050507;
    color: #fff;
    text-align: center;
}

/*
サイドボタン
初期状態は「translateY(60px);」で画面の右側に隠しておく
Galleryのタイトルが画面下にきたタイミングで、jQueryでCSSを変更してボタンをスライドしながら表示する
Accessのタイトルが画面下にきたタイミングで、jQueryでCSSを変更してボタンをスライドしながら非表示にする
※main.jsの「サイドボタンを表示」を参照
*/

#side-btn {
    border: solid 1px #fff;
    position: fixed;
    right: -144px;
    bottom: 200px;
    transform: rotate(-90deg) translateY(60px);
    transition: 0.6s;
    z-index: 30;
}

#side-btn a {
    width: 165px;
    font-size: 0.875rem;
    display: inline-block;
    letter-spacing: 0.1em;
    padding: 15px 0;
    transition: 0.3s;
}

#side-btn a:last-of-type {
    border-left: 1px solid #ffff;
}

#side-btn a:hover {
    opacity: 0.7;
}

/*
Accessの背景画像
初期状態は「display: none;」で非表示にしておく
Accessのタイトルが画面下にきたタイミングで、jQueryのfadeInで表示する
Contactのタイトルが画面下にきたタイミングで、jQueryのfadeOutで非表示にする
「position: fixed;」で固定し「width: 100vw;」「height: 100vh;」で全画面表示する
※main.jsの「Accessの背景画像を表示」を参照
*/

.bg {
    background: url("../img/bg.jpg") center center repeat !important;
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    z-index: 10;
}

/*
フェード表示
InformationとGalleryの画像を下からふわっと表示させるためのクラス
「transform: translate(0, 50%);」で下にさげた状態で、
「opacity: 0;」で非表示にしておく
*/

.fadein {
    opacity: 0;
    transform: translate(0, 50%);
    transition: 2s;
}

/*
fadeinクラスの要素が画面下にきたタイミングで、jQueryのinviewにてshowクラスを追加して
「transform: translate(0, 0);」と「opacity: 1;」で表示させる
※main.jsの「フェード表示」を参照
*/

.fadein.show {
    transform: translate(0, 0);
    opacity: 1;
}


/*************************************
                   header
  *************************************/


.logo {
    line-height: 1px;
    position: fixed;
    top: 35px;
    left: 30px;
    /* 一番上に来るように設定 */
    z-index: 40;
    display: none;
}

.logo a {
    display: block;
}

/* ハンバーガーメニュー
  初期状態は「display: none;」で非表示にしておく
所定のスクロール位置にきたらjQueryのfadeInで表示する
 */

.hamburger {
    width: 42px;
    height: 42px;
    cursor: pointer;
    position: fixed;
    top: 20px;
    right: 25px;
    /* 一番上に来るように設定 */
    z-index: 40;
    display: none;
}

.hamburger span {
    width: 30px;
    height: 1px;
    background-color: #fff;
    position: absolute;
    left: 6px;
    transition: 0.5s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 11px;
}

.hamburger span:nth-child(2) {
    top: 21px;
}

.hamburger span:nth-child(3) {
    top: 31px;
}

.hamburger.active span:nth-child(1) {
    top: 21px;
    left: 6px;
    transform: rotate(-405deg);
}

.hamburger.active span:nth-child(2),
.hamburger.active span:nth-child(3) {
    top: 21px;
    transform: rotate(45deg);
}

#navi {
    width: 100%;
    background-color: #fff;
    color: #050507;
    position: fixed;
    top: 0;
    left: 0;
    text-align: center;
    transform: translateY(-100%);
    transition: 0.6s;
    /* ロゴ、ハンバーガーより下でAccessページの背景画像よりも上にくるよう設定 */
    z-index: 30;
}

#navi ul {
    width: 100%;
    background-color: #050507;
    padding: 80px 0 30px 0;
}

#navi ul li {
    padding: 10px 0;
}

#navi ul li a {
    display: block;
}

#navi.active {
    transform: translateY(0%);
}

  /*************************************
         main visual
  *************************************/

  #mainvisual {
    display: flex;
    justify-content: center;
    /* スクロールで画像を拡大させた際に、横スクロールが出ないよう設定 */
    overflow: hidden;
  }

  #mainvisual img {
    width: calc(100%/3);
    height: 100vh;
    flex-shrink: 0;
    object-fit: cover;
  }

    /*************************************
               information
  *************************************/

  #information {
    margin-bottom: 140px;
  }

  #information .info-date-english {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 1%;
  }

  #information .info-time-english {
    display: block;
    font-size: 1.125rem;
  }

  #information .info-place {
    font-size: 2.5rem;
    font-weight: 400;
    margin: 20px 0;
  }

  #information .info-date-japanes {
    font-size: 1.125rem;
    line-height: 4vh;
  }

    /*************************************
           gallery
  *************************************/

  #gallery {
    margin-bottom: 480px;
  }

  #gallery .list li {
    margin-bottom: 60px;
  }

  #gallery .list li img {
    width: 48%;
  }

  #gallery .list li:nth-child(odd) {
    text-align: left;
  }

  #gallery .list li:nth-child(even) {
    text-align: right;
  }

    /*************************************
         access
  *************************************/

  #access {
    margin-bottom: 480px;
    position: relative;
    z-index: 20;
  }

  #access .place {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 20px;
  }

  #access .address {
    margin-bottom: 20px;
  }

  #access .contact {
    margin-bottom: 30px;
  }

  #access .btn {
    border: solid 1px #fff;
    color: #fff;
    display: inline-block;
    padding: 15px 82px;
    transition: 0.3s;
  }

  #access .btn:hover {
    background-color: #050507;
  }

    /*************************************
          contact
  *************************************/


  #contact {
    margin-bottom: 200px;
    position: relative;
    z-index: 20;
  }
  #contact .btn {
    width: 400px;
    border: solid 1px #7d7d7d;
    color: #fff;
    display: block;
    padding: 30px 0;
    margin: 0 auto 20px auto;
    position: relative;
    transition: 0.3s;
  }
  /*
  ボタン矢印
  */
  #contact .btn::before,
  #contact .btn::after {
    content: "";
    position: absolute;
    right: -40px;
    height: 1px;
    background-color: #fff;
    transition: 0.3s;
  }
  /*
  矢印の直線部分
  */
  #contact .btn::before {
    width: 120px;
    top: 48px;
  }
  /*
  矢印の先端部分
  「rotate(25deg)」で角度をつける
  */
  #contact .btn::after {
    width: 15px;
    top: 45px;
    transform: rotate(25deg);
  }
  #contact .btn:hover {
    opacity: 0.7;
  }
  #contact .btn:hover::before,
  #contact .btn:hover::after {
    right: -50px;
  }

    /*************************************
            Footer
  *************************************/

  #footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.75rem;
    text-align: left;
    padding: 80px 30px;
    border-top: 1px solid #fff;
  }

  #footer p {
    line-height: 1.6;
  }

  .sns {
    display: flex;
    margin-top: 30px;
    align-items: center;
  }

  .sns li {
    margin-right: 15px;
  }

  .copyright {
    display: flex;
    text-align: center;
  }

  .copyright li {
    margin-right: 15px;
  }

  @media screen and (max-width: 900px) {
    .site-title {
      font-size: 3rem;
      margin: 50px 0;
    }
    .section-title {
      font-size: 2rem;
    }
  
    /*-------------------------------------------
    Information
    -------------------------------------------*/
    #information {
      margin-bottom: 80px;
    }
    #information .info-date-english,
    #information .info-time-english,
    #information .info-date-japanes {
      font-size: 1rem;
    }
    #information .info-place {
      font-size: 2rem;
    }
  
    /*-------------------------------------------
    Gallery
    -------------------------------------------*/
    #gallery {
      margin-bottom: 280px;
    }
    #gallery .list li {
      margin-bottom: 30px;
    }
    #gallery .list li img {
      width: 100%;
    }
  
    /*-------------------------------------------
    Access
    -------------------------------------------*/
    #access {
      margin-bottom: 280px;
    }
  
    /*-------------------------------------------
    Contact
    -------------------------------------------*/
    #contact .btn {
      width: 100%;
    }
    /*
    スマホの時は矢印を消す
    */
    #contact .btn::before,
    #contact .btn::after {
      content: none;
    }
  
    /*-------------------------------------------
    Footer
    -------------------------------------------*/
    #footer {
      flex-direction: column;
      align-items: flex-start;
      padding: 60px 30px;
    }
    #footer .sns {
      margin-bottom: 30px;
    }
  }