@charset "utf-8";

/*============================
一覧
============================*/
#works_list {
  padding: 1rem 0;
}

@media screen and (max-width: 640px) {
  #works_list {
    padding: 0.5rem 0;
  }
}
#works_list .in {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem 0;
}

#works_list .in .works_box {
  width: 48.5%;
} 
@media screen and (max-width: 640px) {
  #works_list .in .works_box {
    width: 100%;
  }
}
#works_list .in .works_box a {
  display: block;
  color: #191919;
}

#works_list .in .works_box a .ph_wrap {
  width: 100%;
  height: 3.5rem;
  overflow: hidden;
  border-radius: 0.06rem;
}
@media screen and (max-width: 640px) {
  #works_list .in .works_box a .ph_wrap {
    height: 2.5rem;
  }
}
#works_list .in .works_box a .ph_wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s;
  position: relative;
}

#works_list .in .works_box a:hover .ph_wrap img {
  transform: scale(1.04);
}

#works_list .in .works_box .txt_box {
  padding-top: 0.2rem;
}

#works_list .in .works_box .txt_box .header {
  display: flex;
  align-items: center;
  gap: 0 0.1rem;
  padding-bottom: 0.15rem;
}
@media screen and (max-width: 640px) {
  #works_list .in .works_box .txt_box .header {
    padding-bottom: 0.1rem;
  }
}

#works_list .in .works_box .txt_box .header .date {
  font-size: 0.13rem;
  font-family: "Outfit", sans-serif;
}

#works_list .in .works_box .txt_box .header .cat {
  font-size: 0.12rem;
}

#works_list .in .works_box .txt_box .header .cat span {
  border: 1px solid #000;
  display: inline-block;
  padding: 0.02rem 0.05rem 0.03rem;
  border-radius: 0.03rem;
}

#works_list .in .works_box .txt_box .list_ttl {
  font-size: 0.18rem;
  font-weight: 600;
  line-height: 1.65;
}
@media screen and (max-width: 640px) {
  #works_list .in .works_box .txt_box .list_ttl {
    font-size: 0.16rem;
  }
}

/*============================
詳細
============================*/
#works_detail {
  padding-top: 1.2rem;
}
@media screen and (max-width: 640px) {
  #works_detail {
    padding-top: 0.8rem;
  }
}

#works_detail .cont_wrap {
  max-width: 8rem;
  width: 100%;
  margin: auto;
  margin-bottom: 1rem;
}

/* 日付、カテゴリー */
#works_detail .cont_wrap .title_wrap .cate_wrap {
  display: flex;
  align-items: center;
  gap: 0 0.1rem;
  padding-bottom: 0.15rem;
}

#works_detail .cont_wrap .title_wrap .cate_wrap .date {
  font-size: 0.13rem;
  font-family: "Outfit", sans-serif;
}

#works_detail .cont_wrap .title_wrap .cate_wrap .category {
  font-size: 0.12rem;
}

#works_detail .cont_wrap .title_wrap .cate_wrap .category span {
  border: 1px solid #000;
  display: inline-block;
  padding: 0.02rem 0.05rem 0.03rem;
  border-radius: 0.03rem;
}

/* タイトル */
#works_detail .cont_wrap .title_wrap .detail_title {
  font-size: 0.26rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  line-height: 1.65;
  margin-bottom: 0.25rem;
}
@media screen and (max-width: 640px) {
  #works_detail .cont_wrap .title_wrap .detail_title {
    font-size: 0.18rem;
    margin-bottom: 0.15rem;
  }
}

/* 写真 */
#works_detail .cont_wrap img {
  width: 100%;
  margin-bottom: 0.4rem;
}
@media screen and (max-width: 640px) {
  #works_detail .cont_wrap img {
    margin-bottom: 0.14rem;
  }
}

/* テキスト */
#works_detail .cont_wrap h2 {
  font-size: 0.24rem;
  font-weight: 700;
  line-height: 1.5;
  border-left: 0.05rem solid #246a8c;
  padding: 0.01rem 0 0.01rem 0.15rem;
  margin-bottom: 0.2rem;
}
@media screen and (max-width: 640px) {
  #works_detail .cont_wrap h2 {
    font-size: 0.22rem;
    padding-bottom: 0.1rem;
  }
}

#works_detail .cont_wrap h3 {
  font-size: 0.22rem;
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 0.1rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid #246a8c;
}
@media screen and (max-width: 640px) {
  #works_detail .cont_wrap h3 {
    font-size: 0.2rem;
    padding-bottom: 0.1rem;
  }
}

#works_detail .cont_wrap h4 {
  font-size: 0.2rem;
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 0.15rem;
}
@media screen and (max-width: 640px) {
  #works_detail .cont_wrap h4 {
    font-size: 0.18rem;
    padding-bottom: 0.1rem;
  }
}

#works_detail .cont_wrap h5,
#works_detail .cont_wrap h6,
#works_detail .cont_wrap h7 {
  font-size: 0.18rem;
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: 0.1rem;
}
@media screen and (max-width: 640px) {
  #works_detail .cont_wrap h5,
  #works_detail .cont_wrap h6,
  #works_detail .cont_wrap h7 {
    font-size: 0.16rem;
    padding-bottom: 0.1rem;
  }
}

#works_detail .cont_wrap p {
  font-size: 0.16rem;
  line-height: 2;
  letter-spacing: 0.07em;
  margin-bottom: 0.2rem;
}
@media screen and (max-width: 640px) {
  #works_detail .cont_wrap p {
    font-size: 0.14rem;
    margin-bottom: 0.2rem;
  }
}

#works_detail .cont_wrap a {
  color: #246A8C;
  text-decoration: underline;
  word-break: break-all;
}

#works_detail .cont_wrap a:hover {
  opacity: 0.7;
}

/* 一覧に戻る */
#works_detail .cont_wrap .list_btn a {
  color: #fff;
  margin: 0.5rem auto 0;
  text-decoration: none;
}

#works_detail .cont_wrap .list_btn a:hover {
  color: #246A8C;
}

