@charset "UTF-8";

/* ========================================
 *  Template Name: Work Style Sheet
 * =======================================*/

#work {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.work,
.featured-work {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  flex-wrap: wrap;
  -webkit-box-align: space-between;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: stretch;
  align-items: stretch;
  background-color: ;
}

.work,
.featured-work {
  padding: 0 15px;
}

.work-box {
  width: 100%;
  margin-bottom:15px;
  box-sizing: border-box;
}

.hovereffect {
  position: relative;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
}

.hovereffect .mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-transition: all 0.3s ease-in 0.2s;
  transition: all 0.3s ease-in 0.2s;
}

.hovereffect img {

  display: block;
  position: relative;
  -webkit-transition: all 0.3s ease-in 0.2s;
  transition: all 0.3s ease-in 0.2s;
}

.work-title {
  list-style-type: none;
  opacity: 0;
  width: 100%;
  height: 100%;
  color:#fff;
  font-family: 'Montserrat', sans-serif !important;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-transition: all 0.3s ease-in 0.2s;
  transition: all 0.3s ease-in 0.2s;
}

.work-title h3 {
  color: #fff;
  font-size: 1.25em;
  font-weight: bold;
}

.work-title h4 {
  color: #fff; 
  font-size: 0.95em;
}

.hovereffect:hover img {
  -webkit-transform: scale(1.15,1.15);
  transform: scale(1.15,1.15);
}

.hovereffect:hover .mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(235,0,140,0.7);
  -webkit-transition: all 0.3s ease-in 0.4s;
  transition: all 0.3s ease-in 0.4s;
}

.hovereffect:hover .work-title {
  opacity: 1;
  -webkit-transform: scale(0.8);
  transform: scale(0.8);
}

.hovereffect:hover .work-title h3 {

}

#custom-post {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 15px;
}


.content p {
  margin-bottom: 1.2em;
  color: #333;
  font-size: 1em;
  line-height: 1.6;
}

.image img {
  margin-bottom: 10px;
}

.image figcaption {
  color: #333;
  font-size: .7em;
}

.data {
  font-size: ;
  font-weight: normal;
}

.data tr {
  margin-bottom: 5px;
}

.data th  {
  width: 30%;
  padding-right: 15px;
  text-align: left;
  font-weight: normal;
}

.data td,
.data td a {
  width: 70%;
  white-space: normal;   /* 折り返し有効化 */
  word-wrap: break-word; /* 長い単語を折り返す */
}

.content h4 {
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 2em;
}

.post-cat {
  margin-bottom: 8px;
  color: #eb008c;
  font-size: .8em;
  font-weight: normal;
}

.credits {
  width: 100%;
  padding-bottom: 30px;
  box-sizing: border-box;
  color: #333;
  line-height: 1.6;
}

.credits:after {
  display: block;
  clear: both;
  content: "";
}

.credits a {
  color: #000;
  text-decoration: none;
}

.credits a:hover {
  color: #000;
  text-decoration: underline;
}

.credits-l {
  width: 100%;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid;
  box-sizing: border-box;
}

.credits-r {
  width: 100%;
  font-size: 13px;
  text-align: left;
  word-break: break-word;  
  box-sizing: border-box;
}




.post-navigation {
  margin-top: 50px;
  padding: 30px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.post-nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-nav {
  width: 80px;
  text-align: center;
}

.post-nav a {
  text-decoration: none;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 14px;
  transition: color 0.3s ease-in-out;
}

.post-nav .label {
  margin-bottom: 12px;
  font-weight: bold;
  font-size: 12px;
  transition: color 0.3s ease-in-out;
}

/* Back のテキストを右寄せ（矢印の内側に寄せる） */
.post-nav.prev .label {
  margin-left: 12px;  /* テキストを右にズラす */
  margin-right: 0;
}

/* Next のテキストを左寄せ（矢印の内側に寄せる） */
.post-nav.next .label {
  margin-right: 12px; /* テキストを左にズラす */
  margin-left: 0;
}


/* 矢印本体（横棒） */
.arrow {
  position: relative;
  width: 40px;  /* 少し長く */
  height: 2px;
  background-color: #333;
  margin-top: 4px;
  transition: transform 0.4s ease, background-color 0.3s ease-in-out;
}

/* 矢印先端（斜め線） */
.arrow::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 1px;
  background-color: #333;
  top: 0;
  right: 0;
  transform: rotate(45deg);
  transform-origin: right center;
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
}


.arrow-right {


}

/* 左向きにミラー反転 */
.arrow-left {
  transform: scaleX(-1);
}

/* ホバー時：ふわっと色と位置を変える */
.post-nav a:hover {
  color: #eb008c;
}

.post-nav a:hover .label {
  color: #eb008c;
}

.post-nav a:hover .arrow {
  background-color: #eb008c;
  transform: translateX(5px);
}

.post-nav.prev a:hover .arrow {
  transform: translateX(-5px) scaleX(-1);
}

.post-nav a:hover .arrow::after {
  background-color: #eb008c;
  transform: rotate(45deg) scale(1.1);
}



#work-area {
  padding: 0 15px 3rem;
}

#work-area h2,
#featured-work h2 {
  margin-bottom: 20px;
  color: #000;
  font-size: 1.75em;
  font-weight: bold;
  text-align: center;
}

/* ========================================
 *  画面の横幅が768px以上 (Tablet)
 * =======================================*/
@media screen and (min-width: 768px) {

.work-box {
  width: 48.5%;
}

.work-box:last-child {
  margin-bottom: 0px;
}

}

/* ========================================
 *  画面の横幅が1024px以上 (Desktop)
 * =======================================*/
@media screen and (min-width: 1024px) {

#work {
  padding-bottom: 6rem;
}

#work-area,
#featured-work {
  padding: 0 15px 3rem;
}

.work {
  margin-bottom: 6rem;
}

.featured-work {
  margin-bottom: 0;
}

.work-box {
  width: 32.5%;
  margin-bottom:15px;
}

.work-box:nth-last-child(-n+3) {
  margin-bottom: 0px;
}

/* 最後のコンテンツを左寄せにする指定 */
.work:after {
  content: "";
  display: block;
  width: 32.5%;
  height: 0;
}

.credits {
  padding: 30px;
}

.credits-l {
  border-bottom: none;
  float: left;
  width: 20%;
}

.credits-r {
  float: right;
  width: 80%;
  padding-left: 30px;
  border-left: 1px solid;
  border-top: none;
}

#work-area {
  padding: 3rem 15px 3rem;
}

}