@charset "UTF-8";

/* ==========================================================================
   function-modallist.css
   ========================================================================== */

.o-m__function-modallist-content_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 20px;
  row-gap: 20px;
  @media screen and (max-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
    row-gap: 10px;
  }
}

.o-m__function-modallist-content_item {
  width: 100%;
}

.o-m__function-modallist-content_box {
  display: flex;
  align-items: center;
  background-color: #fff;
  padding: 0 20px;
  text-align: center;
  position: relative;
  border-radius: 10px;
  height: 100px;
  @media screen and (max-width: 768px) {
    font-size: 16px;
    padding: 10px 15px 15px;
    height: 100%;
    display: block;
  }
  &:hover {
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
  }
  &:after {
    position: absolute;
    z-index: 1;
    display: block;
    content: "";
    width: 10px;
    height: 10px;
    top: 0;
    right: 17px;
    bottom: 0;
    margin: auto;
    transform: rotate(45deg);
    transition: all ease .3s;
    border-top: 3px solid var(--rmeisai-primary);
    border-right: 3px solid var(--rmeisai-primary);
    @media screen and (max-width: 768px) {
      width: 8px;
      height: 8px;
      border-top: 2px solid var(--rmeisai-primary);
      border-right: 2px solid var(--rmeisai-primary);
    }
  }
}

.o-m__function-modallist-content_head {
  font-size: 18px;
  text-align: left;
  margin-left: 20px;
  @media screen and (max-width: 768px) {
    font-size: 14px;
    margin-left: 0;
    margin-top: 12px;
    text-align: center;
  }
}

.o-m__function-modallist-content_head._mt {
  @media screen and (max-width: 768px) {
    margin-top: 22px;
  }
}

.o-m__function-modallist-content_icon {
  width: 100%;
  max-width: 60px;
}

.o-m__function-modallist-modal_box {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  -webkit-transform: translateY(-50%) translateX(-50%);
  background-color: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overflow-scrolling: touch;
  width: 90%;
  max-height: 80%;
  max-width: 600px;
  padding: 40px 50px 40px 20px;
  justify-content: space-between;
  box-shadow: 0 0 10px #888;
  box-sizing: border-box;
  border-radius: 10px;
  transition: all 1s;
  @media screen and (max-width: 768px) {
    padding: 25px;
  }
}

.o-m__function-modallist-modal_overlay {
  display: none;
  position: fixed;
  z-index: 10000;
  right: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  background-color: #111;
  opacity: 0.3;
  cursor: pointer;
}

.o-m__function-modallist-modal_close {
  position: absolute;
  width: 30px;
  height: 30px;
  top: 30px;
  right: 20px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  cursor: pointer;
}

.o-m__function-modallist-modal_close_icon {
  display: inline-block;
  width: 30px;
  height: 30px;
  position: relative;
  cursor: pointer;
  &:before {
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 3px;
    margin: -8% 0 0 -42%;
    background: #ccc;
    transform: rotate(-45deg);
  }
  &:after {
    display: block;
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 3px;
    margin: -8% 0 0 -42%;
    background: #ccc;
    transform: rotate(45deg);
  }
}

.o-m__function-modallist-modal_left {
  width: 120px;
  height: 120px;
  @media screen and (max-width: 768px) {
    margin: 0 auto 20px;
  }
}

.o-m__function-modallist-modal_left img {
  width: 100%;
  height: 100%;
}

.o-m__function-modallist-modal_right {
  width: calc(95% - 120px);
  @media screen and (max-width: 768px) {
    width: 100%;
  }
}

.o-m__function-modallist-modal_head {
  font-size: 20px;
  margin-bottom: 10px;
  @media screen and (max-width: 768px) {
    text-align: center;
  }
}

.o-m__function-modallist-modal_text {
  font-size: 16px;
}

#modal1:checked ~ .o-m__function-modallist-modal_box {
  display: flex;
  @media screen and (max-width: 768px) {
    display: block;
  }
}

#modal2:checked ~ .o-m__function-modallist-modal_box {
  display: flex;
  @media screen and (max-width: 768px) {
    display: block;
  }
}

#modal3:checked ~ .o-m__function-modallist-modal_box {
  display: flex;
  @media screen and (max-width: 768px) {
    display: block;
  }
}

#modal4:checked ~ .o-m__function-modallist-modal_box {
  display: flex;
  @media screen and (max-width: 768px) {
    display: block;
  }
}

#modal5:checked ~ .o-m__function-modallist-modal_box {
  display: flex;
  @media screen and (max-width: 768px) {
    display: block;
  }
}

#modal6:checked ~ .o-m__function-modallist-modal_box {
  display: flex;
  @media screen and (max-width: 768px) {
    display: block;
  }
}

#modal7:checked ~ .o-m__function-modallist-modal_box {
  display: flex;
  @media screen and (max-width: 768px) {
    display: block;
  }
}

#modal8:checked ~ .o-m__function-modallist-modal_box {
  display: flex;
  @media screen and (max-width: 768px) {
    display: block;
  }
}

#modal9:checked ~ .o-m__function-modallist-modal_box {
  display: flex;
  @media screen and (max-width: 768px) {
    display: block;
  }
}

#modal1:checked ~ .o-m__function-modallist-modal_overlay {
  display: block;
}

#modal2:checked ~ .o-m__function-modallist-modal_overlay {
  display: block;
}

#modal3:checked ~ .o-m__function-modallist-modal_overlay {
  display: block;
}

#modal4:checked ~ .o-m__function-modallist-modal_overlay {
  display: block;
}

#modal5:checked ~ .o-m__function-modallist-modal_overlay {
  display: block;
}

#modal6:checked ~ .o-m__function-modallist-modal_overlay {
  display: block;
}

#modal7:checked ~ .o-m__function-modallist-modal_overlay {
  display: block;
}

#modal8:checked ~ .o-m__function-modallist-modal_overlay {
  display: block;
}

#modal9:checked ~ .o-m__function-modallist-modal_overlay {
  display: block;
}
