body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    system-ui, sans-serif;
  margin: 0;
  padding: 0;
  padding-top: 80px; /* fixedヘッダーの分の余白 */
  line-height: 1.65;
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f8fafc 25%,
    #f1f5f9 50%,
    #e2e8f0 75%,
    #cbd5e1 100%
  );
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  color: #1e293b;
  font-size: 16px;
  scroll-behavior: smooth;
}

/* パーティクル背景用のキャンバススタイル */
#particles-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

section {
  padding: 4rem 1.5rem;
  max-width: 1600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* セクション間の境界を自然に */
section:first-of-type {
  margin-top: 2rem;
}

section:last-of-type {
  margin-bottom: 4rem;
}

header {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 2px solid #3b82f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
}

.logo {
  height: 45px;
  display: block;
  margin-left: 0;
  filter: brightness(1.2) contrast(1.1);
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
  filter: brightness(1.3) contrast(1.2);
}

.nav {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav li {
  position: relative;
}

.nav a {
  text-decoration: none;
  color: #475569;
  font-weight: 500;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  position: relative;
  overflow: hidden;
}

.nav a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.3),
    transparent
  );
  transition: left 0.5s;
  z-index: 1;
}

.nav a:hover::before {
  left: 100%;
}

.nav a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

footer {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  color: #475569;
  border-top: 1px solid #3b82f6;
  text-align: center;
  padding: 1.5rem 1.5rem 0 1.5rem;
  margin-top: 4rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 0;
}

footer p {
  margin: 0;
  padding-bottom: 10px;
}

.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0;
  margin: 0 0 2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #64748b;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.footer-nav a:hover {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* フォーム共通スタイル */
.application-form {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.9) 100%
  );
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px);
  max-width: 750px;
  margin: 0 auto;
  padding: 2.5rem;
}

.application-form .form-group {
  margin-bottom: 25px;
}

.application-form .form-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #334155;
  font-size: 1.05em;
  letter-spacing: 0.025em;
}

.application-form .form-group .required {
  color: #dc3545; /* 必須項目の赤色 */
  font-size: 0.9em;
  margin-left: 5px;
}

.application-form input[type="text"],
.application-form input[type="email"],
.application-form input[type="tel"],
.application-form input[type="date"],
.application-form input[type="number"],
.application-form select,
.application-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  box-sizing: border-box;
  color: #1e293b;
  line-height: 1.5;
}

.application-form input:focus,
.application-form select:focus,
.application-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: rgba(255, 255, 255, 1);
}

.application-form input::placeholder,
.application-form textarea::placeholder {
  color: #94a3b8;
  font-size: 0.95em;
}

.application-form select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

.application-form textarea {
  resize: vertical;
  min-height: 120px;
}

.application-form .form-actions {
  text-align: center;
  margin-top: 2.5rem;
}

.application-form button,
.application-form .submit-button {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  color: white;
  padding: 18px 45px;
  border: none;
  border-radius: 12px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 220px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
}

.application-form button::before,
.application-form .submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.application-form button:hover::before,
.application-form .submit-button:hover::before {
  left: 100%;
}

.application-form button:hover,
.application-form .submit-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.application-form button:active,
.application-form .submit-button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 30px;
  height: 30px;
  position: relative;
  z-index: 1001;
}

.hamburger-menu:active {
  background-color: rgba(0, 0, 0, 0.1);
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background-color: #1e293b;
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 1px;
  transform-origin: center;
  display: block;
}

/* ハンバーガーメニューのアニメーション */
.hamburger-menu.active .hamburger-line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
} /* 480px以下でのみハンバーガーメニューを表示 */

@media (max-width: 1366px) {
  .hamburger-menu {
    display: flex;
  }

  /* ヘッダー内のレイアウト調整 */
  .header-inner {
    padding: 1rem;
  }

  /* 通常のナビゲーションを完全に非表示 */
  .header-inner .nav-menu:not(.active) {
    display: none !important;
  }

  /* スライドイン用のナビゲーションメニューを画面外に配置 */
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100vw !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #ffffff !important; /* 完全に白色 */
    background-color: #ffffff !important; /* 念のため追加 */
    backdrop-filter: none !important; /* ブラー効果を無効化 */
    transition: right 0.3s ease !important;
    z-index: 1000 !important;
    padding-top: 80px !important;
    overflow-y: auto !important;
    display: none !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1) !important; /* 左側に影を追加 */
  }

  /* アクティブ時にスライドインして表示 */
  .nav-menu.active {
    right: 0 !important;
    display: block !important;
    background: #ffffff !important;
    background-color: #ffffff !important; /* 念のため追加 */
  }

  /* ナビゲーションを縦方向に配置 */
  .nav {
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 2rem !important;
    list-style: none !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  .nav li {
    margin: 0.5rem 0 !important;
  }

  .nav a {
    display: block !important;
    padding: 1rem !important;
    font-size: 1rem !important;
    text-decoration: none !important;
    color: #1e293b !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease !important;
    border-radius: 0 !important;
    background: none !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .nav a:hover {
    background-color: rgba(59, 130, 246, 0.1) !important;
    color: #3b82f6 !important;
    border-radius: 8px !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .nav-menu.active::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
  }

  section {
    padding: 1.5rem 0.8rem !important;
  }

  /* ハンバーガーメニュー - デフォルトでは非表示 */
  .hamburger-menu {
    display: none; /* メディアクエリでflexに変わる */
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .footer-nav {
    gap: 0;
  }
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
}

/* セレクション時のスタイル */
::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #ffffff;
}

.submit-button {
  background: #3b82f6;
  color: #1e293b;
  padding: 18px 45px;
  border: none;
  border-radius: 12px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 220px;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
  letter-spacing: 0.025em;
  position: relative;
  overflow: hidden;
}
