/* トップ専用: 共通指定 / スマホ〜767px / タブレット768〜1023px / PC1024px〜。 */

.fw.p-home .p-message {
  background-color: #fff;
  padding: 80px 0;
}

.fw.p-home .p-message__lead {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 70px;
}

.fw.p-home .p-message__text {
  margin-top: 32px;
  font-size: var(--text-m);
  line-height: var(--line-height);
}

.fw.p-home .p-message__link {
  margin-top: 50px;
}

.fw.p-home .p-message__link a {
  display: inline-flex;
  align-items: center;
  font-size: var(--text-m);
  gap: 16px;
  font-weight: 600;
  transition: all .1s ease;
}

.fw.p-home .p-message__link a>svg>circle {
  transition: all .1s ease;
}

.fw.p-home .p-message__link a:hover {
  color: var(--color_main);
  text-decoration: underline;
}

.fw.p-home .p-message__link a:hover>svg>circle {
  fill: var(--color_main);
}

.fw.p-home .p-message__image {
  padding-top: 30px;
  position: relative;
}

.fw.p-home .p-message__image img {
  max-width: 200px;
  display: block;
  margin-left: auto;
  margin-bottom: 9px;
  margin-right: 0;
}

.fw.p-home .p-message__image svg {
  position: absolute;
  right: 0;
  top: 210px;
}

.fw.p-home .p-message__image figcaption {
  margin-top: -10px;
}

.fw.p-home .p-message__image figcaption>span {
  display: block;
}

.fw.p-home .p-message__image figcaption>span.pre {
  font-weight: 600;
  font-size: var(--text-m);
}

.fw.p-home .p-message__image figcaption>span.main {
  font-weight: 600;
  font-size: var(--text-xl);
}

.fw.p-home .p-message__image figcaption>span.description {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.75;
}

.fw.p-home .p-message .p-message-flex {
  display: flex;
  flex-direction: row;
  gap: 80px;
}

.fw.p-home .p-message .p-message-flex__left {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.fw.p-home .p-message .p-message-flex__right {
  flex: 0 0 400px;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

@media screen and (max-width: 767px) {
  .fw.p-home .p-message {
    padding: 40px 0;
  }

  .fw.p-home .p-message__lead {
    font-size: var(--text-xl-sp);
    margin-bottom: 50px;
  }

  .fw.p-home .p-message__text {
    margin-top: 24px;
    font-size: var(--text-m-sp);
  }

  .fw.p-home .p-message__link {
    margin-top: 20px;
  }

  .fw.p-home .p-message__link a {
    font-size: var(--text-m-sp);
  }

  .fw.p-home .p-message__image {
    padding-top: 0;
  }

  .fw.p-home .p-message__image img {
    max-width: 183px;
    margin-right: auto;
  }

  .fw.p-home .p-message__image svg {
    top: 160px;
  }

  .fw.p-home .p-message__image figcaption {
    margin-top: 0;
  }

  .fw.p-home .p-message__image figcaption>span.pre {
    font-size: var(--text-m-sp);
  }

  .fw.p-home .p-message__image figcaption>span.main {
    font-size: var(--text-xl-sp);
  }

  .fw.p-home .p-message__image figcaption>span.description {
    margin-top: 12px;
    font-size: var(--text-m-sp);
  }

  .fw.p-home .p-message .p-message-flex {
    flex-direction: column;
    gap: 40px;
  }

  .fw.p-home .p-message .p-message-flex__left {
    max-width: 696px;
    margin: 0 auto;
  }

  .fw.p-home .p-message .p-message-flex__right {
    flex: 0 0 auto;
    max-width: 696px;
    margin: 0 auto;
  }

}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .fw.p-home .p-message {
    padding: 40px 0;
  }

  .fw.p-home .p-message__lead {
    font-size: var(--text-xl);
    margin-bottom: 70px;
  }

  .fw.p-home .p-message__text {
    margin-top: 32px;
    font-size: var(--text-m);
  }

  .fw.p-home .p-message__link {
    margin-top: 50px;
  }

  .fw.p-home .p-message__link a {
    font-size: var(--text-m);
  }

  .fw.p-home .p-message__image {
    padding-top: 0;
  }

  .fw.p-home .p-message__image img {
    max-width: 183px;
    margin-right: auto;
  }

  .fw.p-home .p-message__image svg {
    top: 160px;
  }

  .fw.p-home .p-message__image figcaption {
    margin-top: -10px;
  }

  .fw.p-home .p-message__image figcaption>span.pre {
    font-size: var(--text-m);
  }

  .fw.p-home .p-message__image figcaption>span.main {
    font-size: var(--text-xl);
  }

  .fw.p-home .p-message__image figcaption>span.description {
    margin-top: 12px;
    font-size: var(--text-m-sp);
  }

  .fw.p-home .p-message .p-message-flex {
    flex-direction: column;
    gap: 40px;
  }

  .fw.p-home .p-message .p-message-flex__left {
    max-width: 696px;
    margin: 0 auto;
  }

  .fw.p-home .p-message .p-message-flex__right {
    flex: 0 0 auto;
    max-width: 696px;
    margin: 0 auto;
  }

}

@media screen and (min-width: 1024px) {
  .fw.p-home .p-message__link a br.sp {
    display: none;
  }

}

/* 本番の部品寸法を保ち、承認済みのコンテンツ幅に収める。 */
body.fw.p-home .p-top-ceo .l-inner {
  max-width: 1095px;
}

@media screen and (max-width: 767px) {
  body.fw.p-home .p-top-ceo .l-inner {
    width: var(--top-sp-content);
    padding-inline: 0;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  body.fw.p-home .p-top-ceo .l-inner {
    padding-inline: 32px;
  }
}

@media screen and (min-width: 1024px) {
  body.fw.p-home .p-top-ceo .l-inner {
    width: calc(100% - 64px);
  }

  body.fw.p-home .p-top-ceo .p-message-flex {
    gap: clamp(48px, calc(9.357vw - 47.81px), 80px);
  }

  body.fw.p-home .p-top-ceo .p-message-flex__right {
    flex-basis: clamp(320px, calc(23.392vw + 80.47px), 400px);
    max-width: 400px;
  }
}
