/* =========================
   Page: QUARITY（/quarity）
   File: 30_pages_quarity.css
========================= */

/* =========================================================
   Page padding
========================================================= */
.quarity-page .area-outer {
  padding: 56px 32px;
}

/* =========================================================
   Lead
========================================================= */
.qp-lead {
  margin: 0 0 44px;
  text-align: center;
  line-height: 1.9;
  font-size: 1.2rem;
  font-weight: 700;
}

/* =========================================================
   Points
========================================================= */
.qp-points {
  display: grid;
  gap: 70px;
}

/* 2カラム + 右側を縦中央（vertical-align: middle 相当） */
.qp-point {
  display: flex;
  gap: 32px;
  align-items: stretch; /* 左右の高さを揃える */
}

/* 左：ラベル・アイコン・見出し */
.qp-point__left {
  flex: 0 0 240px;
  display: grid;
  row-gap: 10px;
  justify-items: center;
  text-align: center;
}

.qp-point__label {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--pink);
}

.qp-point__icon {
  width: 56px;
  height: auto;
  display: block;
}

.qp-point__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
}

/* 右：文章（縦中央） */
.qp-point__right {
  flex: 1 1 auto;
  max-width: 720px; /* 読みやすい行幅の上限 */
  display: flex;
  align-items: center; /* ← 縦中央 */
}

.qp-point__text {
  margin: 0;
  width: 100%;
  font-size: 1rem;
  line-height: 2;
  text-align: left;
}

/* 区切り線 */
.qp-divider {
  margin: 56px 0 48px;
  border: 0;
  border-top: 2px dashed rgba(56, 162, 151, 0.45);
}

/* =========================================================
   Cases
========================================================= */
.qp-cases {
  position: relative; /* deco基準 */
}

/* タイトルを中央に置くコンテナ */
.qp-cases__head {
  display: grid;
  justify-items: center;
  row-gap: 14px;
}

/* 見出し（現状：枠なし・transformなし） */
.qp-cases__title {
  margin: 0 0 44px;
  display: inline-block;
  padding: 14px 32px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
}

/* 外枠 */
.qp-cases__box {
  position: relative;
  border: 2px solid var(--pink);
  border-radius: 20px;
  background: #fff;
  padding: 28px 30px;
}

/* 右上：花（装飾） */
.qp-cases__deco {
  position: absolute;
  right: 0;
  top: -30px;
  width: 88px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

/* Case grid */
.qp-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
}

.qp-case {
  padding: 10px 10px 0;
}

/* caseタイトル：中央寄せ + 下線（枠いっぱい） */
.qp-case__title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;

  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;

  position: relative;
  padding-bottom: 12px;
}

.qp-case__title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(242, 177, 173, 0.9);
}

.qp-case__tag {
  font-weight: 800;
  color: var(--blue);
}

.qp-case__sub {
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.qp-case__text {
  margin: 0;
  line-height: 2;
}

/* 下向き三角 */
.qp-case__sub::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 16px auto 0;
  border-left: 18px solid transparent;
  border-right: 18px solid transparent;
  border-top: 14px solid rgba(242, 177, 173, 0.75);
}

/* =========================================================
   Bottom
========================================================= */
.qp-bottom {
  margin-top: 52px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 36px;
  align-items: start;
}

.qp-info {
  display: grid;
  gap: 28px;
}

.qp-info__title {
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 800;
}

.qp-info__text {
  margin: 0;
  line-height: 2;
}

.qp-media {
  margin: 0;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.qp-media__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-20);
}

.qp-media__cap {
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 900px) {
  .quarity-page .area-outer {
    padding: 40px 16px;
  }

  .qp-lead {
    font-size: 1.05rem;
    margin-bottom: 34px;
  }

  /* Points */
  .qp-point {
    flex-direction: column;
    gap: 12px;
  }

  .qp-point__left {
    flex: none;
  }

  .qp-point__right {
    max-width: none;
  }

  .qp-divider {
    margin: 44px 0 38px;
  }

  /* Cases */
  .qp-cases__box {
    padding: 48px 16px 22px;
  }

  .qp-case-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .qp-cases__deco {
    width: 9vw;
    top: -18px;
    right: 4px;
  }

  /* Bottom */
  .qp-bottom {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
