@charset "UTF-8";

/* ===============================================
HOME
=============================================== */
/*------------------*
流れる文字　thank
------------------*/
.flow_txt {
  display: flex;
  padding-inline: 0;
  border-top: 1px solid var(--txt-color);
  border-bottom: 1px solid var(--txt-color);
  overflow: hidden;
  padding: 16px;
}

.flow_txt p {
  color: var(--m-color);
  font-family: var(--en-font);
  font-size: 1.4rem;
  font-weight: bold;
  padding: 0 1em 0 0;
  white-space: nowrap;
  line-height: 1em;
  margin-top: 0;
}

.loop {
  display: flex;
  gap: 16px;
  animation: loop-text 20s linear infinite;
}

@keyframes loop-text {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* sp 679px */

@media screen and (max-width: 768px) {
  .flow_txt p {
    margin-top: 0;
  }
}

/* 679pc */

/*------------------*
MV
------------------*/
.mv {
  text-align: center;
  /* height: 650px; */
}

/* ===============================================
つくったもの
=============================================== */
#works {
  background-color: var(--bs-color);
  padding: 6% 0 64px;
  margin-bottom: 7%;
}

#works h2 {
  margin-bottom: 32px;
}

.underline {
  border-bottom: double var(--txt-color) 4px;
}

/*------------------*
タブ
------------------*/
.tab_area {
  width: 100%;
  max-width: 400px;
  display: flex;
  gap: 32px;
  align-items: center;
  cursor: pointer;
}

.tab {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.85;
  border: 1px solid var(--txt-color);
  border-radius: 50px;
  padding: 0 24px;
}

@media (hover: hover) {
  .tab:hover {
    transform: scale(1.1);
    transition: 0.5s;
  }
}

.tab.active {
  background-color: var(--m-color);
  color: #fff;
  transition: 0.5s;
}

.works_item {
  display: none;
}

.item_area {
  margin-top: 40px;
}

.works_item.active {
  display: block !important;
}
.under_works--img .item_area {
  margin-top: 0;
}

.under_works--img .tab {
  border-radius: 10px 20px 0 0;
  border-bottom: 0;
}

.under_works--img .tab.sub {
  border-left: 0;
}

.under_works--img .tab.sub.tab.active {
  background-color: #5e89ff;
}

.under_works--img .tab_area {
  gap: 0;
  padding-left: 1.5%;
  max-width: 600px;
}

@media screen and (max-width: 768px) {
  .tab_area {
    gap: 16px;
    cursor: unset;
  }

  .tab {
    padding: 0 16px;
  }

  .under_works--img .tab_area {
    gap: 0;
    padding-left: 1.5%;
    justify-content: flex-end;
  }

  .under_works--img .works_btn {
    margin-left: 3%;
  }

  .under_works--img .tab.sub,
  .under_works--img .tab.active {
    font-size: 1.6rem;
  }

  #works .tab_area {
    flex-wrap: wrap;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .under_works--img .tab_area {
    justify-content: flex-start;
  }
}

/* ここまで */

.item_container {
  display: grid;
  align-items: center;
  border: 1px solid var(--txt-color);
  grid-template-columns: repeat(3, 1fr);
}

.item {
  display: grid;
  grid-template-rows: auto auto 1fr; /* 画像, キャプション, テキスト */
  align-items: start; /* 上から揃える */
}

.works_item .item figure {
  display: flex;
  align-items: center;
  height: 200px;
}

.item figure {
  margin: 0;
}

.item figure img {
  max-height: 200px;
  object-fit: contain;
  margin: 0 auto;
}

.item figcaption {
  margin-top: 0.5rem;
}

#works .item {
  border-right: 1px solid var(--txt-color);
  background-color: #fff;
  padding: 2.4rem 9.6% 2.4rem;
  height: 100%;
}

#works .item img {
  display: block;
  transition: transform 0.5s ease;
}

@media (hover: hover) {
  #works .item img:hover {
    transform: translateY(-10px);
    filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.3));
  }
}

#works .item:last-of-type {
  border-right: none;
}

.category {
  width: fit-content;
  padding: 0 16px;
  border-radius: 50px;
  margin-top: 16px;
  font-size: 1.4rem;
}

.category--blue {
  background-color: var(--m-color);
}

.category--yellow {
  background-color: var(--ac-color);
}

@media screen and (max-width: 768px) {
  #works {
    background-color: var(--bs-color);
    padding: 17% 0 0;
  }

  #works .item_container {
    display: block;
  }

  #works .item {
    width: 100%;
    border-right: transparent;
    border-bottom: var(--border);
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #works {
    padding: 6% 0 0;
  }
}

/* ===============================================
わたしについて HOME
=============================================== */
/*------------------*
abuot　流れる文字
------------------*/
#about {
  position: relative;
  margin-bottom: 11%;
  padding-top: 3%;
}

#about .flow_txt {
  display: flex;
  width: 100%;
  padding-inline: 0;
  border-top: unset;
  border-bottom: unset;
  overflow: hidden;
  position: absolute;
  top: 20%;
  z-index: -1;
}

#about .flow_txt p {
  color: transparent;
  -webkit-text-stroke: 1px var(--m-color);
  font-family: var(--en-font);
  font-size: 15rem;
  padding: 0 1em 0 0;
  white-space: nowrap;
  line-height: 1em;
  z-index: -1;
}

#about .loop {
  display: flex;
  gap: 16px;
  animation: loop-text 20s linear infinite;
}

@keyframes loop-text {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* ここまで */

#about .container {
  margin: 0 auto;
  border: var(--border);
  border-radius: 20px;
  background-color: var(--m-color);
}

.about {
  padding: 2.4rem 9.6% 2.4rem;
}

.about,
.skill {
  position: relative;
  padding: 2.4rem 3.2% 2.4rem;
}

.about h2 {
  background-color: #fff;
  border-bottom: var(--border);
  border-right: var(--border);
  border-bottom-right-radius: var(--radius);
  width: fit-content;
  padding: 1rem 8%;
  margin: 0 0 3.2rem;
  position: absolute;
  top: -0.2rem;
  left: -0.2rem;
}

.wrapper_about {
  display: flex;
  align-items: center;
  gap: 6%;
}

.profile_img {
  width: 100%;
  max-width: 280px;
  margin: 9.3rem auto 0;
  border-radius: 50%;
}

.circle_txt {
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
  margin-top: 3%;
}

.about h3 {
  color: #ffffff;
  margin-top: 24px;
}

.about .txt {
  margin-top: 32px;
}

.more {
  display: block;
  margin: 3.2rem;
}

.more a {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  font-weight: 600;
  color: var(--txt-color);
  text-decoration: none;
  max-width: 240px;
  width: 100%;
  margin: 0 auto;
  background-color: var(--bs-color);
  border: var(--border);
  border-radius: 50%;
  padding: 3px 24px;
  position: relative;
  transition: 0.3s;
}

.more a::after {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--txt-color);
  border-right: 1px solid var(--txt-color);
  transform: rotate(45deg);
  position: absolute;
  right: 16%;
  transition: 0.2s;
}

.more_emoji {
  display: inline-block;
}

@media (hover: hover) {
  .more a:hover {
    background-color: var(--m-color);
    color: #fff;
  }

  .more a:hover::after {
    right: 14%;
  }

  .more a:hover .more_emoji {
    display: inline-block;
    transform: scale(-1, 1);
    transition: transform 0.3s;
  }
}

/* sp 769px */
@media screen and (max-width: 768px) {
  #about .container {
    margin: 0 6%;
  }

  #about {
    margin-bottom: 24%;
    padding-top: 17%;
  }

  .about,
  .skill {
    width: 100%;
    background-color: var(--m-color);
    border-radius: 20px;
    position: relative;
    padding: 32px 16px;
  }

  .about {
    margin-bottom: 0;
  }

  .about h2 {
    padding: 1rem 24px;
  }

  .about h3 {
    text-align: left;
    font-size: 1.9rem;
  }

  .wrapper_about {
    display: block;
  }
  .item--skill:last-of-type {
    padding-top: 8% 2% 10%;
  }
}
/* 769px */

/* ipad */
@media (min-width: 768px) and (max-width: 1100px) {
  .wrapper_about {
    display: flex;
    align-items: center;
    gap: 3%;
  }

  #about {
    margin-bottom: 20%;
    padding-top: 8%;
  }

  .about {
    padding: 6% 4%;
  }

  .skill {
    padding: 0 4% 6%;
  }

  .item--skill {
    padding: 2.4% 0 0 !important;
  }

  .item--skill:last-of-type {
    padding-top: 6% !important;
  }

  .more {
    margin-top: 2%;
  }
}
/* ipad end */

/*------------------*
できること
------------------*/

.skill.flex {
  align-items: flex-start;
  gap: 6%;
  flex-direction: row-reverse;
}

.about::before {
  content: "About";
  font-size: 12rem;
  font-weight: bold;
  color: var(--m-color);
  background-clip: text;
  font-family: var(--en-font);
  position: absolute;
  top: -30%;
  right: 0;
  z-index: -1;
  filter: drop-shadow(1px 0 var(--txt-color))
    drop-shadow(-1px 0 var(--txt-color)) drop-shadow(0 1px var(--txt-color))
    drop-shadow(0 -1px var(--txt-color));
}

.skill h2 {
  background-color: var(--ac-color);
  border-bottom: var(--border);
  border-right: var(--border);
  border-radius: 20px 0 0 0;
  border-bottom-right-radius: var(--radius);
  width: fit-content;
  padding: 0.8rem 8%;
  position: absolute;
  top: -0.3rem;
  left: -0.3rem;
}

.skill h3 {
  font-weight: 500;
  padding-left: 3.2rem;
  position: relative;
}

.skill h3::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  background-color: var(--ac-color);
  position: absolute;
  left: 0;
  top: 50%;
}

.skill .skill_item {
  padding-right: 3.2%;
}

.skill_item .item--skill:last-child h4 {
  padding-top: 2.4rem;
}

.skill_item h4 {
  color: #5e89ff;
  font-weight: bold;
}

.item--skill {
  padding: 3.2% 2% 0;
}

.item--skill:last-of-type {
  padding: 5% 2% 0;
}

.item--skill:last-of-type::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--txt-color);
  border-radius: 20px;
}

.item--skill:nth-of-type(2) h3 {
  margin-top: 32px;
}

.skill_icon {
  background-color: rgba(255, 239, 148, 0.7);
  border-radius: var(--radius);
  height: fit-content;
  min-width: 280px;
  margin-top: 2rem;
  padding: 2.4rem 0.8%;
}

.skill_icon .contents {
  gap: 0 !important;
}

.skill .category {
  font-size: 1.2rem;
}

.skill_icon .item {
  align-items: center;
}

.skill_icon .item img {
  display: block;
  text-align: center;
  max-width: 50%;
}

.skill_icon .txt_box:first-of-type p {
  padding-top: 0 !important;
  font-size: 1.2rem;
}

.sub {
  position: relative;
  padding-left: 16%;
  font-weight: 500;
  margin-bottom: 1.6rem;
}

@media (max-width: 768px) {
  .skill {
    width: 100%;
  }

  .skill::before {
    display: none;
  }

  .skill h2 {
    padding: 1rem 64px;
  }
  .item--skill {
    padding: 8% 2% 10%;
  }

  .about::before {
    font-size: 8rem;
    font-weight: bold;
    top: -12%;
    right: 0;
    z-index: -1;
  }

  .skill_icon {
    min-width: unset;
    margin: 3.2rem 0 0;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .about::before {
    top: -23%;
  }
}

/* 下層↓ */

/* ===============================================
わたしについて
=============================================== */
.container--under {
  max-width: 1050px;
  margin: 0 auto;
  padding: 0 1.6%;
}

.container--under h2 {
  margin-top: 8%;
}

.wrapper_profile {
  padding: 5.6rem 2.6%;
  border: var(--border);
  border-radius: var(--radius);
  background-color: #fff;
}

.profile {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 5.3%;
  position: relative;
  z-index: 0;
}

.profile .item--img {
  max-width: 370px;
  position: relative;
  z-index: 0;
}

.container--img {
  width: 270px;
  height: 325px;
  background-color: var(--bs-color);
  border: 1px solid var(--txt-color);
  border-radius: var(--radius);
  rotate: -15deg;
  position: relative;
  left: -15%;
  z-index: 1;
}

.container--img::before {
  content: "Ogawa Mayu";
  display: block;
  font-family: var(--en-font);
  color: var(--m-color);
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  width: 100%;
  position: absolute;
  bottom: 10px;
  text-indent: 0.5rem;
  z-index: 2;
}

.container--img::after {
  content: "";
  display: block;
  background-color: var(--txt-color);
  width: 100%;
  height: 1px;
  position: absolute;
  bottom: 50px;
  z-index: 2;
}
.img_shape {
  border-radius: 50%;
}
.img_bg {
  content: "";
  display: block;
  width: 270px;
  height: 325px;
  background-color: var(--m-color);
  border-radius: var(--radius);
  rotate: -8deg;
  position: absolute;
  top: 0;
  right: 15%;
  z-index: -1;
}

.profile .txt {
  width: 67%;
}

.mbti {
  width: 100%;
  max-width: 160px;
  padding: 5px 6% 5px 3%;
  text-align: center;
  border: var(--border);
  border-radius: 50px;
  margin: 0 auto;
  position: absolute;
  bottom: 22%;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.5s;
}

.mbti:hover {
  background-color: #33a474;
  border: 1px solid #fff;
  color: var(--bs-color);
}

.profile .mbti p {
  margin-top: 0;
  font-weight: bold;
}

.about .txt h3 {
  padding-left: 0;
  margin-bottom: 3.2rem;
}

.about .title_underline:after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ac-color);
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
}

.txt h3 {
  font-weight: bold;
  padding-left: 2.4rem;
  margin-bottom: 2.4rem;
  position: relative;
}

.container--under .txt h3::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background-color: var(--ac-color);
  border-radius: 50px;
  position: absolute;
  left: 0;
  top: 12px;
}

.txt_box:first-of-type p {
  padding-top: 32px;
  position: relative;
}

.txt .txt_box:first-of-type p::before {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ac-color);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.profile .txt .txt_box {
  margin-bottom: 32px;
}

.profile .txt .txt_box:last-of-type {
  margin-bottom: 0;
  margin-top: 6.4%;
}

.txt_box h4 {
  font-weight: 700;
}

.txt_marker {
  width: fit-content;
  height: 3px;
  background: linear-gradient(transparent 50%, #ffef94 80%);
}

.txt_box .txt_large {
  font-weight: bold;
  line-height: 2.55;
}

.tool .category {
  width: 100%;
}

.tool h3 {
  margin-bottom: 32px;
  font-weight: bold;
}

.bg {
  border: var(--border);
  border-radius: var(--radius);
}

.bg_blue {
  background-color: var(--m-color);
  width: 100%;
  padding: 8px;
  position: relative;
}

.bg_blue::before {
  content: "TOOL";
  font-size: 12rem;
  font-weight: bold;
  color: var(--m-color);
  background-clip: text;
  font-family: var(--en-font);
  position: absolute;
  top: -13%;
  right: 0;
  z-index: -1;
  filter: drop-shadow(1px 0 var(--txt-color))
    drop-shadow(-1px 0 var(--txt-color)) drop-shadow(0 1px var(--txt-color))
    drop-shadow(0 -1px var(--txt-color));
}

.bg_white {
  background-color: var(--bs-color);
  width: 100%;
  padding: 56px 3% 64px;
  margin: 0 auto;
}

.tool .contents,
.skill_icon .contents {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 横2列 */
  grid-template-rows: repeat(2, 1fr); /* 縦2列 */
  gap: 20px; /* 各カードの余白 */
  padding: 0;
  margin: 0;
  list-style: none;
}

.tool .item,
.skill_icon .item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 16px;
  box-sizing: border-box;
  height: 100%;
}

.tool .item img {
  max-width: 60px;
  height: auto;
}

.tool .txt_box {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tool .txt_box p {
  padding-top: 0;
}

.gallery {
  display: grid;
  grid-template-columns: 30% 30% 30%;
  grid-template-areas:
    "A A C"
    "D E E";
  gap: 10px;
  justify-content: center;
}

.gallery .photoA {
  grid-area: A;
}

.hoverMask-parent {
  position: relative;
  overflow: hidden;
}

/* 画像 */
.hoverMask-parent img {
  display: block;
  width: 100%;
  height: auto;
}

/* オーバーレイ */
.hoverMask {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.hoverMask-parent:hover .hoverMask {
  opacity: 1 !important;
}

.gallery .photoB {
  grid-area: B;
}

.gallery .photoC {
  grid-area: C;
}

.gallery .photoD {
  grid-area: D;
}

.gallery .photoE {
  grid-area: E;
}

.gallery .photoF {
  grid-area: F;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#like {
  background-color: var(--bs-color);
  padding: 2% 3%;
  margin: 10% 0;
}
/* sp 769px */
@media (max-width: 768px) {
  .container--under {
    max-width: 768px;
    padding: 0 6%;
  }

  .container--under_profile {
    max-width: 675px;
    width: 87%;
    padding: 0 1.6%;
    margin: 0 auto;
  }

  .container--img {
    rotate: unset;
    left: 0;
    margin: 0 auto;
  }

  .txt h3 {
    padding-left: 0;
    margin-bottom: 2.4rem;
  }

  .container--under .txt h3::before {
    display: none;
  }

  .img_bg {
    rotate: unset;
    top: 2%;
    right: 9%;
  }

  .profile {
    display: block;
    position: relative;
    z-index: 0;
  }

  .profile .img_shape {
    width: 90%;
  }

  .profile figure {
    display: flex;
    justify-content: center;
    margin-top: 6%;
  }

  .profile .txt {
    width: 100%;
    padding: 64px 1.6% 0;
  }

  .mbti {
    width: fit-content;
    position: unset;
    bottom: unset;
    left: unset;
    transform: unset;
    margin: 48px auto 0;
    padding: 5px 8% 5px 6%;
  }

  .txt_box .txt_large {
    line-height: 1.55;
  }

  .sp-space {
    display: block;
    margin-top: 16px;
  }

  .tool {
    margin-top: 64px;
  }

  .tool h3 {
    text-align: center;
  }

  .tool .contents {
    display: block;
  }

  .tool .item {
    display: block;
    width: 100%;
    margin-bottom: 32px;
    font-size: 1.6rem;
    text-align: center;
  }

  .tool .category {
    margin: 16px auto;
  }

  .tool .txt_box:first-of-type p {
    padding-top: 0;
  }

  .tool .txt_box {
    text-align: left;
  }

  .bg_blue {
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
  }

  .bg_blue::before {
    font-size: 8rem;
    top: -70px;
  }

  .hoverMask {
    font-size: 1.4rem;
    text-align: left;
    padding-left: 7px;
  }
}

/* 678px end */

/* ipad */
@media (min-width: 768px) and (max-width: 1024px) {
  .profile {
    display: flex;
  }

  .img_bg {
    top: 0;
    right: 10%;
    rotate: -10deg;
  }

  .container--img {
    rotate: -5deg;
    left: -5%;
  }

  .bg_blue {
    width: calc(100vw - 64px);
    margin-left: calc(50% - 50vw + 32px);
  }

  .skill_icon .contents {
    grid-template-columns: 2fr minmax(50%, 1fr); /* 横2列 */
  }

  .sub {
    padding-left: 12%;
  }
}

/*------------------*
強み
------------------*/
.strength h2 {
  width: fit-content;
  border: var(--border);
  border-radius: 50px;
  background-color: var(--m-color);
  color: #fff;
  padding: 3px 5%;
  margin: 32px auto;
}

.strength p {
  margin-top: 32px;
}

.strength .title {
  display: flex;
  align-items: center;
}

.strength .title::before,
.strength .title::after {
  content: "";
  height: 1px;
  background-color: var(--txt-color);
  flex-grow: 1;
}

.strength .contents {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6%;
  margin-top: 5.6rem;
}

.strength h3 {
  font-weight: bold;
}

.strength .item {
  background-color: var(--m-color);
  border: var(--border);
  border-radius: var(--radius);
  position: relative;
  padding: 3.2rem 6.2%;
}

.strength .item > h3 {
  width: 100%;
  max-width: 200px;
  text-align: center;
  padding: 8px 5%;
  background-color: #fff;
  border: 1px solid var(--txt-color);
  border-radius: 50px;
  position: absolute;
  top: -5%;
  left: 50%;
  transform: translateX(-50%);
}

/* sp 769px */
@media (max-width: 768px) {
  .strength .contents {
    display: block;
    margin-top: 2.4rem;
  }

  .strength .item {
    width: 100%;
    margin-top: 64px;
  }

  .strength .item:first-child {
    margin-top: 0;
  }
}

/* 679px end */

/* ===============================================
下層 つくったもの
=============================================== */
#under_works .wrapper {
  width: 100%;
  margin-top: 64px;
}

.table {
  min-width: 900px;
  margin: 0 auto;
}

.table tr {
  border-bottom: 1px dashed var(--txt-color);
}

.table tr th {
  border-right: 1px dashed var(--txt-color);
  font-size: 2rem;
  width: 25%;
}

.table tr th,
.table tr td {
  padding: 16px 4%;
}

.table tr td ul li {
  list-style-type: circle;
  list-style-position: inside;
  margin-left: 1.4em;
  text-indent: -1.4em;
}

.under_works--img {
  width: 100%;
  max-width: 1200px;
  margin: 64px auto;
}

.under_works--img .contents {
  margin: 0 1%;
}

.under_works--img .bg_blue::before {
  display: none;
}

.under_works--img .framw_img {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3%;
}

.framw_img img {
  width: 100%;
}

.frame {
  overflow: hidden;
  overflow-y: scroll;
  box-shadow: 0px 0px 9px -2px rgba(119, 119, 119, 0.4);
}

.bnr_img {
  margin: 0 auto;
  box-shadow: 0px 0px 9px -2px rgba(119, 119, 119, 0.4);
}

.bnr_img img {
  max-width: 648px;
}

.framw_img {
  margin: 30px 0;
  position: relative;
}

.framw_img .pcimg {
  width: 735px;
  aspect-ratio: 1440 / 875;
}

.pcimg::after {
  content: "PC";
  display: block;
  width: fit-content;
  font-size: 1.6rem;
  font-weight: bold;
  position: absolute;
  bottom: -10%;
  background-color: var(--ac-color);
  padding: 3px 3%;
  border-radius: var(--radius);
}

.framw_img .spimg {
  width: 375px;
  aspect-ratio: 375 / 450;
}

.spimg::after {
  content: "SP";
  display: block;
  width: fit-content;
  font-size: 1.6rem;
  font-weight: bold;
  position: absolute;
  bottom: -10%;
  background-color: var(--ac-color);
  padding: 3px 3%;
  border-radius: var(--radius);
}

/* ページボタン */
.page_btn {
  display: flex;
  justify-content: space-evenly;
  margin-top: 6%;
}

.back_btn,
.next_btn {
  border: var(--border);
  border-radius: 50px;
  padding: 8px 3%;
  position: relative;
  overflow: hidden;
  color: var(--txt-color);
  background: transparent;
  z-index: 1;
}

.back_btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--txt-color);
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s ease;
  z-index: -1;
}

.next_btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--txt-color);
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: -1;
}

.back_btn:hover::before,
.next_btn:hover::before {
  transform: scaleX(1);
}

.back_btn:hover,
.next_btn:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .under_works--img {
    padding: 0 6%;
  }
  .under_works--img .framw_img {
    display: block;
  }

  .framw_img img {
    width: 100%;
  }

  .framw_img .pcimg,
  .framw_img .spimg {
    width: 100%;
  }

  .pcimg::after,
  .spimg::after {
    font-size: 1.4rem;
    top: -4rem;
    bottom: unset;
    padding: 3px 3%;
  }

  .spimg::after {
    top: 56vw;
  }

  .framw_img .spimg {
    max-width: 375px;
    aspect-ratio: 375 / 550;
    margin: 72px auto;
  }
}

/* scroll */
.scroll {
  display: block;
  position: relative;
  margin: 16px 0 64px;
}

.scroll-text {
  position: absolute;
  color: #333;
  font-size: 14px;
  text-align: center;
  transform: rotate(90deg);
}

.scroll-border {
  position: relative;
  top: 20px;
  width: 1px;
  height: 60px;
  background-color: #d5d5d5;
  overflow: hidden;
}

.scroll-border::before {
  content: "";
  display: block;
  position: absolute;
  width: 1px;
  height: 30px;
  top: 0;
  left: 0;
  right: 0;
  background: #333;
  animation: scrollbar 2s ease-in-out infinite;
  margin: auto;
}

@keyframes scrollbar {
  0% {
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
  }

  100% {
    -webkit-transform: translateY(350%);
    transform: translateY(350%);
  }
}

/* end */

.under_works--fotter {
  background-color: rgba(var(--m-color-rgb), 0.5) !important;
  margin-top: 128px;
}

.under_works--fotter p {
  margin-bottom: 32px;
}

/* sp 679px */
@media (max-width: 768px) {
  #works .wrap {
    width: 100%;
  }

  .table {
    min-width: 351px;
    margin: 0 auto;
  }

  .table,
  tbody,
  tr,
  td,
  th {
    width: 100%;
    display: block;
  }

  .table tr th {
    border-right: unset;
    border-bottom: 1px dashed var(--txt-color);
    background-color: rgba(var(--m-color-rgb), 0.3);
    font-size: 2rem;
    width: 100%;
  }

  /* scroll */
  .scroll-text {
    transform: unset;
    padding-left: 3%;
  }

  .scroll-border {
    height: 50px;
    top: 10px;
  }

  .scroll-border::before {
    content: "";
    display: block;
    position: absolute;
    width: 1px;
    height: 15px;
    top: 0;
    left: 0;
    right: 0;
    background: #333;
    animation: scrollbar 2s ease-in-out infinite;
    margin: auto;
  }

  /* end */
}

@media (min-width: 768px) and (max-width: 1024px) {
  #works .wrap {
    width: auto;
  }
}

/* 679px */
.wrapper {
  display: flex;
  justify-content: center;
}

/* ===============================================
下層 movie
=============================================== */

.movie {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 960px;
}
