/* =========================
   80200 一覧ページ
   共通CSS準拠：幅・HERO・fp-card は lesson.css に委譲
========================= */

.fp-wrap.c80200{
  max-width:1200px !important;
}

.c80200-tools{
  margin-top: 8px;
  padding: 10px 14px;
}

.c80200-categoryWrap{
  padding: 16px;
}

.c80200-search{
  display: block;
  width: min(560px, 100%);
  margin: 0 auto;
  border-radius: 999px;
}

.c80200-area{
  margin-top: 10px;
}

.c80200-categoryGrid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 760px){
  .c80200-categoryGrid{
    grid-template-columns: 1fr;
  }
}

.c80200-category{
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 122px;
  padding: 22px;
  border: 1px solid rgba(30,136,229,.38);
  border-radius: 20px;
  background: rgba(30,136,229,.055);
  color: #111;
  cursor: pointer;
  text-align: left;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}

.c80200-category:hover{
  transform: translateY(-1px);
  background: rgba(30,136,229,.10);
  border-color: rgba(30,136,229,.58);
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

.c80200-categoryIcon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  min-width: 54px;
  height: 54px;
  font-size: 34px;
  line-height: 1;
}

.c80200-categoryBody{
  flex: 1;
  min-width: 0;
}

.c80200-categoryTitle{
  display: block;
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
}

.c80200-categoryText{
  display: block;
  margin: 0;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}

.c80200-categoryCount{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(30,136,229,.13);
  color: #0d47a1;
  font-size: 14px;
  white-space: nowrap;
}

.c80200-resultTitle{
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}

.c80200-resultGrid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 980px){
  .c80200-resultGrid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .c80200-resultGrid{
    grid-template-columns: 1fr;
  }
}

.c80200-card{
  position: relative;
  display: block;
  min-height: 124px;
  padding: 16px 14px;
  border: 1px solid rgba(30,136,229,.30);
  border-radius: 14px;
  background: rgba(30,136,229,.055);
  color: #111;
  text-decoration: none;
}

.c80200-card:hover{
  background: rgba(30,136,229,.10);
  border-color: rgba(30,136,229,.55);
}

.c80200-card.is-coming{
  background: rgba(255,192,203,.18);
  border-color: rgba(220,20,60,.45);
}

.c80200-cardTop{
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.c80200-badge{
  justify-self: start;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(30,136,229,.13);
  font-size: 11px;
  color: #0d47a1;
  white-space: nowrap;
}

.c80200-id{
  justify-self: start;
  font-family: var(--fp-font-mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 12px;
  color: #1565c0;
}

.c80200-coming{
  justify-self: end;
  padding: 3px 8px;
  border: 1px solid rgba(220,20,60,.75);
  border-radius: 999px;
  background: rgba(255,192,203,.75);
  color: #c2182b;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
/*
.c80200-card.is-coming .c80200-cardTop{
  padding-right: 96px;
}
*/
.c80200-cardTitle{
  margin: 0 0 7px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.42;
}

.c80200-cardText{
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #333;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.c80200-empty{
  text-align: center;
  line-height: 1.8;
  padding: 16px;
}

.c80200-back{
  margin: 14px 0 8px;
  text-align: center;
}

.c80200-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.c80200-modal.is-open{
  display: block;
}

.c80200-modal__shade{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.36);
}

.c80200-modal__panel{
  position: relative;
  width: min(1120px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  padding: 18px;
  overflow: auto;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.22);
}

.c80200-modal__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 4px 12px;
  border-bottom: 1px solid rgba(30,136,229,.22);
}

.c80200-modal__badge{
  display: inline-flex;
  margin-bottom: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(30,136,229,.12);
  color: #0d47a1;
  font-size: 12px;
}

.c80200-modal__title{
  margin: 0;
  font-size: 25px;
  line-height: 1.35;
}

.c80200-modal__right{
  display: flex;
  align-items: center;
  gap: 10px;
}

.c80200-modal__count{
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30,136,229,.13);
  color: #0d47a1;
  font-size: 13px;
  white-space: nowrap;
}

.c80200-modal__close{
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(30,136,229,.10);
  color: #0d47a1;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.c80200-modal__list{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 980px){
  .c80200-modal__list{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .c80200-category{
    min-height: 96px;
    padding: 16px;
    gap: 12px;
  }

  .c80200-categoryIcon{
    width: 42px;
    min-width: 42px;
    height: 42px;
    font-size: 28px;
  }

  .c80200-categoryTitle{
    font-size: 20px;
  }

  .c80200-categoryText{
    font-size: 13px;
  }

  .c80200-modal__panel{
    width: calc(100% - 16px);
    margin: 8px auto;
    padding: 12px;
  }

  .c80200-modal__title{
    font-size: 20px;
  }

  .c80200-modal__list{
    grid-template-columns: 1fr;
  }
}
