/**
 * Shop Single Page Styles
 *
 * @package ShopAdminDashboard
 */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
  --sad-primary-color: #cc1db8;
  --sad-primary-hover: #a8179a;
  --sad-text-color: #333;
  --sad-text-light: #666;
  --sad-border-color: #e0e0e0;
  --sad-bg-light: #f8f9fa;
  --sad-line-color: #06c755;
  --sad-tel-color: #0066cc;
  --sad-radius: 8px;
  --sad-radius-lg: 12px;
}

/* ==========================================================================
   Base
   ========================================================================== */
.sad-shop-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.sad-section-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 1rem 0 1rem;
  text-align: center;
  color: #999;
}

/* ==========================================================================
   Header Section
   ========================================================================== */
.sad-shop-header {
  background: #fff;
  border-radius: var(--sad-radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.sad-shop-header__inner {
  display: flex;
}

.sad-shop-header__banner {
  flex: 0 0 40%;
  max-width: 400px;
  padding: 2rem;
}

.sad-shop-header__image {
  width: 100%;
  height: auto;
  display: block;
}

.sad-shop-header__no-image {
  aspect-ratio: 4/3;
  background: var(--sad-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sad-text-light);
  font-size: 1.2rem;
}

.sad-shop-header__info {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.main .sad-shop-header__title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0 0 0.15rem;
  line-height: 1;
  color: var(--sad-text-color);
}

.sad-shop-header__furigana {
  font-size: 0.9rem;
  color: var(--sad-text-light);
  line-height: 1.25;
  margin: 0 0 1rem;
}

.sad-shop-header__areas {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

/* Shop Details (平均予算・営業時間・受付時間) */
.sad-shop-header__details {
  margin-top: 1rem;
}

.sad-shop-header__areas + .sad-shop-header__details {
  margin-top: 0;
}

.sad-shop-header__hours {
  font-size: 0.95rem;
  color: var(--sad-text-color);
  line-height: 1;
  margin: 0 0 0.4rem;
}

.sad-shop-header__hours:last-child {
  margin-bottom: 0;
}

.sad-shop-header__hours-label {
  font-weight: bold;
  color: var(--sad-text-light);
  margin-right: 0.5rem;
}

.sad-area-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  color: #666;
  font-weight: 500;
  font-size: 0.85rem;
  border: 1px solid #999;
  border-radius: 3px;
}

/* Action Buttons */
.sad-shop-header__actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sad-border-color);
  margin-top: 1rem;
}

.sad-action-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--sad-radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  max-width: 270px;
}

.sad-action-btn__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.sad-action-btn__text {
  flex-grow: 1;
  text-align: center;
  font-weight: bold;
}

.sad-action-btn--tel {
  background: #e33273;
  color: #fff;
}

.sad-action-btn--tel:hover {
  background: #c72a63;
  color: #fff;
}

.sad-action-btn--line {
  background: var(--sad-line-color);
  color: #fff;
}

.sad-action-btn--line:hover {
  background: #05a847;
  color: #fff;
}

.sad-action-btn--url {
  background: transparent;
  color: #e33273;
  border: 2px solid #e33273;
}

.sad-action-btn--url:hover {
  background: #e33273;
  color: #fff;
}

.sad-action-btn--x {
  background: #000;
  color: #fff;
}

.sad-action-btn--x:hover {
  background: #333;
  color: #fff;
}

.sad-action-btn--icon-only {
  justify-content: center;
}

/* ==========================================================================
   Chart Section
   ========================================================================== */
.sad-shop-chart {
  background: #fff;
  border-radius: var(--sad-radius-lg);
  padding: 2rem 2rem 0;
  margin-bottom: 2rem;
}

.sad-shop-chart__container {
  display: flex;
  justify-content: center;
}

.sad-shop-chart__canvas-wrapper {
  width: 100%;
  max-width: 750px;
}

/* ==========================================================================
   Therapists Section
   ========================================================================== */
.sad-shop-therapists {
  background: #fff;
  border-radius: var(--sad-radius-lg);
  padding: 1.5rem 2rem 2rem;
  margin-bottom: 2rem;
}

.sad-therapist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sad-therapist-card {
  overflow: visible;
  background: #fff;
}

.sad-therapist-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.sad-therapist-card__image {
  position: relative;
  overflow: visible;
  border-radius: var(--sad-radius);
}

.sad-therapist-card__image img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  border-radius: var(--sad-radius);
}

.sad-therapist-card:hover .sad-therapist-card__image img {
  transform: scale(1.05);
}

.sad-therapist-card__no-image {
  aspect-ratio: 3/4;
  background: var(--sad-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sad-text-light);
}

.sad-therapist-card__rating {
  display: flex;
  align-items: center;
  color: #0071bc;
  font-size: 0.85rem;
  margin: 0.25rem 0 0.25rem !important;
}

.sad-therapist-card__rating-label {
  font-weight: bold;
  margin-right: 0.25rem;
  transform: translateY(1px);
}

.sad-therapist-card__rating-stars {
  display: inline-flex;
  gap: -2px;
  vertical-align: middle;
}

.sad-therapist-card__rating-stars .sad-star {
  width: 16px;
  height: 16px;
  margin-right: -2px;
}

.sad-star {
  fill: #ffc107;
}

.sad-star--empty {
  fill: #e0e0e0;
}

.sad-therapist-card__rating-value {
  font-weight: bold;
  color: #0071bc;
  border: 1px solid #0071bc;
  padding: .1rem 0.2rem;
  border-radius: 3px;
  margin-left: .5rem;
  line-height: 1.25;
  font-size: .75rem;
}

.sad-therapist-card__comments {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.sad-therapist-card__comments-count {
  font-size: 1.125rem;
  font-weight: bold;
  background: linear-gradient(135deg, #ff5f6d, #ffc371, #ff9a56);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.sad-therapist-card__today {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: linear-gradient(to top, #dd23b8, #f17eba, #dd23b8);
  color: #fff;
  font-size: 0.875rem;
  font-weight: bold;
  letter-spacing: 0.25rem;
  padding: 0.125rem 1.5rem;
  border-radius: 100px;
  white-space: nowrap;
  z-index: 1;
}

.sad-therapist-card__content {
  padding: 1rem 0 0.5rem;
}

.main .sad-therapist-card__name {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1;
  margin: 0 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #cbebf8;
  color: #0071bc;
}

.sad-therapist-card__furigana {
  flex: 1;
  font-size: 0.75rem;
  font-weight: normal;
  color: var(--sad-text-light);
}

.sad-therapist-card__furigana::before {
  content: none;
}

.sad-therapist-card__excerpt {
  font-size: 0.85rem;
  color: var(--sad-text-light);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sad-shop-therapists__footer {
  text-align: center;
  margin-top: 2rem;
}

.sad-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sad-btn--primary {
  background: linear-gradient(135deg, #ff5f6d, #ffc371, #ff5f6d);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: #fff;
}

.sad-btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  color: #fff;
}

/* ==========================================================================
   Courses Section
   ========================================================================== */
.sad-shop-courses {
  background: #fff;
  border-radius: var(--sad-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sad-course-block {
  width: 80%;
  max-width: 600px;
  margin-bottom: 2rem;
}

.sad-course-block:last-child {
  margin-bottom: 0;
}

.sad-course-block__title {
  font-size: 1.1rem;
  font-weight: bold;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--sad-primary-color);
  color: var(--sad-text-color);
}

.sad-price-table {
  width: 100%;
  border-collapse: collapse;
}

.sad-price-table th,
.sad-price-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--sad-border-color);
}

.anima-stripped-table .main .sad-price-table td {
  border-top: none;
}

.sad-price-table th {
  background: var(--sad-bg-light);
  font-weight: 500;
  color: var(--sad-text-light);
}

.sad-price-table td:last-child {
  text-align: right;
  font-weight: bold;
  color: var(--sad-primary-color);
}

/* 最後の行のボーダーを削除 */
.sad-price-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Shop Info Section
   ========================================================================== */
.sad-shop-info {
  background: #fff;
  border-radius: var(--sad-radius-lg);
  padding: 2rem;
  margin-bottom: 2rem;
}

.sad-info-table {
  width: 100%;
  border-collapse: collapse;
}

.sad-info-table th,
.sad-info-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--sad-border-color);
  vertical-align: top;
}

.sad-info-table th {
  width: 30%;
  font-weight: 500;
  color: var(--sad-text-light);
}

.sad-info-table td {
  color: var(--sad-text-color);
}

.sad-info-table td a {
  color: var(--sad-primary-color);
  text-decoration: none;
}

.sad-info-table td a:hover {
  text-decoration: underline;
}

.sad-info-table tbody tr:last-child th,
.sad-info-table tbody tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 1024px) {
  .sad-shop-chart__canvas-wrapper {
    max-width: 750px;
  }
}

@media screen and (max-width: 768px) {
  .sad-shop-single {
    padding: 10px;
  }

  .sad-section-title {
    font-size: 1.25rem;
  }

  /* Header */
  .sad-shop-header__inner {
    flex-direction: column;
    gap: 0;
  }

  .sad-shop-header__banner {
    flex: none;
    max-width: none;
  }

  .sad-shop-header__info {
    padding: 1.5rem;
  }

  .sad-shop-header__title {
    font-size: 1.5rem;
  }

  .sad-shop-header__actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .sad-area-tag {
    font-size: 0.8rem;
  }

  /* Chart */
  .sad-shop-chart {
    padding: 1.5rem;
  }

  /* Therapists */
  .sad-shop-therapists {
    padding: 1.5rem;
  }

  .sad-therapist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .sad-therapist-grid > * {
    min-width: 0;
  }

  .sad-therapist-card__name {
    font-size: 0.9rem;
  }

  .sad-therapist-card__excerpt {
    font-size: 0.75rem;
  }

  .sad-therapist-card__rating,
  .sad-therapist-card__comments {
    font-size: 0.75rem;
  }

  .sad-therapist-card__comments-count {
    font-size: 1.25rem;
  }

  .sad-therapist-card__today {
    font-size: 0.75rem;
    padding: 0.1rem 1rem;
    letter-spacing: 0.15rem;
  }

  /* Courses */
  .sad-shop-courses {
    padding: 1.5rem;
  }

  .sad-course-block {
    width: 100%;
  }

  .sad-price-table th,
  .sad-price-table td {
    padding: 0.5rem;
    font-size: 0.9rem;
  }

  /* Info */
  .sad-shop-info {
    padding: 1.5rem;
  }

  .sad-info-table th {
    width: 35%;
    padding: 0.75rem 0.5rem;
    font-size: 0.85rem;
  }

  .sad-info-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
}

@media screen and (max-width: 480px) {
  .sad-therapist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
}
