.custom-swipe-page {
  width: 100%;
  max-width: none !important;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  font-weight: 500;
  min-height: calc(var(--vh) * 100 - 4.625rem - 4.375rem) !important;
  padding-inline: 1.25rem;
}

.custom-swipe-page,
.custom-swipe-page * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.custom-swipe-content {
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  max-width: 37.5rem;
  width: 100%;
}

.custom-swipe-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 0.75rem;
  color: #7D40A0;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

.custom-swipe-plugin-progress-bar {
  width: 100%;
  height: 0.75rem !important;
  background-color: #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.custom-swipe-plugin-progress {
  height: 100%;
  background: linear-gradient(to right, #7D40A0, #9E6CBB);
  transition: width 0.3s ease;
  border-radius: 8px;
}

.custom-swipe-plugin-card-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
}

.custom-swipe-plugin-swipe {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.custom-swipe-plugin-card {
  position: absolute;
  background-color: #fff;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  object-fit: cover;
  transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2),
              0 5px 10px rgba(0, 0, 0, 0.15);
}

.custom-swipe-plugin-card:nth-child(n) {
  z-index: auto;
  transform: translate(0, 0);
}

.custom-swipe-plugin-info-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(109, 99, 115, 0.7);
  color: #fff;
  padding: 8px 12px;
  box-sizing: border-box;
  text-align: left;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.custom-swipe-plugin-info-text-box {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.custom-swipe-plugin-therapist-info {
  font-size: 1rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
}

.custom-swipe-plugin-store-name {
  font-size: 0.875rem;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
}

.custom-swipe-plugin-buttons {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  z-index: 2;
}

.custom-swipe-plugin-like-icon,
.custom-swipe-plugin-dislike-icon {
  position: absolute;
  opacity: 1;
  z-index: 3;
  width: 100px;
  height: 100px;
}

.custom-swipe-plugin-like-icon {
  top: 10%;
  left: 20%;  /* 左側に配置 */
  transform: translate(-50%, -50%) rotate(-15deg);
}

.custom-swipe-plugin-dislike-icon {
  top: 10%;
  left: 80%;  /* 右側に配置 */
  transform: translate(-50%, -50%) rotate(15deg);
}

.custom-swipe-plugin-reload-button {
  position: absolute;
  background-color: rgb(233, 81, 142);
  border: none;
  color: white;
  font-size: 0.75rem;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  width: auto;
  z-index: 2;
}

.custom-swipe-plugin-reload-button.show {
  opacity: 1;
}

.custom-swipe-plugin-inactive {
  display: none;
}

.custom-swipe-plugin-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
}

.custom-swipe-plugin-modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 300px;
  text-align: center;
}

.custom-swipe-plugin-modal-content h3 {
  margin-bottom: 20px;
  font-size: 1.125rem;
}

.custom-swipe-plugin-modal-buttons {
  display: flex;
  justify-content: space-around;
  margin-bottom: 10px;
}

.custom-swipe-plugin-register-button {
  background-color: rgb(233, 81, 142);
  color: white;
  padding: 10px 10px;
  font-size: 0.875rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.custom-swipe-plugin-login-button {
  background-color: rgb(233, 81, 142);
  color: white;
  padding: 10px 10px;
  font-size: 0.875rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.custom-swipe-plugin-back-button {
  background-color: #ccc;
  color: #333;
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.custom-swipe-plugin-profile-button {
  position: relative;
  font-size: 0.875rem;
  border-radius: 82px;
  cursor: pointer;
  width: 120px;
  border: none;
  color: #7D40A0;
  z-index: 20;
  background: #fff;
  border: solid 1px #7D40A0;
  padding: 5px;
}

.custom-swipe-plugin-profile-button::before {
  position: absolute;
  display: block;
  content: "";
  top: 50%;
  right: 6px;
  width: 6px;
  height: 6px;
  border-bottom: 1px solid #7D40A0;
  border-left: 1px solid #7D40A0;
  -webkit-transform: translatey(-50%) rotate(-135deg);
  transform: translatey(-50%) rotate(-135deg);
}