/* ==========================================================
   『脂漏性皮膚炎の治し方』が10分でわかる — WordPress組み込み版
   すべて #sgl 配下にスコープ。テーマのCSSには影響しません。
   ▼ テーマの固定ヘッダーの高さに合わせて調整（固定でなければ 0px）
   ========================================================== */
/* shirosei.jp の固定ヘッダーの実測高さ：スマホ 71〜73px / PC 126.85px
   （#js-header.sh-header が position:fixed。テーマの body padding-top は 64px / 126px だが、
     スマホでは実高さが 73px あり 9px 足りないため、ここでは実測値に合わせる。
     ブレークポイントは max-width:767.98px） */
#sgl { --sgl-sticky-top: 73px; }
@media (min-width: 768px) { #sgl { --sgl-sticky-top: 127px; } }

/* ---- テーマCSSの打ち消し（#sgl 内のみ） ---- */
#sgl, #sgl *, #sgl *::before, #sgl *::after { box-sizing: border-box; }
#sgl { display: block; width: 100%; max-width: none; margin: 0; padding: 0; text-align: left; }
#sgl h1, #sgl h2, #sgl h3, #sgl h4 { margin: 0; padding: 0; border: 0; background: none; color: inherit; font-weight: 700; letter-spacing: normal; text-shadow: none; box-shadow: none; }
#sgl h1::before, #sgl h1::after, #sgl h2::before, #sgl h2::after, #sgl h3::before, #sgl h3::after, #sgl h4::before, #sgl h4::after { content: none; display: none; }
#sgl p, #sgl figure, #sgl dl, #sgl dd, #sgl dt { margin: 0; padding: 0; }
#sgl ul, #sgl ol { margin: 0; padding: 0; list-style: none; }
#sgl li { margin: 0; }
#sgl li::marker { content: none; }
#sgl li::before, #sgl li::after { content: none; }
#sgl p, #sgl li, #sgl dd { text-indent: 0; }
#sgl img { max-width: 100%; height: auto; display: block; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
#sgl a { color: inherit; box-shadow: none; text-decoration-style: solid; text-decoration-color: currentColor; }
#sgl a.btn, #sgl .toc a, #sgl .topics--fv a { text-decoration: none; }
#sgl summary { list-style: none; }
#sgl .sgl-note { padding: 28px var(--gutter) 110px; background: #f7f9f9; color: var(--ink-sub); font-size: 12px; line-height: 1.8; text-align: center; }
@media (min-width: 768px) { #sgl .sgl-note { padding-bottom: 40px; } }

#sgl {
  --tq: #12b5b0;
  --tq-dark: #0b8f8b;
  --tq-pale: #eefaf9;
  --ink: #111;
  --ink-sub: #555;
  --line: #e3e8e8;
  --marker: #ffe94a;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --gutter: 20px;
  --max: 960px;
}
#sgl *, #sgl *::before, #sgl *::after { box-sizing: border-box; }
#sgl {
  margin: 0; background: #fff; color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.9;
  font-feature-settings: "palt"; overflow-wrap: anywhere;
}
#sgl img { max-width: 100%; height: auto; display: block; }
#sgl a { color: inherit; }
#sgl ul, #sgl ol { margin: 0; padding: 0; list-style: none; }
#sgl h1, #sgl h2, #sgl h3, #sgl p, #sgl figure, #sgl dl, #sgl dd { margin: 0; }
#sgl .sp { display: inline; }
#sgl section[id], #sgl li[id] { scroll-margin-top: calc(var(--sgl-sticky-top) + 16px); }
#sgl mark {
  color: inherit; font-weight: 700;
  background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 94%, transparent 94%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .1em;
}
#sgl .progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 30; background: transparent; }
#sgl .progress__bar { display: block; height: 100%; width: 100%; background: var(--tq); transform: scaleX(0); transform-origin: left; }
#sgl .btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; max-width: 360px; min-height: 56px; margin-inline: auto;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; letter-spacing: .04em; line-height: 1.4;
  text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s, transform .2s;
}
#sgl .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#sgl .btn--primary { background: var(--tq); color: #fff; border: 2px solid var(--tq); }
#sgl .btn--primary:hover { background: var(--tq-dark); border-color: var(--tq-dark); }
#sgl .btn--ghost { background: #fff; color: var(--tq-dark); border: 2px solid var(--tq); }
#sgl .btn--ghost:hover { background: var(--tq-pale); }
#sgl .btn--kindle { background: #fff; color: var(--ink); border: 2px solid var(--ink); }
#sgl .btn--kindle:hover { background: #f4f4f4; }
#sgl .btn--kindle small { font-size: 11px; font-weight: 500; border: 1px solid currentColor; border-radius: 2px; padding: 0 5px; line-height: 1.6; }
#sgl .btn:active { transform: translateY(1px); }
#sgl .btn:focus-visible, #sgl a:focus-visible, #sgl summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
#sgl .fv { padding: 36px var(--gutter) 48px; border-bottom: 1px solid var(--line); }
#sgl .fv__inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 28px; }
#sgl .fv__label {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  color: var(--tq-dark); border-left: 4px solid var(--tq); padding-left: 10px; line-height: 1.4; margin-bottom: 16px;
}
#sgl .fv__title { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 8.6vw, 52px); line-height: 1.4; letter-spacing: .02em; }
#sgl .fv__book-title { font-size: .66em; letter-spacing: 0; white-space: nowrap; }
#sgl .fv__ten { background: linear-gradient(transparent 62%, var(--marker) 62%, var(--marker) 94%, transparent 94%); }
#sgl .fv__ten em { font-style: normal; color: var(--tq-dark); font-size: 1.25em; }
#sgl .fv__sub { margin-top: 16px; font-size: 15px; font-weight: 500; color: #222; }
#sgl .cover { width: min(60%, 250px); margin: 0 auto; text-align: center; }
#sgl .cover__sheet { background: transparent; }
#sgl .cover__sheet img { width: 100%; }
#sgl .cover figcaption { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--ink-sub); }
#sgl .topics svg { fill: none; stroke: var(--tq-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#sgl .topics--fv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
#sgl .topics--fv a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 4px 10px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 13px; font-weight: 700; text-decoration: none; line-height: 1.4; background: #fff;
}
#sgl .topics--fv a:hover { border-color: var(--tq); background: var(--tq-pale); }
#sgl .topics--fv svg { width: 28px; height: 28px; }
#sgl .fv__note { margin-top: 10px; text-align: center; font-size: 12px; color: var(--ink-sub); }
#sgl .sec { padding: 64px var(--gutter); }
#sgl .sec--tint { background: var(--tq-pale); }
#sgl .sec__inner { max-width: var(--max); margin: 0 auto; }
#sgl .sec__kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; color: var(--tq-dark); letter-spacing: .06em; }
#sgl .sec__kicker span { font-family: var(--serif); font-size: 20px; line-height: 1; padding-right: 10px; border-right: 1px solid var(--tq); }
#sgl .sec__title { margin-top: 14px; font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 6.6vw, 36px); line-height: 1.5; letter-spacing: .02em; }
#sgl .sec__lead { margin-top: 20px; }
#sgl .sec__cta { margin-top: 40px; display: grid; gap: 12px; }
#sgl .split { margin-top: 32px; display: grid; gap: 28px; }
#sgl .split__text > * + * { margin-top: 1.2em; }
#sgl .split__point { padding: 14px 16px; border-left: 4px solid var(--tq); background: #fff; font-weight: 700; font-size: 15px; line-height: 1.7; }
#sgl .sec:not(.sec--tint) .split__point { background: var(--tq-pale); }
#sgl .checks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px dashed #bfd9d8; line-height: 1.8; }
#sgl .checks li::before {
  content: ""; position: absolute; left: 4px; top: 22px; width: 16px; height: 9px;
  border-left: 3px solid var(--tq); border-bottom: 3px solid var(--tq); transform: rotate(-45deg);
}
#sgl .paper { margin: 0; }
#sgl .paper__sheet { position: relative; background: #fff; border: 1px solid #d5dcdc; line-height: 0; }
#sgl .paper__sheet img { width: 100%; }
#sgl .marker {
  position: absolute; background: var(--marker); opacity: .62; mix-blend-mode: multiply; border-radius: 2px;
  transform: scaleY(0); transform-origin: top center; 
  transition: transform .7s cubic-bezier(.3,.7,.2,1) var(--d, 0s);
}
#sgl .paper.is-marked .marker, #sgl .no-js .marker { transform: scaleY(1); }
#sgl .paper__cap { margin-top: 8px; font-size: 11px; color: var(--ink-sub); line-height: 1.5; text-align: right; }
#sgl .split:not(.split--narrow) .paper { max-width: 420px; margin-inline: auto; width: 100%; }
#sgl .gist { counter-reset: g; display: grid; gap: 14px; }
#sgl .gist li { counter-increment: g; position: relative; padding: 16px 16px 16px 52px; background: #fff; border: 1px solid var(--line); border-radius: 8px; line-height: 1.8; font-size: 15px; }
#sgl .gist li::before { content: counter(g); position: absolute; left: 14px; top: 16px; width: 26px; height: 26px; border-radius: 50%; background: var(--tq); color: #fff; font-weight: 700; font-size: 14px; line-height: 26px; text-align: center; }
#sgl .gist b { display: block; font-size: 16px; }
#sgl .toc { margin-top: 24px; position: sticky; top: var(--sgl-sticky-top); z-index: 10; background: #fff; margin-inline: calc(var(--gutter) * -1); padding: 8px var(--gutter); border-bottom: 1px solid var(--line); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
#sgl .toc::-webkit-scrollbar { display: none; }
#sgl .toc ol { display: flex; gap: 6px; width: max-content; }
#sgl .toc a { display: block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; line-height: 1.5; }
#sgl .toc a.is-current { background: var(--tq); border-color: var(--tq); color: #fff; }
#sgl .topic { padding: 40px 0 8px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--sgl-sticky-top) + 60px); }
#sgl .topic__head { display: flex; align-items: center; gap: 14px; }
#sgl .topic__head svg { flex: none; width: 48px; height: 48px; padding: 10px; border-radius: 50%; background: var(--tq-pale); fill: none; stroke: var(--tq-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#sgl .topic__no { font-size: 11px; font-weight: 700; color: var(--tq-dark); letter-spacing: .1em; line-height: 1.4; }
#sgl .topic h3 { font-family: var(--serif); font-size: 21px; line-height: 1.5; }
#sgl .topic__lead { margin-top: 18px; font-size: 16px; }
#sgl .points { margin-top: 16px; display: grid; gap: 10px; }
#sgl .points li { position: relative; padding-left: 20px; font-size: 15px; line-height: 1.85; }
#sgl .points li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--tq); }
#sgl .points--sub { margin-top: 20px; padding: 16px; background: #f7f9f9; border-radius: 8px; }
#sgl .points--sub li { font-size: 14px; }
#sgl .steps { counter-reset: s; margin-top: 18px; display: grid; gap: 10px; }
#sgl .steps li { counter-increment: s; position: relative; padding: 14px 14px 14px 50px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; line-height: 1.8; }
#sgl .steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--tq-dark); }
#sgl .steps b { display: block; }
#sgl .twocol { margin-top: 18px; display: grid; gap: 12px; }
#sgl .twocol__box { border-radius: 8px; padding: 16px; border: 1px solid var(--line); }
#sgl .twocol__box--ok { background: var(--tq-pale); border-color: #cdeceb; }
#sgl .twocol h4 { margin: 0 0 8px; font-size: 14px; letter-spacing: .08em; }
#sgl .twocol__box--ok h4 { color: var(--tq-dark); }
#sgl .twocol__box--ng h4 { color: var(--ink-sub); }
#sgl .twocol li { font-size: 14px; line-height: 1.8; padding: 4px 0; }
#sgl .topic__src { margin: 16px 0 24px; font-size: 11px; color: var(--ink-sub); text-align: right; }
#sgl .topic .faq { margin-top: 18px; }
#sgl .faq__item h4 { margin: 0; font-size: 16px; line-height: 1.7; }
#sgl .done { margin-top: 48px; padding: 28px 20px; border: 2px solid var(--tq); border-radius: 12px; text-align: center; }
#sgl .done__title { font-family: var(--serif); font-weight: 700; font-size: 22px; background: linear-gradient(transparent 62%, var(--marker) 62%, var(--marker) 94%, transparent 94%); display: inline-block; line-height: 1.5; }
#sgl .done > p + p { margin-top: 12px; font-size: 14px; text-align: left; }
#sgl .done .sec__cta { margin-top: 24px; }
#sgl .sub-title { margin-top: 48px; font-family: var(--serif); font-size: 20px; line-height: 1.6; padding-left: 12px; border-left: 4px solid var(--tq); }
#sgl .cards__cap { margin-top: 10px; font-size: 11px; color: var(--ink-sub); text-align: right; }
#sgl .cards { margin-top: 20px; display: grid; gap: 12px; }
#sgl .card { border: 1px solid var(--line); border-left: 4px solid var(--tq); border-radius: 4px; padding: 16px 18px 18px; background: #fff; }
#sgl .card__tag { display: inline-block; font-size: 11px; font-weight: 700; color: var(--tq-dark); letter-spacing: .1em; margin-bottom: 4px; }
#sgl .card p { font-size: 16px; line-height: 1.8; }
#sgl .source { margin-top: 24px; }
#sgl .source summary { cursor: pointer; font-size: 13px; color: var(--tq-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; list-style: none; }
#sgl .source summary::-webkit-details-marker { display: none; }
#sgl .source summary::before { content: "＋ "; }
#sgl .source[open] summary::before { content: "－ "; }
#sgl .source .paper { margin-top: 16px; max-width: 260px; }
#sgl .topics--detail { margin-top: 28px; display: grid; gap: 12px; }
#sgl .topics--detail li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
#sgl .topics--detail svg { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--tq-pale); }
#sgl .topics--detail h3 { font-size: 17px; line-height: 1.5; }
#sgl .topics--detail p { margin-top: 2px; font-size: 14px; line-height: 1.7; color: #333; }
#sgl .author { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px 20px; }
#sgl .author__head { display: flex; align-items: center; gap: 16px; }
#sgl .author__photo { flex: none; width: 88px; height: 88px; border-radius: 50%; border: 1px solid var(--line); }
#sgl .author__role { font-size: 12px; font-weight: 700; color: var(--tq-dark); letter-spacing: .04em; }
#sgl .author__name { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.5; }
#sgl .author__name span { display: inline-block; margin-left: 10px; font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--ink-sub); }
#sgl .author__list { margin-top: 16px; border-top: 1px solid var(--line); }
#sgl .author__list > div { display: grid; grid-template-columns: 3.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.8; }
#sgl .author__list dt { font-weight: 700; color: var(--tq-dark); }
#sgl .faq { margin-top: 24px; border-top: 1px solid var(--line); }
#sgl .faq__item { border-bottom: 1px solid var(--line); }
#sgl .faq__item summary { position: relative; cursor: pointer; list-style: none; padding: 18px 36px 18px 30px; }
#sgl .faq__item summary::-webkit-details-marker { display: none; }
#sgl .faq__item summary::before { content: "Q"; position: absolute; left: 0; top: 15px; font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--tq-dark); }
#sgl .faq__item summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s; }
#sgl .faq__item[open] summary::after { transform: rotate(-135deg); top: 30px; }
#sgl .faq__item h3 { font-size: 16px; line-height: 1.7; }
#sgl .faq__item p { padding: 0 0 20px 30px; font-size: 15px; }
#sgl .closing { text-align: center; border-top: 1px solid var(--line); padding-bottom: 72px; }
#sgl .closing .sec__title { margin-top: 0; }
#sgl .closing__btns { margin-top: 32px; display: grid; gap: 12px; }
#sgl .closing__sub { margin-top: 20px; font-size: 14px; }
#sgl .closing__sub a { color: var(--tq-dark); font-weight: 700; text-underline-offset: 4px; }
#sgl .closing__note { margin-top: 28px; font-size: 13px; color: var(--ink-sub); line-height: 1.8; }
#sgl .sticky {
  position: fixed; inset: auto 0 0 0; z-index: 25; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .3s;
}
#sgl .sticky.is-show { transform: none; }
#sgl .sticky[hidden] { display: block; visibility: hidden; }
#sgl .sticky .btn { min-height: 50px; font-size: 15px; }
@media (min-width: 768px){
#sgl { --gutter: 32px; }
#sgl { font-size: 17px; }
#sgl .sp { display: none; }
#sgl .fv { padding-block: 72px 80px; }
#sgl .fv__inner { grid-template-columns: 1fr 260px; grid-template-areas: "copy book" "topics book" "cta book"; column-gap: 56px; align-items: center; }
#sgl .fv__copy { grid-area: copy; }
#sgl .fv__book { grid-area: book; }
#sgl .topics--fv { grid-area: topics; }
#sgl .fv__cta { grid-area: cta; }
#sgl .cover { width: 100%; }
#sgl .topics--fv { grid-template-columns: repeat(6, 1fr); }
#sgl .fv__cta .btn, #sgl .fv__note { margin-inline: 0; text-align: left; }
#sgl .fv__note { padding-left: 8px; }
#sgl .sec { padding-block: 104px; }
#sgl .split { grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
#sgl .cards { grid-template-columns: 1fr 1fr; gap: 16px; }
#sgl .twocol { grid-template-columns: 1fr 1fr; }
#sgl .toc { top: var(--sgl-sticky-top); margin-inline: 0; padding-inline: 0; }
#sgl .topic { padding-top: 56px; }
#sgl .topic h3 { font-size: 24px; }
#sgl .done { padding: 40px; }
#sgl .done > p + p { text-align: center; }
#sgl .gist li, #sgl .points li, #sgl .steps li { font-size: 16px; }
#sgl .topics--detail { grid-template-columns: repeat(3, 1fr); gap: 16px; }
#sgl .author { padding: 40px; }
#sgl .author__photo { width: 120px; height: 120px; }
#sgl .sec__cta { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
#sgl .closing__btns { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
#sgl .sticky { display: none !important; }
}
@media (prefers-reduced-motion: reduce){
#sgl .marker { transition: none; transform: scaleY(1); }
#sgl .sticky, #sgl .btn { transition: none; }
}
@media print{
#sgl .sticky, #sgl .progress { display: none; }
#sgl .marker { transform: scaleY(1); }
}
