/*!
 * ipj-nav.css
 * サイドナビ(.ipj_nav > ul.accordion)のデザイン
 * 参考画像(白背景・区切り線入りリスト、左に「›」アイコン、「購入」のみ右端に開閉の▾)を再現
 */

.ipj_nav {
  margin-bottom: 20px;
}

.accordion {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  background-color: #fff;
  overflow: hidden;
}

.accordion > li {
  border-bottom: 1px solid #eee;
}

.accordion > li:last-child {
  border-bottom: none;
}

/* 通常のリンク（トップ / 最新号 / バックナンバー / 公開記事 / 論文投稿） */
.accordion > li > a {
  display: block;
  position: relative;
  padding: 14px 16px 14px 30px;
  color: #17223d;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.accordion > li > a:hover {
  background-color: #f5f6f8;
  text-decoration: none;
  color: #17223d;
}

/* 左側の「›」アイコン */
.accordion > li > a::before {
  content: "\203A";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-55%);
  color: #17223d;
  font-size: 18px;
  font-weight: bold;
  line-height: 1;
}

/* 「購入」など開閉トグル付きの項目 */
.accordion > li > a.toggle {
  padding-right: 36px;
}

.accordion > li > a.toggle::after {
  content: "\25BE"; /* ▾ */
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #17223d;
  font-size: 13px;
  transition: transform 0.2s ease;
}

.accordion > li.expanded > a.toggle::after {
  transform: translateY(-50%) rotate(180deg);
}

/* 開閉するサブメニュー */
.accordion .content {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  background-color: #f9f9fa;
}

.accordion .content > li {
  border-top: 1px solid #eee;
}

.accordion .content > li > a {
  display: block;
  padding: 10px 16px 10px 40px;
  color: #444;
  font-weight: normal;
  font-size: 14px;
  text-decoration: none;
}

.accordion .content > li > a:hover {
  background-color: #f0f1f3;
  text-decoration: none;
  color: #17223d;
}

.accordion .content > li > a::before {
  content: none;
}
