/**
 * File Name: process-support-features.css
 * 2026-07-03 | Final Check (Fix Vertical Alignment)
 * 2026-07-15 | Fix mobile image spacing (prevent top/side sticking)
 */

/* ==============================================================================
 * SERVICE MENU SECTION (サービス内容)
 * ============================================================================== */
.p-common-service-contents-menu-section {
  width: 100%;
  padding: 50px 0 60px 0;
  background-color: #ffffff;
  color: #333333;
  font-family: "Helvetica Neue", Arial, "BIZ UDPGothic", "Meiryo", sans-serif;
  line-height: 1.7;
  box-sizing: border-box;
}

.p-common-service-contents-menu-section *,
.p-common-service-contents-menu-section *::before,
.p-common-service-contents-menu-section *::after {
  box-sizing: border-box;
}

.p-common-service-contents-menu-section__container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.p-common-service-contents-menu-section__title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--upper-color-2, #2b4365);
  margin: 0 0 35px 0;
  padding-bottom: 16px;
  border-bottom: 5px solid var(--upper-color-1, #1d3d5e);
  letter-spacing: 0.02em;
	font-family: "Kosugi Maru", sans-serif;
}

.p-common-service-contents-menu-section__list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.p-common-service-contents-menu-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid var(--lower-color-2, #c8ddf2);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

/* 💡 スマホ表示（初期値）でも画像の上・左右に余白を確保し、角を少し丸める */
.p-common-service-contents-menu-card__image {
  flex: 0 0 100%;
  background-color: #f7fafc;
  aspect-ratio: 16 / 9;
  width: calc(100% - 40px); /* 左右に20pxずつの隙間を作る */
  max-width: 280px;
  margin: 20px auto 0; /* 上に20pxの隙間を確保、左右は中央寄せ */
  border-radius: 4px; /* 画像の角を軽く丸める */
  overflow: hidden; /* 画像自体の角丸を効かせる */
}

.p-common-service-contents-menu-card__img {
  display: block;
  width: 100%;
  height: auto;
}

/* 💡 画像の上に隙間ができたため、コンテンツ側の余白を最適化 */
.p-common-service-contents-menu-card__content {
  flex: 1;
  padding: 20px 20px 25px 20px;
}

.p-common-service-contents-menu-card__card-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--upper-color-1, #1d3d5e);
  margin: 0 0 10px 0;
}

.p-common-service-contents-menu-card__card-lead {
  font-size: 1.05rem;
  font-weight: 700;
  color: #3b821a;
  margin: 0 0 20px 0;
}

.p-common-service-contents-menu-card__card-desc-list {
  list-style: none;
  margin: 0;
  padding: 15px 0 0 0;
  border-top: 1px solid #e1e8ee;
}

.p-common-service-contents-menu-card__card-desc-item {
  position: relative;
  font-size: 1.05rem;
  color: #444444;
  line-height: 1.45;
  padding-left: 1.2em; /* 左側に中点が浮かぶスペースを確保 */
  margin-bottom: 6px;
}
.p-common-service-contents-menu-card__card-desc-item::before {
  content: "・";
  font-weight: bold;
  position: absolute; /* 絶対配置に切り替えて文字の折り返し計算から除外 */
  left: 0; /* 親のpadding-leftの余白部分の左端に固定 */
  top: 0; /* 上端に合わせる */
}
.p-common-service-contents-menu-card__card-desc-item:last-child {
  margin-bottom: 0;
}

/* ==============================================================================
 * MEDIA QUERIES
 * ============================================================================== */

/* スマホ横向き（低画面高） */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .p-common-service-contents-menu-section {
    padding: 30px 0 40px 0;
  }
  .p-common-service-contents-menu-section__title {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }
  .p-common-service-contents-menu-section__list {
    gap: 24px;
  }
  .p-common-service-contents-menu-card {
    flex-direction: row;
    padding: 20px; /* カード内側すべてに一律で20pxの隙間を確保 */
    gap: 20px;
    overflow: visible;
  }
  .p-common-service-contents-menu-card__image {
    flex: 0 0 180px;
    width: 180px; /* 横向き時のサイズに上書きリセット */
    max-width: 180px;
    height: 120px;
    margin: 0; /* マージンをリセット */
    aspect-ratio: auto;
    border-radius: 4px;
    overflow: hidden;
  }
  .p-common-service-contents-menu-card__content {
    padding: 0;
  }
  .p-common-service-contents-menu-card__card-title {
    font-size: 1.3rem;
  }
  .p-common-service-contents-menu-card__card-lead {
    margin-bottom: 12px;
  }
  .p-common-service-contents-menu-card__card-desc-list {
    border-top: none;
    padding-top: 0;
  }
  .p-common-service-contents-menu-card__card-desc-item {
    font-size: 1rem;
    line-height: 1.45;
  }
}

/* タブレット・標準PCサイズ */
@media screen and (min-width: 768px) and (min-height: 501px) {
  .p-common-service-contents-menu-section {
    padding: 60px 0 80px 0;
  }
  .p-common-service-contents-menu-section__container {
    padding: 0 30px;
  }
  .p-common-service-contents-menu-section__title {
    font-size: 2.2rem;
    margin-bottom: 45px;
  }
  .p-common-service-contents-menu-section__list {
    gap: 45px;
  }

  /* 💡 解決策：左右2カラムのGridに変更 */
  .p-common-service-contents-menu-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-template-rows: none;
    column-gap: 40px;
    padding: 35px;
    align-items: start;
  }

  /* 左側の画像エリア */
  .p-common-service-contents-menu-card__image {
  grid-column: 1;
  grid-row: 1;
  width: 280px;
  height: auto;
  margin: 0;
  aspect-ratio: auto;
  border-radius: 4px;
  background-color: transparent;
  }

  /* 右側のテキストエリア */
  .p-common-service-contents-menu-card__content {
    display: block;
    grid-column: 2;
    grid-row: 1;
    padding: 0;
  }

  /* 右側の中身 */
  .p-common-service-contents-menu-card__card-title {
    font-size: 1.65rem;
    margin: 0 0 10px 0;
  }

  .p-common-service-contents-menu-card__card-lead {
    font-size: 1.15rem;
    margin: 0 0 18px 0;
  }

  .p-common-service-contents-menu-card__card-desc-list {
    border-top: none;
    padding-top: 0;
    margin: 0;
  }

  .p-common-service-contents-menu-card__card-desc-item {
    font-size: 1.1rem;
    line-height: 1.45;
  }
}

/* 大型デスクトップサイズ */
@media screen and (min-width: 1024px) and (min-height: 501px) {
  .p-common-service-contents-menu-section {
    padding: 70px 0 90px 0;
  }
  .p-common-service-contents-menu-card {
    column-gap: 50px;
    padding: 40px;
  }
}
