@charset "utf-8";

@media (min-width: 1025px) {
  .container {
    padding-top: 80px;
    padding-bottom: 80px;
    padding-left: 80px;
  }

  .button_works {
    margin-bottom: 0;
  }
}

.works_detail_hero {
  margin: 0 16px 32px;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1025px) {
  .works_detail_hero {
    margin: 0;
    padding-top: 0;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 80px;
  }
}

.works_detail_fv_box {
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 1025px) {
  .works_detail_fv_box {
    flex: 1;
    min-width: 320px;
    gap: 80px;
  }
}

.works_detail_fv_img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

@media (min-width: 1025px) {
  .works_detail_fv_img {
    width: 500px;
    height: 500px;
    flex-shrink: 0;
  }
}

.works_detail_fv_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.works_detail_fv_link {
  background-image: url(../img/back.webp);
  background-size: cover;
  background-position: center;
  padding: 16px;
  border-radius: 5px;
}

.works_detail_fv_ttl {
  overflow-wrap: break-word;
}

@media (min-width: 1025px) {
  .works_detail_fv_link {
    padding: 40px;
  }

  .works_detail_fv_ttl {
    font-size: clamp(40px, 5vw, 80px);
  }
}

.works_detail_fv_ttl::after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #595959;
  margin: 16px 0;
}

.works_detail_fv_ttl_noline::after {
  content: none;
}

@media (min-width: 1025px) {
  .works_detail_fv_ttl::after {
    margin: 40px 0;
  }
}

.works_detail_fv_url_box{
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.works_detail_fv_url {
  font-size: 14px;
  font-family: "Oswald", sans-serif;
  letter-spacing: 1.5px;
  font-weight: 500;
  text-transform: uppercase;
  
}

.link_icon{
  width: 24px;
  height: 24px;
}

/* 制作概要 */
.works_summary_box {
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 16px;
  margin: 0;
  border-radius: 5px;
  background-image: url(../img/back.webp);
  background-size: cover;
  background-position: center;
}

@media (min-width: 1025px) {
  .works_summary_box {
    padding: 40px;
    gap: 40px;
  }
}

/* 見出しバー（summary/purpose/problem/target/content/design 共通。h2昇格に伴いh3相当のサイズを明示指定） */
.works_summary_ttl,
.works_purpose_ttl,
.works_problem_ttl,
.works_target_ttl,
.works_content_ttl,
.works_design_ttl {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(18px, 1.6667vw, 32px);
}

.works_summary_ttl::after,
.works_purpose_ttl::after,
.works_problem_ttl::after,
.works_target_ttl::after,
.works_content_ttl::after,
.works_design_ttl::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #a200ca;
}

@media (min-width: 1025px) {
  .works_summary_ttl::after,
  .works_purpose_ttl::after,
  .works_problem_ttl::after,
  .works_target_ttl::after,
  .works_content_ttl::after,
  .works_design_ttl::after {
    width: 100px;
    height: 5px;
  }
}

.works_summary_text::after{
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: #595959;
  margin-top: 16px;
}

@media (min-width: 1025px) {
  .works_summary_text::after {
    margin-top: 40px;
  }
}

.works_summary_meta_box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.works_summary_meta {
  color: #9a9a9a;
}

@media (min-width: 1025px) {
  .works_detail_group_a {
    margin-top: 80px;
    display: flex;
    flex-wrap: wrap;
    gap: 80px;
  }
}

/* 目的と対象 */
.works_purpose {
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 16px;
  margin: 0 16px 32px;
  border-radius: 5px;
  background-image: url(../img/back.webp);
  background-size: cover;
  background-position: center;
}

@media (min-width: 1025px) {
  .works_purpose {
    flex: 1 1 max(300px, calc((100% - 160px) / 3));
    padding: 40px;
    gap: 40px;
    margin: 0;
  }
}

/* 現状課題 */
.works_problem {
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 16px;
  margin: 0 16px 32px;
  border-radius: 5px;
  background-image: url(../img/back.webp);
  background-size: cover;
  background-position: center;
}

@media (min-width: 1025px) {
  .works_problem {
    flex: 1 1 max(300px, calc((100% - 160px) / 3));
    padding: 40px;
    gap: 40px;
    margin: 0;
  }
}

/* ターゲット */
.works_target {
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 16px;
  margin: 0 16px 32px;
  border-radius: 5px;
  background-image: url(../img/back.webp);
  background-size: cover;
  background-position: center;
}

@media (min-width: 1025px) {
  .works_target {
    flex: 1 1 max(300px, calc((100% - 160px) / 3));
    padding: 40px;
    gap: 40px;
    margin: 0;
  }
}

@media (min-width: 1025px) {
  .works_detail_group_b {
    margin-top: 80px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 80px;
  }
}

/* コンテンツ設計 */
.works_content {
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 16px;
  margin: 0 16px 32px;
  border-radius: 5px;
  background-image: url(../img/back.webp);
  background-size: cover;
  background-position: center;
}

@media (min-width: 1025px) {
  .works_content {
    flex: 1 1 max(400px, 45%);
    padding: 40px;
    gap: 40px;
    margin: 0;
  }
}

/* 意匠設計 */
.works_design {
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  gap: 16px;
  margin: 0 16px 32px;
  border-radius: 5px;
  background-image: url(../img/back.webp);
  background-size: cover;
  background-position: center;
}

@media (min-width: 1025px) {
  .works_design {
    flex: 1 1 max(400px, 45%);
    padding: 40px;
    gap: 40px;
    margin: 0;
  }
}

/* 実装イメージ */
.works_real {
  margin: 0 16px 32px;
  padding: 24px 16px;
  border-radius: 5px;
  background-image: url(../img/back.webp);
  background-size: cover;
  background-position: center;
}

@media (min-width: 1025px) {
  .works_real {
    margin: 80px 0 0;
    padding: 40px;
  }
}

.works_real_img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center;
}

@media (min-width: 1025px) {
  .works_real_img {
    height: 560px;
  }
}

.works_real_pair {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  height: 320px;
}

@media (min-width: 1025px) {
  .works_real_pair {
    gap: 24px;
    height: 560px;
  }
}

.works_real_pair img {
  display: block;
  height: 100%;
  width: auto;
  max-width: calc(50% - 8px);
  object-fit: contain;
  object-position: center;
}

@media (min-width: 1025px) {
  .works_real_pair img {
    max-width: calc(50% - 12px);
  }
}
