/* ヒーローセクション背景 */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  animation: digitalBackgroundFlow 20s linear infinite;
  background: 
    radial-gradient(ellipse at 70% 30%, rgba(152,216,170,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 70%, rgba(84,180,53,0.05) 0%, transparent 60%),
    linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.98) 100%),
    repeating-linear-gradient(45deg, rgba(152,216,170,0.03) 0px, rgba(152,216,170,0.03) 1px, transparent 1px, transparent 15px);
  background-size: 200% 200%, 200% 200%, auto, auto;
}

/* 幾何学形状アニメーション */
.geometric-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.geometric-shapes .shape {
  position: absolute;
  background: linear-gradient(45deg, rgba(152,216,170,0.15), rgba(84,180,53,0.1));
  backdrop-filter: blur(4px);
  border-radius: 12px;
  transform: rotate(45deg);
  animation: enhancedFloat 8s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(152,216,170,0.2);
  will-change: transform;
}

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

.shape-2 {
  width: 150px;
  height: 150px;
  top: 50%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: 25%;
  animation-delay: 4s;
}

/* 強化されたグリッドアニメーション */
.digital-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(152,216,170,0.2) 1px, transparent 1px),
    linear-gradient(0deg, rgba(152,216,170,0.2) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: enhancedGridMove 15s linear infinite;
  z-index: 1;
  mix-blend-mode: multiply;
}

@keyframes enhancedGridMove {
  0%, 100% {
    background-position: 0 0, 0 0;
    opacity: 0.8;
  }
  50% {
    background-position: 80px 80px, 40px 40px;
    opacity: 1;
  }
}

/* 強化されたグリッドハイライト */
.grid-highlight {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(152,216,170,0.15) 1px, transparent 1px),
    linear-gradient(0deg, rgba(152,216,170,0.15) 1px, transparent 1px);
  background-size: 200px 200px;
  animation: enhancedHighlightMove 20s linear infinite;
  z-index: 1;
  mix-blend-mode: soft-light;
}

@keyframes enhancedHighlightMove {
  0%, 100% {
    background-position: 0 0, 0 0;
    opacity: 0.5;
  }
  50% {
    background-position: 400px 400px, 200px 200px;
    opacity: 0.8;
  }
}

/* ヒーロー背景アニメーション */
.hero-background {
    animation: backgroundFlow 20s linear infinite;
  }
  
  @keyframes backgroundFlow {
    0% {
      background-position: 0% 0%, 100% 100%;
    }
    50% {
      background-position: 100% 0%, 0% 100%;
    }
    100% {
      background-position: 0% 0%, 100% 100%;
    }
  }
  
  /* 流れる四角形 */
  .flowing-rect {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(152,216,170,0.1), rgba(84,180,53,0.05));
    transform: rotate(45deg);
    animation: floatRect 8s ease-in-out infinite;
  }
  
  @keyframes floatRect {
    0%, 100% {
      transform: translateY(0) rotate(45deg);
    }
    50% {
      transform: translateY(-30px) rotate(48deg);
    }
  }

/* ヒーローコンテンツの調整 */
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
}

/* メインコンテンツエリア */
.hero-content .main-content {
  width: 100%;
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* お知らせエリア */
.hero-content .news-content {
  width: 100%;
  margin-top: 1rem;
  padding: 0;
}

/* タイトルの調整 */
.hero-content h1 {
  margin-bottom: 0.5rem;
  line-height: 1.2;
  padding: 0 20px;
}

/* サブタイトルの調整 */
.hero-content p {
  white-space: normal;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  line-height: 1.6;
  font-size: 1.125rem;
}

/* バナーの調整 */
.special-banner {
  margin-top: 2rem;
  padding: 15px 30px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .hero-content {
    padding: 0.5rem;
  }
  
  .hero-content h1 {
    padding: 0 10px;
    margin-bottom: 0.5rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    padding: 0 10px;
  }
  
  .special-banner {
    padding: 10px 20px;
  }
}

/* お知らせセクションの調整 */
.announcement-section {
  padding: 80px 40px; /* 上下左右に余白を追加 */
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.announcement-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  padding: 0 20px;
}

.announcement-section p {
  font-size: 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  padding: 0 20px;
}

.announcement-section .announcement-list {
  display: flex;
  flex-direction: column;
  gap: 20px; /* 項目間の余白 */
  padding: 20px;
}

.announcement-section .announcement-item {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: all 0.3s ease;
}

.announcement-section .announcement-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .announcement-section {
    padding: 40px 20px;
  }
  
  .announcement-section h2 {
    font-size: 1.75rem;
  }
  
  .announcement-section p {
    font-size: 1rem;
  }
  
  .announcement-section .announcement-list {
    padding: 10px;
  }
  
  .announcement-section .announcement-item {
    padding: 15px;
  }
}

/* ヒーローセクションのタイトルにインパクトを加える */
.hero-title-impact {
    font-size: clamp(3rem, 8vw, 4.5rem); /* 幅が狭くても大きめを維持、最大は据え置き */
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2), 0px 8px 20px rgba(0, 0, 0, 0.15);
    line-height: 1.1;
}

/* 360px幅対応のモバイル専用スタイル */
@media (max-width: 480px) {
    /* ヒーローコンテンツの調整 */
    .hero-content {
        padding: 0.5rem !important;
        min-height: calc(100vh - 60px) !important;
    }
    
    .hero-content .main-content {
        padding: 1rem 0 !important;
    }
    
    /* タイトルの調整 */
    .hero-content h1 {
        font-size: 1.75rem !important;
        line-height: 1.1 !important;
        padding: 0 0.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-title-impact {
        font-size: 1.75rem !important;
        line-height: 1.1 !important;
    }
    
    .hero-title-impact span {
        font-size: 1.75rem !important;
    }
    
    /* サブタイトルの調整 */
    .hero-content p.text-xl {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        padding: 0 0.5rem !important;
    }
    
    .hero-content p.text-base {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        padding: 0 0.5rem !important;
    }
    
    /* ボタンエリアの調整 */
    .hero-content .flex.flex-wrap.justify-center.gap-4 {
        gap: 0.5rem !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .hero-content a.inline-flex {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem !important;
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    /* 並列バナーの調整 */
    .max-w-3xl.mx-auto.mb-12 {
        margin-bottom: 2rem !important;
        padding: 0 0.5rem !important;
    }
    
    .flex.flex-col.md\\:flex-row.gap-8 {
        gap: 1rem !important;
    }
    
    .min-h-\\[170px\\] {
        min-height: 130px !important;
    }
    
    .px-7.py-6 {
        padding: 1rem !important;
    }
    
    .text-base.md\\:text-lg.font-bold {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
    }
    
    .w-9.h-9 {
        width: 2rem !important;
        height: 2rem !important;
    }
    
    .text-xs.md\\:text-sm {
        font-size: 0.625rem !important;
        line-height: 1.2 !important;
    }
    
    .px-6.py-1\\.5 {
        padding: 0.25rem 0.75rem !important;
        font-size: 0.625rem !important;
    }
    
    /* お知らせセクション */
    .max-w-6xl.mx-auto {
        padding: 0 0.5rem !important;
    }
    
    .bg-white.p-8.rounded-xl {
        padding: 1.5rem !important;
        border-radius: 0.75rem !important;
    }
    
    .text-xl.font-bold.text-slate-800 {
        font-size: 1.125rem !important;
    }
    
    .grid.grid-cols-1.gap-5 {
        gap: 1rem !important;
    }
    
    /* お知らせリストアイテム */
    #news-list .flex.items-center.gap-6 {
        gap: 0.75rem !important;
        padding: 0.75rem !important;
        border-bottom: 1px solid #f1f5f9;
    }
    
    #news-list .flex.items-center.gap-6:last-child {
        border-bottom: none;
    }
    
    #news-list time {
        font-size: 0.75rem !important;
        width: 4rem !important;
    }
    
    #news-list .flex-shrink-0.w-16 {
        width: 3rem !important;
    }
    
    #news-list .flex-shrink-0.w-16 span {
        padding: 0.125rem 0.375rem !important;
        font-size: 0.625rem !important;
    }
    
    #news-list a {
        font-size: 0.75rem !important;
        line-height: 1.3 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    /* 一覧を見るリンク */
    .flex.justify-end.pt-3 a {
        padding: 0.25rem 1rem !important;
        font-size: 0.75rem !important;
    }
    
    /* スクロールインジケーター */
    #scroll-indicator {
        bottom: 1rem !important;
    }
    
    #scroll-indicator svg {
        width: 1.25rem !important;
        height: 1.25rem !important;
    }
    
    /* コンテナの調整 */
    .max-w-3xl {
        max-width: 100% !important;
    }
    
    .max-w-6xl {
        max-width: 100% !important;
    }
    
    /* スペーシングの調整 */
    .hero-content .space-y-8 > * + * {
        margin-top: 1.5rem !important;
    }
    
    .mb-16 {
        margin-bottom: 2rem !important;
    }
    
    .mb-12 {
        margin-bottom: 2rem !important;
    }
    
    /* バナーの調整 */
    .special-banner {
        margin-top: 1rem !important;
        padding: 0.75rem 1rem !important;
        border-radius: 0.75rem !important;
    }
    
    /* 幾何学形状の調整 */
    .geometric-shapes {
        opacity: 0.3 !important;
    }
    
    .shape-1 {
        width: 100px !important;
        height: 100px !important;
    }
    
    .shape-2 {
        width: 80px !important;
        height: 80px !important;
    }
    
    .shape-3 {
        width: 60px !important;
        height: 60px !important;
    }
    
    /* 流れる四角形の調整 */
    .flowing-rect {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* グリッドアニメーションの調整 */
    .digital-grid {
        background-size: 25px 25px !important;
        opacity: 0.3 !important;
    }
    
    .grid-highlight {
        background-size: 120px 120px !important;
        opacity: 0.2 !important;
    }
}