@charset "UTF-8";
/* ========================================
   詳細ページ専用スタイル (sub.css)
   ======================================== */

/* ========================================
   全体レイアウト調整
   ======================================== */

/* コンテナ調整 */
#container {
  background-color: var(--bg-white);
  max-width: 100%;
  margin: 0;
  padding-top:160px;
}

/* ========================================
   パンくずリスト
   ======================================== */
#topicpath {
  background-color: #f8f9fa;
  padding: 1rem 0;
  margin: 0;
}

#topicpath ul {
  list-style: none;
  padding: 0 2rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 1400px;
}

#topicpath ul li {
  font-size: 0.9rem;
  color: #6c757d;
}

#topicpath ul li::after {
  content: ">";
  margin-left: 0.5rem;
  color: #6c757d;
}

#topicpath ul li:last-child::after {
  display: none;
}

#topicpath ul li a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

#topicpath ul li a:hover {
  color: #004499;
  text-decoration: underline;
}

#topicpath ul li.current {
  color: #333;
  font-weight: 500;
}

/* ========================================
   ラッパー
   ======================================== */
#wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  gap: 2rem;
}

/* ========================================
   メインコンテンツ
   ======================================== */
#content {
  flex: 1;
  min-width: 0;
}

/* ページタイトル */
#content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  border-bottom: 3px solid var(--accent-green);
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
}

#content h1 span {
  display: block;
}

/* セクション */
.section {
  margin-bottom: 3rem;
}

/* セクション見出し h2 */
#content .section > h2 {
  padding: 0.5em;
  color: #494949;
  background: #e8efe5;
  border-left: solid 5px var(--accent-green);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  border-radius: 0 4px 4px 0;
}

#content .section > h2 a {
  color: #494949;
  text-decoration: none;
}

#content .section > h2 a:hover {
  color: var(--accent-green);
}

/* サブセクション見出し h3 */
#content .section h3 {
  padding: 0.4em 0.5em;
  color: #494949;
  background: #f5f5f5;
  border-left: solid 4px #999;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-radius: 0 4px 4px 0;
}

#content .section h3 span {
  display: inline;
}

#content .section h3 a {
  color: #494949;
  text-decoration: none;
}

#content .section h3 a:hover {
  color: #666;
}

/* リスト */
#content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

#content ul.mb15 {
  margin-bottom: 1.5rem;
}

#content ul li {
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
  position: relative;
}

#content ul li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 7px;
    box-sizing: border-box;
    width: 0;
    height: 0;
    border: 7px solid transparent;
    border-left: 7px solid var(--accent-green);
    }

#content ul li a {
  color: var(--text-dark);
  text-decoration: underline;
}

#content ul li a:hover {
  color: #004499;
  text-decoration: underline;
}
#content ol.alpha {
  list-style: lower-alpha;
  padding-left: 1.5rem;
  margin: 0 0 1rem 0;
}
#content ol.alpha.mb15 {
  margin-bottom: 1.5rem;
}
#content ol.alpha li {
  margin-bottom: 0.8rem;
  padding-left: 0.3rem;
}
/* PDFアイコンなど */
#content ul li a img.file {
  margin-right: 0.3rem;
  vertical-align: middle;
}

#content ul li a img.external {
  margin-left: 0.3rem;
  vertical-align: middle;
}
#content table caption {
  caption-side: top;
}
/* ネストされたセクション */
#content .section .section {
  margin-bottom: 2rem;
  margin-left: 1rem;
}

#content .section .section.last_child {
  margin-bottom: 1rem;
}

/* ページトップへ戻る */
.page_top {
  text-align: right;
  margin: 2rem 0;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

.page_top a {
  color: var(--accent-green);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.page_top a:hover {
  color: var(--accent-green);
  text-decoration: underline;
}

.page_top a::before {
  content: "\2191";
}

/* ========================================
   サイドバー
   ======================================== */
#sidebar {
  width: 320px;
  flex-shrink: 0;
}

/* サイドバーナビゲーション */
#lnav {
  background-color: var(--bg-white);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#lnav > h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-white);
  background-color: var(--accent-green);
  padding: 0.8rem 1rem;
  margin: -1.5rem -1.5rem 1.5rem;
  border-radius: 8px 8px 0 0;
}

/* カテゴリセクション */
#lnav > div[class^="cat"] {
  border-bottom: 3px dashed #dee2e6;
  padding: .5rem 0;
}

#lnav > div[class^="cat"]:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

#lnav > div[class^="cat"] > h3 {
  margin: 0;
}

#lnav > div[class^="cat"] > h3 a {
  display: block;
  padding: 0 0 0 1.2rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s ease;
  position: relative;
}

#lnav > div[class^="cat"] > h3 a:hover {
  color: var(--accent-green);
}

/* 三角アイコン - 常に下向き（▼）で固定 */
#lnav > div[class^="cat"] > h3 a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  box-sizing: border-box;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-top: 8px solid var(--accent-green);
  border-bottom: none;
}

/* サブナビゲーション - 常に表示 */
#lnav > div[class^="cat"] ul {
  list-style: none;
  padding: 0.5rem 0 0 0;
  margin: 0;
  display: block;
}

#lnav > div[class^="cat"] ul li {
  border-bottom: none;
}

#lnav > div[class^="cat"] ul li a {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  color: var(--text-medium);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  position: relative;
}

#lnav > div[class^="cat"] ul li a:hover {
  color: var(--accent-green);
  padding-left: 1.2rem;
}
/* ========================================
   Adobe Reader案内
   ======================================== */
#adobe_dl {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background-color: #f8f9fa;
  padding: 2rem;
  margin: 3rem 2rem 2rem;
  border-radius: 8px;
  border: 1px solid #dee2e6;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

#adobe_dl .banner {
  flex-shrink: 0;
}

#adobe_dl .banner p {
  margin-bottom: 0.5rem;
}

#adobe_dl .banner p:last-child {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0;
}

#adobe_dl .text {
  flex: 1;
}

#adobe_dl .text p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 0;
  color: #555;
}
/* ========================================
   info-with-image - PC用デフォルト
   ======================================== */
.info-with-image {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.info-image-wrapper {
  width: 200px;
  flex-shrink: 0;
}
/* ========================================
   レスポンシブ: タブレット以下 (991px以下)
   ======================================== */
@media (max-width: 1260px) {
  #container {
    padding-top: 120px;
  }

  #wrapper {
    flex-direction: column;
    padding: 1.5rem;
  }

  #sidebar {
    width: 100%;
  }

  #content h1 {
    font-size: 1.5rem;
  }

  #content .section > h2 {
    font-size: 1.1rem;
    padding: 0.4em;
  }

  #content .section h3 {
    font-size: 1rem;
  }
}

/* ========================================
   レスポンシブ: モバイル (768px以下)
   ======================================== */
@media (max-width: 768px) {
  #container {
    padding-top: 90px;
  }
  #topicpath {
    padding: 0.8rem 1rem;
  }
  #topicpath ul {
    font-size: 0.8rem;
  }
  #topicpath ul li::after {
    margin-left: 0.3rem;
  }
  #wrapper {
    padding: 1rem;
  }
  #content h1 {
    font-size: 1.3rem;
    padding-bottom: 0.6rem;
    margin-bottom: 1.5rem;
  }
  #content .section {
    margin-bottom: 2rem;
  }
  #content .section > h2 {
    font-size: 1rem;
    padding: 0.5em;
    margin-bottom: 1rem;
  }
  #content .section h3 {
    font-size: 0.95rem;
  }
  #content ul li {
    margin-bottom: 1rem;
  }
  #content ul li a {
    font-size: 0.9rem;
    line-height: 1.6;
  }
  #adobe_dl {
    flex-direction: column;
    padding: 1rem;
    margin: 2rem 1rem 1.5rem;
  }
  #adobe_dl .banner {
    width: 100%;
    text-align: center;
  }
  #adobe_dl .text p {
    font-size: 0.85rem;
  }
  #lnav {
    padding: 1rem;
  }
  #lnav > h2 {
    font-size: 1.1rem;
    padding: 0.6rem 0.8rem;
    margin: -1rem -1rem 1rem;
  }
  #sidebar .banner {
    padding: 1rem;
  }
  
  /* info-with-imageのレスポンシブ対応 */
  .info-with-image {
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .info-with-image > div {
    width: 100% !important;
    flex: none !important;
  }
  
  .info-with-image .info-image-wrapper {
    width: 100% !important;
    max-width: 180px !important;
    margin: 0 auto !important;
  }
  
  .info-with-image .info-image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .info-with-image img {
    max-width: 80% !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }
}

/* ========================================
   レスポンシブ: 小型モバイル (480px以下)
   ======================================== */
@media (max-width: 480px) {
  #wrapper {
    padding: 0.5rem;
  }
  #content h1 {
    font-size: 1.2rem;
  }
  #content .section > h2 {
    font-size: 0.95rem;
  }
  #content ul li a {
    font-size: 0.85rem;
  }
  #lnav > div[class^="cat"] > h3 a {
    font-size: 0.9rem;
  }
  #lnav > div[class^="cat"] ul li a {
    font-size: 0.85rem;
  }
}