/* 背景全体 */
body {
  margin: 0;
  font-family: "Hiragino Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #fff;
  overflow-x: hidden;
}

/* アニメーションするグラデーション背景 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(-45deg, #5c9aa4, #b1b85a, #56b0a5, #c7e2e9);
  background-size: 400% 400%;
  animation: gradient 8s ease infinite;
  z-index: -2;
}

/* ノイズ効果を重ねる */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://www.transparenttextures.com/patterns/noise.png");

  opacity: 0.1; /* ノイズの強さ調整 */
  z-index: -1;
  pointer-events: none;
}

/* グラデーションアニメーション */
@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* ▼ サイド固定ナビゲーション */
.sidebar {
  height: 0;
}

.global-navi {
  position: fixed;
  top: 0;
  left: 0;
  width: 140px;
  height: 100%;
  background: linear-gradient(180deg, #294952 0%, #5aa6b1 100%);
  backdrop-filter: blur(10px);
  color: #f4f4f4;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  font-family: "Helvetica Neue", sans-serif;
}

/* ロゴ */
.logo-area {
  text-align: center;
  margin-bottom: 40px;
}
.logo-area .logo-top,
.logo-area .logo-bottom {
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #5aa6b1;
}
.logo-area hr {
  width: 40px;
  border: 0;
  border-top: 1px solid #52737c;
  margin: 8px auto;
  opacity: 0.6;
}

/* ナビゲーションリスト */
.list-navi {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list-navi .item {
  margin: 60px 0;
}

/* ▼ 文字回転アニメーション */
.list-navi .link {
  display: inline-block;
  perspective: 600px; /* 奥行き */
  text-decoration: none;
}

.list-navi .link span {
  display: inline-block;
  position: relative;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  transition: transform 0.5s ease;
  transform-style: preserve-3d;
}

.list-navi .link span::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateX(90deg); /* 裏側に隠す */
  transform-origin: bottom;
  color: #5c9aa4; /* ホバー後の文字色（濃い青） */
  backface-visibility: hidden;
}

.list-navi .link span::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  transform: rotateX(0deg);
  transform-origin: top;
  backface-visibility: hidden;
}

.list-navi .link:hover span {
  transform: rotateX(-90deg);
}

.about-section {
  /* padding: 80px 40px; */
  margin-left: 180px;
}

.about-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  margin-top: 100px;
}

.about-profile {
  /* display: flex;
  gap: 40px; */
  display: block;
  margin-bottom: 100px;
}

.about-text {
  max-width: 800px;
  line-height: 2;
}

.about-text h2 {
  font-size: 2rem;
  border-left: 4px solid #5aa6b1;
  padding-left: 15px;
  margin-bottom: 30px;
}

.values-grid {
  display: flex;
  gap: 40px;
  margin-bottom: 80px;
}

.value-item {
  text-align: left;
  border-top: 1px solid rgba(255,255,255,0.3);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-top: 20px;
  padding-bottom: 20px;
}

.value-title {
  font-size: 1.25rem;
  color: #c7e2e9;
  margin-bottom: 10px;
}

.value-sub {
  font-weight: bold;
  margin-bottom: 10px;
}

.skills-flex {
  display: flex;
  justify-content: space-between;
}

.skill-item1 {
  margin-left: 15%;
}

.skill-item2 {
  margin-right: 15%;
}

.contact {
  position: relative;
  width: 100vw;
  margin: 50px 0 0 0;
  left: 0;
  background: linear-gradient(317deg, #d0ecef, #236b73);
  color: #000;
  text-align: center;
  padding: 100px 20px;
  margin-top: 50px;
  opacity: 0.5;
  z-index: 0;
  box-sizing: border-box;
}

.contact-inner {
  margin-left: 140px; /* サイドバー分 */
  padding: 0 20px;
  box-sizing: border-box;
}

.contact h2 {
  font-size: 48px;
  margin-bottom: 30px;
}
.contact p {
  font-size: 18px;
}
.footer {
  text-align: center;
  font-size: 12px;
  margin-top: 20px;
}

/* ==============================
  ▼ 共通レスポンシブ設定（〜599px）
   ============================== */
@media (max-width: 599px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

    /* ▼ サイドバー → ハンバーガーメニュー */
  .global-navi {
  position: fixed;
  top: 0;
  width: 100%;
  height: auto;
  padding-top: 24px;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  }

  /* ロゴ部分 */
  .logo-area {
    margin: 0;
  }

  .logo-area .logo-top,
  .logo-area .logo-bottom {
    font-size: 13px;
    display: block;
    line-height: 1.2;
    color: #fff;
  }

  .logo-area hr {
    display: none;
  }

  /* ハンバーガーボタン */
  .hamburger {
    display: block;
    position: relative;
    width: 26px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    z-index: 2000;
  }

  .hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #003d4d;
    border-radius: 3px;
    transition: all 0.3s ease;
  }
  .hamburger span:nth-child(1) {
    top: 0;
  }
  .hamburger span:nth-child(2) {
    top: 7px;
  }
  .hamburger span:nth-child(3) {
    bottom: 0;
  }

  /* 開閉アニメーション */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 7px;
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 8px;
  }

  /* メニューリスト（スライドイン） */
  .list-navi {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 1s ease;
    z-index: 1500;
    background: linear-gradient(-45deg, #62e2f6, #bbe3d7, #1c6159, #9bece0);
    background-size: 400% 400%;
    animation: menuGradient 8s ease infinite;
  }

  .list-navi.active {
    right: 0;
  }

  .list-navi .item {
    margin: 24px 0px;
  }

  .list-navi .link span {
    color: #fff;
    font-size: 18px;
    letter-spacing: 2px;
    text-shadow: 3px 1px 2px rgba(0, 0, 0, 0.3);
  }

    @keyframes menuGradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  /* サイドバーが消える時、main全体を幅100%に */
  .main {
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
  }

.about-section {
    margin-left: 0; /* PC版のサイドバー余白をリセット */
  }

  .about-profile,
  .values-grid,
  .skills-flex {
    flex-direction: column; /* 縦並びに統一 */
    gap: 30px;
    margin-bottom: 60px;
  }

.skill-item1,
.skill-item2 {
    margin: 0; /* PC版の15%マージンをリセット */
    text-align: center;
  }

  .btn-more {
    margin-bottom: 20px;
  }

.contact {
    width: 100%;
    padding: 60px 20px;
    margin: 40px 0 0;
    background: linear-gradient(317deg, #d0ecef, #236b73);
    color: #fff;
    text-align: center;
    box-sizing: border-box;
  }

.contact-inner {
    margin-left: 0 !important;
  }

  .contact h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .contact p {
    font-size: 14px;
  }

  .footer {
    margin-top: 30px;
    font-size: 11px;
    color: #333;
  }
}
