@charset "UTF-8";

/* =========================================
   ABOUT MARTHY
   サービス詳細の直後に配置する企業姿勢セクション
   ========================================= */
.about {
  --color-about-navy: #070f4c;
  --color-about-blue: #4e73f7;
  --color-about-purple: #8e68f4;
  --color-about-body: #10194c;
  --color-about-card-shadow: rgba(76, 89, 169, 0.10);

  overflow: hidden;
  background: #f5f6ff;
}

/* -----------------------------------------
   上段：メッセージ + PC背景ビジュアル
   ----------------------------------------- */
.about__top {
  position: relative;
  min-height: 132rem;
  padding: 8rem 0 10rem;
  background-color: #f8f9ff;
  background-image: url('../images/about_bg_top_pc.jpg');
  background-repeat: no-repeat;
  background-position: center bottom;
  /* 下端を基準に表示。coverでトリミングされる場合も画像最下部を必ず残す */
  /* PCでは背景を画面幅いっぱいまでフルブリード表示 */
  background-size: cover;
}

.about__inner {
  position: relative;
  z-index: 1;
  padding: 0 6rem;
}

.about__header-title {
  margin-bottom: 5.2rem;
}

.about__content {
  width: 100%;
  max-width: 118rem;
  margin: 0 auto;
}

.about__lead {
  max-width: 92rem;
  margin: 0 auto;
  color: var(--color-about-navy);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0.01em;
  text-align: center;
}

.about__lead-accent {
  color: var(--color-about-blue);
  background: linear-gradient(90deg, #4b6ff6 0%, #6757f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about__story {
  width: 56rem;
  margin-top: 6.2rem;
  margin-left: 4rem;
  color: var(--color-about-body);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 2.05;
  letter-spacing: 0.015em;
}

.about__story > p + p {
  margin-top: 3.2rem;
}

.about__mission {
  margin-top: 4.2rem;
}

.about__mission-main {
  color: var(--color-about-blue);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.65;
}

.about__mission-sub {
  margin-top: 0.4rem;
  color: var(--color-about-body);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.8;
}

/* PCでは上段の画像はセクション背景に含める */
.about__top-visual {
  display: none;
}

/* -----------------------------------------
   下段：3つの支援方針
   ----------------------------------------- */
.about__bottom {
  position: relative;
  margin-top: -0.2rem;
  padding: 3.8rem 0 12rem;
  background-color: #eef0ff;
  background-image: url('../images/about_bg_bottom.jpg');
  background-repeat: no-repeat;
  /* PCは背景画像の上端を基準にし、最上部を必ず表示 */
  background-position: center top;
  background-size: cover;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: 2.8rem;
  width: 100%;
  max-width: 90rem;
  margin: 0 auto;
  padding: 0;
}

.about__value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  align-items: center;
  min-height: 20rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 2rem;
  box-shadow: 0 1.8rem 5rem var(--color-about-card-shadow);
  backdrop-filter: blur(0.2rem);
}

.about__value-copy {
  min-width: 0;
  padding: 4.6rem 2rem 4.6rem 5rem;
}

.about__value-head {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.about__value-num {
  flex: 0 0 auto;
  color: var(--color-about-purple);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-size: 5.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #a278f5 0%, #5789fa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about__value-divider {
  width: 0.2rem;
  height: 4rem;
  flex: 0 0 auto;
  background: linear-gradient(180deg, #667ff8 0%, #9a75f4 100%);
}

.about__value-title {
  min-width: 0;
  color: var(--color-about-navy);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.45;
}

.about__value-text {
  max-width: 64rem;
  margin-top: 1.6rem;
  margin-left: 9.5rem;
  color: var(--color-about-body);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 1.85;
}

.about__value-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2.5rem 3rem 2.5rem 1rem;
}

.about__value-image img {
  width: 100%;
  max-width: 18rem;
  height: auto;
  object-fit: contain;
}

/* =========================================
   Tablet / Smartphone
   文章の下にビジュアルを置く縦レイアウト
   ========================================= */
@media (max-width: 1024px) {
  .about__top {
    min-height: 0;
    padding: 7rem 0 0;
    background-image: none;
  }

  .about__inner {
    padding: 0 5%;
  }

  .about__header-title {
    margin-bottom: 4rem;
  }

  .about__content {
    max-width: 76rem;
  }

  .about__lead {
    max-width: 68rem;
    font-size: 3.2rem;
    line-height: 1.6;
  }

  .about__story {
    width: 100%;
    max-width: 68rem;
    margin: 4.8rem auto 0;
    font-size: 1.7rem;
    line-height: 1.95;
  }

  .about__story > p + p {
    margin-top: 2.8rem;
  }

  .about__mission {
    margin-top: 3.6rem;
  }

  .about__mission-main {
    font-size: 2.1rem;
  }

  .about__mission-sub {
    font-size: 1.7rem;
  }

  /*
   * タブレット/スマホ専用上段ビジュアル。
   * 最終画像は images/about_bg_top_sp.jpg を同名で差し替えれば反映されます。
   */
  .about__top-visual {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1000 / 1022;
    margin-top: 1.6rem;
    background-image: url('../images/about_bg_top_sp.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    /* タブレット・スマホは背景画像全体を横幅・高さ100%で表示し、切り抜かない */
    background-size: 100% 100%;
  }

  .about__bottom {
    padding: 3rem 0 7rem;
    /* タブレット以下は従来どおり下端基準 */
    background-position: center bottom;
  }

  .about__values {
    max-width: 90rem;
    gap: 2.4rem;
    padding: 0 2rem;
  }

  .about__value {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    border-radius: 1.8rem;
  }

  .about__value-copy {
    padding: 4rem 4rem 0;
  }

  .about__value-head {
    gap: 1.8rem;
  }

  .about__value-num {
    font-size: 5rem;
  }

  .about__value-divider {
    height: 3.6rem;
  }

  .about__value-title {
    font-size: 2.6rem;
  }

  .about__value-text {
    max-width: none;
    margin-top: 1.8rem;
    margin-left: 0;
    font-size: 1.6rem;
  }

  .about__value-image {
    padding: 2.5rem 3rem 3.5rem;
  }

  .about__value-image img {
    max-width: 18rem;
  }
}

@media (max-width: 767px) {
  .about__top {
    padding-top: 5rem;
  }

  .about__header-title {
    margin-bottom: 3rem;
  }

  .about__lead {
    font-size: 2.55rem;
    line-height: 1.62;
  }

  .about__lead-accent {
    display: inline;
  }

  .about__story {
    margin-top: 3.8rem;
    font-size: 1.5rem;
    line-height: 1.9;
  }

  .about__story > p + p {
    margin-top: 2.4rem;
  }

  .about__mission {
    margin-top: 3rem;
  }

  .about__mission-main {
    font-size: 1.8rem;
    line-height: 1.7;
  }

  .about__mission-sub {
    margin-top: 0.6rem;
    font-size: 1.5rem;
  }

  .about__top-visual {
    height: auto;
    max-height: none;
    aspect-ratio: 1000 / 1022;
    margin-top: 1.2rem;
    background-position: center center;
    background-size: 100% 100%;
  }

  .about__bottom {
    padding: 2.4rem 0 5rem;
  }

  .about__values {
    gap: 2rem;
    padding: 0 5%;
  }

  .about__value {
    border-radius: 1.6rem;
  }

  .about__value-copy {
    padding: 3rem 2.4rem 0;
  }

  .about__value-head {
    align-items: center;
    gap: 1.3rem;
  }

  .about__value-num {
    font-size: 4.4rem;
  }

  .about__value-divider {
    width: 0.15rem;
    height: 3.2rem;
  }

  .about__value-title {
    font-size: 2.1rem;
    line-height: 1.45;
  }

  .about__value-text {
    margin-top: 1.5rem;
    font-size: 1.45rem;
    line-height: 1.85;
  }

  .about__value-image {
    padding: 2rem 2.4rem 2.8rem;
  }

  .about__value-image img {
    max-width: 15rem;
  }
}
