/* 背景全体 */
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%);
  display: flex;
  backdrop-filter: blur(10px);
  color: #f4f4f4;
  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: #003d4d; /* ホバー後の文字色（濃い青） */
  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);
}

/* 全体 */
.contact-page {
  display: block;
  padding-left: 140px;
}

.contact-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 20px;
}

.contact-section h1 {
  font-size: 48px;
  letter-spacing: 0.1em;
  margin-bottom: 40px;
  text-align: center;
}
/* フォーム部分 */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  /* background: rgba(255, 255, 255, 0.15); */
  padding: 30px;
  border-radius: 10px;
}

.form-container h2 {
  font-size: 24px;
  font-weight: bold;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.form-container .description {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* 入力フォーム */
.contact-form label {
  display: block;
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: bold;
}

.required-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 6px;
  background-color: #dc3545;
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
  line-height: 1;
  vertical-align: middle;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 0px;
  margin-bottom: 20px;
  border: none;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #03292b;
  backdrop-filter: blur(6px);
  transition: background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background-color: rgba(255, 255, 255, 0.25);
  outline: 1px solid #c5ce68;
}

/* 送信ボタン */
.contact-form button {
  display: block;
  margin: 30px auto 0;
  padding: 20px 50px;
  background: #e8dbcf;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: linear-gradient(135deg, #56b0a5, #b1b85a);
  color: #fff;
}

/* フッター部分 */
.contact-footer {
  text-align: center;
  margin-top: 50px;
}

.contact-footer h2 {
  font-size: 40px;
  margin-bottom: 10px;
}

.contact-footer p {
  font-size: 18px;
  margin-bottom: 5px;
}

.contact-footer small {
  font-size: 12px;
  color: #333;
}

/* ==============================
  スマホ最適化
   ============================== */
@media (max-width: 599px) {
  /* ▼ 全体調整 */
  body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-size: 14px;
    overflow-x: hidden;
    background: linear-gradient(-45deg, #6eb2bc, #c5ce68, #61c7bb, #d3eef5);
    background-size: 300% 300%;
    animation: bgFlow 12s ease infinite;
  }

  @keyframes bgFlow {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  /* ▼ サイドバー → ハンバーガーメニュー */
  .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;
    color: #fff;
  }

  .logo-area hr {
    display: none;
  }

  /* ハンバーガーボタン */
  .hamburger {
    display: block;
    position: relative;
    width: 26px;
    height: 18px;
    cursor: pointer;
    margin-bottom: 10px;
    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(135deg, #6eb2bc, #c5ce68, #61c7bb, #d3eef5);
    background-size: 400% 400%;
    animation: menuGradient 8s ease infinite;
  }

  @keyframes menuGradient {
    0% {
      background-position: 0% 50%;
    }
    50% {
      background-position: 100% 50%;
    }
    100% {
      background-position: 0% 50%;
    }
  }


  .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);
  }

  .contact-page {
    padding-left: 0; /* スマホではサイドバーの余白をなくす */
    padding-top: 100px; /* 代わりに上部にナビ分の余白を空ける */
  }
}


