@charset "UTF-8";

/* ==========================================================================
   p-news.css
   ========================================================================== */

/* パンくず 一覧ページがまだない時 */

.o-m__breadcrumb-list_link:nth-of-type(2) {
  color: var(--black);
  font-weight: 500;
}

/* ========================================================================= */
/*ニュース一覧ページ独自のcss */
/*========================================================================== */

.o-c__heading-h1 {
  padding-bottom: 0;
  @media screen and (max-width: 576px) {
    font-size: 25px;
  }
}

.p__news {
  display: flex;
  justify-content: space-between;
  width: 1000px;
  margin: 0 auto;
  background-color: var(--white);
  @media screen and (max-width: 1024px) {
    width: 95%;
  }
  @media screen and (max-width: 768px) {
    width: 90%;
    flex-direction: column;
  }
}

.p__news-content {
  width: 690px;
  @media screen and (max-width: 1024px) {
    width: calc(100% - 280px);
  }
  @media screen and (max-width: 768px) {
    width: 100%;
    margin-bottom: 30px;
  }
}

.p__news-aside {
  width: 250px;
  @media screen and (max-width: 768px) {
    width: 83%;
    margin: 0 auto;
  }
  @media screen and (max-width: 576px) {
    width: 83%;
    max-width: 295px;
  }
}

.p__news-aside_year h2 {
  background-color: var(--rseikyu-primary);
  color: var(--white);
  display: grid;
  font-size: 18px;
  font-weight: 700;
  height: 50px;
  place-content: center;
  text-align: center;
  width: 100%;
}

.p__news-aside_year_list {
  padding: 15px;
  display: flex;
  flex-wrap: wrap;
  background-color: var(--gray-bg-02);
  li {
    width: 50%;
    text-align: center;
  }
  a {
    position: relative;
    color: var(--black);
    text-decoration: underline;
    transition: 0.3s;
    &::before {
      content: "";
      position: absolute;
      top: 5px;
      left: -10px;
      width: 0;
      height: 0;
      border-top: solid 4px transparent;
      border-right: solid 4px transparent;
      border-bottom: solid 4px transparent;
      border-left: solid 4px var(--gray-01);
    }
    &:hover {
      @media (hover: hover) {
        color: var(--rseikyu-primary);
        text-decoration: none;
      }
    }
    &:hover::before {
      @media (hover: hover) {
        border-left: solid 4px var(--rseikyu-primary);
      }
    }
  }
}

.p__news-aside_banner {
  margin-bottom: 40px;
}

.p__news-aside_banner_link {
  max-width: 250px;
  display: block;
  margin: 0 auto;
}

.p__news-list li {
  position: relative;
  margin: 30px auto;
  list-style: none;
  border: solid 1px var(--gray-bg-01);
  border-radius: 10px;
  background: var(--white);
  transition: 0.2s ease-in-out;
  overflow: hidden;
  cursor: pointer;
  @media screen and (max-width: 768px) {
    margin: 18px auto;
  }
  &:first-of-type {
    margin-top: 0;
  }
  &:hover {
    @media (hover: 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);
      cursor: pointer;
    }
  }
  a {
    display: block;
    padding: 20px;
    text-decoration: none;
    @media screen and (max-width: 768px) {
      padding: 10px;
    }
    &:hover::after {
      @media (hover: hover) {
        content: "";
        position: absolute;
        border: 3px solid var(--rseikyu-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;
      }
    }
  }
}

.p__news-list_content {
  display: flex;
  img {
    width: 260px;
    height: 150px;
    object-fit: cover;
    font-family: "object-fit: cover";
    border: 1px solid var(--gray-bg-01);
    @media screen and (max-width: 768px) {
      width: 80px;
      height: 80px;
    }
  }
}

.p__news-list_content_text {
  padding-left: 30px;
  @media screen and (max-width: 768px) {
    padding-left: 10px;
  }
  h3 {
    font-size: 145%;
    font-weight: bold;
    line-height: 1.4;
    color: var(--black);
    @media screen and (max-width: 768px) {
      font-size: 110%;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }
  }
  time {
    position: relative;
    padding-left: 20px;
    display: block;
    font-size: 95%;
    margin: 5px auto 10px;
    color: var(--gray-05);
    font-weight: normal;
    &::before {
      content: "";
      position: absolute;
      background-image: url(/rakurakucloud/seikyu/assets/image/icon/icon_writetime.svg);
      background-size: 100%;
      background-repeat: no-repeat;
      width: 15px;
      height: 15px;
      top: -2px;
      bottom: 0;
      left: 0;
      margin: auto 0;
    }
  }
}

.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(--rseikyu-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: var(--gray-05);
      font-size: 16px;
      @media screen and (max-width: 768px) {
        font-size: 14px;
      }
      &::after {
        content: "";
        position: absolute;
        background-image: url(/rakurakucloud/seikyu/assets/image/icon/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(--rseikyu-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(--rseikyu-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: 33.3333333333%;
  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(33.3333333333% + 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);
  }
}

/* ========================================================================= */
/*ニュース詳細ページ独自のcss */
/*========================================================================== */

.details .p__news-title {
  background-color: var(--rseikyu-bg-main);
  color: var(--white);
  text-align: center;
  height: 210px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.4;
  position: relative;
  overflow: hidden;
  @media screen and (max-width: 576px) {
    font-size: 20px;
    padding: 15px 20px;
    height: auto;
    text-align: left;
  }
  &::before {
    content: "";
    position: absolute;
    z-index: 10;
    top: 0;
    right: -126px;
    width: 330px;
    height: 330px;
    background-image: url(/rakurakucloud/seikyu/assets/image/figure/news_back_component.svg);
    background-size: cover;
    transform: rotate(180deg);
    z-index: 10;
    @media screen and (max-width: 576px) {
      bottom: auto;
      top: 0;
      right: -44px;
      width: 115px;
      height: 115px;
    }
  }
  &::after {
    content: "";
    position: absolute;
    z-index: 10;
    bottom: 0;
    left: -124px;
    width: 330px;
    height: 330px;
    background-image: url(/rakurakucloud/seikyu/assets/image/figure/news_back_component.svg);
    background-size: cover;
    z-index: 10;
    @media screen and (max-width: 576px) {
      display: none;
    }
  }
  span {
    position: relative;
    z-index: 20;
    max-width: 1000px;
    width: calc(100% - 20px);
    text-align: left;
    @media screen and (max-width: 576px) {
      text-align: left;
    }
  }
}

.details .p__news .news-container {
  p {
    font-size: 1rem;
    line-height: 2em;
    margin-bottom: 30px;
    @media screen and (max-width: 576px) {
      font-size: 0.9rem;
      line-height: 1.8em;
      margin-top: 1em;
      margin-bottom: 1em;
    }
  }
  small {
    font-size: 85.71%;
    margin-bottom: 30px;
    display: inline-block;
  }
  figure {
    margin-bottom: 32px;
    display: block;
  }
  img {
    height: auto;
    width: 100%;
    max-width: 670px;
    display: block;
    margin: 0 auto;
  }
  h2 {
    background-color: var(--gray-bg-02);
    font-size: 20px;
    font-weight: 700;
    border-left: 5px solid var(--rseikyu-primary);
    line-height: 1.4;
    padding: 32px 15px 30px 21px;
    margin: 0 0 30px;
    @media screen and (max-width: 768px) {
      padding: 17px 15px 13px 15px;
      margin-top: 36px;
    }
  }
  h3 {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px dashed var(--gray-bg-01);
    padding: 22px 0px 17px;
    margin: 0 0 30px;
    @media screen and (max-width: 768px) {
      padding: 15px 0;
    }
  }
  h4 {
    border-left: 5px solid var(--rseikyu-primary);
    background-color: var(--gray-bg-02);
    line-height: 1.5;
    margin-bottom: 15px;
    padding: 5px 0px 3px 7px;
    font-weight: 800;
    font-size: 16px;
    @media screen and (max-width: 768px) {
      padding: 15px 0;
    }
  }
  a {
    color: var(--link);
    &:hover {
      color: var(--rseikyu-cta);
    }
  }
  .news-frame__table {
    width: 100%;
    margin-bottom: 30px;
  }
  .news-frame__table--stripe {
    color: var(--black);
    a {
      text-decoration: none;
    }
  }
  .news-frame__table .news-table__th-2column,
  .news-frame__table .news-table__td-2column {
    border-color: var(--gray-bg-01);
    color: var(--black);
    padding: 14px 7px;
  }
  .news-frame__table .news-table__td-2column {
    width: 80%;
  }
  .news-frame__table .news-table__th-2column {
    width: 20%;
  }
  .news-frame__table.news-table tr td:nth-child(1) {
    @media screen and (max-width: 768px) {
      min-width: 70px;
    }
  }
  .news-frame__table th,
  .news-frame__table th {
    border-bottom: 1px solid var(--gray-bg-02);
    vertical-align: top;
    width: 80px;
  }
  .news-frame__table th,
  .news-frame__table td {
    border-bottom: 1px solid var(--gray-bg-02);
    vertical-align: top;
  }
  .news-list {
    padding-left: 1.5em;
    li {
      line-height: 1.5;
      margin-bottom: 7px;
      list-style: disc;
      font-size: 1rem;
      @media screen and (max-width: 768px) {
        font-size: 0.9rem;
      }
      &::marker {
        color: var(--rseikyu-primary);
      }
    }
    + h2 {
      margin-top: 30px;
    }
  }
  .news-list._ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
    padding-left: 1em;
    li {
      line-height: 1.5;
      margin-bottom: 7px;
      text-indent: -1.3em;
      list-style: none;
      padding-left: 1.3em;
      &::before {
        counter-increment: item;
        content: counter(item) ".";
        padding-right: 0.5em;
        font-weight: bold;
        color: var(--rseikyu-primary);
      }
    }
  }
  .news-contact {
    background-color: var(--gray-bg-02);
    margin-bottom: 0;
    padding: 25px 30px 15px 30px;
    border-radius: 10px;
    h2 {
      margin-bottom: 20px;
      padding: 10px 10px 10px 0;
      border-left: 0;
      border-bottom: 1.5px solid var(--rseikyu-primary);
      color: var(--rseikyu-primary);
      font-size: 128.57%;
      &:first-child {
        margin-top: 0;
      }
    }
    b {
      display: block;
      margin-bottom: 10px;
      font-weight: 700;
    }
    .news-table tr {
      color: var(--black);
      a:hover {
        color: var(--rseikyu-cta);
      }
    }
  }
  .news-frame-line--gray {
    border: var(--gray-bg-01) 1px solid;
    padding: 20px 40px;
    margin-bottom: 30px;
    @media screen and (max-width: 768px) {
      padding: 10px 15px 10px 25px;
    }
    .text-bold {
      font-weight: 700;
      margin-bottom: 10px;
    }
  }
  .text-note {
    font-size: 10px;
    line-height: 1.4;
  }
}

.details .p__news .news-detail {
  border-bottom: 1px solid var(--gray-07);
  margin-bottom: 30px;
}

.details .p__news {
  .news-detail__box {
    margin-bottom: 20px;
  }
  .news-detail__date {
    font-size: 1rem;
    line-height: 2em;
    @media screen and (max-width: 576px) {
      font-size: 12px;
      line-height: 1.8;
    }
  }
  .news-detail__tag {
    display: inline-block;
    min-width: 140px;
    background-color: var(--gray-09);
    font-size: 14px;
    line-height: 24px;
    text-align: center;
    padding: 1px 10px;
    text-decoration: none;
    border: none;
    color: var(--black);
    &:hover {
      color: var(--black);
    }
  }
  .news-detail__tag:hover .icon-tag--gray {
    display: none;
  }
  .news-detail__tag .icon-tag--gray {
    display: none;
  }
}
