@charset "utf-8";


/*-----------------------------------

mainContainer

-----------------------------------*/
#mainContainer p {
	font-family: 'Shippori Mincho', serif;
	font-size: 1.4rem;
	line-height: 1.8;
	margin-bottom: 1em;
}

section + section {
	margin-top: 60px;
}


.request-btn {
	display: block;
	border: 1px solid #434343;
	margin-top: 30px;
	position: relative;
	width: 250px;
}
.request-btn a {
	display: block;
	text-align: center;
	text-decoration: none;
	color: #434343;
	padding: 20px 0;
	transition: .5s;
}
.request-btn a:before {
	position: absolute;
	content: "";
	background: url("../../images/bbs/index/icon_request-btn_off.png");
	width: 50px;
	height: 12px;
	right: -2em;
	transition: .5s;
}
.request-btn:hover {
	border: 1px solid #60a2b2;
}
.request-btn:hover a {
	color: #fff;
	background: #60a2b2;
	transition: .5s;
}
.request-btn:hover a:before {
	background: url("../../images/bbs/index/icon_request-btn_on.png");
	right: -3.6em;
	transition: .5s;
}


.posts {
	position: relative;
	padding: 20px 50px;
	border: 2px solid #e4e4e4;
	transition: .5s;
}
.posts + .posts {
	margin-top: 30px;
}
.posts:hover {
	opacity: .7;
	transition: .5s;
}
.posts dl {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.posts dl dt {
	font-family: 'Shippori Mincho', serif;
	font-size: 2.4rem;
	font-weight: bold;
	width: 50.5%;
}

.posts .post-page {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
}

.posts .p-date {
	position: relative;
}
.posts .p-date:before {
	position: absolute;
	top: 0;
	left: -3em;
	content: "";
	width: 1px;
	height: 100%;
	background: #e4e4e4;
}


.visuallyhidden {
  clip: rect(1px, 1px, 1px, 1px);
	height: 1px;
	overflow: hidden;
	position: absolute !important;
	white-space: nowrap;
	width: 1px;
}

.pagination {
  display: flex;
  margin-top: 5rem;
  justify-content: center;
  text-align: center;
  
  a {
    display: inline-block;
	min-width: 2rem;
    padding: .5rem .7rem;
	border-radius: .25rem;
    background-color: #fcfcfc;
	border: 1px solid #e5e5e5;
    text-decoration: none;
    color: black;
    
    &:hover,
    &:focus {
      background-color: #ddd;
    }
  }
}
.pagination__prev {
  &::before {
    content: '前へ';
	vertical-align: middle;
	padding: 0 .5rem;
  }
}
.pagination__next {
  &::before {
    content: '次へ';
	vertical-align: middle;
	padding: 0 .5rem;
  }
}
.pagination__items {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  counter-reset: pagination;
  margin: 0 1.5rem;
  
  li {
    position: absolute;
    top: -100vh;
    counter-increment: pagination;
    margin: 0 .5rem;
    
    &:first-child,
    &:last-child {
      position: static;
    }
    &.is-active {
      position: static;
      
      &:not(:nth-child(1)):not(:nth-child(2)) {
        &::before {
          content: '...';
          display: inline-block;
		  min-width: 2rem;
          padding: .5rem .7rem;
          margin-right: 1rem;
        }
      }
      & + li,
      & + li + li {
        position: static;
      }
      & + li + li:not(:last-child):not(:nth-last-child(2)) {
        &::after {
          content: '...';
          display: inline-block;
		  min-width: 2rem;
          padding: .5rem .7rem;
          margin-left: 1rem;
        }
      }
    }
  }
  a {
    &::before {
      /*content: counter(pagination);*/
    }
  }
  .is-active a {
    background-color: #4e575c;
    color: white;
  }
}




@media screen and (max-width: 559px) {
#mainContainer p {
	font-family: 'Shippori Mincho', serif;
	font-size: 1.4rem;
	line-height: 1.8;
	margin-bottom: 1.5em;
}

section + section {
	margin-top: 5rem;
}


.request-btn {
	margin: 0 auto;
	display: block;
	width: 75%;
}
.request-btn a {
	display: block;
	color: #434343;
	padding: 1.5rem 0;
	text-align: center;
}
.request-btn a:before {
	right: -1.5em;
}


.posts {
	padding: 1.0rem 1.5rem;
	border: none;
	box-shadow: 0px 0px 6px #c9c9c9;
}
.posts + .posts {
	margin-top: 3rem;
}
.posts dl {
	flex-direction: column;
	align-items: flex-start;
}
.posts dl dt {
	font-size: 1.8rem;
	width: 100%;
	margin-bottom: 2rem;
}
.posts dl dd {
	width: 100%;
}
.posts .p-date {
	line-height: 1.4;
}
.posts .p-date:before {
	top: -10.0vw;
	left: 0;
	content: "";
	width: 100%;
	height: 1px;
}




.pagination {
  margin-top: 4rem;

  a {
	min-width: 2rem;
    padding: .5rem .7rem;
	border-radius: .25rem;
    color: black;
    
    &:hover,
    &:focus {
      background-color: #ddd;
    }
  }
}

.pagination__items {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  counter-reset: pagination;
  margin: 0 .5rem;
  
  li {
    position: absolute;
    top: -100vh;
    counter-increment: pagination;
    margin: 0 .25rem;
    
    &:first-child,
    &:last-child {
      position: static;
    }
    &.is-active {
      position: static;
      
      &:not(:nth-child(1)):not(:nth-child(2)) {
        &::before {
          content: '...';
          display: inline-block;
		  min-width: 1rem;
          padding: .5rem .7rem;
          margin-right: .25rem;
        }
      }
      & + li,
      & + li + li {
        position: static;
      }
      & + li + li:not(:last-child):not(:nth-last-child(2)) {
        &::after {
          content: '...';
          display: inline-block;
		  min-width: 1rem;
          padding: .5rem .7rem;
          margin-left: .25rem;
        }
      }
    }
  }
  a {
    &::before {
      /*content: counter(pagination);*/
    }
  }
  .is-active a {
    background-color: #4e575c;
    color: white;
  }
}

}