/* =========================
   AGworld専用スタイル
   ========================= */

/* 基本変数定義 */
:root {
  --primary-color: #0070c9;
  --secondary-color: #28a745;
  --dark-color: #333;
  --text-color: #666;
  --light-color: #f8f9fa;
  --background-color: #ffffff;
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --box-shadow-light: 0 2px 8px rgba(0, 0, 0, 0.05);
  --box-shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.1);
  --transition-standard: all 0.3s ease;
}

/* =========================
   ヒーローセクション
   ========================= */

/* ヒーローセクション - 画面横いっぱいに表示 */
/* ヒーローセクション - 画面横いっぱいに表示 */
#background-container {
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url(/img/background/city.png);
  width: 100vw;
  height: 85vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  margin-bottom: 30px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  left: 0;
  right: 0;
  overflow: hidden;
  box-sizing: border-box;
  /* 背景切り替えのスムーズ効果 */
  background-blend-mode: normal;
  /* より滑らかな画像レンダリング */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimizeQuality;
  /* GPU加速を有効化（パフォーマンス向上） */
  transform: translateZ(0);
  will-change: background-image;
}

/* クロスフェード用オーバーレイのスタイル */
.background-crossfade-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  z-index: 1 !important;
  pointer-events: none !important;
  /* スムーズなフェード効果（改良版） */
  transition: opacity 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  will-change: opacity !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* 背景オーバーレイ（暗くする効果） */
#background-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 70%);
  z-index: 2;
  opacity: 0.6;
  /* 白いフラッシュを防ぐ */
  mix-blend-mode: multiply;
}

/* 下部グラデーション効果 */
#background-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 70%, rgba(255, 255, 255, 1) 100%);
  z-index: 2;
  pointer-events: none;
}

/* タイトル要素 */
#background-container .title {
  max-width: 500px;
  width: 70%;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 5;
  transition: transform 0.3s ease;
}

#background-container .title:hover {
  transform: scale(1.02);
}

/* サブタイトル */
.sub_title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 30px;
  position: relative;
  z-index: 5;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  padding: 15px 30px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-block;
}

/* 複雑なアニメーションとエフェクトを削除 */
.sub_title::before,
.sub_title::after {
  display: none;
}

/* キャッチコピー見出しのis_1をシンプルに */
h3 {
  font-size: 42px;
  text-align: center;
  margin: 80px 0 50px;
  color: var(--dark-color);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.4;
  padding: 0 20px;
  position: relative;
}

h3 .is_1 {
  color: #0070c9;
  position: relative;
  font-weight: 700;
  background: linear-gradient(135deg, #0070c9, #28a745);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

h3 .is_1::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #0070c9, #28a745);
  border-radius: 1px;
}

/* 不要なアニメーションを削除またはコメントアウト */
/*
@keyframes fadeInUpSpecial,
@keyframes textGlow,
@keyframes pulseBorder,
@keyframes pulseGlow,
@keyframes floatingText,
@keyframes pulseOverlay {
  これらのアニメーションは削除
}
*/

/* シンプルなフェードインアニメーションのみ残す */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* #background-containerのアニメーションを簡素化 */
#background-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 70%);
  z-index: 2;
  opacity: 0.6;
}

#background-container .title {
  max-width: 500px;
  width: 70%;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 5;
  transition: transform 0.3s ease;
}

#background-container .title:hover {
  transform: scale(1.02);
}

/* キャッチコピー見出し */
h3 {
  font-size: 42px;
  text-align: center;
  margin: 80px 0 50px;
  color: var(--dark-color);
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.4;
  padding: 0 20px;
  position: relative;
}

h3 .is_1 {
  color: #0070c9;
  position: relative;
  font-weight: 700;
  background: linear-gradient(135deg, #0070c9, #28a745);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

h3 .is_1::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #0070c9, #28a745);
  border-radius: 1px;
}

/* アニメーション */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* ページスクロールボタン */
#click_warp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 900;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

#click_warp.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#click_warp:hover {
  background-color: #005fb3;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* レスポンシブ対応も更新 */
@media (max-width: 439px) {
  .sub_title {
    font-size: 18px;
    padding: 12px 20px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
  }
  
  h3 .is_1 {
    /* グラデーションテキストを通常のカラーに変更（モバイルでのパフォーマンス向上） */
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: unset;
    color: #0070c9;
  }
}

@media (min-width: 440px) and (max-width: 1024px) {
  .sub_title {
    font-size: 22px;
    padding: 14px 25px;
  }
}

/* 参加方法セクション */
.Cinfo_card {
  background: linear-gradient(145deg, #ffffff, #f8f9fb);
  border-radius: var(--border-radius-lg);
  width: 85%;
  max-width: 900px;
  margin: 80px auto;
  padding: 40px;
  box-shadow: var(--box-shadow-medium);
  position: relative;
  overflow: hidden;
  animation: fadeIn 1s ease-out;
}

.Cinfo_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius-sm) var(--border-radius-sm) 0 0;
}

.Ctitle {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 30px;
  color: var(--dark-color);
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.Ctitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(to right, rgba(0, 112, 201, 0.4), rgba(40, 167, 69, 0.4));
  border-radius: 2px;
}

.Cinfo {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 30px;
}

.Cinfo table {
  width: 100%;
  margin: 20px 0;
  border-collapse: collapse;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.Cinfo table th {
  background-color: var(--primary-color);
  color: white;
  padding: 12px;
  font-weight: 500;
  text-align: center;
}

.Cinfo table td {
  background-color: white;
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.Cinfo .Ccn {
  color: var(--primary-color);
  font-weight: 600;
}

/* ボタングループ */
.bn_2 {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.bn_2 li {
  background: linear-gradient(to right, var(--primary-color), #2b88d9);
  color: white;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 112, 201, 0.25);
  position: relative;
  overflow: hidden;
}

.bn_2 li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}

.bn_2 li:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 112, 201, 0.35);
  background: linear-gradient(to right, #005fb3, #1a71bd);
}

/* 言語選択セクション */
.ls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 60px auto;
  padding: 20px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  max-width: 300px;
}

.ls img {
  height: 22px;
  width: auto;
  margin-right: 15px;
}

.ls_t {
  font-size: 15px;
  color: var(--text-color);
  margin: 0;
}

.ls_t a {
  color: var(--text-color);
  transition: var(--transition-standard);
  padding: 2px 5px;
  border-radius: var(--border-radius-sm);
}

.ls_t a:hover {
  color: var(--primary-color);
  background-color: rgba(0, 112, 201, 0.05);
}

/* 追加アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

a {
  color: inherit; /* リンクの青色を消す */
  text-decoration: none; /* リンクの下線を消す */
}
/* AG-Partnerセクション（背景画像版） */
.AG-Partner {
  margin: 30px auto;
  width: 85%;
  max-width: 900px;
  height: 500px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  
  /* 背景のベース設定 */
  background-color: #f8f9fa;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 背景画像コンテナ */
.AG-Partner_background_container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 背景画像レイヤー */
.AG-Partner_background_image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s cubic-bezier(0.4, 0.0, 0.2, 1);
  will-change: opacity;
  z-index: 1;
}

/* アクティブな背景画像 */
.AG-Partner_background_image.active {
  opacity: 1;
  z-index: 2;
}

/* 背景オーバーレイ（コンテンツを読みやすくするため） */
.AG-Partner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* コンテンツオーバーレイ */
.AG-Partner_content_overlay {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 30px;
  color: white;
}

/* テキストコンテンツエリア */
.AG-Partner_text_content {
  text-align: center;
  margin-bottom: 40px;
}

/* タイトルスタイル */
.AG-Partner_title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.5px;
  line-height: 1.3;
}

/* 説明文スタイル */
.AG-Partner_description {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* アクションボタンコンテナ */
.AG-Partner_actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ボタンスタイル */
.AG-Partner_btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  text-align: center;
  min-width: 140px;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* プライマリボタン */
.AG-Partner_btn.primary {
  border: 2px solid #0f68b8;
  color: white;
}

.AG-Partner_btn.primary:hover {
  background: linear-gradient(135deg, #005fb3, #1a71bd);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 112, 201, 0.4);
}

/* セカンダリボタン */
.AG-Partner_btn.secondary {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.AG-Partner_btn.secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* アクセントボタン */
.AG-Partner_btn.accent {
  border-color:#238f7c;
  color: white;
}

.AG-Partner_btn.accent:hover {
  background: linear-gradient(135deg, #1e7e34, #17a2b8);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

/* AG-Partnerのホバー効果 */
.AG-Partner:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18), 0 10px 25px rgba(0, 0, 0, 0.12);
}





@keyframes buttonShine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* 削除されたアニメーション効果：
   プロフェッショナルな光沢効果は背景画像があるため不要
/*addon*/
.addon_section {
  margin: 100px auto;
  padding: 40px 20px;
  width: 90%;
  max-width: 1200px;
  position: relative;
  background-color: var(--light-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-light);
  overflow: hidden;
}

/* 背景のエフェクト */
.addon_section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(0, 112, 201, 0.03) 0%,
    rgba(40, 167, 69, 0.03) 100%
  );
  z-index: 0;
  pointer-events: none;
}
.addon_section h1 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 40px;
  color: var(--dark-color);
  position: relative;
  padding-bottom: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  z-index: 1;
}

.addon_section h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: var(--border-radius-sm);
}

.addon_all {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  width: 100%;
  position: relative;
  z-index: 1;
}

.addon_card {
  background: var(--background-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  text-align: center;
  width: 320px;
  max-height: 480px;
  transition: var(--transition-standard);
  box-shadow: var(--box-shadow-light);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.addon_card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.addon_card:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.addon_card img {
  background-color: #f9f9f9;
  border-radius: var(--border-radius-md);
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  box-shadow: var(--box-shadow-light);
  transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.addon_card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-medium);
}

.addon_card:hover img {
  transform: scale(1.05);
}

.ad_title {
  text-align: center;
  font-size: 24px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--dark-color);
  letter-spacing: -0.01em;
}

.addon_card hr {
  border: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.01),
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.01)
  );
  margin: 16px 0;
}

.addon_card p {
  margin: 16px 0;
  color: rgba(0, 0, 0, 0.7);
  line-height: 1.6;
  font-size: 15px;
}



#show-more-btn {
  margin: 40px auto 0;
  display: none; /* Initially hidden */
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-md);
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-standard);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

#show-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

#show-more-btn:hover {
  color: white;
}

#show-more-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* mobile L ~ S*/
@media (max-width: 439px) {
  /* 基本的な横スクロール防止 */
  html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .switch-arrow {
      display: block;
  }
  .news-item {
      min-width: 100%;
  }

  #background-container {
    width: 100vw;
    height: 80vh;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    left: 0;
    right: 0;
  }
  
  .sub_title {
    font-size: 20px;
    padding: 8px 15px;
    margin-bottom: 20px;
  }
  
  #background-container .title {
    width: 85%;
    margin-bottom: 15px;
  }
  

  .AG-Partner{
    width: 100vw; /* 95%から100vwに変更 */
    margin: 20px 0; /* マージンを調整 */
    margin-left: calc(-50vw + 50%) /* 横いっぱいに */;
    margin-right: calc(-50vw + 50%) /* 横いっぱいに */;
    padding: 20px 15px; /* パディングを調整 */
    border-radius: 0; /* 角丸を削除 */
    box-sizing: border-box;
      h3{
          font-size: 24px; /* 30pxから24pxに削減 */
      }
      p1{
          font-size: 18px; /* 20pxから18pxに削減 */
          margin-bottom: 10px; /* マージンを小さく */
          padding-bottom: 10px; /* パディングを小さく */
      }
  }
  .AG-Partner_oe_container  , .AG-Partner_oe_container .slide-image .active{
    width: 90% !important; /* 100%から90%に変更して少し余白を作る */
    margin: 12px auto !important; /* マージンを追加 */
    border-radius: 8px !important; /* 0pxから8pxに変更 */
  }
}
/*tablet*/
@media (min-width: 440px) and (max-width: 1024px) {
  .news-item {
    min-width: 50%; 
  }
  #background-container {
    width: 100%;
    height: 80vh;
  }
  .sub_title {
    font-size: 24px;
    padding: 10px 20px;
  }
  /* タブレット用AG-Partnerスタイル */
  .AG-Partner {
    width: 85%;
    margin: 25px auto;
    padding: 25px 15px;
  }
  
  .AG-Partner p1 {
    font-size: 22px;
    margin-bottom: 12px;
  }
  
  .AG-Partner_oe_container {
    width: 82%;
    margin: 18px auto;
  }
}
/*PC or 4K*/
@media (min-width: 1025px) {
  .news-item {
      min-width: 25%; /* 4つのカードが入るように設定 */
  }

  #background-container {
    width: 100%;
  }
  
  /* PC用AG-Partnerスタイル */
  .AG-Partner {
    max-width: 900px; /* 最大幅を制限 */
    padding: 30px 25px;
  }
}

.Bfade-in {
  opacity: 1;
  transition: opacity 1s ease-in-out;
}

.Bfade-out {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

/*スマホ・タブレット以外*/
@media (min-width: 1025px) {
  #show-more-btn{display: none;}
}

@media (max-width: 767px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
    .ag-pay-banner::before {
    width: 100%;
  }
  
  .ag-pay-banner-content {
    flex-direction: column;
    padding: 20px 15px;
  }
  
  .ag-pay-banner-text h3 {
    font-size: 22px;
  }
  
  .ag-pay-features span {
    font-size: 12px;
  }
  
  .ag-pay-cta {
    width: 100%;
    margin-top: 15px;
  }

  /* モバイル版用クロスフェードオーバーレイ */
.background-crossfade-overlay-mobile {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important; /* モバイルでは scroll */
  z-index: 1 !important;
  pointer-events: none !important;
  transition: opacity 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
  will-change: opacity !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* PC版クロスフェードオーバーレイ（既存） */
.background-crossfade-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important; /* PCでは fixed */
  z-index: 1 !important;
  pointer-events: none !important;
  transition: opacity 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) !important;
  will-change: opacity !important;
  backface-visibility: hidden !important;
  -webkit-backface-visibility: hidden !important;
}

/* スマホ版での背景調整を強化 */
@media (max-width: 1024px) {
  #background-container {
    background-attachment: scroll !important;
  }
  
  .background-crossfade-overlay {
    background-attachment: scroll !important;
  }
  
  /* モバイル版でのパフォーマンス最適化 */
  #background-container {
    will-change: background-image;
    transform: translateZ(0);
  }
}

/* 超小型画面での最適化 */
@media (max-width: 439px) {
  #background-container {
    background-size: cover;
    background-position: center;
    background-attachment: scroll !important;
  }
  
  .background-crossfade-overlay-mobile {
    background-size: cover !important;
    background-position: center !important;
  }
}

  /* AG-Partnerセクションをモバイル用に最適化 */
  .AG-Partner {
    margin: 20px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    padding: 20px 15px;
    border-radius: 0;
    box-sizing: border-box;
  }
  
  .AG-Partner p1 {
    font-size: 20px;
    margin-bottom: 12px;
    padding-bottom: 12px;
  }
  
  .AG-Partner_oe_container {
    width: 90%;
    margin: 15px auto;
  }

  .switch-arrow {
    display: block;
  }
  
  .news-item {
    min-width: 100%;
  }

  #background-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    left: 0;
    right: 0;
  }
  
  .AG-Partner{
    width: 100vw !important; 
    margin: 30px 0 !important; 
    margin-left: calc(-50vw + 50%) !important;
    margin-right: calc(-50vw + 50%) !important;
    padding: 25px 15px; 
    border-radius: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .AG-Partner p1{
    font-size: 24px;
    margin-bottom: 15px;
    padding-bottom: 15px;
  }
  
  h3{
    font-size: 28px;
    margin: 25px 0 20px;
    letter-spacing: 0px;
  }
  
  /* スライド画像を横幅いっぱいに表示 */
  .AG-Partner_oe_container {
    width: 100% !important;
    max-width: 100%; 
    margin: 10px 0 !important; 
    box-sizing: border-box;
    border-radius: 0 !important;
  }
}

/* 画面横いっぱい表示のための基本設定 */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* 横スクロールを防ぐ */
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
}

/* 全ての要素のボックスサイジングをborder-boxに */
*, *::before, *::after {
  box-sizing: border-box;
}

/* ヘッダー固定のための上部余白 */
body {
  padding-top: 50px;
}

/* レスポンシブ対応：モバイル */
@media (max-width: 439px) {
  body {
    padding-top: 45px;
  }
  
  #background-container {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-size: cover; 
    background-position: center center; 
    background-attachment: scroll; 
  }
}

/* レスポンシブ対応：タブレット */
@media (min-width: 440px) and (max-width: 1024px) {
  #background-container {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
  }
}

/* AG-Partnerセクションのレスポンシブデザイン */

/* スマホ版（439px以下） */
@media (max-width: 439px) {
  .AG-Partner {
    width: 95%;
    height: 400px;
    margin: 20px auto;
    border-radius: 0px;
  }
  
  .AG-Partner_content_overlay {
    padding: 30px 20px;
  }
  
  .AG-Partner_title {
    font-size: 24px;
    margin-bottom: 16px;
  }
  
  .AG-Partner_description {
    font-size: 16px;
    line-height: 1.5;
  }
  
  .AG-Partner_actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .AG-Partner_btn {
    padding: 12px 24px;
    font-size: 15px;
    min-width: 180px;
  }
}

/* タブレット版（440px - 1024px） */
@media (min-width: 440px) and (max-width: 1024px) {
  .AG-Partner {
    width: 90%;
    height: 450px;
    margin: 25px auto;
  }
  
  .AG-Partner_content_overlay {
    padding: 35px 25px;
  }
  
  .AG-Partner_title {
    font-size: 28px;
    margin-bottom: 18px;
  }
  
  .AG-Partner_description {
    font-size: 17px;
  }
  
  .AG-Partner_actions {
    gap: 18px;
    flex-wrap: wrap;
  }
  
  .AG-Partner_btn {
    padding: 13px 26px;
    font-size: 15px;
    min-width: 150px;
  }
}

/* PC版（1025px以上） */
@media (min-width: 1025px) {
  .AG-Partner {
    width: 85%;
    max-width: 900px;
    height: 500px;
  }
  
  .AG-Partner_title {
    font-size: 32px;
  }
  
  .AG-Partner_description {
    font-size: 18px;
  }
}

.ag-pay-banner {
  transition: opacity 1s ease-in-out, transform 0.3s ease;
  width: 100%;
  margin: 40px 0;
  background: linear-gradient(135deg, #101e36 0%, #050914 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(0, 196, 255, 0.3);
  border-bottom: 1px solid rgba(0, 196, 255, 0.3);
}

.ag-pay-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background-image: url('/img/background/city5.png');
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: 0;
}

.ag-pay-banner-content {
  display: flex;
  align-items: center;
  padding: 30px 5%;
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.ag-pay-banner-image {
  position: relative;
  min-width: 140px;
  margin-right: 30px;
}

.ag-pay-banner-image img {
  width: 280px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 10px rgba(0, 196, 255, 0.5));
}

.ag-pay-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(0, 196, 255, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: pulse-glow 3s infinite ease-in-out;
}

.ag-pay-banner-text {
  flex: 1;
  padding: 0 20px;
}

.ag-pay-banner-text h3 {
  color: #ffffff;
  font-size: 28px;
  margin: 0 0 10px 0;
  font-weight: 700;
  text-align: left;
  background: none;
  border-radius: 0;
}

.ag-pay-banner-text .highlight {
  color: #00c4ff;
  position: relative;
}

.ag-pay-banner-text .highlight::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #00c4ff, transparent);
}

.ag-pay-banner-text p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin: 0 0 15px 0;
}

.ag-pay-features {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 15px;
}

.ag-pay-features span {
  display: inline-flex;
  align-items: center;
  background-color: rgba(0, 196, 255, 0.1);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 196, 255, 0.2);
}

.ag-pay-features span i {
  margin-right: 6px;
  color: #00c4ff;
}

.ag-pay-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #00c4ff 0%, #7700ff 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  margin-left: 20px;
  box-shadow: 0 2px 15px rgba(0, 196, 255, 0.3);
}

.ag-pay-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 20px rgba(0, 196, 255, 0.5);
  color: #ffffff;
}

.ag-pay-cta i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.ag-pay-cta:hover i {
  transform: translateX(4px);
}

/* APS Public Banner */
.aps-pub-banner {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  padding: 40px 20px;
  margin: 40px auto;
  max-width: 1200px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(30, 60, 114, 0.3);
  position: relative;
}

.aps-pub-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.05) 50%, transparent 70%);
  animation: shimmer 3s infinite;
  pointer-events: none;
  border-radius: 16px;
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.aps-pub-banner-content {
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  z-index: 1;
}

.aps-pub-banner-image {
  flex-shrink: 0;
  position: relative;
}

.aps-pub-banner-image img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.aps-pub-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(42, 82, 152, 0.4) 0%, transparent 70%);
  animation: pulse 2s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.aps-pub-banner-text {
  flex: 1;
}

.aps-pub-banner-text h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.3;
}

.aps-pub-banner-text .highlight {
  color: #64b5f6;
  position: relative;
}

.aps-pub-banner-text .highlight::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #64b5f6, #42a5f5);
}

.aps-pub-banner-text p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 15px;
}

.aps-pub-features {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.aps-pub-features span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.aps-pub-features span i {
  color: #64b5f6;
  font-size: 1rem;
}

.aps-pub-btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #42a5f5, #1e88e5);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.aps-pub-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 136, 229, 0.6);
  background: linear-gradient(135deg, #1e88e5, #1565c0);
}

.aps-pub-btn i {
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.aps-pub-btn:hover i {
  transform: translateX(5px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .aps-pub-banner-content {
    flex-direction: column;
    text-align: center;
  }
  
  .aps-pub-banner-image img {
    width: 100px;
    height: 100px;
  }
  
  .aps-pub-banner-text h3 {
    font-size: 1.5rem;
  }
  
  .aps-pub-features {
    justify-content: center;
  }
}