/* NC Body Make Salon ダイエット案内ページ 共通CSS
   - すべて .ncd の内側だけに効くので、WordPress(SWELL)の既存デザインを壊しません
   - 外部フォント・外部ライブラリなし(表示を軽くするため)
   - 色は既存LPの アイボリー(#f4ebcb系)・ゴールド・サーモンピンク に合わせています */

.ncd {
  --ncd-ink: #3a3027;
  --ncd-sub: #6b5e52;
  --ncd-bg: #fffdf8;
  --ncd-ivory: #f9f3e3;
  --ncd-gold: #8f6f2e;
  --ncd-gold-line: #d9c48f;
  --ncd-rose: #b4564a;
  --ncd-rose-bg: #fbeeea;
  --ncd-line: #06c755;
  --ncd-line-dark: #048a3b;
  --ncd-border: #e8dfcc;
  --ncd-radius: 12px;
  color: var(--ncd-ink);
  background: var(--ncd-bg);
  font-family: "游ゴシック体", "Yu Gothic", YuGothic, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  -webkit-text-size-adjust: 100%;
}
.ncd *, .ncd *::before, .ncd *::after { box-sizing: border-box; }
.ncd img { max-width: 100%; height: auto; display: block; border-radius: var(--ncd-radius); }
.ncd a { color: var(--ncd-rose); text-underline-offset: 3px; }
.ncd a:focus-visible, .ncd summary:focus-visible { outline: 3px solid var(--ncd-gold); outline-offset: 2px; }
.ncd p { margin: 0 0 1.1em; }
.ncd ul, .ncd ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.ncd li { margin-bottom: .45em; }

/* 枠 */
.ncd-wrap { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 16px; }
.ncd-sec { padding: 44px 0; }
.ncd-sec--ivory { background: var(--ncd-ivory); }

/* パンくず */
.ncd-crumb { font-size: 14px; color: var(--ncd-sub); padding: 12px 0 0; }
.ncd-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0 .4em; margin: 0; padding: 0; }
.ncd-crumb li { margin: 0; }
.ncd-crumb li + li::before { content: "›"; margin-right: .4em; }

/* 見出し */
.ncd h1 { font-size: 27px; line-height: 1.5; margin: .4em 0 .6em; font-weight: 700; color: var(--ncd-ink); }
.ncd h2 { font-size: 23px; line-height: 1.5; margin: 0 0 .9em; padding-bottom: .4em; border-bottom: 2px solid var(--ncd-gold-line); font-weight: 700; }
.ncd h3 { font-size: 19px; line-height: 1.6; margin: 1.6em 0 .6em; padding-left: .7em; border-left: 4px solid var(--ncd-gold-line); font-weight: 700; }
.ncd-lead { font-size: 18px; }
.ncd-updated { font-size: 14px; color: var(--ncd-sub); }

/* 冒頭の要約(AIにも人にも、最初に答えを見せる枠) */
.ncd-summary { background: var(--ncd-ivory); border: 1px solid var(--ncd-gold-line); border-radius: var(--ncd-radius); padding: 18px 18px 8px; margin: 0 0 1.4em; }
.ncd-summary-title { font-weight: 700; margin-bottom: .4em; color: var(--ncd-gold); }

/* カード */
.ncd ul.ncd-cards { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.ncd-card { background: #fff; border: 1px solid var(--ncd-border); border-radius: var(--ncd-radius); padding: 16px 18px; margin: 0; }
.ncd-card-title { font-weight: 700; margin-bottom: .3em; }
.ncd-card p:last-child { margin-bottom: 0; }

/* チェックリスト */
.ncd ul.ncd-check { list-style: none; padding: 0; }
.ncd-check li { position: relative; padding-left: 1.7em; }
.ncd-check li::before { content: "✓"; position: absolute; left: .2em; color: var(--ncd-gold); font-weight: 700; }

/* 手順 */
.ncd ol.ncd-steps { list-style: none; padding: 0; counter-reset: ncd; }
.ncd-steps li { counter-increment: ncd; position: relative; padding: 0 0 .8em 3em; min-height: 2.4em; }
.ncd-steps li::before { content: counter(ncd); position: absolute; left: 0; top: .1em; width: 2.1em; height: 2.1em; line-height: 2.1em; text-align: center; border-radius: 50%; background: var(--ncd-gold); color: #fff; font-weight: 700; font-size: 15px; }

/* 表(スマホでは横にスクロール。ページ全体は横に動かない) */
.ncd-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 .6em; }
.ncd table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 15px; background: #fff; }
.ncd th, .ncd td { border: 1px solid var(--ncd-border); padding: 9px 10px; text-align: left; vertical-align: top; }
.ncd th { background: var(--ncd-ivory); font-weight: 700; }
.ncd-table-simple table { min-width: 0; }

/* お客様の声 */
.ncd-voice { background: #fff; border: 1px solid var(--ncd-border); border-radius: var(--ncd-radius); padding: 16px 18px; margin: 0 0 14px; }
.ncd-voice-who { font-weight: 700; margin-bottom: .3em; }
.ncd-voice blockquote { margin: 0 0 .4em; padding: 0; }

/* 注記・出典 */
.ncd-note { font-size: 14.5px; line-height: 1.75; color: var(--ncd-sub); }
.ncd-sources { font-size: 14.5px; line-height: 1.75; }
.ncd-sources li { margin-bottom: .5em; }
.ncd-caution { background: var(--ncd-rose-bg); border-radius: var(--ncd-radius); padding: 14px 18px; margin: 0 0 1.2em; font-size: 16px; }
.ncd-caution p:last-child, .ncd-caution ul:last-child { margin-bottom: 0; }

/* 公開前に埋める場所(公開時には残さないこと) */
.ncd-confirm { background: #fff3a6; color: #5c4700; border-bottom: 2px solid #d4a800; padding: 0 .25em; font-weight: 700; }
.ncd-photo { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 180px; padding: 16px; margin: 0 0 1.2em; background: #f3efe6; color: #5c4700; border: 2px dashed #d4a800; border-radius: var(--ncd-radius); font-size: 15px; font-weight: 700; }

/* FAQ(detailsを使うのでJavaScript不要) */
.ncd-faq { margin: 0 0 1.4em; }
.ncd-faq details { background: #fff; border: 1px solid var(--ncd-border); border-radius: var(--ncd-radius); margin-bottom: 10px; }
.ncd-faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 13px 44px 13px 16px; position: relative; }
.ncd-faq summary::-webkit-details-marker { display: none; }
.ncd-faq summary::after { content: "＋"; position: absolute; right: 14px; top: 12px; color: var(--ncd-gold); }
.ncd-faq details[open] summary::after { content: "−"; }
.ncd-faq-a { padding: 0 16px 6px; }
.ncd-faq-cat { font-size: 19px; margin-top: 1.6em; }

/* CTA */
.ncd-cta { background: #fff; border: 2px solid var(--ncd-gold-line); border-radius: var(--ncd-radius); padding: 20px 18px; margin: 1.6em 0; text-align: center; }
.ncd-cta-title { font-weight: 700; font-size: 19px; line-height: 1.6; margin-bottom: .4em; }
.ncd-cta p { font-size: 16px; }
.ncd-btn { display: block; width: 100%; max-width: 440px; margin: 10px auto; padding: 15px 16px; border-radius: 999px; text-align: center; text-decoration: none; font-weight: 700; font-size: 18px; line-height: 1.5; min-height: 48px; }
.ncd a.ncd-btn--line { background: var(--ncd-line-dark); color: #fff; }
.ncd a.ncd-btn--line:hover { background: #037532; }
.ncd a.ncd-btn--sub { background: #fff; color: var(--ncd-ink); border: 1.5px solid var(--ncd-gold-line); font-size: 16px; padding: 12px 16px; }
.ncd-cta-sub { font-size: 14.5px; color: var(--ncd-sub); margin: .6em 0 0; }

/* スマホ下部に固定するLINEボタン */
.ncd-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 253, 248, .96); border-top: 1px solid var(--ncd-border); }
.ncd-sticky .ncd-btn { margin: 0 auto; padding: 11px 14px; font-size: 16px; }
.ncd-has-sticky { padding-bottom: 76px; }

/* 関連ページ・店舗情報 */
.ncd ul.ncd-links { list-style: none; padding: 0; }
.ncd-links li { border-bottom: 1px solid var(--ncd-border); margin: 0; }
.ncd-links a { display: block; padding: 12px 4px; text-decoration: none; font-weight: 700; }
.ncd-links a::after { content: " ›"; }
.ncd-info { width: 100%; }
.ncd-profile { font-size: 16px; }

@media (min-width: 768px) {
  .ncd { font-size: 18px; }
  .ncd h1 { font-size: 34px; }
  .ncd h2 { font-size: 26px; }
  .ncd-sec { padding: 60px 0; }
  .ncd ul.ncd-cards { grid-template-columns: 1fr 1fr; }
  .ncd-sticky { display: none; }
  .ncd-has-sticky { padding-bottom: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .ncd a.ncd-btn--line { transition: background .15s; }
}

@media print {
  .ncd-sticky { display: none; }
}
