@charset "utf-8";

/* === .fBox (flexBox) === */
@media screen and (min-width: 768px){
  .fBox {
    display: -webkit-box;
    display: flex;
  }
}

/* === #contents === */
#contents ul {
  display: -webkit-box;
  display: flex;
  flex-wrap: wrap;
}
#contents ul li {
  position: relative;
  display: block;
}
#contents ul li a {
  transition: all 0.3s ease;
}
#contents ul li div {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  background-color: rgba(173, 0, 0, 0.5);
  color: #fff;
}
#contents ul li figure img {
  display: block;
}
@media screen and (min-width: 768px){
  #contents ul li {
    width: calc((100% - 48px) / 3);
    margin-left: 24px;
  }
  #contents ul li:first-child {
    margin-left: 0;
  }
  #contents ul li:nth-child(3n+1) {
    margin-left: 0;
  }
  #contents ul li:nth-child(n+4) {
    margin-top: 24px;
  }
  #contents ul li a:hover {
    opacity: 0.7;
  }
  #contents ul li div {
    font-size: calc(18 / 16 * 1rem);
    line-height: 1.3;
    height: 80px;
    padding: 4px 16px;
  }
}
@media not all and (min-width: 768px){
  #contents ul li {
    width: calc((100% - 12px) / 2);
    margin-left: 12px;
  }
  #contents ul li:first-child {
    margin-left: 0;
  }
  #contents ul li:nth-child(2n+1) {
    margin-left: 0;
  }
  #contents ul li:nth-child(n+3) {
    margin-top: 12px;
  }
  #contents ul li a:active {
    opacity: 0.7;
  }
  #contents ul li div {
    font-size: calc(16 / 16 * 1rem);
    line-height: 1.2;
    height: fit-content;
    min-height: 48px;
    padding: 4px 12px;
    letter-spacing: -0.02em;
  }
}

/* === #relation === */
#relation .head__line__relation {
  font-weight: 700;
  font-size: calc((18 / 16 * 1rem));
  letter-spacing: 0.1em;
  line-height: 1.3;
  position: relative;
  margin-bottom: 15px;
  padding: 5px;
  padding-left: 20px;
}
#relation .head__line__relation::before {
  content: "";
  background-color: #871c25;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  top: 0;
  height: 50%;
  width: 1px;
}
#relation .head__line__relation::after {
  content: "";
  background-color: #a3898f;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  top: 0;
  height: 50%;
  width: 1px;
  top: 50%;
}
@media (min-width: 768px) {
  #relation .head__line__relation {
    font-size: calc((30 / 16 * 1rem));
    padding-bottom: 10px;
    margin-bottom: 38px;
    padding-top: 10px;
  }
  #relation .head__line__relation::before,
  #relation .head__line__relation::after {
    width: 2px;
  }
}
#relation .btnBox a.btnBlank {
  border: 1px solid #d1d1d1;
  display: -webkit-box;
  display: flex;
  -webkit-box-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  align-items: center;
  transition: all 0.3s ease;
}
#relation .btnBox a.btnBlank::after {
  content: "";
  display: block;
  background-image: url(/assets/img/common/icn_blank.png);
  background-size: cover;
  background-repeat: no-repeat;
  width: 20px;
  height: 20px;
  border: none;
  transform: none;
  position: unset;
  margin-left: 8px;
}
#relation .btnBox a.btnBlank:link,
#relation .btnBox a.btnBlank:visited {
  color: #000;
}
@media screen and (min-width: 768px){
  #relation .fBox {
    flex-wrap: wrap;
  }
  #relation .btnBox {
    width: calc((100% - 24px)/ 3);
    margin-left: 12px;
  }
  #relation .btnBox:nth-child(3n+1) {
    margin-left: 0;
  }
  #relation .btnBox:first-child {
    margin-left: 0;
  }
  #relation .btnBox:nth-child(n+4) {
    margin-top: 12px;
  }
  #relation .btnBox a {
    width: 100%;
  }
  #relation .btnBox {
    width: calc((100% - 24px) / 3);
  }
  #relation .btnBox a.btnBlank {
    height: 60px;
    padding: 0;
  }
  #relation .btnBox a.btnBlank:hover {
    color: #7e0017;
    opacity: 0.7;
  }
}
@media not all and (min-width: 768px){
  #relation .btnBox {
    margin-top: 8px;
  }
  #relation .btnBox:first-child {
    margin-top: 0;
  }
  #relation .btnBox a.btnBlank {
    padding: 8px;
  }
  #relation .btnBox a.btnBlank:active {
    color: #7e0017;
    opacity: 0.7;
  }
}

