/* ============= Main Section ============= */
.main-section {
  padding: 80px 0;
}

.content-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* ---- Sidebar ---- */
.sidebar {
  flex-shrink: 0;
  width: 240px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 80px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(20, 38, 63, 0.4);
  text-decoration: none;
}

.sidebar-link-text {
  font-family: 'RyoGothicPlusN-Medium', 'Ryo Gothic PlusN', 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 12px;
  color: #14263f;
  line-height: 1.8;
  letter-spacing: 0.48px;
  white-space: nowrap;
}

.sidebar-link.is-active {
  pointer-events: none;
}

.sidebar-link.is-active .sidebar-link-text {
  color: #14263f;
}

.sidebar-link-text.muted {
  color: rgba(20, 38, 63, 0.64);
}

.sidebar-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  flex-shrink: 0;
}

.sidebar-arrow .mi {
  font-family: 'Material Icons Outlined';
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  color: #14263f;
  line-height: 1.4;
  text-align: center;
  white-space: nowrap;
}

.sidebar-arrow .mi.muted {
  color: rgba(20, 38, 63, 0.64);
}

.sidebar-link.is-active .sidebar-arrow .mi.muted {
  color: #14263f;
}

/* ---- Cards ---- */
.cards-area {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  row-gap: 40px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-image-wrap {
  width: 100%;
  aspect-ratio: 284 / 191;
  border-radius: 4px;
  overflow: hidden;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.card-title {
  font-family: 'RyoGothicPlusN-Medium', 'Ryo Gothic PlusN', 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 15px;
  color: #000;
  line-height: 1.8;
  letter-spacing: 1.5px;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}

.card-arrow-btn {
  width: 24px;
  height: 24px;
  min-width: 24px;
  background: #14263f;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-arrow-btn .mi {
  font-family: 'Material Icons Outlined';
  font-style: normal;
  font-weight: normal;
  font-size: 12px;
  color: #fff;
  line-height: 1.79;
  text-align: center;
  width: 100%;
}

/* ---- Meta ---- */
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
}

.meta-row {
  display: flex;
  align-items: center;
}

.meta-row.f-start {
  align-items: flex-start;
}

.meta-values {
  line-height: 1.2;
}

.meta-label {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 96px;
  flex-shrink: 0;
}

.dot-sm-blue {
  width: 8px;
  height: 8px;
  background: #0798ed;
  flex-shrink: 0;
}

.dot-sm-green {
  width: 8px;
  height: 8px;
  background: #9fc707;
  flex-shrink: 0;
}

.meta-label-text {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 10px;
  color: #14263f;
  line-height: 1.8;
  letter-spacing: 1px;
  white-space: nowrap;
}

.meta-value {
  font-family: 'Unbounded', sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #14263f;
  line-height: 1.8;
  letter-spacing: 1.2px;
  white-space: nowrap;
}

.meta-value.ja {
  font-family: 'RyoGothicPlusN-Medium', 'Ryo Gothic PlusN', 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-style: normal;
}

/* ============= SP Layout (max-width: 1023px) ============= */
@media (max-width: 1180px) {

  .cards-area {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    gap: 12px;
  }

  .card-image-wrap {
    aspect-ratio: 368 / 247;
  }

  .card-title {
    font-size: 14px;
    letter-spacing: 1.4px;
  }
}

@media (max-width: 900px) {
  .content-layout {
    flex-direction: column;
  }

  .sidebar {
    order: 2;
    width: min(640px, 100%);
    margin-inline: auto;
  }
}

@media (max-width:560px) {


  .cards-area {
    grid-template-columns: 2fr;
    column-gap: 0;
    row-gap: 40px;
  }

  .sidebar-link {
    padding: 8px 4px;
  }

}