* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* カスタムプロパティ（CSS変数） */
:root {
  /* カラーパレット */
  --primary-color: #3aabd2;
  --secondary-color: #667eea;
  --accent-color: #F99743;
  --attention-color: #DE85AD;
  --success-color: #42C28A;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --school-color: rgb(174, 0, 121);

  /* ニュース種別カラー */
  --news-latest-color:   #F99743;
  --news-notice-color:   #00a0e9;
  --news-maintenance-color: #42C28A;
  --news-failure-color:  #e63765;
  --news-cproom-color:  #F99743;
  
  /* テキストカラー */
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #999;
  --text-white: #fff;
  
  /* 背景色 */
  --bg-primary: #fff;
  --bg-secondary: #f8f9fa;
  --bg-light: #f5f5f5;
  
  /* ボーダー */
  --border-color: #dee2e6;
  --border-light: #e9ecef;  
  --main-border: #b3b3b3;
  --sub-border: #cccccc;
  
  /* シャドウ */
  --shadow-sm: 0 0 4px rgba(0,0,0,0.1);
  --shadow-md: 0 0 8px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
  
  /* フォント */
  --font-family: "Helvetica Neue", "Arial", 
        "Hiragino Kaku Gothic ProN", "Hiragino Sans", 
        "游ゴシック Medium", "Yu Gothic Medium",
        "游ゴシック体", "Yu Gothic",
        "BIZ UDPGothic", "Meiryo", 
        sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  
  /* スペーシング */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* トランジション */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* レイアウト */
  --sidebar-width: 280px;
  --header-height: 140px;
  --content-max-width: 1100px;
}

/* body全体の設定 */
body {
  background-color: var(--bg-primary);
  background-image: url(../item/itsupport_main_backrounds_4.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;    
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
body.is-modal-open {
  overflow: hidden;
}
/* --- ユーティリティクラス --- */
.d-none {
  display: none !important;
}
/* アクセシビリティ向上 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* スキップリンク（アクセシビリティ） */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--text-white);
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 1000;
}
.skip-link:focus {
  top: 6px;
}


/* メインコンテンツ */
main {
  margin-top: 100px;
  margin-right: auto;
  padding: var(--spacing-xl);
  flex-grow: 1;
  width: 100%;
  max-width: 80vw;
}
.content-wrapper {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding-bottom: 10px;
  border-radius: 12px;
  overflow: hidden;
}
/* セクション共通スタイル */
.section {
  margin: 10px 10px 32px 10px;
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
}
.section-header {
  padding: var(--spacing-lg);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}
.section-title {
  font-size: var(--font-size-xl);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}
.section-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}
/* ニュースセクション */
.news-tab-div {
  border-top: 8px solid var(--accent-color);
  box-shadow: var(--shadow-md);
}
.news-tab-div a {
  text-decoration: none;
  color: inherit;
}
.news-tab-div ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
/* --- セクション見出し --- */
.news-tab-div .top-h-area {
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 10px;
}
.news-tab-div .top-h-area h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}
.news-tab-div .top-h-area span {
  font-size: 14px;
  color: #777;
}
.news-tab-div .news-content-wrapper {
  flex-grow: 1;
  min-width: 0;
  min-height: 325px;
}
/* --- レイアウトコンテナ (パネル部分) --- */
.news-tab-panel {
  display: flex;
  margin: 10px;
  gap: 25px;
  position: relative;
  isolation: isolate;
  z-index: 0;
}
/* --- PC用タブ (縦配置) --- */
.news-tab-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  width: 160px;
}
.news-tab {
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
  background-color: #f0f0f0;
  color: #555;
  text-align: center;
}
.news-tab:hover {
  opacity: 0.8;
}
.news-tab.is-active {
color: var(--text-white);
transform: scale(1.05);
box-shadow: 0 4px 10px rgba(0,0,0,0.1);
/* transformによるスタッキングコンテキストの問題を解消 */
z-index: 0;
}
.news-tab-div .news-tab[data-category-key="latest"].is-active {
background-color: var(--news-latest-color);
}
.news-tab-div .news-tab[data-category-key="notice"].is-active {
background-color: var(--news-notice-color);
}
.news-tab-div .news-tab[data-category-key="maintenance"].is-active {
background-color: var(--news-maintenance-color);
}
.news-tab-div .news-tab[data-category-key="failure"].is-active {
background-color: var(--news-failure-color);
}
.news-tab-div .news-tab[data-category-key="cproom"].is-active {
background-color: var(--news-cproom-color);
}
/* --- SP用ドロップダウン --- */
.news-tab-group-sp {
display: none;
position: relative;
margin-bottom: 20px;
z-index: 2; /* ドロップダウンを前面に表示 */
}
.news-tab-div .news-tab-sp-select {
display: block; padding: 12px 16px; border: 2px solid var(--border-color); border-radius: 8px;
cursor: pointer; position: relative; font-weight: bold;
}
.news-tab-div .news-tab-sp-select::after {
content: '▼'; position: absolute; right: 15px; top: 50%;
transform: translateY(-50%); font-size: 12px; color: #888;
}
.news-tab-div .news-select-list-sp {
position: absolute; top: 100%; left: 0; right: 0; background-color: #fff;
border: 2px solid var(--border-color); border-top: none; border-radius: 0 0 8px 8px;
z-index: 10; box-shadow: 0 4px 12px rgba(0,0,0,0.1); overflow: hidden;
}
.news-tab-div .news-tab-sp {
display: block; padding: 12px 16px; cursor: pointer; font-weight: bold;
}
.news-tab-div .news-tab-sp:hover {
background-color: #f0f0f0;
}
.news-tab-div .news-tab-sp.is-active-sp {
color: var(--text-white);
}
.news-tab-div .news-tab-sp[data-category-key="latest"].is-active-sp {
background-color: var(--news-latest-color);
}
.news-tab-div .news-tab-sp[data-category-key="notice"].is-active-sp {
background-color: var(--news-notice-color);
}
.news-tab-div .news-tab-sp[data-category-key="maintenance"].is-active-sp {
background-color: var(--news-maintenance-color);
}
.news-tab-div .news-tab-sp[data-category-key="failure"].is-active-sp {
background-color: var(--news-failure-color);
}
/* --- 記事パネルとリスト --- */
.news-panel {
display: none;
position: relative; /* z-indexを有効にするため */
z-index: 1; /* ドロップダウンより背面に表示 */
}
.news-tab-div .news-panel.is-show {
display: block;
animation: news-fadeIn 0.4s ease-in-out;
}
@keyframes news-fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}

.news-tab-div .article-list-item {
border-bottom: 1px solid #f0f0f0;
}
.news-tab-div .article-list-item:first-child {
border-top: 1px solid #f0f0f0;
}
.news-tab-div .article-list-item a {
display: flex;
align-items: center;
padding: 15px 10px;
gap: 15px;
cursor: pointer;
transition: background-color 0.2s ease, border-color 0.2s ease;
border: 2px solid transparent;
border-radius: 6px;
}
.news-tab-div .article-list-item a:hover {
background-color: #f7f7f7;
border-color: #ccc;
}
.news-tab-div .section_name {
  width: 100px;
  text-align: center;
  box-sizing: border-box;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 14px;
  color: var(--text-white);
  white-space: nowrap;
  flex-shrink: 0;
}
.news-tab-div .section_name.notice {
background-color: var(--news-notice-color);
}
.news-tab-div .section_name.maintenance {
background-color: var(--news-maintenance-color);
}
.news-tab-div .section_name.failure {
background-color: var(--news-failure-color);
}
.news-tab-div .section_name.cproom {
background-color: var(--news-cproom-color);
}
.news-tab-div .title {
flex-grow: 1; min-width: 0;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.news-tab-div .date {
color: #888; font-size: 14px; white-space: nowrap;
flex-shrink: 0; margin-left: 15px;
}
/* --- 「ニュース一覧を見る」ボタン --- */
.news-list-link-wrapper {
text-align: center;
margin-top: 10px;
}
.news-list-link-button {
margin: 10px;
display: inline-block;
padding: 12px 40px;
color: #333;
font-weight: bold;
border-radius: 6px;
border: 2px solid transparent;
transition: all 0.2s ease-out;
text-align: center;
}
.news-list-link-button:hover {
border-color: var(--accent-color);
transform: translateY(-3px);
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}
/* --- モーダル用スタイル --- */
.modal-overlay {
position: fixed; top: 0; left: 0; width: 100%; height: 100%;
background-color: rgba(0, 0, 0, 0.6);
display: flex; justify-content: center; align-items: center; z-index: 1000;
opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.is-open {
opacity: 1; visibility: visible;
}
.modal-content {
font-family: var(--font-family); color: var(--text-primary);
background-color: #fff; padding: 30px 40px; border-radius: 8px;
max-width: 800px; width: 90%; max-height: 90vh; overflow-y: auto;
position: relative; transform: scale(0.9); transition: transform 0.3s;
}
.modal-overlay.is-open .modal-content { transform: scale(1); }
.modal-close-button {
position: absolute; top: 15px; right: 15px; font-size: 28px;
font-weight: bold; color: #888; border: none;
background: transparent; cursor: pointer; line-height: 1;
}
.modal-close-button:hover { color: #333; }
.modal-header h3 { font-size: 22px; margin: 0 0 5px 0; color: var(--text-primary); }
.modal-header .modal-date { font-size: 14px; color: #888; margin-bottom: 20px; display: block; }
.modal-body p, .modal-body ul { line-height: 1.8; margin-bottom: 1em; }
.modal-body a { color: #007bff; text-decoration: underline; }
.modal-body a:hover {
color: #0056b3;
}
.modal-body .modal-img {
  max-width: 500px;
  height: auto; 
  margin-bottom: 1em; 
  vertical-align: middle;
}
.modal-body .img-center {
  width: 100%;
  display: block; 
  margin: 20px auto;
}
.article-list-button {
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 15px 10px;
  gap: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
  border-radius: 6px;
}
.article-list-button:hover,
.article-list-button:focus-visible {
  background-color: #f7f7f7;
  border-color: #ccc;
  outline: none;
}


/* ---ATTENTIONセクション--- */
.attention-section {
  border-top: 8px solid var(--attention-color);
  background: linear-gradient(135deg, #fff5f8, #ffeef5);
  box-shadow: var(--shadow-md);
}
.attention-content {
  padding: 0 20px;
  margin-left: 50px;
}

/* PC版の基本スタイル */
.attention-list li {
  list-style-type: none;
  margin: 30px 0;
}

.attention-list li a.attention-link-wrapper {
  display: flex;
  align-items: flex-start;
  text-decoration: none;
  color: #333;
  transition: color 0.3s ease;
}

.attention-list li img {
  width: 40px;
  height: auto;
  margin-right: 20px;
  flex-shrink: 0;
}

.text-wrapper {
  flex: 1;
}

.attention-list li a.attention-link-wrapper span:first-of-type {
  font-weight: bold;
  position: relative;
  display: inline-block;
}

/* ホバー時の下線アニメーション */
.attention-list li a.attention-link-wrapper span:first-of-type::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--school-color);
  transition: width 0.3s ease-out;
}
.attention-list li a.attention-link-wrapper:hover span:first-of-type::after {
  width: 100%;
}
.attention-list .note {
  display: block;
  font-size: 0.85rem;
  color: #777;
  margin-top: 8px;
  font-weight: normal;
  line-height: 1.6;
}
.attention-list li a.attention-link-wrapper:hover {
  color: var(--school-color);
}

/* ---クイックアクセスセクション--- */
.quick-access-section {
  border-top: 8px solid #85DEB7;
  margin-bottom: 0;
  box-shadow: var(--shadow-md);
}
/* モバイル用非表示 */
.for-mobile {
  display: none;
}

/* PC版 */
.for-desktop {
  display: block;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin: var(--spacing-md);
}
.quick-access-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: var(--spacing-lg);
  transition: var(--transition-normal);
  text-decoration: none;
  color: inherit;
  display: block;
}
.quick-access-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--success-color);
}
.quick-access-card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}
.quick-access-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.quick-access-title {
  font-size: var(--font-size-lg);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.quick-access-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.quick-access-links {
  list-style: none;
  padding: 0;
}

.quick-access-links li {
  margin-bottom: var(--spacing-sm);
}

.quick-access-links a {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 4px;
  transition: var(--transition-fast);
}

.quick-access-links a:hover {
  background: var(--bg-light);
  color:  var(--success-color);
  padding-left: var(--spacing-md);
}

.quick-access-links a::before {
  content: '→';
  color:  var(--success-color);
  font-weight: bold;
}



/* レスポンシブル対応 */

/* デスクトップ中サイズ */
@media screen and (max-width: 1024px) {
  body {
    background-image: url(../item/itsupport_main_backrounds_1024.png);
  }
  main {
    max-width: 95vw;
    padding: var(--spacing-lg);
    margin-right: 0;
  }

  .content-wrapper {
    max-width: 100%;
  }
  .news-content-wrapper {
    min-height: 320px; 
  }

  /* ATTENTION　*/
  .attention-content {
    margin-left: auto;
  }
  .attention-list li a.attention-link-wrapper {
    /* ボタン風のスタイル */
    padding: 15px 20px;
    border: 1px solid var(--school-color);
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    touch-action: manipulation;
  }
  .attention-list li a.attention-link-wrapper:active {
    transform: scale(0.95);
  }
  .attention-list li a.attention-link-wrapper span:first-of-type::after {
    display: none;
  }

    /* --- クイックアクセス：PC/SP表示切り替え --- */
  .for-desktop {
    display: none;
  }  
  .for-mobile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }
  .quick-access-card {
    border: 1px solid var(--bg-primary);
    transition: none;
  }
  .quick-access-card:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--bg-primary);
  }
  .quick-access-card-header {
    gap: var(--spacing-sm);
    border-bottom: 1px solid var(--main-border);
    margin-bottom: var(--spacing-md);
  }
  .quick-access-icon {
    width: 36px;
    height: 36px;
  }
  .quick-access-title {
    font-size: var(--font-size-lg);
  }
  .menu-list nav ul {
    list-style-type: none; 
    padding-left: 0;
    margin: 0; 
    text-align: center;
  }
  .menu-list nav ul li {
    margin: 2px 0;
  }
  .menu-list nav ul li a {
  display: block;
  max-width: 100%;
  margin: 5px 0;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--text-primary);
  text-align: center;
  text-decoration: none;
  background-color: #ffffff;
  border: 2px solid var(--success-color);
  border-radius: 12px;
  user-select: none;
  touch-action: manipulation;
  transition: var(--transition-normal);
  }
  .menu-list nav ul li a:hover{
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
  .menu-list nav ul li a:active {
  transform: scale(0.95);
  }
}


/* タブレットサイズ */
@media screen and (max-width: 768px) {
  /* --- 全体レイアウト調整 --- */
  body {
    background-attachment: scroll;
  }
  main {
    margin-top: 80px;
    padding: var(--spacing-md);
    max-width: 100vw;
  }
  .content-wrapper {
    border-radius: 0;
    box-shadow: none;
  }
  .section {
    margin-left: 0;
    margin-right: 0;
  }
  .section-header {
    padding: var(--spacing-md);
  }
  .section-title {
    font-size: var(--font-size-lg);
  }

 .news-tab-group {
    display: none; /* PC用タブを非表示 */
  }
  .news-tab-group-sp {
    display: block; /* SP用プルダウンを表示 */
  }
  .news-tab-panel {
    flex-direction: column;
  }
  
  /* --- ニュース記事リストのレイアウト変更 --- */
  .news-content-wrapper {
    max-height: 370px; 
  }
  .news-tab-div .article-list-item a {
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    padding: 10px;
  }
   .news-tab-div .article-list-button {
    flex-wrap: wrap;
    row-gap: 8px;
    align-items: center;
  }
  .news-tab-div .section_name { 
    order: 1;
    font-size: 11px;
  }
  .news-tab-div .date { 
    order: 2;
    font-size: 11px;
    margin-left: auto;
    line-height: 1;
  }
  .news-tab-div .title {
    order: 3;
    width: 100%;
    margin-top: 8px;
    white-space: normal;
    font-size: 14px;
  }
  .no-articles {
    display: flex !important;
  }

  /* --- モーダル --- */
  .modal-content { 
    padding: 20px; 
    width: 95%; 
  }
  .modal-header h3 {
    font-size: 20px;
  }
}


/* モバイルサイズ */
@media screen and (max-width: 480px) {
  body {
    background-image: url(../item/itsupport_main_backrounds_480.png);
  }
  main {
    margin-top: 60px;
    padding: var(--spacing-sm);
  }
  .section-header {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .section-title {
    font-size: 1.1rem;
    gap: var(--spacing-sm);
  }
  /* --- ニュースセクション：タブをSP用ドロップダウンに切り替え --- */
  .news-tab-group {
    display: none; /* PC用タブを非表示 */
  }
  .news-tab-group-sp {
    display: block; /* SP用ドロップダウンを表示 */
  }
  .news-content-wrapper {
    max-height: 400px; 
  }
  .news-tab-div .article-list-item a:active {
    background-color: #f0f8ff; 
    transform: scale(0.98); 
  }
  .article-list-item:nth-child(n+4) {
    display: none;
  }
  /* --- ATTENTIONセクション調整 --- */
  .attention-content {
    margin-left: 10px;
    padding: 0 10px;
  }

  .for-mobile {
    gap: 16px;
  }


  /* --- モーダル調整 --- */
  .modal-content { 
    padding: 20px 15px;
  }
  .modal-header h3 {
    font-size: 18px;
  }
}


/* ==================================================================
 * 環境別の表示切り替え用CSS
 * ================================================================== */
/* --- 非表示設定：該当する環境の時に非表示にする --- */
/* モバイル版 */
/* 表示設定 ＊ 特定の環境でのみ表示します */
.show-for-mobile,
.show-for-signage,
.show-for-test{
  display: none !important;
}
/* モバイル版 */
body.mode-mobile .show-for-mobile {
  display: block !important;/
}
/* サイネージ版 */
body.mode-signage .show-for-signage {
  display: block !important;
}
/* テスト環境 */
body.env-test .show-for-test {
  display: block !important;
}

/* 非表示設定 ＊ 該当する環境でのみ非表示します */
/* モバイル版 */
body.mode-mobile .hide-for-mobile {
  display: none !important;
}
/* モニター版 */
body.mode-signage .hide-for-signage {
  display: none !important;
}
/* テスト版 */
body.mode-test .hide-for-test {
  display: none !important;
}