@charset "utf-8";

/* ================= LOADER ================= */

.loader {
  position: fixed;
  inset: 0;

  background: #000;

  z-index: 99999;

  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;

  transition:
    opacity 1s ease,
    visibility 1s ease;
}

/* 消える */
.loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* ノイズ */
.loader__noise {
  position: absolute;
  inset: 0;

  background:
    repeating-linear-gradient(
      to bottom,
      rgba(255,255,255,0.03),
      rgba(255,255,255,0.03) 1px,
      transparent 2px,
      transparent 4px
    );

  opacity: 0.25;

  animation: noiseMove 0.15s infinite linear;

  pointer-events: none;
}

/* フラッシュ */
.loader__flash {
  position: absolute;
  inset: 0;

  background: #fff;

  opacity: 0;

  mix-blend-mode: screen;

  pointer-events: none;
}

/* 中央 */
.loader__content {
  position: relative;

  z-index: 2;

  text-align: center;

  animation: loaderGlitch 0.08s infinite alternate;
}

/* ロゴ */
.loader__content img {
  width: 180px;

  margin-bottom: 30px;

  filter:
    drop-shadow(0 0 8px #fff)
    drop-shadow(0 0 20px #a020f0)
    drop-shadow(0 0 40px #a020f0);

  animation:
    logoAppear 1.2s ease,
    logoNoise 0.12s infinite alternate;
}

/* テキスト */
.loader__text {
  font-family: "Nosifer", sans-serif;

  font-size: 18px;

  letter-spacing: 6px;

  color: #fff;

  text-shadow:
    0 0 8px #fff,
    0 0 18px #a020f0,
    0 0 30px #a020f0;

  animation:
    textFlicker 0.1s infinite alternate;

    transform: scaleY(1.6) scaleX(0.9);
}

/* ===== アニメ ===== */

@keyframes logoAppear {
  0% {
    opacity: 0;
    transform: scale(1.3);
    filter: blur(10px);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

@keyframes loaderGlitch {
  0% {
    transform: translate(0);
  }

  20% {
    transform: translate(-1px,1px);
  }

  40% {
    transform: translate(1px,-1px);
  }

  60% {
    transform: translate(-1px,0);
  }

  80% {
    transform: translate(1px,1px);
  }

  100% {
    transform: translate(0);
  }
}

@keyframes logoNoise {
  0% {
    filter:
      drop-shadow(0 0 8px #fff)
      drop-shadow(0 0 20px #a020f0);
  }

  100% {
    filter:
      drop-shadow(2px 0 red)
      drop-shadow(-2px 0 cyan)
      drop-shadow(0 0 30px #a020f0);
  }
}

@keyframes textFlicker {
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.85;
  }

  100% {
    opacity: 1;
  }
}

@keyframes noiseMove {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(4px);
  }
}
/* ================= BASE ================= */
body {
  font-family: "Noto Sans JP", sans-serif;
  background: #0a0a0a;
  color: #fff;
  line-height: 1.6;
  
}

:root {
  --nav-width: 200px;
}

main {
  margin-left: var(--nav-width);
}

/* ================= COMMON ================= */
.section-title {
  font-size: 40px;
  margin-bottom: 40px;
  letter-spacing: 2px;
}

.section-subtitle {
  font-size: 24px;
  margin-bottom: 20px;
}

/* ================= LOGO ================= */
.logo {
  position: absolute;
  top: 40px;
}

.logo img {
  width: 140px;
  height: auto;
  display: block;
  transition: 0.3s;
  filter:
    brightness(1.4)
    contrast(1.2)
    drop-shadow(0 0 6px rgba(255,255,255,0.5))
    drop-shadow(0 0 12px rgba(160,32,240,0.7));
}

.logo img:hover {
  transform: scale(1.05);
  filter:
    brightness(1.6)
    drop-shadow(0 0 10px rgba(255,255,255,0.7))
    drop-shadow(0 0 20px rgba(160,32,240,1));
}

/* ================= SIDE NAV ================= */
.side-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  z-index: 1000;
   background: linear-gradient(
    to right,
    rgba(60, 0, 80, 0.6),
    rgba(20, 0, 40, 0.2)
  );

  backdrop-filter: blur(10px);

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  z-index: 1000;
}

/* ナビリスト */
.side-nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 30px;
  text-align: center;
}

.side-nav a {
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  transition: 0.3s;
}

.side-nav a:hover {
  color: #a020f0;
}

.side-nav a.active {
  color: #a020f0;
}

.section-title,
.side-nav a {
   font-family: "Big Shoulders Stencil", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}
/* 境界ライン */
.side-nav::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: rgba(255,255,255,0.1);
}
/* ==============SP NAV SOCIAL============= */
.side-nav__social{
  display: none;
}

.side-nav__social a{
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}

.side-nav__social img{
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  opacity: 0.8;
  transition: 0.3s;
}
.side-nav__social img:hover{
  opacity: 1;
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px #a020f0);
}
/* ================= HERO ================= */
.hero {
  width: 100%;
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
    margin-left: calc(-1 * var(--nav-width));
  width: calc(100% + var(--nav-width));
}



/* 背景画像 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("img/header img fin.jpg") center/cover no-repeat;
  z-index: 0;
}

/* オーバーレイ */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,0.7),
    rgba(42,0,48,0.2)
  );
  z-index: 1;
}

/* テキスト */
.hero__inner {
  position: relative;
  z-index: 2;
  left: 100px;
}

.hero__catch {
  text-shadow: 0 0 20px #a020f0;
  font-family: "Nosifer", sans-serif;
  font-weight: 400;
  font-style: normal;
  color: #ffffffc5;
  font-size: 64px;    
  text-align: center;
  line-height: 1.1;
  padding: 0 20px;
  word-break: break-word;
  display: inline-block;
  transform: scaleY(1.4) scaleX(0.85);
  letter-spacing: 8px;
}
.dot{
 display: inline-block;
}

/* ================= ABOUT ================= */
.about {
  padding: 150px 5%;
}

.about__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.about__profile {
  position: sticky;
  top: 100px;
  margin-bottom: 200px;
}

.about__skills {
  opacity: 0;
  transform: translateY(50px);
  transition: 0.6s;
}

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

/* スキル */
.skills__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skills__list li {
  padding: 8px 15px;
  border: 1px solid #a020f0;
}

/* ================= WORKS ================= */

.works__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.works__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.works__item p {
  position: absolute;
  bottom: 10px;
  left: 10px;
  font-size: 14px;
}
.works {
  padding: 150px 5%;
}

.works__category h3{
    margin-bottom: 15px;
}
.works__category {
  margin-bottom: 80px;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.works__item {
  height: 200px;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.works__item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px #a020f0;
}

.works__inner {
  max-width: 1000px;
  margin: 0 auto;
}

/* ================= CONTACT ================= */
.contact {
  padding: 150px 5%;
  text-align: center;
  background: #0a0a0a;
}

.contact__btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 30px;
  /* background: #a020f0; */
  border: 1px solid #a020f0;
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
  margin-bottom: 20px;
}

.contact__btn:hover {
  box-shadow: 0 0 15px #a020f0;
}
/* ===============Socialアイコン=================== */
.social {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  flex-direction: column;
  gap: 20px;

  z-index: 1000; /* ナビと同じか上 */
}
.social img {
  opacity: 0.7;
  transition: 0.3s;
}

.social a {
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.social img {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}

.social img:hover {
  opacity: 1;
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px #a020f0);
}
.social::after {
  content: "";
  width: 1px;
  height: 100px;
  background: rgba(255,255,255,0.3);
  margin: 0 auto;
}
/* ================= FOOTER ================= */
.footer {
  padding: 40px;
  text-align: center;
  background: #050505;
  font-size: 14px;

}

.footer__credit {
  opacity: 0.6;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .about__profile {
    position: static;
  }

  .about__skills {
    opacity: 1;
    transform: none;
  }
    .social {
    display: none;
  }


/* ハンバーガー */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 2000;
  display: none;
}

.hamburger span {
  display: block;
  height: 2px;
  background: #fff;
  margin-bottom: 6px;
  transition: 0.3s;
}

/* 初期状態 */
  body {
    margin-left: 0;
  }

main {
    margin-left: 0;
  }

    .hero {
    margin-left: 0;
    width: 100%;
  }

  .hamburger {
    display: block;
  }

  .side-nav {
    transform: translateX(-100%);
    transition: 0.3s;
    width: 100%;
    justify-content: center;
    gap: 50px;
  }
.side-nav__social{
  display: flex;
  gap: 20px;
}
  /* 開いた状態 */
  .side-nav.active {
    transform: translateX(0);
  }


.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}
.hero__inner{
  left: 0;
  transform: translateY(-60px);
}

  .hero__catch {
    font-size: clamp(56px, 14vw, 96px);
  }
  .sp-break br{
    display: block;
  }
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.about__inner,
  .works__inner {
    padding: 0 20px;
  }

  .works__grid {
    grid-template-columns: 1fr;
  }

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2000;
}

.modal.active {
  display: block;
}

.modal__bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}

.modal__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #111;
  padding: 40px;
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.modal__link {
  display: inline-block;
  margin-top: 20px;
  color: #a020f0;
}
}

@media (min-width: 769px) {
  .footer {
    left: 100px;
  }
}