@charset "UTF-8";

/* ------------------------------------------------
  JTK
------------------------------------------------ */


/* ------------------------------------------------
  カラー color
------------------------------------------------ */

/* #af1e24  和研薬RED */


/* ------------------------------------------------
  プライマリー・セカンダリー
  カテゴリーページ
------------------------------------------------ */

main .primary .categories-title > h1,
main .secondary .categories-title > h1 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 0.5em;
  padding-left: 0.3em;
  padding-right: 3em;
  border-bottom: 5px solid ;
  vertical-align: middle;
  font-size: 1.4em;
}

main .primary .categories-title > h1 {
  min-height: 2em;
  padding-top: 0.5em;
}

@media screen and (max-width:640px) {
  
  main .primary .categories-title > h1,
  main .secondary .categories-title > h1 {
    display: block;
    font-size: 1.2em;
  }
  
}/*end @media(max-width:640px)*/

main .primary .categories-title > h1 > span.catnum {
  right: 0.1em;
  bottom: -0.3em;
  font-size: 4em;
  font-style: italic;
  font-weight: bold;
}

main .secondary .categories-title > h1 > span.catnum {
  right: 0.1em;
  bottom: -0.3em;
  font-size: 4em;
  font-style: italic;
  font-weight: bold;
}


/* categories-table */
main .categories-table {
}

main .categories-table table {
  margin: 0 auto;
  padding: 0;
  border-collapse: collapse;
  font-size: 92%;
}

main .categories-table table.bordered th, 
main .categories-table table.bordered td {
  border: none;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 0.75em 0.5em;
}

main .categories-table table.bordered th {
  background-color: #ededed;
  text-align: left;
}

main .categories-table table.bordered th.maker,
main .categories-table table.bordered tr td:nth-child(3) {
  max-width: 11em;
}

main .categories-table table.bordered th.distributor,
main .categories-table table.bordered tr td:nth-child(4) {
  max-width: 11em;
}

main .categories-table table.bordered tbody tr:nth-child(2n+1) td {
//  background-color: #f6f6f6;
  background-color: #f0f0f0;
}

main .categories-table table.bordered tbody tr:hover td {
  background-color: #dedede !important;
}

main .categories-table table.bordered td:first-child a {
  position: relative;
  display: inline-block;
  padding-left: 1em;
}

main .categories-table table.bordered td:first-child a:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate( 0, -50%) rotate(45deg);
  width: 6px;
  height: 6px;
  border: 0;
  border-top: solid 1px #b3b3b3;
  border-right: solid 1px #b3b3b3;
}

main .categories .btn-camp a {
  display: inline-block;
  background-color: #fff;
  padding: 0.25em;
  border: 1px solid #af1e24;
  border-radius: .3em;
  font-size: 90%;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  color: #af1e24;
}

main .categories .relation a {
  display: inline-block;
  background-color: #fff;
  padding: 0.25em;
  border: 1px solid #333;
  border-radius: .3em;
  font-size: 100%;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
  color: #333;
}


@media screen and (max-width:640px) {
  
  main .categories .categories-table .btn-camp a {
    padding: 0;
    border: none;
    font-size: 140%;
    color: #af1e24;
  }
  
  main .categories .btn-camp a span {
    display: none;
  }

}/*end @media(max-width:640px)*/


/* primary categories-title */
main .primary .categories-title + div > div:nth-child(2) {
  text-align: right;
}

@media screen and (max-width:640px) {
  
  main .primary .categories-title + div > div:nth-child(2) {
    text-align: left;
  }
  
}/*end @media(max-width:640px)*/


main .primary .categories-title + div > div:nth-child(2) a {
  display: inline-block;
  margin-right: .5em;
}

main .primary .categories-title + div > div:nth-child(2) a:last-child {
  margin-right: 0;
}


/* primary categories-list */
main .primary .categories-list > div.res-flex.wrap {
  flex-wrap: wrap;
}

main .primary .categories-list ul {
  border-left: 1px solid;
  padding-left: 0.5em;
  margin-left: 0.5em;
}

@media screen and (max-width:640px) {
  
  main .primary .categories-list ul {
    border-left: none;
    border-top: 1px solid;
    padding-left: 0;
    margin-left: 0;
    padding-top: 0.5em;
    margin-top: 0.25em;
  }

}/*end @media(max-width:640px)*/

main .primary .categories-list li a {
  position: relative;
  display: inline-block;
  padding-left: 1em;
}

@media screen and (max-width:640px) {
  
  main .primary .categories-list .relation.res-sp-block span.fleft:nth-child(2) {
    width: calc(100% - 6em);
    line-height: 1.35;
  }
  
  main .primary .categories-list .relation.res-sp-block span.fleft:nth-child(2) a {
    display: inline-block;
  }

}/*end @media(max-width:640px)*/


main .primary .categories-list li a::before {
/*
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: '\f105';
  
  display: inline-block;
  width: 1em;
  height: 1em;
  
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
*/
  content: "";
  position: absolute;
  top: 0.25em;
  bottom: 0;
  right: 0;
  left: 0;
  transform:  rotate(45deg);
  width: 0.35em;
  height: 0.35em;
  border: 0;
  border-top: solid 1px #b3b3b3;
  border-right: solid 1px #b3b3b3;
}
