@charset "UTF-8";

/* sidebar.css — 共通サイドメニュー（サイドバー） */

/* 最小リセット */
:where(.l-sidebar) *,
:where(.l-sidebar) *::before,
:where(.l-sidebar) *::after { box-sizing: border-box; }

:where(.l-sidebar) ul,
:where(.l-sidebar) ol { margin: 0; padding: 0; list-style: none; }

:where(.l-sidebar) h3,
:where(.l-sidebar) p { margin: 0; }

:where(.l-sidebar) a { color: inherit; text-decoration: none; }

:where(.l-sidebar) img { max-width: 100%; height: auto; vertical-align: bottom; }

/* l-sidebar（バナー群 / 新着情報 / ヘルプガイドを縦積み） */
.l-sidebar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--font-base);
  color: var(--color-text);
  line-height: 1.7;
}

/* c-bannerList（バナー縦並び｜再利用パーツ） */
.c-bannerList {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.c-bannerList a {
  display: block;
  transition: opacity 0.2s ease;
}

.c-bannerList a:hover {
  opacity: 0.85;
}

.c-bannerList img {
  display: block;
  width: 100%;
  height: auto;
}

/* 新着情報 / ヘルプガイド（共通の三角リスト） */
.sidebarNews__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 14px;
  background-color: var(--color-red-deep);
  color: var(--color-white);
}

.sidebarNews__title,
.sidebarHelp__title {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sidebarNews__title {
  font-size: 25px;
}

.sidebarNews__more {
  font-size: 11px;
  color: var(--color-white);
}

.sidebarHelp__title {
  padding: 0 14px;
  background-color: var(--color-red-deep);
  color: var(--color-white);
  font-size: 25px;
}

.sidebarNews__list {
  margin-top: 8px;
}

.sidebarNews__list li,
.sidebarHelp__list li {
  border-bottom: 1px dashed var(--color-line);
  font-size: var(--fs-13);
  line-height: 1.5;
}

.sidebarHelp__list li {
  font-size: var(--fs-16);
}

.sidebarNews__list li:last-child,
.sidebarHelp__list li:last-child {
  border-bottom: 1px solid var(--color-red-deep);
}

.sidebarNews__link,
.sidebarHelp__link {
  position: relative;
  display: block;
  padding: 1em 0 1em 2em;
}

/* ▶ の三角は擬似要素で描画 */
.sidebarNews__link::before,
.sidebarHelp__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.25em;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent var(--color-red);
}

.sidebarNews__link:hover,
.sidebarHelp__link:hover {
  text-decoration: underline;
}

/* SP */
@media (max-width: 767px) {
  .l-sidebar {
    grid-row: auto;
    padding-inline: 40px;
  }

  .sidebarNews__head {
    padding-block: 0;
  }

  .sidebarNews__more {
    font-size: 15px;
  }

  .sidebarNews__list li {
    font-size: var(--fs-16);
  }
}
