@charset "utf-8";

.block_list {
  max-width: 980px;
  margin: 60px auto;
}

.block_list_title {
  text-align: center;
  font-weight: bold;
  font-size: 24px;
  padding: 0 0 0.25em;
  border-bottom: 1px solid #333;
  margin-bottom: 1em;
}

.block_list_definition {
  display: block;
  padding: 0;
  margin: 0;
}

.block_list_definition_item {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  text-decoration: none;
  color: inherit;
  margin-bottom: 10px;
}

h4.block_list_block {
  width: 20%;
  background-color: #358596;
  color: #fff;
  font-weight: bold;
  text-align: center;
  padding: 0.25em 0;
  font-size: 18px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.block_list_prefs {
  width: 78%;
  margin: 0 0 0 2%;
  padding: 10px 0;
  font-size: 18px;
  text-align: left;
  line-height: 1.6;
  display: flex;
  align-items: center;
  color: #5f5f5f;
}

@media screen and (max-width: 768px) {
  .block_list_definition_item {
    display: block;
    margin-bottom: 1em;
  }

  h4.block_list_block {
    width: 100%;
    margin-bottom: 0.5em;
    padding: 0.25em;
  }

  .block_list_prefs {
    width: 100%;
    margin: 0;
    padding: 0 1em;
  }
}

.junkai_program_list_button_back {
  display: block;
  width: fit-content;
  margin: 1em 0;
  padding: 0.5em 1em;
  background-color: #00938B;
  border-radius: 0.5em;
  color: #fff;
}

.junkai_program_list_title {
  margin: 1em 0;
  padding: 0.25em;
  background-color: #f0f0f0;
}

.junkai_program_list_block {
  margin-bottom: 0.25em;
  font-size: 32px;
  line-height: 1.2;
}

.junkai_program_list_prefs {
  padding: 0.5em;
  background-color: #fff;
  font-size: 18px;
  font-weight: normal;
  line-height: 1.2;
}


.junkai_program_article {
  margin: 2em 0;
  padding: 1em;
  border: 1px solid #333;
}

.junkai_program_article_header {
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  gap: 1em;
  padding-bottom: 1em;
  border-bottom: 1px solid #ccc;
}

.junkai_program_category {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  min-width: 100px;
  padding: 1em;
  background-color: #666;
  border-radius: 0.5em;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

.junkai_program_category--ippan {
  background-color: #c1514d;
}

.junkai_program_category--tokubetsu {
  background-color: #5082bd;
}

.junkai_program_titleset {
  display: flex;
  align-items: center;
  justify-content: left;
  flex-wrap: wrap;
  gap: 0.25em 1em;
}

.junkai_program_id {
  width: fit-content;
}

.junkai_program_type {
  width: fit-content;
}

.junkai_program_organization {
  width: fit-content;
}

.junkai_program_organization_name {
  font-weight: bold;
  font-size: 1.2em;
}

#junkai_program h4.junkai_program_title {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.2;
}

.junkai_program_article_content {
  display: grid;
  grid-template-columns: 6fr 4fr;
  grid-template-areas:
    "doc img"
    "desc img"
    "details img";
  gap: 1em;
  padding-top: 1em;
}

.junkai_program_article_documentset {
  grid-area: doc;
}

.junkai_program_article_document {
  display: flex;
  width: fit-content;
  padding: 0.5em 0.75em 0.5em 1em;
  background-color: #f9f9f9;
  border: 2px solid #aaa;
  font-size: 1.15em;
}

.junkai_program_article_document--pdf {
  color: #9b1b19;
  border-color: #9b1b19;
}

.junkai_program_article_document--pdf:after {
  content: "";
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  margin-left: 0.5em;
  background-image: url("../img/icon_pdf.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.junkai_program_article_document--excel {
  color: #0b4d2e;
  border-color: #0b4d2e;
}

.junkai_program_article_document--excel:after {
  content: "";
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  margin-left: 0.5em;
  background-image: url("../img/icon_excel.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.junkai_program_article_description {
  grid-area: desc;
  margin: 0;
}

.junkai_program_article_details {
  grid-area: details;
  width: 100%;
  height: auto;
}

.junkai_program_article_details .junkai_program_article_table {
  width: 100%;
  max-width: 480px;
  height: auto;
  outline: 2px solid #333;
  outline-offset: -2px;
}

.junkai_program_article_images {
  grid-area: img;
  align-self: start;
}

.junkai_program_article_image {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 768px) {
  .junkai_program_article_content {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "doc img"
      "desc img"
      "details details";
  }

  .junkai_program_article_details .junkai_program_article_table {
    max-width: 100%;
  }
}