/* =============================================================
   Vanilla overrides
   Bridges <details>/<summary> markup to the React-era component
   styling so the vanilla site renders identically.
   ============================================================= */

/* ---- Hide native disclosure marker globally inside our scope ---- */
.site-frame details > summary {
  list-style: none;
  cursor: pointer;
}
.site-frame details > summary::-webkit-details-marker { display: none; }
.site-frame details > summary::marker { content: ""; }

/* =============================================================
   FAQ (first.html) — <details class="faq-cat"> > <details class="qa">
   ============================================================= */
.ph-faq { display: block; }

/* Category — outer accordion */
.ph-faq details.faq-cat {
  margin: 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.ph-faq details.faq-cat > summary {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: .04em;
  color: var(--brand-500);
  position: relative;
}
.ph-faq details.faq-cat > summary::before {
  content: "";
  display: block;
  width: 10px; height: 10px;
  border-radius: 9999px;
  background: var(--brand-300);
  justify-self: center;
}
.ph-faq details.faq-cat > summary::after {
  content: "＋";
  color: var(--muted);
  font-weight: 800;
  font-size: 16px;
  justify-self: end;
}
.ph-faq details.faq-cat[open] > summary { background: var(--brand-50); }
.ph-faq details.faq-cat[open] > summary::after { content: "−"; }

/* Inner QA */
.ph-faq details.qa {
  margin: 10px 12px;
  background: var(--brown-50);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.ph-faq details.qa > summary {
  display: grid;
  grid-template-columns: 32px 1fr 24px;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
}
.ph-faq details.qa > summary::after {
  content: "＋";
  color: var(--muted);
  font-weight: 800;
  font-size: 14px;
  justify-self: end;
  margin-top: 4px;
}
.ph-faq details.qa[open] > summary::after { content: "−"; }

/* badges */
.ph-faq .badge {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 9999px;
  color: #fff;
  font-weight: 800; font-size: 14px;
  flex-shrink: 0;
}
.ph-faq .badge.q { background: var(--brand-500); }
.ph-faq .badge.a { background: var(--positive); }

/* Answer */
.ph-faq .answer {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: var(--white);
  align-items: start;
}
.ph-faq .answer .content {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink);
}

/* Mobile */
@media (max-width: 640px) {
  .ph-faq details.faq-cat > summary { font-size: 16px; padding: 14px 14px; }
  .ph-faq details.qa { margin: 8px 8px; }
  .ph-faq details.qa > summary { font-size: 13px; padding: 10px 12px; }
}

/* =============================================================
   Plan accordion (plan.html) — <details class="plan-acc">
   ============================================================= */
.plan-wrap { box-sizing: border-box; }
.plan-figure { box-sizing: border-box; max-width: 100%; }
.plan-figure img { max-width: 100%; box-sizing: border-box; }

.plan-acc {
  display: block;
  border: 0;
}
.plan-acc > summary.plan-accordion-head {
  box-sizing: border-box;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 18px;
  background: var(--brown-50);
  color: var(--brown-600);
  border: 1px solid var(--brown-200);
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--font-headbtn);
  font-weight: 900; font-size: 15px;
  transition: background .15s var(--ease-out), color .15s var(--ease-out);
  list-style: none;
}
.plan-acc > summary.plan-accordion-head i {
  font-style: normal; font-size: 22px; line-height: 1;
}
.plan-acc[open] > summary.plan-accordion-head {
  background: var(--brown-500);
  color: #fff;
  border-color: var(--brown-500);
  border-radius: 10px 10px 0 0;
}
.plan-acc[open] > summary.plan-accordion-head i {
  /* swap glyph: visually "−" */
  font-size: 0;
}
.plan-acc[open] > summary.plan-accordion-head i::before {
  content: "−"; font-size: 22px;
}
.plan-acc > .plan-accordion-body {
  border: 1px solid var(--brown-200);
  border-top: 0;
  background: var(--white);
  border-radius: 0 0 10px 10px;
  padding: 16px 18px 18px;
  margin-top: -1px;
}

/* =============================================================
   "その他" — Options/Gratitude/Meals (also <details>)
   ============================================================= */
details.plan-others {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
details.plan-others > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 22px;
  background: var(--brown-50);
  color: var(--brown-600);
  font-family: var(--font-headbtn);
  font-weight: 900; font-size: 17px;
  position: relative;
}
details.plan-others > summary::after {
  content: "＋";
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 20px;
}
details.plan-others[open] > summary { background: var(--brown-500); color: #fff; }
details.plan-others[open] > summary::after { content: "−"; }

/* =============================================================
   spec-list inside plan accordion — column & spacing tweaks
   ============================================================= */
/* 左列（物品名）を広げ、右列（内容）を狭める */
.plan-acc .spec-list {
  grid-template-columns: minmax(13em, max-content) 1fr;
}
/* 物品名：右寄せ＋右端に余白（内容との間）、左端に小余白 */
.plan-acc .spec-list dt {
  text-align: right;
  padding: 7px 10px 7px 8px;
}
/* 内容：左端に小余白（物品名との間）*/
.plan-acc .spec-list dd {
  padding: 7px 4px 7px 10px;
}
