@charset "UTF-8";

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

.o-m__panel-list-linkdata_column {
  .o-m__panel-list-linkdata_box {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--black);
    dt {
      color: var(--rmeisai-primary);
    }
    .o-m__panel-list-listdata_text {
      font-size: 14px;
      line-height: 1.7;
    }
    /* 詳細ボタンの位置ぞろえ */
    .o-c__btn-text {
      margin-top: auto;
    }
  }
  /* 詳細ボタンをアンカーリンク仕様に変更 */
  .o-c__btn-text_icon_arrow_bg {
    transform: translateY(-50%) rotate(90deg);
  }
  .o-m__panel-list-linkdata_box._linkbox:hover .o-c__btn-text_icon_arrow_bg {
    @media screen and (min-width: 769px) {
      left: 0;
      top: calc(50% + 3px);
    }
  }
}

/* サイズ調整 */
.o-m__panel-list-linkdata_column._column_3 ._column_data {
  @media screen and (max-width: 768px) {
    flex-basis: 48.5%;
  }
  @media screen and (max-width: 576px) {
    flex-basis: 100%;
    margin-bottom: 30px;
  }
}

/* フロー図レイアウト */
.o-m__panel-list-linkdata_column._column_3._flow {
  @media screen and (min-width: 577px) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

.o-m__panel-list-linkdata_column._column_3._flow ._column_data {
  position: relative;

  &:not(:last-child)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;

    @media screen and (min-width: 577px) {
      top: 50%;
      right: -22px; /* gap30px÷2 + 三角幅14px÷2 */
      transform: translateY(-50%);
      border-top: 10px solid transparent;
      border-bottom: 10px solid transparent;
      border-left: 14px solid var(--rmeisai-primary);
    }

    @media screen and (max-width: 576px) {
      bottom: -22px;
      left: 50%;
      transform: translateX(-50%);
      border-left: 10px solid transparent;
      border-right: 10px solid transparent;
      border-top: 14px solid var(--rmeisai-primary);
    }
  }
}

/* 機能モーダルリスト */
.o-m__function-modallist-content_list{
  margin: 30px 0 0;
}
.o-m__function-modallist-content_box {
  background: var(--rmeisai-bg-sub-03);
  transition: 200ms ease all;
  .f__common-bgcolor_blue & {
    background: var(--white);
  }
}

/* ==========================================================================
   p-function.css
   ========================================================================== */

.p__function-fv .o-c__heading-h1 {
  font-size: 36px;
  line-height: 1.4;
  font-weight: 700;
  position: relative;
  margin-bottom: 30px;
  @media screen and (max-width: 576px) {
    font-size: 25px;
  }
}
.p__function-fv .o-c__heading-lead {
  @media screen and (max-width: 576px) {
    padding-bottom: 0;
  }
}
.o-c__heading-h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--rmeisai-primary);
  text-align: center;
  margin: 70px 0 20px;
  @media screen and (max-width: 768px) {
    font-size: 20px;
    margin: 50px 0 20px;
  }
}

/* 動画カラム */
.p__function-pickup {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  @media screen and (max-width: 768px) {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--rmeisai-primary);
    @media screen and (max-width: 768px) {
      font-size: 20px;
    }
  }
  p {
    font-size: 16px;
    line-height: 1.7;
    margin: 15px 0 0;
    @media screen and (max-width: 768px) {
      font-size: 14px;
    }
    + p{
      margin: 5px 0 0;
    }
  }
}

/* あらゆる帳票を作成可能 */
.p__function-chohyo {
  display: flex;
  gap: 0 10px;
  justify-content: center;
  @media screen and (max-width: 768px) {
    flex-direction: column;
    align-items: center;
  }
}

.p__function-chohyo-content {
  padding: 19px 0 0;
  @media screen and (max-width: 768px) {
    order: 2;
  }
}

.p__function-chohyo-content__text {
  font-size: 18px;
  line-height: 1.6;
  @media screen and (max-width: 768px) {
    font-size: 14px;
  }
  .f__common-text_highlighter {
    font-weight: bold;
  }
}

.p__function-chohyo__image {
  width: 365px;
  @media screen and (max-width: 768px) {
    width: 295px;
  }
  img {
    width: 100%;
    height: auto;
  }
}

.p__function-chohyo .o-m__case-link {
  margin: 20px 0 0;
  @media screen and (max-width: 768px) {
    text-align: center;
  }
}

/* 機能2カラムパネル */
.p__function-panel {
  margin: 50px 0 0;
  display: grid;
  gap: 50px 30px;
  grid-template-columns: repeat(2, 1fr);
  @media screen and (max-width: 768px) {
    gap: 20px;
  }
  @media screen and (max-width: 576px) {
    grid-template-columns: 1fr;
  }
}
.p__function-panel-item {
  background: var(--rmeisai-bg-sub-03);
  border-radius: 10px;
  padding: 50px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 20px;
  position: relative;
  .f__common-bgcolor_blue & {
    background: var(--white);
  }
  @media screen and (max-width: 1024px) {
    padding: 50px 35px 60px;
  }
  @media screen and (max-width: 768px) {
    padding: 40px 20px 50px;
  }
  @media screen and (max-width: 576px) {
    padding: 30px 20px;
  }
}
.p__function-panel-item-title {
  font-size: 22px;
  text-align: center;
  font-weight: bold;
  color: var(--rmeisai-primary);
  display: grid;
  align-items: center;
  @media screen and (max-width: 768px) {
    font-size: 18px;
  }
  .p__function-panel-item-title__small {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
    @media screen and (max-width: 768px) {
      font-size: 12px;
    }
  }
}
.p__function-panel-item_image {
  max-width: 400px;
  margin: 0 auto;
  @media screen and (max-width: 576px) {
    width: 100%;
  }
  img {
    height: auto;
  }
}
.p__function-panel-item-detail {
  p {
    font-size: 16px;
    line-height: 1.7;
    @media screen and (max-width: 768px) {
      font-size: 14px;
    }
    + .o-c__list-check {
      margin: 10px 0 0;
    }
  }
  .o-c__btn-text {
    margin: 20px 0 0;
    @media screen and (max-width: 768px) {
      margin: 10px 0 0;
    }
  }
  .p__function-panel-item-detail__note {
    font-size: 10px;
    margin: 20px 0 0;
  }
}

.p__function-list-content {
  margin: 30px 0 0;
  + .p__function-list-content {
    margin: 70px 0 0;
  }
  .o-c__btn-text {
    margin: 10px 0 0;
  }
}
.p__function-list-content-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--rmeisai-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  @media screen and (max-width: 768px) {
    font-size: 20px;
    margin-bottom: 15px;
  }
}
.p__function-list-content-title__line {
  flex: 1;
  min-width: 40px;
  height: 1px;
  background-color: var(--rmeisai-primary);
}
.p__function-list-content__text {
  font-size: 18px;
  margin: 10px 0 0;
  @media screen and (max-width: 768px) {
    font-size: 14px;
  }
}

/* モーダル */
[id^="modal"]:checked ~ .o-m__function-modallist-modal_box {
  display: flex;
  @media screen and (max-width: 768px) {
    display: block;
  }
}

[id^="modal"]:checked ~ .o-m__function-modallist-modal_overlay {
  display: block;
}

