/* ============================================================
   レーザー加工ビジネスのページ（/market/）共通スタイル
   2026-08-26 作成
   ============================================================ */

.p-market {
  --ues-yellow: #f2c300;       /* ブランドの黄色 */
  --ues-yellow-dark: #d9a300;  /* 明るい背景の上で使う濃いめの黄色 */
}

.p-market__body { padding: 6rem 0 8rem; }
@media screen and (max-width: 1023px) {
  .p-market__body { padding: 4rem 0 5rem; }
}

/* ---- 見出し ---- */
.p-market__h2 {
  font-size: 2.6rem;
  font-weight: bold;
  line-height: 1.5;
  margin-bottom: 2.4rem;
  padding-left: 1.6rem;
  border-left: 4px solid var(--ues-yellow);
}
@media screen and (max-width: 1023px) {
  .p-market__h2 { font-size: 2rem; margin-bottom: 1.8rem; }
}

/* ---- 本文 ---- */
.p-market__text {
  font-size: 1.6rem;
  line-height: 2.125;
}
.p-market__text + .p-market__text { margin-top: 1.6rem; }
.p-market__text.--center { text-align: center; }
@media screen and (max-width: 1023px) {
  .p-market__text { font-size: 1.5rem; line-height: 1.9; }
  .p-market__text.--center { text-align: left; }
}

.p-market__sec { margin-bottom: 7rem; }
.p-market__sec:last-of-type { margin-bottom: 0; }
@media screen and (max-width: 1023px) {
  .p-market__sec { margin-bottom: 5rem; }
}

/* ---- 画像のまとまり ---- */
.p-market__grid {
  display: grid;
  gap: 2.4rem;
  margin: 2.4rem 0;
  align-items: start;
}
.p-market__grid.--1 { grid-template-columns: 1fr; }
.p-market__grid.--2 { grid-template-columns: repeat(2, 1fr); }
.p-market__grid.--3 { grid-template-columns: repeat(3, 1fr); }
.p-market__grid.--4 { grid-template-columns: repeat(4, 1fr); }
.p-market__grid img {
  width: 100%;
  height: auto;
  display: block;
}
.p-market__grid .p-market__text { font-size: 1.5rem; line-height: 1.95; }
.p-market__grid figure + .p-market__text { margin-top: 1.2rem; }

.p-market__fig { margin: 2.4rem 0; }
.p-market__fig img { max-width: 100%; height: auto; display: block; }

@media screen and (max-width: 1023px) {
  .p-market__grid { gap: 1.2rem; margin: 1.8rem 0; }
  .p-market__grid.--3,
  .p-market__grid.--4 { grid-template-columns: repeat(2, 1fr); }
  .p-market__grid .p-market__text { font-size: 1.4rem; }
}

/* ---- 一覧のカード（/market/ トップ） ---- */
.p-market__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.4rem;
  margin: 5rem 0 0;
  list-style: none;
}
.p-market__card {
  display: block;
  height: 100%;
  color: #282828;
  text-decoration: none;
}
.p-market__card-img {
  overflow: hidden;
  border-radius: 1rem;
}
.p-market__card-img img {
  width: 100%;
  height: auto;
  display: block;
  transition: 0.4s;
}
.p-market__card-title {
  display: block;
  margin-top: 1.4rem;
  font-size: 1.8rem;
  font-weight: bold;
  line-height: 1.5;
  padding-left: 1.2rem;
  border-left: 4px solid var(--ues-yellow);
}
.p-market__card-text {
  display: block;
  margin-top: 0.8rem;
  font-size: 1.45rem;
  line-height: 1.8;
}
@media (any-hover: hover) {
  .p-market__card:hover .p-market__card-img img { transform: scale(1.05); }
}
@media screen and (max-width: 1023px) {
  .p-market__cards { grid-template-columns: repeat(2, 1fr); gap: 2.4rem 1.4rem; margin-top: 3rem; }
  .p-market__card-title { margin-top: 1rem; font-size: 1.5rem; padding-left: 0.9rem; border-left-width: 3px; }
  .p-market__card-text { font-size: 1.3rem; }
}

/* ---- ほかの活用シーン（旧デザインのサイドバーの代わり） ---- */
.p-market__nav { margin-top: 8rem; }
.p-market__nav-li {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem 2.4rem;
  list-style: none;
}
.p-market__nav-li a {
  display: block;
  position: relative;
  padding: 1.2rem 1rem 1.2rem 2.2rem;
  font-size: 1.5rem;
  line-height: 1.6;
  color: #282828;
  text-decoration: none;
  border-bottom: 1px solid #e5e1d8;
  transition: 0.3s;
}
.p-market__nav-li a::before {
  content: "";
  position: absolute;
  top: 1.9rem;
  left: 0.4rem;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--ues-yellow-dark);
  border-bottom: 2px solid var(--ues-yellow-dark);
  transform: rotate(-45deg);
}
@media (any-hover: hover) {
  .p-market__nav-li a:hover { color: #7a6a00; border-bottom-color: var(--ues-yellow); }
}
@media screen and (max-width: 1023px) {
  .p-market__nav { margin-top: 5rem; }
  .p-market__nav-li { grid-template-columns: repeat(1, 1fr); gap: 0; }
  .p-market__nav-li a { font-size: 1.45rem; padding: 1.1rem 1rem 1.1rem 2rem; }
  .p-market__nav-li a::before { top: 1.7rem; }
}

.p-market__btn { display: flex; justify-content: center; margin-top: 4rem; }
@media screen and (max-width: 1023px) {
  .p-market__btn { margin-top: 3rem; }
}

/* ---- 資料請求のご案内 ---- */
.p-market__request { padding: 0 0 8rem; }
.p-market__request-li {
  max-width: 64rem;
  margin: 3rem auto 0;
  padding: 2.8rem 3rem;
  background-color: #f1efe9;
  border-radius: 1rem;
  list-style: none;
}
.p-market__request-li li {
  position: relative;
  padding-left: 2.8rem;
  font-size: 1.55rem;
  line-height: 1.9;
}
.p-market__request-li li + li { margin-top: 1.2rem; }
.p-market__request-li li::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  left: 0.4rem;
  width: 1.4rem;
  height: 0.7rem;
  border-left: 3px solid var(--ues-yellow-dark);
  border-bottom: 3px solid var(--ues-yellow-dark);
  transform: rotate(-45deg);
}
@media screen and (max-width: 1023px) {
  .p-market__request { padding: 0 0 5rem; }
  .p-market__request-li { padding: 2rem 1.8rem; }
  .p-market__request-li li { font-size: 1.45rem; padding-left: 2.4rem; }
}

/* ============================================================
   写真の枠を揃える（2026-08-27 追加）

   元の写真は縦横比が 0.59〜2.50 とバラバラで、同じ行に並べても
   高さが揃いませんでした。枠の比率を固定し、写真は切り抜かずに
   枠の中に収める（object-fit: contain）方式にしています。
   白背景の写真と黒背景の写真が混在しているため、
   余白はどちらとも相性のよい薄いベージュにしています。
   ============================================================ */
.p-market__grid figure { margin: 0; }
.p-market__grid figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  display: block;
  background-color: #f4f2ed;
  border-radius: 0.6rem;
}
/* 写真の説明文 */
.p-market__grid figcaption {
  margin-top: 0.9rem;
  font-size: 1.35rem;
  line-height: 1.65;
  color: #555;
}
/* 文章と写真が並ぶセルでは、写真の下に余白を取る */
.p-market__grid > div > figure { margin-bottom: 1.2rem; }
@media screen and (max-width: 1023px) {
  .p-market__grid figcaption { margin-top: 0.7rem; font-size: 1.25rem; }
}
