/* ==========================================================================
   セラミィ：画面ごとの磨き直し（tm-pages.css）
   custom-common.css とテーマの CSS のあとに読む。前の指定を上書きするだけで、元の行は消さない。
   色や角は tmui.css の --tm-* を使う。
   ========================================================================== */

/* --------------------------------------------------------------------------
   共通：何も無いときの案内
   -------------------------------------------------------------------------- */
.tm-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 56px auto 24px;
  padding: 0 24px;
  text-align: center;
  color: var(--tm-text-sub);
}
.tm-empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--tm-pink-tint);
  color: var(--tm-pink);
}
.tm-empty-icon svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tm-empty-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--tm-text);
}
.tm-empty-text {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
}
.tm-empty-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 0 24px;
  border-radius: var(--tm-pill);
  background: var(--tm-pink);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
}
.tm-empty-button:active {
  transform: scale(.97);
}

/* ==========================================================================
   トーク一覧
   ========================================================================== */
.chat-list-page {
  padding: 4px 0 calc(var(--tm-tabbar-h) + 72px) !important;
  background: #fff;
}
.chat-list-page .chat-room-box {
  all: unset;
  box-sizing: border-box;
  position: relative;
  display: block;
  width: 100%;
  padding: 10px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .12s ease;
}
.chat-list-page .chat-room-box:active {
  background: #F7F3F9;
}
.chat-list-page .chat-room-box:focus-visible {
  outline: 3px solid rgba(233, 82, 142, .3);
  outline-offset: -3px;
}
.chat-list-page .chat-room-box-content {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}
.chat-list-page .chat-room-box-avatar {
  flex: 0 0 auto;
  width: 54px !important;
  height: 54px !important;
  margin: 0 !important;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tm-fill);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04);
}
.chat-list-page .chat-room-box-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 50%;
}
.chat-list-page .chat-room-box-info {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 !important;
}
.chat-list-page .chat-room-box-name {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  font-size: 15px !important;
  font-weight: 600;
  color: var(--tm-text);
  line-height: 1.35;
}
.chat-list-page .chat-room-box-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-list-page .chat-room-box-tag {
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: var(--tm-pill);
  background: var(--tm-fill);
  color: var(--tm-text-sub);
  font-size: 10.5px;
  font-weight: 500;
}
.chat-list-page .chat-room-box-last-message {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px !important;
  color: var(--tm-text-sub) !important;
  line-height: 1.45;
  max-width: none !important;
}
.chat-list-page .chat-room-box.has-unread .chat-room-box-last-message {
  color: var(--tm-text) !important;
  font-weight: 500;
}
.chat-list-page .chat-room-box-meta {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 0;
  margin: 0 !important;
}
.chat-list-page .chat-room-box-time {
  font-size: 11.5px !important;
  color: var(--tm-text-weak) !important;
  white-space: nowrap;
}
.chat-list-page .chat-room-box.has-unread .chat-room-box-time {
  color: var(--tm-pink) !important;
}
.chat-list-page .chat-room-box-badge {
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  border-radius: 10px !important;
  background: var(--tm-pink) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600;
  line-height: 20px !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.chat-list-page .chat-room-box.not-matched .chat-room-box-avatar,
.chat-list-page .chat-room-box.not-matched .chat-room-box-name-text,
.chat-list-page .chat-room-box.not-matched .chat-room-box-last-message {
  opacity: .55;
}
.chat-list-page .chat-room-box-overlay {
  display: none !important;
}

/* 解除済みを隠すスイッチ（右下） */
body .chat-list-page-display-toggle {
  flex-direction: row !important;
  gap: 8px;
  bottom: calc(var(--tm-tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)) !important;
  right: 14px !important;
  padding: 6px 6px 6px 14px;
  border-radius: var(--tm-pill);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 20px rgba(30, 18, 40, .14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
body .chat-list-page-display-toggle-text {
  font-size: 12px !important;
  color: var(--tm-text-sub) !important;
  white-space: nowrap;
}
body .chat-list-page-switch {
  width: 42px !important;
  height: 26px !important;
}
body .chat-list-page-slider {
  padding: 0 !important;
  background: #D9D9DE !important;
  border-radius: 13px !important;
}
body .chat-list-page-slider:before {
  width: 22px !important;
  height: 22px !important;
  left: 2px !important;
  bottom: 2px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
}
body .chat-list-page-switch input:checked + .chat-list-page-slider {
  background: var(--tm-pink) !important;
}
body .chat-list-page-switch input:checked + .chat-list-page-slider:before {
  transform: translateX(16px) !important;
}
body .chat-list-page-text-on,
body .chat-list-page-text-off {
  display: none !important;
}
@media (min-width: 1024px) {
  body .chat-list-page-display-toggle {
    bottom: 24px !important;
  }
}

/* ==========================================================================
   トークルーム
   ========================================================================== */
.chat-room-page {
  --cr-bg: #F5F2F7;
  --cr-mine: #FCE4EE;
  --cr-mine-text: #3F3F44;
  --cr-other: #FFFFFF;
  --cr-header-h: 56px;
  min-height: 100dvh;
  background: var(--cr-bg) !important;
  font-weight: 400 !important;
}
body:has(.chat-room-page) {
  background: #F5F2F7;
}

/* 上の帯 */
.chat-room-page .chat-room-header {
  height: calc(var(--cr-header-h) + env(safe-area-inset-top, 0px)) !important;
  padding: env(safe-area-inset-top, 0px) 10px 0 2px !important;
  gap: 8px;
  background: rgba(255, 255, 255, .9) !important;
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(40, 20, 50, .07) !important;
  box-shadow: none !important;
}
.chat-room-page .chat-room-header-back-button {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50%;
  justify-content: center;
  color: var(--tm-text);
  -webkit-tap-highlight-color: transparent;
}
.chat-room-page .chat-room-header-back-button:active {
  background: rgba(0, 0, 0, .05);
}
.chat-room-page .chat-room-header svg,
.chat-room-page .chat-room-footer svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-room-page .chat-room-header-back-button svg {
  width: 24px;
  height: 24px;
}
.chat-room-page .chat-room-header-avatar {
  flex: 0 0 auto;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05);
}
.chat-room-page .chat-room-header-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px !important;
  font-weight: 600;
  color: var(--tm-text) !important;
  text-decoration: none !important;
}
.chat-room-page .chat-room-header-reserve {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  width: auto !important;
  height: 34px;
  padding: 0 13px !important;
  border-radius: var(--tm-pill) !important;
  background: var(--tm-pink) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.chat-room-page .chat-room-header-reserve svg {
  width: 16px;
  height: 16px;
}
.chat-room-page .chat-room-header-reserve:active {
  transform: scale(.96);
}

/* 解除済みの知らせ */
.chat-room-page .chat-room-notice {
  position: fixed;
  top: calc(var(--cr-header-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 9;
  padding: 8px 16px;
  background: rgba(239, 236, 242, .96);
  color: var(--tm-text-sub);
  font-size: 12.5px;
  text-align: center;
}

/* 流れる所 */
.chat-room-page .chat-room-content {
  background: transparent !important;
  margin-top: 0 !important;
  padding: 10px 12px 96px !important;
  overflow: visible !important;
}
.chat-room-page.not-matched .chat-room-content {
  padding-top: 44px !important;
}

/* 日付の札 */
.chat-room-page .chat-date-header {
  width: auto !important;
  margin: 16px auto 8px !important;
  padding: 0 !important;
  background: transparent !important;
  text-align: center;
  font-size: 0 !important;
}
.chat-room-page .chat-date-header > span {
  display: inline-block;
  padding: 3px 11px;
  border-radius: var(--tm-pill);
  background: rgba(70, 50, 80, .08);
  color: var(--tm-text-sub);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.5;
}

/* 1通 */
.chat-room-page .chat-message {
  display: flex !important;
  align-items: flex-end !important;
  gap: 6px !important;
  max-width: 100% !important;
  margin: 3px 0 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
}
.chat-room-page .chat-message.is-group-start {
  margin-top: 12px !important;
}
.chat-room-page .chat-message.left {
  flex-direction: row !important;
  align-self: flex-start !important;
}
.chat-room-page .chat-message.right {
  flex-direction: row !important;
  align-self: flex-end !important;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.chat-room-page .chat-message.left .chat-message-avatar { order: 0; }
.chat-room-page .chat-message.left .chat-message-text-area,
.chat-room-page .chat-message.left .chat-message-image-area { order: 1; }
.chat-room-page .chat-message.left .chat-message-time { order: 2; align-items: flex-start; }
.chat-room-page .chat-message.right .chat-message-time { order: 0; align-items: flex-end; }
.chat-room-page .chat-message.right .chat-message-text-area,
.chat-room-page .chat-message.right .chat-message-image-area { order: 1; }

.chat-room-page .chat-message-avatar {
  flex: 0 0 auto;
  align-self: flex-start;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  visibility: hidden;
  background: var(--tm-fill);
}
.chat-room-page .chat-message.is-group-start .chat-message-avatar {
  visibility: visible;
}
.chat-room-page .chat-message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-room-page .chat-message-time {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: auto !important;
  margin: 0 0 2px !important;
  font-size: 10.5px !important;
  line-height: 1.3;
  color: #A3A3A9 !important;
  white-space: nowrap;
}
.chat-room-page .chat-message-read {
  font-size: 10.5px !important;
  color: var(--tm-pink) !important;
}
.chat-room-page .chat-message-status {
  font-size: 10.5px;
  color: var(--tm-text-sub);
}

/* 吹き出し */
.chat-room-page .chat-message-text-area {
  width: auto !important;
  max-width: min(72vw, 360px);
  padding: 9px 13px !important;
  border-radius: 18px !important;
  box-shadow: 0 1px 1px rgba(40, 20, 50, .04) !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.chat-room-page .chat-message-text-area.left {
  background: var(--cr-other) !important;
}
.chat-room-page .chat-message-text-area.right {
  background: var(--cr-mine) !important;
}
.chat-room-page .chat-message.left.is-group-start .chat-message-text-area {
  border-top-left-radius: 6px !important;
}
.chat-room-page .chat-message.right.is-group-start .chat-message-text-area {
  border-top-right-radius: 6px !important;
}
.chat-room-page .chat-message-text {
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: var(--cr-mine-text) !important;
  -webkit-user-select: text;
  user-select: text;
}
.chat-room-page .chat-message-text a {
  color: var(--tm-purple) !important;
}

/* 画像 */
.chat-room-page .chat-message-image-area {
  position: relative;
  width: auto !important;
  padding: 0 !important;
}
.chat-room-page .chat-message-image {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: min(58vw, 240px);
  max-height: 320px;
  min-width: 96px;
  min-height: 72px;
  border-radius: 16px !important;
  object-fit: cover;
  background: rgba(0, 0, 0, .04);
  box-shadow: none !important;
  cursor: zoom-in;
}

/* 取り消し */
.chat-room-page .chat-message-deleted {
  width: auto !important;
  max-width: 86%;
  margin: 10px auto 4px !important;
  padding: 4px 12px !important;
  border: 0 !important;
  border-radius: var(--tm-pill) !important;
  background: rgba(70, 50, 80, .06) !important;
  color: var(--tm-text-sub) !important;
  font-size: 12px !important;
  line-height: 1.5;
}

/* 送信中・失敗 */
.chat-room-page .chat-message.is-sending .chat-message-text-area,
.chat-room-page .chat-message.is-sending .chat-message-image-area {
  opacity: .72;
}
.chat-room-page .chat-message.is-failed .chat-message-text-area,
.chat-room-page .chat-message.is-failed .chat-message-image-area {
  box-shadow: 0 0 0 1.5px var(--tm-danger) !important;
  border-radius: 18px;
}
.chat-room-page .chat-message.is-failed .chat-message-status {
  color: var(--tm-danger);
}
.chat-room-page .chat-failed-actions {
  order: 3;
  flex-basis: 100%;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}
.chat-room-page .chat-failed-actions button {
  all: unset;
  box-sizing: border-box;
  padding: 5px 12px;
  border-radius: var(--tm-pill);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.chat-room-page .chat-failed-actions .chat-failed-retry {
  background: var(--tm-danger);
  color: #fff;
}
.chat-room-page .chat-failed-actions .chat-failed-discard {
  background: #fff;
  color: var(--tm-text-sub);
  box-shadow: inset 0 0 0 1px var(--tm-line);
}
.chat-room-page .chat-upload-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 16px;
  background: rgba(20, 10, 25, .38);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.chat-room-page .chat-upload-spinner {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .9);
  border-right-color: transparent;
  animation: tmui-spin .8s linear infinite;
}

/* 予約のカード */
.chat-room-page .chat-message-text-area.is-reservation-card {
  padding: 0 !important;
  background: #fff !important;
  max-width: min(76vw, 300px);
  box-shadow: 0 0 0 1px rgba(233, 82, 142, .18), 0 2px 8px rgba(40, 20, 50, .05) !important;
}
.chat-resv-card {
  min-width: 220px;
  padding: 12px 14px 10px;
}
.chat-resv-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.chat-resv-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--tm-pink-soft);
  color: var(--tm-pink);
}
.chat-resv-card-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-resv-card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--tm-text);
}
.chat-resv-card-rows {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--tm-fill);
  display: grid;
  gap: 4px;
}
.chat-resv-card-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.chat-resv-card-rows dt {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  color: var(--tm-text-sub);
}
.chat-resv-card-rows dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--tm-text);
  font-variant-numeric: tabular-nums;
}
.chat-resv-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 40px;
  margin-top: 10px;
  border-radius: var(--tm-pill);
  box-shadow: inset 0 0 0 1.5px var(--tm-pink);
  color: var(--tm-pink) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.chat-resv-card-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-resv-card-link:active {
  background: var(--tm-pink-tint);
}
.chat-resv-card-note {
  margin-top: 8px;
  font-size: 11px;
  color: var(--tm-text-weak);
  text-align: center;
}

/* URL のカード */
.chat-room-page .chat-ogp-card {
  margin-top: 8px;
}
.chat-room-page .chat-ogp-card a {
  display: block;
  overflow: hidden;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 0 0 1px var(--tm-line) !important;
  text-decoration: none !important;
}
.chat-room-page .chat-ogp-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1.91 / 1;
  object-fit: cover;
}
.chat-room-page .chat-ogp-body {
  padding: 8px 10px 10px !important;
}
.chat-room-page .chat-ogp-title {
  font-size: 13px !important;
  font-weight: 600;
  color: var(--tm-text) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat-room-page .chat-ogp-desc {
  margin-top: 2px;
  font-size: 12px !important;
  color: var(--tm-text-sub) !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat-room-page .chat-ogp-host {
  margin-top: 4px;
  font-size: 11px !important;
  color: var(--tm-text-weak) !important;
}

/* 下の入力欄 */
.chat-room-page .chat-room-footer {
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
  background: rgba(255, 255, 255, .94) !important;
  border-top: 1px solid rgba(40, 20, 50, .07) !important;
  box-shadow: none !important;
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  min-height: 0 !important;
}
.chat-room-page #chat-room-form {
  align-items: flex-end !important;
  gap: 6px !important;
}
.chat-room-page #chat-room-image-upload,
.chat-room-page #chat-room-collapse-button,
.chat-room-page #chat-room-send-button {
  all: unset;
  box-sizing: border-box;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease, background-color .15s ease, opacity .15s ease;
}
.chat-room-page #chat-room-image-upload {
  color: var(--tm-text-sub);
}
.chat-room-page #chat-room-image-upload:active {
  background: rgba(0, 0, 0, .05);
}
.chat-room-page #chat-room-image-upload svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
}
.chat-room-page #chat-room-image-upload[disabled] {
  opacity: .35;
  pointer-events: none;
}
.chat-room-page #chat-room-collapse-button {
  display: none;
  color: var(--tm-text-sub);
}
.chat-room-page #chat-room-form.is-textarea-focus #chat-room-collapse-button {
  display: flex !important;
}
.chat-room-page #chat-room-form.is-textarea-focus #chat-room-image-upload {
  display: none !important;
}
.chat-room-page #chat-room-collapse-button::before {
  content: "";
  position: static !important;
  display: block;
  width: 9px !important;
  height: 9px !important;
  border: 0 !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  transform: rotate(-45deg) !important;
  margin-left: -4px;
}
.chat-room-page #chat-room-textarea {
  min-height: 40px;
  max-height: 128px;
  padding: 9px 15px !important;
  border: 1.5px solid transparent !important;
  border-radius: 20px !important;
  background: #F1F0F4 !important;
  color: var(--tm-text) !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  -webkit-user-select: text;
  user-select: text;
  transition: background-color .15s ease, border-color .15s ease;
}
.chat-room-page #chat-room-textarea:focus {
  outline: none;
  background: #fff !important;
  border-color: rgba(233, 82, 142, .55) !important;
}
.chat-room-page #chat-room-textarea::placeholder {
  color: var(--tm-text-weak);
}
.chat-room-page #chat-room-textarea[disabled] {
  background: #ECEBEF !important;
}
.chat-room-page #chat-room-send-button {
  background: var(--tm-pink);
  color: #fff;
}
.chat-room-page #chat-room-send-button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.4;
}
.chat-room-page #chat-room-send-button[disabled] {
  background: #E3E2E7;
  color: #fff;
  cursor: default;
}
.chat-room-page #chat-room-send-button:not([disabled]):active {
  transform: scale(.92);
}
.chat-room-page #chat-room-upload-progress {
  top: -1px;
  height: 2px !important;
  background: transparent !important;
}

/* 一番下へ */
.chat-room-page #chat-room-down-button-spare {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  right: 12px !important;
  background: rgba(255, 255, 255, .96) !important;
  color: var(--tm-text-sub);
  box-shadow: 0 6px 18px rgba(30, 18, 40, .16) !important;
}
.chat-room-page #chat-room-down-button-spare svg {
  width: 22px;
  height: 22px;
}
.chat-room-page #chat-room-down-button-spare.has-new::after {
  content: "" !important;
  top: 2px !important;
  right: 2px !important;
  transform: none !important;
  width: 10px;
  height: 10px;
  padding: 0 !important;
  border-radius: 50% !important;
  background: var(--tm-pink) !important;
  box-shadow: 0 0 0 2px #fff !important;
}

/* 長押しのメニュー */
#chat-message-menu {
  display: flex !important;
  gap: 2px;
  padding: 4px !important;
  border-radius: 14px !important;
  background: rgba(38, 32, 44, .96) !important;
  box-shadow: 0 12px 32px rgba(20, 10, 30, .3) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#chat-message-menu .chat-message-menu-btn {
  all: unset;
  box-sizing: border-box;
  padding: 9px 14px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
#chat-message-menu .chat-message-menu-btn:active {
  background: rgba(255, 255, 255, .12);
}
#chat-message-menu .chat-message-menu-btn.is-danger {
  color: #FF9AA2;
}
#chat-message-menu .chat-message-menu-btn:disabled {
  opacity: .4;
}
#chat-message-menu-overlay {
  background: rgba(20, 10, 25, .12) !important;
}

/* トークルームでは下のタブが無いので、トーストは入力欄のすぐ上に */
body:has(.chat-room-page) .tmui-toasts {
  top: calc(66px + env(safe-area-inset-top, 0px));
  bottom: auto;
}

/* 長押しで中を見る窓（既読を付けない） */
.chat-room-content-for-preview {
  background: #F5F2F7 !important;
  border-radius: 18px;
}

/* ==========================================================================
   マイページ：アプリの案内のカード（窓で止めない）
   ========================================================================== */
.tm-install-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 auto 16px;
  width: calc(100% - 32px);
  max-width: 560px;
  padding: 12px 40px 12px 12px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(233, 82, 142, .16), 0 6px 18px rgba(40, 20, 50, .07);
  transition: opacity .2s ease, transform .2s ease;
  box-sizing: border-box;
}
.tm-install-card.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
}
.tm-install-card-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--tm-line);
}
.tm-install-card-body {
  flex: 1 1 auto;
  min-width: 0;
}
.tm-install-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--tm-text);
  line-height: 1.4;
}
.tm-install-card-text {
  margin-top: 2px;
  font-size: 12px;
  color: var(--tm-text-sub);
  line-height: 1.5;
}
.tm-install-card-button {
  all: unset;
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: var(--tm-pill);
  background: var(--tm-pink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tm-install-card-button:active {
  transform: scale(.96);
}
.tm-install-card-close {
  all: unset;
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--tm-text-weak);
  cursor: pointer;
}
.tm-install-card-close svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

/* ==========================================================================
   マイページ（セラピスト・店舗）：はじめにの進み具合（右下の小さなカード）
   ========================================================================== */
body #thera-get-started.tgs {
  right: 12px;
  bottom: calc(var(--tm-tabbar-h) + 12px + env(safe-area-inset-bottom, 0px));
  width: 208px;
  max-width: calc(100vw - 24px);
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  color: var(--tm-text);
  box-shadow: 0 8px 26px rgba(40, 20, 50, .16), 0 0 0 1px rgba(0, 0, 0, .04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: width .2s ease;
}
body #thera-get-started.tgs:not(.tgs--collapsed) {
  width: min(320px, calc(100vw - 24px));
}
body #thera-get-started .tgs__header {
  padding: 9px 12px 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-text);
}
body #thera-get-started .tgs__chevron {
  color: var(--tm-text-weak);
  font-size: 12px;
}
body #thera-get-started .tgs__progressline {
  padding: 4px 12px 10px;
  gap: 8px;
}
body #thera-get-started .tgs__progress {
  height: 5px;
  background: var(--tm-fill);
}
body #thera-get-started .tgs__bar {
  background: var(--tm-pink);
  border-radius: 5px;
}
body #thera-get-started .tgs__count {
  font-size: 11.5px;
  color: var(--tm-text-sub);
  font-variant-numeric: tabular-nums;
}
body #thera-get-started .tgs__panel {
  padding: 2px 12px 12px;
  border-top: 1px solid var(--tm-line);
}
body #thera-get-started .tgs__item {
  padding: 9px 0;
  border-bottom: 1px solid var(--tm-line);
  font-size: 13.5px;
}
body #thera-get-started .tgs__mute {
  margin-top: 8px;
  font-size: 12px;
  color: var(--tm-text-weak);
}
@media (min-width: 1024px) {
  body #thera-get-started.tgs {
    bottom: 24px;
  }
}

/* ==========================================================================
   セラピストのページ：出勤スケジュール（空きのある時間帯だけ）・口コミのすすめ
   ========================================================================== */
#weekly-schedule-shortcode .custom-therapist-reservation-weekly-schedule-shortcode.is-compact,
#weekly-schedule .custom-therapist-reservation-weekly-schedule.is-compact {
  height: auto !important;
  max-height: 56vh;
}
#weekly-schedule-shortcode .is-compact:not(.is-all) tr.tm-row-off,
#weekly-schedule .is-compact:not(.is-all) tr.tm-row-off {
  display: none;
}
.is-compact.is-empty {
  border-bottom: 1px solid var(--tm-line);
}
.tm-schedule-next {
  all: unset;
  display: block;
  margin: 10px auto 0;
  padding: 8px 18px;
  border-radius: var(--tm-pill);
  box-shadow: inset 0 0 0 1.5px var(--tm-pink);
  color: var(--tm-pink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.tm-schedule-toggle {
  all: unset;
  display: block;
  margin: 10px auto 4px;
  padding: 6px 14px;
  border-radius: var(--tm-pill);
  color: var(--tm-purple);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tm-schedule-empty {
  margin: 14px 0 6px;
  text-align: center;
  font-size: 13.5px;
  color: var(--tm-text-sub);
}
.tm-review-nudge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--tm-pink-tint);
  box-shadow: inset 0 0 0 1px rgba(233, 82, 142, .2);
  color: var(--tm-text) !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
.tm-review-nudge:active {
  transform: scale(.99);
}
.tm-review-nudge-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tm-pink);
}
.tm-review-nudge-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.tm-review-nudge-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.tm-review-nudge-text b {
  font-size: 14px;
  font-weight: 600;
}
.tm-review-nudge-text small {
  font-size: 12px;
  color: var(--tm-text-sub);
}
.tm-review-nudge-go {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: var(--tm-pill);
  background: var(--tm-pink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================================
   プロフィール編集（会員・セラピスト・店舗）：保存は下の横長のボタン、字数は欄の下
   ========================================================================== */
body .cup-profile-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tm-tabbar-h) + env(safe-area-inset-bottom, 0px));
  z-index: 95;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 -1px 0 var(--tm-line);
  backdrop-filter: saturate(1.3) blur(12px);
  -webkit-backdrop-filter: saturate(1.3) blur(12px);
}
body .cup-profile-footer .cup-profile-save-button {
  flex: 1 1 auto;
  max-width: 480px;
  width: auto;
  height: 48px;
  border-radius: var(--tm-pill);
  font-size: 15px;
  font-weight: 600;
  line-height: 48px;
  letter-spacing: .04em;
  box-shadow: 0 6px 16px rgba(233, 82, 142, .28);
  -webkit-tap-highlight-color: transparent;
  transition: transform .12s ease;
}
body .cup-profile-footer .cup-profile-save-button:active {
  transform: scale(.98);
}
body .cup-profile-footer .cup-dot-loader {
  flex: 0 0 auto;
  margin: 0;
  font-size: 12px;
  color: var(--tm-pink);
  white-space: nowrap;
}
*:has(> .cup-profile-footer) {
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
}
@media (min-width: 1024px) {
  body .cup-profile-footer {
    bottom: 0;
  }
}

/* 字数は欄の中に重ねず、欄の右下の外に出す */
body .cup-profile-character-counter,
body .cup-profile-name-character-counter,
body .cup-therapist-profile-character-counter,
body .cup-therapist-profile-name-character-counter,
body .cup-store-profile-character-counter,
body .cup-store-profile-name-character-counter {
  position: static !important;
  margin: 4px 4px 0 0;
  font-size: 12px !important;
  color: var(--tm-text-weak) !important;
  font-variant-numeric: tabular-nums;
}
[id^="cup-"][id*="profile"] textarea,
#cup-user-profile-content textarea {
  resize: none !important;
}

/* ==========================================================================
   ポイント：履歴は月ごとに、増えたら＋で
   ========================================================================== */
.tm-point-log {
  margin-top: 24px !important;
  padding: 0 !important;
}
.tm-point-log .tm-point-log-month {
  margin: 18px 0 6px;
  padding: 0 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tm-text-sub);
}
.tm-point-log .cupm-point-log-item {
  display: grid !important;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 12px;
  margin: 0 !important;
  padding: 11px 4px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tm-line) !important;
}
.tm-point-log .cupm-point-log-item-action {
  grid-column: 1;
  grid-row: 1;
  font-size: 14.5px !important;
  color: var(--tm-text) !important;
}
.tm-point-log .cupm-point-log-item-date {
  grid-column: 1;
  grid-row: 2;
  font-size: 12px !important;
  color: var(--tm-text-weak) !important;
}
.tm-point-log .cupm-point-log-item-points {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 16px !important;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.tm-point-log .cupm-point-log-item-points small {
  margin-left: 2px;
  font-size: 11.5px;
  font-weight: 500;
}
.tm-point-log .cupm-point-log-positive {
  color: var(--tm-pink) !important;
}
.tm-point-log .cupm-point-log-negative {
  color: var(--tm-text-sub) !important;
}
.tm-point-log:not(.is-open) .is-more {
  display: none !important;
}
.tm-point-log-more {
  all: unset;
  display: block;
  margin: 16px auto 8px;
  padding: 10px 22px;
  border-radius: var(--tm-pill);
  background: var(--tm-fill);
  color: var(--tm-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

/* ==========================================================================
   退会：ポイントの注意書き（開いた途端の窓はやめた）
   ========================================================================== */
.tm-cancel-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--tm-warn-soft);
  color: var(--tm-text);
  font-size: 14px;
  line-height: 1.6;
}
.tm-cancel-notice-icon {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--tm-warn);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.tm-cancel-notice-text b {
  font-weight: 600;
}

/* ==========================================================================
   予約履歴：これからの予約（近い順）と過去の予約、状態は札で
   ========================================================================== */
.tm-resv-list {
  display: flex !important;
  flex-direction: column;
  gap: 12px !important;
}
.tm-resv-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 2px 2px !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  font-size: 14px !important;
  font-weight: 600;
  color: var(--tm-text) !important;
  text-align: left !important;
}
.tm-resv-section-title::before,
.tm-resv-section-title::after {
  display: none !important;
}
.tm-resv-section-title span {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: var(--tm-pink-soft);
  color: var(--tm-pink);
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}
.tm-resv-list .tm-resv-card {
  margin: 0 !important;
  padding: 14px !important;
  border: 0 !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 0 0 1px var(--tm-line), 0 2px 10px rgba(40, 20, 50, .05) !important;
  cursor: default !important;
}
.tm-resv-list .tm-resv-card.is-cancelled {
  background: #FAFAFB !important;
}
.tm-resv-list .tm-resv-card.is-cancelled .tm-resv-card-avatar,
.tm-resv-list .tm-resv-card.is-cancelled .tm-resv-card-main {
  opacity: .6;
}
.tm-resv-list:not(.is-open) .tm-resv-card.is-more {
  display: none !important;
}
.tm-resv-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tm-resv-card-avatar {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--tm-fill);
}
.tm-resv-card-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  border-radius: 50%;
}
.tm-resv-card-main {
  flex: 1 1 auto;
  min-width: 0;
}
.tm-resv-card-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--tm-text);
}
.tm-resv-card-when {
  margin-top: 2px;
  font-size: 13px;
  color: var(--tm-text-sub);
  font-variant-numeric: tabular-nums;
}
.tm-resv-chip {
  flex: 0 0 auto;
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: var(--tm-pill);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tm-resv-chip.is-confirmed { background: var(--tm-pink-soft); color: var(--tm-pink); }
.tm-resv-chip.is-pending { background: var(--tm-warn-soft); color: #B7741A; }
.tm-resv-chip.is-done { background: var(--tm-fill); color: var(--tm-text-sub); }
.tm-resv-chip.is-cancelled { background: var(--tm-fill); color: var(--tm-text-weak); }
.tm-resv-list .custom-reservations-history-buttons-container {
  display: flex !important;
  gap: 8px !important;
  margin-top: 12px !important;
}
.tm-resv-list .custom-reservations-history-buttons-container > a {
  flex: 1 1 0;
  margin: 0 !important;
}
.tm-resv-more {
  all: unset;
  align-self: center;
  margin: 6px auto 0;
  padding: 10px 22px;
  border-radius: var(--tm-pill);
  background: var(--tm-fill);
  color: var(--tm-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.tm-points-earned {
  font-size: 15px;
  color: var(--tm-text-sub);
}
.tm-points-earned span {
  font-size: 34px;
  font-weight: 700;
  color: var(--tm-pink);
  margin-right: 2px;
}
.tm-points-now {
  margin-top: 4px;
  font-size: 13px;
  color: var(--tm-text-sub);
}

/* 口コミの本文：入力欄の形をやめ、選んで写せる文にする */
div.crl-review-textarea.crl-review-text {
  height: auto !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: var(--tm-fill) !important;
  color: var(--tm-text) !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
  pointer-events: auto !important;
  -webkit-user-select: text;
  user-select: text;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ==========================================================================
   予約管理（店舗・セラピスト）：右端の縦のタブをやめ、下に浮かぶ横並びの切り替えに
   自分がやること（店舗＝店舗確認中・セラピスト＝セラピ確認中）に件数があるときはピンクで目立たせる
   ========================================================================== */
body .csrm-reservation-status-navigation,
body .ctrm-reservation-status-navigation {
  top: auto !important;
  right: auto !important;
  left: 50% !important;
  bottom: calc(var(--tm-tabbar-h) + 10px + env(safe-area-inset-bottom, 0px)) !important;
  transform: translateX(-50%);
  z-index: 30 !important;
  flex-direction: row !important;
  align-items: center;
  gap: 4px !important;
  max-width: calc(100vw - 16px);
  padding: 4px;
  border-radius: var(--tm-pill);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 26px rgba(40, 20, 50, .18), 0 0 0 1px rgba(0, 0, 0, .04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow-x: auto;
  scrollbar-width: none;
}
body .csrm-reservation-status-navigation::-webkit-scrollbar,
body .ctrm-reservation-status-navigation::-webkit-scrollbar {
  display: none;
}
body .csrm-status-button,
body .ctrm-status-button {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  width: auto !important;
  height: 36px !important;
  padding: 0 9px !important;
  border: 0 !important;
  border-radius: var(--tm-pill) !important;
  background: transparent !important;
  color: var(--tm-text-sub) !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
  font-weight: 500;
  white-space: nowrap;
  writing-mode: horizontal-tb !important;
  -webkit-tap-highlight-color: transparent;
}
body .csrm-status-button:active,
body .ctrm-status-button:active {
  background: var(--tm-fill) !important;
}
body .csrm-count-badge,
body .ctrm-count-badge {
  position: static !important;
  min-width: 20px;
  width: auto !important;
  height: 20px !important;
  padding: 0 6px;
  border-radius: 10px !important;
  background: var(--tm-text-weak) !important;
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 600;
  line-height: 20px !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
/* 店舗：店舗確認中を先頭に、件数があればピンク */
body .csrm-reservation-status-navigation #csrm-confirmed-reservations-btn { order: -1; }
body #csrm-confirmed-reservations-btn.has-count,
body #ctrm-pending-reservations-btn.has-count {
  background: var(--tm-pink) !important;
  color: #fff !important;
  font-weight: 600;
}
body #csrm-confirmed-reservations-btn.has-count .csrm-count-badge,
body #ctrm-pending-reservations-btn.has-count .ctrm-count-badge {
  background: #fff !important;
  color: var(--tm-pink) !important;
}
body #csrm-pending-reservations-btn.has-count .csrm-count-badge,
body #ctrm-confirmed-reservations-btn.has-count .ctrm-count-badge {
  background: var(--tm-purple-mid) !important;
}
/* 浮かぶ切り替えの下に隠れないように */
body .custom-store-reservation-management-board {
  padding-bottom: 72px;
}
@media (min-width: 1024px) {
  body .csrm-reservation-status-navigation,
  body .ctrm-reservation-status-navigation {
    bottom: 20px !important;
  }
}
/* セラピストの予約管理：右下の＋を、切り替えの帯の上へ */
body #ctrm-add-schedule-btn {
  bottom: calc(var(--tm-tabbar-h) + 64px + env(safe-area-inset-bottom, 0px)) !important;
}
@media (min-width: 1024px) {
  body #ctrm-add-schedule-btn {
    bottom: 76px !important;
  }
}

/* 予約管理：開始までに店舗が確定しないと自動でキャンセルされる */
body .tm-list-note {
  margin: 4px 0 12px;
  padding: 0 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--tm-text-sub);
}
body .tm-deadline {
  display: inline-block;
  align-self: flex-start;
  margin: 4px 0 2px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--tm-text-sub);
  background: var(--tm-fill);
}
body .tm-deadline.is-soon {
  color: #9A6212;
  background: var(--tm-warn-soft);
}
body .tm-deadline.is-urgent {
  color: var(--tm-danger);
  background: var(--tm-danger-soft);
}
body .tm-deadline-line {
  display: inline-block;
  margin: 4px 0;
  color: var(--tm-danger);
}

/* 下のタブ：線のアイコン・今いるタブに印 */
body .p-topfooter__link {
  color: var(--tm-purple);
  -webkit-tap-highlight-color: transparent;
}
body .p-topfooter__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 1.875rem;
  border-radius: 999px;
  transition: background-color .2s ease;
}
body .p-topfooter__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body .p-topfooter__text {
  color: inherit;
  font-weight: 400;
}
body .p-topfooter__link.is-current {
  color: var(--tm-pink-strong);
}
body .p-topfooter__link.is-current .p-topfooter__icon {
  background: var(--tm-white);
}
body .p-topfooter__link.is-current .p-topfooter__text {
  font-weight: 600;
}
body .p-topfooter__link:active .p-topfooter__icon {
  background: rgba(255, 255, 255, .7);
}

/* ログイン画面：戻り先の案内（窓の代わり） */
body .tm-login-reason {
  margin: 6px auto 4px;
  padding: 10px 14px;
  max-width: 22rem;
  border-radius: 12px;
  background: var(--tm-pink-tint);
  color: var(--tm-text);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

/* 写真が無いときの置き場（「No Image」の字の代わり） */
body .tm-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tm-pink-tint), var(--tm-purple-soft)) !important;
  color: #C4A6D8 !important;
}
body .tm-noimg-icon {
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* はじめに：マイページのボタンの上に置く（浮かせない） */
body #thera-get-started.tgs.tgs--inline,
body #thera-get-started.tgs.tgs--inline:not(.tgs--collapsed) {
  position: static !important;
  right: auto;
  bottom: auto;
  width: auto !important;
  max-width: none;
  margin: 4px 0 16px;
  box-shadow: none;
  border: 1px solid var(--tm-line);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body #thera-get-started.tgs--inline .tgs__header {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 12px 14px 2px;
}
body #thera-get-started.tgs--inline .tgs__progressline {
  padding: 6px 14px 12px;
}

/* 下の階層の画面の上の帯（＜ 題） */
body .tm-appbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 48px 1fr minmax(48px, auto);
  align-items: center;
  gap: 4px;
  min-height: 52px;
  margin: 0 0 8px;
  padding: env(safe-area-inset-top, 0px) 8px 0;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--tm-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
body .tm-appbar .tm-appbar__back {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 999px;
  background: transparent !important;
  color: var(--tm-text) !important;
  font-size: 0 !important;
  text-decoration: none;
  box-shadow: none !important;
}
body .tm-appbar .tm-appbar__back:active {
  background: var(--tm-fill) !important;
}
body .tm-appbar .tm-appbar__back svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body .tm-appbar .tm-appbar__title {
  overflow: hidden;
  color: var(--tm-text);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body .tm-appbar .tm-appbar__right {
  display: flex;
  justify-content: flex-end;
}

/* 帯のある画面：ロゴの帯の分の余白を消し、帯を端まで広げる。右下の×は帯の＜と同じなので出さない */
body:has(.tm-appbar) .lp__main-lower {
  padding-top: 0 !important;
}
body:has(.tm-appbar) .p-topheader {
  display: none !important;
}
body .crh-view-review-page-header.tm-appbar,
body .crh-post-review-page-header.tm-appbar {
  margin-left: -17.5px;
  margin-right: -17.5px;
}
body:has(.tm-appbar) .crh-close-btn {
  display: none !important;
}

/* 口コミを見る：本文は入力欄でなく、そのまま読める文に */
body .crh-review-text {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--tm-fill);
  color: var(--tm-text);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

/* トーク一覧：名前で探す・ピン留め・通知オフ・ブロック */
body .cc-list-search {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 12px 4px;
  padding: 0 12px;
  height: 40px;
  border-radius: 12px;
  background: var(--tm-fill);
  color: var(--tm-text-weak);
}
body .cc-list-search svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
body .cc-list-search input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--tm-text);
  font-size: 16px;
  outline: none;
}
body .chat-room-box.cc-search-hide {
  display: none !important;
}
body .cc-list-noresult {
  padding: 32px 16px;
  color: var(--tm-text-sub);
  font-size: 13px;
  text-align: center;
}
body .chat-room-box .cc-ico {
  width: 13px;
  height: 13px;
  margin-right: 3px;
  vertical-align: -2px;
  fill: none;
  stroke: var(--tm-text-weak);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body .chat-room-box.is-pinned {
  background: var(--tm-pink-tint);
}
body .chat-room-box-badge.is-muted {
  background: var(--tm-text-weak) !important;
}
body .chat-room-box.is-blocked .chat-room-box-avatar img {
  filter: grayscale(1);
  opacity: .6;
}
body .cc-preview-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--tm-line);
  font-size: 12px;
  color: var(--tm-text-sub);
}
body .cc-preview-more {
  padding: 8px 12px;
  border: 1px solid var(--tm-line);
  border-radius: 999px;
  background: var(--tm-white);
  color: var(--tm-text);
  font-size: 12.5px;
}

/* プロフィール：下に固定の［メッセージを送る］［予約］ */
body .tm-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tm-tabbar-h) + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--tm-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
body .tm-sticky-cta.is-shown:not(.is-empty) {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
body .tm-sticky-cta__btn {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--tm-purple);
  border-radius: 999px;
  background: var(--tm-white);
  color: var(--tm-purple);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body .tm-sticky-cta__btn.is-primary {
  border-color: var(--tm-pink);
  background: var(--tm-pink);
  color: #fff;
}
body .tm-sticky-cta__btn:active {
  transform: scale(.98);
}
@media (min-width: 1024px) {
  body .tm-sticky-cta {
    bottom: 0;
    left: 50%;
    right: auto;
    width: 480px;
    margin-left: -240px;
    border-radius: 16px 16px 0 0;
  }
}

/* ===== トーク：返信・リアクション・ここから未読・新着の数・ほかのトークの未読 ===== */
.chat-room-page .chat-message { flex-wrap: wrap !important; }
.chat-room-page .chat-reactions {
  order: 3;
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: -2px;
}
.chat-room-page .chat-message.right .chat-reactions { justify-content: flex-end; }
.chat-room-page .chat-message.left .chat-reactions { padding-left: 40px; }
.chat-room-page .chat-reaction {
  all: unset;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--tm-line);
  color: var(--tm-text-sub);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.chat-room-page .chat-reaction.is-mine {
  border-color: var(--tm-pink);
  background: var(--tm-pink-tint);
  color: var(--tm-pink-strong);
}
.chat-room-page .cc-react-ico,
#chat-message-menu .chat-message-menu-react svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-room-page .chat-reaction[data-reaction="heart"].is-mine .cc-react-ico { fill: currentColor; }

/* 長押しのメニュー：上にリアクションの列 */
#chat-message-menu { flex-wrap: wrap; max-width: calc(100vw - 16px); }
#chat-message-menu .chat-message-menu-reacts {
  display: flex;
  flex-basis: 100%;
  justify-content: space-between;
  gap: 2px;
  padding: 2px 2px 6px;
  margin-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
#chat-message-menu .chat-message-menu-react {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
}
#chat-message-menu .chat-message-menu-react svg { width: 22px; height: 22px; }
#chat-message-menu .chat-message-menu-react:active,
#chat-message-menu .chat-message-menu-react.is-mine { background: rgba(255, 255, 255, .16); color: #FFB3CF; }

/* 返信の引用（吹き出しの中） */
.chat-room-page .chat-reply-quote {
  all: unset;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-width: 100%;
  margin: 0 0 6px;
  padding: 6px 10px;
  border-left: 3px solid var(--tm-pink);
  border-radius: 8px;
  background: rgba(0, 0, 0, .05);
  cursor: pointer;
}
.chat-room-page .chat-message-image-area .chat-reply-quote { margin-bottom: 4px; background: #fff; }
.chat-room-page .chat-reply-quote.is-gone { color: var(--tm-text-weak); font-size: 12px; cursor: default; }
.chat-room-page .chat-reply-quote-name { font-size: 11.5px; font-weight: 600; color: var(--tm-pink-strong); }
.chat-room-page .chat-reply-quote-text {
  overflow: hidden;
  font-size: 12.5px;
  color: var(--tm-text-sub);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.chat-room-page .chat-message.is-flash .chat-message-text-area,
.chat-room-page .chat-message.is-flash .chat-message-image-area {
  animation: cc-flash 1.2s ease;
}
@keyframes cc-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 82, 142, 0); }
  25% { box-shadow: 0 0 0 4px rgba(233, 82, 142, .35); }
}

/* 入力欄の上の「◯◯に返信」 */
.chat-room-page .chat-reply-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px 6px;
  padding: 8px 6px 8px 12px;
  border-left: 3px solid var(--tm-pink);
  border-radius: 10px;
  background: var(--tm-fill);
}
.chat-room-page .chat-reply-bar-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.chat-room-page .chat-reply-bar-name { font-size: 12px; font-weight: 600; color: var(--tm-pink-strong); }
.chat-room-page .chat-reply-bar-text { overflow: hidden; font-size: 12.5px; color: var(--tm-text-sub); white-space: nowrap; text-overflow: ellipsis; }
.chat-room-page .chat-reply-bar-close {
  all: unset;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--tm-text-sub);
  cursor: pointer;
}
.chat-room-page .chat-reply-bar-close svg { width: 18px; height: 18px; }

/* ここから未読 */
.chat-room-page .chat-unread-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 4px 6px;
  color: var(--tm-pink-strong);
  font-size: 12px;
}
.chat-room-page .chat-unread-divider::before,
.chat-room-page .chat-unread-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(233, 82, 142, .35);
}

/* 下へボタン：見ていないあいだに届いた数 */
.chat-room-page #chat-room-down-button-spare.has-new[data-count]::after {
  content: attr(data-count) !important;
  top: -6px !important;
  right: -4px !important;
  width: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 5px !important;
  border-radius: 999px !important;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

/* 戻るの横：ほかのトークの未読 */
.chat-room-page .chat-room-header-back-button { position: relative; }
.chat-room-page .chat-room-back-count {
  position: absolute;
  top: 4px;
  left: 26px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--tm-pink);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* 下のタブ：トークの未読の数 */
body .p-topfooter__badge-for-talk.has-count {
  width: auto !important;
  min-width: 18px;
  height: 18px !important;
  padding: 0 5px;
  border-radius: 999px !important;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #F3E7FD;
}

/* 検索のカード：出勤中は緑の点 */
body .cs-working-badge.is-now::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #4ADE80;
  vertical-align: 1px;
  box-shadow: 0 0 0 2px rgba(74, 222, 128, .3);
}

/* お客様のプロフィール：自分のページ */
body .cup-display-user-own-edit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 320px);
  height: 46px;
  margin: 8px auto 0;
  border: 1px solid var(--tm-purple);
  border-radius: 999px;
  background: var(--tm-white);
  color: var(--tm-purple);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
body .cup-display-user-empty-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0;
  padding: 14px 16px;
  border: 1px dashed #D9C6E6;
  border-radius: 14px;
  color: var(--tm-text-sub);
  font-size: 13.5px;
  text-decoration: none;
}
body .cup-display-user-empty-intro-link {
  color: var(--tm-pink-strong);
  font-weight: 600;
}
body .cup-display-user-question-block.is-empty .cup-display-user-question-answer {
  color: var(--tm-text-weak);
  font-size: 12.5px;
}
body .cup-display-user-no-answers {
  padding: 20px 0;
  color: var(--tm-text-sub);
  font-size: 13px;
  text-align: center;
}

/* セラログの投稿：上の帯の［投稿］ */
body .ct-post-header.tm-appbar {
  margin: 0 0 8px !important;
  padding: env(safe-area-inset-top, 0px) 8px 0 !important;
  height: auto !important;
}
body .ct-post-header.tm-appbar .ct-post-header-post-btn {
  height: 34px;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--tm-pink) !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 600;
  line-height: 34px;
  transition: opacity .15s ease;
}
body .ct-post-header.tm-appbar .ct-post-header-post-btn:disabled {
  opacity: .35;
}

/* 運営がマイページを開いたとき */
body .tm-admin-home { max-width: 480px; margin: 24px auto; padding: 0 16px; }
body .tm-admin-home-title { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--tm-text); }
body .tm-admin-home-list { display: grid; gap: 8px; }
body .tm-admin-home-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border: 1px solid var(--tm-line); border-radius: 14px;
  background: var(--tm-white); color: var(--tm-text); font-size: 14px; text-decoration: none;
}
body .tm-admin-home-link::after { content: "›"; color: var(--tm-text-weak); font-size: 18px; }

/* 画面の題：大きさと上下の余白を詰めて、中身を早く見せる（固定ページの飾りの題は除く） */
body .l-inner-main h1[class$="-content-title"],
body .l-inner-main h1[class$="-page-title"] {
  margin-top: 18px !important;
  margin-bottom: 14px !important;
  padding: 0 !important;
  font-size: 20px !important;
  line-height: 1.4 !important;
  letter-spacing: .04em;
}

/* 口コミの通報：カードの右上の旗の印・理由を選ぶシート */
body .crl-review-header { align-items: center; gap: 8px; }
body .crl-review-header .crl-review-created_at { margin-left: auto; }
body .crl-report-btn {
  flex: 0 0 auto; width: 32px; height: 32px; margin: -6px -8px -6px 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--tm-text-weak, #b5aeb8); cursor: pointer;
}
body .crl-report-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body .crl-report-btn:active { background: var(--tm-fill, #f6f2f7); }
body .crl-report-btn.is-done { color: var(--tm-pink, #e66fa5); }
body .crl-report-btn.is-done svg { fill: currentColor; }
.crl-report-form { text-align: left; }
.crl-report-lead { margin: 0 0 12px; color: var(--tm-text-sub, #6f6874); font-size: 13px; line-height: 1.6; }
.crl-report-reasons { display: grid; gap: 8px; margin-bottom: 12px; }
.crl-report-reason {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px;
  border: 1px solid var(--tm-line, #ece6ee); border-radius: 12px; background: #fff; font-size: 14px; cursor: pointer;
}
.crl-report-reason input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.crl-report-reason span { display: flex; align-items: center; gap: 10px; }
.crl-report-reason span::before { content: ""; flex: 0 0 auto; width: 18px; height: 18px; box-sizing: border-box; border: 1.5px solid #cfc6d2; border-radius: 50%; background: #fff; }
.crl-report-reason:has(input:checked) { border-color: var(--tm-pink, #e66fa5); background: #fff6fa; }
.crl-report-reason:has(input:checked) span::before { border: 5px solid var(--tm-pink, #e66fa5); }
.crl-report-reason:has(input:focus-visible) { outline: 2px solid var(--tm-pink, #e66fa5); outline-offset: 2px; }
.crl-report-detail {
  width: 100%; box-sizing: border-box; min-height: 84px; padding: 10px 12px;
  border: 1px solid var(--tm-line, #ece6ee); border-radius: 12px; font-size: 16px; line-height: 1.6; resize: vertical;
}

/* お客様の「はじめに」：最初にやると便利なこと5つ（済んだら自然に消える） */
body .tm-start { margin: 0 0 16px; transition: opacity .2s ease, transform .2s ease; }
body .tm-start.is-hiding { opacity: 0; transform: translateY(-6px); }
body .tm-start__box { border: 1px solid var(--tm-line, #ece6ee); border-radius: 16px; background: #fff; overflow: hidden; }
body .tm-start__head {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 4px 10px;
  padding: 14px 16px 12px; -webkit-tap-highlight-color: transparent;
}
body .tm-start__head::-webkit-details-marker { display: none; }
body .tm-start__title { font-size: 15px; font-weight: 700; color: var(--tm-text, #3a3340); }
body .tm-start__count { font-size: 13px; color: var(--tm-text-sub, #6f6874); font-variant-numeric: tabular-nums; }
body .tm-start__toggle { display: inline-flex; width: 20px; height: 20px; color: var(--tm-text-weak, #b5aeb8); transition: transform .2s ease; }
body .tm-start__toggle svg, body .tm-start__go svg, body .tm-start__mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body .tm-start__box:not([open]) .tm-start__toggle { transform: rotate(-90deg); }
body .tm-start__bar { grid-column: 1 / -1; height: 6px; border-radius: 999px; background: var(--tm-fill, #f6f2f7); overflow: hidden; }
body .tm-start__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--tm-pink, #e66fa5), var(--tm-purple, #8d4fb5)); }
body .tm-start__list { list-style: none; margin: 0; padding: 0 8px 4px; }
body .tm-start__item { margin: 0; padding: 0; border-top: 1px solid var(--tm-line, #ece6ee); }
body .tm-start__item:first-child { border-top: 0; }
body .tm-start__row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px; color: inherit; text-decoration: none; border-radius: 12px; }
body a.tm-start__row:active { background: var(--tm-fill, #f6f2f7); }
body .tm-start__mark {
  flex: 0 0 auto; width: 24px; height: 24px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid #d6cdd9; border-radius: 50%; color: #fff; padding: 4px;
}
body .tm-start__item.is-done .tm-start__mark { border-color: transparent; background: var(--tm-pink, #e66fa5); }
body .tm-start__item.is-next .tm-start__mark { border-color: var(--tm-pink, #e66fa5); border-width: 2px; }
body .tm-start__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body .tm-start__label { font-size: 14px; line-height: 1.5; color: var(--tm-text, #3a3340); }
body .tm-start__item.is-next .tm-start__label { font-weight: 700; }
body .tm-start__sub { font-size: 12px; line-height: 1.5; color: var(--tm-text-sub, #6f6874); }
body .tm-start__item.is-done .tm-start__label, body .tm-start__item.is-done .tm-start__sub { color: var(--tm-text-weak, #b5aeb8); }
body .tm-start__state { flex: 0 0 auto; font-size: 12px; color: var(--tm-text-weak, #b5aeb8); }
body .tm-start__go { flex: 0 0 auto; width: 18px; height: 18px; color: var(--tm-text-weak, #b5aeb8); }
body .tm-start__item.is-next .tm-start__go { color: var(--tm-pink, #e66fa5); }
body .tm-start__mute {
  display: block; margin: 0 auto 10px; padding: 8px 12px; border: 0; background: transparent;
  color: var(--tm-text-sub, #6f6874); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

/* セラピストのページの「使える割引」：チケットを横に並べる・押すと予約で選んだ状態に */
body .tm-tickets { width: 100%; max-width: 100%; min-width: 0; align-self: stretch; box-sizing: border-box; margin: 20px 0 8px; text-align: left; }
body .tm-tickets__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 2px 10px; }
body .tm-tickets__title { font-size: 15px; font-weight: 700; color: var(--tm-text, #3a3340); }
body .tm-tickets__note { font-size: 12px; color: var(--tm-text-sub, #6f6874); }
body .tm-tickets__rail {
  display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 6px; margin: 0 -2px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
body .tm-tickets__rail::-webkit-scrollbar { display: none; }
body .tm-ticket {
  position: relative; flex: 0 0 auto; min-width: 220px; max-width: 280px; scroll-snap-align: start;
  display: flex; align-items: stretch; padding: 0; border: 1px solid #f3c6da; border-radius: 14px;
  background: linear-gradient(135deg, #fff7fb, #fbf3ff); color: inherit; font: inherit; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .12s ease, box-shadow .12s ease;
}
body .tm-ticket:active { transform: scale(.98); }
body .tm-ticket.is-chosen { box-shadow: 0 0 0 2px var(--tm-pink, #e66fa5) inset; }
body .tm-ticket__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; }
body .tm-ticket__price { font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--tm-pink, #e66fa5); font-variant-numeric: tabular-nums; }
body .tm-ticket__price small { margin-left: 2px; font-size: 12px; font-weight: 700; }
body .tm-ticket__name { font-size: 13px; line-height: 1.45; color: var(--tm-text, #3a3340); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .tm-ticket__use {
  position: relative; flex: 0 0 auto; display: flex; align-items: center; padding: 0 16px;
  border-left: 1.5px dashed #f3c6da; font-size: 13px; font-weight: 700; color: var(--tm-pink, #e66fa5);
}
body .tm-ticket__use::before, body .tm-ticket__use::after {
  content: ""; position: absolute; left: -8px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--tm-page-bg, #fff); border: 1px solid #f3c6da;
}
body .tm-ticket__use::before { top: -8px; border-top-color: transparent; border-left-color: transparent; transform: rotate(45deg); }
body .tm-ticket__use::after { bottom: -8px; border-bottom-color: transparent; border-right-color: transparent; transform: rotate(45deg); }
body .tm-tickets__foot { margin: 4px 2px 0; font-size: 11px; line-height: 1.5; color: var(--tm-text-weak, #9d95a1); }

/* 検索：名前・店舗名で探す */
body .cs-keyword {
  position: relative; display: flex; align-items: center; gap: 8px; height: 46px; margin: 0 0 14px; padding: 0 6px 0 14px;
  border: 1px solid var(--tm-line, #ece6ee); border-radius: 999px; background: var(--tm-fill, #f6f2f7);
}
body .cs-keyword:focus-within { border-color: var(--tm-pink, #e66fa5); background: #fff; }
body .cs-keyword-icon { flex: 0 0 auto; width: 18px; height: 18px; fill: none; stroke: var(--tm-text-sub, #6f6874); stroke-width: 2; stroke-linecap: round; }
body .cs-keyword-input {
  flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0 !important; outline: 0; background: transparent !important;
  font-size: 16px; color: var(--tm-text, #3a3340); box-shadow: none !important; -webkit-appearance: none; appearance: none;
}
body .cs-keyword-input::-webkit-search-cancel-button { display: none; }
body .cs-keyword-input::placeholder { color: var(--tm-text-weak, #9d95a1); }
body .cs-keyword-clear {
  flex: 0 0 auto; width: 34px; height: 34px; padding: 8px; border: 0; border-radius: 50%; background: transparent; color: var(--tm-text-sub, #6f6874); cursor: pointer;
}
body .cs-keyword-clear[hidden] { display: none; }
body .cs-keyword-clear svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body .cs-custom-search-result.is-refreshing { opacity: .55; transition: opacity .15s ease; }

/* ===== 検索：上のタブ（セラピスト／店舗）と［店舗を探す］（キャスコレの形・2026-11） ===== */
.tm-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body .cs-tabs {
  display: flex;
  margin: 4px 0 18px;
  border-bottom: 1px solid var(--tm-line, #ECECF0);
}
body .cs-tab {
  position: relative;
  flex: 1;
  padding: 12px 4px 13px;
  color: var(--tm-text-weak, #A6A6AC);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
body .cs-tab.is-active {
  color: var(--tm-purple, #7D40A0);
}
body .cs-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--tm-purple, #7D40A0);
}
body .cs-panel[hidden] {
  display: none !important;
}
body .cs-custom-search-page[data-tab="store"] .cs-left-slide-card-stack {
  display: none !important;
}

body .cs-store-search .cs-keyword {
  margin-bottom: 14px;
}
body .cs-store-area {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0 0 16px;
}
body .cs-store-area select {
  width: 100%;
  height: 50px;
  padding: 0 40px 0 46px;
  border: 1px solid var(--tm-text, #4A4A4F);
  border-radius: 999px;
  background: #fff;
  color: var(--tm-text, #4A4A4F);
  font-size: 15px;
  -webkit-appearance: none;
  appearance: none;
}
body .cs-store-area__icon,
body .cs-store-area__chev {
  position: absolute;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--tm-text, #4A4A4F);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
body .cs-store-area__icon { left: 18px; }
body .cs-store-area__chev { right: 16px; }
body .cs-store-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
body .cs-store-sort__chip {
  padding: 8px 14px;
  border: 1px solid #C9C9CE;
  border-radius: 999px;
  background: #fff;
  color: var(--tm-text-sub, #7A7A80);
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
body .cs-store-sort__chip.is-active {
  border-color: var(--tm-purple, #7D40A0);
  background: var(--tm-purple, #7D40A0);
  color: #fff;
}
body .cs-store-count {
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--tm-line, #ECECF0);
  color: var(--tm-text-sub, #7A7A80);
  font-size: 13px;
}
body .cs-store-count span {
  margin-right: 2px;
  color: var(--tm-text, #4A4A4F);
  font-size: 15px;
  font-weight: 700;
}
body .cs-store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
}
body .cs-store-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
body .cs-store-card[hidden] {
  display: none;
}
body .cs-store-card__img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 14px;
  background: linear-gradient(#F3E7FD, #FDEAF2);
  box-shadow: 0 0 0 1px rgba(17, 17, 17, .06), 0 10px 24px rgba(18, 18, 23, .10);
}
body .cs-store-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body .cs-store-card__badge {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--tm-pink, #E9528E);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
}
body .cs-store-card__name {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  color: var(--tm-text, #4A4A4F);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
body .cs-store-card__area {
  margin-top: 2px;
  color: var(--tm-text-sub, #7A7A80);
  font-size: 12px;
}
body .cs-store-card__meta {
  margin-top: 4px;
  color: var(--tm-text, #4A4A4F);
  font-size: 12px;
}
body .cs-store-card__star { color: #F5A623; margin-right: 1px; }
body .cs-store-card__sub { color: var(--tm-text-sub, #7A7A80); }
body .cs-store-card__dot { color: var(--tm-text-weak, #A6A6AC); }
body .cs-store-empty {
  padding: 36px 0;
  text-align: center;
}
body .cs-store-empty[hidden] {
  display: none;
}
body .cs-store-empty__title {
  margin: 0 0 14px;
  color: var(--tm-text-sub, #7A7A80);
  font-size: 14px;
}
body .cs-store-empty__reset {
  padding: 10px 22px;
  border: 1px solid var(--tm-purple, #7D40A0);
  border-radius: 999px;
  background: #fff;
  color: var(--tm-purple, #7D40A0);
  font-size: 14px;
}
/* パソコンでもセラミィは細い列で出るので、2列のまま */

/* 口コミの［通報］：キャスコレのように字の入った小さな丸ボタン（2026-11） */
body .crl-report-btn {
  width: auto;
  height: 28px;
  margin: -4px 0 -4px auto;
  padding: 0 11px 0 9px;
  gap: 4px;
  border: 1px solid var(--tm-line, #ECECF0);
  border-radius: 999px;
  background: #fff;
  color: var(--tm-text-sub, #7A7A80);
  font-size: 12px;
  line-height: 1;
}
body .crl-report-btn svg { width: 13px; height: 13px; }
body .crl-report-btn.is-done { border-color: rgba(233, 82, 142, .4); }

/* 検索のセラピストのカード：キャスコレのカードのような銀の縁と、口コミの★（2026-11） */
body .cs-therapist-card .cs-therapist-image {
  padding: 4px;
  border-radius: 14px;
  background: linear-gradient(135deg, #F2F2F2, #FFFFFF 18%, #C9C9CE 45%, #EDEDED 62%, #A9A9AE);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .45), 0 2px 6px -3px rgba(0, 0, 0, .25);
  aspect-ratio: 0.718;
}
body .cs-therapist-card .cs-therapist-image-avatar {
  border-radius: 10px;
}
body .cs-therapist-card .cs-working-badge,
body .cs-therapist-card .cs-next-working-badge {
  top: 10px;
  left: 10px;
}
body .cs-therapist-rating {
  display: flex;
  align-items: baseline;
  gap: 1px;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.4;
}
body .cs-therapist-rating-star { color: #F5A623; margin-right: 2px; }
body .cs-therapist-rating-avg { color: var(--tm-text, #4A4A4F); font-weight: 600; }
body .cs-therapist-rating-count { color: var(--tm-text-sub, #7A7A80); }

/* ===== 道しるべ（パンくず）・エリアのページ（2026-11） ===== */
body .tm-crumbs {
  margin: 4px 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
body .tm-crumbs::-webkit-scrollbar { display: none; }
body .tm-crumbs ol {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.6;
}
body .tm-crumbs li {
  display: inline-flex;
  align-items: center;
  color: var(--tm-text-sub, #7A7A80);
}
body .tm-crumbs li + li::before {
  content: "›";
  margin: 0 6px;
  color: var(--tm-text-weak, #A6A6AC);
}
body .tm-crumbs a {
  color: var(--tm-text-sub, #7A7A80);
  text-decoration: none;
}
body .tm-crumbs [aria-current] {
  max-width: 14em;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--tm-text, #4A4A4F);
}
body .tm-cast--area {
  padding-top: 6px;
}
body .tm-area-head {
  margin: 6px 0 22px;
  text-align: center;
}
body .tm-area-head__title {
  margin: 8px 0 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tm-text, #4A4A4F);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
}
body .tm-area-head__lead {
  margin: 0 auto 16px;
  max-width: 30em;
  color: var(--tm-text-sub, #7A7A80);
  font-size: 13px;
  line-height: 1.7;
}
body .tm-area-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
body .tm-area-stats > div {
  padding: 12px 6px;
  border: 1px solid var(--tm-line, #ECECF0);
  border-radius: 16px;
  background: #fff;
}
body .tm-area-stats b {
  display: block;
  color: var(--tm-purple, #7D40A0);
  font-size: 22px;
  line-height: 1.2;
}
body .tm-area-stats span {
  color: var(--tm-text-sub, #7A7A80);
  font-size: 12px;
}
body .tm-area-region + .tm-area-region {
  margin-top: 16px;
}
body .tm-area-region__title {
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tm-text-sub, #7A7A80);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
body .tm-area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body .tm-area-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--tm-line, #ECECF0);
  border-radius: 999px;
  background: #fff;
  color: var(--tm-text, #4A4A4F);
  font-size: 14px;
  text-decoration: none;
}
body .tm-area-chip span {
  color: var(--tm-text-weak, #A6A6AC);
  font-size: 12px;
}
body .tm-area-chip.is-current {
  border-color: var(--tm-purple, #7D40A0);
  background: var(--tm-purple, #7D40A0);
  color: #fff;
}
body .tm-area-chip.is-current span { color: rgba(255, 255, 255, .8); }
body .tm-area-card__sub {
  display: block;
  overflow: hidden;
  color: var(--tm-text-sub, #7A7A80);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body .tm-area-card__rate {
  display: block;
  color: var(--tm-text, #4A4A4F);
  font-size: 12px;
}
body .tm-area-card__rate span { color: #F5A623; margin-right: 1px; }
body .tm-area-card__rate small { color: var(--tm-text-sub, #7A7A80); font-size: 12px; }
body .tm-cast--area .tm-cast-cards .tm-cast-card { width: 128px; }

body .tm-cast--area {
  padding-left: 0;
  padding-right: 0;
}

/* トップ：エリアから探す */
body .custom-top-area-section {
  padding: 36px 0 8px;
}
body .custom-top-area-section-title {
  margin-bottom: 18px;
  text-align: center;
}
body .custom-top-area-section-en {
  display: block;
  color: var(--tm-pink, #E9528E);
  font-size: 13px;
  letter-spacing: .12em;
}
body .custom-top-area-section-ja {
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tm-text, #4A4A4F);
  font-size: 20px;
  font-weight: 700;
}
body .custom-top-area-section-more {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 13px 16px;
  border: 1px solid var(--tm-purple, #7D40A0);
  border-radius: 999px;
  background: #fff;
  color: var(--tm-purple, #7D40A0);
  font-size: 14px;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

body .custom-top-area-section .tm-area-chips { justify-content: center; }

/* ------------------------------------------------------------------
   最近見たセラピスト（discover.php・tm-discover.js）
------------------------------------------------------------------ */
body .tm-recent { margin: 0 0 16px; }
body .tm-recent[hidden] { display: none; }
body .tm-recent--top { padding: 28px 0 0; }
body .tm-recent__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}
body .tm-recent__title {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--tm-text, #4A4A4F);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
body .tm-recent__title::before,
body .tm-recent__title::after { display: none; }
body .tm-recent__clear {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--tm-text-weak, #A6A6AC);
  font-size: 12px;
  cursor: pointer;
}
body .tm-recent__rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 4px 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
body .tm-recent__rail::-webkit-scrollbar { display: none; }
body .tm-recent__item {
  flex: none;
  width: 66px;
  color: inherit;
  text-align: center;
  text-decoration: none;
}
body .tm-recent__img {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  overflow: hidden;
  border-radius: 50%;
  background: #F3F0F7;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tm-pink, #E9528E);
}
body .tm-recent__img img { width: 100%; height: 100%; object-fit: cover; }
body .tm-recent__name,
body .tm-recent__store {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body .tm-recent__name { color: var(--tm-text, #4A4A4F); font-size: 12px; }
body .tm-recent__store { color: var(--tm-text-weak, #A6A6AC); font-size: 10px; }

/* ------------------------------------------------------------------
   今日の1枚（トップ）
------------------------------------------------------------------ */
body .tm-draw { padding: 36px 0 8px; }
body .tm-draw .custom-top-area-section-title { margin-bottom: 10px; }
body .tm-draw__lead {
  margin: 0 0 14px;
  color: var(--tm-text-sub, #7A7A80);
  font-size: 13px;
  text-align: center;
}
body .tm-draw__area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
}
body .tm-draw__label { color: var(--tm-text-sub, #7A7A80); font-size: 12px; }
body .tm-draw__select {
  -webkit-appearance: none;
  appearance: none;
  max-width: 220px;
  padding: 8px 34px 8px 16px;
  border: 1px solid var(--tm-line, #ECECF0);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A6A6AC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 14px no-repeat;
  color: var(--tm-text, #4A4A4F);
  font-size: 14px;
}
body .tm-draw__stage {
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  padding: 8px 0 6px;
  perspective: 1100px;
}
body .tm-draw__card {
  position: relative;
  width: min(60vw, 240px);
  aspect-ratio: .718;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* 後ろに重なったカード（山札） */
body .tm-draw__card::before,
body .tm-draw__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 18px;
  background: linear-gradient(150deg, #3a1838 0%, #1f0f26 45%, #2c1235 100%);
  box-shadow: 0 10px 24px rgba(60, 20, 70, .18);
}
body .tm-draw__card::before { transform: rotate(-7deg) translate(-8px, 4px); opacity: .55; }
body .tm-draw__card::after { transform: rotate(5deg) translate(8px, 2px); opacity: .75; }
body .tm-draw__inner {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  transform-style: preserve-3d;
  transition: transform .62s cubic-bezier(.2, .8, .2, 1);
  animation: tm-draw-float 3.4s ease-in-out infinite;
}
body .tm-draw__card.is-shuffling .tm-draw__inner { animation: tm-draw-shake .42s ease-in-out infinite; }
body .tm-draw__card.is-open .tm-draw__inner { transform: rotateY(180deg); animation: none; }
body .tm-draw__card.no-anim .tm-draw__inner { transition: none; }
body .tm-draw__back,
body .tm-draw__front {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0 18px 40px rgba(60, 20, 70, .28);
}
body .tm-draw__back {
  display: grid;
  place-items: center;
  padding: 7%;
  box-sizing: border-box;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, .12), transparent 55%),
    linear-gradient(150deg, #3a1838 0%, #1f0f26 45%, #2c1235 100%);
}
body .tm-draw__back-in {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, .18);
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .035) 0 9px, transparent 9px 18px);
}
body .tm-draw__back-in img {
  width: 70%;
  height: auto;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .55));
}
body .tm-draw__tap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12%;
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  letter-spacing: .32em;
  text-align: center;
  animation: tm-draw-pulse 1.6s ease-in-out infinite;
}
body .tm-draw__front {
  transform: rotateY(180deg);
  background: #F3F0F7;
}
body .tm-draw__photo { position: absolute; inset: 0; }
body .tm-draw__photo img { width: 100%; height: 100%; object-fit: cover; }
body .tm-draw__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tm-pink, #E9528E);
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
}
body .tm-draw__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 14px 12px;
  background: linear-gradient(rgba(20, 10, 25, 0), rgba(20, 10, 25, .8));
  color: #fff;
  text-align: left;
}
body .tm-draw__name { display: block; font-size: 18px; font-weight: 600; line-height: 1.35; }
body .tm-draw__sub {
  display: block;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.5;
  opacity: .9;
  white-space: nowrap;
  text-overflow: ellipsis;
}
body .tm-draw__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .6) 46%, rgba(255, 255, 255, 0) 62%);
  transform: translateX(-130%);
  pointer-events: none;
}
body .tm-draw__card.is-flash .tm-draw__shine { animation: tm-draw-shine .9s ease-out .3s both; }
body .tm-draw__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0 0;
}
body .tm-draw__actions[hidden] { display: none; }
body .tm-draw__go,
body .tm-draw__again {
  padding: 12px 20px;
  border: 1px solid var(--tm-purple, #7D40A0);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
body .tm-draw__go { background: var(--tm-purple, #7D40A0); color: #fff; }
body .tm-draw__again { background: #fff; color: var(--tm-purple, #7D40A0); }
@keyframes tm-draw-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1deg); }
}
@keyframes tm-draw-shake {
  0%, 100% { transform: rotate(0) translateX(0); }
  25% { transform: rotate(-5deg) translateX(-5px); }
  75% { transform: rotate(5deg) translateX(5px); }
}
@keyframes tm-draw-shine {
  from { transform: translateX(-130%); }
  to { transform: translateX(130%); }
}
@keyframes tm-draw-pulse {
  0%, 100% { opacity: .45; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body .tm-draw__inner,
  body .tm-draw__card.is-shuffling .tm-draw__inner,
  body .tm-draw__tap { animation: none; }
  body .tm-draw__inner { transition: none; }
}

/* ------------------------------------------------------------------
   エリアの一覧：日本の地図（タイル）
------------------------------------------------------------------ */
body .tm-jmap {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  gap: 3px;
  margin: 0 0 10px;
}
body .tm-jmap__t {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: #F1EEF4;
  color: #BDB7C4;
  font-size: 10px;
  line-height: 1;
  letter-spacing: -.02em;
  text-decoration: none;
  white-space: nowrap;
}
body .tm-jmap__t.is-wide { aspect-ratio: 2.1 / 1; } /* 北海道：2マスぶんの幅で、高さは1マス */
body .tm-jmap__t.is-long { font-size: 8px; letter-spacing: -.06em; }
body a.tm-jmap__t { transition: transform .12s; }
body a.tm-jmap__t:active { transform: scale(.9); }
body .tm-jmap__t.lv1 { background: #F9E0EA; color: #A2446C; }
body .tm-jmap__t.lv2 { background: #F2AFC9; color: #fff; }
body .tm-jmap__t.lv3 { background: var(--tm-pink, #E9528E); color: #fff; }
body .tm-jmap__t.lv4 { background: var(--tm-purple, #7D40A0); color: #fff; }
body .tm-jmap__legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  color: var(--tm-text-sub, #7A7A80);
  font-size: 11px;
}
body .tm-jmap__legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
}
body .tm-jmap__hint {
  margin: 0 0 10px;
  color: var(--tm-text-sub, #7A7A80);
  font-size: 12px;
}
@media (min-width: 768px) {
  body .tm-jmap__t { font-size: 12px; }
  body .tm-jmap__t.is-long { font-size: 10px; }
}
