* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* カスタムプロパティ（CSS変数） */
:root {
  /* カラーパレット */
  --primary-color: #3aabd2;
  --secondary-color: #667eea;
  --accent-color: #F99743;
  --success-color: #42C28A;
  --attention-color: #DE85AD;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --info-color: #17a2b8;
  --virus-color: #BC3AD2;
  --school-color: rgb(174, 0, 121);

  /* ニュース種別カラー */
  --news-latest-color:   #e60012;
  --news-notice-color:   #00a0e9;
  --news-maintenance-color: #42C28A;
  --news-failure-color:  #d7003a;
  --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.15);
  --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;

  /* マージン */
  --margin-desktop: 10px 15px 10px 25px;
  --margin-mobile: 10px;
  --margin-subtitle: 20px 15px 5px 25px;

  /* パディング */
  --padding-desktop: 15px;
  
  /* スペーシング */
  --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: 100px;
  --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;
}

.page-title {
  max-width: var(--content-max-width);
  margin: 10px auto 0 auto;
}
/*==================*/
/* パンくずリスト */
/*==================*/
.breadcrumb {
  margin: 10px 10px 32px 10px;  
  padding: 10px 15px;
  background-color: #f8f9fa;
  border-radius: 5px;
  border-left: 4px solid var(--text-light);
}

.breadcrumb ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #666;
}

.breadcrumb li:not(:last-child)::after {
  content: ">";
  margin: 0 8px;
  color: #ccc;
}

.breadcrumb a {
  color: #999;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #333;
  text-decoration: underline;
}

.breadcrumb .current {
  color: #333;
  font-weight: bold;
}
  /* 更新日付 */
.update-info {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  text-align: right;
}

/*=====================*/
/* 　　ページ全体枠　 　 */
/*=====================*/
.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;
  box-shadow: var(--shadow-sm);
}
.non-title-section {
  margin: var(--margin-desktop);
  padding: var(--spacing-md);
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.green {
  border-top: 8px solid var(--success-color);
  box-shadow: var(--shadow-md);    
}
.pink {
  border-top: 8px solid var(--attention-color);
  box-shadow: var(--shadow-md);    
}
.orange {
  border-top: 8px solid var(--accent-color);
  box-shadow: var(--shadow-md);      
}
.yellow {
  border-top: 8px solid var(--warning-color);
  box-shadow: var(--shadow-md);  
}
.blue {
  border-top: 8px solid var(--primary-color);
  box-shadow: var(--shadow-md);
}
.purple {
  border-top: 8px solid var(--virus-color);
  box-shadow: var(--shadow-md);  
} 
.danger {
  border-top: 8px solid var(--danger-color);
  box-shadow: var(--shadow-md);
}
.section-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
}
.js-toggle-container .section-header {
  padding: 0;
  border-bottom: none;
}
.section-title {
  font-size: var(--font-size-xl);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}
.section-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}
/* --- トグル（アコーディオン）スタイル --- */
.section-header {
  padding: 0;
}
.section-header-inner {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  transition: background-color 0.2s ease;
}
.section-header-image {
  width: 100px;
  height: auto;
  flex-shrink: 0;
  margin-right: var(--spacing-sm);
}
.section-header-image img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* トグルボタン */
.section-toggle {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.section-toggle:hover .section-header-inner {
  background-color: var(--border-light);
}
.section-title-wrapper {
  flex-grow: 1;
}
.section-title-wrapper .section-title,
.section-title-wrapper .section-subtitle {
  margin: 0;
}
.section-title-wrapper .section-title {
  margin-bottom: var(--spacing-sm);
}
/* トグルアイコン（＋/－） */
.toggle-icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--text-secondary);
  border-radius: 50%;
  position: relative;
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}
.toggle-icon::before,
.toggle-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--text-secondary);
  transition: transform var(--transition-normal);
}
.toggle-icon::before { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.toggle-icon::after { width: 14px; height: 2px; transform: translate(-50%, -50%); }

.js-toggle-container.is-open .toggle-icon::before {
  transform: translate(-50%, -50%) rotate(90deg);
}
/* 開いた状態(is-open)のアイコン（マイナス記号） */
.section.is-open .toggle-icon::before {
  transform: translate(-50%, -50%) rotate(90deg);
}

/*=====================*/
/* 　 コンテンツエリア　 */
/*=====================*/
.section-content {
  padding: var(--spacing-lg);
}
.js-toggle-container .section-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 var(--spacing-lg);
  transition: max-height 0.4s ease-in-out;
}
.section-content-inner {
  padding: var(--spacing-lg) 0;
}
/* is-openクラスがついた時のコンテンツ表示 */
.section.is-open .section-content {
  border-top: 1px solid var(--border-light);
}

/*=====================*/
/* 　 セクション下画像　 */
/*=====================*/
.section-img {
  margin: 15px;
  max-width: 100%;
  width: 300px;
  height: auto;
  display: flex;
  justify-content: flex-start;
}

/*=====================*/
/* 　ガイドコンテンツ　  */
/*=====================*/
.guid {
  margin: var(--spacing-md);
  padding-bottom: var(--spacing-md);
}
.guid-title {
  margin-bottom: var(--spacing-md);
  padding-bottom: 1px;
  padding-left: var(--spacing-md);
  font-size: var(--font-size-xl);
  border-bottom: 3px solid var(--main-border);
}
.sub-guid-title {
  font-size: 20px;
  color: #333;
  margin: var(--margin-subtitle);
  padding: 1px;
  border-bottom: 2px dotted var(--sub-border);  
}
.sub-guid-title-red {
  font-size: 20px;
  font-weight: bold;
  color: var(--danger-color);
  margin: var(--margin-subtitle);
  padding: 1px;
}
.guid-content{
  position: relative;
  margin: var(--margin-desktop);
  padding: var(--padding-desktop);
}
.guid-content li{
  padding: 10px;
}
.sub-guid-content{
  position: relative;
  margin: 0 var(--spacing-lg);
  padding: 0 var(--spacing-md);
}
.sub-guid-content li {
  padding: 10px;
}
.grid-container-title {
  list-style-type: none;
  font-weight: bold;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.grid-container img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
/* 画僧挿入タイトル */
/* ［画像］［タイトル］ */
.img-guid-heder {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding-bottom: 1px;  
  padding-left: var(--spacing-md);
  border-bottom: 3px solid var(--main-border);
}
.img-guid-title-icon {
  width: auto;
  height: 50px;
  margin-right: 10px;
  flex-shrink: 0
}
.img-guid-title {
  font-size: var(--font-size-xl);
}
/* 画像挿入サブタイトル */
/* ［タイトル］+［画像］ */
.sub-guid-img-header {
  display: flex;
  align-items: center;  
  margin: var(--spacing-md);
  padding-bottom: 5px;
  border-bottom: var(--sub-border) dotted 2px;
}
.sub-guid-title-img {
  font-size: 20px;
  color: #333;
}
.sub-guid-title-img-icon {
  width: 30px;
  height: 30px;
  margin-left: 10px;
  flex-shrink: 0
}
/* ［画像］+［タイトル］ */
.img-sub-guid-header {
  display: flex;
  align-items: center;  
  margin: var(--spacing-md);
  padding-bottom: 5px;
  border-bottom: var(--sub-border) dotted 2px;
}
.img-sub-guid-title-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0
}
.img-sub-guid-title {
  font-size: 20px;
  color: #333;
  margin-left: 10px;
}
.content-border {
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  padding-bottom: 1px;
  padding-left: var(--spacing-md);
  border-bottom: 3px dotted var(--sub-border);
}

/*=====================*/
/* セクション分けボタン */
/*=====================*/
.section-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 30px;
}
.nav-button {
  margin: 0;
  padding: 0;
  list-style: none;
  height: 100%;
}

.nav-button li {
  height: 100%;
}

.nav-button a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  width: 100%;
  font-size: 24px;
  color: #333;
  text-decoration: none;
  text-align: center;
  padding: 30px 20px;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
}

.title-green a:hover {
  color: var(--success-color);
  border-color: var(--success-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.title-pink a:hover {
  color: var(--attention-color);
  border-color: var(--attention-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.title-blue a:hover {
  color: var(--primary-color);
  border-color: var(--padding-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.title-yellow a:hover {
  color: var(--warning-color);
  border-color: var(--wrning-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.title-orange a:hover {
  color: var(--accect-color);
  border-color: var(--accent-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}
.title-purple a:hover {
  color: var(--virus-color);
  border-color: var(--virus-color);
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

/* ================= */
/*      画像挿入      */
/* ================= */
.image-single-center {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: var(--padding-desktop);
  margin: var(--margin-desktop);
}
.image-single-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: var(--padding-desktop);
  margin: 0;
  align-items: flex-start;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2カラムレイアウト */
  gap: 20px;
  padding: var(--padding-desktop);
  position: relative;
  margin: var(--margin-desktop);
}
.image-container {
  display: flex;
  flex-direction: column; /* 画像が上、テキストが下のレイアウト */
  align-items: center;
  padding: 20px;
}
.image-container img {
  max-width: 100%;
  width: 400px;
  height: auto;
}
.image-container p {
  margin-top: 10px;
}

/*=============*/
/*　参照リンク　*/
/*=============*/
/* ガイド内挿入 */
.link_li{
  color: #000;
}
.link_li:hover {
 color: #888;
}
/* リンク名（長） */
.link-long{
  width: 100%;
  max-width: 60vw;
  margin: 20px;
}
.link-long a {
  color: rgb(58, 171, 210);
  font-weight: bold;
  margin: 20px 10px;
  display: flex;
  align-items: flex-start;
}
.link-long img {
  margin-right: 5px;
  width: auto;
  height: var(--font-size-xl);
  flex-shrink: 0;
}
.link-long a:hover{
  color: #ccc;  
}

/* リンク名（短） */
.link-min {
  width: 100%;
  max-width: 60vw;
  display: flex;
  gap: 20px;
  margin: 20px;
}
.link-min a {
  color: rgb(58, 171, 210);
  font-weight: bold;
  margin: 10px;
  display: flex;
  align-items: flex-start;
}
.link-min img {
  margin-right: 5px;
  width: auto;
  height: var(--font-size-xl);
  flex-shrink: 0;
}
.link-min a:hover {
  color: #ccc;
}

/*================*/
/*　マニュアル設定　*/
/*================*/
p.manual-title {
  font-size: 24px; /* タイトルのサイズ */
  color: #333; 
  padding-left: 20px; /* 縦棒とテキストの間隔 */
  position: relative; /* 縦棒を配置するための基準位置 */
  margin-top: 20px; /* 上部の余白 */
  border-bottom: solid 3px var(--main-border);
}
/*　マニュアル・サブタイトル　*/
p.manual-sub-title{
  font-size: 20px;
  color: #333;
  margin: var(--spacing-md);
  border-bottom: dotted 2px var(--sub-border);
}
/*　マニュアルリスト設定　*/
.manual-content {
  list-style-type: decimal; /* 番号付きリストを使用 */
  position: relative;
  margin: var(--margin-desktop);
  padding: var(--padding-desktop);
}
.manual-content li {
  padding: 10px;
}
/*　マニュアル参考画像設定　*/
.manual-item{
  width: 300px; 
  height: auto;
  display: block;
  margin-top: 10px;
  padding: 10px;
}

/*==================*/
/* テーブルの基本設定 */
/*==================*/
.table-wrapper {
  margin: var(--spacing-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%; 
  min-width: 600px;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;

}
tr{
  height: 24px;
}
td,th {
  border: 2px solid white;
  padding: 8px;
  text-align: center;
  vertical-align: middle;
}
td[colspan="2"], th[colspan="2"] {
  padding-left: 20px;
  padding-right: 20px;
}

/*====================*/
/* セキュリティチェック */
/*====================*/
.checklist {
    margin: var(--spacing-md);
}
.checkbox-item {
    display: flex;
    align-items: center;
    margin: var(--spacing-lg);
    font-size: 1.2em;
    color: #555;
    cursor: pointer;
    user-select: none; 
    position: relative;
}
.checkbox-item input[type="checkbox"] {
    display: none;
}
.custom-checkbox {
    width: 25px;
    height: 25px;
    border: 2px solid #bbb;
    border-radius: 4px;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked + .custom-checkbox {
    background-color: var(--accent-color); 
    border-color: var(--accent-color);
    position: relative;
}
.checkbox-item input[type="checkbox"]:checked + .custom-checkbox::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 15px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    top: 2px;
    left: 8px;
}
.item-score {
    margin-left: auto;
    color: #888;
    margin-right: 5px;
}
.score-area {
    text-align: right;
    font-size: 1.8em; 
    font-weight: bold;
    color: #333;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.score-area #currentScore {
    color: var(--accent-color); 
    font-size: 1.2em;
}
.score-area #totalPossibleScore {
    color: #666;
}

/*==================*/
/* セキュリティクイズ */
/*==================*/
.quiz-container {
  margin: 10px 10px 32px 10px;
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;  
}
.question-item { 
  border: none;
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: left;  
  border-bottom: 3px dotted #ddd;
}
.question-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
}
.question-text {
  font-size: var(--font-size-lg);
  font-weight: bold;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.6;
  flex: 1; 
  min-width: 0;
}
.question-text p {
  margin: 0 0 10px 0;
}
.choices-container {
  margin-top: 10px;
  padding-left: 20px;
}
.choice-row {
  display: flex;
  gap: 30px;
  margin-bottom: 5px;
}
.choice-item {
  font-size: 0.95em;
  color: #666;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}
.answer-toggle-btn {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.9em;
  transition: background-color 0.3s ease;
  margin-bottom: 10px;
  position: relative;
  padding-right: 30px;
  flex-shrink: 0;
  height: fit-content;
  align-self: flex-end;
}
.answer-toggle-btn:hover {
  background-color: #d66e22;
}
.answer-toggle-btn::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  transition: transform 0.1s ease;
}
/* 答えが非表示の場合（デフォルト）：下矢印 */
.answer-toggle-btn.closed::after {
    border-top: 5px solid white; /* 下向き三角形 */
    border-bottom: none;
}
/* 答えが表示されている場合：上矢印 */
.answer-toggle-btn.open::after {
    border-top: none;
    border-bottom: 5px solid white; /* 上向き三角形 */
}
.answer-area {
    margin-top: 15px;
    padding: 12px;
    border-top: 1px dashed #ccc;
    background-color: #e9ecef;
}
.answer-text {
  display: flex;
  align-items: center; 
  font-size: var(--font-size-base);
  font-weight: normal; 
  color: #333;
  align-items: center;    
}
/* 〇×記号のスタイル */
.answer-symbol {
    font-size: 1.3em;
    font-weight: bold;
    color: #28a745; /* 正解は緑（デフォルト） */
}
.answer-explanation {
    font-size: var(--font-size-base);
    font-weight: normal;
    color: #333; /* 説明文は普通の黒文字 */
}
.answer-area.incorrect .answer-symbol {
    font-size: 1.5em;
    font-weight: bold;  
    color: #dc3545; /* 不正解は赤 */
}
.hidden {
    display: none;
}

/*==================*/
/*       FAQ        */
/*==================*/
/* --- FAQトグルスタイル --- */
.faq-list {
  margin: 10px 10px 32px 10px;
  background: var(--bg-primary);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);  
  border-top: 8px solid var(--text-light); 
}

.faq-item {
  border-bottom: 2px solid var(--border-light);
  background-color: var(--bg-primary);
}
.faq-item:first-child {
  border-top: 1px solid var(--border-light);
}

.faq-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: transparent;
  border: none;
  padding: var(--spacing-sm);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-primary);
  font-size: var(--font-size-lg);
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease;
}
.faq-toggle:hover,
.faq-item.is-open .faq-toggle {
  background-color: var(--bg-light);
  color: #0AA360;
}

.faq-toggle:focus {
  outline: none;
}

.faq-question-text {
  flex-grow: 1;
  margin: var(--spacing-md);
  font-size: var(--font-size-lg);
}

.faq-item.is-open .toggle-icon::before {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}
.faq-answer-inner {
  margin: var(--spacing-lg);
  padding: var(--spacing-md);
  transition: border-color 0.3s ease;
  font-size: var(--font-size-base);
  color: var(--text-primary); 
}
.faq-item.is-open .faq-answer-inner {
  border-top-color: var(--border-light);
}
.FAQ-answer {
  margin: var(--margin-desktop);
  padding: var(--padding-desktop);
}
.FAQ-answer li {
  padding: 10px;
}
.FAQ-manual-1 {
  list-style-type: decimal;
  margin: var(--spacing-sm);
  width: 100%;
}
.FAQ-manual-1 li {
  padding: 10px;
  flex: 1 1 45%;
}
.FAQ-manual-2 {
  margin: var(--spacing-sm);
  width: 100%;
}
.FAQ-manual-2 li {
  padding: 10px;
  flex: 1 1 45%;
}
.FAQ-manual-sub-guid-2 {
  list-style-type: decimal;
}
.FAQ-answer td {
  text-align: left;
}
.FAQ-answer li,
.FAQ-manual-1 li,
.FAQ-manual-sub-guid-1 li {
  min-width: 0;
  word-break: break-word;
} 
li.link-FAQ {
  width: 100%;
  max-width: 50vw;
  margin: 20px;
  list-style-type: none;
}
a.link-FAQ {
  color: rgb(58, 171, 210);
  font-weight: bold;
  margin: auto;
}
a.link-FAQ:hover {
  color: #ccc;
}
/* ===================== /
/  ニュース一覧ページ
/* ===================== */
/* --- body (モーダル表示用) --- */
body.is-modal-open {
overflow: hidden;
}
/* --- ユーティリティクラス --- */
.d-none {
display: none !important;
}
/* --- ニュース一覧ページ全体 --- */
.news-list-page {
font-family: var(--font-family-main);
color: var(--text-primary);
max-width: 960px;
margin: 0 auto; 
padding: 40px 20px;
}
.news-list-page h1 {
font-size: 28px;
margin-bottom: 30px;
text-align: center;
border-bottom: 2px solid #eee;
padding-bottom: 15px;
}
.news-list-page ul {
list-style: none;
padding: 0;
margin: 0;
}
.news-list-page a {
text-decoration: none;
color: inherit;
}
/* --- 記事リスト --- /
/ トップページとクラス名を共通化 */
.top-article-list { 
border-top: 1px solid #e0e0e0;
}
.article-list-item {
border-bottom: 1px solid #e0e0e0;
}
.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;
}
.article-list-item a:hover {
background-color: #f7f7f7;
border-color: #ccc;
}
/* 記事のカテゴリラベル */
.section_name {
padding: 4px 8px;
border-radius: 4px;
font-size: 14px;
color: var(--text-white);
white-space: nowrap;
flex-shrink: 0;
width: 100px;
text-align: center;
}
.section_name.notice {
background-color: var(--news-notice-color);
}
.section_name.maintenance {
background-color: var(--news-maintenance-color);
}
.section_name.failure {
background-color: var(--news-failure-color);
}
.section_name.cproom {
background-color: var(--news-cproom-color);
}
/* 記事タイトル */
.title {
flex-grow: 1;
min-width: 0;
}
/* 記事の日付 */
.date {
color: #888;
font-size: 14px;
white-space: nowrap;
flex-shrink: 0;
margin-left: 15px;
}
#pagination-container {
margin-top: 40px;
}
.pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 8px;
}
.page-item {
display: flex;
justify-content: center;
align-items: center;
width: 40px;
height: 40px;
border: 1px solid #ccc;
border-radius: 50%;
font-weight: bold;
cursor: pointer;
transition: all 0.2s ease;
}
.page-item:hover {
background-color: #f0f0f0;
border-color: #aaa;
}
.page-item.is-active {
background-color: var(--accent-color);
border-color: var(--accent-color);
color: var(--text-white);
cursor: default;
}
.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;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border: 2px solid transparent;
  border-radius: 6px;
  gap: 15px;
}
.article-list-button:hover,
.article-list-button:focus-visible {
  background-color: #f7f7f7;
  border-color: #ccc;
  outline: none;
}

/* ======================= */
/* コンピュータ自習室ガイド  */
/* ======================= */
.cp-guid-content {
  position: relative;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  width: auto;
  padding: 5px;
}
.cp-guid-content img {
  width: 140px;
  height: auto;
}
/* モバイル用非表示 */
.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);
}

.cp-guid-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;
}

.cp-guid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.cp-guid-card-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.cp-guid-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.cp-guid-title {
  font-size: var(--font-size-lg);
  font-weight: bold;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.cp-guid-subtitle {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
}

.cp-guid-links {
  list-style: none;
  padding: 0;
}

.cp-guid-links li {
  margin-bottom: var(--spacing-sm);
}

.cp-guid-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);
}

.cp-guid-links a:hover {
  background: var(--bg-light);
  color:  var(--accent-color);
  padding-left: var(--spacing-md);
}

.cp-guid-links a::before {
  content: '→';
  color:  var(--accent-color);
  font-weight: bold;
}

/*===========*/
/* 検索ページ */
/*===========*/

/* 検索ボックス */
.search-box {
  display: none;
  padding: 20px 40px;
  border-radius: 20px;
  margin: var(--margin-desktop);
}

.search-form {
  display: flex;
  gap: 20px;
  margin: 10px;
}

/* キーワード入力 */
.search-input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid #ddd;
  font-size: 16px;
  outline: none;
  border-radius: 50px;
}

.search-input:focus {
  border-color: rgb(58, 171, 210);
  box-shadow: 0 0 0 3px rgba(101, 126, 234, 0.1);
}

/* 検索ボタン */
.search-btn {
  padding: 15px 30px;
  background: linear-gradient(90deg,#3aabd2,#667eea) ;
  color: white;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  border-radius: 50px;
}

.search-btn:hover {
    transform: translateY(-2px);  /* Y方向（縦）に少し浮かせる */
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* ボタンが無効状態になっている時に適用 */
.search-btn:disabled {
  opacity: 0.6;  /* 透明度を60％にすることで「使用停止中」感を出す */
  cursor: not-allowed;  /* カーソルを当てると「禁止マーク」のようなポインターに変化 */
}

/* 読み込み中ぐるぐるアイコン */
.loading {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* 結果ボックス */
.results-box {
  background: white;
  padding: 20px 40px;
  border-radius: 20px;
  border: 2px solid #ccc;
  margin: var(--margin-desktop);
  overflow: hidden;
}

/* 「～」についての検索結果表示 */
.search-results {
  font-size: 1.3em;
  font-weight: bold;
  margin: 10px;
}

/* 結果アイテム */
.results-item {
  margin: 20px;
}

.results-item h3 {
  margin-bottom: 3px;
}

.results-title {
  text-decoration: none;
  cursor: pointer;
  color: #3aabd2;
}

.results-title:hover {
  text-decoration: underline;
}

.updated-date,
.results-content {
  font-size: 0.9em;
}

/* ================================================================ */
/*  モーダル用スタイル (元のCSSから流用)
/* ================================================================ */
.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-main); 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;
}

/* レスポンシブル対応 */

/* デスクトップ中サイズ */
@media screen and (max-width: 1024px){

  main {
    max-width: 100vw;
    padding: var(--spacing-lg);
  }
  .content-wrapper {
    max-width: 100vw;
  }
  .link-long,
  .link-min {
    max-width: 100%;
  } 
  .grid-container {
    gap: 12px;
  }
  .cp-guid-content img {
    width: 100px;
    height: auto;
  }
  .search-box {
    display: block;
  }  
}


/*　タブレットサイズ以下　*/
@media screen and (max-width: 768px) {
  :root {
    --font-size-base: 15px;
    --font-size-lg: 17px;
    --font-size-xl: 22px;
  }
  /* スマホでは選択肢の文字折り返しを許可 */
  .choice-item {
    white-space: normal;
    word-break: break-word;
  }
  /* スマホでは問題文とボタンのレイアウトを調整 */
  .question-content {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .answer-toggle-btn {
    align-self: flex-end;
    margin-bottom: 0;
  }
  body {
    background-attachment: scroll;
  }
  main {
    margin-top: 80px;
    padding: var(--spacing-md);
  }
  .breadcrumb {
    margin: 15px 0 10px 0;
    padding: 8px 12px;
  }
  .breadcrumb li,
  .breadcrumb a {
    font-size: 12px;
  }
  .content-wrapper {
    border-radius: 0;
  }
  .section {
    margin: 20px 3px;
  }
  .section-content {
    padding: var(--spacing-md);
  }
  .section-header-inner {
    padding: var(--spacing-md);
  }
  .section-header-image {
  width: 100px;
  height: auto;
  flex-shrink: 0;
  }
  .guid {
    margin: var(--spacing-xs);
  }
  .grid-container {
  grid-template-columns: repeat(2, 1fr);
  }
  .section-nav {
    gap: 20px 15px;
  }
  .nav-button a {
    font-size: 18px;
    padding: 20px 15px;
  }
  .news-list-page {
    padding: 20px 15px;
  }
  .article-list-button {
    flex-wrap: wrap; /* 要素の折り返しを許可 */
    row-gap: 8px;    /* 上下の行間 */
  }
  .article-list-item a {
    gap: 10px;
  }
  .date {
    order: 2;
    font-size: 12px;
    margin-left: auto;
  }
  .title {
    order: 3;
    width: 100%; /* 横幅いっぱいに広げて改行させる */
    margin: 0;   /* 余計なマージンをリセット */
    font-size: var(--font-size-base);
  }
  .faq-list {
    margin-left: 0;
    margin-right: 0;
  }
  .faq-toggle {
    padding: var(--spacing-md);
  }
  .itsupport-access {
    grid-template-columns: 1fr;
  }
  .image-container {
    margin: 0;
  }
  .image-grid {
    margin: 0;
  }
  .cp-guid-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .cp-guid-content img {
    margin-left: auto;
    margin-right: auto;
  }
  .faq-answer-inner{
    margin: var(--spacing-xs);
  }
  .FAQ-answer{
    margin: var(--spacing-xs);
  }
  .search-box {
  display: block;
  padding: 10px 20px;  
  }
  .search-input {
  border-radius: 30px;
 }
  .search-btn {
    padding: 10px 20px;
    border-radius: 30px;
  }
  .results-box {
    padding: 10px 20px;
  }
}

/* モバイルサイズ */
@media screen and (max-width: 468px) {
:root {
--font-size-base: 14px;
--font-size-lg: 16px;
--font-size-xl: 18px;
}
/* より小さな画面でも選択肢の文字折り返しを許可 */
.choice-item {
  white-space: normal;
  word-break: break-word;
}
/* より小さな画面でも問題文とボタンのレイアウトを調整 */
.question-content {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.answer-toggle-btn {
  align-self: flex-end;
  margin-bottom: 0;
}
main {
  margin-top: 60px;
  padding: var(--spacing-sm);
}  
.breadcrumb {
  padding: 6px 10px;
}
.breadcrumb li,
.breadcrumb a {
  font-size: 11px;
}
.breadcrumb li:not(:last-child)::after {
  margin: 0 4px;
}
.guid-content {
  margin: var(--margin-mobile);  
}
.grid-container,
.section-nav {
  grid-template-columns: 1fr;
}  
.section-nav {
    gap: 15px;
}
.link-long {
  margin: 15px;
}
.link-min {
  flex-direction: column;
  gap: 10px;
  margin: 15px;
}
.manual-content {
  margin: var(--margin-mobile);
}
.manual-item {
  width: 100%;
  max-width: 250px;
}
.pagination {
  gap: 5px;
}
.page-item {
  width: 32px;
  height: 32px;
}
.image-grid { 
  grid-template-columns: 1fr;
}

.FAQ-answer{
  margin: var(--margin-mobile);
}
.search-container {
display: flex;
margin: 15px auto;
}
.search-box {
  display: block;
  padding: 10px auto;
  margin: 15px auto;
}
.search-form {
  margin: auto;
  gap: 10px;
}
.search-input {
  font-size: 12px;
  border-radius: 70px;
  padding: 5px 10px;
}
.search-btn {
  font-size: 12px;
  padding: 1px 10px;
  border-radius: 20px;
}
.results-box {
  margin: 15px auto;
}
  
/* モーダル */
.modal-content {
  padding: 20px;
  width: 95%;
}
.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;
}

/* ==================================================================
 * PDF モーダル表示用スタイル
 * ================================================================== */

/* モーダル表示時に背景コンテンツのスクロールを固定する */
body.pdf-modal-open {
  overflow: hidden;
}

/* モーダルの背景となる半透明のオーバーレイ */
.pdf-modal-overlay {
  display: none; /* JavaScriptで flex に切り替えて表示 */
  position: fixed; /* 画面全体を覆う */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75); /* 少し濃いめの半透明の黒 */
  z-index: 10000; /* サイトの他のどの要素よりも手前に表示 */
  
  /* 中央揃えのための設定 */
  justify-content: center;
  align-items: center;
}

/* モーダルのコンテンツ部分（PDFが表示される白いエリア） */
.pdf-modal-content {
  position: relative;
  width: 90%; /* 画面幅の90% */
  height: 90%; /* 画面高さの90% */
  background-color: #333; /* PDFの背景となじむように少し暗めに */
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #555;
}

/* PDFを表示するためのインラインフレーム */
.pdf-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* 右上の「戻る」（閉じる）ボタン */
.pdf-modal-close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 55px;
  height: 55px;
  background-color: #fff;
  color: #333;
  border: 2px solid #333;
  border-radius: 50%; /* 円形にする */
  font-size: 28px;
  font-weight: bold;
  line-height: 40px; /* 文字を中央に配置 */
  text-align: center;
  cursor: pointer;
  z-index: 10001; /* PDFビューワーより手前に表示 */
  transition: transform 0.2s ease;
}

.pdf-modal-close-btn:hover {
  transform: scale(1.1); /* ホバー時に少し大きくする */
}



/* フォーカス表示テスト用に変更 */
/* 1068～1196行目　初期コード */
/* 1197～1219行目　追加コード */
/* 運用中バージョンに戻す場合は、追加コードを丸々削除してください */