/* ======================
   ビジネスヘッダー用 追加CSS
   ====================== */

/* ヘッダー背景の更新 */
header {
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
  overflow: hidden;
}

header .container {
  position: relative;
  z-index: 10;
  color: #fff;
}
header .container h1,
header .container p,
header .container a.cta {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 1px 0 #333;
}

/* ヒーローセクションのタイトルスタイル */
header .container h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.highlight-text {
  color: #ffffff;
  font-size: 1em;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 1px 0 #fff;
}

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 500;
  margin-bottom: 3rem;
  opacity: 0.95;
  animation: fadeInUp 1s ease-out 0.6s both;
}

/* CTAボタンのスタイル */
.cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.9s both;
}

.cta.primary {
  background: #8dc63f;
  color: #ffffff;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cta.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.2);
  background: #6b9e2e;
}

.cta.secondary {
  background: transparent;
  color: #2c3e50;
  padding: 1rem 2rem;
  border: 2px solid #2c3e50;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.cta.secondary:hover {
  background: #2c3e50;
  color: #ffffff;
  transform: translateY(-2px);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.5;
  pointer-events: none;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(141, 198, 63, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(141, 198, 63, 0.1) 0%, transparent 50%);
  animation: shimmer 3s ease-in-out infinite alternate;
}

@keyframes shimmer {
  0% { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ナビゲーション */
.navigation {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-menu a:hover {
  color: #FFD700;
  transform: translateY(-1px);
}

/* アニメーション背景要素 */
.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 1.5s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 20%;
  animation-delay: 3s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 40%;
  left: 60%;
  animation-delay: 4.5s;
}

.shape-5 {
  width: 80px;
  height: 80px;
  bottom: 20%;
  right: 30%;
  animation-delay: 6s;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* フローティング要素 */

/* レスポンシブ対応 */
@media (max-width: 768px) {
  header .container h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.4rem);
    margin-bottom: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .cta.primary,
  .cta.secondary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .shape {
    display: none;
  }
  
  .shape-1,
  .shape-2 {
    display: block;
  }
}

@media (max-width: 480px) {
  header .container {
    padding: 0 1rem;
  }
  
  .cta.primary,
  .cta.secondary {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}
.floating-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.chart-element {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.chart-1 {
  top: 20%;
  left: 15%;
  width: 120px;
  height: 80px;
  animation: chart-float 4s ease-in-out infinite;
}

.chart-2 {
  top: 60%;
  right: 20%;
  width: 100px;
  height: 60px;
  animation: chart-float 5s ease-in-out infinite reverse;
}

.chart-3 {
  top: 30%;
  right: 10%;
  width: 80px;
  height: 100px;
  animation: chart-float 3s ease-in-out infinite;
}

@keyframes chart-float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

/* パーティクル効果 */
.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: particle-float 6s linear infinite;
}

.particle:nth-child(1) { left: 10%; width: 4px; height: 4px; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; width: 6px; height: 6px; animation-delay: 1s; }
.particle:nth-child(3) { left: 50%; width: 3px; height: 3px; animation-delay: 2s; }
.particle:nth-child(4) { left: 70%; width: 5px; height: 5px; animation-delay: 3s; }
.particle:nth-child(5) { left: 85%; width: 4px; height: 4px; animation-delay: 4s; }

@keyframes particle-float {
  0% {
    top: 100%;
    opacity: 0;
    transform: translateX(0px);
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    top: -10%;
    opacity: 0;
    transform: translateX(50px);
  }
}

/* レスポンシブデザイン - 追加部分 */
/* ==========================================================================
   Responsive Design for Header
   ========================================================================== */

/* Tablet and smaller desktop */
@media screen and (max-width: 768px) {
  .navigation {
    padding: 15px 20px;
  }

  .nav-menu {
    gap: 20px;
  }

  .floating-elements {
    display: none;
  }

  .logo {
    font-size: 1.5rem;
  }

  /* Header content adjustments */
  header .container h1 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  header .container p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  header .container .cta {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Hero background adjustments */
  .hero-bg {
    opacity: 0.4;
  }
}

/* Mobile devices */
@media screen and (max-width: 480px) {
  .navigation {
    padding: 15px 20px; /* 10px 15pxから15px 20pxに増加 */
  }

  .nav-menu {
    gap: 20px; /* 15pxから20pxに増加 */
  }

  .nav-menu a {
    font-size: 1rem; /* 0.9remから1remに増加 */
    padding: 8px 12px; /* タップ領域を確保 */
  }

  .logo {
    font-size: 1.4rem; /* 1.3remから1.4remに増加 */
  }

  /* Header content adjustments */
  header {
    min-height: 90vh;
    padding: 2rem 1rem; /* 1remから2rem 1remに増加 */
  }

  header .container {
    padding: 0 15px; /* 10pxから15pxに増加 */
  }

  header .container h1 {
    font-size: 2rem; /* 1.8remから2remに増加 */
    margin-bottom: 1.2rem; /* 0.8remから1.2remに増加 */
    line-height: 1.4; /* 1.3から1.4に増加 */
  }

  header .container p {
    font-size: 1rem; /* 0.9remから1remに増加 */
    margin-bottom: 1.8rem; /* 1.2remから1.8remに増加 */
    line-height: 1.6; /* 1.5から1.6に増加 */
  }

  header .container .cta {
    padding: 1rem 2rem; /* 0.7rem 1.2remから1rem 2remに増加 */
    font-size: 0.95rem; /* 0.85remから0.95remに増加 */
    border-radius: 12px; /* 角丸を追加 */
  }

  /* Hero background adjustments */
  .hero-bg {
    opacity: 0.3;
  }

  /* Floating elements - hide on very small screens */
  .floating-elements {
    display: none;
  }

  /* Particles adjustments */
  .particles {
    display: none;
  }
}

/* Extra small devices */
@media screen and (max-width: 360px) {
  .navigation {
    padding: 8px 10px;
  }

  .nav-menu {
    gap: 10px;
  }

  .nav-menu a {
    font-size: 0.8rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  /* Header content adjustments */
  header .container h1 {
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
  }

  header .container p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  header .container .cta {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

/* Landscape orientation for mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
  header {
    min-height: 80vh;
  }

  header .container h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
  }

  header .container p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  header .container .cta {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo {
    text-rendering: optimizeLegibility;
  }
}

/* ==========================================================================
   Hamburger Menu
   ========================================================================== */

/* ハンバーガーメニューボタン */
.hamburger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1000;
  width: 30px;
  height: 25px;
  position: relative;
}

.hamburger-menu span {
  width: 100%;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ハンバーガーメニューがアクティブ時のアニメーション */
.hamburger-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* スマホでのナビゲーションメニュー */
@media screen and (max-width: 768px) {
  .hamburger-menu {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 80px;
    transition: 0.3s ease-in-out;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    margin: 20px 0;
    width: 100%;
    text-align: center;
  }

  .nav-menu a {
    display: block;
    padding: 15px 20px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
  }

  .nav-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFD700;
  }

  /* オーバーレイ */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }

  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
}

/* より小さな画面での調整 */
@media screen and (max-width: 480px) {
  .nav-menu {
    width: 280px;
  }

  .nav-menu a {
    font-size: 1rem;
    padding: 12px 20px;
  }

  .hamburger-menu {
    width: 28px;
    height: 22px;
  }

  .hamburger-menu span {
    height: 2.5px;
    margin: 2.5px 0;
  }
}
