/* Keep the original FV composition intact; only add the new message block. */

.p-approach__intro-text {
  font-family: kinuta-maruminshinano-stdn, serif;
}

body.is-top-resetting .p-contents {
  visibility: hidden;
}

.p-top__message {
  position: absolute;
  top: auto;
  right: min(.8vw, 12px);
  bottom: calc(min(.5731vw, 11px) + min(17.22vw, 331px) + clamp(24px, 3.1svh, 30px));
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(35.5vw, 510px);
  color: #3908c4;
  text-align: left;
}

.p-top__message-title {
  width: 100%;
  margin: 0;
  padding-left: clamp(20px, 1.65vw, 24px);
  border-left: 1px solid #3908c4;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(24px, 1.7vw, 26px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: .04em;
}

.p-top__message-text {
  width: 100%;
  margin-top: clamp(18px, 3.2svh, 24px);
  font-size: clamp(12px, .9vw, 13px);
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .01em;
}

.p-top__message-button {
  display: grid;
  place-content: center;
  width: clamp(270px, 19vw, 275px);
  height: 52px;
  margin-top: clamp(16px, 2.6svh, 18px);
  margin-left: 2px;
  padding: 0 20px;
  border: 0;
  background: #6ec0f9;
  box-shadow: none;
  color: #3908c4;
  font-size: clamp(13px, .9vw, 14px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: color .3s ease, background-color .3s ease;
}

@media (hover: hover) {
  .p-top__message-button:hover {
    color: #fff;
    background: #3908c4;
  }
}

@media screen and (max-width: 1024px) {
  .p-top__message {
    top: auto;
    right: min(2.4vw, 12px);
    bottom: calc(50% - 25.76vw + clamp(18px, 2.8svh, 24px));
    width: min(35.5vw, 510px);
  }

  .p-top__message-title {
    padding-left: min(1.7vw, 18px);
    font-size: clamp(17px, 2.35vw, 24px);
  }

  .p-top__message-text {
    margin-top: min(2.4svh, 18px);
    font-size: clamp(9px, 1.2vw, 12px);
  }

  .p-top__message-button {
    width: min(27vw, 275px);
    min-width: 195px;
    height: clamp(38px, 5.1vw, 52px);
    margin-top: min(2.2svh, 16px);
    font-size: clamp(10px, 1.25vw, 13px);
  }
}

/* Desktop section paging: preserve the existing FV reveal and snap each content section. */
@media screen and (min-width: 1025px) {
  html {
    scroll-snap-type: y mandatory;
  }

  html.is-long-content {
    scroll-snap-type: none;
  }

  .p-top,
  .p-contents > .jsSection,
  .p-contact {
    scroll-snap-align: start;
  }

  .p-top,
  .p-approach,
  .p-services-new {
    scroll-snap-stop: always;
  }

  .p-contents {
    padding-top: 0;
  }

  .p-approach {
    display: flex;
    align-items: center;
    height: 100svh;
    min-height: 100svh;
    padding: 0;
  }

  .p-approach__intro {
    position: relative;
    top: auto;
  }

  .l-background,
  .l-background__common,
  .l-background__approach {
    transition-duration: 600ms;
  }

  .p-article__table-row,
  .p-article__profile-content {
    font-size: 16px;
  }
}

/* Services content imported from the approved mockup. */
.p-services-new {
  z-index: 1;
  padding: min(10vw, 190px) 0;
  color: #3908c4;
}

.p-services-new__inner {
  width: 85%;
  max-width: 1550px;
  margin: 0 auto;
  padding-left: min(15.7342vw, 302px);
}

.p-services-new__title {
  margin-bottom: min(3vw, 52px);
  font-family: kinuta-maruminshinano-stdn, "Noto Serif JP", serif;
  font-size: clamp(34px, 3.4907vw, 67px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: .03em;
}

.p-services-new__lead {
  width: 100%;
  max-width: none;
  margin-bottom: min(4.5vw, 80px);
  font-size: 16px;
  line-height: 2.2;
}

.p-services-new__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: min(2.2vw, 36px);
  margin-bottom: min(2.5vw, 44px);
}

.p-services-new__card {
  position: relative;
  padding: min(2.6vw, 44px) min(2.4vw, 40px);
  border: 1px solid #ae99ea;
  border-radius: 5px;
  background: rgba(255, 255, 255, .55);
}

.p-services-new__badge {
  position: absolute;
  top: min(1.6vw, 26px);
  right: min(1.6vw, 26px);
  display: inline-block;
  padding: 5px 16px;
  border-radius: 2em;
  color: #25147e;
  font-family: "Noto Serif JP", serif;
  font-size: 13px;
  font-weight: 700;
}

.p-services-new__badge--pink,
.p-services-new__marker--pink {
  background: #f592a5;
}

.p-services-new__badge--green,
.p-services-new__marker--green {
  background: #14d99c;
}

.p-services-new__badge--yellow,
.p-services-new__marker--yellow {
  background: #e2f260;
}

.p-services-new__badge--blue,
.p-services-new__marker--blue {
  background: #6ec0f9;
}

.p-services-new__icon {
  width: 84px;
  height: 60px;
  margin-bottom: 20px;
}

.p-services-new__card-title {
  margin-bottom: 18px;
  font-family: kinuta-maruminshinano-stdn, "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 2;
}

.p-services-new__marker {
  padding: .12em .3em .1em;
  color: #25147e;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.p-services-new__card-body {
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 2.1;
}

.p-services-new__card-meta {
  color: #3809b8;
  font-size: 13px;
  line-height: 2;
  opacity: .8;
}

.p-services-new__card-meta span {
  font-weight: 700;
}

.p-services-new__note {
  font-size: clamp(13px, .9378vw, 15.5px);
}

.p-services-new__howto {
  margin-top: clamp(100px, 9vw, 150px);
}

.p-services-new__howto-title {
  margin-bottom: min(2.5vw, 42px);
  font-family: kinuta-maruminshinano-stdn, "Noto Serif JP", serif;
  font-size: clamp(34px, 3.4907vw, 67px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: .03em;
}

.p-services-new__howto-lead {
  margin-bottom: min(4.5vw, 72px);
  font-size: clamp(14px, 1.042vw, 17px);
  line-height: 2.2;
}

.p-services-new__steps {
  --process-step-gap: min(2.6vw, 42px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--process-step-gap);
}

.p-services-new__step::before,
.p-services-new__step::after {
  position: absolute;
  left: 48px;
  width: 1px;
  background: #25147e;
  content: "";
}

.p-services-new__step:not(:first-child)::before {
  top: calc(-1 * var(--process-step-gap));
  bottom: 50%;
}

.p-services-new__step:not(:last-child)::after {
  top: 50%;
  bottom: calc(-1 * var(--process-step-gap));
}

.p-services-new__step:first-child::before,
.p-services-new__step:last-child::after {
  content: none;
}

.p-services-new__step {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: min(2.2vw, 38px);
}

.p-services-new__step-num {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #25147e;
  color: #fff;
  font-family: cochin-lt-pro, serif;
  font-weight: 400;
  line-height: 1;
}

.p-services-new__step-num span {
  font-size: 20px;
  letter-spacing: .04em;
}

.p-services-new__step-num strong {
  margin-top: 5px;
  font-size: 42px;
  font-weight: 400;
}

.p-services-new__step-card {
  min-height: 178px;
  padding: min(1.8vw, 30px) min(2.2vw, 38px);
  border: 1px solid #ae99ea;
  border-radius: 3px;
  background-color: #f5f2f8;
}

.p-services-new__step-card h4 {
  margin-bottom: 8px;
  color: #3809b8;
  font-family: kinuta-maruminshinano-stdn, "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -.02em;
}

.p-services-new__step-card > p:not(.p-services-new__step-message) {
  font-size: 16px;
  line-height: 1.9;
}

.p-services-new__step-message {
  display: table;
  margin-top: 12px;
  padding: 2px 7px 3px;
  background: #3809b8;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

/* Dynamic Column section. */
.p-contents > .p-column-new {
  z-index: 1;
  padding: min(10vw, 190px) 0;
  color: #3908c4;
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.p-column-new__inner {
  width: 85%;
  max-width: 1550px;
  margin: 0 auto;
  padding-left: min(15.7342vw, 302px);
}

.p-column-new__title {
  margin-bottom: min(2.2vw, 38px);
  font-family: kinuta-maruminshinano-stdn, "Noto Serif JP", serif;
  font-size: clamp(34px, 3.4907vw, 67px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: .03em;
}

.p-column-new__lead {
  margin-bottom: min(4vw, 68px);
  font-size: clamp(14px, 1.042vw, 17px);
  line-height: 2.2;
}

.p-column-new__group + .p-column-new__group {
  margin-top: min(3.5vw, 58px);
}

.p-column-new__group-title {
  margin-bottom: min(1.5vw, 24px);
  font-family: "Noto Serif JP", serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: .04em;
}

.p-column-new__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: min(1.7vw, 28px);
}

.p-column-new__card {
  min-height: 150px;
  border: 1px solid #ae99ea;
  border-radius: 3px;
  background: rgba(255, 255, 255, .5);
  transition: border-color .3s ease, background-color .3s ease;
}

.p-column-new__card a {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: inherit;
  padding: min(1.8vw, 30px) min(1.6vw, 27px);
}

.p-column-new__meta {
  display: flex;
  align-items: center;
  min-height: 24px;
  gap: 16px;
  margin-bottom: 12px;
  font-family: cochin-lt-pro, serif;
  font-size: clamp(12px, .8857vw, 15px);
  letter-spacing: .08em;
}

.p-column-new__tag {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 1px 10px 2px;
  border: 1px solid #ae99ea;
  border-radius: 12px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(10px, .6773vw, 12px);
  letter-spacing: .02em;
}

.p-column-new__tag--empty {
  visibility: hidden;
}

.p-column-new__card-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(16px, 1.1452vw, 20px);
  font-weight: 500;
  line-height: 1.65;
}

.p-column-new__empty {
  padding: min(2vw, 32px) 0;
  font-size: 16px;
}

.p-column-new__archive-link {
  margin-top: min(3.2vw, 52px);
  text-align: right;
}

.p-column-new__archive-link a {
  display: inline-block;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(14px, .9378vw, 16px);
  font-weight: 500;
  letter-spacing: .04em;
}

@media (hover: hover) {
  .p-column-new__card:hover {
    border-color: #3908c4;
    background: rgba(255, 255, 255, .76);
  }
}

@media screen and (max-width: 1024px) {
  .l-background .l-background__common {
    opacity: 1;
  }

  .l-background .l-background__approach {
    opacity: 0;
  }

  .l-background.is-approach .l-background__common {
    opacity: 0;
  }

  .l-background.is-approach .l-background__approach {
    opacity: 1;
  }

  .p-services-new {
    padding: min(28.0035vw, 157.5px) 0;
  }

  .p-services-new__inner {
    width: min(84.0105vw, 630px);
    padding-left: 0;
  }

  .p-services-new__grid {
    grid-template-columns: 1fr;
    gap: min(5.334vw, 30px);
  }

  .p-services-new__card {
    padding: min(7.4676vw, 42px) min(5.8674vw, 33px);
  }

  .p-services-new__badge {
    position: static;
    margin-bottom: 14px;
  }

  .p-services-new__howto {
    margin-top: min(24.003vw, 135px);
  }

  .p-services-new__howto-lead br {
    display: none;
  }

  .p-services-new__steps {
    --process-step-gap: min(8.001vw, 45px);
    gap: var(--process-step-gap);
  }

  .p-services-new__step {
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: start;
    gap: min(3.7338vw, 21px);
  }

  .p-services-new__step-num {
    width: 58px;
    height: 58px;
  }

  .p-services-new__step::before,
  .p-services-new__step::after {
    left: 29px;
  }

  .p-services-new__step:not(:first-child)::before {
    top: calc(-1 * var(--process-step-gap));
    bottom: calc(100% - 29px);
  }

  .p-services-new__step:not(:last-child)::after {
    top: 29px;
    bottom: calc(-1 * var(--process-step-gap));
  }

  .p-services-new__step-num span {
    font-size: 12px;
  }

  .p-services-new__step-num strong {
    margin-top: 2px;
    font-size: 25px;
  }

  .p-services-new__step-card {
    min-height: 0;
    padding: min(5.8674vw, 33px) min(4.8006vw, 27px);
  }

  .p-column-new {
    padding: min(28.0035vw, 157.5px) 0;
  }

  .p-column-new__inner {
    width: min(84.0105vw, 630px);
    padding-left: 0;
  }

  .p-column-new__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: min(4.8006vw, 27px);
  }

  .p-column-new__card a {
    padding: min(5.334vw, 30px) min(4.8006vw, 27px);
  }
}

@media screen and (max-width: 480px) {
  .p-services-new__steps {
    gap: 18px;
  }

  .p-services-new__step {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
  }

  .p-services-new__step::before {
    content: none;
  }

  .p-services-new__step:not(:last-child)::after {
    position: static;
    align-self: center;
    width: auto;
    margin-top: 22px;
    background: none;
    color: #3809b8;
    font-size: 20px;
    line-height: 1;
    content: "▼";
  }

  .p-services-new__step-num {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #3809b8;
    font-family: "Noto Serif JP", serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .p-services-new__step-num span,
  .p-services-new__step-num strong {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
  }

  .p-services-new__step-num strong {
    margin-left: .45em;
  }

  .p-services-new__step-card {
    width: 100%;
  }

  .p-services-new__icon {
    display: none;
  }

  .p-article__table {
    border-bottom: 0;
  }

  .p-article__table::after {
    position: absolute;
    right: 24px;
    bottom: 0;
    left: 24px;
    height: 1px;
    background: #9d94c4;
    content: "";
  }

  .p-article__table-row,
  .p-article__profile-content {
    font-size: 14px;
  }

  .p-article__table-row {
    border-top: 0;
    background: linear-gradient(#9d94c4, #9d94c4) top center / calc(100% - 48px) 1px no-repeat;
  }

  .p-top__message {
    top: calc(50% + 66vw);
    right: auto;
    bottom: auto;
    left: 10vw;
    width: 70vw;
  }

  .p-approach__intro-copy br {
    display: none;
  }

  .p-services-new__card-title br {
    display: none;
  }

  .p-column-new__grid {
    grid-template-columns: 1fr;
  }
}
