@charset "utf-8";

html {
	margin: 0;
	padding: 0;
	font-size: 100%;
}

body {
  color: #050507;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 300;
}
a {
  color: #fff;
  text-decoration: none;
}

img {
	max-width: 100%;
	vertical-align: bottom;
}

li {
	list-style: none;
}

/* h1タグ用 */
.site-title {
  font-size: 6.25rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  margin: 100px 0;
}

/* h2タグ用 */
.section-title {
  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: solid 1px #fff;
}

#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/yakei.jpg") center center repeat !important;
	width: 100vw;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	display: none;
	z-index: 10;
  opacity: 0.8;
}

/*
フェード表示
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;
}


/* -------------------------------------------
ヘッダー
------------------------------------------- */

/* 
ヘッダーロゴ
初期状態は「display: none;」で非表示にしておく
所定のスクロール位置にきたらjQueryのfadeInで表示する
※main.jsの「ロゴ、ハンバーガーメニューの表示」を参照
 */

.logo {
  line-height: 1px;
  position: fixed;
  top: 35px;
  left: 30px;
	
  /* 一番上にくるように設定 */
  z-index: 40;
  display: none;
}

.logo a {
  display: block;
}

/*
ハンバーガ―メニュー
初期状態は「display: none;」で非表示にしておく
所定のスクロール位置にきたらjQueryのfadeInで表示する
※main.jsの「ロゴ、ハンバーガーメニューの表示」を参照
*/

.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;
	-webkit-transition: 0.5s ease-in-out;
	-moz-transition: 0.5s ease-in-out;
	-ms-transition: 0.5s ease-in-out;
	-o-transition: 0.5s ease-in-out;
	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(-45deg);
}
.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;
}

/*
メニュー表示
ハンバーガーメニューがクリックされた際に、jQueryで#naviにactiveクラスを追加して、
メニューを上から下にスライドさせて表示する
*/
#navi.active {
  transform: translateY(0%);
}

/* -------------------------------------------
Mainvisual
------------------------------------------- */
#mainvisual {
  display: flex;
  justify-content: center;
	
  /* スクロールで画像を拡大させた際に、横スクロールが出ないよう設定 */
	
  overflow-x: hidden;
}

/*
スクロールしたタイミングでjQueryにて画像を拡大するが、
その際に画像が縮まないよう「flex-shrink: 0;」を設定する
*/
#mainvisual img {
  width: calc(100%/3);
  height: 100vh;
  flex-shrink: 0;
  object-fit: cover;
}

/* -------------------------------------------
Information
------------------------------------------- */
#information {
  margin-bottom: 140px;
}

#information .info-date-en {
  display: block;
  font-size: 1.5rem;
}

#information .info-time-en {
  display: block;
  font-size: 1.125rem;
}

#information .info-place {
  font-size: 2.5rem;
  font-weight: 400;
  margin: 20px 0;
}

#information .info-date-ja {
  font-size: 1.125rem;
}

/* -------------------------------------------
Gallery
------------------------------------------- */
#gallery {
  margin-bottom: 480px;
}

#gallery .list li {
  margin-bottom: 60px;
}
#gallery .list li img {
  width: 48%;
}

/* 奇数のliタグは左寄せ */
#gallery .list li:nth-child(odd) {
  text-align: left;
}
/* 偶数のliタグは右寄せ */
#gallery .list li:nth-child(even) {
  text-align: right;
}

/* -------------------------------------------
Access
------------------------------------------- */

/*
「z-index: 20;」でコンテンツが背景画像の上にくるようにする
※デフォルトのposition（static）では、z-indexを指定できないため。
「position: relative;」設定する
*/
#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 {
	display: inline-block;
	color: #fff;
	padding: 15px 82px;
	border: 1px solid #fff;
	-webkit-transition: 0.3s;
	-moz-transition: 0.3s;
	-ms-transition: 0.3s;
	-o-transition: 0.3s;
	transition: 0.3s;
}

#access .btn:hover {
  background-color: #050507;
}

/* -------------------------------------------
Contact
------------------------------------------- */

/*
「z-index: 20;」でコンテンツが背景画像の上にくるようにする
*/
#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;
	-webkit-transition: 0.3s;
	-moz-transition: 0.3s;
	-ms-transition: 0.3s;
	-o-transition: 0.3s;
	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;
	align-items: flex-end;
	justify-content: space-between;
	border-top: solid 1px #FFF;
	padding: 80px 30px;
  font-size: 0.75rem;
	text-align: left;
}

#footer p {
	line-height: 1.6;
}

#footer .sns {
	display: flex;
	align-items: center;
	margin: 30px 0 0;
}

#footer .sns li {
	margin-right: 15px;
}

#footer .copyright {
	display: flex;
	align-items: center;
}

#footer .copyright li:last-child {
  margin-left: 30px;
}

/* -------------------------------------------
SP
------------------------------------------- */

@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-en,
  #information .info-time-en,
  #information .info-date-ja {
    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;
  }
	
} /* ← @media 全体の閉じカッコ */
