﻿/* =========================================================
   追記：sb_pg_base.css（スマホ）末尾
   ・art-faq … Q&A（/shop/pages/faq.aspx の faq-block の見た目を流用。開閉は <details> で行うためJS不要）
   ・art-box … 囲み枠（目次 art-toc の背景・余白を流用）
   ========================================================= */

/* ---------- Q&A ---------- */
html[data-browse-mode="S"] body.page-page .pg-article-section .art-faq {
  margin: 2rem 0;
}
html[data-browse-mode="S"] body.page-page .pg-article-section .art-faq + .art-faq {
  margin-top: 1.2rem;
}
html[data-browse-mode="S"] body.page-page .pg-article-section .art-faq > summary {
  position: relative;
  padding: 1.4rem 4rem 1.4rem 5rem;
  background: #F4F4F4;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
}
html[data-browse-mode="S"] body.page-page .pg-article-section .art-faq > summary::-webkit-details-marker {
  display: none;
}
html[data-browse-mode="S"] body.page-page .pg-article-section .art-faq[open] > summary {
  background: #DCE7E4;
}
/* Qバッジ */
html[data-browse-mode="S"] body.page-page .pg-article-section .art-faq > summary::before {
  content: "Q";
  position: absolute;
  left: 1rem;
  top: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--art-key);
  font-size: 1.5rem;
  font-weight: 700;
}
/* ＋／－アイコン */
html[data-browse-mode="S"] body.page-page .pg-article-section .art-faq > summary::after {
  content: "";
  position: absolute;
  right: 1.8rem;
  top: 50%;
  width: 1.1rem;
  height: 1.1rem;
  transform: translateY(-50%);
  background:
    linear-gradient(var(--art-key), var(--art-key)) center / 1.1rem 1px no-repeat,
    linear-gradient(var(--art-key), var(--art-key)) center / 1px 1.1rem no-repeat;
}
html[data-browse-mode="S"] body.page-page .pg-article-section .art-faq[open] > summary::after {
  background: linear-gradient(var(--art-key), var(--art-key)) center / 1.1rem 1px no-repeat;
}
/* 回答 */
html[data-browse-mode="S"] body.page-page .pg-article-section .art-faq__a {
  position: relative;
  padding: 2rem 0 0.4rem 5rem;
}
html[data-browse-mode="S"] body.page-page .pg-article-section .art-faq__a::before {
  content: "A";
  position: absolute;
  left: 1rem;
  top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--art-key);
  color: #FFFFFF;
  font-size: 1.5rem;
  font-weight: 700;
}
html[data-browse-mode="S"] body.page-page .pg-article-section .art-faq__a > :first-child {
  margin-top: 0;
}

/* ---------- 囲み枠 ---------- */
html[data-browse-mode="S"] body.page-page .pg-article-section .art-box {
  margin: 3rem 0;
  padding: 1.8rem 2rem;
  background: var(--art-bg);
}
html[data-browse-mode="S"] body.page-page .pg-article-section .art-box > :first-child {
  margin-top: 0;
}
html[data-browse-mode="S"] body.page-page .pg-article-section .art-box > :last-child {
  margin-bottom: 0;
}
