/* 下層ページ共通（FAQ・問い合わせ・招待・キャンペーン要項・404）。
   トップページと同じ書体（Noto Sans JP。題名は太さ900）・星空・ロンドンの背景画をのせる。本文の文言や各ページの配置には触れない。
   使い方: <body data-stage="library"> のように場面を指定し、各ページの <style> と hossy.css のあとに読み込む。
   法的文書（規約・ポリシーなど）には読み込まない。 */
body[data-stage] {
  position: relative;
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  background-color: #0A0A0A;
  overflow-x: clip;
}
body[data-stage="library"] { --kh-stage: url(/assets/site/stage/library.webp); }
body[data-stage="post-office"] { --kh-stage: url(/assets/site/stage/post-office.webp); }
body[data-stage="rooftop-night"] { --kh-stage: url(/assets/site/stage/rooftop-night.webp); }
body[data-stage="london-street"] { --kh-stage: url(/assets/site/stage/london-street.webp); }
body[data-stage="treasure"] { --kh-stage: url(/assets/site/stage/treasure.webp); }
body[data-stage="detective-room"] { --kh-stage: url(/assets/site/stage/detective-room.webp); }
body[data-stage="gallery"] { --kh-stage: url(/assets/site/stage/gallery.webp); }

/* 上のほうだけ夜空にする */
body[data-stage]::before {
  content: '';
  position: absolute; inset: 0 0 auto 0; height: 620px; z-index: 0; pointer-events: none;
  background-color: #0B0D14;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='370' height='370'%3E%3Cg fill='%23F5F0E6'%3E%3Ccircle cx='23' cy='41' r='.9' opacity='.55'/%3E%3Ccircle cx='96' cy='18' r='.6' opacity='.4'/%3E%3Ccircle cx='151' cy='92' r='1.1' opacity='.7'/%3E%3Ccircle cx='214' cy='37' r='.7' opacity='.45'/%3E%3Ccircle cx='301' cy='71' r='.8' opacity='.5'/%3E%3Ccircle cx='342' cy='158' r='.6' opacity='.35'/%3E%3Ccircle cx='61' cy='163' r='.7' opacity='.4'/%3E%3Ccircle cx='188' cy='201' r='.9' opacity='.6'/%3E%3Ccircle cx='262' cy='249' r='.6' opacity='.4'/%3E%3Ccircle cx='31' cy='287' r='1' opacity='.55'/%3E%3Ccircle cx='122' cy='318' r='.6' opacity='.35'/%3E%3Ccircle cx='327' cy='331' r='.8' opacity='.5'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='530' height='530'%3E%3Cg fill='%23E8D48B'%3E%3Cpath d='M48 70l1.7 5.3L55 77l-5.3 1.7L48 84l-1.7-5.3L41 77l5.3-1.7z' opacity='.7'/%3E%3Ccircle cx='197' cy='139' r='.8' opacity='.4'/%3E%3Cpath d='M388 47l1.2 3.8L393 52l-3.8 1.2L388 57l-1.2-3.8L383 52l3.8-1.2z' opacity='.6'/%3E%3Ccircle cx='471' cy='241' r='1.3' opacity='.65'/%3E%3Ccircle cx='283' cy='322' r='.8' opacity='.4'/%3E%3Cpath d='M91 395l1.4 4.6L97 401l-4.6 1.4L91 407l-1.4-4.6L85 401l4.6-1.4z' opacity='.55'/%3E%3Ccircle cx='412' cy='467' r='.9' opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 370px 370px, 530px 530px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
}
/* 題名の右うしろに背景画 */
body[data-stage]::after {
  content: '';
  position: absolute; top: 64px; right: max(0px, calc(50% - 620px)); z-index: 0; pointer-events: none;
  width: min(560px, 92vw); aspect-ratio: 3 / 2;
  background: var(--kh-stage) no-repeat center / contain;
  opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
body[data-stage] > main,
body[data-stage] > .main,
body[data-stage] > .container,
body[data-stage] > footer { position: relative; z-index: 1; }

body[data-stage] h1,
body[data-stage] .page-title {
  font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', sans-serif;
  font-weight: 900;
  letter-spacing: 0;
}
body[data-stage] .faq-category-title { letter-spacing: 0.14em; }

@media (max-width: 767px) {
  body[data-stage]::after { top: 56px; right: -8vw; opacity: .3; }
}

/* キャンペーン要項: 白い書類の見た目を、サイトと同じ黒地にそろえる（文言は変えない） */
body[data-doc] { color: #D9D3C7; }
body[data-doc] .container { background: transparent; }
body[data-doc] h1, body[data-doc] h2 { color: #F5F0E6; }
body[data-doc] h2 { border-bottom: 1px solid rgba(201, 168, 76, 0.35); }
body[data-doc] .meta { color: #9A9590; }
body[data-doc] a { color: #E8D48B; }
body[data-doc] th, body[data-doc] td { border-color: rgba(245, 240, 230, 0.16); }
body[data-doc] th { background: #161616; color: #F5F0E6; }
body[data-doc] .note { background: #141414; border-left-color: #C9A84C; color: #B4ADA2; }
body[data-doc] .footer { color: #7D766C; border-top-color: rgba(245, 240, 230, 0.12); }
body[data-doc] .hossy-campaign { background: transparent; }
@media (max-width: 600px) {
  body[data-doc] h1 { font-size: 1.2rem; letter-spacing: 0; line-height: 1.6; }
}
