/* 
 * カスタムスタイル - 基本設定
 * style.css
 */
:root {
  --primary-color: #ff2a7a;
  --primary-color-hover: #e01b65;
  --primary-light: #fff0f5;
  --primary-gradient: linear-gradient(135deg, #ff2a7a 0%, #ff4b91 45%, #e11d68 100%);
  --primary-gradient-hover: linear-gradient(135deg, #ff3b85 0%, #ff5c9d 45%, #cc145b 100%);
  --primary-gradient-subtle: linear-gradient(135deg, rgba(255, 42, 122, 0.08) 0%, rgba(255, 75, 145, 0.04) 100%);
  --secondary-color: #0f172a; /* Premium Dark Slate */
  --accent-color: #0d9488; /* Elegant Teal */
  --bg-color: #f8fafc; /* Slate 50 backdrop */
  --card-bg: #ffffff;
  --text-main: #1e293b; /* Slate 800 for high readability */
  --text-muted: #475569; /* Slate 600 secondary text (previously too light) */
  --border-color: #e2e8f0; /* Slate 200 for clean structural boundaries */
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 16px 36px rgba(255, 42, 122, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

body {
  font-family:
    "Outfit",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif;
  background-color: var(--bg-color);
  background-image:
    radial-gradient(
      circle at 100% 0%,
      rgba(0, 229, 255, 0.03) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 0% 100%,
      rgba(255, 42, 122, 0.03) 0%,
      transparent 40%
    ),
    linear-gradient(rgba(255, 42, 122, 0.01) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 42, 122, 0.01) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    24px 24px,
    24px 24px;
  background-attachment: fixed;
  color: var(--text-main);
  position: relative;
}

/* Floating organic liquid blobs in the background */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 45vw;
  height: 45vw;
  min-width: 350px;
  min-height: 350px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -2;
  pointer-events: none;
  opacity: 0.22;
  animation: float-blobs 25s infinite alternate ease-in-out;
  /* GPUアクセラレーションを有効にして描画負荷を軽減 */
  transform: translateZ(0);
  will-change: transform;
  backface-visibility: hidden;
}

body::before {
  background: radial-gradient(
    circle,
    var(--primary-color) 0%,
    rgba(255, 42, 122, 0) 70%
  );
  top: 15%;
  left: -150px;
}

body::after {
  background: radial-gradient(
    circle,
    var(--accent-color) 0%,
    rgba(0, 229, 255, 0) 70%
  );
  bottom: 15%;
  right: -150px;
  animation-delay: -12s;
}

@keyframes float-blobs {
  0% {
    transform: translateZ(0) translate(0, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateZ(0) translate(60px, 80px) rotate(180deg) scale(1.15);
  }
  100% {
    transform: translateZ(0) translate(-30px, 40px) rotate(360deg) scale(0.95);
  }
}

/* スマホ等での描画負荷（白紙化）対策 */
@media (max-width: 991.98px) {
  body::before,
  body::after {
    /* ぼかしを半分に減らして負荷軽減 */
    filter: blur(60px);
    /* スマホでは重い背景アニメーションを停止（カードの横スクロールとは無関係です） */
    animation: none;
  }
}

@media (max-width: 991.98px) {
  body {
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
  .site-footer {
    padding-bottom: calc(75px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Enhanced Liquid Glassmorphism utility */
.glass {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 8px 32px 0 rgba(255, 42, 122, 0.02),
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.bg-brand {
  background-color: var(--primary-color);
}
.text-brand {
  color: var(--primary-color);
}

/*
 * 固定フッター（フレックスで高さ調整）
 */
main.container {
  flex: 1 0 auto;
}
.site-footer {
  margin-top: 0 !important;
  flex-shrink: 0;
}

/*
 * パンくずリスト
 */
.breadcrumb-wrapper {
  width: 100%;
  padding: 8px 0;
  background: #eef2f6 !important;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.breadcrumb-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 15px;
}
.breadcrumb-inner .breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.breadcrumb-inner .breadcrumb::-webkit-scrollbar {
  display: none;
}
.breadcrumb-inner .breadcrumb li {
  flex-shrink: 0;
  white-space: nowrap;
  color: #64748b;
}
.breadcrumb-inner .breadcrumb li[aria-current="page"] {
  color: #1e293b;
  font-weight: 700;
}
.breadcrumb-inner .breadcrumb a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb-inner .breadcrumb a:hover {
  color: #ff3385;
  text-decoration: underline;
}
.breadcrumb-inner .breadcrumb li + li::before {
  content: "\203A";
  color: #94a3b8;
  margin: 0 6px;
  font-weight: 700;
  font-size: 14px;
}

/*
 * お気に入りボタン共通スタイル
 */
.therapist-search-favorite,
.therapist-detail-favorite,
.therapist-part-favorite,
.therapist-favorite-btn,
.therapist-card-favorite,
.shop-favorite-btn,
[data-favorite-btn] {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  z-index: 10;
  position: relative;
}

.therapist-search-favorite:hover,
.therapist-detail-favorite:hover,
.therapist-part-favorite:hover,
.therapist-favorite-btn:hover,
.therapist-card-favorite:hover,
.shop-favorite-btn:hover,
[data-favorite-btn]:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(233, 30, 99, 0.3);
}

.therapist-search-favorite:active,
.therapist-detail-favorite:active,
.therapist-part-favorite:active,
.therapist-favorite-btn:active,
.therapist-card-favorite:active,
.shop-favorite-btn:active,
[data-favorite-btn]:active {
  transform: scale(0.95);
}

/* お気に入りアイコン - 未選択時（グレー） */
.therapist-search-favorite i,
.therapist-detail-favorite i,
.therapist-part-favorite i,
.therapist-favorite-btn i,
.therapist-card-favorite i,
.shop-favorite-btn i,
[data-favorite-btn] i {
  color: #999;
  transition: color 0.2s ease;
}

/* お気に入りアイコン - 選択時（ピンク） */
.therapist-search-favorite i.bi-heart-fill,
.therapist-detail-favorite i.bi-heart-fill,
.therapist-part-favorite i.bi-heart-fill,
.therapist-favorite-btn i.bi-heart-fill,
.therapist-card-favorite i.bi-heart-fill,
.shop-favorite-btn i.bi-heart-fill,
[data-favorite-btn] i.bi-heart-fill {
  color: #e91e63;
}

/* ホバー時のアイコン色 */
.therapist-search-favorite:hover i,
.therapist-detail-favorite:hover i,
.therapist-part-favorite:hover i,
.therapist-favorite-btn:hover i,
.therapist-card-favorite:hover i,
.shop-favorite-btn:hover i,
[data-favorite-btn]:hover i {
  color: #e91e63;
}

/*
 * テキスト選択・コピー禁止（口コミ本文保護用）
 */
.prevent-copy,
.kuchikomi-text,
.review-card-text {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}
