/* =====================
   自作HPページ専用スタイル
===================== */


/* =====================
   MOCKUP
===================== */

.wh-mockup-heading {
  display: block;
  text-align: center;
  margin: 3rem auto;
  margin-bottom: 2rem;

}

.wh-mockup-category {
  font-family: var(--font-en);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--text-light);
}

.wh-mockup-title {
  font-family: var(--font-ja);
  font-size: clamp(1rem, 3.5vw, 2rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.mockup-wrap {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  /* PCモックアップの縦横比に合わせて高さを確保 */
}

.mockup-img--pc {
  display: none;
}
.mockup-img--sp {
  display: block;
  width: 60%;
  margin: 0 auto;
}


/* =====================
   DESCRIPTION
===================== */
.wh-desc {
  padding: 3rem 1.25rem;
}

.wh-desc p {
  font-size: 1.4rem;
  color: var(--text-light);
  line-height: 2.2;
  max-width: 720px;
  margin: 0 auto;
  text-align: justify;
}


/* =====================
   SPEC TABLE
===================== */
.wh-spec {
  padding: 3rem 1.25rem 3.5rem;
}

.spec-list {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.spec-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
}
.spec-row dt {
  width: 8em;
  white-space: nowrap;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-light);
}

.spec-row dd {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 1rem 1.5rem;
  padding-left: 0;
}
.spec-row li{
  color: var(--text-light);
  margin-bottom: 10px;
}
.spec-item {
  display: contents; /* gridの子として2列に展開 */
}
.spec-label{
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  font-size: 1.4rem;
}
.spec-value{
  font-weight: 1.5rem;
}
.spec-label,
.spec-value {
  color: var(--text-light);
  white-space: nowrap;
}
.spec-row li{
  padding-left: 10px;
  border-left: 2px solid var(--accent);
}

/* =====================
   SCREENSHOTS
===================== */
.wh-screenshots {
  padding: 5rem 1.25rem 3rem 1.25rem;
}

.wh-screenshots .container {
  display: flex;
  flex-direction: column;
  gap: 8rem;
  align-items: flex-start;
}

.screenshot-block img {
  width: 100%;
  height: auto;
  display: block;
  border: 5px solid var(--border);
}

/* PC スクショ：常に表示 */
.screenshot-block--pc {
  width: 100%;
}

/* モバイル スクショ：SP では非表示、PC では横に並べる */
.screenshot-block--sp {
  width: 100%;
}



/* =====================
   タブレット (640px ~)
===================== */
@media (min-width: 640px) {
  .spec-row {
    grid-template-columns: 120px 1fr;
  }
}


/* =====================
   デスクトップ (960px ~)
===================== */
@media (min-width: 960px) {
  .wh-hero {
    padding: 5rem 2rem 4rem;
    min-height: 200px;
  }

  .wh-mockup-heading{
    margin-top: 7rem;
    margin-bottom: 0;
  }
  .wh-desc {
    padding: 4rem 2rem;
  }
 .wh-desc p{
  font-size: 1.5rem;
  line-height: 1.8;
 }

  .wh-spec {
    padding: 0 2rem 4rem;
  }
  .spec-row {
  display: flex;
  flex-direction: row;
}
.spec-row dt{
  font-size: 1.5rem;
  font-weight: 400;
}
.spec-row dd{
  font-size: 1.4rem;
}
  .wh-screenshots .container {
    flex-direction: row;
    align-items: flex-start;
  }
    .mockup-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
  }
    .mockup-img--pc {
    display: block;
    width: 100%;    /* PC時の幅など自由に */
  }
  .mockup-img--sp {
    display: none;
  }
  /* PC スクショ：幅広め */
  .screenshot-block--pc {
    flex: 2;
  }

  /* モバイル スクショ：PC表示では横に並ぶ・幅せまめ */
  .screenshot-block--sp {
    flex: 1;
  }
}

/* =====================
   モバイルのみ：SPスクショを非表示
   （SP端末ではモバイルのみ表示のため逆に常時表示でOK）
   ※デザイン仕様：「SPホームページはスマホのみ」
   → PCビューでは両方、SPビューではモバイルのみ表示
===================== */
@media (max-width: 639px) {
  .screenshot-block--pc {
    display: none;
  }

}