@charset "utf-8";

/* 全体 */
html {
    font-size: 15px;
    height: 100%;
    margin: 0;
    display: grid;
    place-items: center;
    background-color: #fffce6;
}

body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: #412e02;
    font-size: 1.1rem;
}

/* レイアウト */
header {
    text-align: center;
}

main {
    padding: 100px 20px;
}

footer {
    text-align: center;
    padding: 50px;
}

.card {
    margin-bottom: 100px;
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 20px 60px;
    box-shadow: 3px 3px 6px -2px #816666,
                3px 3px 8px rgba(255,255,255,0.8) inset;
}

.rink-rel {
    margin: 0;
}

/* ボタン */
.button {
    background: rgb(236, 185, 103);
    border: 2px solid rgb(236, 185, 103);
    border-radius: 60px;
    color: #fff;
    display: block;
    font-weight: bold;
    max-width: 300px;
    padding: 15px 25px;
    text-align: center;
    margin: 50px auto;
    box-shadow: 3px 3px 6px -2px #816666,
                3px 3px 8px rgba(255,255,255,0.8) inset;
}

/* 文字 */
h1 {
    font-family: 'Pacifico', cursive;
    font-size: 4.0rem;
    color: #412e02;
    padding-top: 150px;
}

h2 {
    font-weight: bold;
    padding: 10px;
    color: #322404;
}

span {
  color: #a58947;
}

.pop {
    color: #322404;
}

/* リンク */
a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #a58947;
}

/* ナビゲーション */
nav {
  position: fixed;
  top: 0;
  left: -300px;
  bottom: 0;
  width: 300px;
  background: #ffffff;
  overflow-y: auto;
  transition: all .5s;
  z-index: 3;
  opacity: 0;
}

.open nav {
  left: 0;
  opacity: 1;
}

nav .inner {
  padding: 25px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav li {
  border-bottom: 1px solid #333;
}

nav a {
  display: block;
  color: #333;
  font-size: 14px;
  padding: 1em;
}

nav a:hover {
  background: #e4e4e4;
}

/* ハンバーガーメニュー */
.toggle_btn {
  position: fixed;
  top: 30px;
  right: 30px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  z-index: 3;
}

.toggle_btn span {
  position: absolute;
  width: 30px;
  height: 2px;
  background-color: #333;
  transition: all .5s;
}

.toggle_btn span:nth-child(1) { top: 4px; }
.toggle_btn span:nth-child(2) { top: 14px; }
.toggle_btn span:nth-child(3) { bottom: 4px; }

/* 開いたとき */
.open .toggle_btn span {
  background-color: #fff;
}

.open .toggle_btn span:nth-child(1) {
  transform: translateY(10px) rotate(-315deg);
}

.open .toggle_btn span:nth-child(2) {
  opacity: 0;
}

.open .toggle_btn span:nth-child(3) {
  transform: translateY(-10px) rotate(315deg);
}

#mask {
  display: none;
}

.open #mask {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  opacity: .8;
  z-index: 2;
}

/* レスポンシブ */
@media screen and (max-width: 767px) {
  nav {
    left: -220px;
    width: 220px;
  }
}

/* 日記 */
.template {
  background: #fffdf5;
  border-left: 6px solid rgb(236, 185, 103);
  padding: 0px 20px 0px 25px;
  margin-bottom: 30px;
  position: relative;
  border-radius: 5px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.1);

  background-image: linear-gradient(
    to bottom,
    transparent 95%,
    rgba(200,200,200,0.3) 95%
  );
  background-size: 100% 2em;
}

.template p {
  line-height: 1.9;
}
