/*©2025 AG-All,AGworld All rights reserved*/
@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c&family=Noto+Sans+JP:wght@400;500;700&display=swap');
@import url('/css/System/button.css');

:root {
  --primary-color: #0078d4;
  --secondary-color: #f5f5f5;
  --accent-color: #0056b3;
  --text-color: #333;
  --border-color: #e0e0e0;
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition-speed: 0.3s;
}

/*AGworld's overall site structure*/
body {
  font-family: "M PLUS Rounded 1c", serif;
  overflow-x: hidden;
  cursor: default;
  margin: 0;
  margin-top: 70px;
  width: 100%;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fafafa;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

a:visited {
  color: #6741d9;
}

a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

summary {
  display: block;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker,
details summary::-webkit-details-marker {
  display: none;
  content: none;
}

details {
  display: block;
  margin-bottom: 16px;
}

iframe {
  overflow-y: hidden;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

ul {
  padding: 0;
  margin: 0;
  list-style-type: none;
}

.menu {
  position: fixed;
  width: 100%;
  height: 70px;
  top: 0px;
  display: flex;
  background-color: white;
  z-index: 15;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.title {
  width: auto;
  height: 50px;
  padding: 0px;
  margin: 12px 0px;
}

.selection ul {
  list-style: none;
  display: flex;
}

.selection li {
  padding: 12px;
  margin: 0 5px;
}

h1 {
  text-align: center;
  font-size: 2.2rem;
  margin: 1.5rem 0;
  color: #222;
}

h2 {
  text-align: center;
  font-size: 1.8rem;
  margin: 2rem 0 1.5rem;
  position: relative;
  padding-bottom: 10px;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
}

p1 {
  font-size: 1.1rem;
  line-height: 1.6;
  display: block;
  margin-bottom: 1rem;
}

#click_warp {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: none;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

#click_warp:hover {
  background-color: var(--accent-color);
  transform: scale(1.05);
}

/* サポートカード部分 */
.section1 {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 20px;
}

.group {
  border-radius: 12px;
  background-color: white;
  text-align: center;
  width: 40%;
  padding: 30px 20px;
  box-shadow: var(--card-shadow);
  transition: all var(--transition-speed) ease;
  border: 1px solid var(--border-color);
}

.group:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
}

.group img {
  max-width: 180px;
  margin-bottom: 1rem;
}

.group a {
  display: inline-flex;
  align-items: center;
  margin-top: 15px;
  padding: 8px 20px;
  background-color: var(--primary-color);
  color: white !important;
  border-radius: 24px;
  font-weight: 500;
  transition: all 0.3s ease;
  height: 40px;
  box-sizing: border-box;
}

.group a:hover, .group a:visited {
  background-color: var(--accent-color);
  color: white !important;
  text-decoration: none;
  transform: translateY(-2px);
}

/* FAQ部分 */
.section3 {
  text-align: left;
  margin: 2rem auto;
  font-size: 1.1rem;
  width: 90%;
  max-width: 800px;
}

.section3 summary {
  font-weight: bold;
  background-color: var(--secondary-color);
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  position: relative;
}

.section3 summary:hover {
  background-color: #eaeaea;
}

.section3 summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  font-size: 1.5rem;
  font-weight: normal;
}

.section3 details[open] summary::after {
  content: "-";
}

.section3 details[open] summary {
  margin-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.answer {
  text-align: left;
  margin: 0 auto 1rem;
  padding: 15px 20px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 8px 8px;
  width: calc(100% - 2px);
  box-sizing: border-box;
}

/* お知らせ・情報カード */
.info_t {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.5rem 0;
  color: #222;
}

.info {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.info_2 {
  font-size: 0.95rem;
  opacity: 0.7;
  margin-bottom: 0.5rem;
  color: #555;
}

.info_card {
  margin: 2rem auto;
  text-align: center;
  background-color: white;
  border-radius: 12px;
  padding: 25px;
  width: 90%;
  max-width: 800px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.info_card .info_title {
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

p5 {
  font-size: 1.1rem;
  display: block;
  line-height: 1.6;
}

.section2 {
  margin: 2rem auto;
  padding: 25px;
  border-radius: 12px;
  background-color: white;
  width: 90%;
  max-width: 800px;
  text-align: center;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.section2 details {
  text-align: left;
}

.section2 a, .section2 a:visited {
  color: var(--primary-color);
}

/* ボタン・ナビゲーション */
.normal_bn {
  margin: 1.5rem 0;
}

.normal_bn li {
  background-color: var(--secondary-color);
  margin: 10px 0;
  padding: 12px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  text-align: left;
  display: flex;
  align-items: center;
}

.normal_bn li:hover {
  background-color: #eaeaea;
  transform: translateY(-2px);
}

.normal_bn li::after {
  content: "›";
  margin-left: auto;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* コンテンツ部分のスタイル */
summary {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: left;
  padding: 15px;
  background-color: var(--secondary-color);
  border-radius: 8px;
  margin-bottom: 10px;
  position: relative;
}

main h2 {
  background-color: var(--primary-color);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  display: inline-block;
  margin: 2rem auto;
  font-size: 1.4rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

table {
  border-collapse: collapse;
  margin: 20px 0;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  box-shadow: var(--card-shadow);
  background-color: white;
}

th, td {
  border: 1px solid var(--border-color);
  padding: 12px 15px;
  text-align: left;
}

th {
  background-color: var(--primary-color);
  color: white;
  font-weight: 500;
}

tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  body {
    margin-top: 80px;
  }
  
  .selection {
    display: none;
  }
  
  .section1 {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .group {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .info_t {
    font-size: 1.2rem;
  }
  
  main {
    width: 100%;
  }
  
  main h2 {
    font-size: 1.2rem;
    border-radius: 30px;
    padding: 12px 20px;
    width: auto;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .section2, .info_card, .section3 {
    width: 90%;
    padding: 20px 15px;
  }
  
  .hero-banner h1 {
    font-size: 1.8rem;
  }
  
  /* モバイル用検索ボックス */
  .search-container {
    padding: 0 10px;
  }
  
  .search-box {
    padding: 8px 50px 8px 15px;
    position: relative;
  }
  
  /* モバイルでは左側の虫眼鏡アイコンを非表示 */
  .search-icon {
    display: none;
  }
  
  #support-search {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    padding-right: 50px; /* 右側のボタン分のスペースを確保 */
  }
  
  .search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0; /* テキストを非表示 */
  }
  
  /* 検索ボタンに虫眼鏡アイコンを表示 */
  .search-button::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
  }
  
  /* モバイル版での横スクロール防止 */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* 長いテキストの改行強制 */
  p, span, a, div {
    word-wrap: break-word;
    word-break: break-word;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
  
  /* 画像の最大幅制限 */
  img {
    max-width: 100%;
    height: auto;
  }
}

/* 言語切り替え部分 */
.ls_s {
  margin: 1.5rem auto;
  text-align: center;
  background-color: white;
  border-radius: 50px;
  border: 2px solid var(--primary-color);
  max-width: 320px;
  min-width: 250px;
  font-size: 1rem;
  display: flex;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.ls_s .ls_2 {
  text-align: center;
  flex: 1;
  padding: 8px 0;
  transition: all 0.3s ease;
}

.ls_s .ls_2:hover {
  background-color: rgba(0, 120, 212, 0.1);
}

.ls_s img {
  height: 40px;
  vertical-align: middle;
  margin-right: 10px;
}

/* ヘッダー部分 */
.top_menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  height: 50px;
}

.menu_logo {
  height: 40px;
}

.s_menu_logo {
  height: 30px;
  display: none;
}

.top_info {
  margin-left: 20px;
  font-size: 1.2rem;
  font-weight: 500;
}

/* サイト情報表示部分 */
.site_info {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin: 2rem 0;
}

/* ヒーロー/バナーセクション */
.hero-banner {
  background: linear-gradient(135deg, var(--primary-color), #005a9e);
  color: white;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 2rem;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-banner h1 {
  color: white;
  margin-bottom: 25px;
  font-size: 2.5rem;
  font-weight: 700;
}

/* 検索ボックス */
.search-container {
  max-width: 700px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  position: relative;
  align-items: center;
  background-color: white;
  border-radius: 50px;
  padding: 5px 5px 5px 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-icon {
  color: #888;
  font-size: 1.2rem;
  margin-right: 10px;
}

#support-search {
  flex-grow: 1;
  border: none;
  padding: 12px 0;
  font-size: 1.1rem;
  outline: none;
  background: transparent;
}

.search-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 25px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.search-button:hover {
  background-color: var(--accent-color);
}

/* モバイル対応の改良版 */
@media screen and (max-width: 768px) {
  body {
    margin-top: 80px;
  }
  
  .selection {
    display: none;
  }
  
  .section1 {
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .group {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .info_t {
    font-size: 1.2rem;
  }
  
  main {
    width: 100%;
  }
  
  main h2 {
    font-size: 1.2rem;
    border-radius: 30px;
    padding: 12px 20px;
    width: auto;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  .section2, .info_card, .section3 {
    width: 90%;
    padding: 20px 15px;
  }
  
  .hero-banner h1 {
    font-size: 1.8rem;
  }
  
  /* モバイル用検索ボックス */
  .search-container {
    padding: 0 10px;
  }
  
  .search-box {
    padding: 8px 50px 8px 15px;
    position: relative;
  }
  
  /* モバイルでは左側の虫眼鏡アイコンを非表示 */
  .search-icon {
    display: none;
  }
  
  #support-search {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    padding-right: 50px; /* 右側のボタン分のスペースを確保 */
  }
  
  .search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0; /* テキストを非表示 */
  }
  
  /* 検索ボタンに虫眼鏡アイコンを表示 */
  .search-button::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 14px;
  }
  
  /* モバイル版での横スクロール防止 */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* モバイル用関連リンク */
  .links-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .link-card {
    padding: 12px 15px;
    box-sizing: border-box;
  }
  
  .link-card i {
    font-size: 1.1rem;
    margin-right: 10px;
  }
  
  .link-card span {
    font-size: 0.95rem;
  }
  
  /* モバイル用サービスボタン */
  .service-buttons {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  
  .detail-button {
    font-size: 0.9rem;
    padding: 10px 16px;
    width: 100%;
    max-width: 200px;
    text-align: center;
    justify-content: center;
  }
  
  /* モバイル用サービスコンテンツ */
  .service-content-container {
    width: 100%;
    border-radius: 0;
  }
  
  .service-content-header {
    padding: 15px 20px;
  }
  
  .service-content-header h2 {
    font-size: 1.2rem;
  }
  
  .service-content-body {
    padding: 20px 15px;
    max-height: 60vh;
  }
}

/* 検索結果表示 */
.search-results-container {
  margin: 1rem auto 2rem;
  width: 90%;
  max-width: 800px;
  background-color: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
}

.search-results-container h2 {
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.search-results-list {
  margin-top: 1rem;
}

.loading-spinner {
  text-align: center;
  padding: 2rem;
  color: var(--primary-color);
}

.loading-spinner i {
  font-size: 1.5rem;
  margin-right: 10px;
}

.search-count {
  background-color: var(--secondary-color);
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--text-color);
}

.search-result-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.search-result-item h3 a {
  color: var(--primary-color);
  text-decoration: none;
}

.search-result-item h3 a:hover {
  text-decoration: underline;
}

.result-url {
  font-size: 0.9rem;
  color: #666;
  margin: 0.25rem 0;
}

.result-description {
  color: var(--text-color);
  line-height: 1.5;
  margin: 0.5rem 0 0 0;
}

.no-results {
  text-align: center;
  padding: 2rem;
  color: #666;
}

.no-results i {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #ccc;
}

.search-error {
  text-align: center;
  padding: 2rem;
  color: #d32f2f;
  background-color: #ffebee;
  border-radius: 6px;
}

.search-error i {
  font-size: 1.5rem;
  margin-right: 10px;
}

/* サービスボタン */
.service-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
  align-items: center;
}

.detail-button {
  background-color: var(--secondary-color);
  color: var(--text-color);
  border: 2px solid var(--primary-color);
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  box-sizing: border-box;
}

.detail-button:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}



/* サービスコンテンツ表示 */
.service-content-container {
  margin: 2rem auto;
  width: 90%;
  max-width: 900px;
  background-color: white;
  border-radius: 12px;
  padding: 0;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.service-content-header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-content-header h2 {
  margin: 0;
  font-size: 1.4rem;
  color: white;
}

.service-content-header h2::after {
  display: none;
}

.close-content {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-content:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.service-content-body {
  padding: 25px;
  max-height: 70vh;
  overflow-y: auto;
}

/* サービスコンテンツ内の要素スタイル調整 */
.service-content-body img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.service-content-body .title {
  display: block;
  margin: 0 auto 1rem auto;
  text-align: center;
}

.service-content-body h1,
.service-content-body h2,
.service-content-body h3 {
  text-align: center;
}

.service-content-body .service-icon {
  text-align: center;
  margin-bottom: 1rem;
}

.service-content-body .group {
  text-align: center;
}

.content-error {
  text-align: center;
  padding: 2rem;
  color: #d32f2f;
}

.content-error i {
  font-size: 2rem;
  margin-bottom: 1rem;
}