@charset "UTF-8";

*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

ul,
ol {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: grab;
}

html {
  width: 100%;
}

body {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  font-family: serif;
  line-height: 1;
}

img {
  max-width: 100%;
}

.header-inner {
  height: 110px;
  margin: 0 auto 60px auto;
  padding-left: 40px;
  padding-right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
 }

.toggle-menu-button {
  display: none;
}

.header-logo {
  display: block;
  width: 170px;
}

.header-inner img {
  width: 110px;
  height: 110px;
}

.site-menu ul {
  display: flex;
  margin-top: 40px;
}

.site-menu ul li {
  margin-right: 10px;
  margin-left: 10px;
}





.footer {
  max-width: 100%;
  margin-top: 50px;
  padding-top: 30px;
  padding-bottom: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgb(214, 206, 206);
}

.copyright {
  width: 200px;
  font-size: 14px;
  font-weight: bold;
  margin: 50px auto 10px auto;
  text-align: center;
}


/* ヘッダー部分遊び */
/* アニメーションの時間指定 */
.book-nav-items a,
.book-nav-items,
.book-nav-items::before,
.book-nav-items:hover a span {
  transition: all .4s;
}


.book-nav-items {
  position: relative;
  list-style: none;
  flex-basis: 32px;
}

.book-nav-items:nth-of-type(1) {
  border-top: 1px solid #f28279;
  border-right: 2px solid #ba3c32;
  border-bottom: 1px solid #ba3c32;
  border-left: 2px solid #f28279;
  background-color: #ea5549;
}

.book-nav-items:nth-of-type(2) {
  border-top: 1px solid #e5a77b;
  border-right: 2px solid #c45e17;
  border-bottom: 1px solid #c45e17;
  border-left: 2px solid #e5a77b;
  background-color: #e17b34;
}

.book-nav-items:nth-of-type(3) {
  border-top: 1px solid #f2df93;
  border-right: 2px solid #997b00;
  border-bottom: 1px solid #997b00;
  border-left: 2px solid #f2df93;
  background-color: #e9bc00;
}

.book-nav-items:nth-of-type(4) {
  border-top: 1px solid #50ce9d;
  border-right: 2px solid #02663f;
  border-bottom: 1px solid #02663f;
  border-left: 2px solid #50ce9d;
  background-color: #00a968;
}

.book-nav-items:nth-of-type(5) {
  border-top: 1px solid #5acec5;
  border-right: 2px solid #015952;
  border-bottom: 1px solid #015952;
  border-left: 2px solid #5acec5;
  background-color: #00a497;
}

.book-nav-items:nth-of-type(6) {
  border-top: 1px solid #3d84ba;
  border-right: 2px solid #024272;
  border-bottom: 1px solid #024272;
  border-left: 2px solid #3d84ba;
  background-color: #0068b7;
}

.book-nav-items::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: -2px;
  display: block;
  width: 100%;
  height: 0;
  content: '';
  background-color: #e8e6dc;
}

.book-nav-items:nth-of-type(1)::before {
  border-right: 2px solid #ba3c32;
  border-left: 2px solid #f28279;
}

.book-nav-items:nth-of-type(2)::before {
  border-right: 2px solid #c45e17;
  border-left: 2px solid #e5a77b;
}

.book-nav-items:nth-of-type(3)::before {
  border-right: 2px solid #997b00;
  border-left: 2px solid #f2df93;
}

.book-nav-items:nth-of-type(4)::before {
  border-right: 2px solid #02663f;
  border-left: 2px solid #50ce9d;
}

.book-nav-items:nth-of-type(5)::before {
  border-right: 2px solid #015952;
  border-left: 2px solid #5acec5;
}

.book-nav-items:nth-of-type(6)::before {
  border-right: 2px solid #024272;
  border-left: 2px solid #3d84ba;
}

.book-nav-items a {
  display: block;
  width: 45px;
  height: 150px;
  padding: 10px 3px 0 3px;
  transition: all .4s;
  text-decoration: none;
}

.book-nav-items a span {
  display: inline-block;
  padding: 5px 1px;
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  background-color: #e8e6dc;
  writing-mode: vertical-rl;
  text-orientation: upright;
}

/* hover時の挙動 */
.book-nav-items:hover {
  transform: translateY(5px) scale(1, .95);
  transform-origin: center bottom 0;
  box-shadow: 0 20px 2px 0 rgba(0, 0, 0, .4);
  border-left-color: rgba(0, 0, 0, .2);
}

.book-nav-items:hover::before {
  top: -10px;
  height: 11px;
}

.book-nav-items:hover a {
  background-color: rgba(0, 0, 0, .3);
}

.book-nav-items:hover a span {
  background-color: #bcbaaf;
}

/* 430px以下の時 */
@media (max-width: 430px) {
  
  .book-nav-items a{
   width: 32px;
  height: 100px;
  padding: 0;
  }

.book-nav-items a span {
  font-size: 13px;
}

.site-menu ul,
.site-menu li{
  margin: 0;
}

}