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

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

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

/* ---------- Q&Aを含む本文ブロックは親(flex)の幅いっぱいに広げる ---------- */
html[data-browse-mode="P"] body.page-page .block-page-block--contents-body-text-1column:has(> .pg-article-section .art-faq) {
  width: 100%;
}
