/*©2024 AG-All,AGworld All rights reserved*/
/*AGworld's overall site structure*/
@import url('/css/F/Partner_menu.css');
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&display=swap');

/* 基本変数 */
:root {
  --primary-color: #9288ff;
  --secondary-color: #6c63ff;
  --accent-color: #ffcc00;
  --gradient-primary: linear-gradient(120deg, #FCFF00, #FFA8A8);
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  --text-light: #ffffff;
  --text-dark: #333333;
  --text-muted: rgba(255, 255, 255, 0.7);
  --card-hover-scale: 1.05;
  --transition-default: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
  --border-radius-large: 20px;
  --border-radius-medium: 12px;
  --border-radius-small: 8px;
  --border-radius-full: 180px;
  --content-max-width: 1600px;
  --header-height: 70px;
  --footer-height: 250px;
}

body {
  background: linear-gradient(135deg, #808080, #A9A9A9, #808080);
  font-family: 'Noto Sans JP', 'Segoe UI', Arial, sans-serif;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* タイポグラフィ */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-light);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

h5 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.sub_title {
  font-size: 1.5rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 1rem;
  font-weight: 500;
}

.info1 {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  margin: 1.5rem 0;
  font-weight: 300;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition-default);
}

a:hover {
  color: var(--accent-color);
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* アニメーションクラスの修正 */
.animate-fade-in {
  opacity: 0; /* 初期状態は非表示 */
  animation: fadeIn 0.8s ease-out forwards; /* forwards で最終状態を維持 */
}

/* ロゴ専用のスタイルを追加 */
.top_bg .title {
  display: block;
  max-width: 300px;
  height: auto;
  margin: 0 auto 2rem;
  opacity: 1; /* 明示的に不透明度を設定 */
}
.top_bg {
  position: relative;
  z-index: 2; /* 背景オーバーレイより前面に */
}
/* 遅延アニメーション用クラス */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* メインコンテンツ */
main {
}

/* 背景画像付きヒーローセクション */
.hero-section {
  padding: 8rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
   position: relative;
  z-index: 1; /* スタック順序を確保 */
}

/* 背景画像のオーバーレイ */
.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/img/background/2/ag_city.png'); /* 画像パスを実際のものに変更 */
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* 視差効果 */
  z-index: -2;
}

/* 背景画像の上に暗めのグラデーションを重ねる */
.hero-bg-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  z-index: -1;
}

/* コンテンツを前面に出す */
.top_bg {
  position: relative;
  z-index: 2;
  max-width: var(--content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.top_bg .title {
  max-width: 1500px;
  height: auto;
  margin-bottom: 2rem;
  animation: fadeIn 1s ease-out;
}

.top_bg h1 {
  color: var(--text-light);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* 部門セクション */
.departments-section {
  padding: 5rem 2rem;
  text-align: center;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.title_1 {
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.title_1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
}

/* 準備中メッセージ */
.coming-soon-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--border-radius-medium);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* 部門プレビュー */
.expected-departments {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
}

.department-preview {
  
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius-medium);
  text-align: center;
  width: 350px;
  flex: 0 0 auto;
  transition: var(--transition-default);
}

.department-preview:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow-hover);
  background: rgba(255, 255, 255, 0.15);
}

.department-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--border-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.department-icon img {
  width: 40px;
  height: 40px;
  opacity: 0.9;
}

.department-preview h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.department-preview p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* グループセクション */
.groups-section {
  padding: 5rem 2rem;
  background: rgb(72, 72, 72);
  text-align: center;
}

.g_title_box {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.g_title_box h5 {
  margin-bottom: 3rem;
  font-size: 2rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.g_title_box h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
}

.g_title_group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4rem;
}

.title_img {
  text-align: center;
  transition: var(--transition-default);
  display: flex;
  flex-direction: column;
  align-items: center; /* 中央揃えに変更 */
  width: 300px; /* 固定幅を設定 */
  margin: 0 auto; /* 必要に応じて */
}

.title_img:hover {
  transform: translateY(-10px);
}

/* グループロゴ画像 */
.g_title {
  max-width: 300px;
  height: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
  transition: var(--transition-default);
  display: block; /* ブロック要素に */
  margin-left: auto; /* 中央配置のため */
  margin-right: auto; /* 中央配置のため */
}

.title_img:hover .g_title {
  opacity: 1;
}

/* 詳しく見るボタン */
.learn_b {
  display: block; /* インラインブロックからブロックに変更 */
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-small);
  color: var(--text-light);
  font-size: 0.9rem;
  transition: var(--transition-default);
  width: fit-content; /* コンテンツに合わせた幅 */
  margin: 0 auto; /* 中央配置 */
}

.learn_b:hover {
  background: var(--secondary-color);
  color: var(--text-light);
}

/* 参加セクション */
.join-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(146, 136, 255, 0.2));
  text-align: center;
}

.join-container {
  max-width: 800px;
  margin: 0 auto;
}

.join-container h2 {
  margin-bottom: 1.5rem;
  font-size: 2.2rem;
}

.join-container p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.apply-button {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--secondary-color);
  color: var(--text-light);
  border-radius: 180px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: var(--transition-default);
}

.apply-button:hover {
  background: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* レスポンシブ対応 */
@media (max-width: 967px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-section {
    min-height: 40vh;
    padding: 6rem 1.5rem 3rem;
  }
  
  .hero-bg-overlay {
    background-position: 70% center;
    background-attachment: scroll;
  }
  
  .top_bg .title {
    max-width: 350px;
  }
  
  .departments-section,
  .groups-section,
  .join-section {
    padding: 4rem 1.5rem;
  }
  
  .expected-departments {
    gap: 1.5rem;
  }
  
  .department-preview {
    width: calc(50% - 2rem);
    padding: 1.5rem;
  }
  
  .g_title {
    max-width: 240px;
  }
  
  .join-container h2 {
    font-size: 1.8rem;
  }
  
  .apply-button {
    padding: 0.8rem 2.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.7rem;
  }
  
  .hero-section {
    min-height: 50vh;
    padding: 5rem 1rem 2rem;
  }
  
  .top_bg .title {
    max-width: 230px;
  }
  
  .departments-section,
  .groups-section,
  .join-section {
    padding: 3rem 1rem;
  }
  
  .coming-soon-container {
    padding: 1.5rem;
  }
  
  .info1 {
    font-size: 1.2rem;
  }
  
  .expected-departments {
    gap: 1rem;
  }
  
  .department-preview {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .g_title_group {
    gap: 2rem;
    flex-direction: column;
    align-items: center;
  }
  
  .title_img {
    width: 100%;
  }
  
  .apply-button {
    width: 100%;
    padding: 0.8rem 0;
  }
  
  .g_title_box h5,
  .join-container h2 {
    font-size: 1.6rem;
  }
  
  .join-container p {
    font-size: 1rem;
  }
}

/* 追加アニメーション */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.pulse {
  animation: pulse 2s infinite;
}