

@import url(./common/_variable.css);

/* case */
/* ============================================ */


.area__case {
  padding: 3vw 0 8vw;
  @media (width < 480px) {
    padding: 30px 0 70px;
  }
  .wrap_andmore {
    text-align: center;
    .btn_andmore {
      padding: 80px 0 0;
      @media (width < 480px) {
        padding: 50px 0 0;
      }
    }
  }
}

.area__case--search {
  border: var(--main_c) solid 1px;
  container-type: inline-size;
  padding: 30px 3.57cqw 3.57cqw;
  @media (width < 896px) {
    padding: 16px 20px 20px;
  }
}

.hd_form_case {
  line-height: 1em;
  font-size: clamp(2rem, 1.34vw + 1.497rem, 3rem);
  font-weight: 700;
  text-align: center;
}

.block__form_case {
  padding: 3.57cqw 0 0;
  @media (width < 896px) {
    padding: 20px 0 0;
  }
}

.block__form_case--ttl {
  font-size: clamp(1.6rem, 0.38vw + 1.459rem, 2rem);
  font-weight: 700;
  line-height: 1em;
  padding: 0 0 10px;
  border-bottom: var(--main_c) dotted 1px;
}

.block__form_case--list {
  padding: 16px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  column-gap: 10px;
  row-gap: 10px;
  font-size: 1.4rem;
  line-height: 1em;
  @media (width < 896px) {
    font-size: 1.3rem;
  }
}

.label_case {
  display: block;
}

.resets_case {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.txt_checkbox {
  cursor: pointer;
  display: inline-block;
  padding: 5px 0 5px 30px;
  position: relative;
}

input[type=checkbox]:checked+.txt_checkbox::after {
  opacity: 1;
}

.txt_checkbox::before {
  content: '';
  display: block;
  width: 16px;
  height: 16px;
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  border: 1px solid #777;
}

.txt_checkbox::after {
  content: "";
  display: block;
  width: 5px;
  height: 12px;
  position: absolute;
  top: 50%;
  left: 6px;
  transform: rotate(35deg) skewY(16deg) translateY(-50%);
  transform-origin: center right;
  border-right: 2px solid var(--main_c);
  border-bottom: 2px solid var(--main_c);
  opacity: 0;
}

.btn_submit {
  display: inline-block;
  position: relative;
  &:hover {
    &::before {
      width: 100%;
    }
  }
  &::before {
    content: "";
    display: block;
    background-color: #FFF;
    width: 27px;
    height: 1px;
    position: absolute;
    bottom: 14px;
    right: 0px;
    z-index: 25;
    transition: all 0.3s ease-out;
  }
  &::after {
    content: "";
    display: block;
    background-color: var(--main_c);
    width: 27px;
    height: 1px;
    position: absolute;
    bottom: 14px;
    right: -27px;
    z-index: 25;
  }
}

.form_submit {
  background-color: var(--main_c);
  color: #FFF;
  padding: 20px 30px;
  position: relative;
  z-index: 20;
  box-sizing: border-box;
  min-width: 150px;
  width: 30cqw;
  @media (width < 896px) {
    padding: 15px 20px;
  }
}

.wrap_btn_submit {
  text-align: center;
  padding: 3.57cqw 0 0;
  @media (width < 896px) {
    padding: 15px 0 0;
  }
}


.area__case--list {
  container-type: inline-size;
  padding: 5vw 0 0;
  @media (width < 896px) {
    padding: 50px 0 0;
  }
}

.list_case {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 3cqw;
  @media (width < 896px) {
    gap: 16px;
  }
}

.item_case {
  position: relative;
  background-color: #FFF;
  padding: 1.51cqw;
  border-radius: 16px;
  position: relative;
  height: 100%;
  box-sizing: border-box;
  border: var(--main_c) solid 1px;
  @media (width < 896px) {
    padding: 16px;
    border-radius: 12px;
  }
}

.inner_case {
}

.box_thumb_case {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  width: 100%;
  img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}
.item_label_case {
  position: absolute;
  top: 1.51cqw;
  left: 1.51cqw;
  background-color: #000;
  color: #FFF;
  padding: 4px 10px;
  font-size: 1.2rem;
  line-height: 1em;
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  @media (width < 896px) {
  top: 16px;
  left: 16px;
  }
}
.box_txt_case {
  padding: 10px 0 0;
  @media (width < 896px) {
    padding: 8px 0 0;
  }
}

.name_client {
  font-size: clamp(1.4rem, 0.13vw + 1.351rem, 1.6rem);
  line-height: 1.4em;
  padding: 5px 0;
}
.detail_client {
  border-top: #666 dotted 1px;
  display: grid;
  grid-template-columns: auto 1fr;
  font-size: 1.4rem;
  line-height: 1.4em;
  row-gap: 5px;
  padding: 8px 0 0;
}
.cap_detail_case {
  font-weight: 700;
}
.txt_detail_case {
  padding: 0 0 0 1em;
  text-indent: -1em;
  &::before {
    content: "：";
  }
}




.label_category {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  .label {
    background-color: #000;
    color: #FFF;
    font-size: 1.2rem;
    line-height: 1.0em;
    padding: 3px 6px;
  }
}

.block__detail_ttl {
  padding: 0 0 1.78cqw;
  border-bottom: #666 dotted 1px;
}

.hd_case_ttl {
  text-align: left;
  font-size: clamp(1.8rem, 0.78vw + 1.509rem, 3rem);
  padding: 1.78cqw 0 0;
}

.box_txt_title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  border-bottom: #666 dotted 1px;
}

.date_detail {
  font-size: 1.2rem;
  text-align: right;
  line-height: 1em;
  padding: 8px 0;
}

.box_img_detail {
  padding: 2.67cqw 0 0;
}


.box_article {
  margin: 6vw 0 0;
  line-height: 2.0em;
  @media (width < 896px) {
    margin: 50px 0 0;
  }
}

.hd_case_sec {
  font-size: clamp(1.8rem, 0.38vw + 1.659rem, 2.2rem);
  font-weight: 700;
  line-height: 1.3em;
  border-bottom: var(--main_c) dotted 1px;
  padding: 0 0 10px 20px;
  margin-bottom: 16px;
  position: relative;
  &::before {
    content: "";
    display: block;
    width: 2px;
    height: 110%;
    background-color: var(--main_c);
    position: absolute;
    top: -12px;
    left: 0px;
  }
}

.txt_article {
  line-height: 2.2em;
}

.list_article {
  counter-reset: pagination-num;
}
.item_article {
  position: relative;
  padding: 8px 0 8px 2em;
  text-indent: -2em;
  &::before {
    content: counter( pagination-num, decimal-leading-zero ) ".";
    counter-increment: pagination-num;
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 1.2em;
    padding-right: 4px;
    color: var(--main_c);
  }
}

.list_support {
  counter-reset: pagination-num;
}
.item_support {
  padding: 12px 0 12px 2em;
  position: relative;
  &::before {
    content: counter( pagination-num, decimal-leading-zero ) ".";
    counter-increment: pagination-num;
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-size: 1.2em;
    padding-right: 4px;
    color: var(--main_c);
    position: absolute;
    top: 12px;
    left: 0px;
  }
  dt {
    font-size: 1.1em;
    font-weight: 700;
  }
}

.column_img {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 3.57cqw;
  padding: 3.57cqw 0 0;
}

.item_img {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  img {
    object-fit: cover;
    width: 100%;
    height: 100%;
  }
}

.voice {
  border-radius: 16px;
  background-color: var(--gray_01);
  padding: 3.57cqw;
  @media (width < 896px) {
    padding: 20px;
  }
}

.hd_case_voice {
  font-size: clamp(1.8rem, 0.38vw + 1.659rem, 2.2rem);
  font-weight: 700;
  line-height: 1.3em;
  position: relative;
  padding-left: 4.46cqw;
  margin-bottom: 16px;
  @media (width < 896px) {
    padding-left: 35px;
    margin-bottom: 12px;
  }
  &::before {
    content: "";
    display: block;
    width: 3.57cqw;
    height: 3.57cqw;
    background-image: url(../images/common/icon_voice.svg);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 0px;
    top: 50%;
    transform: translateY(-50%);
    @media (width < 896px) {
    width: 30px;
    height: 30px;
    }
  }
}

.hidden {
  display: none;
}

.paging {
  margin-top: 30px;
  max-width: 1520px;
  width: calc(100% - 30px);
  margin: 0 auto;
}
.btn_more {
  display: flex;
  justify-content: center;
}
.btn_more a {
  display: block;
  max-width: 300px;
  width: 100%;
  text-align: center;
  background-color: var(--main_c);
  padding: 20px 15px;
  box-sizing: border-box;
  margin-top: 50px;
  color: #fff;
  position: relative;
  border-radius: 50px;
}
.btn_more a:hover {
  opacity: 0.8;
}
.btn_more a:after {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f078";
  position: absolute;
  right: 20px;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
}
.hide {
  display: none;
  text-align: center;
}

.area__case--detail {
  max-width: 980px;
}