@charset "UTF-8";
/*
 * /lp/_css/brand.css
 * ブランドサイト共通スタイル。骨格は3ブランド共通で、
 * アクセントカラーだけ body の --accent（各ページが出力）で変わる。
 *
 * デザイン変更はこの1ファイルで完結する。記事の再生成は不要。
 */

:root {
  --ink:    #1a1a1c;
  --muted:  #5b5f66;
  --line:   #e5e2de;
  --tint:   #f6f2f0;
  --bg:     #fbfaf9;
  --accent: #8c2332; /* body の style 属性で上書きされる */
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  line-height: 1.5;
}

/* ---- ヘッダー -------------------------------------------------------- */

.wu-head {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.wu-head__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 68px;
}

.wu-head__brand { display: flex; flex-direction: column; gap: 1px; color: var(--ink); }
.wu-head__brand:hover { text-decoration: none; }
.wu-head__name { font-family: "Zen Kaku Gothic New", sans-serif; font-size: 19px; font-weight: 900; line-height: 1.2; }
.wu-head__tag  { font-size: 10px; color: var(--muted); letter-spacing: .06em; }

.wu-head__nav { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; font-weight: 500; }
.wu-head__nav a { color: var(--ink); }

.wu-head__cta {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 11px 20px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.wu-head__cta:hover { filter: brightness(1.08); text-decoration: none; }

/* ---- パンくず -------------------------------------------------------- */

.wu-crumbs__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px 0;
  font-size: 12px;
  color: var(--muted);
}
.wu-crumbs a { color: var(--muted); }
.wu-crumbs span { margin: 0 4px; }

/* ---- 本文レイアウト --------------------------------------------------- */

.wu-wrap { max-width: 1160px; margin: 0 auto; padding: 24px 20px 72px; }

.wu-wrap--article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 52px;
  align-items: start;
}

/* 移設したLPは、全幅セクションに width:100vw + margin-left:calc(50% - 50vw)
   という書き方を使っている。100vw はスクロールバーの幅を含むので、
   スクロールバーが出るブラウザ（Windowsのデスクトップなど）では
   右に15px前後はみ出して、ページ全体に横スクロールが出る。
   clip なら sticky を壊さずに切り落とせる（hidden はスクロール領域を作るのでNG）。 */
.wu-wrap--full { max-width: none; padding: 0; overflow-x: clip; }

.wu-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; }

/* ---- 記事本文 -------------------------------------------------------- */

.wu-article h1 { font-size: 34px; font-weight: 900; letter-spacing: -.01em; margin: 0 0 18px; }
.wu-article h2 {
  font-size: 26px; font-weight: 700; margin: 44px 0 16px;
  padding-left: 14px; border-left: 4px solid var(--accent);
}
.wu-article h3 { font-size: 19px; font-weight: 700; margin: 30px 0 12px; }
.wu-article p  { margin: 0 0 1.4em; text-wrap: pretty; }
.wu-article ul, .wu-article ol { margin: 0 0 1.4em; padding-left: 1.5em; }
.wu-article li { margin-bottom: .4em; }

.wu-article table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.6em;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; font-size: 14px;
}
.wu-article th, .wu-article td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.wu-article thead th { background: var(--accent); color: #fff; font-weight: 700; }
.wu-article tbody tr:last-child th,
.wu-article tbody tr:last-child td { border-bottom: 0; }
.wu-tablewrap { overflow-x: auto; margin: 0 0 1.6em; }
.wu-tablewrap table { margin: 0; }

.wu-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.wu-meta__cat { padding: 4px 11px; border-radius: 3px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.wu-meta__date { font-size: 12px; color: var(--muted); }

/* 結論ブロック */
.wu-lead {
  padding: 24px 26px; margin: 0 0 26px;
  background: #fff; border-left: 5px solid var(--accent); border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.wu-lead__label { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--accent); }
.wu-lead p { margin: 0; font-size: 17px; font-weight: 500; }

/* 目次 */
.wu-toc { padding: 20px 24px; margin: 0 0 36px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.wu-toc__title { margin: 0 0 12px; font-family: "Zen Kaku Gothic New", sans-serif; font-size: 14px; font-weight: 700; }
.wu-toc ol { margin: 0; padding-left: 1.3em; font-size: 14px; }

/* ---- サイドバー ------------------------------------------------------- */

.wu-card { padding: 22px 22px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.wu-card--cta { border: 2px solid var(--accent); }
.wu-card__title { margin: 0 0 8px; font-family: "Zen Kaku Gothic New", sans-serif; font-size: 16px; font-weight: 700; line-height: 1.55; }
.wu-card__text { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.wu-card__button { display: block; padding: 15px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 16px; font-weight: 700; text-align: center; }
.wu-card__button:hover { filter: brightness(1.08); text-decoration: none; }
.wu-card__note { margin: 9px 0 0; font-size: 11px; color: var(--muted); text-align: center; }
.wu-card__tel { font-family: "Zen Kaku Gothic New", sans-serif; font-size: 22px; font-weight: 900; margin: 0; }

/* ---- 記事末尾CTA ------------------------------------------------------ */

.wu-cta {
  padding: 38px 40px; margin: 44px 0;
  background: #fff; border: 2px solid var(--accent); border-radius: 10px; text-align: center;
}
.wu-cta__heading { margin: 0 0 10px; font-family: "Zen Kaku Gothic New", sans-serif; font-size: 23px; font-weight: 900; line-height: 1.5; }
.wu-cta__lead { margin: 0 0 22px; font-size: 15px; color: var(--muted); }
.wu-cta__button { display: block; padding: 19px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 19px; font-weight: 700; }
.wu-cta__button:hover { filter: brightness(1.08); text-decoration: none; }
.wu-cta__note { margin: 11px 0 0; font-size: 12px; color: var(--muted); }
.wu-cta__subs { display: flex; gap: 12px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.wu-cta__sub { flex: 1; padding: 14px 10px; border: 1px solid var(--accent); border-radius: 6px; font-size: 15px; font-weight: 700; }
.wu-cta__sub:hover { background: rgba(0,0,0,.04); text-decoration: none; }

/* ---- フッター -------------------------------------------------------- */

.wu-foot { padding: 40px 20px 24px; background: var(--ink); color: #c9c6c2; }
.wu-foot__inner { display: flex; flex-wrap: wrap; gap: 36px; max-width: 1160px; margin: 0 auto; align-items: flex-start; }
.wu-foot__brand { flex-grow: 1; min-width: 240px; }
.wu-foot__name { margin: 0 0 6px; font-family: "Zen Kaku Gothic New", sans-serif; font-size: 17px; font-weight: 700; color: #fff; }
.wu-foot__org  { margin: 0 0 10px; font-size: 13px; }
.wu-foot__tel  { margin: 0; font-size: 13px; }
.wu-foot__tel a { color: #fff; font-size: 19px; font-weight: 700; }
.wu-foot__tel span { display: block; font-size: 12px; }
.wu-foot__nav { display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.wu-foot__nav a { color: #c9c6c2; }
.wu-foot__copy { max-width: 1160px; margin: 32px auto 0; font-size: 11px; color: #8d8a86; }

/* ---- スマホ追従バー --------------------------------------------------- */

.wu-ctabar { display: none; }

@media (max-width: 767px) {
  .wu-ctabar {
    display: flex; align-items: center; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 10px rgba(0,0,0,.08);
  }
  .wu-ctabar__button {
    flex: 1; padding: 14px 12px; border-radius: 6px;
    background: var(--accent); color: #fff;
    font-size: 15px; font-weight: 700; text-align: center;
  }
  .wu-ctabar__button:hover { text-decoration: none; }
  .wu-ctabar__close {
    flex: 0 0 auto; width: 44px; height: 44px; padding: 0;
    border: 1px solid #ccc; border-radius: 50%;
    background: #fff; color: #666; font-size: 18px; line-height: 1; cursor: pointer;
  }
  body.wu-ctabar-on { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ---- レスポンシブ ----------------------------------------------------- */

@media (max-width: 1023px) {
  .wu-wrap--article { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .wu-side { position: static; }
  .wu-head__nav { display: none; }
}

@media (max-width: 599px) {
  body { font-size: 15px; }
  .wu-wrap { padding: 18px 16px 48px; }
  .wu-article h1 { font-size: 24px; }
  .wu-article h2 { font-size: 20px; margin-top: 34px; }
  .wu-article h3 { font-size: 17px; }
  .wu-cta { padding: 26px 18px; }
  .wu-cta__heading { font-size: 19px; }
  .wu-cta__subs { flex-direction: column; }
  .wu-lead { padding: 20px 18px; }
  .wu-lead p { font-size: 15px; }
  .wu-head__inner { min-height: 58px; gap: 12px; }
  .wu-head__cta { padding: 10px 14px; font-size: 13px; }
}

/* 読み上げ専用（見た目には出ないが、見出し階層と検索エンジンには存在する） */
.wu-sronly {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* WordPressから引き継いだ本文中の画像。既定の figure マージンで左寄せになるため中央に。 */
.wu-wrap figure {
  margin: 28px auto;
  padding: 0 24px;
  text-align: center;
}
.wu-wrap figure img {
  display: inline-block;
  max-width: min(100%, 1100px);
  height: auto;
}
.wu-wrap figure figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

/* ---- 記事一覧（コラム） ------------------------------------------------ */

.wu-index__lead { margin: 0 0 36px; font-size: 16px; color: var(--muted); }
.wu-index__group { margin: 0 0 40px; }
.wu-index__group h2 {
  margin: 0 0 16px; font-size: 21px; font-weight: 700;
  padding-left: 12px; border-left: 4px solid var(--accent);
}
.wu-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wu-card2 {
  display: block; padding: 20px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 9px; color: var(--ink);
}
.wu-card2:hover { border-color: var(--accent); text-decoration: none; }
.wu-card2__title {
  display: block; margin-bottom: 7px;
  font-family: "Zen Kaku Gothic New", sans-serif; font-size: 16px; font-weight: 700; line-height: 1.6;
}
.wu-card2__text { display: block; font-size: 13px; color: var(--muted); line-height: 1.8; }

@media (max-width: 767px) {
  .wu-cards { grid-template-columns: minmax(0, 1fr); }
  .wu-index__group h2 { font-size: 19px; }
}

.wu-pagetitle { margin: 8px 0 20px; font-size: 32px; font-weight: 900; letter-spacing: -.01em; }
@media (max-width: 599px) { .wu-pagetitle { font-size: 24px; } }

/* 医療機器の表示（フッター）。薬機法上、承認された効能・効果の範囲を明示する。 */
.wu-foot__notice {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px 4px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.62);
  font-size: 11.5px;
  line-height: 1.85;
}
.wu-foot__notice p { margin: 0 0 6px; }
.wu-foot__notice strong { color: rgba(255,255,255,.85); font-weight: 700; }

/* 本文中の注意書き（体験談の個人差など） */
.wu-note {
  margin: 28px 0;
  padding: 12px 16px;
  background: var(--tint);
  border-left: 3px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.85;
}

/* ヘッダーのブランドロゴ（メーカー公式ロゴがある場合） */
/* 【注意】.wu-head__brand は flex-direction:column なので、
   align-self を指定しないと align-items:stretch が効いて横に引き伸ばされる。 */
.wu-head__logo {
  display: block;
  align-self: flex-start;
  width: auto;
  height: 26px;
  aspect-ratio: 261 / 77;
  object-fit: contain;
  margin-bottom: 3px;
}

/* ロゴの大きさは、右のメニューが2段に折れない範囲で最大化している。
   実測値（1024px幅）:
     nav gap 22px / font 14px  → 26pxでも2段に折れる（従来からの不具合）
     nav gap 18px / font 13px  → 50pxまで1段を保てる
   フォント読み込みのズレを見込んで、実測上限から10px前後の余裕を残している。 */
.wu-head__logo { height: 34px; }                      /* ナビ非表示の幅 */

@media (min-width: 1024px) and (max-width: 1199px) {
  .wu-head__inner { gap: 16px; }
  .wu-head__nav   { gap: 16px; font-size: 13px; }
  .wu-head__logo  { height: 40px; }   /* 実効1009pxでの上限52pxに対し12pxの余裕 */
}

@media (min-width: 1200px) {
  .wu-head__logo { height: 52px; }
}

@media (max-width: 767px) { .wu-head__logo { height: 26px; } }

/* ---- ページ内アンカー ------------------------------------------------- */
/* ヘッダーが position:sticky（68px／スマホ58px）なので、
   何もしないとアンカー先の見出しがヘッダーの裏に隠れる。 */
:target,
section[id],
h2[id], h3[id] { scroll-margin-top: 84px; }

@media (max-width: 599px) {
  :target, section[id], h2[id], h3[id] { scroll-margin-top: 70px; }
}

/* ---- ブランド名が長い場合のヘッダー ----------------------------------- */
/* ロゴを持たないブランド（cmicroscope など）は文字表記になる。
   「肌カウンセリングスコープ API」は19pxで約270pxを占めるため、
   ナビが7項目ある1024〜1199pxでは2段に折れる。ここだけ小さくする。 */
@media (min-width: 1024px) and (max-width: 1199px) {
  .wu-b-cmicroscope .wu-head__name { font-size: 16px; }
  .wu-b-cmicroscope .wu-head__tag  { font-size: 9px; }
}

/* スマホのヘッダー。
   「肌カウンセリングスコープ API」は15pxでも約210px必要で、
   CTAボタンと並べると390px幅では入りきらない（省略記号が出る）。
   短い表記を持つブランドはそちらに切り替え、無いブランドは
   従来どおり正式名称を出す。 */
.wu-head__name--short { display: none; }

/* short_name を持つブランドだけが対象。:has が効かないブラウザでは
   正式名称がそのまま出るだけなので、崩れはしない。 */
@media (max-width: 599px) {
  /* 正式名称のほうだけを縮める。--short も .wu-head__name を持っているので、
     :not() で外しておかないと、下の 379px の指定が効かない（詳細度で負ける）。 */
  .wu-head__brand:has(.wu-head__name--short) { min-width: 0; }
  .wu-head__brand:has(.wu-head__name--short) .wu-head__name:not(.wu-head__name--short) {
    font-size: 16px; white-space: nowrap;
  }
  .wu-head__brand:has(.wu-head__name--short) .wu-head__tag { display: none; }
  .wu-head__name--short { font-size: 16px; white-space: nowrap; }
}

@media (max-width: 519px) {
  .wu-head__name:has(+ .wu-head__name--short) { display: none; }
  .wu-head__name--short                       { display: block; }
}

/* 380px未満（iPhone SE など）ではCTAと並べる余白がさらに無い。
   「ホワイトニング導入」+「資料をもらう（無料）」が 320px でぶつかるので、
   両方を一段落とす。はみ出しても文字がボタンの下に潜らないよう、
   ブランド名側に overflow も入れている。 */
@media (max-width: 379px) {
  .wu-head__name--short { font-size: 13px; }
  .wu-head__brand:has(.wu-head__name--short) { overflow: hidden; }
  .wu-head:has(.wu-head__name--short) .wu-head__cta { padding: 10px 10px; font-size: 12px; }
}

/* ---- StA²BLE ---------------------------------------------------------- */
/* LP本体は黒＋ライムの配色。ヘッダーのCTAだけ、LPのメインボタンに合わせる。
   ライムは明るいので白文字は載らない。文字色を落とすこと。 */
.wu-b-sta2ble .wu-head__cta { background: #c7f23b; color: #111617; }
.wu-b-sta2ble .wu-head__cta:hover { filter: brightness(1.04); }
/* 狭い幅では、ロゴを持たないブランドのタグラインを隠す。
   StA²BLE の「立位年齢®検査装置｜株式会社ウエルアップ」は
   320pxでヘッダーを2段にしてしまう。 */
@media (max-width: 399px) {
  .wu-head__tag { display: none; }
}

/* ---- セルフホワイトニング（サロン向け） -------------------------------- */
/* 他の4ブランドは法人・施設向けのゴシック基調だが、
   このブランドの読み手は美容サロン・整体院のオーナー。
   見出しを明朝に、地色を暖色のオフホワイトにして、サロンの世界観に寄せる。
   .wu-b-whitening で囲っているので、他ブランドには一切影響しない。 */

.wu-b-whitening {
  --wh-paper: #fbf7f4;   /* 暖色のオフホワイト */
  --wh-line:  #e6dbd4;   /* 細い罫線 */
  --wh-ink:   #3a322f;   /* 温かみのあるチャコール */
  --wh-soft:  #8b7b74;   /* 補助テキスト */
  background: var(--wh-paper);
  color: var(--wh-ink);
}

/* 見出しは明朝。本文はゴシックのまま（長文の可読性を優先） */
.wu-b-whitening .wu-article h1,
.wu-b-whitening .wu-article h2,
.wu-b-whitening .wu-article h3,
.wu-b-whitening .wu-index h2,
.wu-b-whitening .wu-cta__heading,
.wu-b-whitening .wu-head__name {
  font-family: "Shippori Mincho", "Zen Kaku Gothic New", serif;
  font-weight: 600;
  letter-spacing: .02em;
}

/* h2 の飾り。左の太いバーではなく、下に細い罫線と短いアクセント */
.wu-b-whitening .wu-article h2 {
  padding: 0 0 14px;
  border-left: 0;
  border-bottom: 1px solid var(--wh-line);
  position: relative;
}
.wu-b-whitening .wu-article h2::after {
  content: "";
  position: absolute; left: 0; bottom: -1px;
  width: 56px; height: 2px;
  background: var(--accent);
}
.wu-b-whitening .wu-article h3 { color: var(--wh-ink); }

/* 面まわりを紙の色に合わせる */
.wu-b-whitening .wu-head { background: #fff; border-bottom-color: var(--wh-line); }
.wu-b-whitening .wu-card,
.wu-b-whitening .wu-card2,
.wu-b-whitening .wu-cta { background: #fff; border-color: var(--wh-line); }
.wu-b-whitening .wu-article table th { background: #f4ece7; }
.wu-b-whitening .wu-article table th,
.wu-b-whitening .wu-article table td { border-color: var(--wh-line); }
.wu-b-whitening .wu-note { background: #f4ece7; border-left-color: var(--accent); }
.wu-b-whitening .wu-crumbs__inner { color: var(--wh-soft); }

/* ボタンは角を少しだけ落として、やわらかく */
.wu-b-whitening .wu-head__cta,
.wu-b-whitening .wu-cta__button,
.wu-b-whitening .wu-card__button { border-radius: 2px; letter-spacing: .04em; }

/* トップページ（旧WordPressから移設したセクション）にも明朝の見出しをあてる。
   配色はソース側（_src/whitening/index.html）でローズブラウンに置き換え済み。
   ここでは書体と字送りだけを揃える。 */
.wu-b-whitening [class$="__heading"],
.wu-b-whitening [class$="__title"],
.wu-b-whitening [class$="__step-title"],
.wu-b-whitening [class$="__card-title"],
.wu-b-whitening [class$="__bottom-message"],
.wu-b-whitening .lp-hero__copy,
.wu-b-whitening .lp-faq-section__question {
  font-family: "Shippori Mincho", "Zen Kaku Gothic New", serif;
  font-weight: 600;
  letter-spacing: .02em;
}

/* 英字のアイブロウは字間を広げてサロンらしく */
.wu-b-whitening [class$="__eyebrow"] {
  letter-spacing: .22em;
  font-weight: 500;
}

/* ボタン類（トップページ側）も角を落とす */
.wu-b-whitening .lp-cta-section__btn,
.wu-b-whitening .lp-fixed-cta__btn { border-radius: 2px; letter-spacing: .04em; }

/* カードのアイコンだけ青のまま残っていたので、配色に合わせて温色へ寄せる。
   画像そのものは差し替えず、表示だけ変えている（写真には当てない）。 */
.wu-b-whitening .lp-problem-section__card-image,
.wu-b-whitening .lp-solution-section__card-image {
  filter: sepia(1) saturate(1.6) hue-rotate(-12deg) brightness(.95);
}
