.works-inner-01 {
  width: 88.888%;
  max-width: 1100px;
  margin: 0 auto 15rem;
}

.works-inner-03 {
  width: 88.888%;
  max-width: 1100px;
  margin: 0 auto 20rem;
}

.works-category {
  color: var(--sub-color);
  letter-spacing: 0.05em;
}

.works-inner-01 h2 {
  text-align: left;
  font-weight: 500;
  line-height: unset;
  font-size: clamp(1.5rem, 2vw, 2.5rem);
}

.works-thumbnail {
  margin-bottom: 3rem;
}

.works-mockup {
  position: relative;
}

/* 枠 */
.works-mockup-frame {
  border: 1px solid var(--sub-color);
  padding: 1rem;
  height: 800px;
  max-width: 1100px;
  margin-inline: auto;
}

.works-mockup-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.works-mockup-scroll picture {
  display: block;
  padding-right: 1rem;
}

.works-mockup-scroll img {
  width: 100%;
  height: auto;
  display: block;
}

/* スクロールバー */
.works-mockup-scroll::-webkit-scrollbar {
  width: 8px;
}

.works-mockup-scroll::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 9999px;
}

.works-mockup-scroll::-webkit-scrollbar-thumb {
  background: #b8b8b8;
  border-radius: 9999px;
}

.works-mockup-scroll::-webkit-scrollbar-thumb:hover {
  background: #999;
}


/* SCROLL文字 */
.works-scroll-text {
  position: absolute;
  top: 40px;
  right: -45px;
  display: flex;
  align-items: start;
  gap: 1rem;
  color: var(--sub-color);
}

/* scroll文字 */
.scroll-text {
  writing-mode: vertical-rl;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* 矢印本体 */
.scroll-arrow {
  position: relative;
  display: inline-block;
  width: 1px;
  height: 100px;
  border-radius: 100vh;
  background-color: var(--sub-color);
}

/* 矢印先端 */
.scroll-arrow::before,
.scroll-arrow::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: calc(50% - .5px);
  width: 1px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--sub-color);
  transform-origin: 50% calc(100% - .5px);
}

/* 左側 */
.scroll-arrow::before {
  transform: rotate(45deg);
}

/* 右側 */
.scroll-arrow::after {
  transform: rotate(-45deg);
}



/* はみ出し枠 */
.about-heading {
  position: relative;
  width: min(240px, 90%);
  padding: .5rem;
  border-top: 1px solid var(--sub-color);
  border-bottom: 1px solid var(--sub-color);
  flex-shrink: 0;
}

.about-heading::before,
.about-heading::after {
  content: "";
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 1px;
  background: var(--sub-color);
}

/* 左の縦線 */
.about-heading::before {
  left: 5px;
}

/* 右の縦線 */
.about-heading::after {
  right: 5px;
}

.about-heading h3 {
  text-align: center;
  font-size: clamp(1.6rem, 2vw, 1.8rem);
  color: var(--sub-color);
  font-weight: 400;
}

.works-content-text {
  display: flex;
  align-items: flex-start;
  gap: 6rem;
}


/* タブ切り替え */
.works-mockup-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.mockup-tab {
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: .08em;
  color: #999;
}

.mockup-tab.is-active {
  color: var(--main-color);
  text-decoration: underline;
}

#mockup-picture {
  opacity: 1;
}

#mockup-picture.is-show {
  animation: mockupFade .9s ease;
}

@keyframes mockupFade {
  from {
    opacity: .4;
  }

  to {
    opacity: 1;
  }
}



/* 関連制作実例 */
/* ========================================
related-list
======================================== */
.related-list {
  width: 88.888%;
  max-width: 1100px;
  margin: 0 auto;
}

/* ライン */
.related-list-line {
  width: 100%;
  height: 1px;
  background: var(--sub-color);
  margin-bottom: 8rem;
}

/* 横並び */
.related-list-inner {
  display: flex;
  gap: 4rem;
  margin-bottom: 5rem;
}

/* 各アイテム */
.related-item {
  width: calc(50% - 15px);
}

/* カテゴリー */
.related-item .works-category {
  margin-bottom: 1rem;
  color: var(--sub-color);
  letter-spacing: 0.08em;
}

/* 画像 */
.related-thumb {
  display: block;
  overflow: hidden;
  margin-bottom: 14px;
  background: #f5f5f5;
}

.related-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.related-thumb:hover img {
  transform: scale(1.03);
}

/* PREV / NEXT */
.related-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 40px;
  border: 1px solid #AAB5A7;
  font-size: clamp(1.5rem, 1.8vw, 2rem);
  letter-spacing: 0.08em;
  color: #AAB5A7;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.related-button:hover {
  background: #AAB5A7;
  color: #ffffff;
}

.related-list .circle-link {
  justify-content: center;
}





/* =========================
TABLET
========================= */
@media screen and (max-width: 1100px) {

  .works-inner-03 {
    margin-bottom: 10rem;
  }
}

/* =========================
SP
========================= */
@media screen and (max-width: 767px) {

  .works-content {
    margin-bottom: 5rem;
  }

  .works-inner-01,
  .works-inner-03,
  .related-list {
    width: 85%;
    margin: 0 auto;
  }

  .works-title {
    line-height: 1.4;
    margin-bottom: 1rem;
  }

  .works-thumbnail {
    margin-bottom: 2rem;
  }

  .works-inner-01,
  .works-inner-02 {
    margin-bottom: 5rem;
  }

  .works-scroll-text {
    display: none;
  }

  .works-mockup-frame {
    height: 300px;
  }

  .works-mockup-nav {
    gap: 1rem 2.5rem;
  }

  .works-content-text {
    flex-direction: column;
    gap: 2rem;
  }

  .about-heading {
    margin: 0 auto;
  }
}


/* 関連制作実例 */
@media screen and (max-width: 767px) {

  .related-list-line {
    margin-bottom: 3rem;
  }

  .related-list-inner {
    gap: 1rem;
    margin-bottom: 2rem;
  }

  .related-item {
    width: 100%;
  }

  .related-item .works-category {
    margin-bottom: .5rem;
  }

  .related-button {
    height: 30px;
  }

}



/* case-003のレイアウト */
.works-gallery {
  display: flex;
  justify-content: center;
  gap: 8rem;
  margin-bottom: 8rem;
}

.works-gallery-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 450px;
}

.works-gallery-column-signboard img {
  display: block;
  width: 60%;
  height: auto;
  border: 1px solid #ebebeb;
}

.works-gallery-column-namecard img {
  display: block;
  width: 94%;
  height: auto;
}

.signboard-images {
  border: 1px solid var(--sub-color);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.namecard-images {
  border: 1px solid var(--sub-color);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem;
}


@media (max-width:768px) {

  .works-gallery {
    flex-direction: column;
    gap: 4rem;
    margin-bottom: 3rem;
  }

  .works-content-text {
    flex-direction: column;
    gap: 2rem;
  }

}


/* case-004 モバイルファーストレイアウト */
.works-mockup-mobilefirst {
  position: relative;
  margin-bottom: 10rem;
}

.works-mobilefirst-frame {
  position: relative;
  border: 1px solid var(--sub-color);
  overflow: hidden;
  padding: .5rem .5rem 0;
}

.works-mobilefirst-pc {
  display: block;
  width: 100%;
}

.works-mockup-mobilefirst .mobilefirst-scroll {
  top: 0px;
}

/* SP画像エリア */
.works-mobilefirst-screen {
  position: absolute;
  top: 1%;
  left: 37%;
  width: 26.5%;
  height: 100%;
  overflow-y: auto;

  scrollbar-width: auto;
  -ms-overflow-style: auto;
}

.works-mobilefirst-screen::-webkit-scrollbar {
  width: 8px;
}

.works-mobilefirst-screen::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, .04);
  border-radius: 9999px;
}

.works-mobilefirst-screen::-webkit-scrollbar-thumb {
  background: #b8b8b8;
  border-radius: 9999px;
}

.works-mobilefirst-screen img {
  display: block;
  width: 100%;
}

/* スマホ */

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

  .works-mobilefirst-pc {
    display: none;
  }

  .works-mobilefirst-screen {
    position: static;
    width: 100%;
    height: 70vh;
    overflow-y: auto;
  }

  .works-mockup-mobilefirst {
    margin-bottom: 3rem;
  }
}