/* ==========================================================
   SOTSOT TOP page
   スコープ: .sotsot-lp（Kadenceグローバルスタイルとの衝突防止）
   構成: KV → うちの子 → 成分の話 → ランキングバナー → 記事スライダー
         → テーマCTA → つぶやき → お悩みリング → 背景の粒(flow)
   ※左右余白は design.css の --sotsot-gutter に統一
   ※「ひとこと(m2-note)」の見た目は design.css の共通版を使用
   ========================================================== */

/* ===== Section 1: KV ===== */
.sotsot-lp.kv {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 22vh;
  overflow: hidden;
}
.sotsot-lp .kv-wash {
  position: absolute;
  inset: 0;
  z-index: 1; /* kv-video(z-index:0)より確実に上に */
  background: rgba(255,255,255,0.3);
}
/* 背景動画
   ※テーマ側の img,video{ max-width:100%; height:auto; } に高さを奪われないよう、
     幅・高さを明示指定 + !important で上書き */
.sotsot-lp .kv-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: left 80%;
  z-index: 0;
}
/* 縦長動画（タブレット縦・スマホ）：main.jsの出し分け処理がis-spを付ける */
.sotsot-lp .kv-video.is-sp {
  object-fit: cover;
  object-position: center center;
}
.sotsot-lp.kv > .wrap {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  width: 100%;
  padding-right: 16px;
  display: flex;
  justify-content: flex-end;
}
.sotsot-lp .kv-content {
  max-width: 460px;
  width: 100%;
  /* h1・バッジ・リード文・CTAをまとめて同時にふわっと出す */
  opacity: 0;
  transform: translateY(16px);
  animation: sotsotKvContentIn 1.1s ease forwards;
  animation-delay: 0.2s;
}
@keyframes sotsotKvContentIn {
  0% { opacity: 0; transform: translateY(16px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ----- バッジ ----- */
.sotsot-lp .kv-badges {
  position: relative;
  height: 100px;
  margin-bottom: 8px;
}
.sotsot-lp .badge {
  position: absolute;
  top: 0;
  width: 70px;
  height: 70px;
}
.sotsot-lp .badge-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sotsot-lp .badge-text {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
}
.sotsot-lp .badge:nth-child(1) { left: 0; }
.sotsot-lp .badge:nth-child(2) { left: 84px; }
.sotsot-lp .badge:nth-child(3) { left: 168px; }
.sotsot-lp .badge:nth-child(4) { left: 252px; }
.sotsot-lp .badge:nth-child(1) .badge-text { color: #B7B2B2; }
.sotsot-lp .badge:nth-child(2) .badge-text { color: #FFFFFF; }
.sotsot-lp .badge:nth-child(3) .badge-text { color: #B7B2B2; }
.sotsot-lp .badge:nth-child(4) .badge-text { color: #B7B2B2; font-size: 14px; }

/* ----- 見出し(h1) ----- */
.sotsot-lp.kv h1 {
  margin-top: 1rem;
  margin-bottom: 24px;
}
.sotsot-lp.kv h1 .h1-small {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 14px;
}
.sotsot-lp.kv h1 .h1-large {
  display: block;
  font-size: 48px;
  line-height: 1.4;
  font-weight: 700;
}

/* ----- リード文 ----- */
.sotsot-lp.kv .sub {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 500px;
  margin-bottom: 50px;
}

/* ----- CTAボタン（黒） ----- */
.sotsot-lp .btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  padding: 16px 26px;
  border-radius: 100px;
  font-size: 14px;
  transition: transform 0.3s ease;
}
.sotsot-lp .btn-primary:hover {
  transform: scale(0.97);
}
.sotsot-lp .btn-label {
  position: relative;
  z-index: 2;
  display: inline-block;
}
.sotsot-lp .btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #5C5C5C;
  border-radius: 100px;
  z-index: 0;
}
.sotsot-lp .btn-primary::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E3D200 0%, #C2B2F1 100%);
  border-radius: 100px;
  z-index: -1;
  transition: top 0.3s ease, left 0.3s ease;
}
.sotsot-lp .btn-primary:hover::before {
  top: 3px;
  left: 3px;
}
.sotsot-lp .btn-arrow {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
}
.sotsot-lp .btn-primary .btn-arrow svg,
.sotsot-lp .btn-primary .btn-arrow svg * { stroke: #fff; }

/* ----- KV レスポンシブ ----- */
@media (max-width: 1024px) {
  .sotsot-lp.kv h1 .h1-large { font-size: 38px; }
  .sotsot-lp.kv h1 .h1-small { font-size: 15px; }
  .sotsot-lp .kv-content { max-width: 90%; }
  .sotsot-lp.kv > .wrap { justify-content: center; }

  /* 横長(PC用)動画をタブレット横で見る時の位置調整 */
  .sotsot-lp .kv-video { object-position: center 70%; }
  .sotsot-lp .kv-video.is-sp { object-position: center bottom; }

  .sotsot-lp .kv-wash {
    background: linear-gradient(
      to bottom,
      rgba(236, 236, 239, 0.5) 0%,
      rgba(236, 236, 239, 0) 40%
    );
  }
}

@media (max-width: 480px) {
  .sotsot-lp.kv {
    min-height: 100vh;
    padding: 72px 0 80px;
  }
  /* KVは今までの見た目を維持（左は0、右は16px） */
  .sotsot-lp.kv > .wrap { padding: 0 16px 0 0; }
  .sotsot-lp .kv-badges { height: 5em; }
  .sotsot-lp .badge { width: 50px; height: 50px; }
  .sotsot-lp .badge:nth-child(1) { left: 0; }
  .sotsot-lp .badge:nth-child(2) { left: 64px; }
  .sotsot-lp .badge:nth-child(3) { left: 128px; }
  .sotsot-lp .badge:nth-child(4) { left: 192px; }
  .sotsot-lp .badge-text { font-size: 12px; }
  .sotsot-lp .badge:nth-child(4) .badge-text { font-size: 10px; }
  .sotsot-lp.kv .sub { margin-bottom: 2em; }
  .sotsot-lp.kv h1 .h1-large { font-size: 30px; }
  .sotsot-lp.kv h1 .h1-small { font-size: 14px; }
  .sotsot-lp .kv-content { margin-top: 2rem; }
}

/* ==========================================================
   Section 2: うちの子紹介
   ========================================================== */
.sotsot-lp.ourcat {
  padding: 100px 0;
  background: var(--bg-soft);
  overflow: hidden;
}
.sotsot-lp .ourcat-inner {
  display: flex;
  align-items: center;
  gap: 80px;
}
.sotsot-lp .ourcat-left {
  flex: 1;
  min-width: 0;
}
.sotsot-lp .ourcat-right {
  flex: 0 0 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----- 見出し・本文 ----- */
.sotsot-lp .ourcat-heading {
  font-size: 32px;
  line-height: 1.5;
  margin-bottom: 28px;
}
.sotsot-lp .ourcat-profile {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-strong);
  margin-bottom: 24px;
}
.sotsot-lp .ourcat-story {
  line-height: 2;
  color: var(--ink);
  max-width: var(--reading-width);
}

/* ----- ビジュアルエリア ----- */
.sotsot-lp .ourcat-visual {
  position: relative;
  width: 400px;
  height: 400px;
}

/* キラキラ */
.sotsot-lp .ourcat-sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.sotsot-lp .sparkle {
  position: absolute;
  display: inline-block;
  animation: sotsotSparkleBlink 2.4s ease-in-out infinite;
}
.sotsot-lp .sparkle-purple { color: var(--purple); }
.sotsot-lp .sparkle-yellow { color: var(--yellow); }
.sotsot-lp .sparkle-lg { font-size: 32px; }
.sotsot-lp .sparkle-sm { font-size: 15px; }
.sotsot-lp .sparkle.s1 { top: -6px;   left: 40px;  animation-delay: 0s; }
.sotsot-lp .sparkle.s2 { top: 20px;   right: -10px; animation-delay: 0.5s; }
.sotsot-lp .sparkle.s3 { bottom: 30px; left: -16px;  animation-delay: 1s; }
.sotsot-lp .sparkle.s4 { top: 70px;   right: 40px;  animation-delay: 1.4s; }
.sotsot-lp .sparkle.s5 { bottom: -4px; left: 90px;   animation-delay: 1.8s; }
@keyframes sotsotSparkleBlink {
  0%, 100% { opacity: 0.25; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* 円形写真＋回転グラデーションリング */
.sotsot-lp .ourcat-ring {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--purple), var(--yellow), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  animation: sotsotRingSpin 10s linear infinite;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.sotsot-lp .ourcat-visual.in-view .ourcat-ring {
  opacity: 1;
  transform: scale(1);
}
@keyframes sotsotRingSpin {
  to { transform: rotate(360deg); }
}
.sotsot-lp .ourcat-photo {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--bg-soft);
}

/* TARTOアバター（右下に重ねる） */
.sotsot-lp .ourcat-avatar-wrap {
  position: absolute;
  right: 0;
  bottom: 6px;
  width: 150px;
  height: 150px;
  z-index: 2;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.6s ease 0.35s, transform 0.6s ease 0.35s;
}
.sotsot-lp .ourcat-visual.in-view .ourcat-avatar-wrap {
  opacity: 1;
  transform: scale(1);
}
.sotsot-lp .ourcat-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.sotsot-lp .ourcat-caption {
  margin-top: 24px;
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

/* ----- 医療配慮の注意書き ----- */
.sotsot-lp .ourcat-note {
  margin-top: 56px;
  border: 2px dotted var(--line);
  border-radius: 12px;
  padding: 22px 28px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

/* ----- うちの子 レスポンシブ ----- */
@media (max-width: 1024px) {
  .sotsot-lp .ourcat-inner {
    flex-direction: column;
    gap: 48px;
  }
  .sotsot-lp .ourcat-right {
    flex: none;
    order: -1;
  }
  .sotsot-lp .ourcat-heading {
    font-size: 26px;
    text-align: center;
  }
  .sotsot-lp .ourcat-left { text-align: center; }
  .sotsot-lp .ourcat-story { margin: 0 auto; }
}

@media (max-width: 480px) {
  .sotsot-lp.ourcat { padding: 64px 0; }
  .sotsot-lp .ourcat-story {
    text-align: left;
    margin: 0;
  }
  .sotsot-lp .ourcat-visual,
  .sotsot-lp .ourcat-ring {
    width: 260px;
    height: 260px;
  }
  .sotsot-lp .ourcat-photo {
    width: 244px;
    height: 244px;
  }
  .sotsot-lp .ourcat-avatar-wrap {
    width: 100px;
    height: 100px;
  }
  .sotsot-lp .ourcat-heading { font-size: 22px; }
  .sotsot-lp .ourcat-caption { font-size: 12px; }
  .sotsot-lp .ourcat-note {
    padding: 18px 20px;
    font-size: 13px;
  }
}

/* ==========================================================
   Section 3: 成分の話（measure2）
   上段：左＝見出し＋リード／右＝フードパッケージ（めくり演出）
   下段：3ポイントを角丸カードで横並び（順番に登場＋ゲージが伸びる）
   ========================================================== */
.sotsot-lp.measure2 {
  --paper: #fff;
  --purple-deep: #5B4A94;
  --caution: #F0A9A9;
  position: relative;
  overflow: hidden;
  background: transparent; /* 白は外枠(.sotsot-flow)が持つ */
  padding: 90px var(--sotsot-gutter);
}
.sotsot-lp.measure2 h2,
.sotsot-lp.measure2 h3,
.sotsot-lp.measure2 h4 {
  font-family: 'Zen Maru Gothic', sans-serif;
  margin: 0;
}
.sotsot-lp.measure2 .wrap {
  position: relative;
  z-index: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0;
}

/* ---------- 上段：見出し＋パッケージ ---------- */
.sotsot-lp.measure2 .m2-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) 340px;
  gap: 60px;
  align-items: center;
  margin-bottom: 56px;
}
.sotsot-lp.measure2 .m2-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0ebff;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .02em;
  padding: 10px 18px 10px 16px;
  border-left: 10px solid #C2B2F1;
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(43,38,32,.09);
  transform: rotate(-2.5deg);
  margin-bottom: 32px;
}
.sotsot-lp.measure2 .m2-tag svg { width: 15px; height: 15px; flex: none; }

.sotsot-lp.measure2 .m2-head-text h2 {
  font-size: 32px;
  line-height: 1.5;
  color: var(--ink-strong);
  font-weight: 700;
  margin-bottom: 22px;
}
.sotsot-lp.measure2 .m2-head-text .lead {
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0;
  max-width: var(--reading-width);
}

/* ---- フードめくり（上から少しずつ隠れて裏面が現れるワイプ演出） ---- */
.sotsot-lp.measure2 .food-flip-outer {
  width: 280px;
  margin: 0 auto;
  filter: drop-shadow(0 18px 30px rgba(43,38,32,.14));
}
.sotsot-lp.measure2 .food-flip-inner {
  position: relative;
  width: 100%;
  padding-top: 130%;
}
.sotsot-lp.measure2 .food-flip-inner .face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sotsot-lp.measure2 .food-flip-inner .face img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.sotsot-lp.measure2 .food-flip-inner .face.back { z-index: 1; }
.sotsot-lp.measure2 .food-flip-inner .face.front {
  z-index: 2;
  clip-path: inset(0 0 0 0);
  transition: clip-path .8s cubic-bezier(.62,0,.3,1);
}
.sotsot-lp.measure2 .food-flip-outer.is-flipped .food-flip-inner .face.front {
  clip-path: inset(100% 0 0 0);
}
.sotsot-lp.measure2 .food-flip-caption {
  text-align: center;
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- 下段：3ポイントカード ---------- */
.sotsot-lp.measure2 .m2-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
  align-items: stretch;
}
.sotsot-lp.measure2 .m2-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 26px 24px;
  box-shadow: 0 10px 28px rgba(43,38,32,.06);
}
.sotsot-lp.measure2 .m2-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.sotsot-lp.measure2 .m2-card-icon {
  width: 72px;
  height: 72px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sotsot-lp.measure2 .m2-card-icon img,
.sotsot-lp.measure2 .m2-card-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sotsot-lp.measure2 .m2-card-num {
  display: inline-block;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .08em;
  line-height: 1.6;
  color: var(--purple-deep);
  background: rgba(194,178,241,.25);
  border-radius: 100px;
  padding: 1px 12px;
  margin-bottom: 4px;
}
.sotsot-lp.measure2 .m2-card h3 {
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink-strong);
}
.sotsot-lp.measure2 .m2-card-text {
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.sotsot-lp.measure2 .m2-card-text .m2-note-mark {
  font-size: 0.75em;
  color: var(--ink-soft);
}
.sotsot-lp.measure2 .m2-card-visual { margin-top: auto; }

/* ゲージ */
.sotsot-lp.measure2 .gauge {
  background: #feffeb;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 16px;
}
.sotsot-lp.measure2 .gauge-track {
  position: relative;
  height: 12px;
  border-radius: 7px;
  background: #EDEDED;
  margin-bottom: 10px;
}
.sotsot-lp.measure2 .gauge-fill {
  position: absolute;
  top: 0; bottom: 0;
  width: var(--fill);
  background: linear-gradient(90deg, var(--purple-deep), var(--purple));
  border-radius: 7px;
  transition: width .6s cubic-bezier(.22,.9,.3,1);
}
.sotsot-lp.measure2 .gauge-marker {
  position: absolute;
  top: -7px;
  width: 2px;
  height: 26px;
  background: var(--ink-strong);
}
.sotsot-lp.measure2 .gauge-marker::after {
  content: attr(data-label);
  position: absolute;
  top: 28px;
  font-size: 12px;
  color: var(--ink-strong);
  font-weight: 700;
  white-space: nowrap;
}
/* 目盛り同士が近い場合に文字が重ならないよう、外側へ逃がす */
.sotsot-lp.measure2 .gauge-marker:not(.caution)::after { right: 4px; left: auto; }
.sotsot-lp.measure2 .gauge-marker.caution::after { left: 4px; }
.sotsot-lp.measure2 .gauge-marker.caution { background: var(--caution); }
.sotsot-lp.measure2 .gauge-scale {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 34px;
}

/* 原材料ラベル（パッケージ表記っぽく「、」区切りで横に流す） */
.sotsot-lp.measure2 .m2-label-tag {
  position: relative;
  background: #feffeb;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 22px 16px;
}
.sotsot-lp.measure2 .m2-label-tag .cap {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.sotsot-lp.measure2 .m2-label-tag ol {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.9;
}
.sotsot-lp.measure2 .m2-label-tag li {
  display: inline;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
}
.sotsot-lp.measure2 .m2-label-tag li:not(:last-child)::after { content: "、"; }
.sotsot-lp.measure2 .m2-label-tag li .hi {
  color: var(--ink-strong);
  font-weight: 700;
  background: linear-gradient(transparent 58%, var(--yellow) 58%);
}

/* 記事リンク（カード群の下・中央） */
.sotsot-lp.measure2 .m2-more {
  text-align: center;
  margin: 30px 0 0;
}
.sotsot-lp.measure2 .m2-more a {
  font-size: 13px;
  color: var(--purple-deep);
  font-weight: 700;
  border-bottom: 1px solid var(--purple-deep);
  padding-bottom: 2px;
}

/* ---------- SOTSOTの考え方ボックス ---------- */
.sotsot-lp.measure2 .m2-philosophy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 48px auto 0;
  background: var(--paper);
  border-radius: 20px;
  padding: 36px 0px;
  text-align: center;
}
.sotsot-lp.measure2 .m2-philosophy h3 {
  font-size: 18px;
  color: var(--ink-strong);
  margin-bottom: 18px;
}
.sotsot-lp.measure2 .m2-philosophy p {
  text-align: left;
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- 数値の根拠・注記 ---------- */
.sotsot-lp.measure2 .m2-footnote {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.sotsot-lp.measure2 .m2-footnote p { margin: 0 0 8px; }
.sotsot-lp.measure2 .m2-footnote p:last-child { margin-bottom: 0; }

/* ---------- 順番に登場（JSが動いた時だけ有効＝JSが効かなくても内容は見える） ---------- */
.sotsot-lp.measure2.is-m2-ready .m2-card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .4s ease, transform .5s cubic-bezier(.22,.9,.3,1);
}
.sotsot-lp.measure2.is-m2-ready .m2-card.is-visible {
  opacity: 1;
  transform: none;
}
.sotsot-lp.measure2.is-m2-ready .gauge-fill { width: 0; }
.sotsot-lp.measure2.is-m2-ready .m2-card.is-filled .gauge-fill {
  width: var(--fill); /* カードが出きってから、JSが .is-filled を付けて伸ばす */
}

/* ---------- CTA（成分の話・お悩みリング 共通） ----------
   2つのボタンは常に横並び。スマホでは幅を半分ずつ分け合う。
   見た目を変えるときはここだけ直せばOK。 */
.sotsot-lp.measure2 .m2-cta,
.sotsot-lp.trouble .m2-cta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
  padding: 54px 0 0;
}
.sotsot-lp.measure2 .m2-cta a,
.sotsot-lp.trouble .m2-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 100px;
  border: 1px solid var(--ink-strong);
  color: var(--ink-strong);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  transition: background .2s ease, color .2s ease;
}
.sotsot-lp.measure2 .m2-cta a.primary,
.sotsot-lp.trouble .m2-cta a.primary { background: var(--ink-strong); color: #fff; }
.sotsot-lp.measure2 .m2-cta a:hover,
.sotsot-lp.trouble .m2-cta a:hover { opacity: .82; }

/* ---------- 動きを減らす設定の人には演出なしで表示 ---------- */
@media (prefers-reduced-motion: reduce) {
  .sotsot-lp.measure2 .food-flip-inner .face.front,
  .sotsot-lp.measure2 .gauge-fill,
  .sotsot-lp.measure2.is-m2-ready .m2-card { transition: none; }
}

/* ----- 成分の話 レスポンシブ：タブレット（〜1024px） ----- */
@media (max-width: 1024px) {
  .sotsot-lp.measure2 { padding: 64px var(--sotsot-gutter) 72px; }
  .sotsot-lp.measure2 .m2-head {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
    align-content: start;
    grid-auto-flow: row;
    justify-items: center;
  }
  .sotsot-lp.measure2 .m2-tag {font-size: 12.5px; padding: 6px 14px 6px 12px; }
  .sotsot-lp.measure2 .m2-head-text h2 { font-size: 24px; margin-bottom: 12px; }
  .sotsot-lp.measure2 .food-flip-outer { width: 220px; }

  .sotsot-lp.measure2 .m2-points {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 560px;
    margin: 0 auto;
  }
  .sotsot-lp.measure2 .m2-philosophy { margin-top: 36px; padding: 24px 0px; }
}

/* ----- 成分の話 レスポンシブ：スマホ（〜480px） ----- */
@media (max-width: 480px) {
  .sotsot-lp.measure2 { padding: 48px var(--sotsot-gutter) 56px; }
  .sotsot-lp.measure2 .m2-tag { font-size: 11.5px; }
  .sotsot-lp.measure2 .m2-head-text h2 { font-size: 19px; line-height: 1.5; }
  .sotsot-lp.measure2 .m2-head-text .lead { max-width: 100%; }
  .sotsot-lp.measure2 .food-flip-outer { width: 170px; }
  .sotsot-lp.measure2 .food-flip-caption { font-size: 12px; }

  .sotsot-lp.measure2 .m2-card { padding: 22px 18px 20px; border-radius: 20px; }
  .sotsot-lp.measure2 .m2-card-icon { width: 60px; height: 60px; }
  .sotsot-lp.measure2 .m2-card h3 { font-size: 16px; }
  .sotsot-lp.measure2 .m2-card-text { font-size: 13px; }
  .sotsot-lp.measure2 .gauge { padding: 18px 18px 14px; }
  .sotsot-lp.measure2 .gauge-scale { font-size: 11px; }
  .sotsot-lp.measure2 .gauge-marker::after { font-size: 10.5px; }
  .sotsot-lp.measure2 .m2-label-tag { padding: 16px 18px 14px; }
  .sotsot-lp.measure2 .m2-label-tag .cap { font-size: 12px; }
  .sotsot-lp.measure2 .m2-label-tag ol { font-size: 13px; }

  .sotsot-lp.measure2 .m2-more { margin-top: 24px; }
  .sotsot-lp.measure2 .m2-more a { font-size: 12px; }

  .sotsot-lp.measure2 .m2-philosophy { margin-top: 28px; padding: 24px 0; border-radius: 16px; }
  .sotsot-lp.measure2 .m2-philosophy h3 { font-size: 16px; }
  .sotsot-lp.measure2 .m2-footnote { font-size: 12px; margin-top: 16px; padding-top: 14px; }

  /* CTA（成分の話・お悩みリング共通）：横並びで半分ずつ・細め */
  .sotsot-lp.measure2 .m2-cta,
  .sotsot-lp.trouble .m2-cta {
    gap: 10px;
    padding-top: 40px;
  }
  .sotsot-lp.measure2 .m2-cta a,
  .sotsot-lp.trouble .m2-cta a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    width: auto;
    margin: 0;
    padding: 10px 8px;
    font-size: 14px;
  }
}

/* ==========================================================
   ④ ランキング誘導バナー (rankbanner)
   ========================================================== */
.sotsot-lp.rankbanner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px var(--sotsot-gutter);
  background: var(--bg);
}

/* PC版：内枠1200pxの角丸カード */
.sotsot-lp.rankbanner .rankbanner-bg-pc {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 320px;
  display: flex;
  align-items: center;
}
.sotsot-lp.rankbanner .rankbanner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.35) 40%, rgba(255,255,255,0) 70%);
}
.sotsot-lp.rankbanner .rankbanner-text {
  position: relative;
  z-index: 1;
  padding: 48px 56px;
  max-width: 560px;
}
.sotsot-lp.rankbanner .rankbanner-label {
  color: var(--purple);
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: bold;
}
.sotsot-lp.rankbanner .rankbanner-text h2 {
  color: var(--ink-strong);
  font-size: 26px;
  line-height: 1.4;
  margin: 12px 0 16px;
}
.sotsot-lp.rankbanner .rankbanner-lead {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 24px;
}

/* ---- PC CTA（黒）：KVと同仕様のグラデ影ボタン ---- */
.sotsot-lp.rankbanner .rankbanner-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 100px;
  padding: 14px 32px;
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  z-index: 1;
  transition: transform 0.3s ease;
}
.sotsot-lp.rankbanner .rankbanner-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #5C5C5C;
  z-index: -1;
}
.sotsot-lp.rankbanner .rankbanner-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--yellow-cta), var(--purple));
  transform: translate(6px, 6px);
  z-index: -2;
  transition: transform 0.3s ease;
}
.sotsot-lp.rankbanner .rankbanner-btn:hover { transform: scale(0.97); }
.sotsot-lp.rankbanner .rankbanner-btn:hover::before { transform: translate(3px, 3px); }

/* 矢印アイコン共通パーツ */
.cta-arrow {
  width: 20px;
  height: 20px;
  margin-left: 6px;
  vertical-align: -2px;
  flex-shrink: 0;
}
.cta-arrow path { stroke-width: 2.6; }

/* PC用ラッパー：.rankbanner-bg-pc(overflow:hidden)の外側に置く */
.rankbanner-pc-wrap { position: relative; }

/* SP版：デフォルト非表示 */
.sotsot-lp.rankbanner .rankbanner-sp { display: none; }

@media (max-width: 768px) {
  .sotsot-lp.rankbanner { padding: 40px var(--sotsot-gutter); }
  .sotsot-lp.rankbanner .rankbanner-bg-pc { display: none; }

  .sotsot-lp.rankbanner .rankbanner-sp {
    position: relative;
    display: block;
    background: linear-gradient(135deg, var(--yellow-cta), var(--purple)); /* 外側＝グラデ本体 */
    border-radius: 20px;
    border: 1px solid rgba(194, 178, 241, 0.35);
    text-decoration: none;
    padding: 0;
  }
  .sotsot-lp.rankbanner .rankbanner-sp-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg); /* 内側＝白、右下だけ8px控えて重ねる */
    border-radius: 16px;
    margin: 0 8px 8px 0;
    padding: 16px 40px 16px 16px;
  }
  .sotsot-lp.rankbanner .rankbanner-thumb {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
  }
  .sotsot-lp.rankbanner .rankbanner-sp-text h2 {
    font-size: 16px;
    color: var(--ink-strong);
    line-height: 1.5;
  }
  .sotsot-lp.rankbanner .rankbanner-sp-arrow {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 20px;
    height: 20px;
    color: var(--ink-strong);
  }
}

/* ==========================================================
   ⑥ 記事スライダー：サムネイルの角丸＋ホバー拡大
   ========================================================== */
.sotsot-lp.article-slider .post-thumbnail {
  overflow: hidden;
  border-radius: 10px;
}
.sotsot-lp.article-slider .post-thumbnail img {
  transition: transform 0.4s ease;
}
.sotsot-lp.article-slider .kb-post-list-item:hover .post-thumbnail img {
  transform: scale(1.05);
}

/* ==========================================================
   ⑦ 気になるテーマから読む (themecta)
   ========================================================== */
.sotsot-lp.themecta {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px var(--sotsot-gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.sotsot-lp.themecta .themecta-badge {
  position: relative;
  width: 168px; /* 140pxの写真 + リング10px×2 */
  height: 168px;
  margin-bottom: 32px;
}
.sotsot-lp.themecta .themecta-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--purple), var(--yellow), var(--purple));
  animation: themecta-rotate 10s linear infinite;
}
.sotsot-lp.themecta .themecta-photo {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
}
.sotsot-lp.themecta .themecta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes themecta-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 星 */
.sotsot-lp.themecta .themecta-stars { position: absolute; inset: 0; pointer-events: none; }
.sotsot-lp.themecta .star { position: absolute; fill: var(--yellow); animation: themecta-twinkle 2.4s ease-in-out infinite; }
.sotsot-lp.themecta .star--lg { width: 20px; height: 20px; }
.sotsot-lp.themecta .star--sm { width: 10px; height: 10px; fill: var(--purple); }
.sotsot-lp.themecta .s1 { top: -8%;  left: 6%;  animation-delay: 0s; }
.sotsot-lp.themecta .s2 { top: 2%;   right: -8%; animation-delay: 0.5s; }
.sotsot-lp.themecta .s3 { bottom: -6%; right: 10%; animation-delay: 1s; }
.sotsot-lp.themecta .s4 { bottom: 4%; left: -8%; animation-delay: 1.5s; }
.sotsot-lp.themecta .s5 { top: 44%;  left: -12%; animation-delay: 2s; }
@keyframes themecta-twinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.05); }
}

.sotsot-lp.themecta .themecta-text h2 {
  color: var(--ink-strong);
  font-size: 26px;
  margin-bottom: 24px;
}

/* キーワードタグ(ピル型) */
.sotsot-lp.themecta .themecta-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.sotsot-lp.themecta .tag-pill {
  display: inline-block;
  border-radius: 60px;
  padding: 10px 24px;
  background: var(--purple);
  color: var(--ink-strong);
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.sotsot-lp.themecta .tag-pill:hover { transform: scale(0.97); }

/* 医療配慮の注意書き */
.sotsot-lp.themecta .themecta-notice {
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 640px;
  color: var(--ink);
  font-size: 14px;
}

@media (max-width: 480px) {
  .sotsot-lp.themecta { padding: 60px var(--sotsot-gutter); }
  .sotsot-lp.themecta .themecta-badge { width: 120px; height: 120px; }
  .sotsot-lp.themecta .themecta-text h2 { font-size: 20px; }
  .sotsot-lp.themecta .tag-pill { padding: 8px 18px; font-size: 13px; }
  .sotsot-lp.themecta .themecta-notice { margin-top: 28px; padding-top: 18px; font-size: 13px; }
}

/* ==========================================================
   すのちゃんのつぶやき（KV・SVG cloud吹き出し）
   ・文字位置は「吹き出しの幅」基準。画面幅ごとに変えるのは --sb-w と文字サイズだけ
   ・縦位置の微調整は --sb-y の1つだけ（幅の％）
   ・改行はJS側のセリフの \n で指定（white-space: pre）
   ※位置指定は下のメディアクエリ内の1か所だけに書く（重複するとカスケードで負ける）
   ========================================================== */
.sotsot-lp .suno-bubble {
  --sb-w: 146px;
  --sb-y: -1;
  position: absolute;
  z-index: 2;
  width: var(--sb-w);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: opacity 1.5s ease, transform 1.5s ease;
  pointer-events: none;
}
.sotsot-lp .suno-bubble-shape {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.85;
}
.sotsot-lp .suno-bubble-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12%;
  text-align: center;
  white-space: pre;
  color: var(--ink-strong);
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  transform: translateY(calc(var(--sb-w) * var(--sb-y) / 100));
}
.sotsot-lp .suno-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 出現位置（デスクトップ） */
.sotsot-lp .suno-bubble--left  { top: 32%; left: 14%; }
.sotsot-lp .suno-bubble--right { top: 16%; left: 34%; }

/* タブレット以下：見出しと重なるので画面下寄りに変更 */
@media (max-width: 1024px) {
  .sotsot-lp .suno-bubble { --sb-w: 170px; }
  .sotsot-lp .suno-bubble--left  { top: 67%; bottom: auto; left: 6%; }
  .sotsot-lp .suno-bubble--right { top: 48%; bottom: auto; left: auto; right: 6%; }
}

/* スマホ：吹き出しを小さく＋文字サイズだけ調整 */
@media (max-width: 480px) {
  .sotsot-lp .suno-bubble { --sb-w: 100px; }
  .sotsot-lp .suno-bubble--left  { top: 67%; bottom: auto; }
  .sotsot-lp .suno-bubble--right { top: 55%; bottom: auto; }
  .sotsot-lp .suno-bubble-text { font-size: 10px; }
}

/* ==========================================================
   お悩みリング（trouble）
   ========================================================== */
@property --trouble-p {
  syntax: '<angle>';
  inherits: false;
  initial-value: 360deg;
}
.sotsot-lp.trouble {
  position: relative;
  overflow: hidden;
  background: transparent; /* 白は外枠(.sotsot-flow)が持つ */
  padding: 72px var(--sotsot-gutter) 64px;
}
.sotsot-lp.trouble .wrap { position: relative; z-index: 1; padding: 0; }
.sotsot-lp .trouble-h2 {
  text-align: center;
  font-size: 22px;
  color: var(--ink-strong);
  margin: 0 0 40px;
}
.sotsot-lp .trouble-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 860px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.sotsot-lp .trouble-item { flex: 1; display: flex; justify-content: center; }

/* 輪：黄色の土台に、紫が角度ぶんだけ塗られていく */
.sotsot-lp .trouble-ring {
  --trouble-p: 360deg;
  width: 210px;
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 4px;
  background: conic-gradient(from 0deg, var(--purple) var(--trouble-p), var(--yellow) 0);
}
.sotsot-lp .trouble-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.sotsot-lp .trouble-inner p {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink-strong);
}
.sotsot-lp .trouble-pill {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 4px 16px;
  border-radius: 100px;
  background: #EEECEC;
  color: var(--ink);
}

/* JSが動いた時だけ「黄色スタート」にする（動かなくても紫の完成形が見える） */
.sotsot-lp.trouble.is-t-ready .trouble-ring { --trouble-p: 0deg; }
.sotsot-lp.trouble.is-t-ready .trouble-pill { background: #EEECEC; color: var(--ink); }

.sotsot-lp.trouble.is-t-ready.is-in .trouble-ring {
  --trouble-p: 360deg;
  transition: --trouble-p 1.1s cubic-bezier(.65, 0, .3, 1);
}
.sotsot-lp.trouble.is-t-ready.is-in .trouble-pill {
  background: var(--purple);
  color: var(--ink-strong);
  transition: background .4s ease, color .4s ease;
}
/* 1→2→3の順番（リングが塗り終わる頃にピルも紫に） */
.sotsot-lp.trouble.is-in .trouble-item:nth-child(1) .trouble-ring { transition-delay: 0s; }
.sotsot-lp.trouble.is-in .trouble-item:nth-child(2) .trouble-ring { transition-delay: .9s; }
.sotsot-lp.trouble.is-in .trouble-item:nth-child(3) .trouble-ring { transition-delay: 1.8s; }
.sotsot-lp.trouble.is-in .trouble-item:nth-child(1) .trouble-pill { transition-delay: .7s; }
.sotsot-lp.trouble.is-in .trouble-item:nth-child(2) .trouble-pill { transition-delay: 1.6s; }
.sotsot-lp.trouble.is-in .trouble-item:nth-child(3) .trouble-pill { transition-delay: 2.5s; }

@media (prefers-reduced-motion: reduce) {
  .sotsot-lp.trouble .trouble-ring,
  .sotsot-lp.trouble .trouble-pill { transition: none !important; }
}

/* スマホ：小さい円を3つ横並び */
@media (max-width: 480px) {
  .sotsot-lp.trouble { padding: 48px var(--sotsot-gutter) 44px; }
  .sotsot-lp .trouble-h2 { font-size: 18px; margin-bottom: 28px; }
  .sotsot-lp .trouble-list { gap: 8px; }
  .sotsot-lp .trouble-ring { width: 100%; max-width: 112px; padding: 3px; }
  .sotsot-lp .trouble-inner { gap: 6px; }
  .sotsot-lp .trouble-inner p { font-size: 11px; line-height: 1.45; }
  .sotsot-lp .trouble-pill { font-size: 9px; padding: 2px 8px; }
}

/* ==========================================================
   全体を通して流れる背景の粒（sotsot-flow）
   お悩み・うちの子・成分を1つのBOXに入れ、粒は3層だけ動かす
   ========================================================== */
.sotsot-flow {
  position: relative;
  overflow: hidden;
  overflow: clip;
  background: #fff;
}
.sotsot-flow .flow-dots {
  position: absolute;
  inset: 0;
  z-index: 2; /* うちの子の薄黄より前面 */
  pointer-events: none;
}
.sotsot-flow .flow-layer {
  position: absolute;
  inset: -20% 0; /* 外枠より縦に長くして、動いた時に上下の端が空かないようにする */
  will-change: transform;
}
.sotsot-flow .flow-layer span {
  position: absolute;
  display: block;
}
.sotsot-flow .flow-layer span svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* 文字・カードなどの中身は、粒より前面に出す（粒は背景扱い） */
.sotsot-flow .sotsot-lp > :not(.measure2-scatter) {
  position: relative;
  z-index: 3;
}
@media (max-width: 1024px) {
  .sotsot-flow .flow-dots { opacity: .6; }
  .sotsot-flow .flow-layer span { left: 1.5% !important; }
}
@media (max-width: 480px) {
  .sotsot-flow .flow-layer span:nth-child(n+3) { display: none; }
}

/* ==========================================================
   【粒の切り替え後に削除】旧・各セクション用の背景の粒
   お悩み・成分の古い粒のHTML(.measure2-scatter)を消したら、
   このブロックごと削除してOK（先にCSSだけ消すと粒が巨大化する）
   ========================================================== */
.measure2-scatter,
.sotsot-lp.measure2 .measure2-scatter,
.sotsot-lp.trouble .measure2-scatter {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.measure2-scatter span,
.sotsot-lp.measure2 .measure2-scatter span,
.sotsot-lp.trouble .measure2-scatter span {
  position: absolute;
  display: block;
}
.measure2-scatter span svg,
.sotsot-lp.measure2 .measure2-scatter span svg,
.sotsot-lp.trouble .measure2-scatter span svg {
  width: 100%;
  height: 100%;
  display: block;
}
@media (max-width: 1024px) {
  .sotsot-lp.measure2 .measure2-scatter span:nth-child(n+35) { display: none; }
}
@media (max-width: 480px) {
  .sotsot-lp.measure2 .measure2-scatter span:nth-child(n+18) { display: none; }
  .sotsot-lp.measure2 .p-shape { filter: none !important; }
  .sotsot-lp.trouble .measure2-scatter span:nth-child(n+10) { display: none; }
}
