
/* ハンバーガーメニューボタン */
.hamburger-menu {
  display: none;
  background: none;
  border: none;
  width: 30px;
  height: 24px;
  position: relative;
  cursor: pointer;
  padding: 0;
}

.hamburger-menu span {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.4s ease;
}

.hamburger-menu span:nth-child(1) { top: 0; }
.hamburger-menu span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-menu span:nth-child(3) { bottom: 0; }

/* ハンバーガーメニューアクティブ時 */
.hamburger-menu.active span:nth-child(1) {
  transform: translateY(11px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-11px) rotate(-45deg);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
    z-index: 1001;
  }

  .global-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--primary-white);
    padding: 80px 20px 20px;
    transition: right 0.4s ease;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }

  .global-nav.active {
    right: 0;
  }

  .global-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .global-nav li {
    width: 100%;
  }

  .global-nav a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
  }

  /* ドロップダウンメニューのモバイル対応 */
  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    padding-left: 1rem;
  }

  .has-dropdown.active .dropdown-menu {
    display: block;
  }
}

/* ======================
   Hero Section
====================== */
.contact-hero {
    position: relative;
    height: 40vh;
    width: 100%;
  }
  
  .contact-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: 1;
  }
  
  .contact-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .contact-hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
  }
  
  .contact-hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
  }
  
  .contact-hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0;
    transform: translateY(30px);
  }
  
  /* ======================
     Form Section
  ====================== */
  .contact-form-section {
    padding: 8rem 2rem;
    background: #fff;
  }
  
  .container {
    max-width: 800px;
    margin: 0 auto;
  }
  
  .section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
  }
  
  .contact-form {
    opacity: 0;
    transform: translateY(30px);
  }
  
  .form-group {
    margin-bottom: 2rem;
  }
  
  label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
  }
  
  .required {
    color: #F45327;
    margin-left: 0.3rem;
  }
  
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }
  
  input[type="text"]:focus,
  input[type="email"]:focus,
  input[type="tel"]:focus,
  select:focus,
  textarea:focus {
    border-color: #F45327;
    outline: none;
    box-shadow: 0 0 0 3px rgba(244, 83, 39, 0.1);
  }
  
  textarea {
    height: 200px;
    resize: vertical;
  }
  
  .privacy-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
  }
  
  input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
  }
  
  .privacy-link {
    color: #F45327;
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  .privacy-link:hover {
    color: #FF724D;
  }
  
  .submit-group {
    text-align: center;
    margin-top: 3rem;
  }
  
  .submit-btn {
    background: #F45327;
    color: white;
    border: none;
    padding: 1rem 4rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .submit-btn:hover {
    background: #FF724D;
    transform: translateY(-2px);
  }
  
  .submit-btn:active {
    transform: translateY(0);
  }
  
  /* エラー状態のスタイル */
  .error {
    border-color: #ff4444;
  }
  
  .error-message {
    color: #ff4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
  }
  
  /* アニメーション */
  .fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease;
  }
  
  /* レスポンシブデザイン */
  @media screen and (max-width: 768px) {
    .contact-hero {
      height: 30vh;
    }
  
    .form-group {
      margin-bottom: 1.5rem;
    }
  
    .privacy-group {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .submit-btn {
      width: 100%;
      padding: 1rem 2rem;
    }
  }
  
  @media screen and (max-width: 480px) {
    .contact-form-section {
      padding: 4rem 1rem;
    }
  
    .section-title {
      font-size: 2rem;
      margin-bottom: 3rem;
    }
  }