@charset "utf-8";

*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: "Times New Roman", Times, serif;
  color: #fcf6ee;
  background-color: #383838;
}

img {
  max-width: 100%;
}

/* ここまでが基本設定 */

header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  position: fixed;
  z-index: 500;
}

header h1 img {
  width: 70%;
  position: relative;
  top: 10%;
  left: 15%;
}

nav {
  /*position:fixed;にし、z-indexの数値を大きくして前面へ*/
  position: fixed;
  z-index: 999;
  /*ナビのスタート位置と形状*/
  top: 0;
  left: -120%;
  width: 100%;
  height: 100vh; /*ナビの高さ*/
  /* background: #999; */
  background: url(../top-img/washi-shiro.png) no-repeat center/cover;
  /*動き*/
  transition: all 0.6s;
}

/*アクティブクラスがついたら位置を0に*/
nav.panelactive {
  left: 0;
}

/*ナビゲーション*/
nav ul {
  /*ナビゲーション天地中央揃え*/
  position: absolute;
  z-index: 999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
}

/*リストのレイアウト設定*/

nav li {
  text-align: center;
  writing-mode: vertical-rl;
}

nav li a {
  color: #333;
  text-decoration: none;
  padding: 20px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: bold;
}

nav li a:hover {
  color: sandybrown;
}

.openbtn {
  /*ボタン内側の基点となるためrelativeを指定。
追従するナビゲーションの場合はfixed＋top、rightといった位置をセットで指定*/
  position: relative;
  z-index: 9999;
  top: 0;
  right: 1%;
  width: 55px;
  height: 70px;
  cursor: pointer;
}

/*ボタン内側*/

.openbtn span {
  display: inline-block;
  transition: all 0.4s; /*アニメーションの設定*/
  position: absolute;
  right: 13px;
  height: 1px;
  background-color: #fcf6ee;
}

.openbtn span:nth-of-type(1) {
  top: 22px;
  width: 100%;
}

.openbtn span:nth-of-type(2) {
  top: 27px;
  width: 60%;
}

/*activeクラスが付与されると線が回転して×に*/

.openbtn.active span:nth-of-type(1) {
  top: 20px;
  left: 16px;
  transform: translateY(6px) rotate(-45deg);
  width: 35%;
  background-color: #383838;
}

.openbtn.active span:nth-of-type(2) {
  top: 32px;
  left: 16px;
  transform: translateY(-6px) rotate(45deg);
  width: 35%;
  background-color: #383838;
}

footer {
  width: 100%;
  background-color: #383838;
  text-align: center;
  font-size: 15px;
  padding-top: 200px;
  display: flex;
  justify-content: center;
}

footer .silver {
  width: 8%;
  height: 8%;
  margin-right: 10%;
  margin-top: -5%;
}

footer .gold {
  width: 7%;
  height: 7%;
  margin-left: 10%;
  margin-top: 10%;
}

footer p:nth-of-type(2) {
  margin-top: 20px;
  font-size: 22px;
}

footer p:nth-of-type(3) {
  margin-top: 5px;
}

footer a {
  /*波紋の基点とするためrelativeを指定*/
  position: relative;
  /*リンクの形状*/
  display: inline-block;
  text-decoration: none;
  color: #fcf6ee;
  outline: none;
  margin-top: 30px;
  margin-bottom: 60px;
}

/*波形の設定*/
footer a:hover::before {
  content: "";
  /*絶対配置で波形の位置を決める*/
  position: absolute;
  left: 30%;
  top: 0;
  /*波形の形状*/
  border: 1px solid #fcf6ee;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /*はじめは不透明*/
  opacity: 1;
  /*アニメーションの設定*/
  animation: 1s circleanime2 forwards;
}

/*波形が広がるアニメーション*/
@keyframes circleanime2 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/*矢印の設定*/
footer a::after {
  content: "";
  /*絶対配置で矢印の位置を決める*/
  position: absolute;
  top: 30%;
  right: -20px;
  /*矢印の形状*/
  width: 5px;
  height: 5px;
  border-top: 1px solid #fcf6ee;
  border-right: 1px solid #fcf6ee;
  transform: rotate(45deg);
}
