@charset "UTF-8";

.p-remico {
  --remico-pale: color-mix(in srgb, var(--color-main) 20%, var(--color-white));
  padding-bottom: 140px;
}

.p-remico-sp-break {
  display: none;
}

/* XD の位置：「Concept」から見出しまでを詰め、見出し・本文を上げる（区切り線の位置は変えない） */
.p-remico-concept {
  width: 683px;
  margin: 42px auto 0;
  border-bottom: 1px solid var(--color-main);
  padding-bottom: 41px;
}

.p-remico-concept__en {
  color: var(--color-main);
  font-size: var(--fs-md);
  line-height: 24px;
  text-align: center;
}

.p-remico-concept h2 {
  margin-top: 3px;
  font-size: 2.8rem;
  font-weight: 500;
  line-height: 46px;
  text-align: center;
}

.p-remico-concept__text {
  margin-top: 31px;
  font-size: var(--fs-md);
  line-height: 30px;
}

.p-remico-section {
  margin-top: 96px;
}

.p-remico-section__photo {
  position: relative;
}

.p-remico-section__photo picture {
  display: block;
}

.p-remico-section__photo img {
  display: block;
  width: 412px;
  height: 548px;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.p-remico-section__number {
  top: -18px;
  border-radius: var(--radius-md);
  font-size: 4.4rem;
}

.p-remico-section__photo figcaption {
  margin-top: var(--space-xs);
  font-size: 1.3rem;
  line-height: 24px;
  text-align: right;
}

/* XD：小見出しは 30px に。下の大見出しの位置は変えず、小見出しの基準線を 4px 上げる */
.p-remico-section__label {
  margin: -11px 0 10px;
  font-size: 3rem;
  line-height: 45px;
  color: var(--color-main);
}

.p-remico-section__body h2 {
  font-size: 2.8rem;
  font-weight: 400;
  line-height: 44px;
}

.p-remico-section__text {
  margin-top: 28px;
  font-size: var(--fs-md);
  line-height: 26px;
}

.p-remico-section__features-title,
.p-remico-products__heading {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 24px;
}

.p-remico-section__features-title {
  margin-top: 34px;
  color: var(--color-main);
}

.p-remico-section__features-title::after,
.p-remico-products__heading::after {
  flex: 1;
  border-top: 1px solid var(--color-main);
  content: "";
}

.p-remico-section__features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 17px;
  list-style: none;
}

.p-remico-section__features li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 108px;
  border-radius: var(--radius-md);
  padding: var(--space-xs) var(--space-3xs);
  background: var(--remico-pale);
  text-align: center;
}

.p-remico-section__features li > span {
  font-size: 1.2rem;
  line-height: 18px;
}

.p-remico-section__features strong {
  color: var(--color-main);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 26px;
}

.p-remico-section__features .p-remico-section__feature-small {
  font-size: 1.5rem;
}

.p-remico-section__footnote {
  margin-top: var(--space-md);
  font-size: 1.2rem;
  line-height: 24px;
}

.p-remico-products {
  margin-top: 54px;
  color: var(--color-main);
}

.p-remico-products__list {
  display: grid;
  grid-template-columns: repeat(3, 310px);
  gap: 22px 25px;
  margin-top: var(--space-md);
  list-style: none;
}

.p-remico-products__list li {
  position: relative;
  display: block;
  min-height: 228px;
  font-size: var(--fs-md);
  font-weight: 500;
  line-height: 24px;
  color: var(--color-text);
}

.p-remico-products__list img {
  display: block;
  width: 310px;
  height: 206px;
  margin-bottom: var(--space-sm);
  border-radius: var(--radius-md);
  object-fit: cover;
}

.p-remico-products__link {
  display: block;
}

.p-remico-products__name {
  display: block;
}

.p-remico-products__button,
.p-remico-message__button {
  height: 50px;
  padding: var(--space-xs) var(--space-sm);
  line-height: 24px;
}

/* XD の位置：製品の段からボタンまでを 46px あけ、下の枠はボタンから 40px（枠の位置は変えない） */
.p-remico-products__button {
  display: flex;
  width: 290px;
  margin: 46px 0 0 auto;
}

.p-remico-note {
  margin-top: 40px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  padding: 26px 36px var(--space-md);
  font-size: 1.3rem;
  line-height: 24px;
}

.p-remico-note__title {
  display: flex;
  align-items: center;
  gap: var(--space-3xs);
  margin-bottom: 20px;
  font-weight: 500;
}

.p-remico-note__badge {
  border-radius: 13px;
  padding: 0 14px;
  background: var(--color-main);
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 26px;
}

.p-remico-section--2 {
  margin-top: 148px;
}

.p-remico-section--2 .p-remico-products__button {
  margin-top: 52px;
}

.p-remico-section--2 .p-remico-note {
  margin-top: var(--space-lg);
  padding-block: 26px 30px;
}

.p-remico-section--3 {
  margin-top: 148px;
}

.p-remico-section--4 {
  margin-top: 170px;
}

.p-remico-section--4 .p-remico-products {
  margin-top: 58px;
}

.p-remico-message {
  --corporate-texture: url("../img/corporate/remico-message-texture.webp");
  margin-top: 172px;
  padding: 118px 0 var(--space-3xl);
  text-align: center;
  color: var(--color-white);
}

.p-remico-message__en {
  color: inherit;
  font-size: var(--fs-md);
  line-height: 24px;
}

.p-remico-message h2 {
  margin-top: 14px;
  font-size: 3.4rem;
  font-weight: 400;
  line-height: 50px;
}

.p-remico-message__text {
  margin-top: var(--space-lg);
  font-size: 1.6rem;
  line-height: 34px;
}

.p-remico-message__lead {
  margin-top: var(--space-md);
  color: inherit;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 34px;
}

.p-remico-message__button {
  --btn-color: var(--color-dark);
  position: relative;
  display: flex;
  justify-content: center;
  width: 400px;
  height: 64px;
  margin: 44px auto 0;
  border-color: var(--color-white);
  background-color: var(--color-white);
  font-weight: 500;
}

.p-remico-message__button .c-icon-arrow {
  position: absolute;
  right: 24px;
}

@media (width <= 767px) {
  .p-remico-page .p-remico {
    --corporate-hero-photo-top: 252px;
    --corporate-hero-background-bottom: 302px;
    --corporate-hero-height: 773px;
    --corporate-anchor-columns: minmax(0, 1fr);
    padding-bottom: 80px;
  }

  .p-remico-sp-break {
    display: block;
  }

  .p-remico-pc-break {
    display: none;
  }

  .p-remico-concept {
    width: calc(100% - 48px);
    margin: 0 auto;
    padding-bottom: 30px;
  }

  .p-remico-concept__en {
    font-size: 1.4rem;
    line-height: 20px;
    text-align: left;
  }

  .p-remico-concept h2 {
    margin-top: var(--space-3xs);
    font-size: 2.3rem;
    line-height: 36px;
    text-align: left;
  }

  .p-remico-concept__text {
    margin-top: 18px;
    font-size: 1.4rem;
    line-height: 26px;
  }

  .p-remico-section {
    margin-top: 74px;
  }

  .p-remico-section__body {
    margin-top: 28px;
  }

  .p-remico-section__photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 345 / 240;
    border-radius: 0;
  }

  .p-remico-section__number {
    border-radius: 8px;
    line-height: 40px;
  }

  .p-remico-section__photo figcaption {
    margin-top: 6px;
    font-size: 1.1rem;
    line-height: 18px;
  }

  /* XD：小見出しは 22px に。小見出しと下の大見出しの基準線の位置は変えない */
  .p-remico-section__label {
    margin: -7px 0 calc(var(--space-3xs) - 2px);
    font-size: 2.2rem;
    line-height: 33px;
  }

  .p-remico-section__body h2 {
    font-size: 2.1rem;
    line-height: 33px;
  }

  .p-remico-section__text {
    margin-top: 14px;
    font-size: 1.4rem;
    line-height: 25px;
  }

  .p-remico-section__features-title,
  .p-remico-products__heading {
    gap: var(--space-2xs);
    font-size: 1.4rem;
    line-height: 24px;
  }

  .p-remico-section__features-title {
    margin-top: var(--space-md);
  }

  .p-remico-section__features {
    gap: var(--space-2xs);
    margin-top: 10px;
  }

  .p-remico-section__features li {
    align-items: stretch;
    justify-content: flex-start;
    gap: var(--space-2xs);
    min-height: 100px;
    padding: 10px var(--space-2xs);
    text-align: left;
  }

  .p-remico-section__features li > span {
    font-size: 1.1rem;
    line-height: 16px;
    overflow-wrap: anywhere;
  }

  .p-remico-section__features strong,
  .p-remico-section__features .p-remico-section__feature-small {
    font-size: 1.3rem;
    line-height: 19px;
    overflow-wrap: anywhere;
  }

  .p-remico-section__footnote {
    margin-top: var(--space-xs);
    color: #6e6e6e;
    font-size: 1.1rem;
    line-height: 19px;
  }

  .p-remico-products {
    margin-top: 33px;
  }

  .p-remico-products__list {
    --remico-products-column-gap: 15px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px var(--remico-products-column-gap);
    margin-top: 13px;
  }

  .p-remico-products__list li {
    min-height: 138px;
    font-size: 1.2rem;
    line-height: 20px;
  }

  .p-remico-products__list img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    margin-bottom: var(--space-2xs);
    border-radius: 0;
  }

  /* XD では製品名を1行のまま組み、長い名前（インターロッキングストレート）は写真の右端を越えて列の間まで使っている */
  .p-remico-products__name {
    margin-right: calc(-1 * var(--remico-products-column-gap));
    padding-left: 2px;
  }

  .p-remico-products__button {
    width: 100%;
    height: 48px;
    margin-top: var(--space-lg);
    padding: var(--space-xs) 18px;
    font-size: 1.4rem;
    line-height: 22px;
  }

  /* XD の枠は文字の下に 39px の余白がある（高さ 219px）。2つ目の欄は別に上書きしている */
  .p-remico-note {
    margin-top: var(--space-md);
    padding: var(--space-sm) var(--space-sm) 39px;
    font-size: 1.2rem;
    line-height: 21px;
  }

  .p-remico-note__title {
    gap: var(--space-2xs);
    margin-bottom: 14px;
    font-size: 1.3rem;
    line-height: 24px;
  }

  .p-remico-note__badge {
    flex: none;
    padding: 0 var(--space-xs);
    font-size: 1.2rem;
    line-height: 24px;
  }

  .p-remico-section--2,
  .p-remico-section--3 {
    margin-top: 94px;
  }

  .p-remico-section--2 {
    margin-top: 95px;
  }

  .p-remico-section--2 .p-remico-section__body,
  .p-remico-section--4 .p-remico-section__body {
    margin-top: var(--space-md);
  }

  .p-remico-section--2 .p-remico-products__button {
    margin-top: 22px;
  }

  .p-remico-section--2 .p-remico-note {
    margin-top: var(--space-md);
    padding-block: 18px;
  }

  .p-remico-section--4 {
    margin-top: 106px;
  }

  .p-remico-section--3 .p-remico-products,
  .p-remico-section--4 .p-remico-products {
    margin-top: 23px;
  }

  .p-remico-message {
    --corporate-texture: url("../img/corporate/remico-message-texture-sp.webp");
    margin-top: 130px;
    padding: 42px 0 81px;
  }

  .p-remico-message__en {
    font-size: 1.4rem;
    line-height: 20px;
  }

  .p-remico-message h2 {
    margin-top: var(--space-2xs);
    font-size: 2.6rem;
    line-height: 38px;
  }

  .p-remico-message__text {
    margin-top: 15px;
    font-size: 1.4rem;
    line-height: 27px;
    text-align: left;
  }

  .p-remico-message__text br {
    display: none;
  }

  .p-remico-message__lead {
    margin-top: var(--space-sm);
    font-size: 1.8rem;
    line-height: 29px;
    text-align: left;
  }

  .p-remico-message__button {
    width: 100%;
    height: auto;
    min-height: 56px;
    margin-top: 30px;
    padding: 14px 36px;
    font-size: 1.4rem;
    line-height: 24px;
    text-align: center;
  }

  .p-remico-message__button .c-icon-arrow {
    right: 18px;
  }
}
