@charset "utf-8";


/* ==================================================
   CASE DETAIL PAGE
================================================== */

.page-about:has(.newsDetail) {
  width: 100%;

  padding-top: 145px;

  background-color: #FFFFFF;
}


/* ==================================================
   PAGE HEAD
================================================== */

.page-about:has(.newsDetail) > .common-head {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: min(calc(100% - 80px), 1200px);

  margin: 0 auto;

  text-align: center;
}

.page-about:has(.newsDetail)
> .common-head
.common-head__jp {
  justify-content: center;
}

.page-about:has(.newsDetail)
> .common-head
.common-head__en {
  color: var(--color-button);

  font-size: clamp(52px, 5.5vw, 72px);
}


/* ==================================================
   BREADCRUMB
================================================== */

.page-about:has(.newsDetail)
> .about-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px;

  width: min(calc(100% - 80px), 1024px);

  margin: 65px auto 0;
  padding: 0;
}

.page-about:has(.newsDetail)
> .about-breadcrumb a,
.page-about:has(.newsDetail)
> .about-breadcrumb p {
  margin: 0;

  color: var(--color-text);

  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;

  text-decoration: none;
}


/* ==================================================
   NEWS AREA
================================================== */

.page-about:has(.newsDetail) .news {
  width: 100%;

  margin: 0;
  padding: 0;

  background-color: #FFFFFF;
}

.page-about:has(.newsDetail) .news-main {
  width: 100%;

  margin: 0;
  padding: 0;
}

.page-about:has(.newsDetail)
.news-main
> .webgene-blog {
  width: 100%;

  margin: 0;
  padding: 0;
}


/* ==================================================
   DETAIL
================================================== */

.newsDetail {
  width: 100%;

  margin: 0;
  padding: 3rem 0;

  background-color: #FFFFFF;
}


/* ==================================================
   DETAIL WRAP
================================================== */

.newsDetail-wrap {
  width: min(calc(100% - 80px), 900px);

  margin: 0 auto;
  padding: 0;
}


/* ==================================================
   TITLE AREA
================================================== */

.newsDetail-wrap-title {
  width: 100%;

  margin: 0 0 36px;
  padding: 0;
}


/* ==================================================
   META
================================================== */

.newsDetail-wrap-title .newsItemText {
  display: flex;
  align-items: center;

  width: 100%;

  margin: 0 0 20px;
}


/* Category
---------------------------------------- */

.newsDetail-wrap-title .newsItemCate {
  order: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 72px;
  min-height: 24px;

  margin: 0;
  padding: 4px 12px;

  color: #FFFFFF !important;
  background-color: var(--color-button);

  border-radius: 4px;

  font-family: var(--font-base);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
}


/* Date
---------------------------------------- */

.newsDetail-wrap-title .newsItemTime {
  order: 2;

  margin: 0 0 0 auto;

  color: #777777;

  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;

  letter-spacing: 0.02em;
}


/* ==================================================
   TITLE
================================================== */

.newsDetailTit {
  width: 100%;

  margin: 0;
  padding: 0;

  color: var(--color-text);

  font-family: var(--font-base);
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 500;

  line-height: 1.55;
  letter-spacing: 0.02em;
}


/* ==================================================
   MAIN IMAGE
================================================== */

.newsDetailImg {
  width: 100%;

  margin: 0;
  padding: 0;
}

.newsDetailImg:empty {
  display: none;
}

.newsDetailImg img {
  display: block;

  width: 100%;
  height: auto;

  max-height: 600px;

  margin: 0;

  object-fit: cover;

  border-radius: 24px;
}


/* ==================================================
   GALLERY
================================================== */

.newsDetailGallery {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 16px;

  width: 100%;

  margin-top: 24px;
}

.newsDetailGallery:empty {
  display: none;
}

.newsDetailGallery__item {
  width: 100%;

  overflow: hidden;

  border-radius: 12px;
}

.newsDetailGallery__item:empty {
  display: none;
}

.newsDetailGallery__item img {
  display: block;

  width: 100%;
  height: 180px;

  object-fit: cover;
}


/* ==================================================
   CONTENT
   1つ目のテキストコンテンツ
================================================== */

.newsDetailTxt {
  width: min(100%, 760px);

  /* アイキャッチとの余白 */
  margin: 60px auto 0;
  padding: 0;

  color: var(--color-text);

  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 400;

  line-height: 2;
  letter-spacing: 0.02em;
}

.newsDetailTxt:empty {
  display: none;
}


/* Paragraph
---------------------------------------- */

.newsDetailTxt p {
  margin: 0 0 24px;
}

.newsDetailTxt p:last-child {
  margin-bottom: 0;
}


/* H2
---------------------------------------- */

.newsDetailTxt h2 {
  margin:
    56px
    0
    24px;

  color: var(--color-button);

  font-family: var(--font-base);
  font-size: 24px;
  font-weight: 600;

  line-height: 1.6;
}


/* H3
---------------------------------------- */

.newsDetailTxt h3 {
  margin:
    44px
    0
    20px;

  padding-bottom: 12px;

  color: var(--color-text);

  border-bottom: 1px solid var(--color-border);

  font-family: var(--font-base);
  font-size: 20px;
  font-weight: 500;

  line-height: 1.6;
}


/* H4
---------------------------------------- */

.newsDetailTxt h4 {
  margin:
    34px
    0
    16px;

  color: var(--color-text);

  font-family: var(--font-base);
  font-size: 17px;
  font-weight: 500;

  line-height: 1.6;
}


/* Image
---------------------------------------- */

.newsDetailTxt img {
  display: block;

  max-width: 100%;
  height: auto;

  margin: 30px auto;

  border-radius: 12px;
}


/* Link
---------------------------------------- */

.newsDetailTxt a {
  color: var(--color-button);

  text-decoration: underline;
  text-underline-offset: 3px;
}


/* List
---------------------------------------- */

.newsDetailTxt ul,
.newsDetailTxt ol {
  margin: 24px 0;

  padding-left: 1.5em;
}

.newsDetailTxt li {
  margin: 8px 0;

  line-height: 1.9;
}


/* Table
---------------------------------------- */

.newsDetailTxt table {
  width: 100%;

  margin: 32px 0;

  border-collapse: collapse;

  font-size: 14px;
}

.newsDetailTxt th,
.newsDetailTxt td {
  padding: 14px;

  border: 1px solid var(--color-border);
}

.newsDetailTxt th {
  background-color: #EAF5FF;

  font-weight: 500;
}


/* ==================================================
   COMMENT
   2つ目のテキストコンテンツ
================================================== */

.newsDetailComment {
  width: min(100%, 760px);

  /* 1つ目のコンテンツとの余白 */
  margin: 44px auto 0;

  padding:
    26px
    30px;

  color: var(--color-text);
  background-color: #E6F3FF;

  border-radius: 16px;

  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 400;

  line-height: 2;
  letter-spacing: 0.02em;
}

.newsDetailComment:empty {
  display: none;
}

.newsDetailComment p {
  margin: 0;
}

.newsDetailComment p + p {
  margin-top: 16px;
}


/* ==================================================
   MOVIE
================================================== */

.newsDetailMovie {
  width: min(100%, 760px);

  margin: 40px auto 0;
}

.newsDetailMovie:empty {
  display: none;
}

.newsDetailMovie iframe,
.newsDetailMovie video {
  display: block;

  width: 100%;
  height: auto;

  aspect-ratio: 16 / 9;

  border: 0;
  border-radius: 16px;
}


/* ==================================================
   PDF
================================================== */

.newsDetailPdf {
  width: min(100%, 760px);

  margin: 36px auto 0;
}

.newsDetailPdf:empty {
  display: none;
}

.newsDetailPdf .pdfLink {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;

  padding:
    10px
    48px
    10px
    18px;

  color: var(--color-button) !important;
  background-color: #FFFFFF;

  border: 1px solid var(--color-button);
  border-radius: 8px;

  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 500;

  line-height: 1.4;

  text-decoration: none;

  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

.newsDetailPdf .pdfLink::after {
  content: "→";

  position: absolute;

  top: 50%;
  right: 18px;

  transform: translateY(-50%);
}


@media (hover: hover) {

  .newsDetailPdf .pdfLink:hover {
    color: #FFFFFF !important;
    background-color: var(--color-button);
  }

}


/* ==================================================
   BACK BUTTON
================================================== */

.newsDetail-pagelink {
  width: min(100%, 760px);

  margin: 55px auto 0;
}

.newsDetail-pagelink a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 190px;
  min-height: 48px;

  padding:
    10px
    22px;

  color: #FFFFFF !important;
  background-color: var(--color-button);

  border: 1px solid var(--color-button);
  border-radius: 10px;

  font-family: var(--font-base);
  font-size: 13px;
  font-weight: 500;

  line-height: 1.4;

  text-decoration: none;

  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}


@media (hover: hover) {

  .newsDetail-pagelink a:hover {
    color: var(--color-button) !important;
    background-color: #FFFFFF;
  }

}


/* ==================================================
   TABLET
================================================== */

@media screen and (max-width: 1024px) {

  .page-about:has(.newsDetail) {
    padding-top: 130px;
  }


  /* Page Head
  ---------------------------------------- */

  .page-about:has(.newsDetail)
  > .common-head,
  .page-about:has(.newsDetail)
  > .about-breadcrumb {
    width: min(calc(100% - 60px), 900px);
  }


  /* Detail
  ---------------------------------------- */

  .newsDetail {
    padding:
      75px
      0
      105px;
  }

  .newsDetail-wrap {
    width: min(calc(100% - 60px), 820px);
  }


  /* Gallery
  ---------------------------------------- */

  .newsDetailGallery {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* ==================================================
   SP
================================================== */

@media screen and (max-width: 768px) {

  .page-about:has(.newsDetail) {
    padding-top: 110px;
  }


  /* ==================================================
     PAGE HEAD
  ================================================== */

  .page-about:has(.newsDetail)
  > .common-head {
    width: calc(100% - 40px);
  }

  .page-about:has(.newsDetail)
  > .common-head
  .common-head__en {
    font-size: 46px;
  }


  /* ==================================================
     BREADCRUMB
  ================================================== */

  .page-about:has(.newsDetail)
  > .about-breadcrumb {
    width: calc(100% - 40px);

    margin-top: 42px;
  }


  /* ==================================================
     DETAIL
  ================================================== */

  .newsDetail {
    padding:
      55px
      0
      90px;
  }

  .newsDetail-wrap {
    width: calc(100% - 40px);
  }


  /* ==================================================
     TITLE AREA
  ================================================== */

  .newsDetail-wrap-title {
    margin-bottom: 28px;
  }


  /* Meta
  ---------------------------------------- */

  .newsDetail-wrap-title
  .newsItemText {
    margin-bottom: 14px;
  }

  .newsDetail-wrap-title
  .newsItemCate {
    min-width: 64px;
    min-height: 22px;

    padding:
      4px
      9px;

    font-size: 9px;
  }

  .newsDetail-wrap-title
  .newsItemTime {
    font-size: 10px;
  }


  /* Title
  ---------------------------------------- */

  .newsDetailTit {
    font-size: 22px;

    line-height: 1.6;
  }


  /* ==================================================
     MAIN IMAGE
  ================================================== */

  .newsDetailImg img {
    border-radius: 16px;
  }


  /* ==================================================
     GALLERY
  ================================================== */

  .newsDetailGallery {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;

    margin-top: 16px;
  }

  .newsDetailGallery__item {
    border-radius: 10px;
  }

  .newsDetailGallery__item img {
    height: 120px;
  }


  /* ==================================================
     CONTENT
  ================================================== */

  .newsDetailTxt {
    margin-top: 38px;

    font-size: 14px;

    line-height: 1.9;
  }

  .newsDetailTxt p {
    margin-bottom: 20px;
  }

  .newsDetailTxt h2 {
    margin:
      44px
      0
      20px;

    font-size: 21px;
  }

  .newsDetailTxt h3 {
    margin:
      36px
      0
      18px;

    font-size: 18px;
  }

  .newsDetailTxt h4 {
    font-size: 16px;
  }


  /* ==================================================
     COMMENT
  ================================================== */

  .newsDetailComment {
    margin-top: 30px;

    padding:
      20px
      18px;

    border-radius: 14px;

    font-size: 14px;

    line-height: 1.9;
  }


  /* ==================================================
     MOVIE
  ================================================== */

  .newsDetailMovie {
    margin-top: 30px;
  }

  .newsDetailMovie iframe,
  .newsDetailMovie video {
    border-radius: 12px;
  }


  /* ==================================================
     PDF
  ================================================== */

  .newsDetailPdf {
    margin-top: 30px;
  }

  .newsDetailPdf .pdfLink {
    min-height: 46px;

    font-size: 12px;
  }


  /* ==================================================
     BACK
  ================================================== */

  .newsDetail-pagelink {
    margin: 2rem auto;
    display: flex;
  }

  .newsDetail-pagelink a {
    min-width: 170px;
    min-height: 46px;
    margin: 0 auto;

    font-size: 12px;
  }

}


/* ==================================================
   SMALL SP
================================================== */

@media screen and (max-width: 480px) {

  .page-about:has(.newsDetail)
  > .common-head,
  .page-about:has(.newsDetail)
  > .about-breadcrumb,
  .newsDetail-wrap {
    width: calc(100% - 32px);
  }


  /* Gallery
  ---------------------------------------- */

  .newsDetailGallery {
    grid-template-columns: 1fr;
  }

  .newsDetailGallery__item img {
    height: auto;

    aspect-ratio: 1.5 / 1;
  }


  /* Comment
  ---------------------------------------- */

  .newsDetailComment {
    padding:
      18px
      16px;
  }

}