/* ========================================
   LP (one-page) additional styles
   Base design inherits TOP page CSS
======================================== */

html {
  scroll-behavior: smooth;
}

.lp-page .post--link {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

/*
  TOPでは contact へのリンクに target=_blank が付き、
  矢印用 ::before/::after が非表示になる。
  LPでは #section_contact にしたため矢印が文字に重なるので打ち消す。
*/
.lp-page .gnav--contact a::before,
.lp-page .gnav--contact a::after,
.lp-page .cta_contact a::before,
.lp-page .cta_contact a::after,
.lp-page .hero--btn a::before,
.lp-page .hero--btn a::after {
  content: none !important;
  display: none !important;
}

/* ヒーローCTAがスライド画像の下に回り込まないようにする */
.lp-page .hero--catch {
  z-index: 20;
}

.lp-page .hero--btns {
  position: relative;
  z-index: 21;
}

/*
  元CSSは「詳しく見る」ボタンを last-child として除外するため
  li:not(:last-child) にカード装飾を当てている。
  LPではボタンを削除したので FEATURE05 が last-child になり
  カード装飾が消える。全 li に同じ装飾を付ける。
*/
.lp-page .feature_list li:last-child {
  padding: 5.2083333333vw 2.5vw 2.0833333333vw;
  background-image: linear-gradient(180deg, rgb(255, 255, 255) 70%, rgba(255, 255, 255, 0) 90%);
  border-radius: 10px;
  box-shadow: 10px -10px 14px -7px rgba(84, 157, 156, 0.1), -10px -10px 14px -7px rgba(84, 157, 156, 0.1);
}

@media print, screen and (min-width: 120.0625em) {
  .lp-page .feature_list li:last-child {
    padding: 100px 48px 40px;
  }
}

@media screen and (max-width: 47.9375em) {
  .lp-page .feature_list li:last-child {
    padding: 32px 24px;
  }
}

.lp-page .cat_list .tag {
  display: inline-block;
  margin: 0 0.4em 0.4em 0;
}

/* ---- Shared LP section ---- */
.lp-section {
  padding: 100px 0;
  position: relative;
}

.lp-section .home_ttl {
  margin-bottom: 24px;
}

.lp-lead {
  font-size: 1.125rem;
  line-height: 2;
  color: var(--clr-txt-sub, #171c60);
  font-weight: 700;
}

.lp-subttl {
  text-align: center;
  margin: 64px 0 40px;
}

.lp-subttl .font-en {
  display: block;
  font-family: var(--font-en, "Sen", sans-serif);
  font-size: 2rem;
  letter-spacing: 0.08em;
  color: var(--clr-main, #3fb5ea);
  line-height: 1.2;
}

.lp-subttl .font-jp {
  display: block;
  font-size: 1rem;
  margin-top: 8px;
  font-weight: 700;
}

.mgn-top24 {
  margin-top: 24px;
}

/* ---- Service detail ---- */
.lp-service-detail {
  background: linear-gradient(180deg, #f7fcfb 0%, #ffffff 40%);
}

.lp-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
  margin-bottom: 24px;
}

.lp-card {
  background: #fff;
  border: 1px solid #e3f2f0;
  padding: 0 0 28px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.lp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(16, 21, 96, 0.08);
}

.lp-card__img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 20px;
}

.lp-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-card__ttl {
  font-size: 1.125rem;
  font-weight: 700;
  text-align: center;
  margin: 0 20px 12px;
  color: var(--clr-txt-sub, #171c60);
}

.lp-card__txt {
  margin: 0 24px;
  font-size: 0.9375rem;
  line-height: 1.8;
  text-align: center;
}

.lp-category__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-category__list li {
  background: #fff;
  border: 1px solid #e3f2f0;
  text-align: center;
  overflow: hidden;
}

.lp-category__img {
  aspect-ratio: 3 / 2;
}

.lp-category__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-category__list p {
  margin: 0;
  padding: 16px 12px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--clr-txt-sub, #171c60);
}

/* ---- Feature detail ---- */
.lp-feature-detail {
  padding: 0;
  background: #fff;
}

.lp-feature-detail > .inner {
  padding-top: 100px;
}

.lp-feature-block {
  padding: 72px 0;
}

.lp-feature-block--alt {
  background: var(--clr-br4, #e7faf7);
}

.lp-feature-block__inner.flex {
  gap: 56px;
  align-items: center;
}

.lp-feature-block__img {
  flex: 0 0 46%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.lp-feature-block__img img,
.lp-split__img img,
.lp-photo-row img,
.lp-company-about__img img,
.lp-company-message__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-feature-block__body {
  flex: 1;
}

.lp-feature-block__num {
  color: var(--clr-main, #3fb5ea);
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
  font-weight: 700;
}

.lp-feature-block__ttl {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-txt-sub, #171c60);
  margin: 0 0 20px;
  line-height: 1.5;
}

.lp-check-list {
  margin: 24px 0 0;
  padding: 20px 24px;
  background: #f4fbfa;
  border-left: 4px solid var(--clr-lgr, #4ccba7);
  list-style: none;
}

.lp-check-list li {
  position: relative;
  padding-left: 1.4em;
  margin-bottom: 0.4em;
  line-height: 1.8;
}

.lp-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: var(--clr-lgr, #4ccba7);
}

.lp-two-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.lp-box {
  background: #fff;
  padding: 28px 28px 20px;
  border: 1px solid #d7efeb;
}

.lp-box h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--clr-txt-sub, #171c60);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--clr-main, #3fb5ea);
}

.lp-box ul {
  margin: 0;
  padding-left: 1.2em;
}

.lp-box li {
  margin-bottom: 0.5em;
  line-height: 1.8;
}

.lp-photo-row {
  display: grid;
  grid-template-columns: 0.8fr 1.1fr 1.1fr;
  gap: 20px;
  align-items: stretch;
}

.lp-photo-row .img-trim {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.lp-photo-row .img-trim:first-child {
  aspect-ratio: 3 / 4;
}

.lp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.lp-split__img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  margin-bottom: 20px;
}

/* ---- Company ---- */
.lp-company {
  background: linear-gradient(180deg, #ffffff 0%, #f5fbfa 100%);
}

.lp-company-about {
  gap: 48px;
  align-items: center;
  margin-bottom: 72px;
}

.lp-company-about__img {
  flex: 0 0 42%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.lp-company-about__txt {
  flex: 1;
}

.lp-company-about__txt p {
  margin: 0 0 1em;
  line-height: 2;
}

.lp-company-about__sub {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--clr-txt-sub, #171c60);
  margin: 28px 0 12px;
  padding-left: 16px;
  border-left: 4px solid var(--clr-main, #3fb5ea);
}

.lp-company-message {
  background: var(--clr-dark-blue, #101560);
  color: #fff;
  padding: 72px 0;
  margin-bottom: 72px;
}

.lp-company-message__inner {
  gap: 48px;
  align-items: center;
}

.lp-company-message__img {
  flex: 0 0 40%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.lp-company-message__txt {
  flex: 1;
}

.lp-company-message .lp-feature-block__num {
  color: var(--clr-main, #3fb5ea);
}

.lp-company-message .lp-feature-block__ttl {
  color: #fff;
}

.lp-company-message p {
  line-height: 2;
  margin: 0 0 1em;
}

.lp-sign {
  text-align: right;
  margin-top: 24px !important;
  opacity: 0.9;
}

.lp-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 48px;
  background: #fff;
}

.lp-table th,
.lp-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #dceceb;
  text-align: left;
  vertical-align: top;
  line-height: 1.8;
}

.lp-table th {
  width: 28%;
  background: #f3faf8;
  color: var(--clr-txt-sub, #171c60);
  font-weight: 700;
  white-space: nowrap;
}

.lp-affiliate {
  margin-top: 8px;
}

.lp-affiliate ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-affiliate li {
  position: relative;
  padding-left: 1em;
}

.lp-affiliate li::before {
  content: "・";
  position: absolute;
  left: 0;
}

/* ---- License table (2-pair columns) ---- */
.lp-table--license th {
  width: 35%;
}

.lp-table--license td {
  width: 15%;
  text-align: right;
  font-weight: 700;
  color: var(--clr-txt-sub, #171c60);
  white-space: nowrap;
}

/* ---- SDGs ---- */
.lp-sdgs {
  margin-top: 8px;
  margin-bottom: 48px;
}

.lp-sdgs__grid {
  margin-bottom: 32px;
}

.lp-sdgs__eco {
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid #e3f2f0;
  padding: 24px;
}

.lp-sdgs__eco-img {
  flex: 0 0 42%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.lp-sdgs__eco-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-sdgs__eco-txt {
  flex: 1;
}

.lp-sdgs__eco-txt h4 {
  margin: 0 0 12px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--clr-txt-sub, #171c60);
}

.lp-sdgs__eco-txt p {
  margin: 0;
  line-height: 2;
}

/* ---- Contact form / free dial ---- */
.lp-free-dial {
  margin-top: 24px;
  text-align: center;
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.6;
}

.lp-free-dial .num {
  display: inline-block;
  margin-top: 4px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.lp-free-dial a {
  color: inherit;
  text-decoration: none;
}

.lp-contact-form {
  position: relative;
  z-index: 1;
  background: #fff;
  padding: 64px 0 80px;
}

.lp-contact-form__ttl {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-txt-sub, #171c60);
  margin: 0 0 12px;
}

.lp-contact-form__lead {
  text-align: center;
  margin: 0 0 40px;
  line-height: 1.8;
}

.lp-contact-form__body {
  background: #f7fcfb;
  border: 1px solid #e3f2f0;
  padding: 32px 28px;
}

.lp-contact-form__note {
  margin-top: 20px;
  text-align: center;
  font-size: 0.8125rem;
  color: #666;
}

.lp-contact-form__note a {
  text-decoration: underline;
}

/* service intro without CTA button */
.lp-page .home_service .home_txt.mgn-btm56 {
  margin-bottom: 0;
}

/* ---- Responsive ---- */
@media screen and (max-width: 1080px) {
  .lp-section {
    padding: 72px 0;
  }

  .lp-card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .lp-category__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .lp-feature-block__inner.flex {
    flex-direction: column;
    gap: 32px;
  }

  .lp-feature-block__img {
    flex: none;
    width: 100%;
  }

  .lp-two-box,
  .lp-split {
    grid-template-columns: 1fr;
  }

  .lp-photo-row {
    grid-template-columns: 1fr;
  }

  .lp-photo-row .img-trim:first-child {
    aspect-ratio: 4 / 3;
  }

  .lp-company-about,
  .lp-company-message__inner {
    flex-direction: column;
  }

  .lp-company-about__img,
  .lp-company-message__img {
    flex: none;
    width: 100%;
  }

  .lp-table th {
    width: 34%;
    white-space: normal;
  }
}

@media screen and (max-width: 767px) {
  .lp-section {
    padding: 56px 0;
  }

  .lp-card-grid {
    grid-template-columns: 1fr;
  }

  .lp-feature-block {
    padding: 48px 0;
  }

  .lp-feature-block__ttl {
    font-size: 1.25rem;
  }

  .lp-company-message {
    padding: 48px 0;
    margin-bottom: 48px;
  }

  .lp-table th,
  .lp-table td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }

  .lp-table th {
    border-bottom: none;
    padding-bottom: 4px;
  }

  .lp-table td {
    padding-top: 4px;
  }

  .lp-affiliate ul {
    flex-direction: column;
    gap: 4px;
  }

  .lp-table--license tr {
    display: block;
    border-bottom: 1px solid #dceceb;
    padding: 8px 0;
  }

  .lp-table--license th,
  .lp-table--license td {
    display: inline-block;
    width: auto;
    border-bottom: none;
    padding: 4px 8px;
  }

  .lp-table--license th {
    width: 75%;
    background: transparent;
  }

  .lp-table--license td {
    width: 20%;
    text-align: right;
  }

  .lp-sdgs__eco {
    flex-direction: column;
    padding: 16px;
  }

  .lp-sdgs__eco-img {
    flex: none;
    width: 100%;
  }

  .lp-contact-form {
    padding: 48px 0 64px;
  }

  .lp-contact-form__body {
    padding: 20px 16px;
  }
}
