/* =========================================================
   pages.css — 下層ページ（機能の詳細・サポート・規約）
   ========================================================= */

/* ---------- ページの見出し ---------- */
.page-hero { position: relative; overflow: hidden; text-align: center; padding: 56px 0 40px; }
.page-hero .blob-a { width: 320px; height: 320px; left: -100px; top: -60px; }
.page-hero .blob-b { width: 300px; height: 300px; right: -90px; top: 20px; }
.page-hero h1 { font-weight: 900; font-size: clamp(28px, calc(7 * var(--vw, 1vw)), 46px); line-height: 1.4; margin-top: 8px; }
.page-hero .lead { max-width: 560px; margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .page-hero { padding: 88px 0 56px; } }

/* ---------- 機能：4つのテーマ ---------- */
.pillars { display: grid; gap: 16px; }
.pillars figure { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-soft); background: #fff; }
.pillars img { width: 100%; aspect-ratio: 1672 / 941; }
@media (min-width: 760px) { .pillars { grid-template-columns: 1fr 1fr; gap: 24px; } }

/* ---------- 機能：くわしく ---------- */
.detail-list { display: grid; gap: 64px; }
.detail { display: grid; gap: 22px; align-items: start; scroll-margin-top: calc(var(--header-h) + 16px); }
.detail-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-pop); background: #fff; }
.detail-media img { width: 100%; aspect-ratio: 1672 / 941; }
.detail h2 { font-weight: 900; font-size: clamp(22px, calc(5.6 * var(--vw, 1vw)), 30px); line-height: 1.5; margin-top: 8px; }
.detail .desc { color: var(--sub); margin-top: 10px; }
.points { margin-top: 16px; display: grid; gap: 8px; }
.points li {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px;
  font-size: 14.5px; color: var(--ink); line-height: 1.6;
}
.points svg { width: 18px; height: 18px; flex: none; color: var(--pink); margin-top: 3px; }
.detail .note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.detail .btn { margin-top: 18px; }
@media (min-width: 900px) {
  .detail-list { gap: 112px; }
  .detail { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
  .detail:nth-child(even) .detail-media { order: 2; }
}

.jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.jump a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px;
}
.jump a:hover { border-color: #E6C3D0; color: var(--link); }

/* ---------- サポート：よくある質問 ---------- */
.faq-group + .faq-group { margin-top: 40px; }
.faq-group h2 { font-weight: 900; font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.faq-group h2::before { content: ""; width: 6px; height: 22px; border-radius: 3px; background: var(--rainbow); }
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: 0 2px 8px rgba(35, 47, 85, .03); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 18px; font-weight: 700; line-height: 1.6;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-en); font-weight: 700; font-size: 14px; color: #fff; background: var(--rainbow);
}
.faq summary::after {
  content: ""; margin-left: auto; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, 0); }
.faq .answer { padding: 0 18px 18px 58px; color: var(--sub); font-size: 15px; }
.faq .answer p + p { margin-top: 8px; }
@media (min-width: 900px) { .faq-wrap { max-width: 820px; margin: 0 auto; } }

/* お問い合わせ */
.contact { margin-top: 56px; padding: 32px 24px; text-align: center; background: linear-gradient(135deg, #FFF4F6, #F6F0FD 55%, #EFF5FD); border-radius: var(--radius-lg); }
.contact h2 { font-weight: 900; font-size: 22px; }
.contact p { color: var(--sub); margin-top: 8px; }
.contact .btn { margin-top: 18px; }
.contact .slot { display: inline-block; margin-top: 14px; padding: 10px 18px; border-radius: 14px; background: #fff; border: 1.5px dashed #D9C6E8; color: var(--muted); font-size: 14px; }

/* ---------- 規約・ポリシー ---------- */
.legal { max-width: 800px; margin: 0 auto; }
.legal-meta { color: var(--muted); font-size: 14px; text-align: center; }
.legal-body {
  margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px 22px; line-height: 1.95; color: var(--ink);
  overflow-wrap: anywhere; /* 規約の URL・メールアドレスが 320px 幅ではみ出さないように */
}
.legal-body h2 { font-weight: 900; font-size: 19px; margin: 32px 0 10px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-weight: 700; font-size: 16px; margin: 20px 0 6px; }
.legal-body p + p, .legal-body ul, .legal-body ol { margin-top: 10px; }
.legal-body ul { list-style: disc; padding-left: 1.4em; }
.legal-body ol { list-style: decimal; padding-left: 1.4em; }
.legal-placeholder { color: var(--muted); text-align: center; padding: 40px 0; }
@media (min-width: 900px) { .legal-body { padding: 48px 56px; } }
