@charset "UTF-8";

html {
  font-size: 62.5%;
}

@media screen and (max-width: 1500px) {
  html {
    font-size: 0.625vw;
  }
}

body {
  background-color: #f2f7fb;
  font-family: "Noto Sans JP","forma-djr-display", sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: .1rem;
  color: #383838;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

h2 {
  font-size: 3.6rem;
}

h3 {
  font-size: 3rem;
}

h4 {
  font-size: 2.4rem;
}

p {
  line-height: 1.7;
}

dt {
  font-size: 2.4rem;
  font-weight: 500;
}

dd {
  font-size: 1.6rem;
}

/* ===============共通=============== */
main,
.SSPortfolio_works_wrapper,
.SSPortfolio_about_wrapper,
.SSPortfolio_about_skill_wrapper,
.SSPortfolio_about_strength_wrapper,
.SSPortfolio_about_biography_wrapper,
.SSPortfolio_about_favorites_wrapper {
  position: relative;
}

/* スクロールフェードイン */
.js_fade_in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  transition-delay: .5s;
}

.fade_in_active {
  opacity: 1;
  transform: translateY(0);
}

/* 通常フェードイン */
.fadein_up{
  animation-name:fadeinUpAnime;
  animation-duration:1s;
  animation-fill-mode:forwards;
  opacity:0;
  }
  
  @keyframes fadeinUpAnime{
    from {
      opacity: 0;
      transform: translateY(20px);
    }
  
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

/* カーテンエフェクト */
/* メイン */
.label_effect::before {
  animation-name: label_anime;
  animation-duration: 1s;
  animation-fill-mode: both;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 7.4rem;
  height: 100%;
  background-color: #383838;
  z-index: 10;
}

@keyframes label_anime {
  0% {
    transform-origin: top;
    transform: scaleY(0);
  }
  50% {
    transform-origin: top;
    transform: scaleY(1);
  }
  50.1% {
    transform-origin: bottom;
  }
  100% {
    transform-origin: bottom;
    transform: scaleY(0);
  }
}

.title_effect {
  animation-name: text_anime;
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

@keyframes text_anime {
  0% {
    clip-path: inset(0 0 100% 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* サブ */
.sub_label_effect::before {
  animation-name: sub_label_anime;
  animation-duration: 1s;
  animation-fill-mode: both;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 3.2rem;
  height: 100%;
  background-color: #383838;
  z-index: 10;
}

@keyframes sub_label_anime {
  0% {
    transform-origin: top;
    transform: scaleY(0);
  }
  50% {
    transform-origin: top;
    transform: scaleY(1);
  }
  50.1% {
    transform-origin: bottom;
  }
  100% {
    transform-origin: bottom;
    transform: scaleY(0);
  }
}

.sub_title_effect_trigger {
  opacity: 0;
}

.sub_title_effect {
  animation-name: sub_text_anime;
  animation-duration: 1s;
  animation-fill-mode: both;
  opacity: 1;
}

@keyframes sub_text_anime {
  0% {
    clip-path: inset(0 0 100% 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.side_title {
  font-family: "forma-djr-display" ,sans-serif;
  font-size: 8.2rem;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: sideways;
  white-space: nowrap;
  z-index: 1;
  position: absolute;
  top: -12rem;
  padding-top: 0.3rem;
}

.sub_title {
  font-size: 3.2rem;
  writing-mode: vertical-rl;
  vertical-align: baseline;
  text-orientation: upright;
  position: absolute;
  bottom: 0;
  left: -1.8rem;
}

.left_side {
  position: absolute;
  left: -15rem;
}

.right_side {
  position: absolute;
  right: -15rem;
}

.works_background h1,
.about_background h1 {
  color: rgba(0, 0, 0, 0);
  writing-mode: vertical-rl;
  font-family: "forma-djr-display" ,sans-serif;
  font-size: 51.2rem;
  font-weight: 700;
  line-height: 0;
  -webkit-text-stroke: .7px #bbe2f1;
  text-stroke: .5px #bbe2f1;
  position: absolute;
  top: 0;
  left: 17rem;
  z-index: -2;
}

/* ヘッダー */
.header_wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 2rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  transition: transform 0.5s ease; /* フッター到達時にヘッダーを出し入れする時のアニメーション */
}

.icon img {
  display: block;
  width: 6rem;
}

.nav_links {
  display: flex;
  align-items: center;
  gap: 80px;
}

.nav_links li a {
  font-family: "forma-djr-display" ,sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
}

.nav_links li a::after {
  content: "";
  display: block;
  border-bottom: 2px solid #383838;
  transition: all .5s ease-in;
  transform: scaleX(0);
  transform-origin: left;
}

.nav_links li a:hover::after {
  transform: scaleX(1);
}

.hamburger_menu {
  cursor: pointer;
  display: none;
}

.hamburger_menu div {
  width: 25px;
  height: 3px;
  background-color: #383838;
  margin: 5px;
  transition: all .5s ease;
}

.line_active {
  background-color: #FFFFFF !important;
}

/* 1本目の線を315度回転させて斜めにする */
.line_active:nth-child(1) {
  transform: rotate(315deg) translate(-5px, 6px);
}

/* 2本目の線を透過させて消す */
.line_active:nth-child(2) {
  opacity: 0;
}

/* 3本目の線を-315度回転させて斜めにする */
.line_active:nth-child(3) {
  transform: rotate(-315deg) translate(-5px, -6px);
}

.icon_active {
  filter: brightness(0) saturate(100%) invert(88%) sepia(26%) saturate(79%) hue-rotate(184deg) brightness(106%) contrast(97%);
}

/* フッター */
.footer_wrapper {
  color: #FFFFFF;
  width: 100%;
  margin-top: 20rem;
  background-color: #bbe2f1;
  border-radius: 15rem 0 0 0;
  position: relative;
  overflow: hidden;
}

.footer_nav {
  font-family: "forma-djr-display" ,sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  padding: 4rem 6rem 5rem 15rem;
}

.footer_nav  ul {
  display: flex;
}

.footer_nav ul li {
  margin-right: 50px;
}

.footer_nav ul li a::after {
  content: "";
  display: block;
  border-bottom: 2px solid #f2f7fb;
  transition: all .5s ease-out;
  transform: scaleX(0);
  transform-origin: left;
}

.footer_nav ul li a:hover::after {
  transform: scaleX(1);
}

.toppage {
  position: relative;
}

/* 文字だけ縦書きにする */
.toppage a {
  writing-mode: vertical-rl;
}

/* divに対しての疑似要素 */
.toppage a::after {
  content: "";
  width: .15rem;
  height: 16rem;
  background-color: #FFFFFF;
  display: block;
  position: absolute;
  top: -4rem;
  left: -.3rem;
}

.toppage a:hover::after {
  animation: verticalMoving 1.5s linear infinite;
}

@keyframes verticalMoving {
  0% {
    transform: scaleY(1);
    transform-origin: top;
  }
  50% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50.1% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

.footer_msg p {
  display: inline-block;
  color: rgba(0, 0, 0, 0);
  font-family: "forma-djr-display" ,sans-serif;
  font-size: 10.8rem;
  font-weight: 700;
  line-height: 100%;
  -webkit-text-stroke: 1px #FFFFFF;
  text-stroke: 1px #FFFFFF;
  white-space: nowrap;
  padding-left: 100%;
  animation: wordMovingRL 12s linear infinite;
}

@keyframes wordMovingRL {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.copylight {
  display: block;
  text-align: center;
  font-size: 1.5rem;
  margin-top: 5rem;
}

/* ===============TOP PAGE============== */
/* メインビジュアル */
.SSPortfolio_mv {
  height: 100svh;
  display: flex;
  align-items: center;
}

.mv_wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5rem 0 3rem;
  display: flex;
  justify-content: center;
}

.mv_title_wrapper {
  font-family: "forma-djr-display" ,sans-serif;
  font-size: 9.6rem;
  font-weight: 700;
  letter-spacing: 0.25rem;
  line-height: 100%;
  white-space: nowrap;
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
}

.mv_title {
  position: relative;
  left: -5rem;
}

.mv_title_outline {
  color: #f2f7fb;
  -webkit-text-stroke: .15rem #383838;
  text-stroke: .15rem #383838;
  position: relative;
  left: 10rem;
}

/* カーテンエフェクト */
/* MVタイトル */
.mv_title_effect::before {
  animation-name: mv_label_anime;
  animation-duration: 1s;
  animation-delay: 1.5s;
  animation-fill-mode: both;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 7.4rem;
  width: 100%;
  height: 100%;
  background-color: #383838;
  z-index: 10;
}

@keyframes mv_label_anime {
  0% {
    transform-origin: left;
    transform: scaleX(0);
  }
  50% {
    transform-origin: left;
    transform: scaleX(1);
  }
  50.1% {
    transform-origin: right;
  }
  100% {
    transform-origin: right;
    transform: scaleX(0);
  }
}

.mv_title_effect {
  animation-name: mv_text_anime;
  animation-duration: 0.8s;
  animation-delay: 1.5s;
  animation-fill-mode: both;
}

@keyframes mv_text_anime {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* MVアウトライン */
.mv_outline_effect::before {
  animation-name: mv_label_anime;
  animation-duration: 1s;
  animation-delay: 2.3s;
  animation-fill-mode: both;
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 7.4rem;
  width: 100%;
  height: 100%;
  background-color: #f2f7fb;
  border: 1px solid #383838;
  z-index: 10;
}

@keyframes mv_label_anime {
  0% {
    transform-origin: left;
    transform: scaleX(0);
  }
  50% {
    transform-origin: left;
    transform: scaleX(1);
  }
  50.1% {
    transform-origin: right;
  }
  100% {
    transform-origin: right;
    transform: scaleX(0);
  }
}

.mv_outline_effect {
  animation-name: mv_text_anime;
  animation-duration: 0.8s;
  animation-delay: 2.3s;
  animation-fill-mode: both;
}

@keyframes mv_text_anime {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

.mv_wrapper img {
  border-radius: 7rem 0 7rem 0;
  width: 60%;
  animation-name: mv_fade;
  animation-duration: 2s;
  animation-fill-mode: both;
  z-index: -1;
}

@keyframes mv_fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* WORKS */
.SSPortfolio_works {
  position: relative;
}

.SSPortfolio_works_wrapper {
  margin: 40rem auto 0;
  width: 70%;
  max-width: 1240px;
}

.site_list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 0 3rem;
}

.site_list_item {
  width: 45%;
  margin-bottom: 10rem;
}

.site_list_img {
  overflow: hidden;
  border-radius: .7rem;
  box-shadow: .2rem .2rem 10px 2px rgba(128, 128, 128, .1);
}

.site_list_img img {
  transition: .3s ease-in;
}

.site_list_img img:hover {
  transform: scale(1.08);
}

.site_list_txt {
  margin-top: 30px;
}

.site_list_txt h3 {
  font-size: 2.4rem;
  font-weight: 500;
}

.site_list_txt p {
  margin-top: 1rem;
}

/* ABOUT */
.SSPortfolio_about {
  position: relative;
}

.SSPortfolio_about_wrapper {
  max-width: 1100px;
  width: 70%;
  margin: 40rem auto;
}

.profile {
  margin: 0 5rem;
  display: flex;
  justify-content: space-between;
  gap: 10rem;
}

.profile img {
  border-radius: 7rem 0 7rem 0;
  width: 60%;
}

.profile_txt_wrapper {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-content: space-between;
  width: 80%;
}

.profile_txt {
  margin-top: 7rem;
}

.profile_txt h3 {
  font-size: 3rem;
  font-weight: 500;
}

.furigana {
  font-size: 1.6rem;
  font-weight: 400;
  margin-left: 2rem;
}

.profile_txt p {
  margin-top: 3rem;
}

.about_link {
  font-size: 2rem;
  letter-spacing: .2rem;
  display: block;
  align-self: flex-end;
  margin-top: 2rem;
}

.about_link::after {
  content: "";
  display: block;
  width: 115%;
  height: .5rem;
  border-bottom: 1.5px solid #383838;
}

.about_link:hover::after {
  animation: horizontalMoving 1.5s linear infinite;
}

@keyframes horizontalMoving {
  0% {
    transform: scaleX(1);
    transform-origin: right;
  }
  50% {
    transform: scaleX(0);
    transform-origin: right;
  }
  50.1% {
    transform: scaleX(0);
    transform-origin: left;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* ==============WORKS PAGE============== */
.SSPortfolio_works_site {
  position: relative;
}

.SSPortfolio_works_site_wrapper {
  max-width: 955px;
  width: 70%;
  margin: 25rem auto 0;
}

.works_site_title {
  text-align: center;
  margin-top: 10rem;
}

.works_site_summary {
  margin-top: 6rem;
}

.works_site_txt dt {
  margin: 9rem 0 1.7rem;
}

/* サイトスクリーンショット */
.SSPortfolio_works_ss {
  max-width: 955px;
  width: 70%;
  margin: 15rem auto 0;
  display: flex;
  justify-content: space-between;
  gap: 14rem;
}

.SSPortfolio_works_ss dt {
  font-size: 2.4rem;
  font-weight: 500;
  padding-bottom: 1rem;
}

/* バナースクリーンショット */
.works_ss_baner {
  width: 60%;
  margin: 0 auto;
}

/* スクリーンショットに影を付ける */
.works_ss_pc img,
.works_ss_sp img,
.works_ss_baner img {
  margin-bottom: 10rem;
  box-shadow: .2rem .2rem 10px 2px rgba(128, 128, 128, .1);
}

/*  ページネーション */
.works_pager {
  width: 100%;
  margin: 25rem auto 10rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.4rem;
  font-weight: 700;
  text-align: center;
}

.works_prev_wrapper,
.works_next_wrapper,
.works_num {
  width: 100%;
}

.works_prev_wrapper {
  text-align: right;
  margin-right: 2rem;
}

.works_next_wrapper {
  text-align: left;
  margin-left: 2rem;
}

.works_prev,
.works_next {
  position: relative;
  display: inline-block;
}

.works_prev {
  padding-left: 3.5rem;
}

.works_next {
  padding-right: 3.5rem;
}

.works_prev::after,
.works_next::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2.4rem;
  background-color: #383838;
  position: absolute;
  top: 10%; 
}

.works_prev::after {
  left: 0;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
}

.works_next::after {
  right: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.works_num {
  position: relative;
  width: 4rem;
  height: 4rem;
  background-color: #383838;
  border-radius: 100%;
  line-height: 4rem;
  text-align: center;
  vertical-align: text-bottom;
  flex-shrink: 0;
}

.page_num {
  color: #FFFFFF;
  font-family: "forma-djr-display", sans-serif;;
  font-size: 2.8rem;
  font-weight: 500;
}

/* ==============ABOUT PAGE============== */
.SSPortfolio_about_mv {
  position: relative;
}

.SSPortfolio_about_mv_wrapper {
  max-width: 780px;
  width: 50%;
  margin: 25rem auto 0;
}

.about_profile_img {
  display: block;
  margin: 0 auto;
  border-radius: 7rem 0 7rem 0;
}

.about_profile_txt {
  width: 100%;
  margin: 0 auto;
}

.about_profile_txt {
  margin-top: 8rem;
}

.about_profile_name h3 {
  font-weight: 500;
  text-align: center;
}

.furigana {
  font-size: 1.8rem;
}

.about_profile_name p {
  margin-top: 6rem;
}

.about_profile_favorite {
  margin-top: 6rem;
}

.about_profile_favorite h3 {
  font-family: "forma-djr-display" ,sans-serif;
  font-weight: 500;
}

.about_profile_favorite p {
  margin-top: 1.5rem;
}

/* できること */
.SSPortfolio_about_skill {
  position: relative;
}

.SSPortfolio_about_skill_wrapper {
  max-width: 1130px;
  width: 70%;
  margin: 40rem auto 0;
}

.skill_wrapper {
  width: 90%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
}

.design,
.coding {
  width: 40%;
}

.design_icon,
.coding_icon {
  width: 25rem;
  height: 25rem;
  margin: 0 auto;
  background-color: #bbe2f1;
  border-radius: 100%;
  position: relative;
}

.design_icon img,
.coding_icon img {
  width: 12.8rem;
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.skill_wrapper h3 {
  font-weight: 500;
  text-align: center;
  margin-top: 2.4rem;
}

.skill_wrapper h4 {
  font-weight: 500;
}

.coding_txt_wrapper,
.design_txt_wrapper {
  margin-top: 10rem;
}

.coding_txt_wrapper p,
.design_txt_wrapper p {
  margin-top: 5rem;
}

.use_tool p {
  margin-top: .5rem;
}

/* 私の強み */
.SSPortfolio_about_strength {
  position: relative;
}

.SSPortfolio_about_strength_wrapper {
  max-width: 1240px;
  width: 70%;
  margin: 40rem auto 0;
  padding-bottom: 40rem;
}

.strength_wrapper {
  width: 85%;
  margin: 0 auto;
}

.strength_icon {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.strength_01_icon,
.strength_02_icon,
.strength_03_icon {
  width: 25rem;
  height: 25rem;
  color: #FFFFFF;
  background-color: #bbe2f1;
  text-align: center;
  display: flex;
  justify-content: space-around;
  flex-direction: column;
  align-items: center;
  border-radius: 5rem;
}

.strength_01_icon img,
.strength_02_icon img,
.strength_03_icon img {
  width: 12rem;
}

.strength_01_icon span,
.strength_02_icon span,
.strength_03_icon span {
  font-size: 2.5rem;
}

.strength_txt {
  margin: 20rem auto 0;
}

.strength_01_txt,
.strength_02_txt,
.strength_03_txt {
  margin-top: 10rem;
}

.strength_txt h3 {
  font-weight: 500;
  border-bottom: .2rem solid #bbe2f1;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}

/* ----------------------今までのこと---------------------- */
.SSPortfolio_about_biography {
  position: relative;
  padding: 50rem 0; /* 横スクロールする要素を中央に寄せる */
  overflow-x: hidden;
}

.SSPortfolio_about_biography_wrapper {
  width: 82vw;
}

.SSPortfolio_about_biography_wrapper .right_side {
  position: absolute;
  top: -33rem;
  right: -18rem;
}

.biography_title {
  position: absolute;
  top: 12rem;
}

.biography_contaner {
  max-width: 1200px;
  width: 70%;
  height: 455px;
  margin: 0 auto;
  position: relative;
}

.biography_item dt {
  font-weight: 500;
}

.biography_item dd {
  margin-top: 2rem;
}

/* dlをGridレイアウトにする */
.biography_item_wrapper {
  position: absolute;
  margin-top: -10rem;
  padding-right: 27rem;
  display: grid;
  grid-auto-columns: max-content; /* 横幅が一番大きい要素に幅をデフォルトにする */
  grid-auto-flow: column; /* グリッドアイテムの配置方向を縦方向に変更 */
  grid-template-rows: auto auto; /* トラックの寸法を自動計算(最大高さに合わせる) */
}

.biography_item {
  width: 45rem;
  position: relative;
}

/* 2番目から始まり2個目まで埋めて終わる */
.biography_item:nth-child(2) {
  grid-column: 2 / span 2;
}

/* 4番目から始まり2個目まで埋めて終わる */
.biography_item:nth-child(3) {
  grid-column: 4 / span 2;
  align-self: flex-end; /* 線を合わせるために要素を一番下に下げる */
}

/* 6番目から始まり2個目まで埋めて終わる */
.biography_item:nth-child(4) {
  grid-column: 6 / span 2;
}

/* 8番目から始まり2個目まで埋めて終わる */
.biography_item:nth-child(5) {
  grid-column: 8 / span 2;
  align-self: flex-end; /* 線を合わせるために要素を一番下に下げる */
} 

/* (偶数要素を)下段に下げる ※2番目から始まり1個まで埋めて終わる */
.biography_item:nth-child(even) {
  grid-row: 2 / span 1;
}

/* 線 */
.biography_item:nth-child(odd) {
  padding: 0 5rem 5rem 0;
  border-bottom: 2px solid #bbe2f1;
}

.biography_item:nth-child(even) {
  padding: 5rem 5rem 0 0;
  border-top: 2px solid #bbe2f1;
  position: relative;
  top: -2px;
}

/* 最後の要素の線を消す */
.biography_item:last-child {
  border-bottom: none;
}

/* 最後の線を疑似要素を使って伸ばす */
.biography_item:last-child::after {
  content: "";
  display: block;
  border-bottom: 2px solid #bbe2f1;
  width: 100vw;
  position: relative;
  top: 5rem;
}

/* 点 */
.biography_item::before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background-color: #bbe2f1;
  border-radius: 50%;
  position: absolute;
  left: -1rem; /* 点を左にずらす */
}

/* 奇数要素の点配置 */
.biography_item:nth-child(odd)::before {
  bottom: -0.9rem;
}

/* 偶数要素の点配置 */
.biography_item:nth-child(even)::before {
  top: -0.8rem;
}

.biography_item:last-child::before {
  bottom: -0.7rem;
}

/* 好きな9枚 */
.SSPortfolio_about_favorites {
  position: relative;
}

.SSPortfolio_about_favorites_wrapper {
  max-width: 1240px;
  width: 80%;
  margin: 40rem auto 0;
}

.SSPortfolio_about_favorites_wrapper .left_side {
  left: -7.5rem;
}

.favorite_contaner {
  margin: 0 5rem;
}

.favorites_gallary {
  width: 85%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 1.5rem;
}

.favorites_gallary li {
  position: relative;
  overflow: hidden;
  border-radius: 0.8rem;
}

.favorites_gallary img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
}

.favorites_gallary li:hover img {
  transform: scale(1.1);
}

.item_01 {
  grid-area: 1 / 1 / 2 / 2;
}

.item_02 {
  grid-area: 1 / 2 / 2 / 3;
}

.item_03 {
  grid-area: 1 / 3 / 2 / 4;
}

.item_04 {
  grid-area: 2 / 1 / 3 / 2;
}

.item_05 {
  grid-area: 2 / 2 / 3 / 4;
}

.item_06 {
  grid-area: 3 / 1 / 4 / 2;
}

.item_07 {
  grid-area: 3 / 2 / 4 / 3;
}

.item_08 {
  grid-area: 3 / 3 / 5 / 4;
}

.item_09 {
  grid-area: 4 / 1 / 5 / 3;
}

.item_05 img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 50% 13%;
  width: 100%;
  height: 100%;
}

.item_08 img {
  aspect-ratio: 1 / 2;
  object-fit: cover;
  object-position: 30% 50%;
}

.item_09 img {
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 50% 50%; 
}

.hover_txt h3 {
  font-size: 2.2rem;
  font-weight: 500;
}

.hover_txt p {
  white-space: pre-wrap;
  font-weight: 300;
  margin-top: 2rem;
}

.hover_txt {
  width: 100%;
  height: 100%;
  padding: 2rem;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  color: #f2f7fb;
  background-color: rgba(0, 0, 0, .5);
  transition: all 0.3s ease;
}

.hover_txt:hover {
  opacity: 1;
}

/*　***********SP************* */
@media screen and (max-width: 767px) {
  html {
    font-size: 1.303vw;
  }

  /* 共通 */
  .side_title {
    font-size: 7rem;
    top: -12rem;
  }

  .sub_title {
    font-size: 3rem;
    position: relative;
    left: .3rem;
    bottom: -.7rem;
  }

  .left_side {
    left: -7rem;
  }

  .right_side {
    right: -6rem;
  }

  .label_effect::before {
    height: 103%;
  }

  .sub_title {
    bottom: 0.5rem;
  }

  .sub_label_effect::before {
    display: none;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  h4 {
    font-size: 16px;
  }

  p {
    font-size: 13px;
  }

  dt {
    font-size: 18px;
  }

  /* ヘッダー */
  .header_wrapper {
    height: 8vh;
  }

  .nav_links {
    width: 100vw;
    min-height: 100svh;
    background-color: #bbe2f1;
    border-radius: 8rem 0 0 8rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    padding: 5rem 5rem 12rem 5rem;
    transform: translateX(100%);
    transition: all 1s ease;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 50px;
  }

  .nav_active {
    transform: translateX(0%) !important;
  }

  .nav_inactive {
    transform: translateX(100%) !important;
  }
  
  .nav_links li a {
    font-size: 7.2rem;
    color: #f2f7fb;
    }

  .icon img {
    width: 60%;
  }

  .hamburger_menu {
    display: block;
  }

  .not_scroll {
    overflow: hidden;
  }

  .nav_links li a::after {
    display: none;
  }

  /* --------------------TOP PAGE-------------------- */
  /* メインビジュアル */
  .mv_wrapper {
    flex-direction: column-reverse;
    gap: 1.5rem;
  }

  .mv_title_wrapper {
    font-size: 7.2rem;
    width: 100%;
    align-items: flex-start;
  }

  .mv_title {
    left: 0;
  }

  .mv_title_outline {
    left: 0;
    align-self: flex-end;
  }

  .mv_wrapper img {
    width: 100%;
  }

  /* WORKS */
  .SSPortfolio_works_wrapper {
    width: 80%;
  }

  .site_list {
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 7rem;
  }

  .site_list_item {
    width: 100%;
    margin-bottom: 7rem;
  }

  .site_list_txt {
    margin-top: 2rem;
  }

  .site_list_txt h3 {
    font-size: 18px;
  }

  /* ABOUT */
  .SSPortfolio_about_wrapper {
    width: 80%;
  }

  .profile {
    flex-wrap: wrap;
    flex-direction: column;
    align-content: center;
    gap: 5rem;
  }

  .profile img {
    width: 80%;
    margin: 0 auto;
  }

  .profile_txt_wrapper {
    width: 100%;
  }

  .profile_txt {
    margin-top: 3rem;
  }

  .profile_txt h3 {
    font-size: 3.6rem;
    text-align: center;
  }

  .furigana {
    font-size: 2.2rem;
  }

  .profile_txt p {
    margin-top: 4rem;
  }

  .about_link {
    font-size: 13px;
    margin-top: 5rem;
  }

  /* =============WORKS PAGE============== */
  .SSPortfolio_works_site_wrapper,
  .SSPortfolio_works_ss {
    width: 75%;
    flex-direction: column;
  }

  .SSPortfolio_works_ss dt {
    font-size: 18px;
  }

  .works_ss_baner {
    width: 85%;
  }

  /* =============ABOUT PAGE============== */
  .SSPortfolio_about_mv_wrapper,
  .SSPortfolio_about_skill_wrapper,
  .SSPortfolio_about_strength_wrapper,
  .SSPortfolio_about_vision_wrapper {
    width: 80%;
  }

  .about_profile_img {
    width: 85%;
  }

  .about_profile_txt {
    width: 85%;
  }

  /* SKILL */
  .skill_wrapper {
    flex-direction: column;
    gap: 16rem;
  }

  .design,
  .coding {
    width: 100%;
  }

  /* STRENGTH */
  .strength_icon {
    flex-wrap: wrap;
  }

  .strength_01_icon {
    margin: 0 26% 4%;
  }

  .strength_01_icon,
  .strength_02_icon,
  .strength_03_icon {
    width: 48%;
  }

  /* BIOGRAPHY */
  .SSPortfolio_about_biography_wrapper .right_side {
    right: -12rem;
  }

  .biography_title {
    top: 15rem;
  }

  .biography_item_wrapper {
    margin-top: -20rem;
  }

  /* FAVORITE */
  .favorite_contaner {
    margin: 0;
  }

  .favorites_gallary {
    width: 95%;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(9, 1fr);
    row-gap: 2rem;
  }

  .favorites_gallary img {
    aspect-ratio: 1 / 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .item_01 {
    grid-area: 1 / 1 / 2 / 2;
  }

  .item_02 {
    grid-area: 2 / 1 / 3 / 2;
  }

  .item_03 {
    grid-area: 3 / 1 / 4 / 2;
  }

  .item_04 {
    grid-area: 4 / 1 / 5 / 2;
  }

  .item_05 {
    grid-area: 5 / 1 / 6 / 2;
  }

  .item_06 {
    grid-area: 6 / 1 / 7 / 2;
  }

  .item_07 {
    grid-area: 7 / 1 / 8 / 2;
  }

  .item_08 {
    grid-area: 8 / 1 / 9 / 2;
  }

  .item_09 {
    grid-area: 9 / 1 / 10 / 2;
  }

  .item_05 img {
    object-position: 50% 50%;
  }

  .item_08 img {
    object-position: right center;
  }
  .item_09 img {
    object-position: 80% center;

  }

  .hover_txt h3 {
    font-size: 18px;
  }

  .hover_txt p {
    font-size: 13px;
  }
}