@charset "UTF-8";

body {
  background-color: #eeffff;
}
main {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}
header h1 {
  font-size: 60px;
}
.contact-img {
  text-align: center;
}

form {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;

  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  box-sizing: border-box;
}

input[type="submit"],
input[type="reset"] {
  padding: 10px 20px;
  margin-right: 10px;
}
main h2 {
  text-align: center;
  font-size: 58px;
}
main h3 {
  text-align: center;
  font-size: 32px;
}
main p {
  text-align: center;
}
footer p {
  text-align: center;
}
.contact-img {
  width: 100%;
  height: 1200px; /* 高さを決める（お好みで調整） */
  overflow: hidden; /* はみ出した部分を隠す */
  position: relative;
}

.contact-img video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* トリミングしながら埋める */
  object-position: center bottom; /* 下を基準に表示 → 上が隠れる */
}
.typing {
  font: 900 4rem/1 "JetBrains Mono";
  width: 15ch;
  overflow: hidden;
  animation: typing 1.5s steps(15) infinite alternate;
  margin-bottom: clamp(12px, 2.5vw, 32px);
}
@keyframes typing {
  from {
    width: 0ch;
  }
}
/* ハンバーガー */
.hamburger {
  position: fixed;
  top: 30px;
  right: 20px;
  width: 44px;
  height: 32px;
  color: #333;
  cursor: pointer;
  z-index: 1600; /* ナビより上（クリック可能に） */
  -webkit-tap-highlight-color: transparent;
}
.hamburger * {
  pointer-events: none;
}
.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: currentColor;
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease, background-color 0.25s ease;
}
.hamburger span:nth-child(1) {
  top: 0;
}
.hamburger span:nth-child(2) {
  top: calc(50% - 1.5px);
}
.hamburger span:nth-child(3) {
  bottom: 0;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(14px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.6);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-14px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .hamburger span {
    transition: none;
  }
}
/* オフキャンバスNav：transformで完全に隠す */
#nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(82vw, 320px);
  height: 100dvh;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 80px 20px 24px;
  transform: translateX(100%); /* ←初期状態は完全に画面外 */
  transition: transform 0.3s ease-in-out;
  z-index: 1500; /* ロゴより上、ハンバーガーより下 */
  pointer-events: none; /* 閉じてる間はクリック不可 */
}
#nav.active {
  transform: translateX(0);
  pointer-events: auto;
}
#nav a {
  display: block;
  padding: 12px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #1f2937;
  background: transparent;
  transition: color 0.6s ease, background 0.6s ease;
}
#nav a:hover,
#nav a:focus-visible {
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.12);
  outline: none;
}
#nav a:active {
  background: rgba(14, 165, 233, 0.2);
}

@media (prefers-reduced-motion: reduce) {
  #nav,
  #nav a {
    transition: none;
  }
}

/* 背景用オーバーレイ：ナビ展開時だけ表示（クリックで閉じられる） */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 1400; /* ナビの下、ページの上 */
}
.nav-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
