.page-about {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  background: #f7f5ef;
  color: #1a1311;
}

.page-about .floating-q-container {
  z-index: 1;
}

.page-about::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 160px;
  background: linear-gradient(
    to bottom,
    #f7f5ef 0%,
    rgba(247, 245, 239, 0.94) 28%,
    rgba(247, 245, 239, 0) 100%
  );
  pointer-events: none;
}

.about-intro,
.about-story,
.about-meaning {
  position: relative;
  z-index: auto;
}

.page-about .contact-mini {
  position: relative;
  z-index: 3;
}

.about-intro {
  padding: 92px 24px 130px;
}

.about-intro__inner,
.about-story__inner,
.about-meaning__inner {
  width: min(100%, 1024px);
  margin: 0 auto;
}

.about-intro__inner {
  position: relative;
  display: grid;
  width: min(100%, 1200px);
  min-height: 720px;
  place-items: center;
}

.about-intro__inner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 1160px;
  aspect-ratio: 1044 / 612;
  background: url("../img/about_bg.svg") center / 100% 100% no-repeat;
  transform: translate(-50%, -50%);
}

.about-intro__content {
  position: relative;
  z-index: 3;
  width: min(100%, 760px);
  text-align: center;
}

.about-intro__title {
  line-height: 1.65;
}

.about-intro__text {
  margin-top: 34px;
  line-height: 1.9;
}

.about-intro__text p + p {
  margin-top: 30px;
}

.about-intro__character {
  position: absolute;
  z-index: 4;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.about-intro__character--left {
  top: 76px;
  left: 100px;
  width: 180px;
}

.about-intro__character--right {
  right: 200px;
  bottom: 0px;
  width: 130px;
}

.about-story {
  padding: 150px 24px 160px;
  background: url("../img/blue_bg.png") center / cover no-repeat;
}

.about-story__inner,
.about-meaning__inner {
  position: relative;
  z-index: 3;
}

.about-story__inner {
  width: min(100%, 1200px);
}

.about-story::before,
.about-story::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 120px;
  background: url("../img/service-blue-cloud.png") top center / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 0;
}

.page-about ~ .site-footer {
  z-index: 2;
}

.about-story::before {
  top: -22px;
  transform: translateX(-50%);
}

.about-story::after {
  bottom: -22px;
  transform: translateX(-50%) rotate(180deg);
}

.about-origin {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 72px;
  align-items: center;
}

.about-us__panel > h2 {
  text-align: center;
}

.about-origin__text,
.about-us__text {
  margin-top: 24px;
  line-height: 1.9;
}

.about-origin__text p + p,
.about-us__text p + p {
  margin-top: 18px;
}

.about-origin__visual {
  position: relative;
  margin: 0;
}

.about-origin__visual img {
  display: block;
  width: 100%;
  height: auto;
  margin-left: 20px;

}

.about-us {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 72px;
  align-items: center;
  margin-top: 100px;
}

.about-us__panel {
  position: relative;
  padding: 48px 52px;
  border-radius: 8px;
  background: rgba(130, 173, 246, 0.9);
}

.about-us__panel::after {
  content: "";
  position: absolute;
  top: 42%;
  right: -30px;
  border-width: 24px 0 24px 30px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(130, 173, 246, 0.9);
}

.about-us__president {
  margin: 0;
  text-align: center;
}

.about-us__president img {
  display: block;
  width: min(100%, 230px);
  margin: 0 auto;
}

.about-us__president figcaption {
  margin-top: 16px;
  color: var(--color-blue);
}

.about-meaning {
  padding: 170px 24px 130px;
}

.about-meaning__title {
  text-align: center;
}

.about-meaning__grid {
  gap: 120px 40px;
  margin-top: 128px;
}

.about-meaning-card {
  --about-card-color: var(--color-red);
  --about-card-pale: rgba(229, 57, 57, 0.25);
  position: relative;
  /* min-height: 480px; */
  padding: 116px 32px 40px;
  border: 2px solid var(--about-card-color);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}

.about-meaning-card--pink {
  --about-card-color: #ff38a3;
  --about-card-pale: rgba(255, 56, 163, 0.22);
}

.about-meaning-card--purple {
  --about-card-color: #b762ff;
  --about-card-pale: rgba(183, 98, 255, 0.25);
}

.about-meaning-card--blue {
  --about-card-color: var(--color-blue);
  --about-card-pale: rgba(18, 90, 178, 0.22);
}

.about-meaning-card__badge {
  position: absolute;
  top: -100px;
  left: 50%;
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
  padding: 14px;
  border: 2px solid var(--about-card-color);
  border-radius: 50%;
  color: var(--about-card-color);
  background: #fff;
  text-align: center;
  line-height: 1.45;
  transform: translateX(-50%);
}

.about-meaning-card__number {
  position: absolute;
  top: 80px;
  left: 32px;
  font-family: "Quicksand", sans-serif;
  font-size: 64px;
  font-weight: 700;
  color: var(--about-card-pale);
  line-height: 1;
}

.about-meaning-card__eyebrow {
  position: relative;
  z-index: 1;
  color: #1a1311;
}

.about-meaning-card__title {
  margin-top: 12px;
}

.about-meaning-card__body {
  margin-top: 24px;
  line-height: 1.8;
}

.about-meaning-card__body-title {
  font-weight: 700;
}

.about-meaning-card__body ul {
  margin-top: 12px;
}

.about-meaning-card__body ul + p {
  margin-top: 18px;
}

.about-meaning-card__body li {
  position: relative;
  padding-left: 1em;
}

.about-meaning-card__body li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.about-meaning__brand {
  position: relative;
  width: min(100%, 320px);
  margin: 92px auto 0;
  padding: 18px 26px;
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.about-meaning__brand::before {
  content: "";
  position: absolute;
  top: -64px;
  left: 50%;
  width: 70px;
  height: 48px;
  border-radius: 4px;
  background: var(--color-light-blue);
  clip-path: path("M 5 0 H 65 Q 70 0 67 5 L 38 44 Q 35 49 32 44 L 3 5 Q 0 0 5 0 Z");
  transform: translateX(-50%);
}

.about-meaning__brand p {
  padding: 6px 12px;
  border-radius: 4px;
  color: #fff;
  background: var(--color-light-blue);
}

.about-meaning__brand img {
  display: block;
  width: 210px;
  max-width: 100%;
  margin: 8px auto 0;
}

.page-about .contact-mini {
  margin-top: 0;
}

@media (max-width: 1024px) {
  .about-intro__content {
    width: min(100%, 680px);
  }

  .about-intro__character--left {
    top: 24px;
    left: 0px;
    /* width: 165px; */
  }

  .about-intro__character--right {
    right: 0px;
    bottom: -4px;
    /* width: 125px; */
  }
}

@media (max-width: 900px) {
  .about-origin {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 30px;
  }

  .about-us {
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .about-intro {
    padding-top: 64px;
    padding-bottom: 104px;
  }

  .about-intro__inner {
    min-height: 680px;
  }

  .about-intro__inner::before {
    width: 900px;
    height: 680px;
    aspect-ratio: auto;
  }

  .about-intro__content {
    width: min(100%, 540px);
  }

  .about-intro__character--left {
    top: -20px;
    /* left: -70px; */
    width: 170px;
  }

  .about-intro__character--right {
    /* right: -44px; */
    /* bottom: -12px; */
    width: 135px;
  }

  .about-story {
    padding-top: 130px;
    padding-bottom: 130px;
  }

  .about-story::before,
  .about-story::after {
    height: 72px;
  }

  .about-origin,
  .about-us {
    grid-template-columns: 1fr;
  }

  .about-origin__visual {
    width: min(100%, 360px);
    margin: 0 auto;
  }

  .about-us__panel::after {
    top: auto;
    right: 50%;
    bottom: -30px;
    border-width: 30px 24px 0;
    border-color: rgba(130, 173, 246, 0.9) transparent transparent;
    transform: translateX(50%);
  }

  .about-us__president img {
    width: min(100%, 190px);
  }

  .about-meaning {
    padding-top: 140px;
    padding-bottom: 100px;
  }
}

@media (max-width: 576px) {
  .about-intro,
  .about-story,
  .about-meaning {
    padding-right: 20px;
    padding-left: 20px;
  }

  .about-intro {
    padding-top: 50px;
  }

  .about-intro__inner {
    min-height: 760px;
    align-items: center;
  }

  .about-intro__inner::before {
    width: 560px;
    height: auto;
    aspect-ratio: 429.745 / 580;
    background-image: url("../img/about_bg--sp.svg");
  }

  .about-intro__content {
    padding: 120px 0 110px;
  }

  .about-intro__title {
    line-height: 1.55;
  }

  .about-intro__text {
    margin-top: 28px;
    text-align: left;
  }

  /* .about-intro__character--left {
    top: -40px;
    left: -65px;
    width: 150px;
  } */

  /* .about-intro__character--right {
    right: -40px;
    bottom: -20px;
    width: 122px;
  } */

  .about-story {
    padding-top: 116px;
    padding-bottom: 116px;
  }

  .about-origin__visual {
    width: min(100%, 300px);
  }

  .about-us {
    margin-top: 80px;
  }

  .about-us__panel {
    padding: 36px 28px;
  }

  /* .about-meaning__grid {
    gap: 86px;
    margin-top: 90px;
  } */

  /* .about-meaning-card {
    min-height: 0;
    padding: 68px 24px 30px;
  } */

}

@media (prefers-reduced-motion: reduce) {
  .page-about .floating-q-container {
    display: none;
  }
}
