@charset "utf-8";

/* ==================================================== */
/*  works
/* ==================================================== */
.works h1{
  margin: 0 auto 20px;
  max-width: 1269px;
  text-align: right;
}
.contents .contents-area {
  margin-bottom: 100px;
}
@media screen and (max-width:767px) {
  .works h1{
    margin-bottom: 30px;
    padding: 0 8.5%;
  }
  .contents .contents-area {
    padding-top: 0;
  }
}

/*==== nav_sec ====*/
.nav_sec {
  margin-bottom: 75px;
}
.nav_sec .works_nav {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 20px 3%;
  justify-content: flex-start;
  align-items: center;
}
.nav_sec .works_nav li {
  display: block;
  height: 26px;
  line-height: 26px;
  font-size: var(--fs18);
  letter-spacing: 0.02em;
}
.nav_sec .works_nav li:last-child {
  padding-right: 0;
}
.nav_sec .works_nav li a {
  position: relative;
  display: block;
  padding-bottom: 5px;
}
.nav_sec .works_nav li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1px;
  background-color: #3D98D9; /* 好きな色に変更 */
  transition: width 0.3s ease;
}

/* hoverで線を出す */
.nav_sec .works_nav li a:hover::after {
  width: 100%;
}

/* active（選択中）の項目にも常に線を出す */
.nav_sec .works_nav li.active a::after {
  width: 100%;
}

@media screen and (max-width:767px) {
  .nav_sec {
    margin-bottom: 45px;
  }
  .nav_sec .works_nav{
    margin: 0 auto;
    width: 100%;
    gap: 10px 6%;
  }
  .nav_sec .works_nav li{
    margin-bottom: 0;
    font-size: var(--fs14);
  }
  .nav_sec .works_nav li a {
    padding-bottom: 0;
    line-height: 1.2;
  }
}

/*==== works-list_area ====*/
.works-list_area{
  margin-bottom: 190px;
}

.works-list_area .works-list_grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列均等 */
  gap: 70px 3.6%;
}
.works-list_area .works-list_grid article a figure{
  margin-bottom: 10px;
}
.works-list_area .works-list_grid article a .cat_name{
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 12px 3px;
  font-size: var(--fs14);
  border: 1px solid #3D98D9;
  color: #3D98D9;
  line-height: 1;
  letter-spacing: 0.02em;
}
.works-list_area .works-list_grid article a .works_title{
  font-size: var(--fs16);
}
@media screen and (max-width:767px) {
  .works-list_area {
    margin-bottom: 100px;
  }
  .works-list_area .works-list_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 3.6%;
  }
  .works-list_area .works-list_grid article a figure {
    margin-bottom: 6px;
  }
  .works-list_area .works-list_grid article a .cat_name{
    margin-bottom: 3px;
    padding: 2px 12px;
    font-size: var(--fs12);
  }
  .works-list_area .works-list_grid article a .works_title{
    font-size: var(--fs13);
  }
}


/*==== works詳細 ====*/
.works-detail .ttl_area{
  margin-bottom: 30px;
}
.works-detail .ttl_area .flex{
  justify-content: space-between;
  align-items: flex-start;
}
.works-detail .ttl_area .works-ttl{
  width: 84%;
  min-width: 0;
}
.works-detail .ttl_area .works-ttl.flex{
  flex-direction: column;
  gap: 5px;
}
.works-detail .ttl_area .works-ttl .cat_name{
  position: relative;
}
.works-detail .ttl_area .works-ttl .cat_name a{
  display: block;
  padding: 4px 12px 3px;
  font-size: var(--fs14);
  border: 1px solid #3D98D9;
  color: #3D98D9;
  line-height: 1;
  white-space: nowrap;
}
.works-detail .ttl_area .works-ttl .works_title h2{
  font-size: var(--fs35);
  word-break: break-word;
  overflow-wrap: anywhere;
}
.works-detail .ttl_area h1{
  /*width: 16%;*/
  margin-bottom: 0;
  padding: 0;
  text-align: right;
}

@media screen and (max-width: 767px) {
  .works-detail .ttl_area .flex{
    flex-direction: column-reverse;
  }
  .works-detail .ttl_area h1{
    width: 100%;
    margin-left: auto;
  }
  .works-detail .ttl_area .works-ttl.flex{
    flex-direction: column;
    gap: 10px;
  }
  .works-detail .ttl_area .works-ttl{
    width: 100%;
  }
  .works-detail .ttl_area .works-ttl .cat_name{
    top: 0;
  }
  .works-detail .ttl_area .works-ttl .cat_name a{
    font-size: var(--fs12);
  }
  .works-detail .ttl_area .works-ttl .works_title h2{
    font-size: var(--fs25);
  }
}

/*works-profile*/
.works-detail .works-profile{
  margin: 0 auto;
  max-width: 1020px;
}
.works-detail .works-profile .works-profile_detail{
  margin-bottom: 120px;
  padding-top: 80px;
}
.works-detail .works-profile .works-profile_detail .flex{
  gap: 8%;
  justify-content: space-between;
}
.works-detail .works-profile .works-profile_detail .detail_text{
  width: 48%;
  font-size: var(--fs16);
}
.works-detail .works-profile .works-profile_detail .detail_data{
  width: 44%;
}
.works-detail .works-profile .works-profile_detail .detail_data .data_box{
 display: flex;
 justify-content: space-between;
 margin-bottom: 20px;
}
.works-detail .works-profile .works-profile_detail .detail_data .data_box .data_label{
 width: 130px;
}

.works-detail .works-profile .works-profile_detail .detail_data .data_box .data_text{
  width: 70%;
}

@media screen and (max-width: 767px) {
  .works-detail .works-profile .works-profile_detail .flex{
    flex-direction: column;
    gap: 30px
  }
  .works-detail .works-profile .works-profile_detail .detail_text {
    width: 100%;
    font-size: var(--fs14);
  }
  .works-detail .works-profile .works-profile_detail .detail_data {
    width: 100%;
    font-size: var(--fs13);
  }
  .works-detail .works-profile .works-profile_detail .detail_data .data_box{
    margin-bottom: 10px;
  }
}

/*============= メイン画像 ==============*/

.photo-main {
  text-align: center;
}
/* 小さめの画像（実寸表示） */
.photo-main img.keep-size {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  object-fit: contain;
}

/* 縦長で大きい（50vhに収める） */
.photo-main img.vertical-big {
  height: 80vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* 横長で大きい（幅100%に） */
.photo-main img.horizontal-big {
  width: 100%;
  height: auto;
  object-fit: contain;
}

@media screen and (max-width: 767px) {
  .photo-main img {
    height: auto;
    width: 100%;
  }
}