@charset "UTF-8";

/* ==========================================================================
   news.css
   ========================================================================== */

/* partial override */
/* ========================================================================= */

.o-m__breadcrumb-list {
  @media screen and (max-width: 576px) {
    display: block;
    padding: 8px 12px 9px;
  }
}

.o-m__breadcrumb-list_link {
  @media screen and (max-width: 576px) {
    display: inline;
    margin: 0 5px 0 0;
  }
  &:after {
    @media screen and (max-width: 576px) {
      position: static;
      display: inline-block;
      margin: 0 0 0 5px;
    }
  }
}

/* 個別ページの時CTAを非表示 */

.p-news .o-m__cta-wrap {
  display: none;
}

.f__common-text_highlighter_bg {
  background: linear-gradient(to bottom, transparent 0%, transparent 60%, var(--rmeisai-accent) 61%, var(--rmeisai-accent) 85%, transparent 86%, transparent 100%);
  display: inline;
}

.o-c__cta-floating_cta_container {
  display: none !important;
}

/* p__news */

.p__news_index-fv .o-c__heading-h1 {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
  position: relative;
  @media screen and (max-width: 576px) {
    font-size: 25px;
  }
}

.p__news_index-body {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  @media screen and (max-width: 768px) {
    width: 100%;
    padding: 70px 20px;
    display: block;
  }
  @media screen and (max-width: 576px) {
    padding: 50px 20px;
  }
}

.p__news_index-body-list {
  flex: 1;
  @media screen and (max-width: 768px) {
    width: 100%;
  }
}

.p__news_index-body ul.news {
  margin-bottom: 40px;
  li:nth-child(n + 2) {
    margin-top: 30px;
    @media screen and (max-width: 768px) {
      margin-top: 18px;
    }
  }
  li .news__link {
    background: var(--white);
    box-sizing: border-box;
    border: solid 1px var(--gray-bg-01);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    position: relative;
    display: flex;
    padding: 20px;
    text-decoration: none;
    color: var(--black);
    @media screen and (max-width: 768px) {
      padding: 10px;
    }
    &:hover {
      box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.15), 0 0 5px rgba(0, 0, 0, 0.1);
      transform: translateY(-4px);
    }
    &:hover::after {
      content: "";
      position: absolute;
      border: 3px solid var(--rmeisai-primary);
      border-radius: 10px;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      transition: border 0.25s ease-in-out;
      top: 0;
      left: 0;
      z-index: 0;
    }
    .imgbox {
      width: 260px;
      height: 146px;
      margin-right: 30px;
      border: 1px solid var(--gray-bg-01);
      position: relative;
      @media screen and (max-width: 768px) {
        max-width: 80px;
        height: 73px;
        margin-right: 10px;
      }
      img {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        object-fit: cover;
      }
    }
    .txtbox {
      flex: 1;
    }
    .date {
      position: relative;
      padding-left: 20px;
      display: inline-block;
      color: #999;
      font-size: 16px;
      @media screen and (max-width: 768px) {
        font-size: 14px;
      }
      &::after {
        content: "";
        position: absolute;
        background-image: url(/rakurakucloud/meisai/assets/image/figure/news/icon_writetime.svg);
        background-size: 100%;
        background-repeat: no-repeat;
        width: 15px;
        height: 15px;
        top: calc(50% - 7.5px);
        left: 0;
        margin: auto 0;
      }
    }
    .tit {
      font-size: 18px;
      font-weight: 700;
      line-height: 1.4;
      margin-top: 10px;
      @media screen and (max-width: 768px) {
        font-size: 16px;
        margin-top: 5px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
      }
      .mark_icon_new {
        font-size: 14px;
        padding: 1px 6px;
        background: var(--rmeisai-primary);
        color: var(--white);
        vertical-align: 1.5px;
        border-radius: 6px;
        @media screen and (max-width: 768px) {
          font-size: 12px;
        }
      }
    }
  }
}

.p__news_index-body-menu {
  width: 250px;
  margin-left: 60px;
  @media screen and (max-width: 768px) {
    margin: 0 auto;
    padding: 0px 20px;
    margin-top: 40px;
    width: 100%;
  }
}

.p__news_index-body-menu-tit {
  width: 100%;
  background: var(--rmeisai-primary);
  color: var(--white);
  font-size: 19px;
  padding: 12px 20px 10px;
  text-align: center;
  box-sizing: border-box;
  border-radius: 0;
  font-weight: 500;
  @media screen and (max-width: 768px) {
    font-size: 17.5px;
  }
}

.p__news_index-body-menu-box {
  background: var(--gray-bg-02);
}

.p__news_index-body-menu-list {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
}

.p__news_index-body-menu-item {
  width: calc(100% / 3);
  text-align: center;
  &:nth-child(n + 4) {
    margin-top: 5px;
  }
  &:last-child {
    width: 100%;
    text-align: left;
    padding-left: 10px;
    @media screen and (max-width: 768px) {
      width: calc((100% / 3) + 27px);
      text-align: center;
      padding-left: 0;
    }
  }
}

.p__news_index-body-menu-item-link {
  display: inline-block;
  position: relative;
  text-decoration: underline;
  color: var(--black);
  padding-left: 5px;
  font-size: 13px;
  text-align: left;
  &::after {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 0;
    height: 0;
    border-top: solid 4px transparent;
    border-right: solid 4px transparent;
    border-bottom: solid 4px transparent;
    border-left: solid 4px var(--black);
  }
}

.p__news-title {
  background-color: var(--rmeisai-bg-main);
  color: var(--white);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 255px;
  position: relative;
  overflow: hidden;
  @media screen and (max-width: 576px) {
    height: auto;
    padding: 15px 20px;
    text-align: left;
    align-items: flex-start;
  }
  &::before {
    display: block;
    content: "";
    position: absolute;
    z-index: 0;
    bottom: -111px;
    left: -90px;
    width: 406px;
    height: 386px;
    background-image: url(/rakurakucloud/meisai/assets/image/figure/back_component_sub_bg.svg);
    background-size: cover;
    transform: rotate(-120deg) scale(0.82);
    @media screen and (max-width: 576px) {
      display: none;
    }
  }
  &::after {
    content: "";
    position: absolute;
    z-index: 0;
    top: -105px;
    right: -120px;
    width: 406px;
    height: 386px;
    background-image: url(/rakurakucloud/meisai/assets/image/figure/back_component_sub_bg.svg);
    background-size: cover;
    transform: rotate(89deg) scale(0.82);
    @media screen and (max-width: 576px) {
      width: 129px;
      height: 125px;
      top: -30px;
      right: -43px;
    }
  }
}

.p__news-title_point {
  font-size: 30px;
  line-height: 1.4;
  font-weight: bold;
  position: relative;
  max-width: 1000px;
  text-align: left;
  z-index: 10;
  @media screen and (max-width: 576px) {
    font-size: 20px;
  }
  .smalltext {
    font-size: 20px;
    @media screen and (max-width: 576px) {
      font-size: 15px;
    }
  }
  .middletext {
    font-size: 20px;
    @media screen and (max-width: 576px) {
      font-size: 15px;
    }
  }
}

.p__news_detail #request {
  display: none;
}

.p__news_detail-body {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  @media screen and (max-width: 768px) {
    width: 100%;
    padding: 70px 20px;
    display: block;
  }
  @media screen and (max-width: 576px) {
    padding: 50px 20px;
  }
  .newsbox {
    font-size: 16px;
    line-height: 2;
    width: calc(100% - (250px + 60px));
    flex: 1;
    @media screen and (max-width: 768px) {
      width: 100%;
    }
    @media screen and (max-width: 576px) {
      font-size: 14.5px;
      line-height: 1.8;
      width: 100%;
    }
    @media screen and (max-width: 768px) {
      width: 100%;
    }
    .mt_large3rem {
      @media screen and (max-width: 576px) {
        margin-top: 30px;
      }
    }
    .special-movie .special-movie-inner {
      max-width: 100%;
    }
    iframe {
      max-width: 100%;
    }
    table.line {
      width: 100%;
      margin-bottom: 60px;
      th {
        width: 20%;
        padding: 14px 7px;
        text-align: left;
        border-bottom: 1px solid var(--gray-bg-01);
        vertical-align: middle;
        font-weight: 500;
      }
      td {
        max-width: 80%;
        padding: 14px 7px;
        border-bottom: 1px solid var(--gray-bg-01);
        vertical-align: middle;
        font-weight: 500;
      }
    }
    .box {
      width: 100%;
    }
    p img {
      height: auto;
    }
    .mobile_img {
      width: 150px;
    }
    .img__100per,
    .img__90per,
    .img__70per {
      width: auto;
    }
    a img {
      width: auto;
      max-width: 100%;
    }
    .mobile_img__90per {
      @media screen and (max-width: 768px) {
        max-width: 90%;
      }
    }
    figure {
      margin: 16px 40px;
      img {
        width: auto;
      }
    }
    sup {
      font-size: 10px;
    }
    p {
      font-size: 16px;
      line-height: 2;
      margin-bottom: 28px;
      @media screen and (max-width: 768px) {
        font-size: 14.5px;
        line-height: 1.8;
        margin-top: 14.5px;
        margin-bottom: 14.5px;
      }
      sup {
        font-size: 10px;
      }
      small {
        font-size: 10px;
        display: inline-block;
        line-height: 1.6;
      }
    }
    small {
      font-size: 10px;
      display: inline-block;
      line-height: 1.6;
    }
    .bg_f6f6f6 {
      margin-bottom: 28px;
      @media screen and (max-width: 768px) {
        margin-bottom: 14.5px;
      }
    }
    .newsbox__date {
      padding-bottom: 20px;
      font-size: 16px;
      line-height: 1.6;
      margin-bottom: 28px;
      text-align: left;
      border-bottom: 1px solid var(--gray-bg-01);
      @media screen and (max-width: 768px) {
        margin-top: 0;
        font-size: 12px;
        line-height: 1.8;
        padding-bottom: 10px;
        margin-bottom: 14px;
      }
    }
    h2 {
      background-color: var(--gray-bg-02);
      font-size: 20px;
      font-weight: 700;
      border-left: 5px solid var(--rmeisai-primary);
      line-height: 1.4;
      padding: 22px 15px 17px 20px;
      margin: 0 0 20px;
      text-align: left;
      color: var(--black);
      @media screen and (max-width: 768px) {
        padding: 17px 15px 13px 15px;
      }
    }
    h3 {
      font-size: 18px;
      font-weight: 700;
      border-bottom: 2px dashed var(--gray-bg-01);
      padding: 22px 0px 17px;
      margin: 0 0 20px;
      color: var(--black);
      @media screen and (max-width: 768px) {
        padding: 15px 0;
      }
    }
    a {
      color: var(--rmeisai-primary);
      &:hover {
        color: var(--rmeisai-cta);
      }
    }
    .news-contact {
      font-size: 14px;
      line-height: 1.4;
      width: 100%;
      border-radius: 10px;
      padding: 25px 30px 15px 30px;
      display: block;
      background-color: var(--gray-bg-02);
      margin-bottom: 0;
      @media screen and (max-width: 768px) {
        padding: 12.5px 15px 7.5px 15px;
        border-radius: 5px;
      }
      small {
        font-size: 12px;
      }
      h2 {
        margin-bottom: 20px;
        padding: 10px 10px 10px 0;
        border-left: 0;
        border-bottom: 1.5px solid var(--rmeisai-primary);
        color: var(--rmeisai-primary);
        font-size: 128.57%;
        &:first-child {
          margin-top: 0;
        }
      }
      .news-table tr {
        color: var(--black);
        font-weight: 500;
        td {
          border-bottom: 1px solid #f1f4f6;
          vertical-align: top;
          font-weight: 500;
          &:first-child {
            @media screen and (max-width: 768px) {
              min-width: 70px;
            }
          }
        }
        th {
          border-bottom: 1px solid #f1f4f6;
          vertical-align: top;
          font-weight: 500;
        }
        b {
          display: block;
          margin-bottom: 10px;
          font-weight: 700;
          @media screen and (max-width: 768px) {
            margin-bottom: 5px;
          }
        }
        a:hover {
          color: var(--rmeisai-cta);
        }
      }
    }
    .news-frame-line--gray {
      border-color: var(--gray-bg-01);
      padding: 20px;
      @media screen and (max-width: 768px) {
        padding: 10px 15px 10px 25px;
      }
      .text-bold {
        font-weight: 700;
        margin-bottom: 10px;
      }
    }
    .news-list_disc {
      line-height: 1.5;
      margin-bottom: 7px;
      list-style: disc;
      padding-left: 1em;
      li {
        list-style-type: disc;
        margin-bottom: 5px;
      }
    }
    .news-list li {
      @media screen and (max-width: 768px) {
        font-size: 0.9rem;
      }
      &::marker {
        color: var(--rmeisai-primary);
      }
    }
    .news-frame__table {
      width: 100%;
      margin-bottom: 60px;
      @media screen and (max-width: 768px) {
        margin-bottom: 30px;
      }
    }
    .news-frame__table._table-2 {
      margin-bottom: 30px;
    }
    .news-flex .flex-img:last-child {
      margin-right: 0;
    }
    .news-flex .flex-img:nth-child(2n) {
      margin-right: 0;
    }
    .news-flex .flex-img img {
      width: 100%;
      height: auto;
    }
    .news-flex .flex-img .width--150 {
      width: 150px;
    }
    .news-flex .flex-txt p {
      line-height: 1.6;
    }
    table.table-type02 tr th,
    table.table-type02 tr td {
      vertical-align: top;
    }
  }
}

/*ページトップボタン */

.p__news-scltop {
  text-decoration: none;
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background-color: rgba(38, 125, 0, 0.8);
  position: fixed;
  z-index: 1000;
  bottom: -60px;
  right: 30px;
  transition: all ease .3s;
  @media screen and (max-width: 768px) {
    right: 10px;
  }
}

.p__news-scltop_inner {
  display: block;
  width: 50px;
  height: 50px;
  position: relative;
  width: 100%;
  &:after {
    position: absolute;
    z-index: 1;
    display: block;
    content: "";
    width: 12px;
    height: 12px;
    top: 50%;
    left: 50%;
    bottom: auto;
    margin: auto;
    transform: translateY(-30%) translateX(-50%) rotate(-45deg);
    transition: all ease .3s;
    border-top: 2px solid var(--white);
    border-right: 2px solid var(--white);
  }
}

.p__news-scltop.show_feature_floater {
  bottom: 30px;
  @media screen and (max-width: 768px) {
    bottom: 75px;
    right: 10px;
  }
}

.p__news-scltop {
  display: none;
}

.o-m__rseries {
  .o-c__heading-h2 {
    color: var(--black);
  }
  .o-c__heading-lead {
    text-align: center;
    @media screen and (max-width: 768px) {
      text-align: left;
    }
  }
}
