/* ========================================

 * history&numbers　共通

 * ======================================== */
.philosophy-culture{
    justify-content: left;
  }

.hero-section.history,
.hero-section.numbers{
  padding: 0;           /* ← 余白をリセット */
  min-height: 500px;
  height: 100vh;        /* ← 確実に指定 */
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  justify-content: left;
  background-size: cover;
  background-position: bottom right;
  background-repeat: no-repeat;
  position: relative;
  text-align: left;
}

.hero-section.history {
  background-image: url('../../assets/images/culture_hero_history.webp');
}

.hero-section.numbers {
  background-image: url('../../assets/images/culture_hero_numbers.webp');
}

.hero-section.history .l-inner,
.hero-section.numbers .l-inner {
  z-index: 1;
  width: 100%;
  height: auto;
  padding: 17.5rem 7.5rem;
}

.hero-section.numbers .l-inner,
.hero-section.numbers .l-inner {
  z-index: 1;
  width: 100%;
  height: auto;
  padding: 17.5rem 7.5rem;
}


/* ========================================
 * history
 * ======================================== */

  .history-feature-block {
    margin: 6rem auto;
    margin-bottom: 14rem;

  }

  .outer-box {
    padding: 4rem;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    background-color: transparent; /* 念のため */
    z-index: 1; /* 背景より前に */
    overflow: visible;
    margin-bottom: 180px;
  }

  .outer-box:last-child {
    margin-bottom: 0;
  }


  .background-layer {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5; /* 任意のグレー背景 */
    z-index: 0;
  }

  /* 枠線用ボックス */
.border-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #000;
  z-index: 1;
  pointer-events: none;
}

/* コンテンツが前面 */
.inner-box,
.section-center-title,
.character-image {
  position: relative;
  z-index: 2;
}
  .inner-box {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;

  }

  .description-area {
    flex: 1 1 60%;
    font-size: 1rem;
    line-height: 1.8;
  }

  .description-area p + p {
    margin-top: 1.8rem; /* 必要に応じて1行分の高さに調整 */
  }


  .image-area {
    flex: 1 1 35%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* gap: 2rem; */
  }

  .image-area img {
    max-width: 100%;
    height: auto;
  }

  .history-feature-block .resize-img {
      position: absolute;
      top: 65%;
      left: 85%;
      -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
      transform: translate(-50%, -50%);
      width: auto;
      height: 60%;
  }


  .character-image {
    position: absolute;
    bottom: -120px;
    right: 40px;
  }
  .character-image img {
    width: 100px;
    height: auto;
  }

  /* inner-boxの左右入れ替え */
.outer-box.reverse .inner-box {
  flex-direction: row-reverse;
}

/* background-layerも反転配置 */
.outer-box.reverse .background-layer {
  left: auto;
  right: 30px;
}

/* character-imageも反転配置 */
.outer-box.reverse .character-image {
  left: 40px;
  bottom: -160px;

}

/* ==============================
   スマホ対応========== */
  @media (max-width: 768px) {

    .philosophy-content{
      flex-direction: row;
      overflow: visible;
    }

    .hero-section.history,
    .hero-section.numbers {
      position: relative;
      padding: 4rem 0;
      overflow: hidden;
      background: none !important;
    }

    .hero-section.history::before,
    .hero-section.numbers::before {
      content: "";
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      z-index: 1;
    }

    .hero-section.history::before {
      background-image: url('../../assets/images/history_bg_sp.webp');
    }

    .hero-section.numbers::before {
      background-image: url('../../assets/images/numbers_bg_sp.webp');
    }

    .hero-section.history .philosophy-block,
    .hero-section.numbers .philosophy-block {
      position: relative;
      z-index: 2;
    }

    .hero-section.history .philosophy-content,
    .hero-section.numbers .philosophy-block {
      padding: 2rem 1rem;
      border-radius: 1rem;
      max-width: 500px;
      margin: 0 auto;
    }

    .hero-section.history .philosophy-content .text,
    .hero-section.numbers .philosophy-content .text{
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-height: 500px;
    }


    .hero-section.history .l-inner {
      padding: 0 !important;
    }

/* 3ブロック */

    .history-feature-block {
      margin: 6rem auto;
      margin-bottom: 10rem;
    }


  .background-layer {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .outer-box.reverse .background-layer {
    right: auto;
    left: 0;
    transform: none;
  }

  /* outer-boxのマージン調整 */
  .outer-box {
    margin-left: 1.2rem;
    margin-right: 1.2rem;
    padding: 1.2rem;
  }

  /* inner-boxの縦並び対応（スマホ） */
  .inner-box {
    flex-direction: column;
    gap: 2rem;
  }

  /* image-area中央揃え + 余白調整 */
  .image-area {
    text-align: center;
    align-items: center;
    margin-bottom: 1.5rem;
  }

  .image-area img {
    max-width: 100%;
    height: auto;
  }

  /* description-areaの段落に余白 */
  .description-area p {
    margin-bottom: 1.5rem;
  }

  /* character-image（右下の人）中央揃え + 下余白調整 */
  .character-image {
    text-align: center;
    margin-top: 2rem;
    bottom: -130px;
    right: 40px;
  }
  .character-image img {
    width: 70px;
    height: auto;
  }
/* character-imageも反転配置 */
.outer-box.reverse .character-image {
  left: 40px;
  bottom: -120px;

}
  }


/* ==============================
   Numbersページ共通セクションタイトル
============================== */
.numbers-section-title {
  text-align: center;
  margin: 8rem 0 4rem;
}

.numbers-title-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  max-width: 450px;
}


.numbers-section-title img {
  height: auto;
  width: 100%;
}

.numbers-title-line {
  width: 150px;
  height: 10px;
  background-color: var(--color-primary);
  margin-top: 3rem;
  border-radius: 2px;
}

/* 共通注釈 */
.numbers-note {
  font-size: 1rem;
  color: var(--color-background-dark);
  text-align: center;
}

.numbers-block{
  margin-bottom: 10rem;
}

.numbers-highlight {
  color: var(--color-primary);
  font-weight: bold;
  font-size: clamp(2.0rem, 6vw, 6rem); /* ← 画面幅に応じて可変 */
  padding: 0 var(--space-xs);
  line-height: 1.2;
}

/* ==============================
   スマホ対応========== */

   @media (max-width: 768px) {
    .numbers-title-wrapper {
      max-width: 375px;

    }

    .numbers-section-title img {
      width: 80%;
    }

    .numbers-title-line {
      width: 40%;
      height: 5px;
      margin-top: 1.5rem;
      border-radius: 2px;
    }

   }




/* ==============================
   沿革
============================== */
/* 横並び（PC） */
.numbers-history-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.numbers-history-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 3vw, 6rem);
}

/* 画像1（左：evisionロゴ） */
.numbers-history-logo img:first-of-type {
  width: clamp(180px, 20vw, 240px);
  height: auto;
}

/* 矢印画像（中央） */
.numbers-history-logo .arrow img {
  width: clamp(50px, 10vw, 75px);
  height: auto;
}

/* 画像2（右：databeeロゴ） */
.numbers-history-logo img.numbers-databee {
  width: clamp(360px, 35vw, 530px);
  height: auto;
}



/* テキスト */
.numbers-history-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-gray-dark);
}





/* ==============================
   従業員数
============================== */
.numbers-employee-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;

}

.employee-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-gray-dark);
}

.employee-icon img {
  max-width: 636px;
  width: calc(100% - 10vw);
  margin: 0 auto;
  height: auto;
  margin-top: 3.5rem;
}


/* ==============================
   男女比
============================== */
.numbers-gender-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  margin-top: 3rem;
  text-align: center;
}

.gender-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gender-ratio {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
}

.gender-ratio-block {
  text-align: center;
}

.gender-icon img {
  max-width: 182px;
  height: auto;
}

.gender-label {
  font-size: 1.6rem;
  font-weight: bold;
}

.gender-separator {
  font-size: 2rem;
  line-height: 3;
  font-weight: bold;
}

/* ==============================
   年齢年齢構成比
============================== */
.numbers-block.numbers-age {
  margin-bottom: 6rem;
}

.numbers-age-text {
  margin-bottom: 2rem;


}

.numbers-age-number {
  font-size: 1.8rem;
  font-weight: bold;
}

.numbers-age-content{
  text-align: center;
}

.numbers-age-image img {
  max-width: 620px;
  width: calc(100% - 10vw);
  height: auto;
  margin: 0 auto;
  display: block;
}

.numbers-age-description {
  margin-top: 2rem;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--color-text);
  display: inline-block;
  text-align: left;
}
/* ==============================
   スマホ対応========== */
@media screen and (max-width: 768px) {

  .numbers-block{
    margin-bottom: 6.25rem;
  }

  .numbers-section-title {
    font-size: clamp(1.8rem, 6vw, 3rem);
    margin: 4rem 0 2rem;
  }

  .numbers-history-text{
    text-align: left;
  }

  .numbers-section-title::after {
    width: 60px;
    height: 3px;
  }

  .numbers-history-content,
  .numbers-employee-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .numbers-history-logo{
    flex-direction: column;
    gap: 2.5rem;
  }


  .numbers-history-logo .arrow img {
    height: auto;
    transform: rotate(90deg);
    margin: 0 auto;
  }

  .employee-number {
    font-size: 1.5rem;
  }
  .numbers-gender-content{
    gap: 1rem;
  }
  .gender-ratio{
    gap: 0;
  }
  .gender-label{
    display: inline-block;
    width: 40px;
  }
  .gender-icon img {
    max-width: 182px;
    width: calc(100% - 10vw);
    margin: 0 auto;
    height: auto;
  }

  .gender-label {
    font-size: 1.2rem;
  }
  .gender-separator {
    font-size: 1.5rem;
  }
}

/* ==============================
   休日
============================== */
.holiday-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.holiday-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.holiday-text {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-gray-dark);
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.holiday-image img {
  max-width: 240px;
  width: 100%;
  height: auto;
}

.holiday-description {
    margin-top: 2rem;
    line-height: 1.8;
    font-size: 1rem;
    color: var(--color-text);
    display: inline-block;
    text-align: left;
}

/* ==============================
   従業員数推移
============================== */
.headcount-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.headcount-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-gray-dark);
}

.headcount-text p + p {
  margin-top: 1.5rem;
}

.headcount-image {
  flex: 1;
  text-align: center;
}

.headcount-image img {
  display: block;
  margin: 0 auto;
  max-width: 480px;
  width: 100%;
  height: auto;
}

/* ==============================
   職種別割合
============================== */
.jobtype-content {
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  gap: 2rem;
  flex-wrap: nowrap;
  margin-top: 2rem;
}

.jobtype-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 340px;
  min-height: 240px;
  text-align: center;
  padding: 1rem 0;
  box-sizing: border-box;
}

.jobtype-label {
  font-size: clamp(1rem, 1.8vw + 0.2rem, 1.65rem);
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
  margin: 1rem auto;
}


.jobtype-icon {
  max-width: 100px;
  width: 100%;
  height: auto;
  display: block;
  margin: auto 0;
  object-fit: contain; /* 念のためアスペクト比保護 */
}


.jobtype-percent {
  font-size: 1.8rem;
  font-weight: bold;
  margin-top: 0.5rem;
}

.jobtype-highlight {
  color: var(--color-primary);
  font-weight: bold;
  font-size: clamp(2.5rem, 6vw, 4rem); /* ← 画面幅に応じて可変 */
  padding: 0 var(--space-xs);
  line-height: 1.2;
}

.job-description {
    margin-top: 2rem;
    line-height: 1.8;
    font-size: 1rem;
    color: var(--color-text);
    text-align: left;
    display: flex;
    justify-content: center;
}

/* ==============================
   スマホ対応========== */
@media screen and (max-width: 768px) {
  .holiday-content {
    flex-direction: column;
  }
  .holiday-item {
    align-items: center;
    text-align: center;
  }

  .holiday-text {
    font-size: 1.5rem;
  }

  .holiday-image img {
    width: clamp(140px, 30vw, 240px);
  height: auto;

  }

  .headcount-content {
    flex-direction: column-reverse;
    gap: 2rem;
  }

  .headcount-text {
    text-align: left;
  }

  .headcount-image img {
    width: 90%;
    max-width: 100%;
    height: auto;
  }

  .jobtype-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
  }

  .jobtype-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
    max-width:100px ;
    justify-content: center;
    min-height: auto;
  }

  .jobtype-icon {
    width: clamp(140px, 20vw, 160px);
    height: auto;
    flex-shrink: 0;
  }

  .jobtype-item-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
  }

  .jobtype-label {
    font-size: clamp(1.1rem, 2vw, 1.65rem);
    font-weight: bold;
    white-space: nowrap;
    margin: 0;
  }

  .jobtype-percent {
    font-size: 1.4rem;
    font-weight: normal;
  }

}


/* PC：デフォルト（3列×2段） */

.numbers-service-content{
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.numbers-service-text {
  margin-bottom: 2rem;
}

.numbers-service-number {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.numbers-service-number p:first-child{
  margin-right: 2rem;
}

.numbers-cards.pc-only {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 2rem;
  margin-top: 3rem;
  width: 100%;
  box-sizing: border-box;
}

.numbers-card {
  background-color: var(--color-background-light);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease;
}


.numbers-card-title {
  background-color: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: bold;
  font-size: 1.25rem;
  text-align: center;
  white-space: nowrap;
  width: 100%;
  box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.3);
}

.numbers-card-body {
  text-align: center;
  padding: 1.25rem;
}

.numbers-card-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  gap: 1.25rem;
  min-height: 140px;
}

.numbers-card-icon {
  width: clamp(80px, 20vw, 130px);
  height: auto;
  object-fit: contain;
}

.numbers-card-count {
  font-size: 1.8rem;
  font-weight: bold;
  white-space: nowrap;
}


.numbers-card-count span {
  color: var(--color-primary);
  font-weight: bold;
  font-size: clamp(2.0rem, 6vw, 4rem); /* ← 画面幅に応じて可変 */
  padding: 0 var(--space-xs);
  line-height: 1.2;}

.numbers-card-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-background-dark);
  font-weight: bold;
}

/* タブレット以下：2列 */
@media screen and (max-width: 1024px) {
  .numbers-cards.pc-only {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ以下：1列 */
@media screen and (max-width: 768px) {

  .numbers-cards.pc-only {
    grid-template-columns: 1fr;
  }

  .numbers-service-content{
    text-align: left;
  }

  .numbers-service-text {
    margin-bottom: 2rem;
  }

  .numbers-service-number {
    font-size: 1.25rem;
  }

  .numbers-service-number p:first-child{
    margin-right: 1.25rem;
    line-height: 1.5;
  }

/* スマホ専用：Swiper表示のカードスタイル */
.numbers-cards.swiper-container.sp-only {
  margin: 0 18px;/* カード中央寄せ */
  padding-bottom: 3rem; /* ページネーションとの間隔 */
}



/* NumbersページのスマホSwiper専用：ドットの位置と見た目調整 */
.numbers-cards.sp-only .swiper-pagination {
  text-align: center;
  position: relative;
  margin-top: 1rem;
  z-index: 10;
}

.numbers-cards.sp-only .swiper-pagination-bullet {
  background-color: var(--color-primary);
  opacity: 0.3;
  margin: 0 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.numbers-cards.sp-only .swiper-pagination-bullet-active {
  opacity: 1;
}



.numbers-cards .swiper-slide {
  width: 90%;
  max-width: 320px;
  /* margin: 0 auto; */

}


.numbers-card-body {
  text-align: center;
  padding: 1.25rem;
}

.numbers-card-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.numbers-card-icon {
  width: clamp(80px, 40vw, 130px);
  height: auto;
  object-fit: contain;
}

.numbers-card-count {
  font-size: 1.5rem;
  font-weight: bold;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.numbers-card-count span {
  color: var(--color-primary);
  font-weight: bold;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  padding: 0 var(--space-xs);
  line-height: 1.2;
}

.numbers-card-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-background-dark);
  font-weight: bold;
  text-align: left;
  margin-bottom: 0.5rem;
}

/* 右寄せ用 utility */
.text-right {
  text-align: right;
}
}

/* ==============================
   モビーク
============================== */
.numbers-block.numbers-mobeak {
  margin-bottom: 6rem;
}

.numbers-mobeak-text {
  margin-bottom: 2rem;


}

.numbers-mobeak-number {
  font-size: 1.8rem;
  font-weight: bold;
}

.numbers-mobeak-content{
  text-align: center;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: center;
}

.numbers-mobeak-image img {
  max-width: 320px;
  width: calc(100% - 10vw);
  height: auto;
  margin: 0 auto;
  display: block;
}

.numbers-mobeak-description {
  margin-top: 2rem;
  line-height: 1.8;
  font-size: 1rem;
  color: var(--color-text);
  display: inline-block;
  text-align: left;
}

.numbers-mobeak-content .numbers-note{
  margin-top: 1rem;
  font-weight: bold;
}
/* ==============================
   スマホ対応========== */
@media screen and (max-width: 768px) {

  .numbers-mobeak-content{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .numbers-mobeak-image .numbers-note{
    margin-top: 2rem;
    font-weight: bold;
  }

}
/* ==============================
   プロダクト
============================== */

.numbers-product-logo {
  max-width: 345px;
  margin: 0 auto 100px;
  display: block;
}

.numbers-product-logo img {
  width: 100%;
}

.numbers-product-content{
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;

}

.numbers-product-bg-wrap {
  position: relative;
  /* width: 100%; */
  max-width: 800px; /* 任意の最大幅 */
}

.numbers-product-bg {
  width: 100%;
  height: auto;
  display: block;
}

.numbers-product-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  /* margin: 3rem auto; */
  z-index: 1;
  color: var(--color-background-dark)
}

.numbers-product-text .numbers-note {
  font-weight: bold;
  line-height: 3;
}

.numbers-product-number {
  font-size: 1.8rem;
  font-weight: bold;
  align-items: center;
  margin-bottom: 3rem;
}

/* ==============================
   スマホ対応========== */
   @media screen and (max-width: 768px) {
    .numbers-product-logo{
      max-width: 190px;
      margin: 40px auto;
    }

      .numbers-product-content.sp-only {
        text-align: center;
        padding: 2rem 1.5rem;
      }

      .numbers-product-text {
        position: static;
    top: auto;
    left: auto;
    transform: none;
    margin-top: 0;
    width: 100%;
      }

      .numbers-product-number {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 2rem;
      }

      .numbers-product-icon,
      .numbers-product-icon-bottom {
        margin: 2rem 0;
      }

      .numbers-product-icon img,
      .numbers-product-icon-bottom img {
        width: 80%;
        max-width: 200px;
        height: auto;
      }

      .numbers-note {
        font-weight: bold;
        line-height: 2;
        font-size: 1rem;
      }
      .numbers-product-content.sp-only .numbers-product-icon img,
      .numbers-product-content.sp-only .numbers-product-icon-bottom img {
        width: calc(0.254vw * 100 - 15.25px);
        max-width: 180px;
        height: auto;
        display: block;
        margin: 0 auto;
      }

   }

/* ==============================
   プロダクトグリッド
============================== */
/* ブロック全体 */
.numbers-product-service {
  padding: 4rem 0;
  background-color: #fff;
}

/* グリッド：2カラム × 5段（最大10アイテム） */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem; /* row: 3rem, column: 4rem */
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 2rem;
  box-sizing: border-box;
  align-items: stretch;
  column-gap: 2rem; /* ← カラム間 */
  row-gap: 6.25rem;    /* ← 行間を */
}

/* 各アイテム */
.service-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
}

/* タイトル */
.service-title {
  font-size: clamp(1.5rem, 1.6vw + 0.5rem, 2.0rem);
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-align: center;
  width: 100%;
  white-space: nowrap;        /* 改行させない */
  overflow: hidden;           /* はみ出しを防ぐ（任意） */
  text-overflow: ellipsis;    /* 省略記号で切る（任意） */
}

/* 数値＋アイコンラッパー */
.service-visual {
  display: flex;
  flex-direction: column; /* デフォルト：縦並び */
  align-items: center;
  gap: 2.5rem;
  margin-bottom: 1rem;
}

/* 横並び指定（イレギュラー） */
.service-visual.is-horizontal {
  flex-direction: row;
  justify-content: center; /* 横並びも中央揃え */
  align-items: center;
  gap: 1rem;
}
/* 横並び時は service-icon の中身（img）も中央に揃える */
.service-visual.is-horizontal .service-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  max-width: 200px;
  flex-shrink: 0;
}
/* 数値 */
.service-number {
  font-size: clamp(1.0rem, 2vw + 0.5rem, 2rem);
  font-weight: bold;
  line-height: 1.4;
}

.service-number .numbers-highlight {
  font-size: clamp(1.6rem, 5vw + 0.5rem, 6rem);
  color: var(--color-primary, #c92e42);
  font-weight: bold;
}

/* 共通：アイコン画像 */
.service-icon img {
  height: auto;
  display: block;
  max-width: 275px;
}

.service-visual:not(.is-horizontal) .service-icon img {
  width: 100%;
}

/* 横並び */
.service-visual.is-horizontal .service-icon img {
  width: 100%;
  height: auto;
  display: block;
}

/* 説明文 */
.service-description {
  font-size: clamp(0.9rem, 1vw + 0.5rem, 1rem);
  line-height: 1.7;
  color: #333;
  display: inline-block;
  max-width: 360px;
}

@media (max-width: 768px) {

  /* グリッドを1カラムに */
  .service-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 3rem; /* スマホでも適度な余白は残す */
    padding: 0 1rem;
    justify-items: center; /* 中央寄せ */
  }

  /* 各アイテムの中央寄せ */
  .service-item {
    width: 100%;
    max-width: 500px; /* コンテンツ幅制限（任意） */
    text-align: center;
  }

  /* ビジュアル（数値＋画像）の縦並びに固定 */
  .service-visual {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* タイトルの改行許可（必要に応じて） */
  .service-title {
    white-space: normal;
    font-size: clamp(1.2rem, 4vw + 0.2rem, 2rem);
  }

  /* 数値も中央揃え */
  .service-number {
    text-align: center;
  }

  /* 画像サイズ調整（スマホ用） */
  .service-icon img {
    width: clamp(3rem, 20vw, 5rem);
  }

  /* 説明文のマージン調整 */
  .service-description {
    margin-top: 1rem;
  }
}
