@charset "UTF-8";

/* ==========================================================================
   cm.css
   ========================================================================== */

.o-m__cm-content {
  width: 100%;
  max-width: 800px;
  margin: auto;
  background-color: #fff;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px;
  position: relative;
  color: var(--black);
  text-decoration: none;
  @media screen and (max-width: 768px) {
    display: block;
    padding: 20px 10px;
  }
  &:hover {
    cursor: pointer;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.2);
  }
}

.o-m__cm-content .o-c__btn-link._blue {
  transition: 200ms ease all;
}

.o-m__cm-content:hover .o-c__btn-link._blue {
  background-color: #FFF;
  color: #267D00;
  &:after {
    border-top: 2px solid #267D00;
    border-right: 2px solid #267D00;
  }
}

.o-m__cm-content_pop {
  position: absolute;
  top: 0;
  left: 20px;
  width: 120px;
  text-align: center;
  background-color: var(--rmeisai-accent);
  padding: 13px 20px 7px;
  font-weight: 700;
  @media screen and (max-width: 768px) {
    width: 70px;
    font-size: 12px;
    left: inherit;
    right: 10px;
    padding: 7px 0 2px;
  }
  &:before {
    position: absolute;
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 60px solid var(--rmeisai-accent);
    border-right: 0;
    bottom: -10px;
    left: 0;
  }
  &:after {
    position: absolute;
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 60px solid var(--rmeisai-accent);
    border-left: 0;
    bottom: -10px;
    right: 0;
  }
}

.o-m__cm-content_text {
  padding-top: 45px;
  @media screen and (max-width: 768px) {
    padding-top: 5px;
  }
}

.o-m__cm-content_title {
  font-size: 20px;
  font-weight: 700;
  color: var(--rmeisai-primary);
  margin-bottom: 10px;
  @media screen and (max-width: 768px) {
    font-size: 16px;
    margin-bottom: 5px;
  }
}

.o-m__cm-content_version {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 35px;
  @media screen and (max-width: 768px) {
    font-size: 20px;
    margin-bottom: 15px;
  }
}

.o-m__cm-content_video {
  width: 400px;
  @media screen and (max-width: 768px) {
    width: 100%;
  }
}

.o-m__cm-content_video img {
  border-radius: 10px;
}

.o-m__cm-content_video iframe {
  position: absolute;
  top: 20px;
  bottom: 0;
  right: 20px;
  width: 400px;
  height: calc(100% - 40px);
  border: 0;
}

.o-m__cm-content_link {
  cursor: pointer;
  @media screen and (max-width: 768px) {
    margin: 20px auto 0;
    text-align: center;
  }
}

.o-m__cm-content_link .o-c__btn-link {
  padding: 15px 55px 12px;
}
