@charset "utf-8";

/* ============================================================================
 * File: assets/css/top.css
 * Role: トップページ固有CSS（ヒーロー・各セクション）
 * ========================================================================== */

/* =====================================================
 * 1. ヒーロー
 * ===================================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--color-primary);
}
.hero__bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  transform: translateZ(0);
  will-change: transform;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.0) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}
.hero__catch-sub {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5), 0 0 30px rgba(0,0,0,0.3);
  animation: fadeUp 0.8s ease 0.3s both;
}
.hero__catch-main {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.3), 0 4px 24px rgba(0,0,0,0.2);
  animation: fadeUp 0.8s ease 0.6s both;
}
.hero__catch-accent {
  color: #f0d48a;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7), 0 0 20px rgba(0,0,0,0.3);
}
.hero__cta {
  margin-top: 32px;
  animation: fadeUp 0.8s ease 0.9s both;
}
.hero__cta .btn-more {
  background: var(--color-accent);
  font-size: 0.95rem;
  padding: 14px 40px;
}
.hero__cta .btn-more:hover {
  background: var(--color-accent-hover);
}
.hero__cta .btn-more:hover .btn-more__arrow {
  transform: translateY(4px);
}
.hero__scroll {
  position: absolute;
  bottom: 80px;
  left: 0;
  right: 0;
  z-index: 2;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-align: center;
  animation: fadeUp 0.8s ease 1.2s both;
}
.hero__scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.4);
  margin: 8px auto 0;
  animation: scrollLine 1.5s ease infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@media (max-width: 768px) {
  .hero {
    align-items: flex-start;
    padding-top: calc(var(--header-h) + 22vh + 50px);
    height: 100vh;
    height: 100svh; /* アドレスバーの出し入れで高さが変わらない安定した値 */
  }
  .hero__scroll {
    bottom: 110px;
  }
}
/* 通常ブラウザ（非PWA）のみ：コンテンツを約100px上に */
@media (max-width: 768px) and (display-mode: browser) {
  .hero {
    padding-top: calc(var(--header-h) + 22vh - 50px);
  }
}

/* =====================================================
 * 2. セラピストカード
 * ===================================================== */
.cast-card__thumb {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  /* 画像読み込み前・動画待ちの時にローダーが美しく映えるよう、プレミアムなダーク背景に変更 */
  background: linear-gradient(160deg, #6b4f2e 0%, #3a2618 50%, #2a1c10 100%);
}
.cast-card__thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
@media (hover: hover) {
  .cast-card__thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), rgba(255,255,255,0.5), rgba(255,255,255,0.3), transparent);
    transform: skewX(-15deg);
    z-index: 3;
    pointer-events: none;
  }
  .cast-card:hover .cast-card__thumb::after {
    animation: thumb-shine 0.6s ease forwards;
  }
  @keyframes thumb-shine {
    0%   { left: -100%; }
    100% { left: 120%; }
  }
}
.cast-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.cast-card__thumb-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.6);
  background: linear-gradient(160deg, #6b4f2e 0%, #3a2618 50%, #2a1c10 100%);
}
.cast-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 8px 10px 24px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.0) 100%);
  color: #fff;
}
.cast-card__overlay .cast-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.cast-card__overlay .cast-card__meta {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.cast-card__body {
  padding: 8px 12px 6px;
}
.cast-card__area {
  font-size: 0.65rem;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cast-card__shop {
  font-size: 0.75rem;
  color: var(--color-primary-light);
  margin-bottom: 0px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  display: block;
  transition: opacity 0.2s;
}
a.cast-card__shop:hover { opacity: 0.7; }
.cast-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cast-card__meta {
  font-size: 0.72rem;
  color: var(--color-text-light);
  margin-bottom: 6px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cast-card__actions {
  display: flex;
  gap: 5px;
}
.btn-prof {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 8px;
  background: linear-gradient(135deg, #b38a4e, #d4a85c);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(179,138,78,0.3);
  letter-spacing: 0.05em;
}
.btn-prof:hover {
  background: linear-gradient(135deg, #9a7640, #c49a4e);
  box-shadow: 0 3px 10px rgba(179,138,78,0.4);
}
.btn-prof svg { vertical-align: -1px; }
.btn-dm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  background: linear-gradient(145deg, #6db3cc, #4a8ba4 40%, #356a80 100%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 6px;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow:
    0 0 10px rgba(74,139,164,0.4),
    0 3px 8px rgba(0,0,0,0.2),
    inset 0 1px 2px rgba(255,255,255,0.25),
    inset 0 -1px 2px rgba(0,0,0,0.15);
}
.btn-dm:hover {
  background: linear-gradient(145deg, #5ea3bc, #3d7a93 40%, #2a5a6e 100%);
  box-shadow:
    0 0 16px rgba(74,139,164,0.55),
    0 4px 12px rgba(0,0,0,0.25),
    inset 0 1px 2px rgba(255,255,255,0.25),
    inset 0 -1px 2px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.btn-dm svg { vertical-align: -1px; }
.btn-dm--disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  background: #d1d5db;
  color: #9ca3af;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 6px;
  white-space: nowrap;
  cursor: default;
  opacity: 0.75;
  pointer-events: none;
  box-shadow: none;
}
.btn-dm--disabled svg { vertical-align: -1px; }
.btn-fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  background: linear-gradient(135deg, #fff, #e0e0e0);
  color: #bbb;
  border-radius: 6px;
  transition: all var(--transition);
}
.btn-fav:hover {
  background: linear-gradient(135deg, #e0e0e0, #b8b8b8);
  color: #666;
}
.btn-fav.is-active {
  background: linear-gradient(135deg, #e8758a, #c95a6e);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232,117,138,0.35);
}
.btn-fav.is-active svg { fill: #fff; }

/* ハートパーティクル */
.heart-particle {
  position: fixed;
  color: #e8758a;
  pointer-events: none;
  z-index: 9999;
  font-size: 1.8rem;
  animation: heart-burst 0.6s ease-out forwards;
}
@keyframes heart-burst {
  0%   { transform: translate(0,0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0.3) rotate(var(--rot)); opacity: 0; }
}

/* =====================================================
 * 3. クーポンカード
 * ===================================================== */
.coupon-card__body {
  padding: 10px 14px 2px;
}
.coupon-card__area {
  font-size: 0.65rem;
  color: var(--color-text-light);
  margin-bottom: 1px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coupon-card__shop {
  font-size: 0.65rem;
  color: var(--color-primary-light);
  margin-bottom: 0;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coupon-card__area--lg {
  font-size: 0.8rem;
  font-weight: 600;
}
.coupon-card__shop--lg {
  font-size: 0.96rem;
  font-weight: 700;
}
.coupon-card__sep {
  height: 8px;
}
.coupon-card__name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coupon-card__subtitle {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.coupon-card__price-row {
  display: flex;
  align-items: center;
  gap: 0 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.coupon-card__discount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 0;
  margin-bottom: 2px;
}
.coupon-card__discount--yen {
  background: var(--color-danger);
}
.coupon-card__discount--pct {
  background: #2a7a5a;
}
.coupon-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.coupon-card__price-unit {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text-light);
}
.coupon-card__price-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
}
.coupon-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.coupon-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coupon-card__image-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.85);
  background: linear-gradient(135deg, #5a4332, #8b6f5c, #5a4332);
  position: relative;
  overflow: hidden;
}
.coupon-card__image-noimg span {
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.coupon-card__image-noimg::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), rgba(255,255,255,0.4), rgba(255,255,255,0.25), transparent);
  animation: coupon-shimmer 10s ease-in-out infinite;
  z-index: 1;
  transform: skewX(-15deg);
}
.coupon-card__image-noimg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.15), transparent);
  z-index: 1;
}
@keyframes coupon-shimmer {
  0%   { left: -100%; }
  50%  { left: 120%; }
  100% { left: 120%; }
}
@media (max-width: 768px) {
  .coupon-card__image {
    aspect-ratio: auto;
  }
  .coupon-card__image img {
    height: auto;
  }
  .coupon-card__image:has(.coupon-card__image-noimg) {
    display: none;
  }
}

/* =====================================================
 * 4. 店舗カード
 * ===================================================== */
.shop-card__thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.shop-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.shop-card:hover .shop-card__thumb img {
  transform: scale(1.05);
}
.shop-card__thumb-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.shop-card__body {
  padding: 10px 14px;
}
.shop-card__area {
  font-size: 0.7rem;
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-card__name {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shop-card__info {
  font-size: 0.75rem;
  color: var(--color-text-light);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =====================================================
 * 5. 空状態
 * ===================================================== */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

/* =====================================================
 * 6. レスポンシブ（トップ固有）
 * ===================================================== */
@media (max-width: 768px) {
  .hero { min-height: 100dvh; }
  .hero__catch-main { font-size: 1.6rem; }
  .hero__catch-sub { font-size: 0.8rem; }
}

/* =====================================================
 * 7. 検索バー
 * ===================================================== */
.search-bar {
  margin-bottom: 32px;
  background: linear-gradient(135deg, #fdfbf7, #f3ece1);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid rgba(166,132,79,0.3);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  overflow: hidden;
}
.search-bar__row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.search-bar__field {
  flex: 1;
  min-width: 0;
}
.search-bar__field--keyword {
  flex: 1.8;
}
.search-bar__field--btn {
  flex: 0 0 auto;
}
.search-bar__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.search-bar__select {
  width: 100%;
  padding: 9px 12px;
  background: #fff;
  color: var(--color-text);
  border: 1px solid rgba(166,132,79,0.3);
  border-radius: 6px;
  font-size: 16px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23333' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  transition: all var(--transition);
  cursor: pointer;
}
.search-bar__select:hover,
.search-bar__select:focus {
  border-color: rgba(166,132,79,0.6);
  background-color: #fff;
  outline: none;
}
.search-bar__select option {
  background: #fff;
  color: var(--color-text);
}
.search-bar__input-wrap {
  position: relative;
}
.search-bar__input-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(166,132,79,0.6);
  pointer-events: none;
}
.search-bar__input {
  width: 100%;
  padding: 9px 12px 9px 32px;
  background: #fff;
  color: var(--color-text);
  border: 1px solid rgba(166,132,79,0.3);
  border-radius: 6px;
  font-size: 16px;
  transition: all var(--transition);
}
.search-bar__input::placeholder {
  color: rgba(0,0,0,0.2);
  transition: color 0.2s ease;
}
.search-bar__input:focus::placeholder {
  color: transparent;
}
.search-bar__input:hover,
.search-bar__input:focus {
  border-color: rgba(166,132,79,0.6);
  background-color: #fff;
  outline: none;
}
.search-bar__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 24px;
  background: linear-gradient(135deg, var(--color-accent), #c9a84e);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(166,132,79,0.35);
  letter-spacing: 0.05em;
}
.search-bar__btn:hover {
  background: linear-gradient(135deg, #b89540, #d4b35a);
  box-shadow: 0 4px 16px rgba(166,132,79,0.45);
}
.search-bar__bottom {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(166,132,79,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.search-bar__btn--full {
  width: 100%;
  max-width: 320px;
  padding: 12px 24px;
}
.search-bar__btn--reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 18px;
  background: linear-gradient(135deg, #6e7a8a, #4f5a6a);
  color: rgba(255,255,255,0.88);
  font-size: 0.78rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.search-bar__btn--reset:hover {
  background: linear-gradient(135deg, #5a6575, #3e4a5a);
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}

/* 検索バー レスポンシブ */
@media (max-width: 768px) {
  .search-bar {
    padding: 16px;
  }
  .search-bar__row {
    flex-direction: column;
    gap: 10px;
  }
  .search-bar__field,
  .search-bar__field--keyword {
    flex: none;
    width: 100%;
  }
  .search-bar__field--btn {
    width: 100%;
  }
  .search-bar__btn {
    width: 100%;
    padding: 12px;
  }
  .search-bar__btn--reset {
    width: 60%;
    max-width: 60%;
    margin: 0 auto;
    padding: 10px;
  }
  .search-bar__bottom {
    flex-direction: column;
    gap: 8px;
  }
  .search-bar__field--btn {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
}

/* --- 検索結果なし --- */
.search-no-result {
  text-align: center;
  padding: 48px 20px 98px;
}
.search-no-result__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(166,132,79,0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.search-no-result__icon svg {
  color: var(--color-accent);
}
.search-no-result__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.search-no-result__sub {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* --- 検索バー: オプションエリア --- */
.search-bar__options {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(166,132,79,0.2);
}
.search-bar__checks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

/* --- カスタムチェックボックス --- */
.search-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(166,132,79,0.25);
  transition: all var(--transition);
}
.search-check:hover {
  background: rgba(166,132,79,0.04);
  border-color: rgba(166,132,79,0.45);
}
.search-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.search-check__mark {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(166,132,79,0.4);
  border-radius: 3px;
  position: relative;
  transition: all var(--transition);
}
.search-check__mark::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 5px;
  height: 9px;
  border: solid transparent;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: border-color 0.2s ease;
}
.search-check input:checked ~ .search-check__mark {
  background: linear-gradient(135deg, var(--color-accent), #c9a84e);
  border-color: var(--color-accent);
  box-shadow: 0 0 8px rgba(166,132,79,0.3);
}
.search-check input:checked ~ .search-check__mark::after {
  border-color: #fff;
}
.search-check__text {
  font-size: 0.78rem;
  color: var(--color-text);
  white-space: nowrap;
}
.search-check input:checked ~ .search-check__text {
  color: var(--color-primary);
  font-weight: 600;
}

/* --- 検索フォーム アコーディオン（全画面共通化） --- */
.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 800px;
  padding: 12px 20px;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, #fdfbf7, #f3ece1);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: 1px solid rgba(166,132,79,0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.search-toggle:hover,
.search-toggle:active {
  background: linear-gradient(135deg, #f3ece1, #e8dcc4);
  border-color: rgba(166,132,79,0.6);
}
.search-toggle__chevron {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  margin-left: auto;
}
.search-toggle.is-open .search-toggle__chevron {
  transform: rotate(180deg);
}
.search-toggle.is-open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent !important;
}

.search-bar {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  max-width: 800px;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: none;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.search-bar.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0;
  margin-bottom: 15px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 20px;
  padding-bottom: 20px;
  border-width: 1px;
  border-top-width: 0;
}
.search-bar > div {
  min-height: 0;
  width: 100%;
}
@media (max-width: 768px) {
  .search-bar.is-open {
    padding-top: 16px;
    padding-bottom: 16px;
  }
}
/* --- 検索チェックボックス: モバイル --- */
@media (max-width: 768px) {
  .search-bar__checks {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-check__text {
    white-space: normal;
  }
  .btn-prof {
    padding: 4px 1px;
    font-size: 0.64rem;
  }
  .btn-dm {
    padding: 4px 9px;
    font-size: 0.64rem;
  }
  .btn-fav {
    padding: 4px 8px;
  }
}

/* =====================================================
 * サロンカード共通
 * ===================================================== */
.salon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 32px;
}
@media (max-width: 768px) {
  .salon-grid { grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
}
.salon-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px;
  display: block;
  position: relative;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.25s ease;
}
.salon-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}
.salon-card__open-badge {
  position: absolute;
  top: 8px;
  right: 12px;
  z-index: 2;
}
.salon-card__open-badge .badge--open {
  box-shadow: 0 4px 10px rgba(229,62,62,0.45);
}
.badge--open {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #e53e3e, #c53030);
  color: #fff; font-size: 0.72rem; font-weight: 800;
  padding: 4px 10px; border-radius: 50px;
  letter-spacing: 0.08em; line-height: 1;
  box-shadow: 0 2px 6px rgba(229,62,62,0.35);
  animation: badge-flip 5s ease-in-out infinite;
}
.badge--open::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
}
@keyframes badge-flip {
  0%, 86%  { transform: perspective(300px) rotateY(0deg); }
  100%     { transform: perspective(300px) rotateY(360deg); }
}
.salon-card__area {
  font-size: 0.72rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
}
.salon-card__name-link {
  text-decoration: none;
  display: block;
}
/* stretched-link: カード全体をリンク化 */
.salon-card__name-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.salon-card__name {
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.4;
  transition: color 0.2s;
}
.salon-card__name-link:hover .salon-card__name {
  color: var(--color-accent);
}
.salon-card__cast-photos {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}
.salon-card__cast-photo {
  width: 20%;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg-alt);
}
.salon-card__cast-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.salon-card__cast-photo--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.6rem;
}
.salon-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--color-text);
  line-height: 1.5;
}
.salon-card__info-row {
  display: flex;
  gap: 8px;
}
.salon-card__info-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--color-accent);
}
.salon-card__info-text {
  flex: 1;
  min-width: 0;
  word-break: break-all;
}

/* --- サロンカード：クーポン枠 --- */
.salon-card__coupon {
  margin: 8px 2px 14px;
  padding: 8px 12px 10px;
  border: 1.5px dashed rgba(166,132,79,0.55);
  border-radius: 6px;
  background: rgba(166,132,79,0.05);
  position: relative;
}
/* ハサミアイコン（装飾） */
.salon-card__coupon::before {
  content: '✂';
  position: absolute;
  top: -0.75em;
  left: 10px;
  font-size: 0.75rem;
  color: rgba(166,132,79,0.6);
  background: var(--color-card);
  padding: 0 3px;
  line-height: 1;
}
.salon-card__coupon-name {
  font-size: 1.11rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0;
}
.salon-card__coupon-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.salon-card__coupon-duration {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-light);
}
.salon-card__coupon-price {
  font-size: 1.33rem;
  font-weight: 800;
  color: var(--color-accent);
}
.salon-card__coupon-badge {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.salon-card__coupon-badge--yen {
  background: var(--color-danger);
}
.salon-card__coupon-badge--pct {
  background: #2a7a5a;
}


.btn-fav-shop {
  position: absolute;
  bottom: 10px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1.5px solid var(--color-border);
  background: var(--color-card);
  color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  z-index: 2;
}
.btn-fav-shop:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow: 0 3px 12px rgba(166,132,79,0.2);
}
.btn-fav-shop.is-active {
  background: linear-gradient(135deg, #d4a85c, #b38a4e);
  border-color: #b38a4e;
  color: #fff;
  box-shadow: 0 3px 12px rgba(179,138,78,0.4);
}
.btn-fav-shop.is-active svg {
  fill: #fff;
  stroke: #fff;
}
/* サロンカードDMボタン（★の左に配置） */
.btn-dm-shop {
  position: absolute;
  bottom: 10px;
  right: 61px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 10px;
  background: linear-gradient(145deg, #6db3cc, #4a8ba4 40%, #356a80 100%);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
  box-shadow:
    0 0 10px rgba(74,139,164,0.4),
    0 3px 8px rgba(0,0,0,0.2),
    inset 0 1px 2px rgba(255,255,255,0.25),
    inset 0 -1px 2px rgba(0,0,0,0.15);
  z-index: 2;
}
.btn-dm-shop:hover {
  background: linear-gradient(145deg, #5ea3bc, #3d7a93 40%, #2a5a6e 100%);
  box-shadow:
    0 0 16px rgba(74,139,164,0.55),
    0 4px 12px rgba(0,0,0,0.25),
    inset 0 1px 2px rgba(255,255,255,0.25),
    inset 0 -1px 2px rgba(0,0,0,0.15);
  transform: translateY(-1px);
}
.btn-dm-shop svg { vertical-align: -1px; }

/* 星パーティクル */
.star-particle {
  position: fixed;
  color: #d4a85c;
  pointer-events: none;
  z-index: 9999;
  font-size: 1.8rem;
  animation: star-burst 0.7s ease-out forwards;
}
@keyframes star-burst {
  0%   { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0.3) rotate(var(--rot)); }
}

/* 本日出勤バッジ */
.cast-card__scheduleBadge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  z-index: 10;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.cast-card__scheduleBadge--work {
  background: linear-gradient(135deg, #fdfdfd 0%, #d8d8d8 50%, #b8b8b8 100%);
  color: #2a2420;
  border: 1px solid #b3b3b3;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4), inset 0 1px 2px rgba(255,255,255,1);
}
.cast-card__scheduleBadge--tel,
.cast-card__scheduleBadge--closed {
  background: linear-gradient(135deg, #666 0%, #444 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}
@media (min-width: 681px) {
  .cast-card__scheduleBadge {
    bottom: 8px;
    left: 8px;
    padding: 5px 14px;
    font-size: 0.72rem;
  }
}


/* 新人マーク（枠なしアイコン＋白フチ＋スケール微調整） */
.rookie-badge {
  position: absolute;
  top: 8px;
  right: 6px;
  display: inline-block;
  font-size: 1.4rem;
  line-height: 1;
  z-index: 5;
  pointer-events: none;
  /* アイコンの輪郭に沿った白フチ */
  text-shadow: 
    -1.5px -1.5px 0 #fff,
     1.5px -1.5px 0 #fff,
    -1.5px  1.5px 0 #fff,
     1.5px  1.5px 0 #fff,
     0px    2px   0 #fff,
     2px    0px   0 #fff,
     0px   -2px   0 #fff,
    -2px    0px   0 #fff,
     0px    4px   8px rgba(0,0,0,0.3);
  transform: rotate(15deg);
  transform-origin: center center;
}
@media (min-width: 681px) {
  .rookie-badge {
    top: 10px;
    right: 8px;
    font-size: 1.8rem;
  }
}

/* =====================================================
 * スマホ用 セラピスト/店舗 切り替え固定タブ
 * ===================================================== */
.top-nav-tabs {
  display: none;
}

@media (max-width: 768px) {
  /* グローバルのスクロール位置はヘッダーのみに戻す */
  html {
    scroll-padding-top: var(--header-h);
  }
  /* JSでスクロール位置を制御するため、scroll-margin-top は設定しない */
  
  .top-nav-tabs {
    display: flex;
    z-index: 990;
    background: rgba(253, 250, 245, 0.98);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(166,132,79,0.15);
    margin-bottom: 0;
    /* デフォルトの配置 */
    position: relative;
    /* iOS Safariのhit-testingバグ対策 */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .top-nav-tabs.is-fixed {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    /* width: 100% の際に padding 分はみ出ないように */
    box-sizing: border-box;
  }
  .top-nav-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    text-decoration: none;
    transition: all 0.3s ease;
  }
  .top-nav-tab:first-child {
    border-radius: 20px 0 0 20px;
    border-right: none;
  }
  .top-nav-tab:last-child {
    border-radius: 0 20px 20px 0;
  }
  .top-nav-tab.is-active {
    background: linear-gradient(135deg, #dfc081, #c49a4e);
    color: #fff;
    border-color: #c49a4e;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 2px 6px rgba(166,132,79,0.25);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  }
}

/* =====================================================
 * クイック絞り込みトグルボタン (lady.html)
 * ===================================================== */
.quick-filters-wrap {
  margin-bottom: 16px;
  text-align: center;
}
.quick-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.quick-filter-label {
  position: relative;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.quick-filter-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.quick-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: rgba(166,132,79,0.03);
  border: 1.5px solid rgba(166,132,79,0.4);
  color: var(--color-text);
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 50px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  user-select: none;
}
/* ホバー時 */
.quick-filter-label:hover .quick-filter-btn {
  border-color: rgba(166,132,79,0.7);
}
/* チェック時（アクティブ） */
.quick-filter-check:checked + .quick-filter-btn {
  background: linear-gradient(135deg, var(--color-accent), #c49a4e);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(166,132,79,0.35), inset 0 1px 1px rgba(255,255,255,0.3);
  text-shadow: 0 1px 1px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}
/* 新人専用：視認性向上のため全体的に暗めの色調に調整 */
#quickRookieOnly:checked + .quick-filter-btn {
  background: linear-gradient(135deg, #d49c31, #b57f20 60%, #996815 100%);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  box-shadow: 0 4px 10px rgba(181, 127, 32, 0.4), inset 0 1px 1px rgba(255,255,255,0.2);
}
/* DM可能専用：#5294ADベースのスレートブルー */
#quickDmOnly:checked + .quick-filter-btn {
  background: linear-gradient(135deg, #6aabcc, #5294AD 60%, #3d7a94 100%);
  box-shadow: 0 4px 10px rgba(82,148,173,0.4), inset 0 1px 1px rgba(255,255,255,0.3);
}
/* 本日出勤専用：重厚感のある深紅グラデ */
#quickTodayOnly:checked + .quick-filter-btn {
  background: linear-gradient(135deg, #c0392b, #96281b 50%, #6e1a12 100%);
  box-shadow: 0 4px 10px rgba(150,40,27,0.45), inset 0 1px 1px rgba(255,255,255,0.25);
}
/* 深夜枠専用のスタイル（色違い） */
#wrapQuickMidnight .quick-filter-btn {
  border-color: rgba(13, 79, 60, 0.5);
  color: #0d4f3c;
}
#wrapQuickMidnight .quick-filter-box {
  border-color: rgba(13, 79, 60, 0.5);
}
#quickMidnightOnly:checked + .quick-filter-btn {
  background: linear-gradient(135deg, #1a6b52, #0d4f3c 50%, #052e20 100%);
  box-shadow: 0 4px 10px rgba(13,79,60,0.5), inset 0 1px 1px rgba(255,255,255,0.25);
  color: #fff;
  border-color: transparent;
}

/* カスタムチェックボックス */
.quick-filter-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(166,132,79,0.5);
  border-radius: 4px;
  margin-right: 6px;
  background: #fff;
  transition: all 0.2s;
}
.quick-filter-check:checked + .quick-filter-btn .quick-filter-box {
  border-color: #fff;
  background: transparent;
}
.quick-filter-check:checked + .quick-filter-btn .quick-filter-box::after {
  content: '';
  display: block;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.quick-filter-note {
  font-size: 0.7rem;
  font-weight: 700;
  color: #0d4f3c;
  margin-top: 13px;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* エリア変更リンク（PCはテキスト、スマホは右上カプセル固定） */
.area-change-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(166,132,79,0.4);
  padding-bottom: 1px;
  transition: all 0.2s;
}

.area-change-link:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .area-change-link {
    position: fixed;
    top: 61px;
    right: 15px;
    z-index: 90;
    background: linear-gradient(135deg, #e8d09a 0%, #c9a84e 35%, #d4b55a 65%, #b8943d 100%);
    color: #3d2800;
    text-shadow: 0 1px 0 rgba(255,255,255,0.25);
    border: none;
    border-radius: 50px;
    padding: 4px 9px;
    box-shadow: 0 4px 12px rgba(180,148,58,0.45), inset 0 1px 1px rgba(255,255,255,0.35);
    opacity: 1;
    font-size: 0.72rem;
  }
  .area-change-link:hover {
    background: linear-gradient(135deg, #e8d09a 0%, #c9a84e 35%, #d4b55a 65%, #b8943d 100%);
    opacity: 0.9;
  }
  .area-change-link svg {
    width: 10px !important;
    height: 10px !important;
  }
}
