/* ==========================================
   system-r : システム紹介ページ
   主要色  RGB(204, 0, 0)  = #CC0000
   グレー RGB(217, 217, 217) = #D9D9D9
   STEP色 RGB(250, 0, 15) = #FA000F
   ========================================== */

:root {
  --system-r-red: #cc0000;
  --system-r-gray: #d9d9d9;
  --system-r-step-red: #fa000f;
  --system-r-ink: #303030;
  --system-r-stroke: #aaaaaa;
}

body {
  margin: 0;
  background: #fff;
}

.pconly {
  display: block;
}

.sponly {
  display: none;
}

.system-r,
.system-r * {
  box-sizing: border-box;
}

.system-r {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 0 108px;
  font-family: "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  color: var(--system-r-ink);
  -webkit-font-smoothing: antialiased;
}

.system-r h2,
.system-r h3,
.system-r p {
  margin: 0;
}

.system-r__heading {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.085em;
  text-align: center;
}

.system-r__paragraph {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-align: center;
}

/* 上部のメインビジュアル */
.system-r__hero {
  height: 200px;
  margin: 0 auto;
  margin-bottom: 100px;
  display: grid;
  grid-template-columns: 374fr 211fr;
}

.system-r__hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  gap: 36px;
  background: var(--system-r-gray);
}

.system-r__logo {
  display: block;
  width: 80%;
  object-fit: contain;
}

.system-r__cta {
  display: inline-flex;
  min-height: 35px;
  min-width: 230px;
  padding: 16px 40px;
  align-items: center;
  justify-content: center;
  background: var(--system-r-red);
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.015em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.system-r__cta:hover,
.system-r__cta:focus-visible {
  background: #a90000;
}

.system-r__cta:focus-visible {
  outline: 3px solid var(--system-r-step-red);
  outline-offset: 3px;
}

.system-r__hero-right {
  min-width: 0;
  overflow: hidden;
  background: #fff;
}

.system-r__hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 課題から解決への流れ */
.system-r__problems {
  margin-top: 60px;
}

.system-r__problem-list {
  display: grid;
  width: 80%;
  margin: 0 auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  margin-top: 8px;
}

.system-r__problem {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  padding: 12px;
  border-radius: 7px;
  background: var(--system-r-gray);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.system-r__down-arrow {
  width: 120px;
  height: 62px;
  margin: 13px auto 0;
  background: var(--system-r-gray);
  clip-path: polygon(15% 0, 85% 0, 85% 58%, 100% 58%, 50% 100%, 0 58%, 15% 58%);
}

.system-r__solution {
  width: max-content;
  max-width: 100%;
  margin: -2px auto 0;
  text-align: left;
}

.system-r__solution-title {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 0.065em;
  line-height: 1.5;
}

.system-r__solution-note {
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.system-r__about {
  margin-top: 60px;
}

.system-r__about .system-r__paragraph {
  margin-top: 5px;
}

.system-r__image-box {
  display: block;
  overflow: hidden;
  background: #fff;
}

.system-r__image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.system-r__image-box--about {
  width: min(80%, 662px);
  aspect-ratio: 662 / 182;
  margin: 35px auto 0;
}

/* 特徴: 3枚のカードと矢印 */
.system-r__features {
  margin-top: 60px;
}

.system-r__feature-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 13px;
}

.system-r__feature-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--system-r-stroke);
  border-radius: 7px;
  background: #fff;
}

.system-r__feature-head {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 84px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--system-r-stroke);
  border-radius: 6px;
  background: var(--system-r-gray);
}

.system-r__step-badge {
  display: flex;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  color: var(--system-r-step-red);
  font-family: inherit;
  line-height: 1.08;
}

.system-r__step-badge span {
  font-size: 10px;
  font-weight: 800;
}

.system-r__step-badge strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--system-r-step-red);
}

.system-r__feature-title {
  min-width: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.025em;
}

.system-r__feature-detail {
  align-self: center;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.015em;
}

.system-r__feature-card:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 68px;
  right: -30px;
  width: 24px;
  height: 36px;
  background: #4D4D4D;
  clip-path: polygon(0 0, 49% 0, 100% 50%, 49% 100%, 0 100%, 50% 50%);
  content: "";
}

/* パターン */
.system-r__patterns {
  margin-top: 60px;
}

.system-r__image-box--patterns {
  aspect-ratio: 562 / 228;
  margin: 12px auto 0;
}

.system-r__paragraph--patterns {
  margin-top: 6px !important;
}

/* 工程 */
.system-r__process {
  margin-top: 60px;
}

.system-r__image-box--process {
  width: 100%;
  aspect-ratio: 684 / 168;
  margin: 12px auto 0;
}

/* ステップ */
.system-r__steps {
  margin-top: 60px;
}

.system-r__steps .system-r__paragraph {
  margin-top: 6px;
}

.system-r__steps-list {
  display: grid;
  grid-template-columns: repeat(4, 166px);
  gap: 19px;
  justify-content: center;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
}

.system-r__step-item {
  position: relative;
  display: flex;
  height: 80px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid #4D4D4D;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.55;
  text-align: center;
  white-space: nowrap;
}

.system-r__step-item strong {
  font-size: 11px;
  font-weight: 800;
}

.system-r__step-item:not(:last-child)::after {
  position: absolute;
  top: 27px;
  right: -17px;
  width: 12px;
  height: 23px;
  background: #4D4D4D;
  clip-path: polygon(0 0, 49% 0, 100% 50%, 49% 100%, 0 100%, 50% 50%);
  content: "";
}

/* タブレット */
@media (max-width: 700px) {
  .system-r {
    padding-top: 60px;
  }

  .system-r__heading {
    font-size: clamp(21px, 3.7vw, 26px);
  }

  .system-r__problem-list,
  .system-r__feature-list {
    gap: 15px;
  }

  .system-r__feature-head {
    gap: 8px;
    padding-right: 6px;
    padding-left: 9px;
  }

  .system-r__feature-detail {
    padding-left: 15px;
    font-size: 10px;
  }

  .system-r__feature-card:not(:last-child)::after {
    right: -16px;
    width: 15px;
  }
}

/* スマートフォン */
@media (max-width: 560px) {

  .pconly {
    display: none;
  }

  .sponly {
    display: block;
  }


  .system-r {
    width: calc(100% - 30px);
    padding: 32px 0 70px;
  }

  .system-r__hero {
    height: auto;
    grid-template-columns: 1fr;
    margin-bottom: 40px;
  }

  .system-r__hero-left {
    padding: 26px 18px;
    order: 1;
  }

  .system-r__hero-right {
    aspect-ratio: 16 / 9;
  }

  .system-r__cta {
    max-width: 100%;
    white-space: normal;
  }

  .system-r__problems {
    margin-top: 28px;
  }

  .system-r__heading {
    font-size: clamp(20px, 5.5vw, 25px);
    letter-spacing: 0.025em;
  }

  .system-r__problem-list {
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 330px;
    margin: 13px auto 0;
  }

  .system-r__problem {
    min-height: 58px;
  }

  .system-r__down-arrow {
    width: 90px;
    height: 48px;
    margin-top: 16px;
  }

  .system-r__solution {
    width: 100%;
    text-align: center;
  }

  .system-r__solution-title {
    font-size: clamp(18px, 5vw, 24px);
    letter-spacing: 0.02em;
  }

  .system-r__about,
  .system-r__features,
  .system-r__patterns,
  .system-r__process,
  .system-r__steps {
    margin-top: 40px;
  }

  .system-r__pc-break {
    display: none;
  }

  .system-r__paragraph {
    font-size: 12px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .system-r__image-box--about {
    margin-top: 25px;
    width: 100%;
  }

  .system-r__feature-list {
    max-width: 330px;
    grid-template-columns: 1fr;
    gap: 42px;
    margin: 18px auto 0;
  }

  .system-r__feature-card {
    height: auto;
    min-height: 162px;
  }

  .system-r__feature-head {
    gap: 16px;
    padding-left: 18px;
  }

  .system-r__feature-detail {
    padding-left: 34px;
    font-size: 14px;
  }

  .system-r__feature-card:not(:last-child)::after {
    top: auto;
    right: calc(50% - 12px);
    bottom: -35px;
    width: 24px;
    height: 28px;
    transform: rotate(90deg);
  }

  .system-r__image-box--patterns {
    margin-top: 18px;
  }

  .system-r__image-box--process {
    margin-top: 18px;
  }

  .system-r__steps-list {
    grid-template-columns: minmax(0, 280px);
    gap: 30px;
    margin-top: 24px;
  }

  .system-r__step-item:not(:last-child)::after {
    top: auto;
    right: calc(50% - 8px);
    bottom: -24px;
    transform: rotate(90deg);
  }
}