/* 追加のスタイル定義 - ARSマニュアルのデザイン強化 */

/* ノートスタイルの強化 */
.note {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 18px 22px;
  background-color: #fffbea;
  border-left: 4px solid #ffcc00;
  color: #725b00;
  font-size: 15px;
  line-height: 1.7;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.03);
  position: relative;
}

.note:before {
  content: "📝";
  position: absolute;
  left: -12px;
  top: -12px;
  background: #ffcc00;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* コード表示の改善 */
.ars-manual code {
  background-color: #f5f7f9;
  color: #e83e8c;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
}

/* ステップコンテンツの強化 */
.step-content {
  flex: 1;
  padding-left: 15px;
}

.step-content h3 {
  margin-bottom: 15px;
  color: #333;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.step-content ol, .step-content ul {
  margin-left: 5px;
  counter-reset: item;
}

.step-content ol > li {
  display: block;
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  line-height: 1.7;
}

.step-content ol > li:before {
  content: counter(item) "";
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 3px;
  background: #4b8ef1;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  text-align: center;
  font-size: 12px;
  line-height: 22px;
  font-weight: bold;
}

/* 全体のセクションエフェクト */
.ars-manual .col-lg-12 {
  margin-bottom: 35px;
  transition: all 0.4s ease;
}

/* 見出しの装飾 */
.ars-manual h2 strong {
  color: #4b8ef1;
}

/* 最後に読み込まれるスタイルとして、特定の要素への微調整 */
.ars-manual {
  position: relative;
}

.ars-manual:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, rgba(75, 142, 241, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
}

/* マニュアル本文コンテナーの装飾 */
.ars-manual .container {
  position: relative;
  z-index: 2;
}

/* 重要な情報のハイライト */
.important-info {
  background: linear-gradient(to right, rgba(75, 142, 241, 0.1), rgba(255, 255, 255, 0.8));
  border-radius: 8px;
  padding: 15px 20px;
  margin: 20px 0;
  border-left: 3px solid #4b8ef1;
}

/* 組織管理セクションのスタイル */
.organization-management {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
}

.management-item {
  flex: 1 1 300px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.05);
  padding: 20px;
  transition: all 0.3s ease;
  border-top: 4px solid #4b8ef1;
}

.management-item:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  transform: translateY(-5px);
}

.management-item:nth-child(2) {
  border-top-color: #ff695f;
}

.management-item:nth-child(3) {
  border-top-color: #03a4ed;
}

.management-item h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.management-item h3 i {
  color: #4b8ef1;
  font-size: 20px;
}

.management-item:nth-child(2) h3 i {
  color: #ff695f;
}

.management-item:nth-child(3) h3 i {
  color: #03a4ed;
}

.management-content ul {
  padding-left: 5px;
}

.management-content ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
}

.management-content ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4b8ef1;
  font-weight: bold;
}

.management-content ul li strong {
  display: block;
  margin-bottom: 3px;
  color: #333;
}

.important-info {
  background-color: #f0f7ff;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #4b8ef1;
  margin: 25px 0 10px;
}

.important-info p {
  color: #333;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.important-info i {
  color: #4b8ef1;
  margin-right: 8px;
}

/* マニュアルタイトルの特別スタイル */
.ars-manual .main-banner h2 {
  font-size: 42px;
  position: relative;
  display: inline-block;
}

.ars-manual .main-banner h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, #4b8ef1, transparent);
}

/* マニュアルナビゲーション（目次）のスタイル */
.manual-navigation {
  background: #f9fafd;
  border-radius: 10px;
  padding: 20px 25px;
  margin: 30px 0;
  border-left: 4px solid #4b8ef1;
  box-shadow: 0 3px 12px rgba(0,0,0,0.04);
}

.manual-navigation .nav-title {
  font-size: 20px;
  font-weight: 600;
  color: #2a2a2a;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eaeaea;
}

.manual-navigation .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.manual-navigation .nav-links li {
  flex: 1 1 300px;
}

.manual-navigation .nav-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: white;
  border-radius: 6px;
  color: #505050;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #eaeaea;
}

.manual-navigation .nav-links a:hover {
  background: #4b8ef1;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(75, 142, 241, 0.2);
}

.manual-navigation .nav-links a i {
  color: #4b8ef1;
  font-size: 16px;
}

.manual-navigation .nav-links a:hover i {
  color: white;
}

/* トップに戻るボタン */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #4b8ef1;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 3px 15px rgba(75, 142, 241, 0.3);
  z-index: 999;
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: #3a7de0;
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(75, 142, 241, 0.4);
  color: white;
}

/* セクションアンカー用のスタイル */
.section-anchor {
  display: block;
  height: 100px; /* ヘッダーの高さ分余白を確保 */
  margin-top: -100px; /* 上部に隠れるように負のマージン */
  visibility: hidden;
  position: relative;
}
