@charset "UTF-8";

/* ====================================
	共通スタイル
==================================== */

/* セクション */
.section {
  padding-bottom: 6rem;
}

.section-title {
  padding-top: 0.8em;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.6;
  border-top: 1px solid var(--light-gray);
  position: relative;
}

.section-title::before {
  content: '';
  display: inline-block;
  inline-size: 90px;
  block-size: 5px;
  background: linear-gradient(90deg, var(--sharp-red) 0%, var(--sharp-red) 80px, var(--base-color) 80px, var(--base-color) 100%);
  position: absolute;
  left: 0;
  top: 0;
  transform: translateY(-50%);
}

.lead-text-wrap {
  border-left: 8px solid var(--sharp-red);
}

.lead-text {
  padding: 2rem 0;
  margin: 6rem 0 0 1.4rem;
  border-top: 1px solid #d9d9d9;
  border-bottom: 1px solid #d9d9d9;
  font-size: 1.8rem;
  font-weight: 700;
}

.caption__list {
  margin-top: 4rem;
}

/* 保守プランの内容 */
.about.section {
  margin-top: 4rem;
}

.about__text {
  font-size: 1.4rem;
  margin-top: 2rem;
}

/* 保守サービスリスト */
.plan__list {
  margin-top: 3rem;
}

.plan__item {
  background: #fff;
  border: 1px solid #d9d9d9;
  padding: 1.6rem 5% 1.3rem;
  block-size: 100%;
}

.plan__title {
  background: #f5f5f5;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  padding: 0.3em 0;
}

.plan__text {
  font-size: 1.4rem;
  margin-top: 1.6rem;
}

/* サービス内容 */
.service__item {
  margin-top: 3rem;
}

.service__item:first-child {
  margin-top: 0;
}

.service__title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
}

.service__title::before {
  content: '';
  display: block;
  width: 5px;
  height: 2.5rem;
  background: #cd141c;
  flex-shrink: 0;
}

.service__title sup {
  font-size: 1.2rem;
}

.service__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.service__list li {
  display: grid;
  place-items: center;
  text-align: center;
  background: #fff;
  border: solid 2px var(--light-gray);
  font-size: 1.4rem;
  font-weight: 700;
  padding: 0.5rem;
  min-block-size: 50px;
}

/* 点検作業の一例 */
.maintenance__list {
  margin-top: 3rem;

  figcaption {
    font-size: 1.4rem;
    text-align: center;
    margin-top: 0.6em;
  }
}

/* 注釈エリア */
.other {
  hr {
    padding-top: 4rem;
    border-top-color: #d9d9d9;
  }

  .caption__list {
    margin: 0;

    a {
      text-decoration: underline;
      color: #116aff;

      &:hover {
        text-decoration: none;
      }
    }
  }

  .caption__list:nth-child(2 of ol) {
    padding-block: 2rem 4rem;
  }

  .caption__list:nth-child(3 of ol) li:last-child {
    margin-top: 1.5em;
  }
}

/* ====================================
	768px未満専用スタイル
==================================== */
@media screen and (width <768px) {

  /* 保守サービスリスト */
  .plan__list>li:not(:first-child) {
    margin-top: 2.4rem;
  }

  /* 点検作業の一例 */
  .maintenance__list>li:not(:first-child) {
    margin-top: 2.4rem;
  }
}

/* ====================================
	768px以上専用スタイル
==================================== */
@media print,
screen and (768px <=width) {
  article {
    padding-top: 6rem;
  }

  /* セクション */
  .section {
    padding-bottom: 10rem;
  }

  .section-title {
    padding-top: 2.2rem;
    font-size: 3rem;
  }

  .lead-text-wrap {
    border-left-width: 10px;
  }

  .lead-text {
    padding: 3.4rem 0;
    font-size: 2.4rem;
    margin: 8rem 0 0 2rem;
  }

  .caption__list {
    margin-top: 6rem;
  }

  /* 保守プランの内容 */
  .about.section {
    margin-top: 6rem;
  }

  .about__text {
    font-size: 1.6rem;
    margin-top: 3rem;
  }

  /* 保守サービスリスト */
  .plan__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 2.5%;
  }

  .plan__item {
    padding: 2rem 5% 1.3rem;
  }

  .plan__title {
    font-size: 1.6rem;
  }

  .plan__text {
    font-size: 1.6rem;
    margin-top: 2rem;
  }

  /* サービス内容 */
  .service__item {
    margin-top: 5rem;
  }

  .service__title {
    font-size: 2rem;
  }

  .service__title sup {
    font-size: 1.3rem;
  }

  .service__list {
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
  }

  .service__list li {
    font-size: 1.6rem;
    min-block-size: 60px;
  }

  /* 点検作業の一例 */
  .maintenance__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem 2.3%;

    figcaption {
      font-size: 1.6rem;
    }
  }

  /* 注釈エリア */
  .other .caption__list:nth-child(2 of ol) {
    padding-block: 2rem 6rem;
  }
}

/* ====================================
	768px以上1080px未満専用スタイル
==================================== */
@media print,
screen and (768px <=width <1080px) {

  .service__list {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 点検作業の一例 */
  .maintenance__list {
    grid-template-columns: repeat(2, 1fr);
  }
}