@charset "UTF-8";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-silver: #c0c0c0;
  --subtitle-blue: #b9e2f5;
  --accent-blue: #87ceeb;
  --bg-white: #fbfbfc;
}

html,
body {
  width: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Jost", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.05em;
  background-color: var(--bg-white);
  color: #666;
}

img {
  width: 100%;
  vertical-align: bottom;
}

a {
  text-decoration: none;
  color: var(--main-silver);
}

li {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1;
}

/* ******************** 初期設定ここまで ******************** */
/* ********** 共通 ********** */
section {
  margin-bottom: 200px;
}

body > section:first-of-type {
  margin-bottom: 0;
}

.section-wrap {
  width: 90vw;
  margin: 0 auto 50px;
}

h2 {
  color: var(--main-silver);
  text-shadow: 10px 10px 0px #f2f4f7;
  font-size: 6rem;
  font-weight: 350;
  margin-bottom: 30px;
  mix-blend-mode: multiply;
}

/* --- デザイン（使い回す部分） --- */
.overlap-btn {
  position: relative;
  display: inline-block;
  padding: 15px 100px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--main-silver);
  text-decoration: none;
  letter-spacing: 0.1em;
  border: 1px solid #c0c0c0;
  background: transparent;
  transition: all 0.3s ease;
  z-index: 1;
}

.overlap-btn::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 100%;
  height: 100%;
  border: 1px solid #b9e2f5;
  z-index: -1;
  transition: all 0.3s ease;
}

.overlap-btn:hover {
  border: 1px solid #b9e2f500;
}

.overlap-btn:hover::after {
  top: 0;
  left: 0;
}

/* ********** header ********** */
.header-wrap {
  width: 100%;
  padding: 20px 3vw 10px;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: fixed;
  backdrop-filter: blur(10px);
}
.nav-logo {
  width: 145px;
}
.nav-list {
  display: flex;
  gap: 50px;
}
.nav-link {
  transition: color 0.3s;
  cursor: pointer;
  font-size: 20px;
}
.nav-link:hover {
  color: var(--accent-blue);
}
.nav-link.active {
  border-bottom: 2px solid #87ceeb;
  color: var(--main-silver);
}
/* ドロップダウンを配置するための親要素の設定 */
.has-child {
  position: relative;
}
/* --- ドロップダウンの初期状態（隠す） --- */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 120px;
}
/* ドロップダウン内のリンクの装飾 */
.dropdown a {
  display: block;
  padding-top: 10px;
  color: var(--main-silver);
  text-decoration: none;
}
.dropdown a:hover {
  color: var(--accent-blue);
}

/* ********** footer ********** */
.glass-footer {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10vh 0 1vh;
  overflow: hidden;
  color: var(--bg-white);
  background-color: #272c3c;
  z-index: 1;
}

/* 背景画像（ブラー＋端消し） */
.footer-bg {
  mix-blend-mode: overlay;
  position: absolute;
  top: 18%;
  left: 0;
  width: 100%;
  height: 70%;
  background: url(../img/footer-img.jpg) center/cover;
  filter: blur(20px);
  transform: scale(1.1);
  z-index: 0;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
  mask-image: linear-gradient(
    to bottom,
    transparent,
    black 15%,
    black 85%,
    transparent
  );
}

/* メインコンテナ（左右配置） */
.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1000px;
  margin-bottom: auto;
  margin-top: auto;
  z-index: 2;
}

/* ロゴのサイズ感 */
.footer-logo {
  width: 400px;
}

.footer-logo img {
  max-width: 400px;
  height: auto;
}

/* ナビゲーション */
.f-sitemap__list {
  display: flex;
  gap: 30px;
  list-style: none;
  color: var(--main-silver);
}

.f-sitemap__list a {
  text-decoration: none;
  font-size: 2rem;
  letter-spacing: 0.05em;
  transition: opacity 0.3s;
  position: relative;
  display: inline-block;
  text-decoration: none;
}
.f-sitemap__list a:hover::after {
  width: 100%; /* ホバーで中央から広がる */
}

.f-sitemap__list a:hover {
  opacity: 1; /* 元のCSSにあるopacity変化と組み合わせ */
  color: var(--accent-blue);
}

/* ドロップダウン部分（galleryの下） */
.f-sitemap__item--has-child {
  position: relative;
}

.f-sitemap__sub li {
  margin-top: 10px;
}

.f-sitemap__sub li a {
  font-size: 1.25rem;
}

.copyright {
  font-size: 0.9rem;
  opacity: 0.6;
  z-index: 2;
}
/* ********** main ********** */
/* ***** section ***** */
/* FV */
/* 文字をまとめるコンテナ */
.fv-overlay-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  /* マスクレイヤー(z-index未指定=0)より手前に出す */
  z-index: 10;

  /* 文字を中央に配置する（お好みの位置に） */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  /* 重要な設定：文字の下にあるマスクへのマウス反応を邪魔しない */
  pointer-events: none;
}

.logo img {
  /* 書き方：filter: drop-shadow(左右のズレ 上下のズレ ぼかし 影の色) */
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.1));
}

.site-title {
  color: var(--bg-white);
  margin-top: 10px;
  font-weight: 400;
  letter-spacing: normal;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.fv-container {
  height: 100vh;
  margin-bottom: 200px;
}

.cursor-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../works/screenshot/LUP_pc_thum.webp");
  background-size: cover;
  background-position: top;
  filter: blur(30px);

  /*---------------------------------------
  maskの設定を全てJSに任せる 
  ために、mask関連すべて削除
  6月29日 
  -----------------------------------------*/

  /* mask-sizeへのtransitionを追加 6月29日 */
  transition:
    mask-size 1s,
    -webkit-mask-size 1s;
  pointer-events: none;
}

/* ***** works ***** */
.work-container {
  width: 80vw;
  margin: 0 auto 50px;
}

.work-inner {
  height: 53vh;
  display: flex;
  gap: 20px;
  margin: 0 auto 20px;
}

.work-sub-container {
  display: flex;
  gap: 20px;
}

.work-box {
  /* 全体の幅からgap(20px * 3)を引いて、比率の合計(10)で割る */
  --unit: calc((90vw - 60px) / 10);
  background-color: var(--bg-white);
  filter: drop-shadow(3px 3px 5px rgba(224, 224, 224));
}
.work-fv {
  width: calc(var(--unit) * 7);
  aspect-ratio: 1.618 / 1;
}
.work-sub {
  width: var(--unit);
  aspect-ratio: calc(1.618 / 7) / 1;
}
/* 画像自体の設定 */
.work-box.ws-logo {
  height: fit-content;
  aspect-ratio: auto;
  display: flex;
  align-items: start;
}
/* ロゴ画像自体の設定 */
.work-box.ws-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.work-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-fv img,
.work-fv-sp img,
.ws-top img {
  object-position: top;
}
.ws-center img {
  object-position: center;
}
.ws-bottom img {
  object-position: bottom;
}
.ws-logo img {
  object-position: top;
}
.work-container h3 {
  color: #767676;
  margin-bottom: 10px;
}
.work-text {
  display: flex;
}
.work-text p {
  text-decoration: none;
  color: #767676;
}
.work-text p:last-child {
  text-decoration: underline;
  color: #767676;
}

/* ***** sub-works ***** */
.horizontal-scroll-section {
  height: 400vh;
  position: relative;
}
.sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.horizontal-list {
  display: flex;
  gap: 40px;
  padding: 0 10vw;
  will-change: transform;
}

.item img {
  width: 350px;
  height: 350px;
  padding: 20px;
  object-fit: contain;
  flex-shrink: 0;
  background-color: var(--bg-white);
  filter: drop-shadow(3px 3px 5px rgba(224, 224, 224));
}

/* 固定ボタンのエリア */
.bottom-button-area {
  position: absolute;
  bottom: 10vh;
  width: 100%;
  text-align: center;
}

/* ***** about ***** */
#about {
  background-color: #f2f4f7;
  padding: 100px 0;
}

.about-container {
  width: 90vw;
  margin: 0 auto;
}

.about-box {
  --unit: calc((90vw - 20px) / 10);
  display: flex;
  justify-content: center;
  gap: 50px;
}

.profile-img {
  width: calc(var(--unit) * 3);
}

.about-text {
  width: calc(var(--unit) * 5);
}

.about-text h4 {
  margin-bottom: 30px;
}

.about-text h4 span {
  font-size: 1em;
  font-weight: 400;
}

.about-text p {
  margin-bottom: 20px;
}

/* skills */
.skills-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  max-width: 90vw;
  margin: 0 auto;
}

/* グラフエリア */
.skills-visual {
  flex: 1;
  position: relative;
}

.graph-container {
  position: relative;
  width: 100%;
  max-width: 28vw;
  aspect-ratio: 1/1;
  margin: 50px auto;
}

.graph-base,
.graph-fill {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.graph-fill {
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.8;
}

.graph-fill.is-active {
  clip-path: circle(100% at 50% 50%);
}

/* 詳細エリア */
.skills-info {
  flex: 1;
  min-width: 300px;
  padding: 40px 0 40px 40px;
}

#skill-selector {
  width: 110px;
  padding: 10px;
  margin-bottom: 20px;
  background-color: unset;
  border: 1px solid #c0c0c0;
}

.detail-display h4 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--accent-blue);
  margin-bottom: 15px;
}

.detail-display p {
  font-size: 1rem;
  line-height: 1.6;
}

/* 頂点テキストボタンのスタイル */
.skill-label {
  position: absolute;
  background: none;
  border: none;
  color: var(--main-silver);
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
  z-index: 10;
  padding: 10px;
}

.skill-btn01 {
  top: 0%;
  left: 50%;
}

.skill-btn02 {
  top: 25%;
  left: 100%;
}

.skill-btn03 {
  top: 75%;
  left: 100%;
}

.skill-btn04 {
  top: 100%;
  left: 50%;
}

.skill-btn05 {
  top: 75%;
  left: 0%;
}

.skill-btn06 {
  top: 25%;
  left: 0%;
}

/* ホバー時と選択中のスタイル */
.skill-label:hover,
.skill-label.is-active {
  color: var(--accent-blue);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ***** contact ***** */
#contact {
  background-color: #f2f4f7;
  padding: 100px 0;
}

.btn-center {
  display: block;
  text-align: center;
  margin: 100px auto;
}

/* フォームの基本デザイン */
#contact-form {
  width: 55vw;
  margin: 0 auto;
}

.contact-section {
  padding: 80px 5vw;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.form-group label span {
  color: var(--accent-blue);
  margin-left: 5px;
  font-size: 0.8em;
  vertical-align: super;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #c0c0c0;
  background-color: var(--bg-white) 45;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--main-silver);
}

/* モーダル背景（うっすら黒） */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

/* すりガラス本体 */
.modal-content {
  position: relative;
  background: #fbfbfcf2;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
  margin-bottom: 20px;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* 確認用テキストのスタイル */
.confirm-item {
  margin-bottom: 15px;
  border-bottom: 1px solid #c0c0c080;
  padding-bottom: 5px;
}
.confirm-label {
  font-size: 0.8rem;
  opacity: 0.8;
}
.confirm-value {
  font-size: 1.1rem;
  margin-top: 5px;
}

.modal-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}
.modal-back {
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}

/* 右上の×ボタン */
.modal-close-btn {
  color: var(--main-silver);
  position: absolute;
  top: 5px;
  right: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  opacity: 0.7;
  z-index: 10;
}

.modal-close-btn:hover {
  opacity: 1;
  transform: rotate(90deg);
}

/* 下部の送信ボタンエリアの調整 */
.modal-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.modal-buttons button {
  font-size: 1em;
}

/* スライドショー */
.infinite-slider {
  overflow: clip;
  width: 100%;
  margin-bottom: 200px;
  padding: 40px 0;
}

.slider-lane {
  display: flex;
  margin-bottom: 20px;
}

/* スライドの器 */
.slide-track {
  display: flex;
  width: max-content;
  /* 隙間を一定にするために gap を使うのが現代的です */
  gap: 20px;
}

.slide-track img {
  width: 200px;
  height: 300px;
  object-fit: cover;
  margin-right: 0; /* marginの代わりにgapを使用 */
  flex-shrink: 0; /* 画像が潰れないように固定 */
}

/* --- アニメーション設定 --- */

/* 上段：右から左 */
.upper .slide-track {
  animation: scroll-left 30s linear infinite;
}

/* 下段：左から右 */
.lower .slide-track {
  animation: scroll-right 30s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* =================================================================*
/* --- Works一覧ページ専用スタイル --- 
/* =================================================================*/
.works-title {
  margin-bottom: 20px;
}
.section-inner {
  margin-bottom: 150px;
}
.works-sub-title {
  color: var(--subtitle-blue);
  text-shadow: 10px 10px 0px #f2f4f7;
  font-size: 4rem;
  font-weight: 350;
  margin-bottom: 30px;
  mix-blend-mode: multiply;
}
.works-sub-section {
  padding-top: 150px;
}
/* グリッドレイアウト：3列で自動折り返し */
.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 20px;
  width: 80vw;
  justify-self: center;
}

/* 各アイテムの基本構造（クリック可能にする） */
.works-item {
  cursor: pointer;
  transition: transform 0.3s ease;
}

.works-item.others {
  cursor: pointer;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.works-item:hover {
  transform: translateY(-5px);
}

/* PC画像：.work-fv img のスタイルを流用 */
.pc-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
/* SP画像：右下に小さく浮かせる演出（お好みで） */
.sp-thumb-wrap {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 25%;
  aspect-ratio: 1 / 1.618;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--bg-white);
  background-color: var(--bg-white);
}

.sp-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* テキスト情報 */
.works-info .works-category {
  color: var(--accent-blue);
  margin-bottom: 5px;
}

.works-info .works-name {
  font-size: 1.1rem;
  color: rgba(51, 51, 51, 0.75);
  font-weight: 500;
}

/* --- モーダル調整（作品詳細用：スクロール改善版） --- */
.works-modal .modal-content {
  width: 90vw;
  max-width: 900px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
}

.modal-scroll-area {
  flex: 1; /* 親の高さに合わせて伸びる */
  overflow-y: auto;
  padding: 50px 40px;
}

.modal-scroll-area::-webkit-scrollbar {
  width: 8px;
}
.modal-scroll-area::-webkit-scrollbar-track {
  background: transparent;
}
.modal-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(192, 192, 192, 0.4);
  border-radius: 10px;
}

/* モーダル内の画像 */
.modal-visual {
  margin-bottom: 30px;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.modal-text-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #333;
}

.modal-url {
  margin-bottom: 30px;
}

.modal-url a {
  text-decoration: underline;
  color: var(--accent-blue);
}

.modal-desc h4 {
  border-left: 3px solid var(--subtitle-blue);
  padding-left: 10px;
  margin: 30px 0 10px;
  font-size: 1.1rem;
}
/* --- モーダル内の画像サイズ微調整 --- */
.modal-visual .works-thumb {
  margin: 0 auto;
}

/* サムネイル：既存の .work-box スタイルを継承 */
.works-thumb {
  position: relative;
  /* width: 100%; */
  width: fit-content;
  /* aspect-ratio: 1.618 / 1; */
  background-color: var(--bg-white);
  filter: drop-shadow(3px 3px 5px rgba(224, 224, 224));
  overflow: hidden;
  margin-bottom: 15px;
}

#web-design #wd-container .works-thumb {
  width: 100%;
  aspect-ratio: 1.618 / 1;
}

/* data-concept などのテキストで改行を有効にする設定 */
.modal-desc p {
  white-space: pre-wrap;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* --- レスポンシブ（スマホ） --- */
/* others専用：4列グリッド */
.others-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* others専用：正方形サムネイル */
.others-thumb {
  aspect-ratio: 1 / 1;
}
.others-thumb img {
  object-fit: contain;
  object-position: center;
}

/* モーダル内の画像可変設定 */
.works-modal .pc-thumb {
  height: auto; /* 固定比率を解除して画像本来の高さに合わせる */
  max-height: none;
}

/* ****************************************************************** */
/* --- PC版・共通（メディアクエリの外に記述） --- */
.hamburger,
.sp {
  display: none; /* PCでは隠す */
}
@media (min-width: 769px) {
  .has-child:hover .dropdown {
    display: block;
  }
}

/* --- レスポンシブ（768px以下） --- */
@media (max-width: 768px) {
  /* 共通 */
  html {
    font-size: 14px;
  }
  .sp {
    display: block;
  }
  .pc {
    display: none;
  }
  .section-wrap h2 {
    font-size: 52px;
    text-shadow: 5px 5px 0px #f2f4f7;
  }
  /* ヘッダー全体のレイアウト */
  .header-wrap {
    width: 100%;
    top: 0px;
    justify-content: center;
  }

  /* PC版のナビを隠し、スマホ用全画面メニューに作り変える */
  .global-nav {
    display: none;
    position: fixed;
    /* 四隅を0に固定して全画面を強制する */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: #272c3c;
    z-index: 999;
    margin: 0;
    padding: 0 0 50px 0;
    flex-direction: column;
    justify-content: end;
    align-items: center;
  }

  /* JSでメニューが開いた時 */
  .global-nav.is-open {
    display: flex;
    justify-content: end;
    padding-bottom: 10vh;
  }
  .global-nav.is-open::before {
    content: "";
    position: absolute;
    top: 100px;
    left: -30px;
    width: 100%;
    height: 77%;
    border: 1px solid rgba(255, 255, 255, 0.1); /* さらに薄い色 */
    z-index: -1; /* メニュー文字の後ろへ */
    pointer-events: none; /* クリックを邪魔しない */
  }
  .global-nav.is-open::after {
    content: "";
    position: absolute;
    top: 122px;
    left: 30px;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2); /* さらに薄い色 */
    z-index: -1; /* メニュー文字の後ろへ */
    pointer-events: none; /* クリックを邪魔しない */
  }

  /* 丸枠のハンバーガーボタン */
  .hamburger {
    display: flex;
    position: absolute;
    right: 0; /* ヘッダー右端 */
    width: 44px;
    height: 44px;
    /* border: 1px solid var(--main-silver); */
    border-radius: 50%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 13px;
    z-index: 1000;
    /* background: var(--main-silver); */
    cursor: pointer;
    margin-right: 10px;
  }

  /* ボタンの中の2本線 */
  .hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--bg-white);
    transition:
      opacity 0.2s,
      transform 0.4s 0.2s ease,
      top 0.4s 0.2s ease;
    border-radius: 50px;
    opacity: 0;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .hamburger svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 70%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.75;
  }
  /* 
  .hamburger span:nth-child(2) {
    top: 67%;
  }
  .hamburger span:last-child {
    top: 67%;
  } */

  /* ×印アニメーション */
  .hamburger.is-active span:nth-child(2) {
    transform: translate(-50%, -50%) rotate(45deg);
    opacity: 1;
    top: 67%;
  }
  .hamburger.is-active span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg);
    opacity: 1;
    top: 67%;
  }
  .hamburger.is-active #b-mask path {
    transition: all 0.2s;
  }

  .hamburger.is-active #b-mask path:nth-child(2) {
    opacity: 0;
  }
  .hamburger.is-active #b-mask path:last-child {
    opacity: 0;
  }

  .nav-logo {
    position: relative;
    z-index: 1001;
    margin-top: 10px;
    display: flex;
    justify-content: center;
  }
  .nav-logo a img {
    width: 100px;
  }
  .nav-list {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .nav-link {
    font-size: 1.8rem;
    color: var(--bg-white);
  }

  .dropdown {
    display: block;
    position: static;
    opacity: 0.8;
    padding: 0;
    margin-top: 10px;
  }
  .dropdown a {
    font-size: 1.4rem;
    color: var(--main-silver);
    padding: 8px 0;
  }
  .logo {
    width: 70vw;
  }
  .site-title {
    font-size: 1.1rem;
  }
  .cursor-mask {
    filter: blur(50px);
  }

  .work-container {
    margin-bottom: 120px;
  }
  .work-inner {
    display: block;
    height: auto;
    gap: 20px;
    width: 100%;
    margin: 0 auto 20px;
  }
  .work-box {
    --unit: calc((90vw - 60px) / 10);
  }
  .work-fv-sp {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.5;
    margin-bottom: 20px;
  }
  .work-sub-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
  }
  .work-fv.sp {
    width: calc(var(--unit) * 10);
    aspect-ratio: 1.618 / 1;
  }
  .work-sub {
    width: 31%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .work-text {
    display: block;
  }
  .sticky-wrapper {
    top: -60px;
    height: 95vh;
  }
  .horizontal-scroll-section {
    height: 600vh;
  }
  .item img {
    /* width: 280px;
    height: 280px; */
    width: 100%;
    height: 100%;
  }
  .horizontal-list {
    gap: 20px;
    padding: 0 5vw;
  }
  .bottom-button-area {
    bottom: 50px;
  }

  .about-container {
    width: 80vw;
  }
  .skills-info {
    width: 80vw;
    flex: 1;
    min-width: 0px;
    margin: 0 auto;
    padding: 0px 0 0px 0px;
  }
  .overlap-btn {
    padding: 15px 50px;
  }
  .about-box {
    width: 100%;
    display: block;
  }
  .profile-img {
    width: 100%;
    margin-bottom: 10px;
  }
  .about-text {
    width: 100%;
  }
  .skills-inner {
    display: block;
  }
  .graph-container {
    max-width: 60vw;
  }
  .skill-label {
    font-size: 0.8rem;
  }
  #contact-form {
    width: 100%;
    margin: 0 auto;
  }
  .slide-track img {
    width: 200px;
    height: 250px;
  }
  .glass-footer {
    padding: 10vh 10vw 1vh;
  }
  .footer-bg {
    height: 75%;
    top: 15%;
  }
  .footer-container {
    display: block;
  }
  .footer-logo {
    width: 100%;
    max-width: 288px;
    margin-bottom: 30px;
  }
  .f-sitemap {
    font-size: 16px;
  }
  .f-sitemap.sp {
    display: flex;
    justify-content: space-between;
  }
  .f-sitemap__list {
    display: block;
    justify-content: space-between;
    padding: 0 10px;
    gap: 0;
  }
  .f-sitemap__list li {
    margin-bottom: 1rem;
  }
  .f-sitemap__list a,
  .f-sitemap__sub {
    font-size: 1.4rem;
  }
  .copyright {
    font-size: 0.7rem;
    margin-bottom: 10px;
    text-align: center;
  }
  .others-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .works-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    /* width: 90vw; */
  }
  .works-sub-title {
    font-size: 2.5rem;
  }
  .works-modal .modal-content {
    padding: 0;
  }
  .modal-scroll-area {
    padding: 50px 20px;
  }

  .modal-close-btn {
    top: 5px;
  }
  /* 1. PC用のメイン画像を非表示にする */
  .works-item.pc-thumb {
    display: none;
  }
  /* 2. 右下に浮かせていたSP画像枠を、メインの位置に広げる */
  .works-item .sp-thumb-wrap .sp {
    position: static;
    width: 100%;
    aspect-ratio: 1 / 1.618;
    box-shadow: none;
    border: none;
    margin-bottom: 10px;
  }

  /* 3. 中の画像を枠にフィットさせる */
  .works-item .sp-thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
