button {
  background: unset;
  transition: all 0.3s;
  padding: 0;
  opacity: 1;
}

button:disabled:hover {
  opacity: 1;
}
button:not([disabled]):hover {
  cursor: pointer;
  opacity: 0.8;
}
.zoom-btn {
  display: block;
  width: fit-content;
  height: fit-content;
  margin-top: 40px;
}

.note-zoom {
  font-size: var(--fz13) !important;
  margin-top: 12px;
}
/***************************************
画像拡大のモーダル
***************************************/
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background-color: rgba(80, 80, 80, 0.8);
  overflow: hidden;
  display: none;
}

.modal.active {
  display: block;
}

.modal-close-btn {
  display: block;
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 0;
  z-index: 100;
}

.modal-close-btn::before {
  content: '';
  display: block;
  width: 26px;
  height: 26px;
  background-image: url("/web3/assets/img/common/icon_close_modal.svg");
  background-repeat: no-repeat;
  background-size: contain;
}

.scrollable-container {
    width: 100%;
    height: 100%;
    overflow: auto;
}

.scroll-wrapper {
    min-width: 800px;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    position: relative;
}

.scroll-wrapper:has(.width-img-comparison) {
  min-width: 620px;
}

.scroll-wrapper .scroll-message {
  width: 100vw;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
}

.scroll-wrapper .scroll-message > div {
  background-color: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0,0,0,0.4);
  border-radius: 5px;
  display: grid;
  place-items: center;
  padding: 20px 10px 12px;
  min-width: 170px;
}

.scroll-wrapper .scroll-message > div > img {
  width: 36px;
}

.scroll-wrapper .scroll-message > div p {
  color: #fff;
  margin-top: 8px;
  font-size: var(--fz11);
}

.scroll-wrapper img {
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    object-fit: contain;
}

@media (min-width:768px) {
  .modal {
    display: none;
  }
}


.wrapper {
  width: calc(100% - 40px);
  max-width: 800px;
  margin: auto;

}
.article {
  margin: 30px auto 0;
}

.article p {
  font-size: 1rem;
}

.article p sup {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  background: var(--main);
  color: #fff;
  border-radius: 50%;
  font-size: var(--fz10);
  padding: 2px;
  position: relative;
  top: -2px;
}

.article h2 {
  font-size: var(--fz24);
  font-weight: 700;
  line-height: 1.5;
}

.article .hash-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--fz15);
  color: #8D99AE;
}

.article .lead {
  margin-top: 72px;
}

.article h3 {
  margin-top: 64px;
  font-size: var(--fz18);
  font-weight: 700;
  line-height: 1.5;
}

.article h3:first-of-type {
  margin-top: 56px;
}

.article h3 + p {
  margin-top: 14px;
  line-height: 2;
  letter-spacing: 0.06em;
}

.underline {
  text-decoration: underline;
}

.tips {
  margin-top: calc(58px - 100px);
  padding-top: 100px;
}

.tips-inner {
  position: relative;
  padding: 32px 20px;
  background: #EDF1F7;
  border-radius: 3px;
}

.tips h4 {
  position: absolute;
  top: 0;
  left: 9px;
  transform: translateY(-50%);
  color: #FFF;
  font-size: var(--fz15);
  line-height: 1.68;
  letter-spacing: 1px;
  border-radius: 2px;
  background: #2B2D42;
  padding: 5px 21px 4px 23px;
}

.tips h5 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 2.02;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tips h5:not(:first-of-type) {
  margin-top: 32px;
}

.tips h5 span {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: var(--main);
  color: #fff;
  font-size: var(--fz12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  top: -1px;
}

.article figcaption {
  color: #000;
  font-size: var(--fz14);
  font-family: Poppins, "Noto Sans JP", sans-serif;
  margin-bottom: 15px;
  text-align: left;
  line-height: 1.6;
}

.article p:last-child {
  padding-top: 0;
  margin-top: 16px;
}


@media (min-width:768px) {
  .wrapper {
    width: calc(100% - 92px);
  }
  .article {
    margin: 64px auto 0;
  }

  .article h2 {
    font-size: var(--fz32);
    /* font-weight: 700; */
    line-height: 1.75;
  }

  .article p {
    letter-spacing: 0.06em;
    margin-top: 16px;
  }

  .article .lead {
    margin-top: 80px;
  }

  .article h3 {
    margin-top: 40px;
  }

  .article h3 + p {
    margin-top: 12px;
  }

  .tips {
    margin-top: calc(58px - 120px);
    padding-top: 120px;
  }

  .tips-inner {
    padding: 32px 40px 36px;
  }

  .tips h5:not(:first-of-type) {
    margin-top: 16px;
  }

  .tips h5 span {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--main);
    color: #fff;
    font-size: var(--fz12);
    border-radius: 50%;
    display: grid;
    place-items: center;
  }

  .tips p {
    margin-top: 4px;
  }

}

/***************************************
あわせて読みたい
***************************************/
.related-articles {
  margin: 125px auto 0;
  position: relative;
  background: linear-gradient(93deg, #F7F8FF 0%, #EDEFF6 100%);
}

.related-articles h2 {
  background: #2B2D42;
  color: #fff;
  width: fit-content;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fz18);
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-100%);
}

.related-articles h2::before {
  content: '';
  display: inline-block;
  width: 17px;
  height: 21px;
  background-image: url('../img/icon_article.svg');
  background-repeat: no-repeat;
  background-size: contain;
}
  
.related-articles a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 28px 20px 32px;
}

.related-articles img {
  width: 100%;
}

.related-articles p {
  margin-top: 22px;
  font-size: 1rem;
}

.related-articles .list-item-link-arrow {
  margin-top: 8px;
  background-color: #4E62B4;
  position: static;
}

.related-articles .list-item-link-arrow-inner::after {
  content: none;
}

@media (min-width:768px) {
  .related-articles {
    margin: 125px auto 0;
    position: relative;
    background: linear-gradient(93deg, #F7F8FF 0%, #EDEFF6 100%);
  }

  .related-articles a {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 52px 40px;
  }

  .related-articles img {
    display: block;
    width: 187px;
    height: auto;
  }

  .related-articles p {
    margin-top: 0;
    font-size: var(--fz18);
    flex: 1;
  }

  .related-articles .list-item-link > div {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
  }
  
  /* .related-articles .list-item-link-arrow {
    margin: 0 0 0 32px;
  } */
}

/***************************************
その他の活用事例
***************************************/
.case-studies-articles {
  margin: 120px auto 0;
}

.case-studies-articles h2 {
  font-size: var(--fz24);
}

.case-studies-list {
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.case-studies-list li {
  background: #fff;
  border: 1px solid #E3E3E3;
  overflow: hidden;
}

.case-studies-item-img-wrapper {
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 340 / 191;
}

.case-studies-item-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
  transition-timing-function: cubic-bezier(0.33,1,0.68,1);
}

.case-studies-list li article {
  width: 100%;
  height: 100%;
}

.case-studies-list li a {
  display: block;
  width: 100%;
  height: 100%;
  padding-bottom: 32px;
}

.case-studies-list li a:hover {
  opacity: 1;
}

.case-studies-list li a:hover .case-studies-item-img {
  transform: scale(1.06);

}

.case-studies-list li a .case-studies-item-texts {
  padding: 20px 20px 30px;
  min-height: 180px;
}

.case-studies-list li h3 {
  color: #2b2d42;
  font-size: var(--fz18);
  font-weight: 700;
  line-height: 1.5;
}

.case-studies-list li p {
  margin-top: 12px;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.list-item-link-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #2B2D42;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 20px;
  bottom: 16px;
}

.list-item-link-arrow-inner {
  width: 12px;
  height: 12px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.list-item-link-arrow img {
  position: absolute;
  width: 16px;
  height: auto;
}
.list-item-link-arrow-inner::before,
.list-item-link-arrow-inner::after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  background-image: url('/web3/assets/img/top/arrow_white.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center center;
}

.list-item-link-arrow-inner::before {
  transition: transform 0.4s;
  transition-timing-function: cubic-bezier(0.65,0,0.35,1);
}

.case-studies-list li a:hover .list-item-link-arrow-inner::before {
  transform: translateX(50px);
}

.list-item-link-arrow-inner::after {
  transition: transform 0.4s;
  transition-timing-function: cubic-bezier(0.65,0,0.35,1);
  transform: translateX(-100px);
}

.case-studies-list li a:hover .list-item-link-arrow-inner::after{
  transition: transform 0.4s;
  transform: translateX(0px);
}

.btn-general {
  margin: 80px auto 0;
}

@media (min-width: 600px) {
  .case-studies-list {
    grid-template-columns: 1fr 1fr;
  }
}
 

@media (min-width: 768px) {
  .case-studies-articles {
    padding: 64px 0 0;
    margin: 48px auto 0;
  }
  
  .case-studies-list {
    gap: 40px;
    margin: 0;
    margin-top: 48px;
    max-width: 100%;
    gap: clamp(40px, 5.56vw, 80px);
  }

  .btn-general {
    margin-top: 88px;
  }
  
  [lang="en"] .btn-general {
    padding-left: 40px;
    padding-right: 60px;
  }
}

