@charset "UTF-8";
@import url(reset.css);

:root {
  --paragraph-padding: calc(90 / 1366 * 100%);
}

/* html, body {
    } */
body {
  font-family: "Roboto", sans-serif;
  /* ウェブサイト全体に適用 */
}

p {
  line-height: 1.5;
}

#background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: black;
  /* 任意の背景色 */
  transition: opacity 0.3s ease;
  /* オパシティのトランジション */
}

/* 外側のコンテナのスタイリング */
#outer-container {
  position: fixed;
  z-index: 999;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #fff;
  /* overflow: hidden; */
}

/* ローディングコンテナのスタイリング */
/* #outer-container {

    background-color: #ccc;
} */
#loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* テキストコンテナのスタイリング */
#text-container {
  display: flex;
  align-items: center;
  position: relative;
  width: -moz-fit-content;
  width: fit-content;
  /* コンテンツに合わせて幅を調整 */
  z-index: 10;
  font-size: clamp(6px, 1vw, 20px);
  /* デフォルトのフォントサイズ */
  fill: #333;
  /* テキストカラー */
}

/* visualのラッパーのスタイリング */
#visual-wrapper {
  width: auto;
  /* visual要素の幅を自動に設定 */
  overflow: hidden;
  /* はみ出た内容を隠す */
  position: absolute;
  /* 絶対位置指定 */
  left: 100%;
  /* Kの右端からスタート */
  white-space: nowrap;
  /* 改行を防ぐ */
}

#visual {
  display: none;
  font-size: 5em;
  position: relative;
  /* 相対位置指定 */
  left: 0;
  /* 初期位置を親要素の端に設定 */
  margin-left: 10px;
}

/* ローディング要素のスタイリング */
#loading {
  font-size: 5em;
  /* visibility: visible; */
  /* animation: bounceIn 1.5s ease-in-out forwards; アニメーションを適用 */
}

/* @keyframes bounceIn {
    0% {
        transform: translateY(100%); /* 画面下からスタート */
/* } */
/* 30% { */
/* transform: translateY(-10%); 小さく跳ねる */
/* } */
/* 100% { */
/* transform: translateY(0); 元の位置に戻る */
/* } */
/* } */
#frame {
  stroke-dasharray: 1200;
  /* 長方形の周囲の長さ */
  stroke-dashoffset: 1200;
  /* 初期状態で線が見えないように全周分オフセット */
  animation: draw-frame 3s linear forwards;
  /* 2秒で描画、アニメーションは線形に */
}

@keyframes draw-frame {
  to {
    stroke-dashoffset: 0;
    /* 終了時に線が完全に見えるように */
  }
}

@media (max-width: 768px) {
  svg {
    transform: translate(-50%, -50%) scale(0.4);
    /* モバイルデバイスのためにサイズを縮小 */
  }
}

@media (max-width: 480px) {
  svg {
    transform: translate(-50%, -50%) scale(0.2);
    /* 更に小さいデバイスでさらに縮小 */
  }
}

svg {
  color: #fff;
  max-width: 100%;
  /* 要素がはみ出さないように最大幅を設定 */
  height: auto;
}

/* タブレットサイズのデバイスに対応 */
.backcolor {
  background-color: #cc6464;
}

svg:hover {
  cursor: pointer;
  /* ホバー時にカーソルをポインタに変更 */
  opacity: 0.8;
  /* ホバー時に透明度を下げる */
}

svg rect:hover {
  fill: rgb(255, 255, 255);
  /* ホバー時にrect要素の塗りつぶし色を赤に変更 */
}

svg rect:active {
  fill: rgb(255, 255, 255);
  /* ホバー時にrect要素の塗りつぶし色を赤に変更 */
}

#header {
  background-color: #D9D9D9;
  width: 30%;
  position: fixed;
  /* opacity: 0; */
}

@media screen and (max-width: 770px) {
  header {
    display: none;
  }

  .top-wrapper {
    flex-grow: 1;
    justify-content: flex-start;
    /* 必要に応じて配置を調整（左揃えや中央揃えなど） */
  }

  #top,
  #about,
  #works {
    width: 100vw;
    /* 100vw ではなく 100% に変更 */
  }

  .about-wrapper,
  .works-wrapper {
    flex-grow: 1;
  }
}

.header-wrapper {
  height: 100vh;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}

.header-wrapper ul {
  width: 100%;
  text-align: center;
}

.header-wrapper ul li {
  border-bottom: 1px solid #B1B1B1;
  font-size: 20px;
  list-style: none;
}

.header-wrapper ul a {
  padding: 10px 0;
  color: #000;
  text-decoration: none;
  width: 100%;
  display: block;
}

.header-wrapper ul #top-btn.active {
  background-color: #fff;
}

.header-wrapper ul #about-btn.active {
  background-color: #000000;
  color: #d9d9d9;
}

.header-wrapper ul #works-btn.active {
  background-color: #3C3C3C;
  color: #d9d9d9;
}

.header-wrapper ul #history-btn.active {
  background-color: #616161;
  color: #d9d9d9;
}

.header-wrapper ul #sns-btn.active {
  background-color: #202020;
  color: #d9d9d9;
}

.header-wrapper ul li:nth-child(1) {
  border-top: 1px solid #B1B1B1;
}

#top,
#about,
#works,
#history,
#sns {
  width: 100%;
  /* 100vw ではなく 100% に変更 */
}

#top {
  background-color: #fff;
}

#top .top-contenir {
  height: 100vh;
  display: flex;
  justify-content: right;
  width: 100%;
}

#top .top-contenir .top-wrapper {
  display: flex;
  justify-content: center;
  flex-direction: column;
  height: 100vh;
  align-items: center;
  width: 70vw;
  position: relative;
  overflow: hidden;
}

#top .top-contenir .top-wrapper .background-animation {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#top .top-contenir .top-wrapper .background-animation ul {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

#top .top-contenir .top-wrapper .background-animation li {
  position: absolute;
  bottom: -150px;
  display: block;
  list-style: none;
  opacity: 0;
  animation: float-up linear infinite;
  will-change: transform, opacity;
}

#top .top-contenir .top-wrapper .background-animation .circle {
  border-radius: 50%;
  border: 2px solid rgba(60, 60, 60, 0.35);
}

#top .top-contenir .top-wrapper .background-animation .square {
  border-radius: 4px;
  background: rgba(74, 158, 255, 0.18);
}

#top .top-contenir .top-wrapper .background-animation .triangle {
  background: rgba(60, 60, 60, 0.2);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

#top .top-contenir .top-wrapper .background-animation li:nth-child(1) {
  left: 8%;
  width: 60px;
  height: 60px;
  animation-duration: 18s;
  animation-delay: 0s;
}

#top .top-contenir .top-wrapper .background-animation li:nth-child(2) {
  left: 30%;
  width: 25px;
  height: 25px;
  animation-duration: 12s;
  animation-delay: 3s;
}

#top .top-contenir .top-wrapper .background-animation li:nth-child(3) {
  left: 55%;
  width: 90px;
  height: 90px;
  animation-duration: 22s;
  animation-delay: 6s;
}

#top .top-contenir .top-wrapper .background-animation li:nth-child(4) {
  left: 82%;
  width: 40px;
  height: 40px;
  animation-duration: 15s;
  animation-delay: 1s;
}

#top .top-contenir .top-wrapper .background-animation li:nth-child(5) {
  left: 18%;
  width: 35px;
  height: 35px;
  animation-duration: 14s;
  animation-delay: 5s;
}

#top .top-contenir .top-wrapper .background-animation li:nth-child(6) {
  left: 45%;
  width: 55px;
  height: 55px;
  animation-duration: 19s;
  animation-delay: 2s;
}

#top .top-contenir .top-wrapper .background-animation li:nth-child(7) {
  left: 70%;
  width: 20px;
  height: 20px;
  animation-duration: 11s;
  animation-delay: 8s;
}

#top .top-contenir .top-wrapper .background-animation li:nth-child(8) {
  left: 92%;
  width: 70px;
  height: 70px;
  animation-duration: 24s;
  animation-delay: 4s;
}

#top .top-contenir .top-wrapper .background-animation li:nth-child(9) {
  left: 5%;
  width: 45px;
  height: 45px;
  animation-duration: 16s;
  animation-delay: 7s;
}

#top .top-contenir .top-wrapper .background-animation li:nth-child(10) {
  left: 38%;
  width: 30px;
  height: 30px;
  animation-duration: 13s;
  animation-delay: 9s;
}

#top .top-contenir .top-wrapper .background-animation li:nth-child(11) {
  left: 62%;
  width: 65px;
  height: 65px;
  animation-duration: 20s;
  animation-delay: 0.5s;
}

#top .top-contenir .top-wrapper .background-animation li:nth-child(12) {
  left: 86%;
  width: 28px;
  height: 28px;
  animation-duration: 12s;
  animation-delay: 10s;
}

#top .top-contenir .top-wrapper h1,
#top .top-contenir .top-wrapper p,
#top .top-contenir .top-wrapper .top-nav {
  position: relative;
  z-index: 1;
}

#top .top-contenir .top-wrapper .top-nav {
  display: none;
  width: 100%;
  max-width: 320px;
  margin-top: 40px;
  padding: 0 20px;
  box-sizing: border-box;
}

#top .top-contenir .top-wrapper .top-nav ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#top .top-contenir .top-wrapper .top-nav a {
  display: block;
  padding: 14px 0;
  border: 1px solid #000;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #000;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

#top .top-contenir .top-wrapper .top-nav a:hover,
#top .top-contenir .top-wrapper .top-nav a:focus-visible {
  background: #000;
  color: #fff;
}

#top .top-contenir .top-wrapper .top-nav a:active {
  transform: scale(0.96);
}

@media screen and (max-width: 770px) {
  #top .top-contenir .top-wrapper .top-nav {
    display: block;
  }
}

#top .top-contenir .top-wrapper h1 {
  right: 0;
  text-align: center;
  font-size: 4vw;
}

#top .top-contenir .top-wrapper p {
  display: flex;
  justify-content: center;
  align-items: center;
  /* テキストと線を縦方向に中央揃え */
}

#top .top-contenir .top-wrapper p::before,
#top .top-contenir .top-wrapper p::after {
  content: "";
  display: inline-block;
  width: 50px;
  /* 横線の幅 */
  height: 1px;
  /* 横線の太さ */
  background-color: black;
  /* 横線の色 */
}

#top .top-contenir .top-wrapper p::before {
  margin-right: 10px;
  /* テキストと線の間の余白 */
}

#top .top-contenir .top-wrapper p::after {
  margin-left: 10px;
  /* テキストと線の間の余白 */
}

@keyframes float-up {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    transform: translateY(calc(-100vh - 200px)) rotate(540deg);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #top .background-animation li {
    animation: none;
    opacity: 0.6;
    bottom: 30%;
  }
}

#top #about-flex {
  /* height: 100vh; */
  display: flex;
  justify-content: right;
  border-bottom: 1px solid #5d5d5d;
  width: 100%;
  min-height: 500px;
}

#top #about-flex .about-wrapper {
  background-color: #000;
  width: 70%;
  min-height: 500px;
  height: 100%;
  padding-bottom: 10vw;
  /* display: flex;
  justify-content: flex-start;
  flex-direction: column; */
}

#top #about-flex .about-wrapper .about-contenir {
  display: flex;
}

#top #about-flex .about-wrapper .about-contenir .about-text {
  display: flex;
  justify-content: end;
  align-items: center;
  flex-direction: column;
  width: 30%;
  margin: 2vw;
}

#top #about-flex .about-wrapper .about-contenir .about-text .text-letter {
  text-align: left;
}

#top #about-flex .about-wrapper .about-contenir .about-text h2 {
  text-align: left;
  font-size: 3vw;
  position: relative;
  color: #d9d9d9;
}

#top #about-flex .about-wrapper .about-contenir .about-text p {
  font-size: 1vw;
  color: #d9d9d9;
}

@media screen and (max-width: 770px) {
  #top #about-flex .about-wrapper .about-contenir .about-text h2 {
    font-size: 5vw;
  }

  #top #about-flex .about-wrapper .about-contenir .about-text p {
    font-size: 2vw;
  }
}

@media screen and (max-width: 500px) {
  #top #about-flex .about-wrapper .about-contenir .about-text .about-text {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: row;
  }

  #top #about-flex .about-wrapper .about-contenir .about-text h2 {
    padding: 2vw 0;
    font-size: 10vw;
  }
}

#top #about-flex .about-wrapper .about-contenir img {
  width: 70%;
}

#top #about-flex .about-paragraph {
  color: #d9d9d9;
  width: 100%;
  margin-bottom: 3vw 0;
}

#top #about-flex .about-paragraph p {
  padding: 1.5rem var(--paragraph-padding);
  line-height: 1.5;
}

@media screen and (max-width: 770px) {
  #top #about-flex {
    /* .about-paragraph {
        /* display: flex;
        flex-direction: column;
        justify-content: center;
        flex: 1; */
    /* padding: 10vw 0; */
    /* } */
  }

  #top #about-flex #about-flex {
    height: 100vw;
  }

  #top #about-flex .about-paragraph p {
    max-width: 70%;
  }
}

@media screen and (max-width: 500px) {
  #top #about-flex {
    /* .about-wrapper {

        /* min-height: 700px; */
    /* } */
  }

  #top #about-flex .about-contenir {
    flex-wrap: wrap-reverse;
  }

  #top #about-flex .about-paragraph p {
    padding: 1vw;
    max-width: 100%;
  }

  #top #about-flex .about-paragraph {
    padding: 10vw 0;
  }

  #top #about-flex img {
    width: 100%;
    flex: 1 1;
  }

  #top #about-flex .about-text {
    text-align: left;
  }
}

#top #about-flex .skli {
  /* PCサイズ（770px以上） */
  /* 770px以下のサイズ */
}

#top #about-flex .skli .skli-sheet {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

#top #about-flex .skli div {
  flex-basis: calc(20% - 50px);
  /* 60%の幅で、真ん中に配置 */
}

#top #about-flex .skli .sklli-level {
  margin: 1vw 2vw;
  flex: 1 1;
}

@media screen and (max-width: 770px) {
  #top #about-flex .skli .skli {
    padding: 5vw 0;
  }

  #top #about-flex .skli p {
    padding: 2vw;
    margin-top: 10vw;
  }

  #top #about-flex .skli .skli-sheet {
    flex-direction: column;
    width: 100%;
    /* 縦並びに変更（必要に応じて） */
  }

  #top #about-flex .skli .sklli-level {
    flex: 1 1 100%;
    /* 100%で広がるように設定 */
    /* 余白を広げて全体に広がる */
    /* 縮まらないように設定 */
  }
}

@media screen and (max-width: 770px) {
  #top #about-flex .about-paragraph,
  #top #about-flex .skli .skli-sheet {
    box-sizing: border-box;
    padding-left: var(--paragraph-padding);
    padding-right: var(--paragraph-padding);
  }

  #top #about-flex .about-paragraph p {
    padding-left: 0;
    padding-right: 0;
  }

  #top #about-flex .skli .sklli-level {
    margin-left: 0;
    margin-right: 0;
  }
}

#top #about-flex p {
  padding: 0 var(--paragraph-padding);
  padding-top: var(--paragraph-padding);
  color: #fff;
  line-height: 1.5;
}

#top #about-flex li {
  color: #d9d9d9;
  list-style: none;
  margin: 2rem 0;
  padding: 1rem 0;
  border-bottom: 3px solid #d9d9d9;
}

#top #about-flex li:nth-child(1) {
  width: 90%;
}

#top #about-flex li:nth-child(2) {
  width: 85%;
}

#top #about-flex li:nth-child(3) {
  width: 70%;
}

#top #about-flex li:nth-child(4) {
  width: 40%;
}

#top #about-flex li:nth-child(5) {
  width: 20%;
}

#works {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  background-color: #3C3C3C;
  width: 100%;
}

#works .container {
  display: flex;
  flex-direction: column;
  width: 70%;
  padding: 1.5vw 0 3vw 0;
  height: auto;
}

@media screen and (max-width: 770px) {
  #works .container {
    width: 100%;
    padding: 3vw 0 14vw 0;
  }
}

#works .container::-webkit-scrollbar {
  display: none;
}

#works .facet-nav {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 2vw;
  padding: 0 1vw;
}

#works .facet-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

#works .facet-nav li {
  min-width: 0;
}

#works .facet-nav li a {
  display: block;
  padding: 5px 15px;
  background: #000;
  color: #d9d9d9;
  text-decoration: none;
  border-radius: 20px;
  font-size: clamp(12px, 1vw, 14px);
  border: 1px solid #505050;
  transition: all 0.3s;
}

#works .facet-nav li a:hover,
#works .facet-nav li a.active {
  background: #4a9eff;
  color: #fff;
  border-color: #4a9eff;
}

#works .works-mobile-tabs {
  display: none;
}

#works .works-mobile-content {
  display: none;
}

#works .works-desktop-content {
  display: block;
  width: 100%;
}

@media screen and (max-width: 770px) {
  #works .facet-nav,
  #works .works-desktop-content {
    display: none !important;
  }

  #works .works-mobile-tabs {
    display: flex;
    align-items: stretch;
    width: calc(100% - var(--paragraph-padding));
    box-sizing: border-box;
    margin: 0 auto 10px;
    padding: 2px;
    gap: 2px;
    background: #1e1e1e;
    border: 1px solid #484848;
    border-radius: 999px;
  }

  #works .works-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    color: #9a9a9a;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
  }

  #works .works-tab-btn .tab-ja {
    font-size: 10px;
    letter-spacing: 0.12em;
    margin-bottom: 1px;
    color: inherit;
  }

  #works .works-tab-btn .tab-en {
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: inherit;
  }

  #works .works-tab-btn.active {
    background: #4a9eff;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(74, 158, 255, 0.35);
  }

  #works .works-tab-btn.active .tab-ja {
    color: #ffffff;
  }

  #works .works-mobile-content {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    background: transparent;
  }

  #works .works-mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #555555;
  }

  #works .works-mobile-card {
    width: 100%;
    min-width: 0;
    aspect-ratio: 1 / 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid #555555;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s ease;
  }

  #works .works-mobile-card:nth-child(odd) {
    border-right: 1px solid #555555;
  }

  #works .works-mobile-card:active {
    opacity: 0.85;
  }

  #works .works-mobile-card .card-img-link {
    display: block;
    width: 100%;
    flex: 1;
    min-height: 0;
    background: transparent;
    overflow: hidden;
  }

  #works .works-mobile-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: transparent;
  }

  #works .works-mobile-card .card-title {
    margin: 0;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
    border-top: 1px solid #484848;
    background: transparent;
    flex-shrink: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  #works .works-mobile-card .card-title a {
    color: #ffffff;
    text-decoration: none;
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
  }

  #works .works-mobile-card .card-title a:hover,
  #works .works-mobile-card .card-title a:active {
    color: #4a9eff;
  }
}

#works .box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* 上部と下部の間にスペースを最大化 */
  padding: 1vw;
  border: 1px solid #505050;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  width: 25%;
  max-height: 500px;
  position: relative;
  margin: 1vw;
}

#works .box .triangle {
  position: absolute;
  left: 0;
  /* 左端から */
  top: 0;
  /* 上端から */
  width: 10vw;
  /* 正方形キャンバス */
  height: 10vw;
  background: #4c4c4c;
  /* 見える色 */
  color: #fff;
  display: flex;
  /* 中央に文字配置 */
  align-items: center;
  justify-content: center;
  font-weight: 700;
  z-index: 2;
  /* 画像より前面に */
  /* 左上(0 0)=直角, 右上(100% 0), 左下(0 100%)=頂点 */
  -webkit-clip-path: polygon(0 0, 100% 0, 0 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

#works .box .triangle span {
  z-index: 1;
  color: rgb(255, 255, 255);
}

#works .content-group {
  align-self: start;
  /* 左寄せ */
  width: 100%;
  /* 幅をbox全体に */
  order: 2;
}

#works .box img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  display: block;
}

#works .box h2,
#works .box p,
#works .box a {
  align-self: start;
  /* 要素を左揃えに */
  width: 100%;
  /* 全幅を使う設定 */
}

#works .box h2 {
  margin-bottom: 5px;
  color: #d9d9d9;
  margin-top: 2vw;
  font-size: clamp(16px, 2vw, 20px);
}

#works .box p {
  margin-top: 5px;
  margin-bottom: 5px;
  /* pの下のマージンも設定 */
  color: #d9d9d9;
  font-size: clamp(14px, 1vw, 18px);
}

#works .box a {
  display: block;
  align-self: center;
  text-align: center;
  border-radius: 25px;
  text-decoration: none;
  background: #d9d9d9;
  color: #000;
  padding: 0.5vw 1.5vw;
  margin: 1vw auto 0;
  font-size: clamp(14px, 1vw, 18px);
  width: 50%;
  transition: background-color 0.3s;
  order: 3;
}

#works .box a:hover {
  background-color: #0056b3;
  /* ホバー時の背景色を濃い青に変更 */
}

@media screen and (max-width: 500px) {
  #works .box {
    margin-top: 0.5vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 350px;
    width: 40%;
    min-width: 300px;
    margin: 10px 5px;
    flex-shrink: 0;
    border-radius: 2vw;
  }

  #works .box .triangle {
    width: 30%;
    height: 20%;
    display: none;
  }
}

#works .scroll-track {
  display: none;
  position: relative;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 0 10px 0;
  border-radius: 1px;
  overflow: hidden;
}

@media screen and (min-width: 501px) {
  #works .scroll-track {
    display: none !important;
  }
}

#works .scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #4a9eff;
  border-radius: 1px;
  transition: left 0.08s linear;
  min-width: 20px;
}

#works .designbox {
  width: 100%;
  padding: 1.5vw 0 0.5vw 0;
}

#works .designbox h2 {
  font-size: clamp(16px, 1.5vw, 22px);
  font-family: Roboto, sans-serif;
  font-weight: 400;
  color: #B1B1B1;
  padding: 0 1vw 0.5vw 1vw;
  border-bottom: 1px solid #505050;
  margin-bottom: 1vw;
}

#works .elbox {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
}

@media screen and (max-width: 500px) {
  #works .elbox {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  #works .elbox::-webkit-scrollbar {
    display: none;
  }
}

#works .element {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #505050;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  width: 25%;
  padding: 1vw;
  position: relative;
  margin: 1vw;
}

#works .element img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: contain;
  display: block;
}

#works .element .text {
  flex: 1;
  padding: 0.5vw 0;
}

#works .element h3 {
  font-size: clamp(16px, 1.5vw, 20px);
  padding: 0.5vw 0;
  color: #d9d9d9;
  border-bottom: 1px solid #505050;
  margin-bottom: 5px;
}

#works .element p {
  font-size: clamp(14px, 1vw, 18px);
  color: #d9d9d9;
  margin: 4px 0;
}

#works .element a {
  display: block;
  align-self: center;
  text-align: center;
  border-radius: 25px;
  text-decoration: none;
  background: #d9d9d9;
  color: #000;
  padding: 0.5vw 1.5vw;
  margin: 1vw auto 0;
  font-size: clamp(14px, 1vw, 18px);
  width: 50%;
  transition: background-color 0.3s;
}

#works .element a:hover {
  background-color: #0056b3;
  color: #fff;
}

@media screen and (max-width: 500px) {
  #works .element {
    justify-content: flex-start;
    min-height: 350px;
    width: 40%;
    min-width: 300px;
    margin: 10px 5px;
    flex-shrink: 0;
  }

  #works .element img {
    height: auto !important;
    width: 100%;
    object-fit: contain !important;
  }
}

#works .modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

#works .modal.active {
  display: flex;
}

#works .modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

#works .modal-content img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

#works .close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  z-index: 10;
}

#history {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  background-color: #616161;
  min-height: 100vh;
  box-sizing: border-box;
}

#history .history-container {
  width: 70%;
  padding: 5vw 4vw 7vw 4vw;
  box-sizing: border-box;
}

@media screen and (max-width: 770px) {
  #history .history-container {
    width: 100%;
    padding: 8vw 5vw 12vw 5vw;
  }
}

#history .history-header {
  text-align: center;
  margin-bottom: 4vw;
}

#history .history-header h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.18em;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

#history .history-header .history-subtitle {
  font-size: clamp(12px, 1vw, 15px);
  color: #e0e0e0;
  margin-top: 8px;
  letter-spacing: 0.1em;
}

#history .career-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

#history .career-card {
  display: flex;
  gap: 24px;
  position: relative;
  margin-bottom: 32px;
}

#history .career-card:last-child {
  margin-bottom: 0;
}

@media screen and (max-width: 600px) {
  #history .career-card {
    gap: 14px;
    margin-bottom: 24px;
  }
}

#history .career-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 24px;
  flex-shrink: 0;
  position: relative;
  padding-top: 22px;
}

@media screen and (max-width: 600px) {
  #history .career-node {
    width: 18px;
    padding-top: 18px;
  }
}

#history .career-node .node-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #2a2a2a;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  z-index: 2;
}

@media screen and (max-width: 600px) {
  #history .career-node .node-dot {
    width: 12px;
    height: 12px;
    border-width: 2px;
  }
}

#history .career-node .node-line {
  width: 2px;
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.28);
  margin-top: 6px;
  margin-bottom: -28px;
}

#history .career-card-inner {
  flex: 1;
  min-width: 0;
  padding: 12px 0 8px 0;
  box-sizing: border-box;
}

#history .career-card.is-current .career-node .node-dot {
  background: #4a9eff;
  border-color: #ffffff;
  box-shadow: 0 0 12px #4a9eff, 0 0 0 4px rgba(74, 158, 255, 0.35);
}

#history .career-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

#history .career-meta .career-period {
  font-family: "Roboto", monospace;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 700;
  color: #d6d6d6;
  background: rgba(255, 255, 255, 0.12);
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

#history .career-meta .current-badge {
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: #4a9eff;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  box-shadow: 0 2px 8px rgba(74, 158, 255, 0.4);
}

#history .career-title {
  font-size: clamp(17px, 1.35vw, 22px);
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: #ffffff;
  margin: 6px 0 10px 0;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

#history .career-role {
  margin-bottom: 12px;
}

#history .career-role .role-badge {
  display: inline-block;
  font-size: clamp(12px, 0.95vw, 14px);
  font-weight: 600;
  color: #8bc4ff;
  background: rgba(74, 158, 255, 0.12);
  border: 1px solid rgba(74, 158, 255, 0.28);
  padding: 4px 12px;
  border-radius: 6px;
  line-height: 1.4;
}

#history .career-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#history .career-skills .skill-chip {
  display: inline-block;
  font-size: clamp(11px, 0.9vw, 13px);
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

#history .career-skills .skill-chip:hover {
  background: rgba(74, 158, 255, 0.25);
  border-color: #4a9eff;
  color: #ffffff;
  transform: translateY(-1px);
}

#sns {
  min-height: 500px;
  background-color: #202020;
  display: flex;
  justify-content: right;
}

#sns .sns-container {
  width: 70%;
}

#sns .sns-container .sns-content {
  color: #d9d9d9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 50px;
  align-items: baseline;
  max-width: 100%;
  margin: var(--paragraph-padding);
  margin-bottom: 0;
}

#sns .sns-container .sns-message {
  width: 40vw;
}

#sns .sns-container .sns-links {
  width: 100%;
  display: flex;
  justify-content: end;
}

#sns .sns-container .social-icons {
  margin-top: auto;
  display: flex;
  margin-right: 1vw;
  gap: 0.5vw;
}

#sns .sns-container .social-icons img {
  width: clamp(50px, 5vw, 100px);
}

@media screen and (max-width: 770px) {
  #sns .sns-container {
    width: 100%;
  }

  #sns .sns-container .sns-message {
    width: 100%;
  }

  #sns .social-icons {
    flex-wrap: wrap;
  }
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s, border-color 0.3s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #4a9eff;
  border-color: #4a9eff;
}

.back-to-top:hover .back-to-top__arrow,
.back-to-top:focus-visible .back-to-top__arrow {
  transform: translateY(-3px) rotate(45deg);
}

.back-to-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.back-to-top__arrow {
  display: block;
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s;
}

.back-to-top__label {
  font-family: "Roboto", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
}

@media screen and (max-width: 770px) {
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

/*# sourceMappingURL=style.css.map */