/* エステサロン向け：白い大理石と金箔、墨の黒。余白と細い線で高級ホテルのような上質さ */
body.theme-white {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f5f0e8;
  --line: #ece4d6;
  --text: #1c1814;
  --muted: #8a8073;
  --accent: #1c1814;        /* 主ボタンは墨色。文字は金 */
  --accent-ink: #e6cf9c;
  --accent-soft: #f6efe2;
  --gold: #a8823f;
  --foil: linear-gradient(120deg, #8a6a35 0%, #c9a65f 28%, #f1dfae 46%, #b8924c 62%, #e4cb8f 82%, #9a7738 100%);
  --radius: 4px;
  --shadow: 0 1px 1px rgba(60, 45, 20, .03), 0 14px 36px rgba(60, 45, 20, .07);
  --font-head: "Shippori Mincho", "Noto Serif JP", serif;
  --font-latin: "Cormorant Garamond", "Shippori Mincho", serif;
  letter-spacing: .02em;
  background-image: radial-gradient(900px 420px at 100% 0%, rgba(201,166,95,.10), transparent 70%);
  background-repeat: no-repeat;
}

/* ヘッダー＝白い大理石。うっすらした灰色の筋と、金の細い線 */
.theme-white .app-header {
  background-color: #fbfaf7;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='1800' height='420'><filter id='m'><feTurbulence type='turbulence' baseFrequency='0.0025 0.006' numOctaves='5' seed='21'/><feColorMatrix values='0 0 0 0 0.62  0 0 0 0 0.6  0 0 0 0 0.57  0 0 0 -5 1.05'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>"),
    linear-gradient(180deg, #ffffff, #f7f3ec);
  background-size: 1800px 420px, auto;
  background-repeat: no-repeat;
  border-bottom: 1px solid transparent;
  border-image: var(--foil) 1;
  padding-top: 30px;
}
.theme-white .app-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--foil);
}
.theme-white .brand-name {
  font-size: 34px; font-weight: 600; letter-spacing: .34em; text-transform: uppercase;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: foil 8s ease-in-out infinite alternate;
}
@keyframes foil { from { background-position: 0% 0; } to { background-position: 100% 0; } }
.theme-white .brand-sub { font-family: var(--font-head); letter-spacing: .14em; color: #5f564b; opacity: 1; }
.theme-white .brand-ai { color: #8a6a35; border-color: #d7bf8c; background: #fffaf0; }
.theme-white .demo-note { color: var(--muted); opacity: 1; }
.theme-white .tab { letter-spacing: .14em; font-size: 13px; color: var(--muted); opacity: 1; }
.theme-white .tab[aria-selected="true"] { color: var(--text); border-bottom: 2px solid transparent; border-image: var(--foil) 1; font-weight: 600; }

.theme-white h2.sec { display: block; font-weight: 500; letter-spacing: .16em; font-size: 19px; }
.theme-white h2.sec::after { content: ""; display: block; width: 36px; height: 2px; background: var(--foil); margin-top: 10px; }
.theme-white .card { padding: 22px; border-color: var(--line); position: relative; }
.theme-white .card::before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; background: var(--foil); opacity: .55; }
.theme-white .kpi-tile .value { font-size: 34px; font-weight: 600; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.theme-white .kpi-tile.alert .value { background: linear-gradient(120deg, #7a2338, #b0475f); -webkit-background-clip: text; background-clip: text; }
.theme-white .btn { letter-spacing: .1em; }
.theme-white .btn.primary { background: linear-gradient(180deg, #2a241e, #15110d); border-color: #b8924c; color: var(--accent-ink); box-shadow: 0 6px 18px rgba(28,24,20,.22), inset 0 1px 0 rgba(241,223,174,.25); }
.theme-white .btn.primary:hover { opacity: 1; box-shadow: 0 10px 24px rgba(28,24,20,.28), inset 0 1px 0 rgba(241,223,174,.35); }
.theme-white .btn.gold { border-color: #c9a65f; color: #8a6a35; background: #fffaf0; }
.theme-white .chip { letter-spacing: .06em; }
.theme-white .chip[aria-pressed="true"] { background: #1c1814; border-color: #b8924c; color: var(--accent-ink); }
.theme-white .badge { background: #fffdf8; border: 1px solid var(--line); color: var(--muted); }
.theme-white .badge.ok { border-color: #cfdccc; color: #3f6b48; }
.theme-white .badge.warn { border-color: #e6d1a8; color: #8a6a35; }
.theme-white .badge.danger { border-color: #e8c3cb; color: #7a2338; }
.theme-white .badge.gold { color: #8a6a35; border-color: #c9a65f; background: #fffaf0; }
.theme-white .ai-box { border: 1px solid #e3cf9f; background: linear-gradient(180deg, #fffaf0, #ffffff); }
.theme-white .ai-box .label { color: #8a6a35; letter-spacing: .12em; }
.theme-white .bar > i { background: var(--foil); }
.theme-white .input:focus { border-color: #c9a65f; box-shadow: 0 0 0 3px #f6ecd6; }
