/**
 * コスメ版LP固有のスタイル — Liquid Glass Edition
 * アパレル版の共通CSS（components.css, sections.css, base.css）を継承し、
 * コスメ向けのローズ・マーブ（Rose Mauve）トーンで上書き。
 *
 * Design Tokens: frontend/public/css/liquid-glass-tokens.css [data-theme="cosme"] 準拠
 * No-Line原則: ソリッドボーダー禁止、影と背景色差で境界表現
 */

/* ========================================
   コスメ版 Liquid Glass カラーパレット
   ======================================== */
:root {
  --cosme-primary: #8B2252;
  --cosme-primary-light: #C06B8A;
  --cosme-bg-rose: #F5EDEF;
  --cosme-accent: #D4A0B0;
  --cosme-sage: #B2AC88;

  /* Liquid Glass トークン（コスメ版） */
  --cosme-lg-bg-base: #F5EDEF;
  --cosme-lg-bg-gradient: linear-gradient(135deg, #F5EDEF 0%, #EDE5E8 30%, #F7F0F2 60%, #EFE7EA 100%);
  --cosme-lg-glass-L1: rgba(255, 245, 248, 0.72);
  --cosme-lg-glass-L2: rgba(255, 245, 248, 0.65);
  --cosme-lg-accent: #C06B8A;
  --cosme-lg-accent-hover: #A85A76;
  --cosme-lg-accent-gradient: linear-gradient(135deg, #D4A0B0 0%, #C06B8A 100%);
  --cosme-lg-accent-glass: rgba(192, 107, 138, 0.12);
}

/* アパレル版の紫（#7C3AED）をコスメ版カラーで完全上書き */
body {
  --color-primary: #8B2252;
  --color-primary-light: #C06B8A;
  --color-primary-dark: #6B1A3F;
  --color-primary-hover: #7A1E48;

  /* LP共通トークンのコスメ版上書き */
  --lg-bg-gradient: var(--cosme-lg-bg-gradient);
  --color-bg: var(--cosme-lg-bg-base);
  background-image: var(--cosme-lg-bg-gradient);
}

/* ========================================
   Hero: コスメ版ローズ・マーブトーン
   ======================================== */
.cosme-hero {
  background: transparent;
}

.cosme-hero-title {
  font-family: 'Noto Serif JP', 'Yu Mincho', 'Hiragino Mincho ProN', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-display: swap;
}

/* ========================================
   CTA ボタン: コスメ版 Liquid Glass
   ======================================== */
.cosme-cta {
  background: var(--cosme-lg-accent-gradient);
  border: none;
  color: #FFFFFF;
  box-shadow: var(--shadow-button);
}

.cosme-cta:hover {
  background: var(--cosme-lg-accent-gradient);
  opacity: 0.9;
  border: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(192, 107, 138, 0.3);
}

/* ========================================
   コスメ版 アプリUIモックアップ — Liquid Glass
   ======================================== */
.cosme-app-mockup {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--cosme-lg-glass-L1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  font-family: 'Noto Sans JP', sans-serif;
}

/* No-Line: border-bottom → box-shadow */
.cosme-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: none;
  background: rgba(255, 245, 248, 0.5);
  box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.06);
}

.cosme-mock-logo {
  font-size: 13px;
  font-weight: 700;
  color: #8B2252;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cosme-mock-logo-icon {
  width: 20px;
  height: 20px;
  background: var(--cosme-lg-accent-gradient);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
}

/* No-Line: border → Glass L2 + rim-light */
.cosme-mock-plan-badge {
  font-size: 10px;
  font-weight: 600;
  color: #8B2252;
  background: var(--cosme-lg-glass-L2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: none;
  padding: 2px 8px;
  border-radius: 100px;
  box-shadow: var(--lg-rim-light);
}

/* No-Line: border → warning box-shadow */
.cosme-mock-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 12px;
  padding: 8px 10px;
  background: linear-gradient(135deg, #FEF3C7, #FDE68A);
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
}

.cosme-mock-alert-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.cosme-mock-alert-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.cosme-mock-alert-label {
  font-size: 9px;
  color: #92400E;
  font-weight: 600;
}

.cosme-mock-alert-value {
  font-size: 12px;
  color: #78350F;
  font-weight: 700;
}

.cosme-mock-input-area {
  margin: 0 12px 8px;
}

.cosme-mock-label {
  font-size: 9px;
  font-weight: 600;
  color: #9CA3AF;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* No-Line: border → Glass背景 + rim-light */
.cosme-mock-textarea {
  background: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.5;
  color: #374151;
  box-shadow: var(--lg-rim-light);
}

.cosme-mock-output-area {
  margin: 0 12px 8px;
}

/* No-Line: border → Glass背景 + accent色差 */
.cosme-mock-output {
  background: var(--cosme-lg-glass-L2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 10px;
  line-height: 1.6;
  color: #374151;
  box-shadow: var(--lg-rim-light);
}

.cosme-mock-output strong {
  color: #8B2252;
  font-weight: 600;
}

/* No-Line: border → Glass L2 + rim-light */
.cosme-mock-safe-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  font-size: 9px;
  font-weight: 600;
  color: #B2AC88;
  background: var(--cosme-lg-glass-L2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: none;
  padding: 2px 8px;
  border-radius: 100px;
  box-shadow: var(--lg-rim-light);
}

.cosme-mock-btn {
  margin: 0 12px 12px;
  background: var(--cosme-lg-accent-gradient);
  color: #FFFFFF;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

/* ========================================
   Before/After セクション: コスメ版 Liquid Glass上書き
   ======================================== */

/* No-Line: border-color → box-shadow inset */
.ba-after {
  background: var(--cosme-lg-glass-L1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: none;
  box-shadow: var(--shadow-card), var(--lg-rim-light-strong), inset 0 0 0 2px #8B2252;
}

.ba-badge-after {
  background: var(--cosme-lg-accent-gradient);
}

.ba-reply-highlight strong {
  color: #8B2252;
}

/* ========================================
   薬機法遵守チェック済みバッジ — Liquid Glass
   ======================================== */

/* No-Line: border → Glass背景 + rim-light */
.yakujiho-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 14px;
  background: var(--cosme-lg-glass-L2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: #6B6740;
  letter-spacing: 0.02em;
  box-shadow: var(--lg-rim-light);
}

.yakujiho-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: #B2AC88;
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  flex-shrink: 0;
}

/* ========================================
   SEOコラム: コスメ版 Liquid Glass上書き
   ======================================== */
.seo-column-blockquote {
  background: var(--cosme-lg-accent-glass);
  border: none;
  box-shadow: inset 4px 0 0 0 #8B2252, var(--lg-rim-light);
}

.seo-column-closing {
  border: none;
  box-shadow: var(--shadow-card), var(--lg-rim-light-strong), inset 0 0 0 2px #8B2252;
}

/* ========================================
   Stats: コスメ版カラー上書き
   ======================================== */
.stats-number {
  color: #8B2252;
}

.stats-icon {
  color: #8B2252;
}

/* ========================================
   ステップ数字: セージグリーン
   ======================================== */
.step-number {
  background: #B2AC88;
}

.step-arrow {
  color: #B2AC88;
}

/* ========================================
   ROI: コスメ版 Liquid Glass上書き
   ======================================== */
.roi-item-ours {
  background: var(--cosme-lg-glass-L1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: none;
  box-shadow: var(--shadow-card), var(--lg-rim-light-strong), inset 0 0 0 2px #8B2252;
}

.roi-value-highlight,
.roi-value-highlight strong {
  color: #8B2252;
}

/* ========================================
   Mock output（共通sections.css上書き）— Liquid Glass
   ======================================== */
.mock-output {
  background: var(--cosme-lg-glass-L2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: none;
  box-shadow: var(--lg-rim-light);
}

.mock-copy-btn {
  background: var(--cosme-lg-accent-gradient);
}

/* ========================================
   料金プラン: コスメ版 Liquid Glass
   ======================================== */
.cosme-pricing-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* No-Line: border-color → box-shadow inset */
.cosme-recommended {
  position: relative;
  border: none;
  box-shadow: var(--shadow-card), var(--lg-rim-light-strong), inset 0 0 0 2px var(--cosme-primary);
}

.recommended-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cosme-lg-accent-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}

.cosme-cta-recommended {
  background: var(--cosme-lg-accent-gradient);
  border: none;
  color: #fff;
}

.cosme-cta-recommended:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ========================================
   CTA セクション — Liquid Glass
   ======================================== */
.cosme-cta-section {
  background: transparent;
}

.cosme-disclaimer {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ========================================
   スティッキーCTA（モバイル）— Liquid Glass
   No-Line: border-top → box-shadow
   ======================================== */
.cosme-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: var(--cosme-lg-glass-L1);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: none;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08), var(--lg-rim-light);
  z-index: 100;
  text-align: center;
}

.cosme-sticky-cta .button {
  width: 100%;
  max-width: 400px;
}

@media (max-width: 768px) {
  .cosme-sticky-cta {
    display: block;
  }

  /* スティッキーCTAの分だけ下部にパディング */
  body {
    padding-bottom: 72px;
  }

  .cosme-hero-title {
    font-size: 24px;
    min-font-size: 18px;
  }
}

/* モバイル見出し最小サイズ */
@media (max-width: 480px) {
  .cosme-hero-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 18px;
  }
}

/* ========================================
   backdrop-filter フォールバック（コスメ版）
   ======================================== */
@supports not (backdrop-filter: blur(1px)) {
  .cosme-app-mockup {
    background: rgba(255, 245, 248, 0.92);
  }

  .cosme-mock-output {
    background: rgba(255, 240, 243, 0.92);
  }

  .cosme-sticky-cta {
    background: rgba(245, 237, 239, 0.95);
  }

  .ba-after {
    background: rgba(255, 245, 248, 0.92);
  }

  .roi-item-ours {
    background: rgba(255, 245, 248, 0.92);
  }

  .yakujiho-badge,
  .cosme-mock-plan-badge,
  .cosme-mock-safe-badge {
    background: rgba(255, 240, 243, 0.92);
  }
}

/* ========================================
   prefers-reduced-motion 対応（コスメ版）
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .cosme-cta,
  .cosme-cta:hover,
  .cosme-cta-recommended,
  .cosme-cta-recommended:hover {
    transition: none;
    transform: none;
  }

  .cosme-sticky-cta {
    transition: none;
  }
}
