
/* ======================================================================
|| Layout 2 Column
====================================================================== */

/* レイアウト */
.l_2col_layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

/* 左サイドバー */
.l_2col_sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  /* top: 196px; */
  top: 100px;
}

.l_2col_sidebar_sticky {
  /* position: sticky;
  top: 20px; */
  transition: all 0.3s ease;
}


.l_2col_sidebar_sticky.fixed {
  /* position: fixed;
  top: 160px; */
  width: 260px;
  z-index: 100;
}



/* ナビゲーションタイトル */
.l_2col_nav_ttl {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  font-size: 15px;
  line-height: 1.8;
  font-weight: var(--font-bold);
}
.l_2col_nav_ttl::before {
  content: "";
  display: block;
  width: 4px;
  height: 1px;
  margin-right: 4px;
  background-color: var(--color-black);
}

/* ナビゲーション */
.l_2col_nav {
  border-radius: 12px;
  padding: 24px 0;
}

.l_2col_nav_list {
  list-style: none;
  margin: 0;
  padding: 0;
}


.l_2col_nav_item:last-child {
  border-bottom: none;
}

a.l_2col_nav_link {
  display: block;
  padding: 8px 24px;
  font-weight: var(--font-bold);
  color: rgba(0, 0, 0, 0.4);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  
}

/* 非アクティブな項目にも薄いグレーの縦線を追加 */
a.l_2col_nav_link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-light-gray);
}
/* 最初の項目のテキストカラー（デフォルト状態） */
.l_2col_nav_item:first-child a.l_2col_nav_link {
  color: var(--color-red);
}

/* スクロール状態の時は、最初の項目のテキストカラーを薄いグレーに */
.l_2col_nav.scrolled .l_2col_nav_item:first-child a.l_2col_nav_link {
  color: rgba(0, 0, 0, 0.4);
}

a.l_2col_nav_link:hover,
a.l_2col_nav_link.active {
  color: var(--color-red);
}


/* 最初の項目に赤い縦線（デフォルト状態） */
.l_2col_nav_item:first-child .l_2col_nav_link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-red);
}

/* アクティブな項目に赤い縦線（スクロール時） */
.l_2col_nav_link.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: var(--color-red);
}

/* スクロール状態の時は、最初の項目の縦線をグレーに */
.l_2col_nav.scrolled .l_2col_nav_item:first-child a.l_2col_nav_link::before {
  background-color: var(--color-light-gray);
}

/* メインコンテンツ */
.l_2col_main {
  flex: 1;
  min-width: 0;
}



/* セクション */
.l_2col_section {
  margin-bottom: 64px;
}

.l_2col_section:last-child {
  margin-bottom: 0;
}

.l_2col_section_title {
  font-size: 32px;
  font-weight: var(--font-bold);
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 8px solid #000;
  line-height: 1.6;
}

.l_2col_section_pic{
  width: 100%;
  text-align: center;
}
.l_2col_section_pic .img{
  max-width: 100%;
}

.l_2col_section_img_content {
  margin-bottom: 60px;
}

.l_2col_section_img_content a {
  display: block;
}
.l_2col_section_img_content a img {
  border-radius: 10px;
  aspect-ratio: 3/2;
  -o-object-fit: cover;
  object-fit: cover;
}
.l_2col_section_content {
  font-size: 16px;
  margin-top: 24px;
  /* text-align: center; */
}

.l_2col_section_content p {
  margin-bottom: 24px;
}

.l_2col_section_content .lead {
  margin-bottom: 34px;
}


.l_2col_section_content p:last-child {
  margin-bottom: 0;
}



/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {

  .l_2col_layout {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .l_2col_nav {
    display: block;
  }

  .l_content {
    position: relative;
  }
  
  .l_2col_sidebar {
    position: relative;
    top: 0; /* l_kv_secの下に配置 */
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0;
    margin-bottom: 20px;
    width: 100%;
  }
  .l_2col_nav_item:first-child .l_2col_nav_link::before{
    width: 100%;
    height: 2px;
    top: 100%;
  }


  a.l_2col_nav_link::before {
    width: 100%;
    height: 2px;
    background-color: var(--color-red);
    top: 100%;
  }

  .l_2col_nav_link:after {
    content: "";
    display: block;
    border-bottom: solid 2px var(--color-deep-red);
    border-right: solid 2px var(--color-deep-red);
    background: transparent;
    width: 8px;
    height: 8px;
    transform: rotate(45deg) translate(0, -50%);
    margin-left: 9px;
    position: absolute;
    right: 8px;
    top: 50%;
  }



  .l_2col_sidebar_sticky {
    position: static !important;
    background: transparent;
    padding: 0;
  }
  
  .l_2col_sidebar_sticky.fixed {
    position: static !important;
    width: auto;
  }
  
  .l_2col_nav_ttl {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    text-align: center;
  }
  
  .l_2col_nav_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-end;
    justify-content: center;
  }
  
  .l_2col_nav_item {
    min-width: 0;
  }
  
  .l_2col_nav_link {
    display: block;
    padding: 8px 12px;
    font-size: 12px;
    text-align: center;
    color: var(--color-red);
    font-size: 12px;
  }
  
  a.l_2col_nav_link {
    color: var(--color-red);
    font-size: 14px;
    padding: 12px 24px 12px 12px;
    line-height: 1.4;
  }
}

@media screen and (max-width: 767px) {
  .l_2col_section_title {
    font-size: 24px;
  }
  
  /* モバイル表示時はスクロール固定を無効 */
  .l_2col_sidebar_sticky {
    position: static !important;
  }
  
  .l_2col_sidebar_sticky.fixed {
    position: static !important;
    width: auto;
  }
  .l_2col_section_content {
    text-align: left;
  }
  a.l_2col_nav_link{
    font-size: 12px;
  }
}