@charset "UTF-8";

/* ==========================================================================
   anchor_btn.css
   ========================================================================== */

.o-m__anchor_btn {
  display: flex;
  justify-content: space-between;
  padding-bottom: 70px;
  @media screen and (max-width: 768px) {
    padding-bottom: 50px;
  }
  @media screen and (max-width: 768px) {
    flex-direction: column;
  }
}

.o-m__anchor_btn._column_2 {
  justify-content: center;
}

.o-m__anchor_btn._column_2 a:first-of-type {
  margin-right: 20px;
  @media screen and (max-width: 768px) {
    margin-right: 0;
  }
}

.o-m__anchor_btn._column_4 a {
  flex-basis: 24.2%;
  @media screen and (max-width: 768px) {
    flex-basis: inherit;
  }
}

.o-m__anchor_btn._column_5 a {
  flex-basis: 19.2%;
  @media screen and (max-width: 768px) {
    flex-basis: inherit;
  }
}

.o-m__anchor_btn a {
  position: relative;
  height: 66px;
  display: grid;
  place-content: center;
  flex-basis: 32%;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  background: var(--rmeisai-primary);
  border: 2px solid var(--rmeisai-primary);
  border-radius: 10px;
  text-decoration: none;
  @media screen and (max-width: 768px) {
    display: flex;
    justify-content: center;
    flex-basis: inherit;
    flex: 1 0 auto;
    padding-top: 10px;
    height: 54px;
    margin-bottom: 15px;
  }
  &::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 10px;
    display: block;
    width: 8px;
    height: 8px;
    margin: auto;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transition: all ease .3s;
    transform: translate(-50%, -50%);
    transform: rotate(135deg);
    z-index: 1;
  }
  &:hover {
    color: var(--rmeisai-primary);
    background: #fff;
  }
}

.o-m__anchor_btn a:hover::after {
  border-top: 2px solid var(--rmeisai-primary);
  border-right: 2px solid var(--rmeisai-primary);
}

.o-m__anchor_btn a p {
  position: relative;
  top: -3px;
  text-align: center;
  line-height: 1.1;
  @media screen and (max-width: 768px) {
    top: inherit;
  }
}

.o-m__anchor_btn._column_2 a {
  @media screen and (max-width: 768px) {
    flex-basis: inherit;
  }
}
